@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Literata:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --ink: #231A3D; --amber: #C9821E; --dusk: #3E4A8C; --bloom: #A94856; --surface: #F4F3F8;
  --amber-t: #F7ECDB; --bloom-t: #F5E4E7; --dusk-t: #E3E6F2; --teal: #1F9E8E; --rose: #B84A5C;
  --muted: #6B6483; --line: #E3E0EC; --white: #FFFFFF; --amber-ink: #8A5A12; --muted-ink: #5E5776;
  --good: #2E8B57; --warn: #D9A02B; --serious: #D2691E; --critical: #B3261E;
  --display: Fredoka, 'Trebuchet MS', sans-serif; --story: Literata, Georgia, serif; --ui: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 19px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--ui); line-height: 1.5; padding-top: 56px; }
a { color: var(--dusk); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.2px; }
h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 21px; }
p { margin: 0 0 14px; }
.story { font-family: var(--story); font-size: 24px; line-height: 1.6; }
.small { font-size: 15px; color: var(--muted); }
.label { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.amber { color: var(--amber); } .bloom { color: var(--bloom); } .dusk { color: var(--dusk); }
.muted { color: var(--muted); }

/* ---------- top navigation (injected) ---------- */
.topnav { position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--ink); color: var(--surface); display: flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 15px; z-index: 50; }
.topnav a { color: var(--surface); text-decoration: none; opacity: .85; } .topnav a:hover { opacity: 1; }
.topnav .brand { font-family: var(--display); font-weight: 600; font-size: 18px; opacity: 1; }
.topnav .brand span { color: var(--amber); }
.topnav .sep { width: 1px; height: 22px; background: rgba(244,243,248,.25); }
.topnav .title { flex: 1; text-align: center; font-weight: 700; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav .pn { display: flex; gap: 14px; }
.topnav .pn a { padding: 6px 12px; border: 1px solid rgba(244,243,248,.3); border-radius: 16px; }

/* ---------- phone frame (family-facing) ---------- */
.phone { width: 430px; max-width: 100%; margin: 28px auto; background: var(--white); border-radius: 34px; padding: 30px 26px 34px; min-height: 820px; box-shadow: 0 6px 30px rgba(35,26,61,.10); position: relative; }
.phone.night { background: var(--ink); color: var(--surface); }
.phone.night .small, .phone.night .label, .phone.night .muted { color: rgba(244,243,248,.7); }
.phone.wa { background: #ECE5DD; }
.screen-note { width: 430px; max-width: 100%; margin: -10px auto 40px; font-size: 15px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 18px; }
.screen-note b { color: var(--ink); }
.screen-note ul { margin: 6px 0 0; padding-left: 20px; }
.appbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.appbar .back { width: 44px; height: 44px; border-radius: 22px; background: var(--surface); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-size: 22px; }
.appbar h1 { margin: 0; font-size: 28px; }
.spacer { flex: 1; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; padding: 0 22px; border-radius: 32px; background: var(--ink); color: var(--surface); font-family: var(--ui); font-weight: 800; font-size: 21px; text-decoration: none; border: 0; cursor: pointer; margin: 10px 0; }
.btn.amber { background: var(--amber); color: var(--ink); }
.btn.bloom { background: var(--bloom); color: var(--white); }
.btn.ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.btn.sm { min-height: 48px; font-size: 17px; width: auto; display: inline-flex; padding: 0 18px; margin: 4px 6px 4px 0; }
.btn.danger { background: var(--white); color: var(--critical); border: 2px solid var(--critical); }
.phone.night .btn.ghost { background: transparent; color: var(--surface); border-color: rgba(244,243,248,.35); }

/* forms */
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.field .hint { font-size: 15px; color: var(--muted); margin-top: 6px; }
.input { width: 100%; min-height: 60px; border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; font-size: 20px; font-family: var(--ui); background: var(--white); color: var(--ink); display: flex; align-items: center; }
.input.placeholder { color: var(--muted); }
textarea.input { min-height: 120px; padding: 14px 18px; display: block; }
.choice { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; font-size: 19px; font-weight: 700; background: var(--white); color: var(--ink); text-decoration: none; }
.choice.on { border-color: var(--amber); background: var(--amber-t); }
.choice .radio { width: 26px; height: 26px; border-radius: 13px; border: 2px solid var(--muted); flex-shrink: 0; }
.choice.on .radio { border: 8px solid var(--amber); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; }
.toggle .sw { width: 56px; height: 32px; border-radius: 16px; background: #CFCBDA; position: relative; flex-shrink: 0; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: var(--white); }
.toggle .sw.on { background: var(--amber); } .toggle .sw.on::after { left: 27px; }

/* cards & patterns */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin: 0 0 14px; }
.phone .card { background: var(--surface); border: 0; }
.feed-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 20px; padding: 14px; margin-bottom: 14px; text-decoration: none; color: var(--ink); }
.feed-card .thumb { width: 84px; height: 84px; border-radius: 16px; background: var(--dusk-t); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-card .eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); }
.feed-card .txt { font-family: var(--story); font-size: 19px; line-height: 1.35; margin: 4px 0 8px; }
.play { width: 52px; height: 52px; border-radius: 26px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.play svg { width: 22px; height: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 5px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); }
.chip .av { width: 26px; height: 26px; border-radius: 13px; color: var(--white); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--dusk); }
.chip.amber { background: var(--amber-t); border-color: transparent; color: #8A5A12; } .chip.amber .av { background: var(--amber); }
.chip.bloom { background: var(--bloom-t); border-color: transparent; color: #8C3A46; } .chip.bloom .av { background: var(--bloom); }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.board { border-radius: 18px; padding: 16px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--amber); }
.board::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(35,26,61,.25); }
.board .t { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.1; }
.board .n { font-size: 15px; font-weight: 700; opacity: .75; }
.board.dusk { background: var(--dusk); color: var(--surface); } .board.bloom { background: var(--bloom); color: var(--white); } .board.ink { background: var(--ink); color: var(--surface); }
.sealed { background: var(--bloom-t); border: 2px dashed var(--bloom); border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; text-decoration: none; color: var(--ink); }
.sealed .lock { width: 52px; height: 52px; border-radius: 26px; background: var(--bloom); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sealed.open { background: var(--amber-t); border: 2px solid var(--amber); } .sealed.open .lock { background: var(--amber); }
.avatar { width: 64px; height: 64px; border-radius: 32px; background: var(--dusk-t); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 26px; color: var(--dusk); flex-shrink: 0; }
.avatar.lg { width: 110px; height: 110px; border-radius: 55px; font-size: 44px; margin: 0 auto 16px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.person .who { flex: 1; } .person .who b { font-size: 20px; display: block; } .person .who span { font-size: 15px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.pill.good { background: #DDF1E4; color: #1E6B41; } .pill.warn { background: #FBEFD1; color: #7A5510; } .pill.serious { background: #F9E1D2; color: #8A3F0E; } .pill.critical { background: #F7D9D6; color: #8A1C15; }
.pill.info { background: var(--dusk-t); color: var(--dusk); } .pill.neutral { background: #ECEAF1; color: var(--muted); }
.pill.amber { background: var(--amber-t); color: #8A5A12; } .pill.bloom { background: var(--bloom-t); color: #8C3A46; }

/* steps / progress */
.steps { list-style: none; margin: 0 0 18px; padding: 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.steps .dot { width: 34px; height: 34px; border-radius: 17px; border: 3px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: var(--muted); background: var(--white); }
.steps li.done .dot { background: var(--good); border-color: var(--good); color: var(--white); }
.steps li.now .dot { border-color: var(--amber); color: var(--amber); }
.steps li b { display: block; font-size: 19px; } .steps li span { font-size: 15px; color: var(--muted); }
.progress { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 18px; }
.progress i { display: block; height: 100%; background: var(--amber); border-radius: 6px; }

/* list price struck through next to the family's own keep price (Q-297); .sr = screen-reader-only text */
.was { text-decoration: line-through; color: var(--muted); font-family: var(--display); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* whatsapp mock */
.wa-head { display: flex; align-items: center; gap: 12px; background: #075E54; color: #fff; margin: -30px -26px 18px; padding: 14px 20px; border-radius: 34px 34px 0 0; }
.wa-head .av { width: 44px; height: 44px; border-radius: 22px; background: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--ink); font-weight: 600; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; margin-bottom: 10px; font-size: 18px; line-height: 1.4; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.me { background: #DCF8C6; margin-left: auto; }
.phone.wa .label { color: var(--muted-ink); } /* --muted is 4.45 on the WhatsApp beige; --muted-ink is AA (KI-18) */
.bubble .time { display: block; font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.bubble .qbtn { display: block; text-align: center; color: #075E54; font-weight: 800; border-top: 1px solid #eee; margin: 8px -16px -12px; padding: 10px; }

/* player */
.bigplay { width: 128px; height: 128px; border-radius: 64px; background: var(--amber); display: flex; align-items: center; justify-content: center; margin: 24px auto; box-shadow: 0 8px 26px rgba(201,130,30,.45); }
.bigplay svg { width: 56px; height: 56px; }
.pagepick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.pagepick span { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; border: 2px solid rgba(244,243,248,.25); }
.pagepick span.on { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.voicepick { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; }
.voicepick .v { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.voicepick .v .avatar { width: 56px; height: 56px; border-radius: 28px; font-size: 22px; }
.voicepick .v.on .avatar { outline: 4px solid var(--amber); }
.recbtn { width: 120px; height: 120px; border-radius: 60px; background: var(--bloom); margin: 20px auto; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(169,72,86,.4); }
.wave { display: flex; align-items: center; gap: 4px; height: 48px; justify-content: center; }
.wave i { width: 6px; border-radius: 3px; background: var(--amber); display: block; }

/* bottom tab bar (app) */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; border-top: 1px solid var(--line); display: flex; background: var(--white); border-radius: 0 0 34px 34px; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }
.tabs a.on { color: var(--ink); } .tabs svg { width: 26px; height: 26px; }
.phone.tabbed { padding-bottom: 110px; }

/* qr placeholder */
.qr { width: 120px; height: 120px; background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 8px; display: block; }

/* ---------- admin (desktop) ---------- */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.side .grp { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; }
.side a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.side a.on { background: var(--amber-t); color: #8A5A12; }
.side a:hover { background: var(--surface); }
.main { padding: 26px 32px 60px; max-width: 1400px; }
.pagehead { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; font-size: 30px; } .pagehead p { margin: 0; color: var(--muted); font-size: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .f { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.filters .f.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.tile .k { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--display); font-size: 32px; font-weight: 600; margin: 4px 0 2px; }
.tile .d { font-size: 14px; color: var(--muted); }
.tile .d.up { color: var(--good-ink); } .tile .d.down { color: var(--critical); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .grid2, .grid3 { grid-template-columns: 1fr; } .admin { grid-template-columns: 1fr; } .side { position: static; height: auto; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.panel h3 { font-size: 18px; margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FAF9FC; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a { font-weight: 700; }
.tblwrap { overflow-x: auto; margin-bottom: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.abtn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14px; text-decoration: none; border: 0; }
.abtn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.abtn.danger { background: var(--white); color: var(--critical); border: 1px solid var(--critical); }
.abtn.amber { background: var(--amber); color: var(--ink); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 14px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }

/* simple CSS charts (bars) */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars .r { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; font-size: 14px; }
.bars .r .b { height: 14px; background: var(--dusk-t); border-radius: 4px; overflow: hidden; }
.bars .r .b i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--amber); }
.bars .r .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; }
.cols .c i { display: block; width: 100%; max-width: 44px; background: var(--amber); border-radius: 4px 4px 0 0; }
.cols .c i.s2 { background: var(--dusk); } .cols .c i.s3 { background: var(--teal); } .cols .c i.s4 { background: var(--rose); }
.cols-x { display: flex; gap: 10px; padding: 6px 4px 0; font-size: 12px; color: var(--muted); } .cols-x span { flex: 1; text-align: center; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--amber); }
.legend i.s2 { background: var(--dusk); } .legend i.s3 { background: var(--teal); } .legend i.s4 { background: var(--rose); }
.stack { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); }
.stack i { display: block; height: 100%; background: var(--amber); } .stack i.s2 { background: var(--dusk); } .stack i.s3 { background: var(--teal); } .stack i.s4 { background: var(--rose); }
.spec { background: #FAF9FC; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); margin: 14px 0; }
.spec b { color: var(--ink); }

/* index pages */
.hero { max-width: 1100px; margin: 40px auto 20px; padding: 0 24px; }
.hero h1 { font-size: 46px; } .hero h1 span { color: var(--amber); }
.hero p { font-size: 21px; max-width: 760px; }
.entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto 40px; padding: 0 24px; }
.entry a { display: block; background: var(--white); border-radius: 24px; padding: 28px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.entry a h2 { font-size: 30px; } .entry a p { color: var(--muted); font-size: 17px; margin: 0; }
.entry a.fe { border-top: 8px solid var(--amber); } .entry a.be { border-top: 8px solid var(--dusk); }
.sitemap { max-width: 1100px; margin: 0 auto 60px; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.sitemap .grp h3 { font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-family: var(--ui); font-weight: 800; margin-bottom: 8px; }
.sitemap .grp a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; background: var(--white); border-radius: 10px; margin-bottom: 6px; text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 600; border: 1px solid var(--line); }
.sitemap .grp a em { font-style: normal; color: var(--muted); font-size: 13px; width: 28px; flex-shrink: 0; }
.sitemap .grp a:hover { border-color: var(--amber); }
@media (max-width: 760px) { .entry { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } html { font-size: 17px; } }

/* ---------- media components: everything is a book, a voice, or a clip ---------- */
.paper { background: #FBF7EE !important; color: var(--ink) !important; }
.cover { width: 64px; height: 84px; border-radius: 4px 8px 8px 4px; background: var(--ink); position: relative; flex-shrink: 0; box-shadow: 2px 2px 6px rgba(35,26,61,.25); overflow: hidden; }
.cover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(0,0,0,.35); }
.cover .t { position: absolute; left: 12px; right: 6px; bottom: 8px; font-family: var(--display); font-size: 10px; line-height: 1.1; color: var(--surface); }
.cover.amber { background: var(--amber); } .cover.amber .t { color: var(--ink); } .cover.dusk { background: var(--dusk); } .cover.bloom { background: var(--bloom); }
.cover.paper { background: #FBF7EE !important; border: 1px solid #E3DCCB; } .cover.paper .t { color: var(--ink); }
.cover .moon { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 9px; background: var(--amber); }
.cover .sun { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 9px; background: var(--surface); opacity: .8; }
.wave-mini { display: inline-flex; align-items: center; gap: 2px; height: 18px; vertical-align: middle; }
.wave-mini i { width: 3px; border-radius: 2px; background: var(--amber); display: block; }
.vthumb { width: 124px; height: 82px; border-radius: 12px; background: #16102A; position: relative; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vthumb .dur { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px; }
.vthumb .play { width: 40px; height: 40px; background: var(--amber); } .vthumb .play svg { fill: #231A3D; }
.athumb { width: 124px; height: 82px; border-radius: 12px; background: var(--amber-t); position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.athumb .wave-mini { height: 40px; } .athumb .wave-mini i { width: 4px; }
.athumb .dur { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 800; color: #8A5A12; }
.face { width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 19px; background: var(--amber-t); color: #8A5A12; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); flex-shrink: 0; }
.face.dusk { background: var(--dusk-t); color: var(--dusk); } .face.bloom { background: var(--bloom-t); color: #8C3A46; } .face.ink { background: var(--ink); color: var(--surface); }
.face.lg { width: 76px; height: 76px; border-radius: 38px; font-size: 30px; }
.faces { display: flex; } .faces .face { margin-left: -10px; } .faces .face:first-child { margin-left: 0; }
.tellers { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; }
.tellers a { flex-shrink: 0; text-align: center; text-decoration: none; color: inherit; width: 84px; font-size: 14px; font-weight: 800; }
.tellers a .face.lg { margin: 0 auto 6px; } .tellers a.on .face.lg { outline: 4px solid var(--amber); }
.tellers a span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.shelf { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 4px; }
.shelf .item { flex-shrink: 0; width: 100px; text-align: center; text-decoration: none; color: inherit; }
.shelf .item .cover { width: 100px; height: 132px; margin: 0 auto 6px; } .shelf .item .cover .t { font-size: 13px; left: 14px; bottom: 10px; }
.shelf .item .n { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.shelf-board { height: 10px; border-radius: 3px; background: #D9C9A8; box-shadow: 0 3px 4px rgba(0,0,0,.12); margin: 0 0 18px; }
.miniplayer { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); border-radius: 18px; padding: 12px 14px; text-decoration: none; margin-bottom: 14px; }
.miniplayer .prog { height: 4px; background: rgba(244,243,248,.2); border-radius: 2px; margin-top: 8px; } .miniplayer .prog i { display: block; height: 100%; background: var(--amber); border-radius: 2px; }
.miniplayer .meta { flex: 1; min-width: 0; } .miniplayer .meta b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.15; } .miniplayer .meta span { font-size: 13px; opacity: .75; }
.clip { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid #EFE9DC; }
.clip .who { flex: 1; min-width: 0; } .clip .who b { display: block; font-family: var(--story); font-size: 18px; line-height: 1.3; } .clip .who span { font-size: 13px; color: var(--muted); }

/* paper surface support — every family screen sits on the book's paper */
.phone.paper .card { background: #fff; border: 1px solid #E3DCCB; }
.phone.paper .btn.ghost { background: #fff; border-color: #E3DCCB; }
.phone.paper .input { border-color: #E3DCCB; background: #fff; }
.phone.paper .choice { border-color: #E3DCCB; } .phone.paper .choice.on { border-color: var(--amber); background: var(--amber-t); }
.phone.paper .appbar .back { background: #fff; }
.phone.paper .person, .phone.paper .toggle { border-color: #EFE9DC; }
.phone.paper .feed-card { background: #fff; }
.phone.paper .progress { background: #E3DCCB; }
.phone.paper .steps .dot { background: #fff; border-color: #E3DCCB; }
.phone.paper .pill.neutral { background: #fff; }
.phone.paper .tabs { background: #FBF7EE; border-top-color: #EFE9DC; }
.phone.paper .chip { border-color: #E3DCCB; }
.phone.paper .qr { border-color: #E3DCCB; }
.face.paper { background: #fff; border: 2px dashed #C9C2B2; color: #8A8399; }

/* ---------- a real hardcover ---------- */
/* small covers: hinge shading + page block on the right */
.cover { background-image: linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(0,0,0,.14) 7px, rgba(255,255,255,.10) 9px, transparent 15px); }
.cover::after { content: ''; position: absolute; right: 0; top: 3px; bottom: 3px; width: 4px; background: repeating-linear-gradient(to bottom, #F8F3E6 0 1px, #D8D0BC 1px 2.5px); opacity: .95; }
/* large hero book: 3D */
.book3d { position: relative; width: 170px; height: 226px; transform: perspective(900px) rotateY(-18deg) rotateX(1deg); transform-style: preserve-3d; filter: drop-shadow(16px 20px 22px rgba(0,0,0,.45)); flex-shrink: 0; }
.book3d .spine { position: absolute; left: -13px; top: 1px; bottom: 1px; width: 14px; background: linear-gradient(90deg, #0E0A1B, #2A1F4E 60%, #3A2D66); transform-origin: right center; transform: rotateY(62deg); border-radius: 4px 0 0 4px; }
.book3d .front { position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; overflow: hidden; background: #231A3D; box-shadow: inset 8px 0 12px -6px rgba(0,0,0,.75), inset -1px 0 2px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06); }
.book3d .front svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.book3d .front .gloss { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 70%, rgba(255,255,255,.05) 100%); pointer-events: none; }
.book3d .series { position: absolute; left: 20px; top: 16px; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber); }
.book3d .title { position: absolute; left: 20px; right: 16px; bottom: 50px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.08; color: #F4F3F8; text-shadow: 0 1px 3px rgba(0,0,0,.55); text-wrap: balance; }
.book3d .by { position: absolute; left: 20px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: rgba(244,243,248,.9); }
.book3d .by .ph { width: 24px; height: 24px; border-radius: 12px; background: var(--amber-t); color: #8A5A12; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 12px; border: 1.5px solid #FBF7EE; box-shadow: 0 1px 2px rgba(0,0,0,.4); flex-shrink: 0; }
.book3d .pages { position: absolute; top: 6px; bottom: 6px; right: -8px; width: 9px; background: repeating-linear-gradient(to bottom, #FBF7EE 0 1px, #D8D0BC 1px 2.5px); border-radius: 0 2px 2px 0; transform: translateZ(-2px); box-shadow: 2px 0 3px rgba(0,0,0,.25); }
.book3d .pages-b { position: absolute; left: 4px; right: -6px; bottom: -6px; height: 7px; background: repeating-linear-gradient(to right, #FBF7EE 0 1px, #D8D0BC 1px 2.5px); border-radius: 0 0 4px 3px; transform: translateZ(-2px); }
.book3d.sm { width: 120px; height: 160px; } .book3d.sm .title { font-size: 13px; bottom: 40px; left: 15px; } .book3d.sm .series { left: 15px; top: 12px; font-size: 7px; } .book3d.sm .by { left: 15px; bottom: 11px; font-size: 9px; } .book3d.sm .by .ph { width: 20px; height: 20px; font-size: 10px; }

/* ---------- Dadi: an illustrated face, used wherever a photo would be ---------- */
:root { --dadi-img: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='32' r='32' fill='%23F7ECDB'/><circle cx='32' cy='13' r='8' fill='%239A9AA6'/><path d='M15 36c0-12 7-21 17-21s17 9 17 21v3H15z' fill='%23B9B9C4'/><ellipse cx='32' cy='37' rx='13.5' ry='15.5' fill='%23E8B990'/><circle cx='32' cy='27.5' r='1.5' fill='%23A94856'/><circle cx='26.5' cy='36' r='4.2' fill='none' stroke='%23231A3D' stroke-width='1.4'/><circle cx='37.5' cy='36' r='4.2' fill='none' stroke='%23231A3D' stroke-width='1.4'/><path d='M30.7 36h2.6' stroke='%23231A3D' stroke-width='1.4'/><circle cx='26.5' cy='36.5' r='1.3' fill='%23231A3D'/><circle cx='37.5' cy='36.5' r='1.3' fill='%23231A3D'/><path d='M26 44c3 3.2 9 3.2 12 0' stroke='%23A94856' stroke-width='1.7' fill='none' stroke-linecap='round'/><path d='M6 66c2-13 12-19 26-19s24 6 26 19z' fill='%23A94856'/><path d='M19 66c2-9 6-13 12-14' stroke='%23C9821E' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>"); }
.face.dadi, .book3d .by .ph.dadi { background: #F7ECDB var(--dadi-img) center/cover no-repeat; color: transparent; }
/* landing page grows into two columns on tablet / desktop */
@media (min-width: 900px) {
  .phone.landing { width: 960px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 40px 44px; min-height: 0; }
  .phone.landing .col-a, .phone.landing .col-b { min-width: 0; }
  .phone.landing .col-b { padding-top: 8px; }
  .phone.landing h1 { font-size: 46px; }
  .screen-note.landing-note { width: 960px; }
}

/* book sides: soft paper edges instead of hard stripes */
.book3d .pages { top: 5px; bottom: 5px; right: -6px; width: 7px; background: linear-gradient(90deg, #E9E1CC 0%, #FBF7EE 45%, #EFE8D6 100%); border-radius: 0 3px 3px 0; box-shadow: inset -1px 0 0 rgba(0,0,0,.08), 1px 0 2px rgba(0,0,0,.18); transform: none; }
.book3d .pages::after { content: ''; position: absolute; inset: 2px 1px; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(120,105,80,.12) 2px 3px); }
.book3d .pages-b { left: 6px; right: -5px; bottom: -5px; height: 6px; background: linear-gradient(180deg, #EFE8D6, #FBF7EE 50%, #E4DBC4); border-radius: 0 0 3px 3px; box-shadow: 0 1px 2px rgba(0,0,0,.18); transform: none; }
.book3d .spine { left: -10px; width: 11px; background: linear-gradient(90deg, #1A1233, #3A2D66); border-radius: 3px 0 0 3px; transform: none; }
.book3d .front { border-radius: 2px 8px 8px 2px; }

.book3d .pages-b { display: none; }

/* ---------- app shell (nav.js → shell()): fixed phone, sticky header, scrolling body, docked tabs ---------- */
.phone.shell { display: flex; flex-direction: column; padding: 0 !important; height: min(880px, calc(100vh - 90px)); min-height: 640px; overflow: hidden; }
.phone.shell .sh-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; }
.phone.shell .sh-body::-webkit-scrollbar { display: none; }
.sh-head { flex-shrink: 0; padding: 16px 16px 10px; background: inherit; border-radius: 34px 34px 0 0; box-shadow: 0 1px 0 rgba(35,26,61,.06); position: relative; z-index: 3; }
.sh-row { display: flex; align-items: center; gap: 10px; }
.sh-logo { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, #3A2D66, #231A3D 70%); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(35,26,61,.28); flex-shrink: 0; }
.sh-logo svg { width: 30px; height: 30px; }
.sh-ctx { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 4px; border-radius: 19px; text-decoration: none; color: var(--ink); font-size: 16px; }
.sh-ctx b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.sh-ctx svg { width: 16px; height: 16px; color: var(--muted); }
span.sh-ctx { padding-left: 2px; }
.face.sm { width: 30px; height: 30px; font-size: 14px; border-width: 1.5px; }
.sh-sp { flex: 1; }
.sh-ic, .sh-me { width: 42px; height: 42px; border-radius: 21px; display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; position: relative; }
.sh-ic { background: #fff; border: 1px solid #E3DCCB; color: var(--ink); }
.sh-ic svg { width: 21px; height: 21px; }
.sh-ic i { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 5px; background: var(--bloom); border: 2px solid #fff; }
.sh-me { background: var(--dusk-t); color: var(--dusk); font-family: var(--display); font-size: 18px; font-weight: 600; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--amber); }
.sh-me.kid { background: var(--amber-t); color: #8A5A12; }
.sh-search { display: flex; align-items: center; gap: 10px; height: 46px; margin-top: 12px; padding: 0 6px 0 16px; border-radius: 23px; background: #fff; border: 1px solid #E3DCCB; box-shadow: 0 2px 6px rgba(35,26,61,.05); color: var(--muted); cursor: text; }
.sh-search > svg { width: 20px; height: 20px; flex-shrink: 0; }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.sh-search input::placeholder { color: #9A93AE; }
.sh-mic { width: 34px; height: 34px; border-radius: 17px; background: var(--amber-t); color: #8A5A12; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-mic svg { width: 18px; height: 18px; }
.phone.night .sh-head { box-shadow: 0 1px 0 rgba(244,243,248,.08); }
.phone.night .sh-ctx { color: var(--surface); }

.sh-dock { flex-shrink: 0; position: relative; z-index: 3; display: flex; align-items: flex-end; height: 76px; padding: 0 6px 10px; background: #fff; border-top: 1px solid #EFE9DC; border-radius: 0 0 34px 34px; box-shadow: 0 -6px 18px rgba(35,26,61,.06); }
.sh-dock a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 10px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 800; position: relative; }
.sh-dock a svg { width: 25px; height: 25px; }
.sh-dock a.on { color: var(--ink); }
.sh-dock a.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); }
.sh-dock a.sh-fab { color: var(--ink); }
.sh-dock a.sh-fab svg { width: 60px; height: 60px; padding: 17px; margin-top: -34px; border-radius: 30px; background: var(--amber); color: var(--ink); border: 4px solid #fff; box-shadow: 0 6px 16px rgba(201,130,30,.45); box-sizing: border-box; }

.sh-menu { position: absolute; top: 66px; right: 14px; z-index: 10; width: 250px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 14px 40px rgba(35,26,61,.25), 0 0 0 1px rgba(35,26,61,.06); display: none; color: var(--ink); }
.sh-menu.left { right: auto; left: 60px; width: 210px; }
.sh-menu.open { display: block; animation: sh-pop .14s ease-out; }
@keyframes sh-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.sh-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 700; }
.sh-menu a:hover, .sh-menu a.on { background: #F6F1E6; }
.sh-menu hr { border: 0; border-top: 1px solid #EFE9DC; margin: 6px 4px; }
.sh-mh { display: flex; gap: 12px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid #EFE9DC; margin-bottom: 6px; }
.sh-mh b { display: block; font-size: 17px; } .sh-mh span:not(.face) { font-size: 13px; color: var(--muted); }
.sh-mt { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
/* guest header (before sign-in / opened from a link) */
.sh-word { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); white-space: nowrap; }
.sh-word span { color: var(--amber-ink); }
.phone.night .sh-word span { color: var(--amber); }
.sh-lang { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border-radius: 18px; background: #fff; border: 1px solid #E3DCCB; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.sh-lang svg { width: 14px; height: 14px; color: var(--muted); }
.phone.shell:not(:has(.sh-dock)) .sh-body { border-radius: 0 0 34px 34px; }
.phone.night .sh-word { color: var(--surface); }
.phone.night .sh-logo { box-shadow: 0 0 0 1px rgba(244,243,248,.2); }
.phone.night .sh-ic, .phone.night .sh-lang { background: rgba(244,243,248,.1); border-color: rgba(244,243,248,.2); color: var(--surface); }

/* ---------- shareable prototype (html/prototype): no designer bar; full-screen on phones, framed on desktop ---------- */
body.proto { padding-top: 0; min-height: 100vh; background: radial-gradient(120% 90% at 50% 0%, #3A2F6E 0%, #231A3D 60%, #1A1330 100%); display: flex; align-items: center; justify-content: center; }
body.proto .phone { margin: 20px auto; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 10px #120C26, 0 0 0 11px rgba(255,255,255,.08); }
body.proto .phone.shell { height: min(880px, calc(100vh - 40px)); }
@media (max-width: 520px) {
  body.proto { display: block; background: var(--surface); }
  body.proto .phone { width: 100%; margin: 0; border-radius: 0; box-shadow: none; min-height: 100dvh; }
  /* the page itself never scrolls on a phone: only .sh-body does, so the header and footer stay docked */
  html:has(body.proto .phone.shell), body.proto:has(.phone.shell) { height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  body.proto .phone.shell { position: fixed; inset: 0; height: auto; min-height: 0; }
  body.proto .phone.shell .sh-body { overscroll-behavior: contain; }
  body.proto .sh-head { border-radius: 0; padding-top: max(14px, env(safe-area-inset-top)); }
  body.proto .sh-dock { border-radius: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); height: auto; min-height: 72px; }
  body.proto .phone.shell:not(:has(.sh-dock)) .sh-body { border-radius: 0; }
}

/* ---------- account panel (parent avatar → slides in from the right) ---------- */
.sh-menu.sh-sheet { position: absolute; inset: 0; top: 0; right: 0; width: auto; padding: 0; background: none; box-shadow: none; border-radius: 34px; overflow: hidden; z-index: 20; }
.sh-menu.sh-sheet.open { display: block; animation: none; }
.sh-scrim { position: absolute; inset: 0; background: rgba(26,19,48,.45); animation: sh-fade .2s ease-out; }
.sh-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 88%; background: #FBF7EE; overflow-y: auto; scrollbar-width: none; padding: 20px 16px 24px; box-shadow: -12px 0 40px rgba(0,0,0,.25); animation: sh-slide .24s cubic-bezier(.2,.8,.2,1); }
.sh-panel::-webkit-scrollbar { display: none; }
@keyframes sh-fade { from { opacity: 0; } }
@keyframes sh-slide { from { transform: translateX(100%); } }
.sh-panel small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.sh-panel a { text-decoration: none; }
.sh-ph { display: flex; gap: 14px; align-items: center; padding: 4px 2px 16px; }
.sh-ph .face.lg { width: 60px; height: 60px; font-size: 26px; }
.sh-ph > div { flex: 1; min-width: 0; }
.sh-ph b { display: block; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; }
.sh-menu.sh-sheet .sh-ph div a { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 800; color: #8A5A12; }
.sh-menu.sh-sheet .sh-x { align-self: flex-start; width: 36px; height: 36px; border-radius: 18px; background: #fff; border: 1px solid #E3DCCB; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; flex-shrink: 0; }
.sh-pl { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 4px; }
.sh-plan { background: var(--ink); color: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 10px; }
.sh-plan .sh-pl { color: #F4C36B; }
.sh-plan b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.sh-plan small { color: rgba(244,243,248,.72); }
.sh-meter { height: 6px; border-radius: 3px; background: rgba(244,243,248,.18); margin: 12px 0 5px; }
.sh-meter i { display: block; height: 100%; border-radius: 3px; background: var(--amber); }
.sh-pbtns { display: flex; gap: 8px; margin-top: 12px; }
.sh-menu.sh-sheet .sh-pbtns a { flex: 1; text-align: center; height: 38px; line-height: 38px; border-radius: 19px; background: rgba(244,243,248,.12); color: var(--surface); font-size: 14px; font-weight: 800; }
.sh-pro { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; margin-bottom: 10px; background: linear-gradient(135deg, #F6D48C 0%, #E9A948 55%, #C9821E 100%); color: var(--ink); box-shadow: 0 6px 18px rgba(201,130,30,.3); }
.sh-pro::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.18); }
.sh-pro .sh-pl { color: #5A3A0A; }
.sh-pro b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.sh-pro small { color: #5A3A0A; margin-top: 4px; }
.sh-menu.sh-sheet .sh-probtn { position: relative; z-index: 1; display: block; text-align: center; height: 44px; line-height: 44px; margin-top: 12px; border-radius: 22px; background: var(--ink); color: var(--surface); font-weight: 800; font-size: 15px; }
.sh-coupon { position: relative; z-index: 1; display: flex; gap: 6px; margin-top: 8px; padding: 4px; border-radius: 22px; background: rgba(255,255,255,.55); border: 1px dashed rgba(90,58,10,.45); }
.sh-coupon input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-transform: uppercase; }
.sh-coupon input::placeholder { text-transform: none; color: #7A5A2A; font-weight: 600; }
.sh-menu.sh-sheet .sh-coupon a { height: 32px; line-height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; color: #8A5A12; font-size: 13px; font-weight: 800; }
.sh-cmsg { position: relative; z-index: 1; font-size: 12.5px; font-weight: 800; margin-top: 6px; min-height: 0; }
.sh-cmsg.ok { color: #1F5A2E; } .sh-cmsg.bad { color: #7A1E2B; }
.sh-menu.sh-sheet .sh-refer { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; border-radius: 20px; background: var(--bloom-t); color: var(--ink); }
.sh-refer b { display: block; font-size: 15px; }
.sh-refer > span:nth-child(2) { flex: 1; }
.sh-gift { width: 42px; height: 42px; border-radius: 21px; background: var(--bloom); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-gift svg { width: 22px; height: 22px; }
.sh-list { background: #fff; border: 1px solid #E3DCCB; border-radius: 20px; padding: 4px 0; }
.sh-menu.sh-sheet .sh-row-a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--ink); }
.sh-menu.sh-sheet .sh-row-a + .sh-row-a { border-top: 1px solid #F1EBDD; }
.sh-ri { width: 36px; height: 36px; border-radius: 11px; background: #F6F1E6; color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-ri svg { width: 19px; height: 19px; }
.sh-rt { flex: 1; min-width: 0; } .sh-rt b { display: block; font-size: 15px; }
.sh-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bloom); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sh-chev { color: #B5AEC4; font-size: 22px; font-weight: 700; line-height: 1; }
.sh-refer .sh-chev { color: #8C3A46; }
.sh-menu.sh-sheet .sh-logout { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 12px; border-radius: 24px; border: 1.5px solid #E6C9CE; background: #fff; color: #A13A4A; font-weight: 800; font-size: 15px; }
.sh-logout svg { width: 20px; height: 20px; }
.sh-ver { text-align: center; font-size: 12px; color: #A49DB6; margin-top: 12px; }
body.proto .sh-menu.sh-sheet { border-radius: 34px; }
@media (max-width: 520px) { body.proto .sh-menu.sh-sheet { border-radius: 0; } }
.sh-menu.sh-sheet a:hover { background: revert-layer; }
.sh-menu.sh-sheet .sh-pbtns a, .sh-menu.sh-sheet .sh-probtn, .sh-menu.sh-sheet .sh-coupon a { display: block; padding-top: 0; padding-bottom: 0; }
.sh-menu.sh-sheet .sh-ph div a { padding: 0; }
.sh-menu.sh-sheet .sh-row-a:hover { background: #FBF7EE; }

/* ---------- story art tile (a story is a scene, not a book) ---------- */
.art { width: 100px; height: 100px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 2px 8px rgba(35,26,61,.18); flex-shrink: 0; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .pl { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 14px; background: rgba(251,247,238,.94); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.art .pl svg { position: static; width: 12px; height: 12px; fill: #231A3D; }
.art .flag { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; background: rgba(251,247,238,.94); color: #8A5A12; border-radius: 9px; padding: 2px 7px; }
.shelf .item .art { margin: 0 auto 6px; }

/* ---------- guest footer: the app's shape before there are any tabs ---------- */
.sh-foot { flex-shrink: 0; position: relative; z-index: 3; background: #fff; border-top: 1px solid #EFE9DC; border-radius: 0 0 34px 34px; box-shadow: 0 -6px 18px rgba(35,26,61,.06); padding: 12px 18px 16px; }
body.proto .sh-foot { border-radius: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.sh-foot .go { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 28px; background: var(--amber); color: var(--ink); font-weight: 800; font-size: 19px; text-decoration: none; }
.sh-foot .sub { display: block; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.sh-foot .sub a { color: #8A5A12; }
.sh-rail { display: flex; align-items: center; gap: 8px; }
.sh-rail .st { flex: 1; text-align: center; font-size: 12px; font-weight: 800; color: #B6AF9C; }
.sh-rail .st i { display: block; height: 5px; border-radius: 3px; background: #EFE9DC; margin-bottom: 6px; }
.sh-rail .st.on { color: #8A5A12; } .sh-rail .st.on i { background: var(--amber); }
.sh-rail .st.done { color: var(--muted); } .sh-rail .st.done i { background: #D9CDAE; }

/* ---------- language chip on stories (nav.js → tagLanguages) ---------- */
.lang { display: inline-flex; align-items: center; gap: 3px; height: 15px; padding: 0 5px 0 4px; margin-left: 7px; border-radius: 5px; vertical-align: 0.18em;
  font-family: var(--ui); font-size: 9px; font-weight: 800; letter-spacing: .9px; line-height: 1; font-style: normal; white-space: nowrap;
  color: inherit; background: color-mix(in srgb, currentColor 7%, transparent); border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.lang::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lc, #8A8399); }
.lang-en { --lc: #5B6BC4; } .lang-hi { --lc: #D9952F; } .lang-mr { --lc: #C25467; }
.lang.on-cover { position: absolute; left: 11px; top: 6px; margin: 0; height: 14px; font-size: 8px; color: #231A3D; background: rgba(251,247,238,.92); border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.25); z-index: 1; }
.stories .cover .lang.on-cover, .cover[style*="width:44px"] .lang.on-cover { left: 8px; top: 4px; }

.sh-foot .sh-rail + .go { margin-top: 12px; }

/* back + next, docked together */
.sh-foot .sh-pair { display: flex; gap: 10px; margin-top: 12px; }
.sh-foot .sh-pair .go { flex: 1; margin: 0; }
.sh-foot .sh-pair .back { width: 56px; height: 56px; border-radius: 28px; background: #fff; border: 2px solid #E3DCCB; color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }

.sh-foot .sh-pair { margin-top: 0; }

/* Back + a quiet text link instead of the amber button (body[data-quiet-next]): the page already has its one primary */
.sh-foot .sh-pair .go.quiet { background: none; color: var(--amber-ink); font-size: 18px; text-decoration: underline; }

/* three-segment step indicator — no text */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 18px; }
.steps3 i { display: block; height: 6px; border-radius: 3px; background: #E9E1CC; }
.steps3 i.done { background: #D9B57A; }
.steps3 i.on { background: var(--amber); }

.steps3 i.done { background: var(--amber); }

/* first-time flow: quiet autosave line */
.autosave { display:flex; align-items:center; gap:6px; min-height:28px; font-size:13px; font-weight:700; color:var(--muted); margin:-10px 0 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.autosave svg { width:14px; height:14px; color:var(--good); flex-shrink:0; }
.autosave b { color:var(--ink); font-weight:800; overflow:hidden; text-overflow:ellipsis; }
.autosave .later { margin-left:auto; flex-shrink:0; color:#8A5A12; font-weight:800; font-size:13px; text-decoration:none; background:var(--amber-t); border:1.5px solid #E8D3AE; border-radius:14px; padding:4px 12px; }

/* bottom-sheet popup (landing sections, terms) */
.sheet-bg { position:fixed; inset:0; background:rgba(18,12,38,.5); z-index:50; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.sheet { position:fixed; left:50%; bottom:0; width:100%; max-width:430px; max-height:82vh; transform:translate(-50%,100%); background:#FBF7EE; border-radius:24px 24px 0 0; z-index:51; display:flex; flex-direction:column; transition:transform .25s ease; box-shadow:0 -10px 30px rgba(0,0,0,.2); }
.sheet.on { transform:translate(-50%,0); } .sheet-bg.on { opacity:1; pointer-events:auto; }
.sheet .grab { width:44px; height:5px; border-radius:3px; background:#D9CDAE; margin:10px auto 0; }
.sheet .sh-t { display:flex; align-items:center; justify-content:space-between; padding:10px 20px 8px; }
.sheet .sh-t b { font-family:var(--display); font-weight:600; font-size:22px; }
.sheet .x { width:40px; height:40px; border-radius:20px; background:#fff; border:2px solid #E3DCCB; display:flex; align-items:center; justify-content:center; color:var(--ink); }
.sheet .x svg { width:18px; height:18px; }
.sheet .sh-c { overflow-y:auto; padding:4px 20px 28px; -webkit-overflow-scrolling:touch; }
.phone.shell.typing .sh-foot { display: none; }
/* terms popup list (setup-story, record-invite) */
.tl { list-style:none; margin:0 0 18px; padding:0; }
.tl li { display:flex; gap:10px; align-items:flex-start; font-size:16px; line-height:1.45; padding:7px 0; }
.tl li svg { width:18px; height:18px; color:var(--good); flex-shrink:0; margin-top:2px; }
.sheet .sh-c h3 { font-family:var(--display); font-weight:600; font-size:19px; margin:6px 0 4px; }
/* OTP boxes (welcome-code, record-verify) */
.otp { display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; margin:6px 0 10px; }
.otp span { height:58px; border-radius:14px; border:2px solid #E3DCCB; background:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--display); font-size:26px; color:var(--ink); }
.otp span.on { border-color:var(--amber); box-shadow:0 0 0 3px rgba(201,130,30,.18); }

/* who's listening: child picker (child header, child menu, parent hand-over) */
.sh-menu.sh-kids { left: 14px; right: 14px; width: auto; padding: 14px; z-index: 30; }
.sh-kids .sh-mt { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); text-transform: none; letter-spacing: 0; padding: 2px 4px 10px; }
.sh-kg { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sh-kg a { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px; border: 2px solid #EFE9DC; border-radius: 18px; font-size: 17px; font-weight: 800; }
.sh-kg a.on { border-color: var(--amber); background: var(--amber-t); }
.sh-kg .face.lg { width: 60px; height: 60px; font-size: 24px; }

.sh-inkids { padding: 0 6px 4px; } .sh-inkids .sh-kg { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.sh-inkids .sh-kg a { padding: 10px 6px; font-size: 15px; } .sh-inkids .face.lg { width: 46px; height: 46px; font-size: 19px; }
.sh-hand { background: #fff; border: 1px solid #EFE9DC; border-radius: 18px; padding: 12px; margin: 0 0 14px; }
.sh-hand .sh-pl { margin-bottom: 10px; }
.sh-hand .sh-kg a { padding: 10px 6px; } .sh-hand .face.lg { width: 48px; height: 48px; font-size: 20px; }

.sh-note { background:#fff; border:1px solid #EFE9DC; border-radius:18px; padding:12px 14px; margin:0 0 14px; font-size:14px; color:var(--muted); }
.sh-row .sh-ctx { min-width: 0; flex-shrink: 1; }
.sh-row .sh-ctx b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* child's view: a slim reminder strip with the way back for a parent */
.sh-kidbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 7px 12px; border-radius: 12px; background: var(--amber-t); font-size: 13px; text-decoration: none; color: var(--muted); font-weight: 700; }
.sh-kidbar b { color: #8A5A12; font-weight: 800; white-space: nowrap; }

/* top selector: All Tickle Toe Tales or a child's view */
.sh-menu.sh-sel { width: 270px; }
.sh-sel .sh-all { width: 28px; height: 28px; border-radius: 8px; background: #231A3D; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sh-sel .sh-all svg { width: 20px; height: 20px; }
.sh-sel .face.sm { width: 28px; height: 28px; font-size: 13px; }
.sh-row .sh-ctx { padding-right: 4px; gap: 4px; } .sh-row .sh-ctx b { font-size: 17px; }
.sh-row .sh-ctx b { font-size: 16px; letter-spacing: -.2px; } .sh-row .sh-ctx { padding-left: 0; } .sh-row { gap: 8px; }
.sh-row .sh-ctx b { font-size: 15.5px; } .sh-row .sh-ic, .sh-row .sh-me { width: 38px; height: 38px; flex-shrink: 0; } .sh-row .sh-logo { width: 40px; height: 40px; flex-shrink: 0; } .sh-row .sh-ctx svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- prototype review layer (Q-299, Q-310): status badge and screenshot mode ----------
   Badge: top bar (admin) or a chip outside the phone (app). Never inside .phone / .main. ?shot=1 hides all prototype chrome. */
:root { --good-ink: #1E6B41; }  /* same value as the root assets/style.css token; --amber-ink is defined above */
.rev { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; padding: 2px 10px; border: 1px solid var(--muted); border-radius: 13px; background: var(--surface); color: var(--muted); font: 800 12px/1.5 var(--ui); white-space: nowrap; }
.rev i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rev small { font: 700 12px/1.5 var(--ui); }
.rev[data-st="in_review"] { background: var(--amber-t); border-color: var(--amber-ink); color: var(--amber-ink); }
.rev[data-st="approved"] { background: var(--white); border-color: var(--good-ink); color: var(--good-ink); }
.topnav .rev { margin-left: 0; }
.rev-chip { position: fixed; top: 10px; right: 10px; z-index: 60; margin: 0; box-shadow: 0 1px 4px rgba(35,26,61,.25); }
@media (max-width: 860px) {
  .rev-chip { top: 0; left: 0; right: 0; height: 28px; justify-content: center; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  body.rev-on { padding-top: 28px; }
  body.proto.rev-on .phone.shell { height: min(880px, calc(100vh - 68px)); }
}
@media (max-width: 520px) { body.proto.rev-on .phone.shell { top: 28px; height: auto; } }
html[data-shot] .topnav, html[data-shot] .rev, html[data-shot] .rev-chip, html[data-shot] .proto-only, html[data-shot] .screen-note { display: none !important; }
html[data-shot] body:not(.proto) { padding-top: 0; }
html[data-shot] .side { top: 0; height: 100vh; }
html[data-shot] .admin { min-height: 100vh; }

/* ---------- calm screens (client feedback 2026-10-05): one main action per screen ----------
   .choice.way        a large two-line choice card; keeps the radio dot (DESIGN.md §2.5)
   details.more-fold  closed fold for secondary options
   .opt               one quiet row (in a fold, or in a plain list)
   .quiet-link        a text-only secondary action under the primary
   .pill-set          a pill row that shows the common pills and hides the rest behind "More" */
.choice.way { align-items: flex-start; padding: 18px; }
.choice.way .radio { margin-top: 2px; }
.choice.way .wt { flex: 1; min-width: 0; }
.choice.way .wt b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.choice.way .wt small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--muted); }

details.more-fold { margin: 6px 0 14px; }
details.more-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: 800; color: var(--amber-ink); }
details.more-fold > summary::-webkit-details-marker { display: none; }
details.more-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
details.more-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.more-fold > summary:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; border-radius: 12px; }
details.more-fold.left > summary { justify-content: flex-start; }
details.more-fold > .more-body { padding: 4px 0 6px; }

.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 2px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--ui); font-size: 17px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.opt:first-child { border-top: 0; }
.opt > span:first-child { flex: 1; min-width: 0; }
.opt small { display: block; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--muted); }
.opt::after { content: '›'; font-size: 22px; font-weight: 700; line-height: 1; color: var(--muted); }

.quiet-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 8px; background: none; border: 0; font-family: var(--ui); font-size: 16px; font-weight: 800; color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiet-link.left { justify-content: flex-start; padding-left: 0; }
.phone.night .quiet-link, .phone.night details.more-fold > summary, .phone.night .pill-more { color: var(--amber); }
.phone.night .opt { color: var(--surface); border-top-color: rgba(244,243,248,.18); }
.phone.night .opt small, .phone.night .opt::after { color: rgba(244,243,248,.7); }

/* focus ring: DESIGN.md 8.2 rule 5 (3px --dusk, offset 2px; --amber on night) */
.quiet-link:focus-visible, .opt:focus-visible, .pill-more:focus-visible, .choice.way:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; border-radius: 12px; }
.choice.way:focus-visible { border-radius: 18px; }
.phone.night details.more-fold > summary:focus-visible, .phone.night .quiet-link:focus-visible, .phone.night .opt:focus-visible, .phone.night .pill-more:focus-visible, .phone.night .choice.way:focus-visible { outline-color: var(--amber); }

.pill-set { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-set > .btn.sm { margin: 0; }
.pill-set:not(.open) > .x:not(.amber) { display: none; }
.pill-set.open > .pill-more { display: none; }
.pill-more { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; background: none; border: 0; font-family: var(--ui); font-size: 16px; font-weight: 800; color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- end-to-end pass (2026-10-06, shell owner): shared sheets, shell controls, message mock-ups. Tokens only. ---------- */
[hidden] { display: none !important; }

/* a closed sheet is out of the tab order and hidden from assistive tech, even when a page script only toggles .on */
.sheet:not(.on) { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sheet.on { visibility: visible; transition: transform .25s ease, visibility 0s; }
.sheet :is(a, button, input, select, textarea, [contenteditable]):focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; }
/* shared sheet form layout: title in .sh-t, fields in .sh-c, one confirm button, a way out */
.sheet .sh-c .field { margin: 0 0 14px; }
.sheet .sh-c .field label { font-size: 16px; margin-bottom: 6px; }
.sheet .sh-c .input { min-height: 52px; font-size: 18px; border-radius: 14px; }
.sheet .sh-c .small { margin: 0 0 12px; }
.sheet .sh-c .sh-actions { display: grid; gap: 8px; margin-top: 16px; }
.sheet .sh-c .sh-actions .btn { min-height: 56px; font-size: 19px; }
.sheet .sh-c .sh-fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.sheet .sh-msg { padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }

/* shell: focus, search form, mic, language menu */
.sh-head :is(a, button):focus-visible, .sh-dock a:focus-visible, .sh-menu :is(a, button, input):focus-visible, .sh-kidbar:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; }
.phone.night .sh-head :is(a, button):focus-visible, .phone.night .sh-dock a:focus-visible, .phone.night .sh-menu :is(a, button, input):focus-visible { outline-color: var(--amber); }
.sh-search:focus-within { outline: 3px solid var(--dusk); outline-offset: 2px; }
.sh-go { width: 32px; height: 32px; margin-left: -8px; padding: 0; border: 0; border-radius: 16px; background: none; color: inherit; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.sh-go svg { width: 20px; height: 20px; }
.sh-mic { border: 0; padding: 0; cursor: pointer; }
.sh-mic[aria-pressed="true"] { background: var(--amber); color: var(--ink); animation: sh-listen 1s ease-in-out infinite; }
@keyframes sh-listen { 50% { box-shadow: 0 0 0 6px var(--amber-t); } }
button.sh-lang { font-family: var(--ui); cursor: pointer; }
.sh-menu.sh-langmenu { width: 170px; }
.sh-tick { width: 16px; flex-shrink: 0; font-weight: 800; color: var(--good-ink); }
.sh-menu a.on .sh-tick::before { content: '\2713'; }
.sh-menu.sh-sel a[href="#"] { cursor: pointer; }

/* child's shell: sleep timer and search result line */
.sleep-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 4px; }
.sleep-opts button { min-height: 64px; border: 2px solid var(--line); border-radius: 20px; background: var(--white); color: var(--ink); font: 800 19px var(--ui); cursor: pointer; }
.sleep-opts button[aria-checked="true"] { border-color: var(--amber); background: var(--amber-t); }
.sh-sleepchip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 4px 12px; border-radius: 12px; background: var(--dusk-t); color: var(--ink); font-size: 13px; font-weight: 700; }
.sh-sleepchip span { display: inline-flex; align-items: center; gap: 6px; }
.sh-sleepchip svg { width: 16px; height: 16px; }
.sh-sleepchip button { min-height: 28px; padding: 0 4px; border: 0; background: none; color: var(--dusk); font: 800 13px var(--ui); text-decoration: underline; cursor: pointer; }
.phone.night .sh-sleepchip { background: rgba(244,243,248,.12); color: var(--surface); }
.phone.night .sh-sleepchip button { color: var(--amber); }
.sh-qline { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sh-qline a { color: var(--amber-ink); font-weight: 800; }
.phone.night .sh-qline { color: rgba(244,243,248,.75); } .phone.night .sh-qline a { color: var(--amber); }

/* message mock-ups: quick replies that work, in-message links, the reviewer's strip */
a.qbtn { text-decoration: none; cursor: pointer; }
a.qbtn:hover { background: var(--surface); }
a.qbtn:focus-visible { outline: 3px solid var(--dusk); outline-offset: -3px; border-radius: 0 0 14px 14px; }
.qbtn.sel::before, .qbtn.chosen::before { content: '\2713\00a0'; }
.qbtn.past { color: var(--muted-ink); font-weight: 700; }
.qbtn.past.chosen { color: #075E54; font-weight: 800; }
.bubble a.lnk { color: #075E54; font-weight: 700; overflow-wrap: anywhere; }
.bubble a.lnk:focus-visible, .bubble a.file:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; border-radius: 6px; }
.bubble a.file { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.bubble a.file::after { content: '\203A'; margin-left: auto; font-size: 20px; color: var(--muted); }
.msg-proto { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--ink); }
.msg-proto a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(244,243,248,.3); border-radius: 18px; color: var(--surface); font: 700 14px var(--ui); text-decoration: none; }
.msg-proto a:hover { border-color: var(--amber); }
.msg-proto a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
body.msg-on { padding-bottom: 64px; }
.msg-leads { margin: 22px 0 0; padding: 12px 14px; border: 1px dashed var(--muted-ink); border-radius: 14px; color: var(--muted-ink); font-size: 14px; }
.msg-leads b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.msg-leads a { display: flex; align-items: center; min-height: 32px; color: var(--dusk); font-weight: 800; }
.msg-leads a:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; border-radius: 6px; }
.em-body a.lnk { color: var(--dusk); overflow-wrap: anywhere; }
.em-body a.attach { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 0 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.em-body a.attach::after { content: '\203A'; margin-left: auto; font-size: 22px; color: var(--muted); }
.em-body a.attach:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; }

/* the start page: journeys and the reviewer's screen list */
.journeys { display: grid; align-content: start; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.journeys .role, .journeys .role.hero { margin: 0; max-width: none; }
.journeys .role:focus-visible { outline: 3px solid var(--dusk); outline-offset: 2px; }
.start-all { margin: 6px 20px 10px; }
.start-all .sitemap { display: block; padding: 0; margin: 0; max-width: none; }
.start-all .sitemap .grp { margin-bottom: 14px; }
.start-all .sitemap .grp a { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .sh-mic[aria-pressed="true"] { animation: none; } .sheet, .sheet:not(.on), .sheet.on { transition: none; } }

/* reviewer ease (Round 6): shown only when nav.js sets <html data-easy> */
html:not([data-easy]) .easy-only { display: none !important; }
