/* Switchbacks (working name) prototype v3: quiet, guidebook-style. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  --paper: #F6F3EC; --card: #FBFAF6; --sand: #E9DFCC; --sage: #A3AE96; --sage-l: #DDE3D5;
  --pine: #4A5D50; --pine-d: #3C4D42; --slate: #5E6B73; --rust: #A65A3C; --ink: #2A2F2C;
  --line: #DCD5C8; --night: #1F2524; --cream: #EDE6D6; --ember: #C98A5A;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
#app { max-width: 560px; margin: 0 auto; padding: 0 0 104px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; color: var(--ink); font-variation-settings: "opsz" 72, "SOFT" 50; }
h1 { font-size: 34px; line-height: 1.12; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--slate); }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin: 0 0 6px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
svg.scene { display: block; width: 100%; height: 100%; }
b.nm { font-weight: 600; color: var(--pine); }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font: 500 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; width: 100%; -webkit-tap-highlight-color: transparent; }
.btn.primary { background: var(--pine); color: #fff; }
.btn.primary:active { background: var(--pine-d); }
.btn.outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn.walked { color: var(--pine); border-color: var(--sage); }
.btn:disabled { opacity: .35; }
.textlink { display: inline-flex; align-items: center; min-height: 48px; color: var(--pine); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 6px -2px; color: var(--slate); font-size: 14px; text-decoration: none; }
.stack { display: grid; gap: 12px; padding: 8px 24px 0; }
.foot { color: var(--slate); font-size: 13px; text-align: center; padding: 24px; margin: 0; }

/* home */
.hero { position: relative; }
.hero-art { height: 230px; border-bottom: 1px solid var(--line); }
.hero-title { padding: 28px 24px 8px; }
.hero-title h1 { font-size: 44px; font-weight: 350; }
.lede { color: var(--slate); font-size: 17px; margin-top: 10px; max-width: 30em; }
.cta { margin: 20px 24px 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.cta h2 { margin-bottom: 8px; }
.cta .btn { margin-top: 16px; }
.section-h { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); padding: 28px 24px 12px; }
.trail { display: block; margin: 0 24px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; }
.trail-art { height: 132px; border-bottom: 1px solid var(--line); }
.trail-body { padding: 16px 20px 18px; }
.trail-body h3 { margin-bottom: 6px; }
.trail-body .muted { font-size: 15px; }
.pline { height: 2px; background: var(--line); border-radius: 2px; margin: 14px 0 10px; overflow: hidden; }
.pline span { display: block; height: 100%; background: var(--pine); transition: width .4s; }
.trail-foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--slate); }
.go { color: var(--pine); font-weight: 500; }

/* page header */
.page-h { padding: 20px 24px 12px; }
.page-h h1 { margin-bottom: 6px; }

