:root {
  --cream: #f4efe6;
  --cream-deep: #e9e1d5;
  --paper: #fffdf8;
  --paper-soft: #faf6ef;
  --ink: #2f2a25;
  --muted: #716a62;
  --green: #2f6659;
  --green-dark: #214c43;
  --green-pale: #e0eee7;
  --clay: #c56847;
  --clay-dark: #a95039;
  --gold: #d9a84f;
  --gold-pale: #f6e7c8;
  --line: #ded6ca;
  --danger: #9b3c34;
  --shadow: 0 22px 54px rgba(54, 42, 31, .12);
  --shadow-soft: 0 12px 32px rgba(54, 42, 31, .075);
  --font-sans: Arial, sans-serif;
  --font-serif: Georgia, serif;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }.creator-credit { display: block; width: 100%; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; letter-spacing: .03em; font-weight: 600;}.creator-credit-header { margin: 12px 0 0; }.creator-credit-footer { margin: 0; padding: 0 0 16px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214, 163, 83, .65); outline-offset: 3px; }
.hidden { display: none !important; }
.eyebrow, .section-label, .section-kicker { margin: 0; color: var(--clay); font-size: 11px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.primary-button, .secondary-button, .text-button, .plain-button, .back-button { border: 0; text-decoration: none; cursor: pointer; }
.primary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border-radius: 14px; background: var(--clay); color: #fffaf4; font-weight: 780; box-shadow: 0 7px 17px rgba(184, 102, 72, .18); }
.primary-button:hover { background: var(--clay-dark); }
.secondary-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-weight: 740; }
.wide { width: 100%; }
.plain-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; background: transparent; color: var(--muted); font-weight: 710; }
.plain-button.danger { color: var(--danger); }
.flash { width: min(100%, 840px); margin: 0 auto 18px; padding: 13px 15px; border: 1px solid; border-radius: 13px; font-size: 14px; line-height: 1.45; }
.flash-success { color: #3d6245; background: #eef6e9; border-color: #c9dec0; }
.flash-error { color: #87372f; background: #fff0ec; border-color: #e7c1b9; }

/* Public and onboarding */
.public-shell { width: min(100%, 1120px); min-height: 100vh; margin: auto; padding: 22px 18px 40px; }
.public-brand, .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.public-brand { width: max-content; margin: 0 0 28px; }
.brand-mark { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--clay); color: #fffaf4; }
.public-brand strong, .public-brand small, .brand strong, .brand small { display: block; }
.public-brand strong, .brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.02em; }
.public-brand small, .brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.welcome-screen { display: grid; align-items: center; gap: 30px; min-height: calc(100vh - 118px); }
.welcome-art { position: relative; min-height: 290px; overflow: hidden; border-radius: 32px; background: var(--green-dark); box-shadow: var(--shadow); }
.welcome-art::before, .welcome-art::after { content: ""; position: absolute; left: -20%; width: 140%; height: 160px; border-radius: 50%; }
.welcome-art::before { bottom: -75px; background: #748566; transform: rotate(-4deg); }
.welcome-art::after { bottom: -108px; background: #91a17d; transform: rotate(6deg); }
.welcome-art > span { position: absolute; z-index: 2; top: 50%; left: 50%; width: 112px; height: 112px; display: grid; place-items: center; transform: translate(-50%, -55%); border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(255,253,248,.93); color: var(--clay); box-shadow: 0 16px 36px rgba(20, 42, 33, .18); }
.welcome-art i, .welcome-art b { position: absolute; display: block; border-radius: 50%; background: var(--gold); }
.welcome-art i { width: 13px; height: 13px; top: 23%; left: 20%; opacity: .65; }
.welcome-art b { width: 8px; height: 8px; top: 32%; right: 21%; opacity: .85; }
.welcome-copy h1 { max-width: 680px; margin: 10px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 11vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.welcome-copy > p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.welcome-actions { display: grid; gap: 10px; margin-top: 27px; }
.trust-note { display: flex; gap: 10px; align-items: flex-start; max-width: 620px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.trust-note svg { flex: 0 0 auto; color: var(--green); }
.auth-card { width: min(100%, 510px); margin: 7vh auto 0; padding: 27px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.auth-heading h1, .empty-state h1 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 9vw, 45px); line-height: 1.06; letter-spacing: -.035em; }
.auth-heading > p:last-child, .empty-state > p { margin: 0; color: var(--muted); line-height: 1.6; }
.form-stack { display: grid; gap: 16px; margin-top: 25px; }
.form-stack label, .complete-form label { display: grid; gap: 7px; color: #58493f; font-size: 13px; font-weight: 730; }
.field-help, .complete-form label > span { color: var(--muted); font-size: 11px; font-weight: 520; }
input, select, textarea { width: 100%; border: 1px solid #cfc1b2; border-radius: 12px; background: #fffefa; }
input, select { height: 51px; padding: 0 13px; }
textarea { min-height: 112px; padding: 13px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a09488; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.switch-auth { margin: 21px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.switch-auth a { color: var(--green-dark); font-weight: 780; }
.role-rule { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 13px; background: var(--green-pale); color: #58664e; font-size: 12px; line-height: 1.5; }
.role-rule svg { flex: 0 0 auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-state > span { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-pale); color: var(--clay); }
.empty-state .primary-button { margin-top: 20px; }

/* App frame */
.app-shell { min-height: 100vh; }
.side-panel { display: none; }
.app-column { min-height: 100vh; padding-bottom: 87px; }
.mobile-header { position: sticky; z-index: 25; top: 0; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .96); backdrop-filter: blur(14px); }
.avatar { flex: 0 0 auto; width: 41px; height: 41px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold-pale); color: #76513b; text-decoration: none; font-weight: 800; font-size: 13px; }
.avatar.large { width: 46px; height: 46px; }
.content-wrap { width: min(100%, 1030px); margin: auto; padding: 26px 18px 42px; }
.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; height: calc(73px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 4px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 253, 248, .98); }
.bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7b8680; text-decoration: none; font-size: 10px; font-weight: 710; }
.bottom-item.active { color: var(--green-dark); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 3px 2px 24px; }
.page-heading h1 { margin: 7px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 8.5vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.page-heading > div > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.family-pill, .family-count { display: none; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d9c7a6; border-radius: 999px; background: #fff8eb; color: #775631; font-size: 12px; white-space: nowrap; }

/* Today */
.devotional-card { overflow: hidden; display: grid; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.devotional-copy { padding: 28px 24px; }
.section-label { display: flex; align-items: center; gap: 7px; }
.devotional-card h2 { max-width: 580px; margin: 19px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 9vw, 51px); line-height: 1.01; letter-spacing: -.045em; }
.reference { margin: 0; color: var(--green-dark); font-weight: 800; }
.devotional-summary { max-width: 530px; margin: 18px 0; color: var(--muted); line-height: 1.65; }
.time { display: flex; align-items: center; gap: 8px; margin: 0 0 21px; color: #785a46; font-size: 13px; }
.devotional-art { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 25px; border-top: 1px solid #d1ddc6; background: var(--green-pale); color: var(--green-dark); text-align: center; }
.devotional-art > span { width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid #bdcbb3; border-radius: 50%; background: #f8f4e9; }
.devotional-art p { max-width: 250px; margin: 0; color: #5e6c54; font-family: Georgia, "Times New Roman", serif; line-height: 1.5; }
.devotional-card.evening .devotional-art { color: #f4d59c; border-color: #354c49; background: #243e3b; }
.devotional-card.evening .devotional-art > span { border-color: #607976; background: #314e4a; }
.devotional-card.evening .devotional-art p { color: #dae5df; }
.period-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0 0; }
.period-switch a { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.6); text-decoration: none; color: var(--muted); }
.period-switch a.active { border-color: #bdcaae; background: var(--paper); color: var(--green-dark); box-shadow: 0 5px 14px rgba(75,53,40,.05); }
.period-switch strong, .period-switch small { display: block; }
.period-switch small { margin-top: 2px; font-size: 10px; }
.quick-grid { display: grid; gap: 14px; margin-top: 15px; }
.quick-card { min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.quick-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); }
.situation-card .quick-icon { background: var(--gold-pale); color: var(--clay); }
.quick-card h3 { margin: 7px 0 7px; font-size: 19px; letter-spacing: -.02em; }
.quick-card > p:not(.section-label) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.52; }
.text-button { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 19px; background: none; color: var(--green-dark); font-weight: 780; }
.progress-card { margin-top: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.progress-heading h2 { margin: 6px 0 0; font-size: 21px; letter-spacing: -.02em; }
.progress-heading > strong { color: var(--muted); font-size: 12px; }
.progress-track { height: 8px; overflow: hidden; margin: 19px 0 12px; border-radius: 999px; background: #e7ebe5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.progress-row { min-height: 51px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; border-top: 1px solid #ede8e0; }
.progress-row:first-of-type { border-top: 0; }
.progress-row strong { font-size: 13px; }
.progress-row small { color: var(--muted); font-size: 11px; }
.status-dot { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #c8d0cb; border-radius: 50%; }
.status-dot.done { border-color: var(--green-pale); background: var(--green-pale); color: var(--green-dark); }

/* Devotional */
.detail-header { display: grid; grid-template-columns: 44px 1fr; align-items: flex-start; gap: 13px; margin: 2px 0 25px; }
.back-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.detail-header h1 { margin: 7px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 8vw, 47px); line-height: 1.04; letter-spacing: -.04em; }
.detail-header div > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.stage-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 15px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream-deep); }
.stage-tabs button { min-height: 57px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.stage-tabs button span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #c5b6a6; border-radius: 50%; }
.stage-tabs button.active { background: var(--paper); color: #684d3e; box-shadow: 0 2px 8px rgba(70,48,35,.07); }
.stage-tabs button.active span { border-color: var(--clay); background: var(--clay); color: white; }
.devotional-stage { padding: 23px 19px; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: 0 10px 28px rgba(75,53,40,.055); }
.stage-intro { padding: 2px 1px 22px; border-bottom: 1px solid var(--line); }
.stage-intro h2 { margin: 8px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 7vw, 39px); line-height: 1.08; }
.stage-intro > p:last-child { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.6; }
.content-section { display: grid; grid-template-columns: 47px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.round-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); }
.hymn-section .round-icon { background: var(--gold-pale); color: var(--clay); }
.content-section h3 { display: flex; align-items: center; gap: 9px; margin: 4px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.25; }
.content-section small, .translation-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.hymn-number { min-width: 34px; display: inline-grid; place-items: center; padding: 4px 6px; border-radius: 8px; background: #fff3e4; color: #845b38; font-family: var(--font-sans); font-size: 12px; }
.bible-text { margin: 22px 0 9px; padding: 20px; border: 0; border-left: 4px solid var(--green); background: #f4f6ef; color: #4d473e; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.72; }
.translation-note { margin: 0 0 22px; }
.inductive-list { display: grid; gap: 11px; margin: 22px 0; }
.inductive-list article { display: grid; grid-template-columns: 35px 1fr; gap: 12px; align-items: flex-start; padding: 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fffefa; }
.inductive-list article > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-pale); color: #755039; font-size: 12px; font-weight: 850; }
.inductive-list p, .application-block small { margin: 0 0 5px; color: var(--clay); font-size: 10px; font-weight: 820; letter-spacing: .1em; }
.inductive-list h3, .application-block h3 { margin: 0; font-size: 16px; line-height: 1.52; }
.application-block { margin: 23px 0 14px; padding: 19px; border: 1px solid #cedbc3; border-radius: 16px; background: var(--green-pale); }
.application-block > div { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding-top: 16px; }
.application-block > div + div { margin-top: 15px; border-top: 1px solid #cdd8c4; }
.application-block > div > span { color: var(--green-dark); }
.practice-block { margin: 0 0 22px; padding: 20px; border: 1px solid #e1c6aa; border-radius: 16px; background: #fff6e8; }
.practice-block h2 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.5; }
.complete-form { display: grid; gap: 16px; }
.devotional-stage > .plain-button { width: 100%; margin-top: 5px; }

/* Situation */
.situation-reveal { position: relative; overflow: hidden; min-height: 510px; border-radius: 24px; background: #294540; color: #fff; box-shadow: var(--shadow); }
.reveal-cover, .situation-content { padding: 29px 23px; }
.reveal-cover { min-height: 510px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; transition: opacity .28s ease, transform .28s ease; }
.reveal-cover > span { width: 69px; height: 69px; display: grid; place-items: center; margin-bottom: 23px; border-radius: 50%; background: rgba(255,255,255,.1); color: #f1cd90; }
.reveal-cover h2 { max-width: 650px; margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 8vw, 45px); line-height: 1.08; }
.reveal-cover > p:not(.eyebrow) { max-width: 580px; margin: 0 0 24px; color: #d5e2dd; line-height: 1.65; }
.reveal-cover .primary-button { background: #f1cf91; color: #4e3823; box-shadow: none; }
.situation-content { display: none; color: #fff; }
.situation-reveal.revealed .reveal-cover { display: none; }
.situation-reveal.revealed .situation-content { display: block; }
.situation-content h2 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 8vw, 45px); }
.situation-content blockquote { margin: 15px 0 26px; padding: 21px; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; background: rgba(255,255,255,.07); font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.6; }
.conversation-questions { display: grid; gap: 10px; }
.conversation-questions > div { display: grid; grid-template-columns: 31px 1fr; gap: 11px; align-items: flex-start; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.08); }
.conversation-questions > div > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f1cf91; color: #4e3823; font-size: 11px; font-weight: 850; }
.conversation-questions p { margin: 1px 0 0; line-height: 1.5; }
.situation-content .complete-form { margin-top: 24px; padding: 19px; border-radius: 16px; background: var(--paper); color: var(--ink); }

/* Mission */
.mission-card-full { max-width: 680px; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto; padding: 32px 23px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); text-align: center; box-shadow: var(--shadow); }
.mission-seal { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); }
.mission-card-full h2 { max-width: 570px; margin: 9px 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 8vw, 43px); line-height: 1.08; }
.mission-card-full > p:not(.eyebrow) { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.mission-card-full form, .mission-card-full > .secondary-button { width: min(100%, 380px); margin-top: 25px; }
.mission-card-full form .primary-button { width: 100%; }
.mission-card-full > small { margin-top: 12px; color: var(--muted); }
.mission-card-full.completed .mission-seal { color: white; background: var(--green); }
.mission-card-full.completed > strong { margin-top: 20px; padding: 11px 15px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); }
.duration-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding: 9px 12px; border-radius: 999px; background: #fff4e4; color: #775334; font-size: 12px; font-weight: 750; }

/* Family */
.family-list { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.family-list article { min-height: 71px; display: grid; grid-template-columns: 47px 1fr auto; align-items: center; gap: 12px; padding: 10px 15px; border-top: 1px solid #ede8e0; }
.family-list article:first-child { border-top: 0; }
.family-list strong, .family-list small { display: block; }
.family-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.family-list b { color: var(--green-dark); font-size: 11px; }
.invite-panel, .account-panel { margin-top: 15px; padding: 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); }
.invite-panel > div { display: grid; grid-template-columns: 48px 1fr; gap: 13px; }
.invite-panel > div > span { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); }
.invite-panel h2 { margin: 6px 0 5px; font-size: 20px; }
.invite-panel p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.invite-panel form { margin-top: 18px; }
.invite-panel .primary-button { width: 100%; }
.account-panel { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.account-panel > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.account-panel strong, .account-panel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(16, 36, 30, .68); }
.invite-modal { position: relative; width: min(100%, 420px); padding: 29px 24px; border-radius: 25px; background: var(--paper); text-align: center; box-shadow: 0 25px 70px rgba(10,22,19,.3); }
.modal-close { position: absolute; top: 11px; right: 11px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #efede8; text-decoration: none; font-size: 25px; line-height: 1; }
.modal-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--green-pale); color: var(--green-dark); }
.invite-modal h2 { margin: 6px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.invite-modal > p:not(.eyebrow) { margin: 12px 0; color: var(--muted); }
.invite-modal > small { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.qr-canvas { width: 236px; height: 236px; display: grid; place-items: center; margin: 19px auto 9px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.qr-canvas canvas { max-width: 100%; height: auto; }

@media (min-width: 640px) {
  .public-shell { padding: 30px; }
  .welcome-actions { grid-template-columns: auto auto; justify-content: start; }
  .auth-card { padding: 34px; }
  .content-wrap { padding: 35px 28px 48px; }
  .family-pill, .family-count { display: inline-flex; }
  .devotional-card { grid-template-columns: 1.45fr .75fr; min-height: 370px; }
  .devotional-copy { padding: 37px; }
  .devotional-art { min-height: 100%; border-top: 0; border-left: 1px solid #d1ddc6; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .devotional-stage { padding: 31px 33px; }
  .reveal-cover, .situation-content { padding: 42px; }
  .invite-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
  .invite-panel form { margin-top: 0; }
}

@media (max-width: 380px) {
  .content-wrap { padding-right: 14px; padding-left: 14px; }
  .mobile-header { padding-right: 14px; padding-left: 14px; }
  .devotional-copy, .reveal-cover, .situation-content { padding-right: 19px; padding-left: 19px; }
  .devotional-card h2 { font-size: 32px; }
  .primary-button { width: 100%; }
  .bottom-item { font-size: 9px; }
  .stage-tabs button { gap: 5px; font-size: 10px; }
}

@media (min-width: 880px) {
  .welcome-screen { grid-template-columns: .9fr 1.1fr; gap: 60px; }
  .welcome-art { min-height: 600px; order: 2; }
}

@media (min-width: 960px) {
  .app-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); }
  .side-panel { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 29px 20px 24px; border-right: 1px solid var(--line); background: var(--paper); }
  .side-panel .brand { margin: 0 7px 34px; }
  .side-nav { display: grid; gap: 7px; }
  .nav-item { min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border-radius: 13px; color: #65726d; text-decoration: none; font-weight: 690; }
  .nav-item.active { background: var(--green-pale); color: var(--green-dark); }
  .member-mini { min-width: 0; display: grid; grid-template-columns: 41px 1fr; align-items: center; gap: 11px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .member-mini strong, .member-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .member-mini strong { font-size: 12px; }
  .member-mini small { margin-top: 3px; color: var(--muted); font-size: 10px; }
  .mobile-header, .bottom-nav { display: none; }
  .app-column { padding-bottom: 0; }
  .content-wrap { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Identidade visual Oikodome: acolhimento, clareza e uso com uma mão. */
body {
  background:
    radial-gradient(circle at 92% 4%, rgba(217,168,79,.12), transparent 25rem),
    radial-gradient(circle at 16% 46%, rgba(47,102,89,.055), transparent 28rem),
    var(--cream);
}
.mobile-header { background: rgba(255,253,248,.92); backdrop-filter: blur(18px); }
.app-column { padding-bottom: 102px; }
.brand-mark {
  position: relative;
  overflow: visible;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--clay), var(--clay-dark));
  box-shadow: 0 7px 18px rgba(165,80,57,.22);
}
.brand-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
}
.public-brand strong, .brand strong { color: var(--ink); font-size: 22px; }
.content-wrap { padding-top: 30px; }
.page-heading { margin-bottom: 27px; }
.page-heading h1 { color: #292620; text-wrap: balance; }
.family-pill, .family-count { border-color: #ead6aa; background: rgba(255,253,248,.76); box-shadow: 0 7px 20px rgba(83,60,31,.055); }

.welcome-art {
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 23%, rgba(241,204,132,.28), transparent 9rem),
    linear-gradient(150deg, #2f6659, #173d36);
}
.welcome-art::before { background: #557b68; }
.welcome-art::after { background: #7e9b78; }
.welcome-art > span { border-radius: 29px; box-shadow: 0 20px 44px rgba(13,37,31,.24); }
.welcome-copy h1 { color: #292620; text-wrap: balance; }
.auth-card { border-color: rgba(75,58,50,.12); box-shadow: var(--shadow); }
input, select, textarea { border-color: #d6ccbe; background: var(--paper); }

.devotional-card {
  min-height: 390px;
  border: 0;
  border-radius: 28px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}
.devotional-copy {
  background:
    radial-gradient(circle at 4% 100%, rgba(255,255,255,.06), transparent 18rem),
    linear-gradient(145deg, #26584e, var(--green-dark));
}
.devotional-card .section-label { color: #f2cc84; }
.devotional-card h2 { color: #fffaf0; text-wrap: balance; }
.devotional-card .reference { color: #b9d7cd; }
.devotional-card .devotional-summary { color: #d9e5e0; }
.devotional-card .time { color: #f2dfc2; }
.devotional-card .primary-button { background: var(--clay); box-shadow: 0 10px 24px rgba(14,31,27,.23); }
.devotional-card .primary-button:hover { background: #d37250; transform: translateY(-2px); }
.devotional-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(160deg, #f8e3b2 0%, #e5bd72 52%, #7d9b7a 100%);
  color: var(--green-dark);
}
.devotional-card.evening .devotional-art {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(160deg, #e8c4a3 0%, #bc7d70 50%, #526a68 100%);
}
.devotional-art::before, .devotional-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -25%;
  width: 150%;
  height: 42%;
  border-radius: 50% 50% 0 0;
}
.devotional-art::before { bottom: -19%; background: #5b7c67; transform: rotate(-5deg); }
.devotional-art::after { bottom: -29%; left: -10%; background: #315b51; transform: rotate(8deg); }
.art-scene { position: relative; width: 170px; height: 152px; display: grid; place-items: center; }
.sun-disc {
  position: absolute;
  top: 1px;
  right: 8px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,248,220,.9);
  box-shadow: 0 0 0 15px rgba(255,244,203,.2);
}
.devotional-card.evening .sun-disc { width: 66px; height: 66px; background: rgba(255,233,210,.76); }
.devotional-symbol {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33,76,67,.18);
  border-radius: 47% 47% 42% 42%;
  background: rgba(255,253,248,.93);
  color: var(--green-dark);
  box-shadow: 0 16px 32px rgba(44,58,43,.18);
}
.devotional-art p { position: relative; z-index: 2; max-width: 245px; color: #38584f; font-family: inherit; }
.devotional-art p strong, .devotional-art p span { display: block; }
.devotional-art p strong { margin-bottom: 4px; color: #203f38; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.devotional-art p span { font-size: 12px; line-height: 1.45; }
.devotional-card.evening .devotional-art p, .devotional-card.evening .devotional-art p strong { color: #fff9ef; }

.period-switch {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(75,58,50,.11);
  border-radius: 19px;
  background: rgba(232,224,212,.7);
}
.period-switch a { min-height: 61px; border: 0; border-radius: 14px; background: transparent; }
.period-switch a.active { border: 0; box-shadow: 0 5px 16px rgba(54,42,31,.09); }

.quick-grid { gap: 16px; margin-top: 20px; }
.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  border-color: rgba(75,58,50,.12);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.quick-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--green); }
.quick-card.situation-card::before { background: var(--clay); }
.quick-icon { border-radius: 15px; }
.quick-card h3 { font-size: 21px; }
.text-button { color: var(--green-dark); }
.text-button:hover { transform: translateX(3px); }

.progress-card {
  margin-top: 20px;
  border-color: rgba(75,58,50,.12);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.progress-heading > strong { padding: 7px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); }
.progress-track { height: 10px; background: #e6ebe6; }
.progress-track span { background: linear-gradient(90deg, var(--green), #72a174); }
.status-dot.done { border-color: var(--green); background: var(--green); color: white; }

.bottom-nav {
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: calc(72px + env(safe-area-inset-bottom));
  border: 1px solid rgba(75,58,50,.14);
  border-radius: 23px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 14px 38px rgba(42,38,31,.16);
  backdrop-filter: blur(18px);
}
.bottom-item { position: relative; border-radius: 16px; }
.bottom-item.active { color: var(--green-dark); background: var(--green-pale); }
.bottom-item.active::before { content: ""; position: absolute; top: 5px; width: 18px; height: 3px; border-radius: 99px; background: var(--green); }

.devotional-stage, .family-list, .invite-panel, .account-panel,
.mission-card-full, .invite-modal { border-color: rgba(75,58,50,.12); box-shadow: var(--shadow-soft); }
.stage-tabs { border-color: rgba(75,58,50,.12); background: rgba(232,224,212,.78); }
.bible-text { border-left-color: var(--green); background: #eef5f0; }
.inductive-list article { border-color: rgba(75,58,50,.12); box-shadow: 0 5px 14px rgba(54,42,31,.035); }
.mission-card-full { background: radial-gradient(circle at 50% 0, rgba(217,168,79,.18), transparent 15rem), var(--paper); }
.situation-reveal { background: linear-gradient(145deg, #2e6156, #173d36); box-shadow: var(--shadow); }
.invite-panel > div > span, .modal-icon { border-radius: 15px; }

@media (min-width: 640px) {
  .devotional-card { grid-template-columns: 1.38fr .82fr; }
  .devotional-art { border-left: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 639px) {
  .content-wrap { padding-right: 16px; padding-left: 16px; }
  .devotional-copy { padding: 30px 23px 27px; }
  .devotional-card h2 { font-size: clamp(34px, 11vw, 43px); }
  .devotional-art { min-height: 265px; padding: 23px; }
  .quick-card { min-height: 226px; padding: 21px; }
  .progress-card { padding: 21px; }
}

@media (min-width: 960px) {
  .app-shell { grid-template-columns: 258px minmax(0, 1fr); }
  .side-panel {
    padding: 30px 22px 25px;
    border-right: 0;
    background:
      radial-gradient(circle at 20% 0, rgba(217,168,79,.14), transparent 16rem),
      var(--green-dark);
    box-shadow: 9px 0 32px rgba(31,57,50,.08);
  }
  .side-panel .brand strong { color: #fffaf0; }
  .side-panel .brand small { color: #bcd0c9; }
  .side-panel .brand-mark::after { border-color: var(--green-dark); }
  .nav-item { color: #c8d8d2; }
  .nav-item:hover { background: rgba(255,255,255,.07); color: white; }
  .nav-item.active { color: var(--green-dark); background: #f3eadb; box-shadow: 0 8px 20px rgba(12,31,27,.14); }
  .member-mini { border-top-color: rgba(255,255,255,.14); }
  .member-mini .avatar { background: #f3dcb7; }
  .member-mini strong { color: #fffaf0; }
  .member-mini small { color: #afc6be; }
  .content-wrap { padding-top: 50px; }
  .app-column { padding-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button, .text-button { transition: transform .18s ease, background .18s ease; }
  .devotional-card, .quick-card, .progress-card { animation: rise-in .45s ease both; }
  .quick-card:nth-child(2) { animation-delay: .07s; }
  .progress-card { animation-delay: .12s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

/* Fluxo do culto: leitura focada e identidade visual completa. */
.route-devotional .bottom-nav { display: none; }
.route-devotional .app-column { padding-bottom: 18px; }
.route-devotional .content-wrap { width: min(100%, 930px); padding-top: 20px; }
.devotional-detail-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 48px 1fr;
  gap: 11px;
  align-items: start;
  min-height: 238px;
  padding: 24px 21px 54px;
  border-radius: 27px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 91% 12%, rgba(226,179,92,.25), transparent 9rem),
    radial-gradient(circle at 8% 112%, rgba(255,255,255,.09), transparent 14rem),
    linear-gradient(145deg, #2d675a, #173d36);
  box-shadow: var(--shadow);
}
.devotional-detail-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -78px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 66px rgba(255,255,255,.025);
}
.devotional-back {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.1);
  color: white;
  text-decoration: none;
}
.devotional-hero-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #f1ca80;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(10,35,29,.2);
}
.devotional-hero-copy { min-width: 0; }
.devotional-hero-copy .eyebrow { color: #f3cf8c; }
.devotional-hero-copy h1 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 8.5vw, 51px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.devotional-hero-copy > p:last-child { margin: 0; color: #c7dcd5; font-weight: 650; }
.devotional-hero-meta {
  position: relative;
  z-index: 2;
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.devotional-hero-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e6f0ec;
  font-size: 11px;
  font-weight: 680;
}

.stage-tabs {
  position: relative;
  z-index: 3;
  width: calc(100% - 26px);
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: center;
  margin: -32px auto 17px;
  padding: 6px;
  border: 1px solid rgba(75,58,50,.12);
  border-radius: 19px;
  background: rgba(255,253,248,.98);
  box-shadow: 0 13px 32px rgba(30,43,37,.14);
}
.stage-tabs i { height: 2px; border-radius: 99px; background: #ddd5c9; }
.stage-tabs button {
  min-width: 0;
  min-height: 64px;
  justify-content: flex-start;
  padding: 8px 9px;
  border-radius: 14px;
}
.stage-tabs button span { flex: 0 0 auto; width: 31px; height: 31px; }
.stage-tabs button strong { display: grid; text-align: left; font-size: 12px; }
.stage-tabs button strong small { margin-bottom: 3px; color: #9a8f83; font-size: 8px; letter-spacing: .09em; }
.stage-tabs button.active { color: var(--green-dark); background: var(--green-pale); box-shadow: none; }
.stage-tabs button.active span { border-color: var(--green-dark); background: var(--green-dark); }
.stage-tabs button.done { color: var(--green-dark); }
.stage-tabs button.done span { border-color: var(--green); background: var(--green); color: white; }

.devotional-stage {
  overflow: hidden;
  padding: 0 17px 21px;
  border: 1px solid rgba(75,58,50,.11);
  border-radius: 25px;
  background: rgba(255,253,248,.9);
  box-shadow: var(--shadow-soft);
}
.devotional-stage .stage-intro {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 13px;
  align-items: start;
  margin: 0 -17px 19px;
  padding: 24px 17px 22px;
  border: 0;
  background: linear-gradient(135deg, #fffaf0, #f7efe2);
}
.stage-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--clay);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(197,104,71,.2);
}
.devotional-stage .stage-intro h2 { margin: 5px 0 7px; color: var(--ink); font-size: clamp(28px, 7vw, 39px); }
.devotional-stage .stage-intro > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.devotional-stage .content-section {
  display: block;
  margin: 0 0 14px;
  padding: 17px;
  border: 1px solid rgba(75,58,50,.11);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 7px 20px rgba(54,42,31,.045);
}
.section-title { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.section-title .round-icon { border-radius: 14px; }
.section-title h3 { margin: 0; font-size: 21px; }
.hymn-list { display: grid; gap: 9px; margin-top: 16px; }
.hymn-list article {
  min-height: 60px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 11px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 14px;
  background: #fff7e8;
}
.hymn-list article b {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1cf8e;
  color: #61462d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.hymn-list article > span { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.25; }
.hymn-list article small { display: block; margin-top: 3px; color: var(--muted); font-family: var(--font-sans); font-size: 9px; }
.devotional-stage .scripture-section { border-color: #c8d9d1; background: #f1f7f3; }
.scripture-section > p { margin: 14px 0 0; color: #51665f; font-size: 13px; line-height: 1.55; }
.bible-text {
  position: relative;
  overflow: hidden;
  margin: 0 0 10px;
  padding: 25px 20px 20px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #2b6256, #1e493f);
  color: #fffaf0;
  box-shadow: 0 13px 28px rgba(33,76,67,.17);
}
.bible-text .quote-mark {
  position: absolute;
  top: -24px;
  right: 12px;
  color: rgba(255,255,255,.09);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 130px;
  line-height: 1;
}
.bible-text .section-kicker { color: #f3cf8c; }
.bible-text > p:not(.section-kicker) { position: relative; margin: 9px 0 15px; color: #fffaf0; font-size: 19px; line-height: 1.7; }
.bible-text > small { color: #bcd4cc; font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.translation-note { margin: 0 2px 17px; }
.devotional-stage > .primary-button { min-height: 55px; box-shadow: 0 10px 22px rgba(33,76,67,.18); }

.inductive-list { gap: 11px; margin: 0 0 16px; }
.inductive-list article {
  grid-template-columns: 41px 1fr;
  gap: 12px;
  padding: 17px 15px;
  border: 1px solid rgba(75,58,50,.11);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(54,42,31,.045);
}
.inductive-list article > span {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.inductive-list h3 { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.42; }
.application-block {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid #b9d2c7;
  border-radius: 20px;
  background: linear-gradient(145deg, #e5f2eb, #d9ebe2);
}
.application-block > header { display: grid; grid-template-columns: 46px 1fr; gap: 11px; align-items: center; }
.application-block > header .round-icon { color: white; background: var(--green-dark); }
.application-block > header h3 { margin: 2px 0 0; color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.application-block .application-choices { display: grid; gap: 9px; margin-top: 16px; }
.application-block .application-choices article { display: block; padding: 15px; border: 0; border-radius: 14px; background: rgba(255,255,255,.72); }
.application-block .application-choices article + article { margin: 0; }
.application-block .application-choices small { color: var(--green-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.application-block .application-choices h3 { margin: 6px 0 0; color: #354a43; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.5; }
.practice-block { position: relative; overflow: hidden; margin-bottom: 17px; padding: 19px; border: 0; border-radius: 18px; background: #fff2d7; }
.practice-block::after { content: "✓"; position: absolute; top: -14px; right: 11px; color: rgba(72,49,30,.06); font-family: Georgia, serif; font-size: 76px; }
.practice-block h2 { position: relative; font-size: 18px; }
.devotional-stage textarea { border-radius: 14px; background: var(--paper); }

@media (min-width: 640px) {
  .devotional-detail-hero { grid-template-columns: 42px 56px 1fr auto; align-items: center; min-height: 215px; padding: 33px 33px 57px; }
  .devotional-hero-icon { width: 56px; height: 56px; }
  .devotional-hero-meta { grid-column: auto; display: grid; justify-items: end; margin-top: 0; }
  .stage-tabs { width: calc(100% - 64px); }
  .devotional-stage { padding: 0 29px 29px; }
  .devotional-stage .stage-intro { grid-template-columns: 58px 1fr; margin: 0 -29px 24px; padding: 30px 29px 27px; }
  .stage-number { width: 56px; height: 56px; }
  .devotional-stage .content-section { padding: 21px; }
  .hymn-list { grid-template-columns: 1fr 1fr; }
  .application-block .application-choices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .route-devotional .content-wrap { padding-top: 34px; }
}

/* Harmonia 1.3 — menos recipientes, mais ritmo e uma hierarquia por tela. */
.app-page {
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #292e2b;
  --muted: #6f766f;
  --green: #2f675a;
  --green-dark: #214c43;
  --green-pale: #e6f0e9;
  --gold-pale: #fff1d8;
  --clay: #b9694c;
  --line: #ded9cf;
}

.app-page .content-wrap {
  width: min(100%, 900px);
  padding: var(--space-4) 18px var(--space-6);
}

.app-page .page-stack {
  display: grid;
  gap: var(--space-5);
}

.app-page .page-heading {
  max-width: 680px;
  display: block;
  margin: 0;
}

.app-page .page-heading h1 {
  margin: var(--space-1) 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(31px, 8vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.app-page .page-heading > div > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-page .eyebrow,
.app-page .section-label,
.app-page .section-kicker {
  font-size: 10px;
  letter-spacing: .11em;
}

.app-page .primary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--green-dark);
  color: white;
  box-shadow: none;
}

.app-page .primary-button:hover { background: #173d35; }
.app-page .primary-button.light { background: var(--paper); color: var(--green-dark); }
.app-page .plain-button { min-height: 44px; }

/* Hoje */
.app-page .devotional-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: block;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, #2d6256, #1e493f);
  color: white;
  box-shadow: 0 18px 45px rgba(39,48,42,.1);
}

.app-page .devotional-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -105px;
  right: -105px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.035);
}

.app-page .devotional-copy {
  position: relative;
  z-index: 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 650px;
  padding: var(--space-5) var(--space-4);
}

.app-page .devotional-card .section-label { color: #f2d093; }
.app-page .devotional-card h2 {
  margin: var(--space-3) 0 var(--space-1);
  color: white;
  font-family: var(--font-serif);
  font-size: clamp(34px, 9vw, 54px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.app-page .devotional-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #d3e2dd;
  font-size: 13px;
}

.app-page .devotional-meta strong { color: white; }
.app-page .devotional-summary {
  max-width: 520px;
  margin: var(--space-3) 0 var(--space-4);
  color: #d7e4df;
  font-size: 14px;
  line-height: 1.55;
}

.app-page .period-switch {
  gap: 4px;
  margin: -16px 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eee9df;
}

.app-page .period-switch a {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.app-page .period-switch a.active { border: 0; background: var(--paper); box-shadow: 0 2px 8px rgba(40,43,39,.06); }
.app-page .period-switch small { font-size: 9px; }

.app-page .section-heading-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.app-page .section-heading-simple h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23px;
  letter-spacing: -.02em;
}

.app-page .section-heading-simple > span { color: var(--muted); font-size: 12px; }
.app-page .home-actions { display: grid; }
.app-page .home-actions .section-heading-simple { margin-bottom: var(--space-2); }

.app-page .action-row,
.app-page .invite-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.app-page .action-row:last-child,
.app-page .invite-row { border-bottom: 1px solid var(--line); }
.app-page .action-row > span:nth-child(2),
.app-page .invite-row > span:nth-child(2) { display: grid; gap: 3px; }
.app-page .action-row strong,
.app-page .invite-row strong { font-size: 14px; }
.app-page .action-row small,
.app-page .invite-row small { color: var(--muted); font-size: 12px; }
.app-page .action-row > svg,
.app-page .invite-row > svg { color: #969b96; }

.app-page .action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-pale);
  color: var(--green-dark);
}

.app-page .action-icon.warm { background: var(--gold-pale); color: #8b5d38; }
.app-page .progress-summary { padding-top: var(--space-1); }
.app-page .progress-track { height: 6px; margin: var(--space-3) 0; background: #e2e3dd; }
.app-page .progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-1); }
.app-page .progress-steps > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.app-page .progress-steps i { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #c8ccc7; border-radius: 50%; font-style: normal; }
.app-page .progress-steps .done { color: var(--green-dark); font-weight: 750; }
.app-page .progress-steps .done i { border-color: var(--green); background: var(--green); color: white; }

/* Culto */
.app-page .devotional-detail-hero {
  min-height: 166px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  align-items: start;
  margin: 0 0 var(--space-3);
  padding: var(--space-4);
  border-radius: 20px;
  background: var(--green-dark);
  color: white;
}

.app-page .devotional-detail-hero::after { display: none; }
.app-page .devotional-back { width: 40px; height: 40px; border-radius: 12px; }
.app-page .devotional-hero-copy .eyebrow { color: #f2d093; }
.app-page .devotional-hero-copy h1 {
  margin: 7px 0 var(--space-1);
  font-family: var(--font-serif);
  font-size: clamp(30px, 8vw, 47px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.app-page .devotional-hero-copy > p:last-child { color: #c8dad4; font-size: 13px; }
.app-page .stage-tabs {
  position: static;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 var(--space-3);
  padding: 4px;
  border-radius: 14px;
  background: #eee9df;
  box-shadow: none;
}

.app-page .stage-tabs button {
  min-height: 46px;
  justify-content: center;
  gap: var(--space-1);
  padding: 6px;
  border-radius: 10px;
  font-size: 12px;
}

.app-page .stage-tabs button span { width: 23px; height: 23px; font-size: 10px; }
.app-page .stage-tabs button.active { background: var(--paper); box-shadow: 0 2px 8px rgba(40,43,39,.06); }
.app-page .stage-tabs button.active span,
.app-page .stage-tabs button.done span { border-color: var(--green); background: var(--green); color: white; }

.app-page .devotional-stage {
  overflow: visible;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: none;
}

.app-page .devotional-stage .stage-intro {
  display: block;
  margin: 0;
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.app-page .devotional-stage .stage-intro h2 {
  margin: var(--space-1) 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.app-page .devotional-stage .stage-intro > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.app-page .devotional-stage .content-section {
  display: block;
  margin: 0;
  padding: var(--space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page .section-title { display: flex; align-items: center; gap: 10px; color: var(--green-dark); }
.app-page .section-title h3 { margin: 0; font-family: var(--font-serif); font-size: 21px; }
.app-page .hymn-list { display: block; margin-top: var(--space-3); }
.app-page .hymn-list > div {
  min-height: 56px;
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: var(--space-2);
  align-items: center;
  border-top: 1px solid #ebe7de;
}

.app-page .hymn-list > div:first-child { border-top: 0; }
.app-page .hymn-list > div b { color: #8b5d38; font-size: 14px; }
.app-page .hymn-list > div > span { font-family: var(--font-serif); font-size: 18px; }
.app-page .hymn-list > div small { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-sans); font-size: 9px; }
.app-page .devotional-stage .scripture-section { border-color: var(--line); background: transparent; }
.app-page .scripture-section > p { margin: var(--space-2) 0 0 31px; color: var(--muted); font-size: 13px; }

.app-page .bible-text {
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-4);
  border: 0;
  border-radius: 16px;
  background: var(--green-dark);
  color: white;
  box-shadow: none;
}

.app-page .bible-text p { margin: 0 0 var(--space-3); color: white; font-family: var(--font-serif); font-size: 18px; line-height: 1.65; }
.app-page .bible-text cite { color: #c2d6cf; font-family: var(--font-sans); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.app-page .translation-note { margin: 0 0 var(--space-4); font-size: 10px; }

.app-page .inductive-list { display: block; margin: 0 0 var(--space-4); }
.app-page .inductive-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-page .inductive-list article > span { width: 30px; height: 30px; border-radius: 50%; }
.app-page .inductive-list p { margin: 0; font-size: 9px; }
.app-page .inductive-list h3 { margin: 6px 0 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.45; }

.app-page .application-block {
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-radius: 16px;
  background: var(--green-pale);
}

.app-page .application-block > header { display: block; }
.app-page .application-block .application-choices { display: block; margin-top: var(--space-3); }
.app-page .application-block .application-choices article { padding: var(--space-3) 0 0; border: 0; border-radius: 0; background: transparent; }
.app-page .application-block .application-choices article + article { margin-top: var(--space-3); border-top: 1px solid #cbdacf; }
.app-page .application-block .application-choices small { color: var(--clay); }
.app-page .application-block .application-choices h3 { margin: 6px 0 0; font-family: var(--font-serif); font-size: 17px; line-height: 1.5; }

.app-page .practice-block {
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.app-page .practice-block::after { display: none; }
.app-page .practice-block h2 { margin: 6px 0 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.5; }
.app-page .complete-form { gap: var(--space-3); }

/* Situações */
.app-page .situation-reveal {
  min-height: 390px;
  border-radius: 20px;
  background: var(--green-dark);
  box-shadow: 0 18px 45px rgba(39,48,42,.1);
}

.app-page .reveal-cover,
.app-page .situation-content { padding: var(--space-5) var(--space-4); }
.app-page .reveal-cover { min-height: 390px; justify-content: flex-end; }
.app-page .reveal-cover h2,
.app-page .situation-content h2 {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.08;
}

.app-page .reveal-cover > p:not(.eyebrow) { margin: 0 0 var(--space-4); font-size: 14px; }
.app-page .reveal-cover .primary-button { background: var(--paper); color: var(--green-dark); }
.app-page .situation-content blockquote {
  margin: var(--space-3) 0 var(--space-4);
  padding: 0 0 var(--space-4);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.6;
}

.app-page .conversation-questions { display: block; }
.app-page .conversation-questions > .section-kicker { color: #f2d093; }
.app-page .conversation-questions > div {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: transparent;
}

.app-page .situation-content .complete-form { margin-top: var(--space-4); padding: var(--space-4); border-radius: 16px; }

/* Missão */
.app-page .mission-card-full {
  min-height: 360px;
  max-width: none;
  margin: 0;
  padding: var(--space-5) var(--space-4);
  border-radius: 20px;
  box-shadow: none;
}

.app-page .mission-seal { width: 58px; height: 58px; margin-bottom: var(--space-4); }
.app-page .mission-card-full h2 {
  margin: var(--space-1) 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: clamp(29px, 7vw, 40px);
}
.app-page .mission-card-full > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
.app-page .mission-card-full form,
.app-page .mission-card-full > .secondary-button { margin-top: var(--space-4); }

/* Família */
.app-page .family-list {
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.app-page .family-list article {
  min-height: 72px;
  grid-template-columns: 43px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.app-page .invite-form { margin: 0; }
.app-page .account-panel.compact {
  margin: 0;
  padding: var(--space-4) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

@media (min-width: 640px) {
  .app-page .content-wrap { padding: var(--space-5) var(--space-5) 64px; }
  .app-page .devotional-card,
  .app-page .devotional-copy { min-height: 370px; }
  .app-page .devotional-copy { padding: var(--space-6); }
  .app-page .devotional-detail-hero {
    min-height: 180px;
    grid-template-columns: 40px 1fr;
    align-items: start;
    padding: var(--space-5);
  }
  .app-page .devotional-stage { padding: var(--space-5); }
  .app-page .devotional-stage .stage-intro { display: block; margin: 0; padding: 0 0 var(--space-4); }
  .app-page .devotional-stage .content-section { padding: var(--space-4) 0; }
  .app-page .hymn-list { display: block; }
  .app-page .application-block .application-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .app-page .application-block .application-choices article + article { margin: 0; padding-left: var(--space-4); border-top: 0; border-left: 1px solid #cbdacf; }
  .app-page .situation-reveal,
  .app-page .reveal-cover { min-height: 430px; }
  .app-page .reveal-cover,
  .app-page .situation-content { padding: var(--space-6); }
}

@media (min-width: 960px) {
  .app-page .content-wrap { padding: 54px 44px 72px; }
  .app-page .page-stack { gap: var(--space-6); }
  .app-page .side-panel { width: auto; }
  .route-devotional .content-wrap { padding-top: 40px; }
}

/* Culto familiar contínuo */
.app-page .devotional-start-form { margin: 0; }
.app-page .progress-steps.three-steps { grid-template-columns: repeat(3, 1fr); }
.app-page .devotional-reference {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: var(--space-3) 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #d5e3de;
  font-size: 12px;
}
.app-page .devotional-reference strong { color: #f3d397; font-size: 13px; }
.app-page .devotional-reference span { padding: 0 2px; }
.app-page .devotional-unified { margin-top: var(--space-3); }
.app-page .meditation-heading { padding: var(--space-4) 0 0; }
.app-page .meditation-heading h2 {
  margin: var(--space-1) 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.app-page .meditation-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-page .prayer-block {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-2);
  align-items: start;
  margin: 0 0 var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.app-page .prayer-block > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-pale);
  color: #82583c;
}
.app-page .prayer-block p { margin: 0; }
.app-page .prayer-block div > p:last-child { margin-top: 6px; line-height: 1.55; }
.app-page .devotional-complete-form { margin-top: 0; }
