:root {
  --navy: #082e5a;
  --blue: #0b3d78;
  --blue-2: #145ca3;
  --sky: #dcefff;
  --ice: #f4f9fd;
  --paper: #fffefa;
  --ink: #10243b;
  --muted: #63758a;
  --line: #d9e5ee;
  --gold: #c69b55;
  --green: #267457;
  --red: #a74343;
  --shadow: 0 20px 60px rgba(8, 46, 90, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,254,250,.94); border-bottom: 1px solid rgba(217,229,238,.8); backdrop-filter: blur(18px); }
.topbar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; color: white; background: var(--blue); font: 700 22px "Spectral",serif; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.brand-seal.large { width: 58px; height: 58px; font-size: 29px; margin-bottom: 22px; }
.brand-icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 11px; box-shadow: 0 7px 20px rgba(8,46,90,.18); }
.brand-icon.large { width: 68px; height: 68px; margin-bottom: 22px; border-radius: 15px; }
.brand strong { display: block; font: 700 18px "Spectral",serif; line-height: 1.05; color: var(--navy); }
.brand small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 16px; color: var(--navy); font-size: 13px; font-weight: 600; }
.main-nav a:not(.button), .nav-button { position: relative; }
.main-nav a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--gold); transition: .25s; }
.main-nav a:hover::after { width: 100%; }
.main-nav form { margin: 0; }
.nav-button { border: 0; background: none; color: var(--navy); font-weight: 600; padding: 0; }
.menu-toggle { display: none; border: 0; background: none; font-size: 24px; color: var(--navy); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 0 24px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: white; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { color: white; background: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(8,46,90,.2); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-full { width: 100%; }
.button-outline { color: var(--blue); background: transparent; }
.button-outline:hover { color: white; }
.button-light { background: white; color: var(--navy); border-color: white; }
.button-light:hover { background: var(--sky); color: var(--navy); }
.eyebrow { display: block; margin-bottom: 14px; color: var(--blue-2); font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: #b9dcfa; }
h1,h2,h3 { margin-top: 0; }
h1,h2 { font-family: "Spectral",serif; color: var(--navy); }
.hero { overflow: hidden; min-height: 670px; background: linear-gradient(110deg,#f8fcff 0%,#edf7ff 58%,#d8edfc 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 670px; }
.hero-copy { padding: 72px 0 90px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(48px,6vw,78px); letter-spacing: -.045em; line-height: .96; margin-bottom: 28px; }
.hero-copy h1 em { color: var(--blue-2); font-weight: 600; }
.lead { color: var(--muted); font-size: clamp(18px,2vw,21px); line-height: 1.65; max-width: 680px; }
.hero-copy .lead { max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.text-link { color: var(--blue); font-weight: 700; border-bottom: 1px solid var(--blue); }
.microcopy { color: var(--muted); font-size: 12px; margin-top: 16px; }
.hero-art { min-height: 580px; position: relative; display: grid; place-items: center; }
.halo { position: absolute; border-radius: 50%; border: 1px solid rgba(20,92,163,.17); }
.halo-outer { width: 500px; height: 500px; }
.halo-inner { width: 380px; height: 380px; background: rgba(255,255,255,.42); box-shadow: inset 0 0 80px rgba(20,92,163,.05); }
.mary-card { z-index: 2; width: 260px; height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; background: linear-gradient(155deg,#145ca3,#082e5a); border-radius: 140px 140px 24px 24px; box-shadow: 0 30px 80px rgba(8,46,90,.3); text-align: center; transform: rotate(2deg); }
.crown { color: #e5c98f; font-size: 30px; }
.mary-letter { font: 700 132px/1 "Spectral",serif; text-shadow: 0 5px 20px rgba(0,0,0,.15); }
.mary-stars { color: #e5c98f; font-size: 12px; letter-spacing: .4em; }
.mary-card p { font: 600 17px/1.2 "Spectral",serif; margin: 22px 0 0; opacity: .8; }
.floating-note { position: absolute; z-index: 4; padding: 15px 18px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.7); border-radius: 12px; }
.floating-note strong { font: 700 25px "Spectral",serif; color: var(--blue); }
.floating-note span { color: var(--muted); font-size: 12px; max-width: 70px; }
.note-one { left: 3%; bottom: 15%; }
.note-two { right: 0; top: 22%; }
.note-two span:last-child { max-width: none; }
.status-dot { width: 9px; height: 9px; background: #42a77f; border-radius: 50%; box-shadow: 0 0 0 5px #dcf4ea; }
.feature-strip { position: relative; z-index: 5; margin-top: -1px; background: var(--navy); color: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.feature-grid article { padding: 42px 46px 48px; border-left: 1px solid rgba(255,255,255,.12); }
.feature-grid article:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.feature-grid article > span { font-size: 11px; color: #85bbea; }
.feature-grid h2 { color: white; font-size: 26px; margin: 10px 0 8px; }
.feature-grid p { color: #bed2e6; margin: 0; line-height: 1.6; }
.home-cta { padding: 90px 0; background: var(--ice); }
.cta-card { min-height: 220px; padding: 50px 60px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius); color: white; background: linear-gradient(115deg,var(--blue),var(--navy)); box-shadow: var(--shadow); }
.cta-card h2 { color: white; font-size: 42px; margin: 0; }
.page-hero { padding: 90px 0 65px; background: linear-gradient(120deg,var(--ice),#e1f1fc); }
.page-hero.compact h1 { font-size: clamp(42px,5vw,62px); margin: 0 0 14px; }
.content-section { padding: 70px 0 100px; }
.prose { font-size: 18px; line-height: 1.8; color: var(--muted); }
.prose h2 { margin-top: 46px; color: var(--navy); }
.prose .button { margin-top: 24px; }
.guide-hero { overflow: hidden; position: relative; }
.guide-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: 5%; top: -180px; border: 1px solid rgba(20,92,163,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.2),0 0 0 110px rgba(20,92,163,.035); }
.guide-hero .shell { position: relative; z-index: 1; }
.guide-intro { margin-bottom: 50px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: start; }
.guide-intro h2,.guide-note h2 { margin: 0; font-size: 40px; }
.guide-intro p,.guide-note p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.guide-grid { margin-bottom: 80px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(8,46,90,.05); }
.guide-card > span { color: var(--gold); font-weight: 700; }
.guide-card h3 { margin: 28px 0 8px; color: var(--navy); font-size: 23px; }
.guide-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.guide-heading { margin-top: 20px; }
.duration-badge { padding: 9px 14px; color: var(--blue); background: var(--sky); border-radius: 999px; font-size: 13px; }
.meeting-timeline { margin: 0 0 75px; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 0 42px; list-style: none; counter-reset: meeting; }
.meeting-timeline li { min-height: 135px; padding: 23px 0; display: grid; grid-template-columns: 46px 1fr; gap: 18px; border-top: 1px solid var(--line); }
.meeting-timeline li > span { width: 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-weight: 700; }
.meeting-timeline h3 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.meeting-timeline p { margin: 0; color: var(--muted); line-height: 1.55; }
.guide-note { margin: 45px 0 30px; padding: 40px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 45px; align-items: center; color: white; background: linear-gradient(120deg,var(--blue),var(--navy)); border-radius: var(--radius); }
.guide-note h2,.guide-note p { color: white; }
.guide-note p { opacity: .78; }
.guide-note .eyebrow { color: #a9d5f7; }
.guide-actions { margin: 28px 0 45px; display: flex; gap: 12px; }
.source-note { padding-top: 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.source-note a { color: var(--blue); text-decoration: underline; }
.prayer-nav { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.prayer-nav a { padding: 9px 15px; color: var(--blue); background: rgba(255,255,255,.72); border: 1px solid rgba(20,92,163,.15); border-radius: 999px; font-size: 13px; font-weight: 700; }
.prayer-section { padding: 30px 0 75px; border-bottom: 1px solid var(--line); }
.prayer-section > header { margin-bottom: 28px; display: flex; gap: 18px; align-items: flex-start; }
.prayer-section h2 { margin: 0; font-size: clamp(32px,4vw,44px); }
.prayer-number { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); background: var(--sky); border-radius: 50%; font-weight: 700; }
.prayer-section > p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.prayer-steps { margin: 28px 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: prayer-step; }
.prayer-steps li { padding: 15px 18px 15px 58px; position: relative; color: var(--muted); background: var(--ice); border-radius: 10px; line-height: 1.55; counter-increment: prayer-step; }
.prayer-steps li::before { content: counter(prayer-step); position: absolute; left: 17px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--blue-2); border-radius: 50%; font-size: 12px; font-weight: 700; }
.mystery-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.mystery-grid section { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.mystery-grid strong,.mystery-grid small { display: block; }
.mystery-grid strong { color: var(--navy); font: 700 22px "Spectral",serif; }
.mystery-grid small { margin: 3px 0 15px; color: var(--blue-2); font-weight: 700; }
.mystery-grid ol { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.prayer-details { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.prayer-details summary { padding: 17px 20px; color: var(--blue); font-weight: 700; cursor: pointer; }
.prayer-details > div { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }
.prayer-details h3 { margin: 25px 0 5px; color: var(--navy); }
.prayer-copy { margin-top: 30px; padding: 28px 30px; color: var(--muted); background: var(--ice); border-left: 4px solid var(--gold); border-radius: 4px 14px 14px 4px; line-height: 1.75; }
.prayer-copy h3 { margin: 25px 0 6px; color: var(--navy); }
.prayer-copy h3:first-child { margin-top: 0; }
.prayer-copy p { margin: 0 0 14px; }
.prayer-copy small,.tessera-prayers small,.related-prayers small { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tessera-prayers { display: grid; gap: 10px; }
.tessera-prayers .prayer-details { margin-top: 0; }
.tessera-grid { margin: 30px 0; }
.related-prayers { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.related-prayers section { padding: 25px; background: var(--ice); border-radius: 14px; }
.related-prayers h3 { margin: 0 0 8px; color: var(--navy); }
.related-prayers p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.related-prayers ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.related-prayers .text-link { display: inline-block; margin-top: 12px; }
.prayer-note { margin-top: 70px; }
.inactive-prayer { display: none; }
.prayer-section.customized > :not(header):not(.managed-prayer-content) { display: none; }
.managed-prayer-content { color: var(--muted); font-size: 17px; line-height: 1.75; }
.managed-prayer-content h3 { margin: 30px 0 8px; color: var(--navy); }
.managed-prayer-content img { max-width: 100%; height: auto; }
.admin-warning { margin-bottom: 25px; padding: 18px 20px; color: #78591e; background: #fff6df; border: 1px solid #ead39a; border-radius: 12px; }
.admin-warning p { margin: 4px 0 0; }
.admin-create-card { margin-bottom: 60px; border: 1px solid var(--line); border-radius: 14px; background: var(--ice); }
.admin-create-card > summary { padding: 20px 24px; color: var(--blue); font-weight: 700; cursor: pointer; }
.admin-prayer-form { padding: 8px 24px 28px; }
.admin-heading { margin-top: 15px; }
.admin-prayer-list { display: grid; gap: 10px; }
.admin-prayer-item { border: 1px solid var(--line); border-radius: 13px; background: white; }
.admin-prayer-item.inactive { opacity: .7; }
.admin-prayer-item > summary { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; list-style: none; cursor: pointer; }
.admin-prayer-item > summary::-webkit-details-marker { display: none; }
.admin-prayer-item summary strong,.admin-prayer-item summary small { display: block; }
.admin-prayer-item summary small { margin-top: 3px; color: var(--muted); }
.admin-prayer-item summary > b { color: var(--blue); font-size: 12px; }
.admin-status { padding: 6px 9px; color: #1c694d; background: #e5f5ee; border-radius: 999px; font-size: 11px; font-weight: 700; }
.admin-prayer-item.inactive .admin-status { color: var(--red); background: #fbe9e9; }
.alert-banner { margin-top: 18px; padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.alert-banner.success { background: #e5f5ee; color: #1c694d; }
.alert-banner.error { background: #fbe9e9; color: #913b3b; }
.auth-section { min-height: calc(100vh - 76px); display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-visual { min-height: 700px; padding: 70px; display: flex; align-items: flex-end; color: white; background: radial-gradient(circle at 50% 25%,rgba(87,169,231,.5),transparent 32%),linear-gradient(145deg,#145ca3,#061f3e); }
.auth-quote { max-width: 520px; }
.auth-quote blockquote { margin: 0 0 18px; font: 600 clamp(38px,5vw,62px)/1.1 "Spectral",serif; }
.auth-quote p { color: #c0d8ec; font-size: 17px; }
.auth-panel { min-width: 0; display: grid; place-items: center; padding: 70px 30px; }
.auth-card { width: 100%; max-width: 460px; min-width: 0; }
.auth-card h1 { font-size: 46px; margin-bottom: 12px; }
.auth-card > p { color: var(--muted); line-height: 1.6; margin-bottom: 30px; }
.form-stack { display: grid; gap: 18px; }
.form-stack label,.form-grid label,.date-filter label { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
input,textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: white; border: 1px solid #cbdbe7; border-radius: 6px; outline: none; }
textarea { resize: vertical; }
input:focus,textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(20,92,163,.09); }
label span.field-validation-error,.validation { color: var(--red); font-size: 13px; }
.check-row { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.check-row input { width: 18px; min-height: 18px; accent-color: var(--blue); }
.google-button { width: 100%; min-height: 54px; padding: 0 22px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--ink); border: 1px solid #cbdbe7; border-radius: 7px; background: white; font-weight: 700; transition: border-color .2s, box-shadow .2s, transform .2s; }
.google-button:hover { border-color: #9cb8ce; box-shadow: 0 10px 30px rgba(8,46,90,.12); transform: translateY(-2px); }
.google-button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.auth-security { margin-top: 24px; padding-top: 20px; display: flex; align-items: center; gap: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.auth-security span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--green); background: #e5f5ee; border-radius: 50%; font-weight: 700; }
.auth-security p { margin: 0; }
.section-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 39px; }
.count-badge { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 700; }
.group-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.group-card { padding: 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; transition: .2s; }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.group-monogram,.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font: 700 22px "Spectral",serif; }
.group-card h3 { margin: 0 0 3px; color: var(--navy); font-size: 17px; }
.group-card p { margin: 0; color: var(--muted); font-size: 12px; }
.circle-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: white; }
.split-forms { margin-top: 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-card { padding: 38px; position: relative; border-radius: var(--radius); background: var(--ice); }
.form-card h2 { font-size: 29px; }
.form-card > p { color: var(--muted); min-height: 52px; }
.card-number { position: absolute; right: 30px; top: 26px; color: #b7ccdc; font: 700 32px "Spectral",serif; }
.empty-card { padding: 55px; text-align: center; border: 1px dashed #b8ccdb; border-radius: var(--radius); background: var(--ice); }
.empty-card > span { color: var(--gold); font-size: 32px; }
.empty-state { padding: 140px 0; text-align: center; }
.empty-icon { margin: 0 auto 25px; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: #fbe9e9; font-size: 32px; }
.dashboard-hero { padding: 42px 0 0; color: white; background: linear-gradient(120deg,var(--blue),var(--navy)); }
.dashboard-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 38px; }
.dashboard-title h1 { color: white; font-size: clamp(38px,5vw,58px); margin: 7px 0 4px; }
.dashboard-title p { color: #bcd3e8; margin: 0; }
.back-link { display: inline-block; margin-bottom: 25px; color: #bcd3e8; font-size: 13px; }
.dashboard-mark { width: 100px; height: 100px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #cbe4f8; font: 700 48px "Spectral",serif; }
.section-nav-wrap { overflow-x: auto; }
.section-nav { display: flex; gap: 4px; min-width: max-content; }
.section-nav a { padding: 15px 18px; color: #bad3e8; font-size: 13px; font-weight: 600; border-bottom: 3px solid transparent; }
.section-nav a:hover { color: white; border-color: var(--gold); }
.dashboard-content { padding-top: 20px; padding-bottom: 100px; }
.dashboard-section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.module-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.module-card { min-height: 190px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(8,46,90,.06); transition: transform .2s ease,border-color .2s ease; }
.module-card:hover { transform: translateY(-4px); border-color: var(--blue-2); }
.module-card > span { color: var(--gold); font-weight: 700; }
.module-card h3 { margin: 32px 0 7px; color: var(--navy); font-size: 24px; }
.module-card p { margin: 0; color: var(--muted); }
.module-card.role-card { border-top: 4px solid var(--blue); }
.module-invite { margin: 45px 0 80px; }
.narrow-wide { width: min(100% - 40px,900px); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stats-grid article { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stats-grid strong { display: block; margin-top: 18px; color: var(--navy); font: 700 36px "Spectral",serif; }
.stats-grid p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.stat-icon { color: var(--blue-2); font-size: 22px; }
.invite-card { margin-top: 28px; padding: 35px 42px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: var(--radius); color: white; background: var(--navy); }
.invite-card h2 { color: white; margin-bottom: 7px; }
.invite-card p { color: #b8cee2; }
.qr-code { width: 180px; height: 180px; border: 10px solid white; border-radius: 12px; }
.qr-code.compact { width: 130px; height: 130px; border-width: 7px; margin-bottom: 15px; }
.friend-qr-code { display: block; width: min(100%,320px); height: auto; margin: 20px auto; }
.profile-qr-code { width: 240px; height: auto; flex: 0 0 auto; }
.copy-field { display: flex; max-width: 430px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; }
.copy-field code { flex: 1; padding: 12px 14px; overflow: hidden; color: inherit; white-space: nowrap; text-overflow: ellipsis; }
.copy-field button { border: 0; padding: 0 16px; color: var(--navy); background: white; font-weight: 700; }
.member-list { display: grid; gap: 10px; }
.member-row { padding: 16px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.avatar { width: 44px; height: 44px; font-size: 18px; }
.avatar.small { width: 38px; height: 38px; font-size: 15px; }
.member-info strong,.member-info span { display: block; }
.member-info span { color: var(--muted); font-size: 12px; }
.permissions { position: relative; }
.permissions summary { list-style: none; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.permissions form { position: absolute; z-index: 10; right: 0; top: 30px; width: 230px; padding: 18px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.permissions label { display: flex; gap: 8px; font-size: 13px; }
.permissions input { min-height: auto; width: auto; }
.permission-group-title { margin-top: 4px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 20px; }
.task-list { display: grid; gap: 8px; }
.task-quick-create { margin-bottom: 55px; }
.task-icon-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.task-icon-grid > .muted { grid-column: 1/-1; }
.task-icon-card { min-width: 0; padding: 17px 18px; display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 13px; transition: .2s; }
.task-icon-card:hover { transform: translateY(-2px); border-color: var(--blue-2); box-shadow: 0 10px 28px rgba(8,46,90,.08); }
.task-icon-card > span:nth-child(2) { min-width: 0; }
.task-icon-card strong,.task-icon-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.task-icon-card strong { color: var(--navy); }
.task-icon-card small { margin-top: 3px; color: var(--muted); }
.task-icon-card > b { color: var(--blue-2); }
.task-card-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--sky); border-radius: 50%; font-weight: 700; }
.task-icon-card.completed .task-card-icon { color: white; background: var(--green); }
.completed-tasks { margin-top: 45px; border-top: 1px solid var(--line); }
.completed-tasks > summary { padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; color: var(--navy); list-style: none; cursor: pointer; }
.completed-tasks > summary::-webkit-details-marker { display: none; }
.completed-tasks > summary strong,.completed-tasks > summary small { display: block; }
.completed-tasks > summary small { margin-top: 3px; color: var(--muted); font-weight: 400; }
.completed-tasks[open] > summary b { transform: rotate(45deg); }
.communication-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; }
.conversation-list { border-top: 1px solid var(--line); }
.conversation-row { padding: 14px 5px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.conversation-row span:nth-child(2) { min-width: 0; }
.conversation-row strong,.conversation-row small { display: block; }
.conversation-row small { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.conversation-row b { color: var(--blue); }
.friend-panel { padding: 28px; border-radius: 16px; background: var(--ice); }
.friend-panel > p { color: var(--muted); }
.friend-panel .copy-field { margin-bottom: 20px; border-color: var(--line); background: white; }
.date-filter { margin-bottom: 24px; display: flex; align-items: end; gap: 10px; }
.attendance-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.attendance-card { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.attendance-card > input { position: absolute; opacity: 0; pointer-events: none; }
.attendance-card strong,.attendance-card small { grid-column: 2; }
.attendance-card small { color: var(--muted); }
.attendance-card:has(input:checked) { border-color: #70b89e; background: #edf8f3; box-shadow: inset 4px 0 var(--green); }
.visitor-section { margin: 45px 0 30px; padding-top: 35px; border-top: 1px solid var(--line); }
.visitor-section > .muted { margin: -12px 0 24px; }
.visitor-chip-list { margin-bottom: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.visitor-chip { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; background: var(--ice); border: 1px solid var(--line); border-radius: 12px; }
.visitor-chip strong,.visitor-chip small { display: block; }
.visitor-chip small { margin-top: 2px; color: var(--muted); }
.visitor-chip > button { width: 32px; height: 32px; color: var(--red); background: white; border: 1px solid #efc9c9; border-radius: 50%; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.form-grid .full { grid-column: 1/-1; }
.form-grid button { width: max-content; }
.report-block { margin-top: 45px; }
.report-row { padding: 13px 0; display: grid; grid-template-columns: 180px 1fr auto; gap: 15px; border-bottom: 1px solid var(--line); }
.report-row em { color: #9a6e27; font-size: 12px; font-style: normal; }
.report-row em.complete { color: var(--green); }
.balance-card { max-width: 390px; margin-bottom: 28px; padding: 25px 30px; color: white; border-radius: 14px; background: linear-gradient(125deg,var(--blue-2),var(--navy)); }
.balance-card span,.balance-card small { display: block; color: #bfd9ed; }
.balance-card strong { display: block; margin: 5px 0; font: 700 38px "Spectral",serif; }
.muted { color: var(--muted); }
.chat-page { min-height: calc(100vh - 76px); padding: 32px 0 60px; background: var(--ice); }
.chat-header { padding: 18px 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.chat-header > a { font-size: 26px; color: var(--blue); }
.chat-header h1 { margin: 0; font-size: 24px; }
.chat-header p { margin: 0; color: var(--muted); font-size: 12px; }
.message-list { min-height: 480px; padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.message { width: fit-content; max-width: 75%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px 15px 15px 15px; background: white; }
.message.mine { align-self: flex-end; color: white; border: 0; border-radius: 15px 5px 15px 15px; background: var(--blue); }
.message small { font-weight: 700; color: var(--blue-2); }
.message.mine small,.message.mine time { color: #c0d9ee; }
.message p { margin: 3px 0; white-space: pre-wrap; }
.message time { display: block; text-align: right; color: var(--muted); font-size: 10px; }
.chat-empty { margin: auto; color: var(--muted); text-align: center; }
.chat-empty span { color: var(--gold); font-size: 32px; }
.message-form { position: sticky; bottom: 12px; padding: 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.message-form textarea { min-height: 48px; border: 0; resize: none; }
.message-form button { width: 48px; height: 48px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-size: 22px; }
.profile-card { padding: 45px; display: grid; grid-template-columns: auto 1fr; gap: 35px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-avatar { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font: 700 48px "Spectral",serif; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-friend-panel { margin-top: 30px; display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.qr-scan-button { width: 100%; }
.qr-scanner-dialog { width: min(94vw,560px); padding: 0; border: 0; border-radius: 18px; color: var(--navy); background: white; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.qr-scanner-dialog::backdrop { background: rgba(4,22,45,.78); }
.qr-scanner-panel { padding: 28px; }
.qr-scanner-panel .section-heading { align-items: flex-start; }
.qr-scanner-panel video { width: 100%; max-height: 60vh; border-radius: 12px; background: #07182b; object-fit: cover; }
.qr-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--navy); background: var(--ice); font-size: 25px; cursor: pointer; }
.app-dialog { width: min(94vw,620px); max-height: 90vh; padding: 0; overflow-y: auto; color: var(--ink); background: white; border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.app-dialog::backdrop { background: rgba(4,22,45,.78); backdrop-filter: blur(3px); }
.app-dialog > * { margin-inline: 30px; }
.dialog-header { margin: 0; padding: 26px 30px 20px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 28px; }
.dialog-header > button { width: 40px; height: 40px; flex: 0 0 auto; color: var(--navy); background: var(--ice); border: 0; border-radius: 50%; font-size: 24px; }
.dialog-form { margin-top: 24px; margin-bottom: 24px; display: grid; gap: 16px; }
.dialog-form h3 { margin: 0; color: var(--navy); }
.dialog-form label { display: grid; gap: 6px; color: var(--navy); font-size: 12px; font-weight: 700; }
.dialog-form label small { color: var(--muted); font-weight: 500; }
.dialog-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.task-dialog-summary { margin-top: 24px; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; color: white; background: linear-gradient(120deg,var(--blue),var(--navy)); border-radius: 12px; }
.task-dialog-summary span,.task-dialog-summary small { color: #c4daec; }
.task-dialog-summary strong { font: 700 28px "Spectral",serif; }
.task-dialog-summary small { grid-column: 1/-1; }
.interaction-history { margin-top: 25px; }
.interaction-history h3 { color: var(--navy); }
.interaction-history > div { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.interaction-history > div span { color: var(--muted); }
.danger-button { width: 100%; margin-bottom: 28px; padding: 13px; color: var(--red); background: #fff8f8; border: 1px solid #efc9c9; border-radius: 8px; font-weight: 700; }
.meeting-edit-notice { margin-bottom: 26px; padding: 15px 18px; display: flex; gap: 12px; align-items: center; color: #1c694d; background: #e5f5ee; border-radius: 10px; }
.meeting-edit-notice span { font-weight: 700; }
.meeting-edit-notice p { margin: 0; }
.meeting-task-snapshot { padding: 32px; background: var(--ice); border-radius: 16px; }
.empty-inline { padding: 22px; color: var(--muted); text-align: center; border: 1px dashed #b8ccdb; border-radius: 10px; }
.snapshot-task { padding: 15px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid var(--line); }
.snapshot-task strong,.snapshot-task span { display: block; }
.snapshot-task span,.snapshot-dates { color: var(--muted); }
.snapshot-task > b { color: var(--green); }
.snapshot-dates { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 7px; }
.snapshot-dates small { padding: 5px 8px; background: white; border-radius: 6px; }
.saved-meetings { margin-top: 70px; }
.meeting-list { display: grid; gap: 10px; }
.meeting-list-item { padding: 15px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; }
.meeting-list-item.selected { border-color: var(--blue-2); box-shadow: inset 4px 0 var(--blue-2); }
.meeting-list-item strong,.meeting-list-item small { display: block; }
.meeting-list-item small { margin-top: 3px; color: var(--muted); }
.meeting-date { width: 62px; padding: 8px; text-align: center; color: white; background: var(--blue); border-radius: 9px; }
.meeting-date strong { font: 700 24px "Spectral",serif; }
.meeting-date span { font-size: 10px; }
.site-footer { padding: 45px 0; color: #aec3d7; background: #061f3e; }
.footer-inner { display: flex; justify-content: space-between; }
.footer-inner strong { color: white; font: 700 21px "Spectral",serif; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: grid; text-align: right; gap: 8px; font-size: 13px; }
.footer-links a { color: white; }

@media (max-width: 1100px) and (min-width: 681px) {
  .topbar-inner { padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .main-nav { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 25px; }
  .hero-art { min-height: 500px; }
  .feature-grid,.stats-grid,.module-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid article:last-child { border-right: 0; }
  .auth-section { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: calc(100vh - 76px); }
  .attendance-grid { grid-template-columns: repeat(2,1fr); }
  .topbar-inner { flex-wrap: wrap; }
  .main-nav { gap: 12px; }
  .guide-intro,.guide-note { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .shell,.narrow { width: min(100% - 26px,1180px); }
  .topbar-inner { min-height: 66px; }
  .brand small { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 22px; align-items: stretch; flex-direction: column; gap: 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav .button { width: 100%; }
  .hero,.hero-grid { min-height: auto; }
  .auth-panel { min-height: calc(100vh - 66px); padding: 54px 20px; }
  .auth-card h1 { font-size: 39px; }
  .hero-copy { padding: 70px 0 25px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { width: max-content; }
  .hero-art { min-height: 440px; transform: scale(.86); margin: -25px -30px; }
  .feature-grid,.group-grid,.split-forms,.stats-grid,.module-grid,.communication-grid,.attendance-grid,.form-grid,.guide-grid,.meeting-timeline,.mystery-grid,.related-prayers { grid-template-columns: 1fr; }
  .feature-grid article { padding: 32px 15px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cta-card { padding: 40px 28px; align-items: flex-start; flex-direction: column; gap: 28px; }
  .cta-card h2 { font-size: 35px; }
  .page-hero { padding: 60px 0 45px; }
  .content-section { padding-top: 45px; }
  .split-forms { margin-top: 35px; }
  .form-card { padding: 28px 22px; }
  .dashboard-title { align-items: flex-start; }
  .dashboard-mark { width: 65px; height: 65px; font-size: 30px; }
  .dashboard-section { padding: 50px 0; }
  .invite-card { padding: 28px 22px; align-items: flex-start; flex-direction: column; }
  .qr-code { align-self: center; }
  .member-row { grid-template-columns: auto 1fr; }
  .permissions { grid-column: 1/-1; }
  .permissions form { position: static; width: 100%; margin-top: 12px; box-shadow: none; }
  .inline-form { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .report-row { grid-template-columns: 1fr; gap: 3px; }
  .profile-card { padding: 28px 20px; grid-template-columns: 1fr; }
  .profile-friend-panel { align-items: stretch; flex-direction: column; }
  .profile-avatar { width: 80px; height: 80px; font-size: 36px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { text-align: left; }
  .message { max-width: 88%; }
  .friend-qr-code { width: 100%; max-width: none; }
  .profile-qr-code { width: 100%; max-width: none; height: auto; }
  .task-icon-grid,.visitor-chip-list { grid-template-columns: 1fr; }
  .dialog-form-grid { grid-template-columns: 1fr; }
  .meeting-list-item { grid-template-columns: auto 1fr; }
  .meeting-list-item .button { grid-column: 1/-1; width: 100%; }
  .visitor-section .section-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .visitor-section .section-heading .button { width: 100%; }
  .guide-grid { margin-bottom: 55px; }
  .guide-note { padding: 30px 24px; }
  .guide-actions { align-items: stretch; flex-direction: column; }
  .meeting-timeline li { min-height: auto; }
  .prayer-section { padding-bottom: 55px; }
}