/* trail */
.count { color: var(--slate); font-size: 14px; margin: 10px 0 0; }
.count b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); }
.nextup { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; margin: 16px 24px 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.nextup .eyebrow { grid-column: 1 / -1; margin: 0; }
.nextup b { font: 400 19px/1.25 var(--serif); }
.dot { width: 13px; height: 13px; margin-left: 3px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--sage); display: grid; place-items: center; font-style: normal; font-size: 9px; color: #fff; line-height: 1; }

/* week */
.wk-hero { height: 220px; border-bottom: 1px solid var(--line); }
.wk-head { padding: 18px 24px 8px; }
.wk-head h1 { margin-bottom: 18px; }
.block { margin: 0 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.block h4 { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.block h4 small { font-weight: 400; letter-spacing: .02em; text-transform: none; margin-left: 6px; }
.block p { font-size: 17px; line-height: 1.65; }
.opener { color: var(--slate); }
.ref { font-size: 14px !important; color: var(--slate); }
.q { font: 400 22px/1.35 var(--serif) !important; }
.line { font: 400 21px/1.4 var(--serif) !important; color: var(--pine); }
details summary { cursor: pointer; color: var(--slate); font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.done-wrap { padding-bottom: 8px; }
.wnav { display: flex; justify-content: space-between; margin: 8px 24px 0; border-top: 1px solid var(--line); }
.wnav a, .wnav span { min-height: 52px; display: flex; align-items: center; font-size: 14px; color: var(--slate); text-decoration: none; }

/* campfire reader */
.reader { position: fixed; inset: 0; z-index: 30; background: radial-gradient(120% 70% at 50% 100%, #2C3330 0%, var(--night) 60%); color: var(--cream); display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.reader[hidden] { display: none; }
body.reading { overflow: hidden; }
.r-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #B9B3A5; }
.r-top .x { width: 52px; height: 52px; background: none; border: 0; color: var(--cream); font-size: 28px; font-weight: 300; cursor: pointer; }
.r-pg { min-width: 52px; text-align: right; letter-spacing: .04em; }
.r-prog { height: 1px; background: #3D4542; margin: 0 24px; }
.r-prog span { display: block; height: 100%; background: var(--ember); transition: width .3s; }
.r-body { flex: 1; overflow: auto; padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; margin: 0 auto; width: 100%; }
.r-body h2 { color: var(--cream); font-size: 38px; font-weight: 350; line-height: 1.15; }
.r-body p { font: 400 25px/1.5 var(--serif); color: var(--cream); }
.r-body .q { font-size: 28px !important; }
.r-body .line { color: #E2C9A8; font-size: 27px !important; }
.r-body b.nm { color: #E2C9A8; font-weight: 500; }
.r-k { font: 600 12px/1.4 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; color: #B9B3A5 !important; margin-bottom: 18px !important; }
.r-fire { margin-bottom: 28px; }
.cf-art { width: 92px; height: auto; display: block; }
.cf-art .flame { transform-origin: 0 4px; animation: flick 2.8s ease-in-out infinite; }
@keyframes flick { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .82; transform: scaleY(.95); } }
@media (prefers-reduced-motion: reduce) { .cf-art .flame { animation: none; } }
.r-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 12px 24px 24px; max-width: 560px; width: 100%; margin: 0 auto; }
.btn.ghost-dark { background: transparent; color: var(--cream); border-color: #5A625E; }
.btn.ember { background: var(--cream); color: var(--night); }

/* crew */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 8px 24px 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cc { text-align: center; padding: 14px 6px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.cc-art { width: 72px; height: 88px; margin: 0 auto 6px; }
.cc-art .avatar { width: 100%; height: 100%; }
.cc b { display: block; font: 400 17px/1.2 var(--serif); }
.cc small { color: var(--slate); font-size: 12.5px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 12px 24px; min-height: 200px; border: 1.5px dashed var(--sage); border-radius: 14px; color: var(--pine); cursor: pointer; background: var(--card); }
.drop .ic { width: 32px; height: 32px; }
.drop b { font-weight: 500; }
.privacy { margin: 12px 24px; font-size: 14px; color: var(--slate); }
.making { position: relative; margin: 8px 24px; height: 260px; border-radius: 14px; overflow: hidden; background: var(--sand); }
.making img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) sepia(.2) blur(1px); opacity: .75; }
.shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(246,243,236,.6) 50%, transparent 70%); animation: sh 1.6s linear infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.making + .pline { margin: 20px 24px 8px; }
.steps { list-style: none; padding: 0 24px; margin: 8px 0; }
.steps li { min-height: 40px; display: flex; align-items: center; gap: 12px; color: #5E6B73; border-bottom: 1px solid #E8E2D6; font-size: 15px; }
.steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--sage); }
.steps li.ok { color: var(--ink); }
.steps li.ok::before { background: var(--pine); border-color: var(--pine); }
.edit { margin: 8px 24px 12px; border-top: 1px solid var(--line); }
.ec { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ec .cc-art { margin: 0; }
.ef { display: grid; gap: 8px; }
.ef input, .ef select { width: 100%; min-height: 44px; padding: 0 12px; font: 400 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.ef input:focus, .ef select:focus { outline: 2px solid var(--pine); outline-offset: 1px; }
.eb { display: flex; gap: 8px; }
.eb button { min-height: 44px; padding: 0 16px; border-radius: 999px; background: none; border: 1px solid var(--line); color: var(--pine); font: 500 14px var(--sans); cursor: pointer; }
.eb .rm { width: 44px; padding: 0; color: var(--slate); font-size: 20px; margin-left: auto; }


/* toast + tabbar */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 420px); padding: 14px 18px; background: var(--ink); color: var(--cream); border-radius: 10px; font-size: 15px; z-index: 40; box-shadow: 0 8px 24px rgba(30,35,32,.18); }
.toast b { font-weight: 600; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 0; background: rgba(246,243,236,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 0 1 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: var(--slate); text-decoration: none; font-size: 12px; letter-spacing: .04em; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--pine); font-weight: 600; }
body.onboarding .tabbar, body.reading .tabbar, body.first .tabbar { display: none; }

/* ---- round 4: books, sessions, letter ---- */
.motto { font: 400 17px/1.45 var(--serif); color: var(--pine); margin-top: 10px; }
.section-h { font: 400 22px/1.3 var(--serif); margin: 30px 24px 6px; }
.how { list-style: none; margin: 0 24px; padding: 0; counter-reset: h; }
.how li { counter-increment: h; position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--slate); }
.how li b { color: var(--ink); font-weight: 600; }
.how li::before { content: counter(h); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border: 1px solid var(--sage); border-radius: 50%; font-size: 12px; display: grid; place-items: center; color: var(--pine); }
.letter-card { display: grid; gap: 4px; margin: 20px 24px 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--rust); border-radius: 12px; background: var(--card); text-decoration: none; }
.letter-card .eyebrow { margin: 0; }
.letter-card b { font: 400 21px/1.25 var(--serif); }
.letter-card .muted { font-size: 15px; }
.letter-card .go { color: var(--rust); font-size: 14px; margin-top: 4px; }
.optional { display: grid; gap: 2px; margin: 24px 24px 0; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); text-decoration: none; font-size: 15px; color: var(--slate); }
.optional .eyebrow { margin: 0; }
.banner { margin: 0 0 18px; padding: 12px 14px; border: 1.5px dashed var(--rust); border-radius: 10px; background: #F3E6DC; color: #7A3E26; font: 600 13.5px/1.45 var(--sans); }
.letter { padding: 20px 24px 8px; }
.letter h1 { font-size: 34px; font-weight: 350; margin-bottom: 18px; }
.letter-body p { font: 400 18px/1.7 var(--serif); margin: 0 0 16px; }
.stack.flush { padding: 12px 0 24px; }
.textlink.center { text-align: center; display: block; }
.meta { color: var(--slate); font-size: 14px; margin: 0 0 14px; }
.meta b { color: var(--ink); }
.sessions { list-style: none; margin: 12px 24px 24px; padding: 0; border-top: 1px solid var(--line); }
.sess { display: grid; grid-template-columns: 22px 18px 1fr auto; align-items: center; gap: 0 12px; min-height: 72px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sess .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--sage); display: grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }
.sess.done .dot { background: var(--pine); border-color: var(--pine); }
.s-n { font: 400 18px/1 var(--serif); color: var(--slate); }
.s-main b { display: block; font: 400 18px/1.3 var(--serif); }
.s-main small { color: var(--slate); font-size: 13.5px; }
.s-lv { font-size: 12.5px; color: var(--slate); text-align: right; }
.sess.done .s-lv { color: var(--pine); font-weight: 600; }
.tip { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tip summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--pine); list-style: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::before { content: "+"; display: inline-block; width: 14px; }
.tip[open] summary::before { content: "\2013"; }
.tip p { margin: 0; padding: 0 14px 14px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.wk-head .btn { width: 100%; }
.q-item { margin: 18px 0 4px; padding-left: 14px; border-left: 2px solid var(--sage); }
.q-meta { font: 600 12px/1.4 var(--sans) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); margin: 0 0 4px; }
.q-meta .lv { font-weight: 400; color: var(--slate); text-transform: none; letter-spacing: 0; margin-left: 4px; }
.q-item .q { margin: 0; }
.hint { font-size: 14.5px !important; color: var(--slate); margin: 6px 0 0; }
.switch { font-size: 13.5px !important; color: var(--rust); margin: 6px 0 0; }
.part { margin-top: 14px; }
.part-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.part-h span { font: 400 19px/1.3 var(--serif); }
.part-h small { color: var(--slate); font-size: 13px; }
.verse { margin: 0 0 4px; padding: 0; }
.verse p { font: 400 20px/1.5 var(--serif) !important; margin: 0 0 6px; }
.verse cite { font-style: normal; font-size: 13.5px; color: var(--slate); }
.pray { margin: 0 0 14px; }
.pray p:last-child { margin: 0; }
.pray.prompt p:last-child { color: var(--slate); }
.pray.blessing { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.pray.blessing p:last-child { font: 400 19px/1.5 var(--serif); color: var(--pine); }
.done-wrap .btn { width: 100%; }
.sources { margin: 0 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.sources p { font-size: 12.5px; color: var(--slate); margin: 0 0 4px; }
.r-sw { color: #E2C9A8; font-size: 17px !important; }

.r-verse { font: 400 26px/1.45 var(--serif) !important; }
.r-body { justify-content: safe center; }
.r-body p { font-size: 23px; }

/* ---- round 6: book openings ---- */
.opening .subtitle { font: 400 18px/1.4 var(--serif); color: var(--slate); margin: -10px 0 18px; }
.section-h.flush { margin: 26px 0 8px; }
.how-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.how-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--slate); }
.how-list li b { color: var(--ink); font-weight: 600; }
.opening .close { font: 400 21px/1.4 var(--serif); color: var(--pine); margin: 22px 0 4px; }
.extra { font-size: 15.5px !important; color: var(--slate); margin-top: 10px; }
/* ---- round 6 (Track B): home is the three books; fast to a session ---- */
.home-h { padding-bottom: 6px; }
.home-h h1 { font-size: 36px; }
.shelf { margin-top: 8px; }
.trail.row { display: grid; grid-template-columns: 104px 1fr; margin-bottom: 12px; }
.trail.row .trail-art { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.trail.row .trail-art svg { height: 100%; width: 100%; object-fit: cover; }
.trail.row .trail-body { padding: 13px 16px 14px; }
.trail.row .trail-body h3 { font-size: 21px; margin-bottom: 2px; }
.trail.row .trail-body .muted { font-size: 13.5px; line-height: 1.4; margin-bottom: 8px; }
.trail.row .trail-foot { font-size: 13px; }
.home-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin: 10px 24px 0; font-size: 14.5px; }
.about-link { display: inline-block; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--pine); text-decoration: none; }

/* ---- QA pass 2026-10-23: family-on-one-phone polish ---- */
.r-top, .r-prog, .r-nav { flex: none; }
.r-body { min-height: 0; min-width: 0; -webkit-overflow-scrolling: touch; }
.r-body p, .block p, .letter-body p, .how-list li, .sources p { overflow-wrap: break-word; }
.sources p { overflow-wrap: anywhere; font-size: 12.5px; }
.r-hint { font: 400 17px/1.5 var(--sans) !important; color: #B9B3A5 !important; margin-top: 14px; }
.r-start { margin-top: 18px; }
.r-k { color: #D2B48F !important; }
.r-body h2 + .r-hint { margin-top: 18px; }
.read-help { font-size: 13.5px; color: var(--slate); text-align: center; margin: 8px 0 4px; }
.dadturn { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--rust); background: var(--card); border-radius: 0 10px 10px 0; }
.dadturn .q-meta { color: var(--rust); }
.dadturn p:last-child { margin: 0; font-size: 16px; }
.done-wrap { display: grid; gap: 12px; }
.about-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
.wk-hero { height: 180px; }
.s-lv { max-width: 84px; line-height: 1.3; }
.wnav a { padding: 0 2px; }
.q-meta { line-height: 1.45 !important; }
.btn { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.block h4 small { font-size: 12.5px; color: var(--slate); }
.r-body.long p { font-size: 20.5px; line-height: 1.5; }
@media (max-height: 720px) {
  .r-body { padding: 20px 24px; }
  .r-body p { font-size: 21px; }
  .r-body.long p { font-size: 19px; }
  .r-body .q { font-size: 25px !important; }
  .r-body h2 { font-size: 32px; }
  .r-nav { padding-bottom: 16px; }
}
.reader { position: fixed; }
.r-more { display: none; grid-column: 1 / -1; margin: -4px 0 0 !important; text-align: center; font: 500 12.5px/1.2 var(--sans); letter-spacing: .06em; color: #B9B3A5; }
.reader.more .r-more { display: block; }
.reader.more .r-body { -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent); mask-image: linear-gradient(to bottom, #000 84%, transparent); }

/* ---------- preview: kids' ages + Man School categories ---------- */
button.textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }
.kids { margin: 4px 24px 8px; border-top: 1px solid var(--line); }
.kid { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kid-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); min-height: 44px; }
.kid-h .textlink { letter-spacing: 0; text-transform: none; font-size: 14px; min-height: 44px; }
.kid-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stp { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--pine); background: var(--card); color: var(--pine); font: 400 24px/1 var(--sans); cursor: pointer; }
.stepper output { min-width: 64px; text-align: center; display: grid; line-height: 1.1; }
.stepper output b { font: 400 30px/1.1 var(--serif); }
.stepper output small { font-size: 12px; color: var(--slate); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg button { min-height: 48px; min-width: 88px; padding: 0 14px; border: 0; background: none; font: 500 15px var(--sans); color: var(--slate); cursor: pointer; }
.seg button.on { background: var(--pine); color: #fff; }
.kid-tier { margin: 10px 0 0; font-size: 13px; color: var(--slate); }
.agenote { margin: 0 0 14px; padding: 10px 14px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; color: var(--slate); }
.agenote p { margin: 0; }
.agenote b { color: var(--pine); font-weight: 600; }
.agenote-a { display: flex; flex-wrap: wrap; gap: 0 18px; }
.agenote-a .textlink { min-height: 44px; font-size: 14px; }
.menpick { margin: 16px 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.menpick summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; min-height: 52px; font-size: 14px; color: var(--slate); }
.menpick summary::-webkit-details-marker { display: none; }
.menpick summary b { color: var(--pine); font-weight: 600; text-align: right; }
.menpick summary b::after { content: " \25BE"; }
.menpick[open] summary b::after { content: " \25B4"; }
.menpick .small { font-size: 14px; margin: 0 14px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip small { font-size: 12px; color: var(--slate); }
.chip.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip.on small { color: var(--cream); }
.chip:disabled { opacity: .55; cursor: default; }
.menpick #menAll { margin: 0 14px 10px; min-height: 44px; font-size: 14px; }
.empty { margin: 16px 24px; color: var(--slate); font-size: 15px; }

/* ---------- kids setup: guided steps ---------- */
.setup-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.setup-top .back { margin: 0; }
.progress { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--pine); border-radius: 999px; transition: width .2s; }
.stepper.count { justify-content: center; padding: 12px 0; }
.btn.choice { min-height: 88px; font: 400 24px/1 var(--serif); }
.btn.choice.on { background: var(--pine); color: #fff; }
.rv { list-style: none; margin: 0; padding: 0; }
.rv li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.rv .textlink { font-size: 14px; }
.btn.primary:disabled { pointer-events: none; }
body.onboarding #app { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
