:root {
  color-scheme: dark;
  --bg: #0d131b;
  --bg-2: #111a23;
  --side: #101721;
  --surface: #17212b;
  --surface-hi: #1d2a35;
  --line: rgba(209, 195, 164, .14);
  --line-strong: rgba(209, 195, 164, .26);
  --gold: #c9ab7a;
  --gold-light: #edd7ad;
  --ivory: #f0eee7;
  --muted: #b7c0c5;
  --low: #929fa8;
  --focus: #e7c792;
  --radius: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ivory); min-height: 100vh; min-height: 100dvh; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold-light); }
[hidden] { display: none !important; }
::selection { background: rgba(201, 171, 122, .34); color: white; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ambient { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(80px); opacity: .20; }
.ambient-one { top: -160px; right: -220px; width: 510px; height: 510px; background: #25404e; }
.ambient-two { bottom: -340px; left: 18%; width: 620px; height: 620px; background: #2f3c3a; opacity: .10; }
.layout { position: relative; z-index: 1; width: min(1190px, calc(100% - 58px)); min-height: 100vh; min-height: 100dvh; margin: auto; display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 48px; }
.sidebar { padding: 45px 10px 40px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.side-top { display: flex; align-items: center; gap: 13px; }
.monogram { position: relative; width: 38px; height: 38px; border: 1px solid rgba(201,171,122,.40); border-radius: 50%; flex: 0 0 auto; }
.cross-v, .cross-h { position: absolute; background: var(--gold); border-radius: 5px; }
.cross-v { width: 1.5px; height: 19px; top: 9px; left: 17.8px; }
.cross-h { width: 12px; height: 1.5px; top: 16px; left: 12.5px; }
.side-identity { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.eyebrow, .micro-label, .section-overline, .prayer-kicker { font-size: 10px; font-weight: 720; letter-spacing: .21em; text-transform: uppercase; color: var(--gold); }
.side-identity strong { font-family: Georgia, "Times New Roman", serif; letter-spacing: .025em; font-weight: 400; font-size: 21px; }
.side-title { margin-top: 85px; font: 400 28px/1.25 Georgia, "Times New Roman", serif; color: #ded8cb; }
.side-rule { height: 1px; background: var(--line); width: 72%; margin: 29px 0 30px; }
.step-nav { display: grid; gap: 5px; width: calc(100% - 18px); }
.step-item { display: grid; grid-template-columns: 33px minmax(0,1fr) 8px; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 13px 10px 13px 11px; background: transparent; color: #a3acb0; border: 1px solid transparent; border-radius: 9px; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.step-item:hover { background: rgba(255,255,255,.025); color: #e5e2d9; }
.step-item.is-current { background: rgba(201, 171, 122, .075); color: var(--ivory); border-color: rgba(201, 171, 122, .13); }
.step-number { font: 13px/1 Georgia, serif; color: var(--gold); }
.step-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.step-item.is-current .step-dot { background: var(--gold); box-shadow: 0 0 13px rgba(201,171,122,.5); }
.side-bottom { display: flex; gap: 12px; align-items: flex-start; margin-top: auto; font-size: 12px; color: #8c979d; line-height: 1.7; padding-left: 9px; }
.small-spark { color: var(--gold); font-size: 20px; line-height: 1.3; }
.workspace { min-width: 0; padding: 26px 0 40px; display: flex; flex-direction: column; }
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.step-meta { display: flex; align-items: baseline; gap: 13px; }
.step-meta strong { color: var(--ivory); font: 15px/1.1 Georgia, serif; letter-spacing: .055em; font-weight: 400; }
.save-state { font-size: 11px; color: #9baaab; white-space: nowrap; }
.save-state::before { content: ''; display: inline-block; vertical-align: middle; height: 5px; width: 5px; border-radius: 50%; background: #8aa897; margin-right: 8px; }
.save-state.is-error { color: #ebbdab; }
.save-state.is-error::before { background: #db846c; }
.mobile-brand, .mobile-progress { display: none; }
main { width: 100%; max-width: 806px; margin: 0 auto; flex: 1; }
.panel { padding: 58px 25px 35px; animation: appear .32s ease; }
@keyframes appear { from { opacity: .45; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.section-overline { margin: 0 0 18px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0 0 22px; color: var(--ivory); font: 400 clamp(34px, 4vw, 52px)/1.16 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 em, .hero-title em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero-title { font-size: clamp(54px, 6.1vw, 78px); line-height: 1.12; margin: 22px 0 28px; letter-spacing: -.042em; }
.hero-subtitle { font: 19px/1.65 Georgia, serif; max-width: 510px; color: #d3c8b7; margin: 0 0 39px; }
.panel > p, .panel > .lede { max-width: 735px; }
p { margin: 0 0 19px; color: var(--muted); line-height: 1.82; }
.lede { font-size: 16.5px; color: #d2d7d6; margin-bottom: 29px; }
.subhead { font: 400 23px/1.4 Georgia, serif; margin: 31px 0 18px; color: var(--ivory); }
.hairline { width: 66px; height: 1px; background: var(--gold); opacity: .65; margin: 36px 0 30px; }
.hero-symbol { width: 77px; height: 77px; border: 1px solid rgba(201,171,122,.25); border-radius: 50%; position: relative; margin-bottom: 37px; background: radial-gradient(circle, rgba(201,171,122,.10), transparent 68%); }
.hero-symbol::before, .hero-symbol::after { content: ''; position: absolute; background: rgba(231,205,158,.84); border-radius: 6px; }
.hero-symbol::before { width: 2px; height: 32px; left: calc(50% - 1px); top: 22px; }
.hero-symbol::after { height: 2px; width: 18px; left: calc(50% - 9px); top: 31px; }
.hero-symbol.smaller { width: 62px; height: 62px; margin-bottom: 23px; }
.hero-symbol.smaller::before { height: 27px; top: 17px; }
.hero-symbol.smaller::after { top: 25px; }
.quote-box { margin: 35px 0 24px; padding: 29px 35px 27px; border-left: 2px solid rgba(201,171,122,.66); background: linear-gradient(90deg, rgba(201,171,122,.06), transparent 85%); position: relative; }
.quote-box p { color: var(--gold-light); margin: 0; font: 400 22px/1.6 Georgia, serif; }
.quote-sign { display: block; font: 47px/1 Georgia, serif; color: var(--gold); opacity: .5; height: 29px; }
.soft-note { color: #aeb8bb; font-size: 13.5px; line-height: 1.8; }
.soft-note.tight { margin-top: -6px; }
.quiet-callout { color: #d0c4ae; font: 16.5px/1.7 Georgia, serif; border-left: 2px solid rgba(201,171,122,.53); padding: 6px 0 6px 20px; margin: 27px 0; }
.scripture-card { margin: 28px 0 26px; border: 1px solid var(--line-strong); border-radius: 13px; background: linear-gradient(145deg, rgba(31,43,51,.77), rgba(17,26,34,.86)); padding: clamp(20px,4vw,38px); }
.scripture-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.scripture-heading span { font-size: 10px; font-weight: 680; letter-spacing: .16em; color: var(--gold); }
.scripture-heading strong { font: 16px Georgia, serif; font-weight: 400; color: var(--gold-light); white-space: nowrap; }
.verse { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 12px; padding: 0 0 14px; }
.verse-no { font: 13px/1.9 Georgia, serif; color: var(--gold); opacity: .9; }
.verse p { font: 16.4px/1.9 Georgia, "Times New Roman", serif; color: #e0dfd7; margin: 0; }
.verse strong { color: var(--gold-light); font-weight: 600; }
.scripture-source { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 10.5px; color: #a4afb1; line-height: 1.7; }
.reflection-hint { display: flex; gap: 14px; align-items: baseline; color: #bbbeb9; font-size: 14px; line-height: 1.8; padding: 8px 0 4px; }
.reflection-symbol { color: var(--gold); font-size: 21px; }
.talent-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin: 30px 0 28px; }
.talent-group { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.talent-group h3 { font: 11px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: #c8b18b; margin: 0 0 14px; }
.talent-option { display: flex; align-items: center; gap: 11px; cursor: pointer; min-height: 42px; border-radius: 7px; color: #dae0de; font-size: 14px; line-height: 1.35; padding: 7px 8px; margin: 1px -8px; transition: background .15s; }
.talent-option:hover { background: rgba(255,255,255,.03); }
.talent-option input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--gold); cursor: pointer; }
.talent-option:has(input:checked) { color: var(--gold-light); }
.field-label { display: block; margin: 25px 0 9px; font-weight: 600; color: var(--ivory); line-height: 1.6; font-size: 14px; }
.text-field { width: 100%; border: 1px solid rgba(201,171,122,.24); border-radius: 10px; color: #f2f0e9; background: #151f28; outline: none; padding: 13px 15px; font-size: 16px; line-height: 1.55; -webkit-appearance: none; appearance: none; transition: background .18s, border-color .18s; }
.text-field:hover { border-color: rgba(201,171,122,.44); }
.text-field:focus { border-color: #bfa475; box-shadow: 0 0 0 2px rgba(201,171,122,.09); background: #192630; }
.text-field::placeholder { color: #8e9ba1; opacity: 1; }
.textarea { resize: vertical; min-height: 95px; }
.section-divider { height: 1px; margin: 42px 0 30px; background: var(--line); }
.gratitude-choices { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.choice-pill { border: 1px solid rgba(201,171,122,.26); border-radius: 50px; background: rgba(255,255,255,.016); color: #c9cfcb; font-size: 13px; line-height: 1.35; padding: 10px 15px; text-align: left; }
.choice-pill:hover { border-color: rgba(201,171,122,.65); }
.choice-pill[aria-pressed="true"] { background: rgba(201,171,122,.16); border-color: var(--gold); color: var(--gold-light); }
.choice-pill[aria-pressed="true"]::before { content: '✓'; margin-right: 7px; }
.empty-choices { font-size: 13.5px; border: 1px dashed rgba(201,171,122,.22); border-radius: 9px; color: #b4bdbe; padding: 16px; line-height: 1.65; width: 100%; }
.small-counter { color: #b9b8ab; font-size: 12px; margin: 11px 0 0; }
.final-panel h1 { margin-bottom: 20px; }
.final-prayer { margin: 38px 0 28px; padding: clamp(25px, 4vw, 38px); border-radius: 12px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(201,171,122,.06), rgba(201,171,122,.012)); }
.prayer-kicker { margin-bottom: 19px; }
.final-prayer p:last-child { color: #ece5d7; font: 19px/1.88 Georgia, serif; margin: 0; }
.closing-words { margin: 42px auto; text-align: center; color: var(--gold-light); font: italic 31px/1.3 Georgia, serif; }
.save-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.button { border-radius: 9px; border: 1px solid transparent; font-size: 13.5px; font-weight: 650; line-height: 1.4; padding: 13px 19px; transition: filter .15s, background .15s; }
.button:hover { filter: brightness(1.09); }
.button-primary { background: var(--gold); color: #172029; border-color: var(--gold); min-height: 46px; }
.button-soft { background: rgba(201,171,122,.17); color: var(--gold-light); border-color: rgba(201,171,122,.36); }
.button-outline { background: transparent; color: #e4e6df; border-color: var(--line-strong); }
.backup-details { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 19px; }
.backup-details summary { font-size: 13px; cursor: pointer; color: #b6c0c1; padding: 5px 0; }
.backup-options { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 15px 0 0; }
.text-button { border: 0; background: none; text-align: left; padding: 7px 2px; color: #d4c09c; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: #daa297; }
.offline-note { font-size: 11.5px; color: #8e9b9f; margin-top: 25px; line-height: 1.8; }
.nav-footer { border-top: 1px solid var(--line); margin-top: auto; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.nav-back { color: #d0d5d3; border: 0; background: transparent; padding: 11px 4px; font-size: 14px; }
.nav-back:disabled { opacity: .2; cursor: default; }
.footer-page { font: 13px Georgia, serif; color: #9ba8a9; white-space: nowrap; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(25px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #e0d1b3; color: #17212b; font-size: 12.5px; max-width: min(92vw,440px); text-align: center; border-radius: 9px; padding: 12px 19px; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
@media (max-width: 900px) {
  .layout { width: min(100% - 40px, 730px); display: block; }
  .sidebar { display: none; }
  .workspace { min-height: 100vh; min-height: 100dvh; padding: 0 0 0; }
  .topbar { height: 74px; padding: 0 3px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; color: #ddd5c5; font-weight: 650; font-size: 11px; letter-spacing: .13em; }
  .mobile-cross { color: var(--gold); font-size: 21px; font-weight: 400; }
  .brand-divider { color: #79838d; padding: 0 3px; }
  .micro-label { display: none; }
  .save-state { display: none; }
  .mobile-progress { height: 2px; display: block; background: rgba(255,255,255,.035); width: calc(100% + 40px); margin-left: -20px; }
  .mobile-progress span { height: 2px; display: block; background: var(--gold); transition: width .25s ease; }
  .panel { padding: 37px 3px 36px; }
  .nav-footer { position: sticky; bottom: 0; z-index: 9; background: rgba(13,19,27,.97); backdrop-filter: blur(15px); margin: auto -20px 0; border-top: 1px solid var(--line); min-height: 88px; padding: 12px 22px max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .layout { width: calc(100% - 40px); }
  .mobile-brand { font-size: 9.5px; letter-spacing: .1em; }
  .topbar { height: 66px; }
  .panel { padding: 32px 0 33px; }
  .hero-symbol { height: 67px; width: 67px; margin-bottom: 27px; }
  .hero-symbol::before { top: 18px; height: 30px; }
  .hero-symbol::after { top: 26px; }
  .hero-title { font-size: clamp(51px, 13vw, 65px); }
  h1 { font-size: 39px; }
  .hero-subtitle { font-size: 17.3px; }
  .talent-groups { grid-template-columns: 1fr; gap: 10px; }
  .talent-group { padding: 17px 19px; }
  .scripture-card { margin-left: -5px; margin-right: -5px; padding: 22px 17px; }
  .verse { grid-template-columns: 20px minmax(0,1fr); gap: 8px; }
  .verse p { font-size: 16px; }
  .subhead { font-size: 22px; }
  .nav-footer { gap: 7px; padding-right: 19px; padding-left: 19px; }
  .nav-back { font-size: 13px; }
  .nav-footer .button { font-size: 12.5px; padding: 12px 13px; }
  .footer-page { font-size: 12px; }
  .save-options > .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; } }
@media print {
  body { background: white; color: #111; }
  .ambient,.sidebar,.topbar,.mobile-progress,.nav-footer,.save-options,.backup-details,.offline-note,.toast { display: none !important; }
  .layout,.workspace { width: auto; min-height: 0; margin: 0; display: block; padding: 0; }
  .panel { display: none !important; }
  .panel:not([hidden]) { display: block !important; padding: 0; }
  .panel p,h1,.subhead { color: #111; }
  .scripture-card { border: 1px solid #ccc; background: white; }
  .verse p,.final-prayer p:last-child { color:#222; }
}
