/* Palette and spacing live here so our little home can change with us. */
:root {
  --cream: #faf7f0;
  --paper: #fffdf8;
  --sand: #f0e9dc;
  --ink: #243749;
  --muted: #71746d;
  --amber: #aa7136;
  --amber-soft: #efdfc7;
  --orchid: #947196;
  --orchid-soft: #eee4ed;
  --midnight: #192d40;
  --burgundy: #703549;
  --line: #e7e1d6;
  --radius: 20px;
  --shadow: 0 16px 45px #3e342609;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]), body:has(.more-sheet) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button { color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.16; }
h1 { font-size: clamp(42px, 4.6vw, 67px); }
h2 { font-size: clamp(32px, 3.2vw, 45px); margin-bottom: 15px; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
em { font-weight: 400; color: var(--amber); }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 4px; }
button, a, input, textarea, select { transition: background .18s, border-color .18s, box-shadow .18s; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 21px; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fffaf1; font-size: 13px; font-weight: 500; text-decoration: none; }
.button:hover { background: #3a4d5d; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--sand); }
.button-danger { background: var(--burgundy); border-color: var(--burgundy); }
.button-small { min-height: 40px; padding: 9px 16px; }
.full-width { width: 100%; }
.text-button { background: none; border: 0; padding: 8px 5px; min-height: 36px; font-size: 12px; color: var(--amber); }
.text-button:hover, .text-link:hover { color: var(--ink); text-decoration: underline; }
.text-link { display: inline-block; color: var(--amber); font-size: 13px; margin: 8px 0; text-decoration: none; }
.setup-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.setup-card { width: min(100%, 600px); padding: clamp(24px, 5vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.setup-card h1 { font-size: clamp(36px, 6vw, 52px); }
.setup-card > p:not(.eyebrow) { color: var(--muted); }
.setup-card [role="alert"] { color: var(--burgundy); }
.setup-card form { margin-top: 28px; }
.chapter-list { display: grid; gap: 18px; margin: 30px 0 50px; }
.chapter-card, .dictionary-card, .music-memory, .evening-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); min-width: 0; overflow-wrap: anywhere; }
.chapter-card summary, .dictionary-card summary, .music-memory summary { cursor: pointer; }
.chapter-card summary > span:first-child, .dictionary-card summary > span { color: var(--muted); font-size: 11px; }
.chapter-card summary h3 { display: inline; margin: 0 12px; font-family: var(--serif); font-size: 25px; }
.chapter-content { padding-top: 22px; }
.chapter-content > p { font-size: 14px; line-height: 1.95; }
.memory-detail { padding: 15px 18px; border-left: 3px solid var(--orchid); background: var(--orchid-soft); border-radius: 0 10px 10px 0; }
.evidence-limit { font-size: 12px; color: var(--muted); padding: 14px 18px; background: var(--sand); border-radius: 12px; }
.reflection-block { margin: 25px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.reflection-block h4 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin: 0 0 12px; }
.reflection-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.reflection-answers .entry-card { padding: 18px; }
.reflection-answers > div { min-width: 0; }
.reflection-answers h5 { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.reflection-answers .entry-card + .entry-card { margin-top: 14px; }
.dictionary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 35px; }
.dictionary-card summary h3 { display: inline; margin-right: 12px; }
.dictionary-card > p, .music-memory > p { margin-top: 20px; }
.excerpt-card { margin: 20px 0; padding: 20px; background: var(--cream); border: 1px dashed var(--line); border-radius: 14px; }
.excerpt-card h4 { margin: 12px 0; font-size: 18px; }
blockquote { font-family: var(--serif); font-size: 23px; margin: 18px 0; padding-left: 18px; border-left: 3px solid var(--amber); overflow-wrap: anywhere; }
.content-correction { border-left: 3px solid var(--burgundy); padding: 12px 15px; margin: 15px 0; background: #f4e8e8; font-size: 12px; border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.content-correction p { white-space: pre-wrap; margin: 8px 0; }
.quiz-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 20px; margin: 25px 0; }
.quiz-filter label { display: grid; gap: 8px; min-width: 220px; max-width: 100%; }
.quiz-filter p { color: var(--muted); font-size: 12px; }
.music-memory { margin-bottom: 15px; }
.music-memory summary { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.music-memory summary h3 { margin: 0; }
.music-memory summary > span:last-child { font-size: 11px; color: var(--muted); margin-left: auto; }
.evening-card { margin-bottom: 35px; }
.information-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 28px 0 40px; }
.information-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); overflow-wrap: anywhere; }
.information-card h3 { margin-top: 14px; font-family: var(--serif); font-size: 25px; }
.information-card summary { cursor: pointer; color: var(--amber); font-size: 12px; }
.information-card details p { margin-top: 14px; }
.mood-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.mood-choices [aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--paper); }
.mood-status { padding-left: 20px; color: var(--muted); font-size: 12px; }
.guided-moment, .invitation-response { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.guided-moment h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.memory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; margin: 25px 0; }
.memory-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); overflow-wrap: anywhere; }
.memory-card h3 { font-family: var(--serif); font-size: 24px; margin: 16px 0; }
.memory-card > p { line-height: 1.85; }
.archive-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.archive-tabs [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.archive-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 20px; background: var(--sand); border-radius: var(--radius); }
.archive-filters label { flex: 1 1 180px; min-width: 0; }
.archive-group { margin: 24px 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.archive-group > summary { cursor: pointer; }
.archive-group > summary h3 { display: inline; font-family: var(--serif); font-size: 26px; }
.archive-group > summary span { display: block; color: var(--muted); font-size: 12px; margin: 10px 0; }
.archive-group > p { margin-top: 20px; }
.contrast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.memory-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 850px) { .contrast-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 850px) {
  .dictionary-grid, .reflection-answers { grid-template-columns: minmax(0, 1fr); }
  .chapter-card summary h3 { display: block; margin: 8px 0; font-size: 23px; }
}
.icon-button { display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 50%; min-width: 42px; height: 42px; font-size: 26px; font-weight: 300; }
.eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 600; color: var(--amber); margin-bottom: 16px; }
.app-shell { max-width: 1700px; margin: auto; min-height: 100dvh; }
.sidebar { width: 232px; position: fixed; top: 0; bottom: 0; padding: 42px 24px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #f6f2e9; z-index: 20; overflow-y: auto; }
.sidebar > * { flex-shrink: 0; }
.brand { font-family: var(--serif); font-size: 28px; line-height: 1.08; letter-spacing: -.055em; text-decoration: none; display: block; }
.brand-symbol { font-family: var(--sans); color: var(--amber); font-size: 34px; float: left; margin-right: 10px; font-weight: 300; }
.brand-second { padding-left: 36px; }
.brand-dot { color: var(--amber); }
.sidebar-caption { font-size: 8px; color: var(--muted); letter-spacing: .22em; margin: 24px 0 33px 14px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-link { border: 0; border-radius: 9px; text-align: left; display: flex; align-items: center; gap: 15px; min-height: 46px; padding: 11px 15px; background: transparent; color: #737b7b; font-size: 13px; }
.nav-link > span:first-child { font-family: var(--serif); font-size: 22px; width: 23px; text-align: center; }
.nav-link:hover { background: #ece6da; }
.nav-link.active { background: #e8dfcf; color: var(--ink); font-weight: 600; }
.nav-small-dot { height: 5px; width: 5px; border-radius: 50%; background: var(--burgundy); margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-bottom > p { font-family: var(--serif); font-style: italic; font-size: 12px; color: #969182; text-align: center; }
.account-button { border: 0; border-top: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; padding: 20px 0 0; }
.user-avatar { display: grid; place-items: center; background: var(--amber-soft); color: #875c34; width: 35px; height: 35px; border-radius: 50%; font-family: var(--serif); font-size: 16px; flex-shrink: 0; }
.account-button small { display: block; color: var(--muted); font-size: 9px; }
.account-button > span:last-child { margin-left: auto; color: var(--muted); }
.main-shell { margin-left: 232px; }
.topbar { height: 78px; margin: 0 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 10px; color: #92958e; letter-spacing: .03em; }
.breadcrumb span { margin: 0 12px; color: #beb5a6; }
.breadcrumb strong { font-weight: 400; color: var(--ink); }
.private-badge { color: var(--muted); font-size: 10px; display: inline-flex; align-items: center; gap: 7px; letter-spacing: .05em; }
.private-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #769177; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.refresh-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; font-size: 21px; }
.refresh-button:hover { background: var(--sand); }
.main-content { max-width: 1180px; margin: auto; padding: 45px 48px 50px; outline: none; min-height: 75dvh; }
.home-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 405px; padding-bottom: 20px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: 25px; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 410px; font-size: 13px; line-height: 1.9; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero-caption { font-size: 10px; margin-top: 25px; color: #939085; display: flex; align-items: center; gap: 8px; }
.tiny-star { color: var(--amber); font-size: 20px; }
.hero-art { position: relative; height: 390px; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; width: 285px; height: 285px; background: #ede7da; border-radius: 50%; z-index: -1; top: 39px; opacity: .65; }
.orchid-art { width: 300px; height: 370px; }
.plant-label { position: absolute; border: 1px solid #d9cfbd; padding: 2px 14px; border-radius: 100px; color: #999080; font-family: var(--serif); font-style: italic; font-size: 12px; background: #faf7f0ad; }
.label-one { top: 147px; left: 8px; transform: rotate(-10deg); }
.label-two { top: 94px; right: -1px; transform: rotate(9deg); }
.art-footnote { position: absolute; bottom: 4px; font-size: 10px; letter-spacing: .12em; color: #a49584; }
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0 48px; }
.feature-tile { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: var(--radius); min-height: 182px; overflow: hidden; padding: 27px 25px; text-align: left; display: flex; align-items: center; }
.feature-tile h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; }
.feature-tile p { font-size: 11px; max-width: 210px; margin-bottom: 14px; color: #8c8173; }
.feature-tile .eyebrow { font-size: 8px; margin-bottom: 12px; }
.tile-link { font-size: 10px; color: var(--amber); }
.candle-tile { background: #f3ecdf; }
.candle-art { width: 105px; height: 150px; position: absolute; right: 10px; bottom: 8px; z-index: -1; }
.sky-tile { background: var(--midnight); border-color: var(--midnight); color: #f8eddb; }
.sky-tile p { color: #b6bdc1; }
.sky-tile .eyebrow, .sky-tile .tile-link { color: #d6b47e; }
.sky-art { position: absolute; width: 100%; height: 100%; inset: 0; z-index: -1; opacity: .7; object-fit: cover; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.section-heading h2 { font-size: 30px; margin-bottom: 9px; }
.section-heading .eyebrow { font-size: 9px; margin-bottom: 10px; }
.section-description { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 0; max-width: 630px; }
.section-heading > .button { flex-shrink: 0; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-card { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); min-width: 0; }
.entry-top { display: flex; gap: 9px; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.tag { font-size: 9px; background: #f1ebe0; padding: 4px 9px; color: #8b765c; border-radius: 5px; line-height: 1.5; }
.entry-date { font-size: 9px; color: #9b988f; }
.entry-card h3 { font-family: var(--serif); font-size: 22px; overflow-wrap: anywhere; margin-bottom: 10px; }
.entry-body, .placeholder-text { white-space: pre-wrap; font-size: 12px; color: #75786f; line-height: 1.95; overflow-wrap: anywhere; margin-bottom: 22px; }
.mood { display: inline-block; color: var(--orchid); border: 1px solid var(--orchid-soft); border-radius: 50px; padding: 2px 9px; font-size: 10px; margin-bottom: 12px; }
.entry-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid #eee9df; padding-top: 12px; font-size: 10px; color: #8d8e85; }
.entry-footer > span { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.entry-footer small { font-size: 9px; }
.entry-footer .text-button { font-size: 9px; min-height: 30px; }
.author-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #bb9564; flex-shrink: 0; }
.orchid-dot { background: var(--orchid); }
.placeholder-card { background: #f5f2ec; box-shadow: none; border-style: dashed; }
.placeholder-card h3 { color: #898478; }
.placeholder-text { color: #989181; font-style: italic; }
.quiet-note { margin: 38px 0 0; text-align: center; font-size: 10px; color: #999385; padding: 17px; border-top: 1px solid var(--line); }
.quiet-note > span { color: var(--orchid); margin-right: 7px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 36px 20px; border: 1px dashed #dfd5c6; border-radius: 15px; color: var(--muted); background: #f7f2e940; }
.empty-mark { color: #b39c7b; font-size: 27px; display: block; margin-bottom: 6px; }
.empty h3 { font-family: var(--serif); font-size: 23px; color: #756b5e; margin-bottom: 8px; }
.empty p { font-size: 12px; margin: 0 auto; max-width: 440px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 48px; border-top: 1px solid var(--line); color: #aaa393; font-size: 9px; }
.site-footer > span:first-child { font-family: var(--serif); font-size: 15px; }
.mobile-brand, .mobile-account, .bottom-nav { display: none; }
.story-banner { position: relative; isolation: isolate; overflow: hidden; background: var(--midnight); border-radius: var(--radius); padding: 38px; margin-bottom: 36px; }
.story-banner p { position: relative; z-index: 1; color: #f7efdd; font-family: var(--serif); font-size: 33px; line-height: 1.4; margin: 0; }
.story-banner em { color: #e1bd88; }
.timeline { padding: 0 0 0 20px; margin: 0 0 45px; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 0 0 32px 30px; border-left: 1px solid #d8cbb6; }
.timeline li:last-child { padding-bottom: 8px; }
.timeline-point { width: 9px; height: 9px; position: absolute; left: -5px; top: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px var(--cream); }
.timeline time { color: var(--amber); font-size: 10px; padding-top: 4px; }
.timeline h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.garden-intro { display: flex; justify-content: space-between; align-items: center; background: #eeeadf; border-radius: var(--radius); padding: 30px 40px; margin-bottom: 36px; min-height: 290px; }
.garden-intro > div { max-width: 490px; }
.garden-intro p:not(.eyebrow) { font-size: 12px; color: var(--muted); max-width: 400px; }
.garden-intro em { color: #728067; }
.garden-intro .orchid-art { width: 180px; height: 260px; flex-shrink: 0; }
.motif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 35px; }
.motif { padding: 23px; background: #f2ecdf; border-radius: 14px; }
.motif > span { color: var(--amber); font-size: 22px; }
.motif h3 { font-family: var(--serif); font-size: 22px; margin: 9px 0; }
.motif p { font-size: 11px; color: var(--muted); margin: 0; }
.voice-banner { background: var(--orchid-soft); display: flex; align-items: center; gap: 35px; padding: 28px 35px; border-radius: var(--radius); margin-bottom: 20px; }
.voice-banner .eyebrow { color: var(--orchid); }
.voice-banner h3 { font-family: var(--serif); font-size: 31px; margin-bottom: 8px; }
.voice-banner p:not(.eyebrow) { font-size: 12px; color: #80717d; margin: 0; }
.vinyl { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, #28313b 0 2px, #35414c 3px 4px); flex-shrink: 0; transform: rotate(-15deg); box-shadow: 8px 10px 15px #29313b15; }
.vinyl > span { width: 48px; height: 48px; border-radius: 50%; background: #c7a4bc; display: grid; place-items: center; color: #fff7e9; font-size: 28px; }
.song-list { margin-bottom: 40px; }
.song-row { display: flex; align-items: center; gap: 22px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.track-number { font-family: var(--serif); color: #b4a692; font-size: 22px; }
.song-row > div { min-width: 0; flex: 1; }
.song-row h3 { font-size: 14px; margin-bottom: 3px; overflow-wrap: anywhere; }
.song-row p { font-size: 11px; color: var(--muted); margin: 0; }
.song-play { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orchid); text-decoration: none; flex-shrink: 0; }
.song-pending { font-size: 9px; color: #a2988c; text-align: right; }
.plan-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-column { background: #f1ede3; border-radius: 14px; padding: 15px; min-width: 0; }
.plan-column > h3 { font-size: 12px; display: flex; gap: 10px; align-items: center; margin: 5px 0 20px; }
.plan-column > h3 span { color: var(--amber); font-family: var(--serif); font-size: 20px; }
.plan-column .entry-card { padding: 17px; margin-bottom: 14px; }
.plan-column .entry-top { flex-wrap: wrap; gap: 5px; }
.plan-column .entry-card h3 { font-size: 20px; }
.column-empty { font-size: 11px; color: #938978; padding: 20px 8px; }
.surprise-intro { background: #f2e9e7; border-radius: var(--radius); padding: 32px 36px; display: flex; align-items: center; gap: 40px; margin-bottom: 36px; }
.surprise-intro em { color: #a7737e; }
.surprise-intro p:not(.eyebrow) { font-size: 12px; color: #8b7777; max-width: 450px; margin: 0; }
.gift-art { flex-shrink: 0; position: relative; width: 105px; height: 95px; background: #c8a4ae; border-radius: 5px 5px 10px 10px; box-shadow: 5px 10px 25px #a7737e22; display: grid; place-items: center; margin-top: 20px; transform: rotate(-6deg); }
.gift-art::before { content: ''; position: absolute; top: -12px; left: -8px; width: 121px; height: 24px; background: #b9929e; border-radius: 4px; }
.gift-art::after { content: ''; position: absolute; height: 115px; width: 18px; top: -13px; background: #f0ded5; }
.gift-art > span { position: absolute; top: -51px; font-size: 60px; color: #b9929e; font-family: var(--serif); }
.game-guidance { display: flex; gap: 20px; background: #ede8df; border-radius: 12px; padding: 18px 23px; margin-bottom: 26px; }
.game-guidance > span { font-size: 32px; color: var(--amber); }
.game-guidance p { font-size: 11px; color: var(--muted); margin: 0; }
.game-guidance strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.quiz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quiz-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--paper); }
.quiz-symbol { display: block; color: var(--orchid); font-family: var(--serif); font-size: 34px; line-height: 1; margin-bottom: 17px; }
.quiz-card h3 { font-family: var(--serif); font-size: 26px; margin: 15px 0 10px; }
.quiz-card > p { font-size: 11px; color: var(--muted); }
.quiz-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 19px; }
.rounds-area { margin-top: 42px; }
.round-list { display: grid; gap: 12px; }
.round { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 0 20px; }
.round summary { display: flex; gap: 13px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.round summary::-webkit-details-marker { display: none; }
.round summary strong { font-size: 13px; font-weight: 500; }
.round summary small { display: block; font-size: 10px; color: var(--muted); }
.round-score { margin-left: auto; font-size: 13px; color: var(--amber); flex-shrink: 0; }
.chevron { margin-left: auto; color: var(--muted); }
.answer-list { list-style: none; padding: 0; margin: 0 0 18px; }
.answer-list li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.answer-list li > span { color: var(--muted); }
.answer-list strong { color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.pair-card { border: 1px solid #ddd3e0; background: #f3edf3; border-radius: 15px; padding: 24px; }
.pair-card h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.pair-card p { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.pair-card details { margin-top: 10px; font-size: 12px; }
.pair-card summary { cursor: pointer; padding: 8px 0; }
.privacy-note { color: var(--orchid) !important; }
.submitted-label { font-size: 11px; color: #6b8467; }
.spark-theme { --amber: #8a485c; --amber-soft: #eedbe0; }
.spark-hero { isolation: isolate; position: relative; overflow: hidden; background: var(--burgundy); color: #f8ecdf; padding: 48px 42px; border-radius: var(--radius); margin-bottom: 35px; text-align: center; }
.spark-hero::before, .spark-hero::after { content: ''; position: absolute; border: 1px solid #ffffff0c; width: 420px; height: 420px; border-radius: 50%; top: -110px; left: -170px; z-index: -1; }
.spark-hero::after { top: 30px; left: auto; right: -200px; width: 520px; height: 520px; }
.spark-hero .eyebrow { color: #d8b5b8; }
.spark-hero h2 { font-size: 47px; }
.spark-hero em { color: #edc096; }
.spark-hero > p:not(.eyebrow) { max-width: 510px; font-size: 12px; color: #e0c8cc; margin: 0 auto 25px; }
.spark-orbit { display: block; font-size: 39px; color: #eab78d; margin-bottom: 15px; }
.consent-status { display: flex; justify-content: center; gap: 24px; margin-bottom: 25px; color: #e9cbd0; font-size: 12px; }
.spark-button { background: #f2e1d2; color: var(--burgundy); border-color: #f2e1d2; }
.spark-button:hover { background: #fff0df; }
.app-dialog { width: min(610px, calc(100% - 32px)); max-height: calc(100dvh - 50px); border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px #14253640; overflow-y: auto; overscroll-behavior: contain; }
.app-dialog::backdrop { background: #152b3d88; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 10px; }
.dialog-heading h2 { font-size: 30px; }
.dialog-heading .eyebrow { font-size: 9px; margin-bottom: 10px; }
.dialog-intro { font-size: 12px; color: var(--muted); margin-bottom: 23px; }
form > label, .question-editor > label { display: grid; gap: 8px; font-size: 12px; font-weight: 500; margin-bottom: 18px; }
input:not([type="radio"]), textarea, select { width: 100%; min-width: 0; border: 1px solid #ded7ca; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #faf8f2; font-size: 14px; min-height: 46px; }
textarea { resize: vertical; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: #aaa393; font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--orchid); }
.field-hint { font-size: 10px; color: #948c7e; margin: -8px 0 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.form-error { color: #a13a46; font-size: 12px; margin-bottom: 0; white-space: pre-wrap; }
.form-error:not(:empty) { padding: 12px; background: #f9e9e9; border: 1px solid #eac9cc; border-radius: 8px; margin: 15px 0; }
.question-editor { border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin: 10px 0 23px; }
.question-editor legend { font-family: var(--serif); font-size: 20px; padding: 0 9px; color: var(--amber); }
.play-question { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; margin: 0 0 26px; min-width: 0; }
.play-question legend { padding: 0; font-size: 15px; line-height: 1.6; margin-bottom: 14px; overflow-wrap: anywhere; }
.play-question legend > span { color: var(--amber); display: block; font-family: var(--serif); font-size: 24px; }
.options { display: grid; gap: 9px; }
.option { cursor: pointer; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); padding: 12px; border-radius: 9px; font-size: 13px; }
.option:has(input:checked) { border-color: #ac87ae; background: var(--orchid-soft); }
.option input { accent-color: var(--orchid); width: 17px; height: 17px; flex-shrink: 0; }
.option span { overflow-wrap: anywhere; }
.skip-option { color: #948c80; font-size: 11px; }
.review-list { padding-left: 24px; }
.review-list li { padding: 10px 0 20px 5px; border-bottom: 1px solid var(--line); }
.review-list h3 { font-size: 15px; }
.review-list p { color: var(--amber); font-size: 13px; white-space: pre-wrap; }
.review-list small { color: var(--muted); }
.account-summary { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 23px; }
.account-summary .user-avatar { width: 48px; height: 48px; font-size: 22px; }
.account-summary h3 { margin-bottom: 3px; }
.account-summary p { font-size: 11px; color: var(--muted); margin: 0; }
.account-logout { text-align: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 25px; }
.login-page { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.login-intro { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #f1ecdf; padding: 55px clamp(35px, 6vw, 100px) 35px; }
.login-intro .brand { font-size: 26px; margin-bottom: 70px; }
.login-intro .brand-symbol { font-size: 29px; }
.login-intro h1 { font-size: clamp(42px, 4.2vw, 64px); max-width: 550px; }
.login-intro > div > p:not(.eyebrow) { color: #898071; font-size: 13px; max-width: 410px; }
.login-art { align-self: center; margin: 0; }
.login-art .orchid-art { height: 290px; width: 260px; }
.login-footnote { margin-top: auto; text-align: center; color: #a1937d; font-size: 10px; }
.login-panel { padding: 45px 40px; display: grid; align-items: center; justify-items: center; }
.login-card { width: min(100%, 350px); }
.welcome-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid #dfd3bf; border-radius: 50%; margin-bottom: 30px; color: var(--amber); font-size: 27px; }
.login-card h2 { font-size: 48px; margin-bottom: 15px; }
.login-card > p:not(.eyebrow) { font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.login-card .button span { margin-left: auto; }
.login-privacy { font-size: 10px; color: #9c9486; display: flex; gap: 9px; justify-content: center; margin-top: 26px; }
.inline-error { background: #f4e6e6; border: 1px solid #e6c9c9; color: #8a4050; padding: 20px; border-radius: 10px; font-size: 13px; }
.loading-screen { display: grid; align-content: center; justify-items: center; text-align: center; min-height: 100dvh; padding: 25px; }
.loading-screen h1 { font-size: 39px; }
.loading-screen p { color: var(--muted); max-width: 480px; }
.loading-star { color: var(--amber); font-size: 70px; margin-bottom: 20px; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: rotate(15deg); } }
#toast { position: fixed; z-index: 100; bottom: 30px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); border-radius: 13px; padding: 14px 22px; font-size: 12px; max-width: min(520px, calc(100% - 32px)); width: max-content; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 12px 30px #172d4030; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--burgundy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sheet-backdrop, .more-sheet { display: none; }
@media (min-width: 1700px) { .sidebar { left: calc((100vw - 1700px) / 2); } }
@media (max-width: 1150px) {
  .sidebar { width: 205px; padding-left: 16px; padding-right: 16px; }
  .main-shell { margin-left: 205px; }
  .main-content { padding: 35px 30px; }
  .topbar { margin: 0 30px; }
  .home-hero { grid-template-columns: 1.15fr 1fr; }
  .hero-art .orchid-art { width: 245px; }
  .hero-art::before { width: 235px; height: 235px; top: 70px; }
  .feature-tile { padding: 24px 20px; }
  .feature-tile p { max-width: 165px; }
  .candle-art { width: 85px; right: 0; opacity: .75; }
  .plan-board { gap: 12px; }
  .plan-column { padding: 12px; }
  .garden-intro { padding: 25px; }
}
@media (max-width: 850px) {
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .main-content { padding: 30px; }
  .topbar { height: 70px; }
  .mobile-brand { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: -.04em; text-decoration: none; }
  .breadcrumb { display: none; }
  .topbar-right { display: flex; align-items: center; gap: 12px; }
  .mobile-account { display: grid; place-items: center; background: var(--sand); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; color: var(--amber); font-family: var(--serif); }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; justify-content: space-around; background: #faf7f0f5; border-top: 1px solid var(--line); padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); backdrop-filter: blur(14px); }
  .bottom-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; border: 0; background: transparent; color: #989184; min-width: 0; flex: 1; min-height: 46px; padding: 2px; }
  .bottom-nav button > span { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
  .bottom-nav button small { font-size: 9px; }
  .bottom-nav [aria-current="page"] { color: var(--amber); }
  .bottom-nav [aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 24px; height: 2px; background: var(--amber); }
  .site-footer { margin-bottom: calc(72px + env(safe-area-inset-bottom)); padding: 22px 30px; }
  #toast { bottom: calc(85px + env(safe-area-inset-bottom)); }
  .sheet-backdrop { display: block; position: fixed; inset: 0; background: #14293e77; z-index: 29; backdrop-filter: blur(3px); }
  .more-sheet { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); padding: 22px; box-shadow: 0 20px 80px #172d4030; max-height: calc(100dvh - 50px); overflow: auto; }
  .sheet-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .sheet-heading h3 { font-family: var(--serif); font-size: 25px; margin: 0; }
  .more-sheet .nav-link { width: 100%; padding: 14px 12px; min-height: 56px; }
  .menu-arrow { margin-left: auto; }
  .login-intro { padding: 40px 35px; }
  .login-intro .brand { margin-bottom: 45px; }
  .login-intro h1 { font-size: 43px; }
  .login-panel { padding: 35px 28px; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .main-content { padding: 27px 20px 30px; }
  .topbar { margin: 0 20px; height: 65px; }
  .mobile-brand { font-size: 21px; }
  .private-badge { font-size: 8px; gap: 5px; }
  .topbar-right { gap: 9px; }
  .home-hero { grid-template-columns: 1fr; padding-bottom: 0; min-height: unset; }
  .hero-copy { padding-top: 9px; }
  .hero-copy .eyebrow { font-size: 8px; }
  .hero-copy h1 { font-size: 49px; margin-bottom: 21px; }
  .hero-copy > p:not(.eyebrow) { font-size: 12px; max-width: 340px; }
  .hero-actions { gap: 10px 16px; margin-top: 23px; }
  .hero-actions .button { font-size: 11px; padding: 11px 15px; }
  .hero-actions .text-button { font-size: 11px; }
  .hero-caption { margin-top: 14px; }
  .hero-art { height: 285px; margin-top: 12px; }
  .hero-art .orchid-art { width: 238px; height: 285px; }
  .hero-art::before { width: 225px; height: 225px; top: 25px; }
  .label-one { top: 112px; left: calc(50% - 143px); }
  .label-two { top: 60px; right: calc(50% - 138px); }
  .art-footnote { bottom: 0; font-size: 8px; }
  .home-tiles { grid-template-columns: 1fr; gap: 14px; margin: 28px 0 35px; }
  .feature-tile { min-height: 163px; padding: 23px; }
  .feature-tile h3 { font-size: 27px; }
  .feature-tile p { max-width: 230px; }
  .candle-art { width: 115px; right: 9px; opacity: 1; }
  .section-heading { gap: 14px; flex-wrap: wrap; margin-bottom: 21px; align-items: flex-start; }
  .section-heading h2 { font-size: 29px; }
  .section-heading .button { min-height: 40px; font-size: 11px; padding: 9px 15px; }
  .section-description { font-size: 11px; }
  .entry-grid, .quiz-grid, .pair-grid { grid-template-columns: 1fr; gap: 15px; }
  .entry-card { padding: 22px; }
  .entry-card h3 { font-size: 23px; }
  .entry-body { font-size: 12px; }
  .site-footer { padding: 20px; flex-direction: column; gap: 5px; text-align: center; }
  .quiet-note { font-size: 10px; line-height: 1.9; margin-top: 25px; }
  .story-banner { padding: 27px; margin-bottom: 30px; }
  .story-banner p { font-size: 28px; }
  .timeline { padding-left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 23px; padding-bottom: 25px; }
  .timeline h3 { font-size: 23px; }
  .garden-intro { position: relative; padding: 26px; display: block; overflow: hidden; }
  .garden-intro h2 { font-size: 35px; }
  .garden-intro p:not(.eyebrow) { max-width: 270px; }
  .garden-intro .orchid-art { width: 180px; height: 210px; display: block; margin: -2px auto -14px; }
  .motif-grid { grid-template-columns: 1fr; gap: 12px; }
  .motif { padding: 20px; }
  .voice-banner { gap: 20px; padding: 25px 22px; }
  .voice-banner h3 { font-size: 26px; }
  .voice-banner .eyebrow { font-size: 8px; margin-bottom: 10px; }
  .vinyl { width: 80px; height: 80px; }
  .vinyl > span { width: 31px; height: 31px; font-size: 21px; }
  .song-row { gap: 14px; padding: 16px 5px; }
  .song-row h3 { font-size: 13px; }
  .song-pending { max-width: 65px; }
  .plan-board { grid-template-columns: 1fr; gap: 20px; }
  .plan-column { padding: 17px; }
  .plan-column > h3 { font-size: 14px; margin-bottom: 15px; }
  .plan-column .entry-top { flex-wrap: nowrap; }
  .plan-column .entry-card { margin-bottom: 12px; padding: 20px; }
  .column-empty { padding: 13px 8px; margin: 0; }
  .surprise-intro { padding: 36px 25px 26px; flex-direction: column; gap: 25px; align-items: flex-start; }
  .surprise-intro h2 { font-size: 36px; }
  .gift-art { margin: 28px 0 5px 18px; transform: rotate(-8deg) scale(.8); transform-origin: left center; }
  .game-guidance { padding: 18px; gap: 15px; }
  .quiz-card { padding: 25px; }
  .rounds-area { margin-top: 35px; }
  .round { padding: 0 17px; }
  .round summary { gap: 9px; }
  .round summary strong { font-size: 12px; }
  .spark-hero { padding: 35px 24px; }
  .spark-hero .eyebrow { font-size: 8px; line-height: 1.8; }
  .spark-hero h2 { font-size: 40px; }
  .app-dialog { padding: 24px 20px; border-radius: 18px; width: calc(100% - 24px); max-height: calc(100dvh - 30px); }
  .dialog-heading { gap: 9px; }
  .dialog-heading h2 { font-size: 28px; }
  .dialog-actions { gap: 9px; }
  .dialog-actions .button { font-size: 11px; padding: 11px 15px; }
  .question-editor { padding: 14px; }
  input:not([type="radio"]), textarea, select { font-size: 16px; }
  .login-page { grid-template-columns: 1fr; }
  .login-intro { padding: 30px 26px 27px; min-height: 370px; }
  .login-intro .brand { font-size: 23px; margin-bottom: 42px; }
  .login-intro h1 { font-size: 39px; }
  .login-intro > div:not(.login-art) { position: relative; z-index: 1; }
  .login-intro > div > p:not(.eyebrow) { font-size: 11px; max-width: 265px; margin-bottom: 25px; }
  .login-art { position: absolute; right: -29px; bottom: -22px; opacity: .23; }
  .login-art .orchid-art { width: 195px; height: 285px; }
  .login-footnote { text-align: left; font-size: 8px; }
  .login-panel { padding: 36px 28px 50px; }
  .welcome-icon { display: none; }
  .login-card h2 { font-size: 38px; }
  .login-card .eyebrow { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
