/* Little Inquirers app styles. Ported from the approved prototype (prototype/adventure.html). */
:root{--ink:#183c35;--cream:#fff9ed;--card:#fffdf8;--yellow:#f3c85c;--yellow-d:#e9b93d;--apricot:#e98a68;--mint:#c9e4cc;--mint-l:#edf5ea;--leaf:#6fae8c;--forest:#24594d;--line:#e2ddd2;--muted:#4d625c;--faint:#78857e;--serif:"Fraunces",Georgia,serif;--sans:"Hanken Grotesk",system-ui,sans-serif;--r:20px;--section:40px}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:light}}
*{box-sizing:border-box}
html,body{margin:0}
html,body{overflow-x:clip}
body{display:flex;flex-direction:column;min-height:100dvh;position:relative;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55;-webkit-text-size-adjust:100%}
button,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,textarea:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
h1,h2,h3,p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---------- shell ---------- */
.app{flex:1 0 auto;width:100%;position:relative;z-index:1;display:flex;flex-direction:column;max-width:1040px;margin:0 auto}
.top{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:rgba(255,249,237,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);font-size:20px;line-height:1}
.top-title{min-width:0;text-align:center}
.top-title b{display:block;font-family:var(--serif);font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-title small{color:var(--faint);font-size:12px;font-weight:600}
.phases{display:flex;gap:6px;justify-content:center;padding:12px 16px 0}
.phase{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--faint);min-height:32px}
.phase i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;border:1.5px solid #c8ccc4;background:#fff}
.phase.on{color:var(--ink)}.phase.on i{background:var(--ink);color:#fff;border-color:var(--ink)}
.phase.done i{background:var(--mint);border-color:var(--leaf);color:var(--forest)}
.phase+.phase:before{content:"";width:22px;height:2px;background:#d8d4c8;border-radius:2px;margin-right:2px}
.phase span{display:none}.phase.on span{display:inline}
main{flex:1;padding:20px 16px 40px;width:100%}
.ready{display:grid;gap:var(--section)}
.ready .sec-h{margin-top:0}
.kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--forest)}
h1.display{font-family:var(--serif);font-weight:700;font-size:clamp(30px,8vw,46px);line-height:1.06;letter-spacing:-.03em;margin:8px 0 10px}
.lede{font-size:18px;color:var(--muted);max-width:56ch}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;background:var(--mint-l);border:1px solid #d8e6d4;font-size:13px;font-weight:700;color:var(--forest)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.stack>*+*{margin-top:var(--section)}

/* buttons */
.btn{min-height:52px;padding:12px 22px;border-radius:99px;font-weight:800;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;transition:transform .12s,background .15s}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--yellow);color:var(--ink);box-shadow:0 8px 20px rgba(93,70,22,.14);border-color:rgba(108,81,23,.1)}
.btn.primary:hover{background:#f7d372}
.btn.ghost{background:transparent;border:1.5px solid rgba(24,60,53,.32);color:var(--forest)}
.btn.ghost:hover{background:rgba(255,255,255,.7);border-color:var(--forest)}
.btn.dark{background:var(--ink);color:#fff}
.btn.sm{min-height:44px;padding:8px 18px;font-size:15px;border-radius:99px}
.btn[disabled]{opacity:.45;pointer-events:none}
.btn.block{width:100%}
.foot{--fade:40px;position:sticky;bottom:0;z-index:4;padding:var(--fade) 16px 12px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:linear-gradient(rgba(255,249,237,0),var(--cream) var(--fade));display:flex;gap:10px}
.foot .btn.primary{flex:1}
.foot.col{width:100%;max-width:784px;margin-inline:auto}

/* ---------- READY ---------- */
.needs{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.need{display:flex;align-items:center;gap:16px;min-height:72px;padding:10px 16px 10px 12px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.doodle{flex:none;width:56px;height:56px;border-radius:16px;background:var(--mint-l);display:grid;place-items:center}
.doodle svg{width:40px;height:40px}
.nt b{display:block;font-size:17px;font-weight:700;line-height:1.3}
.nt small{display:block;font-weight:500;color:var(--faint);font-size:14px;line-height:1.35;margin-top:1px}
.why summary{cursor:pointer;font-weight:700;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--forest);list-style:none}
.why summary::-webkit-details-marker{display:none}
.why summary::after{content:"";flex:none;width:10px;height:10px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.why[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.why summary:hover{color:var(--ink)}
.why p{color:var(--muted);font-size:15px;margin-top:4px}
.sec-h{font-family:var(--serif);font-size:24px;letter-spacing:-.02em;margin:0 0 16px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.sec-h small{font-family:var(--sans);font-size:13px;color:var(--faint);font-weight:700;letter-spacing:0}

/* ---------- TOGETHER ---------- */
.tg{display:grid;gap:var(--section);grid-template-columns:1fr}
.dots{display:flex;gap:6px;align-items:center}
.dots i{height:6px;flex:1;border-radius:6px;background:#e5dfd0}
.dots i.d{background:var(--leaf)}.dots i.c{background:var(--ink)}
.step-no{margin:14px 0 6px;display:flex;justify-content:space-between;align-items:baseline}
.step-no b{font-weight:800;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--forest)}
.step-no span{font-size:13px;color:var(--faint);font-weight:600}
.step-h{font-family:var(--serif);font-weight:700;font-size:clamp(28px,7vw,38px);line-height:1.08;letter-spacing:-.03em;margin-bottom:12px}
.do{font-size:clamp(19px,4.6vw,22px);line-height:1.45;font-weight:500}
.ask{background:var(--ink);color:#fff;border-radius:var(--r);padding:18px 20px;margin-top:16px}
.ask .kicker{color:var(--yellow)}
.ask p{font-family:var(--serif);font-size:clamp(23px,5.6vw,30px);line-height:1.2;margin-top:6px;letter-spacing:-.01em}
.look{display:flex;gap:12px;margin-top:16px;padding:2px 0 2px 14px;border-left:4px solid var(--leaf)}
.look p{color:var(--muted);font-size:16px}
.look b{color:var(--ink)}
.help{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.helparea{display:grid;gap:10px}
.help button{min-height:52px;border-radius:16px;background:var(--card);border:1px solid var(--line);font-weight:750;font-size:15px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px}
.help button[aria-expanded=true]{background:var(--mint-l);border-color:#bcd7bd}
.hint{background:var(--mint-l);border:1px solid #d3e5d2;border-radius:16px;padding:14px 16px;font-size:16px;animation:pop .18s ease-out}
.hint b{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--forest);margin-bottom:2px}
@keyframes pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* capture dock */
.dock{position:sticky;bottom:0;z-index:4;margin:8px -16px 0;padding:10px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:rgba(255,249,237,.97);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;gap:10px}
.capture{display:grid;gap:8px}
.cap-row{display:grid;grid-template-columns:3fr 2fr;gap:8px}
.cap-btn{min-height:52px;border-radius:16px;background:#fff;border:1.5px solid #d6d1c4;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px}
.cap-btn .dot{width:12px;height:12px;border-radius:50%;background:#d64545}
.cap-btn.has{background:var(--mint-l);border-color:#bcd7bd}
.cap-btn.rec{background:var(--ink);border-color:var(--ink);color:#fff}
.cap-btn.rec .dot{background:#ff6b5e;box-shadow:0 0 0 4px rgba(255,107,94,.28)}
.cap-btn.rec.has{background:var(--mint-l);color:var(--ink);border-color:#bcd7bd}
.cap-btn.rec.has .dot{background:var(--forest);box-shadow:none}
.cap-sub{display:none}
.cap-status{font-size:13px;color:var(--faint);font-weight:600;text-align:center;min-height:0}
@media (max-width:719px){.cap-status{display:none}}
.recbar{display:flex;align-items:center;gap:12px;background:#fff1ee;border:1.5px solid #f0b7a8;border-radius:16px;padding:8px 8px 8px 16px;min-height:60px}
.recbar .pulse{width:14px;height:14px;border-radius:50%;background:#d64545;animation:pulse 1.2s infinite}
@keyframes pulse{50%{opacity:.35;transform:scale(.8)}}
.recbar .time{font-weight:800;font-variant-numeric:tabular-nums;font-size:20px}
.recbar .lbl{flex:1;font-size:14px;color:#7b3b2d;font-weight:600;line-height:1.25}
.nav{display:flex;gap:10px}
.nav .btn.primary{flex:1}
.side-title{display:none}

/* ---------- WRAP ---------- */
.outcomes{display:grid;gap:8px}
.outcomes button{display:flex;gap:14px;align-items:flex-start;text-align:left;padding:11px 16px;min-height:56px;border-radius:16px;background:var(--card);border:1.5px solid var(--line)}
.outcomes .r{flex:none;width:22px;height:22px;margin-top:2px;border-radius:50%;border:2px solid #9bab9f}
.outcomes b{display:block;font-size:16px;line-height:1.3}.outcomes small{display:block;color:var(--muted);font-size:13.5px;line-height:1.35}
.outcomes button[aria-pressed=true]{background:var(--mint-l);border-color:var(--forest)}
.outcomes button[aria-pressed=true] .r{background:var(--forest);box-shadow:inset 0 0 0 4px var(--mint-l)}
.cap-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.cap-list li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;background:var(--card);border:1px solid var(--line);border-radius:14px;font-size:15px}
.cap-list li span:first-child{font-size:20px;line-height:1.3}
.cap-list q{color:var(--muted);quotes:"“" "”"}
.offer{display:grid;gap:10px}
.offer .opt{padding:16px;border-radius:var(--r);border:1.5px solid var(--line);background:var(--card)}
.offer .opt.main{border-color:var(--forest);background:#fff;box-shadow:0 6px 18px rgba(24,60,53,.07)}
.tag{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:800;letter-spacing:.04em;background:var(--mint);color:var(--forest)}
.tag.paid{background:var(--yellow);color:var(--ink)}
.opt h3{font-family:var(--serif);font-size:22px;letter-spacing:-.02em;margin:8px 0 4px}
.opt p{color:var(--muted);font-size:15px;margin-bottom:12px}
.empty-note{padding:16px;border-radius:16px;background:#fff;border:1.5px dashed #cfc9b9;color:var(--muted);font-size:15px}

/* ---------- REFLECT ---------- */
.refl{padding:20px}
.refl h3{font-family:var(--serif);font-size:22px;letter-spacing:-.02em;margin:18px 0 6px}
.refl h3:first-of-type{margin-top:10px}
.refl p,.refl li{color:var(--muted);font-size:16px}
.refl ul{padding-left:20px;margin:6px 0}
.refl blockquote{margin:8px 0;padding:10px 14px;border-left:4px solid var(--yellow);background:#fff8e3;border-radius:0 12px 12px 0;color:var(--ink);font-family:var(--serif);font-size:18px}
.refl .limits{margin-top:18px;padding:12px 14px;border-radius:12px;background:#f3f0e6;font-size:14px;color:var(--muted)}
.next{background:var(--ink);color:#fff;border-radius:var(--r);padding:20px}
.next .kicker{color:var(--yellow)}
.next h3{font-family:var(--serif);font-size:24px;margin:6px 0;letter-spacing:-.02em}
.next p{color:#dbe8e2;font-size:16px}
.gen{display:flex;align-items:center;gap:12px;padding:18px;border-radius:var(--r);background:var(--card);border:1px solid var(--line)}
.spin{width:22px;height:22px;border:3px solid var(--mint);border-top-color:var(--forest);border-radius:50%;animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}

/* ---------- CELEBRATE ---------- */
.cel{text-align:center;padding:12px 0 0}
.cel h1{font-family:var(--serif);font-size:clamp(34px,9vw,56px);line-height:1.05;letter-spacing:-.03em;margin:10px 0 12px}
.handover{display:inline-flex;gap:8px;align-items:center;padding:8px 14px;border-radius:99px;background:var(--mint-l);font-size:14px;font-weight:700;color:var(--forest)}
.stk{width:min(240px,60vw);aspect-ratio:1;margin:26px auto;border-radius:36% 46% 40% 48%;background:linear-gradient(140deg,var(--yellow),var(--apricot));display:grid;place-items:center;font-size:clamp(90px,26vw,128px);box-shadow:0 18px 40px rgba(24,60,53,.2),inset 0 0 0 6px rgba(255,255,255,.45);transform:rotate(-4deg);transition:transform .5s cubic-bezier(.2,1.4,.4,1)}
.stk.closed{background:repeating-linear-gradient(45deg,var(--mint),var(--mint) 12px,#dcefdd 12px,#dcefdd 24px);font-size:80px;color:var(--forest)}
.stk.open{animation:land .7s cubic-bezier(.2,1.4,.4,1)}
@keyframes land{from{transform:scale(.3) rotate(-30deg);opacity:0}to{transform:rotate(-4deg)}}
.stk-name{font-family:var(--serif);font-size:28px;margin-bottom:6px}

/* ---------- SHEET ---------- */
.backdrop{position:fixed;inset:0;z-index:20;background:rgba(19,48,42,.55);display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.sheet{width:100%;max-width:560px;max-height:92dvh;overflow:auto;background:var(--cream);border-radius:28px 28px 0 0;padding:8px 20px max(20px,env(safe-area-inset-bottom));animation:up .22s cubic-bezier(.2,.9,.3,1)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.grab{width:44px;height:5px;border-radius:5px;background:#d4cebe;margin:6px auto 14px}
.sheet h2{font-family:var(--serif);font-size:28px;line-height:1.1;letter-spacing:-.02em;margin-bottom:8px}
.sheet p.sub{color:var(--muted);margin-bottom:14px}
.points{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:10px}
.points li{display:flex;gap:12px;font-size:15px;color:var(--muted)}
.points li>span:first-child{flex:none;font-size:18px}
textarea{width:100%;min-height:150px;resize:vertical;border-radius:16px;border:1.5px solid #cfc9b9;background:#fff;padding:14px;font-size:16px;line-height:1.5}
.qs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.qs button{min-height:44px;padding:6px 14px;border-radius:99px;background:#fff;border:1.5px solid #d6d1c4;font-weight:700;font-size:14px}
.sheet .btns{display:flex;gap:10px;margin-top:14px}
.sheet .btns .btn{flex:1}
.hint-sm{font-size:13px;color:var(--faint);margin-top:8px}
.exps{list-style:none;margin:6px 0 8px;padding:0;display:grid;gap:6px;font-size:14px;color:var(--muted)}
.exps b{display:inline-block;min-width:44px;color:var(--forest)}

/* ---------- TODAY shell ---------- */
.shell{flex:1;display:flex;flex-direction:column;max-width:1120px;margin:0 auto;width:100%}
.thead{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:16px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top))}
.thead::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:rgba(255,249,237,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);opacity:0;transition:opacity .22s ease}
.thead.scrolled::before{opacity:1}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-weight:700;font-size:20px;letter-spacing:-.02em;color:var(--forest)}
.brand i{width:36px;height:36px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-style:normal;font-size:19px}
.switcher{margin-left:auto;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px 0 10px;border-radius:99px;background:#fff;border:1px solid var(--line);font-weight:800;font-size:15px}
.switcher .av{font-size:20px;line-height:1}
.switcher:after{content:"";width:8px;height:8px;border-right:2.2px solid currentColor;border-bottom:2.2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);margin-left:2px}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,253,248,.97);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:6px 8px max(8px,env(safe-area-inset-bottom))}
.tabbar button{min-height:56px;display:grid;justify-items:center;align-content:center;gap:2px;font-size:12px;font-weight:700;color:var(--faint);border-radius:14px}
.tabbar svg{width:28px;height:28px}
.tabbar button[aria-current=page]{color:var(--ink)}
.tabbar button[aria-current=page] svg{color:var(--forest)}
.tabbar button[aria-current=page] span{box-shadow:inset 0 -3px 0 var(--yellow)}
.today{padding:20px 16px 110px;display:grid;gap:var(--section);align-content:start}
.today .side{display:grid;gap:var(--section);align-content:start}
.today h1.display{font-size:clamp(32px,8vw,44px);margin:6px 0 0}
.tcard{background:#fff;border:1px solid var(--line);border-radius:28px;padding:20px;box-shadow:0 12px 32px rgba(24,60,53,.08)}
.tcard-top{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.tile{flex:none;width:64px;height:64px;border-radius:20px;background:var(--mint-l);display:grid;place-items:center}
.tile svg{width:44px;height:44px}
.tcard h2{font-family:var(--serif);font-weight:700;font-size:clamp(28px,7vw,36px);line-height:1.08;letter-spacing:-.03em;margin:4px 0 8px}
.tcard .lede{font-size:17px}
.whyone{display:flex;gap:10px;margin:var(--section) 0 0;padding:14px 16px;border-radius:16px;background:var(--mint-l);font-size:15px;color:var(--muted)}
.whyone b{color:var(--ink)}
.preview{margin:var(--section) 0}
.preview .kicker{display:block;margin-bottom:8px}
.pv{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.pv.three{grid-template-columns:repeat(3,1fr)}
.pv div{display:grid;justify-items:center;align-content:start;gap:4px;text-align:center;font-size:12px;font-weight:600;color:var(--muted);line-height:1.25}
.pv .t{width:52px;height:52px;border-radius:16px;background:var(--mint-l);display:grid;place-items:center}
.pv .t svg{width:34px;height:34px}
.linkbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:8px;font-weight:700;font-size:15px;color:var(--forest);border-radius:14px}
.linkbtn:after{content:"";width:8px;height:8px;border-right:2.2px solid currentColor;border-bottom:2.2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.linkbtn.go:after{display:none}
.linkbtn[aria-expanded=true]:after{transform:rotate(-135deg) translate(-2px,-2px)}
.alts{display:grid;gap:8px;margin-top:6px;animation:pop .18s ease-out}
.alt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 14px 10px 10px;border-radius:16px;background:var(--card);border:1px solid var(--line);min-height:68px}
.alt .tile{width:48px;height:48px;border-radius:14px}.alt .tile svg{width:32px;height:32px}
.alt b{display:block;font-size:16px}.alt small{color:var(--faint);font-weight:600;font-size:13px}
.alt:after{content:"";margin-left:auto;width:8px;height:8px;border-right:2.2px solid var(--faint);border-top:2.2px solid var(--faint);transform:rotate(45deg)}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.panel h3{font-family:var(--serif);font-size:21px;letter-spacing:-.02em;margin-bottom:10px}
ul.rec{list-style:none;margin:0;padding:0;display:grid;gap:2px}
ul.rec li{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #eee8da}
ul.rec li:first-child{border-top:0}
ul.rec .dot{flex:none;width:12px;height:12px;border-radius:50%}
ul.rec b{display:block;font-size:15px;line-height:1.3}ul.rec small{color:var(--faint);font-size:13px;font-weight:600}
ul.rec .when{margin-left:auto;color:var(--faint);font-size:13px;font-weight:600;white-space:nowrap}
.panel .stickers{display:flex;align-items:center;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid #eee8da;font-weight:700;font-size:14px;color:var(--muted)}
.panel .stickers span.s{width:38px;height:38px;border-radius:12px;background:linear-gradient(140deg,#fbe39a,#f4b79c);display:grid;place-items:center;font-size:22px}
.momentrow{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 18px;border-radius:var(--r);border:1.5px dashed #cfc9b9}
.momentrow p{flex:1 1 220px;font-size:15px;color:var(--muted)}.momentrow b{color:var(--ink);display:block;font-size:16px}
.donecard{text-align:center}
.donecard .stk{width:120px;margin:6px auto 14px;font-size:64px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:99px;background:var(--mint-l);font-weight:700;font-size:14px;color:var(--forest)}
.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:40;background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-weight:600;font-size:14px;max-width:min(92vw,420px);text-align:center;animation:pop .2s}
.stub{padding:60px 20px;text-align:center;color:var(--muted)}
.stub h1{font-family:var(--serif);color:var(--ink);font-size:34px;margin-bottom:8px}
.childrow{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;min-height:64px;border-radius:16px;border:1.5px solid var(--line);background:#fff;margin-bottom:8px}
.childrow[aria-pressed=true]{border-color:var(--forest);background:var(--mint-l)}
.childrow .av{font-size:30px}.childrow b{display:block}.childrow small{color:var(--faint);font-weight:600}
@media (max-width:719px){
  body[data-screen=shell] .toast{bottom:150px}
}
@media (min-width:720px){
  .thead{display:none}.tabbar{display:none}.today{padding:32px 32px 48px}
  .toast{bottom:24px}
}
@media (min-width:960px){
  .today{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);column-gap:56px;align-items:start}
  .today>.head{grid-column:1/-1}
  .tcard{padding:28px}
}
/* ---------- hand-drawn tinted shapes ----------
   The tint and a faint sketch outline live on a ::before layer that an SVG turbulence filter roughens,
   so the edges wobble like they were drawn on, while the text on top stays perfectly crisp. */
.tile,.doodle,.pv .t,.whyone,.hint{position:relative;isolation:isolate;background:transparent!important;border-color:transparent}
.tile::before,.doodle::before,.pv .t::before,.whyone::before,.hint::before{content:"";position:absolute;inset:1px;z-index:-1;pointer-events:none;background:var(--tint,var(--mint-l));border:1.6px solid rgba(36,89,77,.22)}
.tile::before,.doodle::before,.pv .t::before{border-radius:44% 56% 48% 52% / 54% 46% 54% 46%;filter:url(#rough-s1)}
.whyone::before,.hint::before{border-radius:26px 34px 28px 32px / 30px 26px 34px 28px;filter:url(#rough-m1)}
.pv div:nth-child(2) .t::before,.alts .alt:nth-child(2) .tile::before,.needs .need:nth-child(2) .doodle::before{border-radius:52% 48% 42% 58% / 46% 56% 44% 54%;filter:url(#rough-s2)}
.pv div:nth-child(3) .t::before,.alts .alt:nth-child(3) .tile::before,.needs .need:nth-child(3) .doodle::before{border-radius:48% 52% 56% 44% / 56% 44% 52% 48%;filter:url(#rough-s3)}
.pv div:nth-child(4) .t::before,.needs .need:nth-child(4) .doodle::before{border-radius:56% 44% 46% 54% / 44% 54% 46% 56%;filter:url(#rough-s2)}
.hint::before{filter:url(#rough-m2);border-radius:32px 26px 34px 28px / 26px 32px 28px 34px}
/* ---------- Today background: paint blotches and grain ---------- */
#decoTop{position:absolute;left:0;right:0;top:0;z-index:0;pointer-events:none;overflow:hidden}
#decoTop.sun{height:640px;-webkit-mask-image:linear-gradient(#000 40%,transparent);mask-image:linear-gradient(#000 40%,transparent);
  background:
   radial-gradient(460px 380px at 88% 4%,rgba(255,206,50,.95),rgba(255,206,50,0) 72%),
   radial-gradient(420px 340px at 6% 16%,rgba(255,150,105,.8),rgba(255,150,105,0) 72%),
   radial-gradient(300px 240px at 56% 0%,rgba(255,105,100,.55),rgba(255,105,100,0) 72%),
   radial-gradient(340px 280px at 96% 40%,rgba(150,215,165,.6),rgba(150,215,165,0) 72%),
   radial-gradient(300px 240px at 34% 44%,rgba(140,195,255,.4),rgba(140,195,255,0) 72%)}
#decoTop.sun::before,#decoTop.sun::after{content:"";position:absolute;inset:0}
#decoTop.sun::before{mix-blend-mode:multiply;opacity:.3;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='b' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.011 .016' numOctaves='4' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8  0 0 0 0 .5  0 0 0 0 .35  0 0 0 -4.5 2.3'/></filter><rect width='100%25' height='100%25' filter='url(%23b)'/></svg>")}
#decoTop.sun::after{mix-blend-mode:multiply;opacity:.8;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 .85'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>")}
/* ---------- EXPLORE ---------- */
.explore{padding:20px 16px 110px;display:grid;gap:var(--section);align-content:start}
.explore h1.display{font-size:clamp(32px,8vw,44px);margin:6px 0 0}
.searchbox{position:relative;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 4px 0 16px;border-radius:16px;background:#fff;border:1.5px solid #d6d1c4;box-shadow:0 6px 18px rgba(24,60,53,.06)}
.searchbox:focus-within{border-color:var(--forest);box-shadow:0 0 0 3px rgba(111,174,140,.35)}
.searchbox>svg{flex:none;width:24px;height:24px;color:var(--faint)}
.searchbox input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:17px;min-height:44px;color:var(--ink);outline:0}
.searchbox input::placeholder{color:var(--faint)}
.searchbox input::-webkit-search-cancel-button,.searchbox input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.searchbox .x{flex:none;width:40px;height:40px;border-radius:50%;font-size:20px;color:var(--faint)}
.qf{display:flex;flex-wrap:nowrap;gap:6px;margin-top:10px}
.qf button{flex:0 1 auto;min-width:0;min-height:44px;padding:0 .75em;border-radius:99px;border:1.5px solid #d6d1c4;background:#fff;font-weight:700;font-size:clamp(11px,3.3vw,15px);white-space:nowrap}
.explore>*{min-width:0}
@media (min-width:480px){.qf{gap:8px}.qf button{padding:0 16px}}
.qf button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.subjects{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.subj{display:grid;justify-items:center;align-content:start;gap:6px;padding:12px 6px 10px;min-height:118px;border-radius:20px;border:1.5px solid var(--line);background:var(--card);text-align:center}
.subj .tile{width:56px;height:56px;border-radius:18px}
.subj b{font-size:14px;line-height:1.2}
.subj small{font-size:12px;color:var(--faint);font-weight:600;line-height:1.2}
.subj[aria-pressed=true]{border-color:var(--forest);background:#fff;box-shadow:0 8px 20px rgba(24,60,53,.1)}
.subj[aria-pressed=true] b{color:var(--forest)}
.exh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px;margin-bottom:14px}
.exh h2{font-family:var(--serif);font-size:24px;letter-spacing:-.02em}
.exh small{color:var(--faint);font-weight:700;font-size:13px;white-space:nowrap}
.group+.group{margin-top:var(--section)}
.jbody .group+.group{margin-top:0}
.group>h3{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--forest);font-weight:800;margin:0 0 10px;display:flex;justify-content:space-between}
.group>h3 span{color:var(--faint);letter-spacing:0;text-transform:none;font-size:13px}
.rows{display:grid;gap:10px}
.row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 16px 12px 12px;min-height:84px;border-radius:20px;background:var(--card);border:1px solid var(--line);transition:transform .12s,box-shadow .15s}
.row:hover{box-shadow:0 8px 20px rgba(24,60,53,.08)}
.row:active{transform:scale(.99)}
.row .tile{width:56px;height:56px;border-radius:18px}
.row .tile svg{width:38px;height:38px}
.row .mid{flex:1;min-width:0}
.row .mid b{display:block;font-size:17px;line-height:1.25}
.row .mid p{color:var(--muted);font-size:14px;line-height:1.35;margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.row .mid small{display:block;color:var(--faint);font-weight:600;font-size:13px;margin-top:3px}
.row:after{content:"";flex:none;width:9px;height:9px;border-right:2.4px solid var(--faint);border-top:2.4px solid var(--faint);transform:rotate(45deg);margin-left:2px}
.pdots{display:inline-flex;gap:4px;vertical-align:middle;margin-right:6px}
.pdots i{width:9px;height:9px;border-radius:50%;border:1.6px solid #9bab9f}
.pdots i.on{background:var(--forest);border-color:var(--forest)}
.stat{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;color:var(--muted)}
.stat i{width:10px;height:10px;border-radius:50%;display:inline-block}
.tag.pick{background:var(--yellow);color:var(--ink);margin-left:6px;vertical-align:1px}
.backlink{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 10px;border-radius:99px;background:#fff;border:1px solid var(--line);font-weight:700;font-size:15px}
.exhero{display:flex;gap:18px;align-items:center;padding:22px;margin-top:var(--section)}
.exhero .tile{width:84px;height:84px;border-radius:26px}.exhero .tile svg{width:58px;height:58px}
.exhero h1{font-family:var(--serif);font-weight:700;font-size:clamp(28px,7vw,40px);line-height:1.08;letter-spacing:-.03em;margin:6px 0 8px}
.exhero p{color:var(--muted)}
.empty{text-align:center;padding:36px 20px;border-radius:var(--r);border:1.5px dashed #cfc9b9;color:var(--muted)}
.empty b{display:block;font-family:var(--serif);font-size:22px;color:var(--ink);margin-bottom:6px}
.handbox{position:relative;isolation:isolate;background:transparent!important}
.handbox::before{content:"";position:absolute;inset:1px;z-index:-1;pointer-events:none;background:var(--tint,var(--mint-l));border:1.6px solid rgba(36,89,77,.22);border-radius:30px 38px 32px 36px / 34px 30px 38px 32px;filter:url(#rough-m2)}
.tile::before,.doodle::before{background:var(--tint,var(--mint-l))}
@media (min-width:720px){
  .explore{padding:32px 32px 48px}
  .subjects{grid-template-columns:repeat(6,1fr)}
  .rows.two{grid-template-columns:1fr 1fr;gap:12px 20px}
}
@media (min-width:960px){.rows.two{gap:12px 40px}}

/* ---------- GROWN-UPS ---------- */
.gu{padding:20px 16px 110px;display:grid;gap:var(--section);align-content:start}
.gu h1.display{font-size:clamp(32px,8vw,44px);margin:6px 0 0}
.gcols{display:grid;gap:var(--section);align-items:start}
.gcol{display:grid;gap:var(--section);align-content:start;min-width:0}
.gsec>h2{font-family:var(--serif);font-size:24px;line-height:1.15;letter-spacing:-.02em;margin-bottom:12px}
.gsec>h2 small{display:block;font-family:var(--sans);font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted);margin-top:2px}
.gu .gbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);flex:none}
.gu .gbtn svg,.gbtn svg{width:26px;height:26px}
.gbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);flex:none;color:var(--forest)}
.gbtn[aria-current=page]{background:var(--ink);color:#fff;border-color:var(--ink)}
.plan{background:#fff;border:1px solid var(--line);border-radius:28px;padding:20px;box-shadow:0 12px 32px rgba(24,60,53,.08);display:grid;gap:14px}
.plan .big{font-family:var(--serif);font-weight:700;font-size:clamp(34px,9vw,44px);line-height:1;letter-spacing:-.03em}
.plan .big small{font-family:var(--sans);font-size:15px;font-weight:700;letter-spacing:0;color:var(--muted);margin-left:8px}
.pips{display:flex;gap:8px}
.pips i{width:30px;height:30px;border-radius:50%;border:2px solid #d6d1c4;background:#fff}
.pips i.on{background:var(--yellow);border-color:var(--yellow-d)}
.plan .bar{height:12px;border-radius:99px;background:#f0ead9;overflow:hidden}
.plan .bar i{display:block;height:100%;border-radius:99px;background:var(--leaf)}
.plan p{color:var(--muted);font-size:16px}
.plan .fine{font-size:13px;color:var(--faint)}
.plan .offer{padding:14px 16px;border-radius:18px;background:var(--mint-l);border:1px solid #d8e6d4;display:grid;gap:4px}
.plan .offer b{font-size:17px;color:var(--ink)}
.plan .offer span{font-size:15px;color:var(--muted)}
.plan .note{padding:14px 16px;border-radius:18px;font-size:15px;font-weight:600;background:#fff3cf;color:#6a4d0e}
.plan .note.bad{background:#fde7e1;color:#8a3220}
.glist{background:var(--card);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.grow{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:10px 16px;text-align:left;border-top:1px solid #eee8da;background:none}
.glist>:first-child{border-top:0}
.grow .av{font-size:28px;line-height:1;width:44px;height:44px;border-radius:14px;background:var(--mint-l);display:grid;place-items:center;flex:none}
.grow .gm{flex:1;min-width:0}
.grow .gm b{display:block;font-size:16px;line-height:1.3}
.grow .gm small{display:block;color:var(--faint);font-weight:600;font-size:13px;overflow-wrap:anywhere}
button.grow:after{content:"";flex:none;width:8px;height:8px;border-right:2.2px solid var(--faint);border-top:2.2px solid var(--faint);transform:rotate(45deg)}
.grow.plain:after{display:none}
.grow .ok{display:inline-block;width:9px;height:9px;border-radius:50%;background:#5fae7e;margin-right:6px}
.grow .ok.warn{background:var(--apricot)}
.grow.danger .gm b{color:#a2402f}
.grow .lnk{font-weight:800;color:var(--forest);font-size:15px;min-height:44px;padding:0 6px}
.glist+.btn{margin-top:12px}
.banner{padding:16px 18px;border-radius:22px;background:#fff3cf;border:1px solid #efd98f;display:grid;gap:12px}
.banner b{font-size:17px}.banner p{color:#6a4d0e;font-size:15px}
.banner .btns{display:flex;flex-wrap:wrap;gap:10px}
.fld{display:grid;gap:6px;margin:0 0 14px}
.fld>span{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--forest)}
.fld input{width:100%;min-height:52px;border-radius:14px;border:1.5px solid #cfc9b9;background:#fff;padding:0 14px;font-size:16px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{min-height:44px;padding:0 16px;border-radius:99px;background:#fff;border:1.5px solid #d6d1c4;font-weight:700;font-size:15px}
.chips button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.chips.av button{font-size:26px;width:56px;min-height:56px;padding:0;border-radius:18px}
.chips.av button[aria-pressed=true]{background:var(--mint);border-color:var(--forest);color:inherit}
.btn.danger{background:transparent;color:#a2402f;border:1.5px solid #e2b3a6}
.sheet hr{border:0;border-top:1px solid #e8e2d4;margin:18px 0}
.gu .legal{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px}
.gu .legal button{min-height:44px;font-weight:700;color:var(--forest);text-decoration:underline;text-underline-offset:3px}
@media (max-width:459px){.brand span{display:none}}
@media (min-width:960px){.gcols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:80px}}
/* ---------- JOURNEY ---------- */
.journey{padding:20px 16px 110px;display:grid;gap:var(--section);align-content:start}
.journey h1.display{font-size:clamp(32px,8vw,44px);margin:6px 0 0}
.sums{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.sum{display:grid;gap:6px;padding:16px 10px;text-align:center;--tint:#edf5ea}
.sum:nth-child(2){--tint:#e8eefb}.sum:nth-child(3){--tint:#fff3cf}
.sum b{font-family:var(--serif);font-size:clamp(34px,9vw,46px);line-height:1;letter-spacing:-.03em}
.sum span{font-size:13px;font-weight:700;color:var(--muted);line-height:1.25}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:99px;background:#f0ead9;max-width:520px}
.seg button{min-height:48px;border-radius:99px;font-weight:800;font-size:15px;color:var(--muted)}
.seg button[aria-selected=true]{background:var(--ink);color:#fff;box-shadow:0 4px 12px rgba(24,60,53,.2)}
.jbody{display:grid;gap:var(--section)}
.jbody.timeline{max-width:820px}
.feed{display:grid;gap:12px}
.entry{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:14px 16px}
.ehead{display:flex;gap:14px;align-items:center}
.ehead .tile{width:56px;height:56px;border-radius:18px;flex:none}.ehead .tile svg{width:38px;height:38px}
.emid{flex:1;min-width:0}
.emid b{display:block;font-size:17px;line-height:1.25}
.emid small{display:block;color:var(--faint);font-weight:600;font-size:13px;margin:1px 0 3px}
.esticker{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:30px;background:linear-gradient(140deg,#fbe39a,#f4b79c);transform:rotate(4deg)}
.enote{margin-top:12px;padding-top:12px;border-top:1px solid #eee8da;color:var(--muted);font-size:15px}
.rbtn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:12px;padding:10px 4px 2px;min-height:48px;border-top:1px solid #eee8da;font-weight:700;font-size:15px;color:var(--forest);text-align:left}
.rbtn>span:last-child:after{content:"";display:inline-block;width:8px;height:8px;border-right:2.2px solid currentColor;border-bottom:2.2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);margin-left:10px;transition:transform .2s}
.rbtn[aria-expanded=true]>span:last-child:after{transform:rotate(-135deg) translate(-2px,-2px)}
.entryrefl{margin-top:8px;background:#fff;animation:pop .18s ease-out}
.plist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.prow{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:20px;background:var(--card);border:1px solid var(--line)}
.prow .tile{width:52px;height:52px;border-radius:16px;flex:none}.prow .tile svg{width:36px;height:36px}
.pmid{flex:1;min-width:0}
.phead{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.phead b{font-size:17px}.phead small{color:var(--faint);font-weight:700;font-size:13px;white-space:nowrap}
.bar{height:10px;border-radius:10px;background:#ece6d6;margin:8px 0;overflow:hidden}
.bar i{display:block;height:100%;border-radius:10px;background:var(--forest)}
.pdotsline{display:flex;flex-wrap:wrap;gap:4px 14px}
.pdotsline.big{gap:10px 20px;font-size:15px}.pdotsline.big .stat{font-size:15px}
.sgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stk-c{display:grid;justify-items:center;gap:2px;padding:14px 6px;border-radius:22px;border:1.5px dashed #cfc9b9;text-align:center}
.stk-c.got{border:1px solid var(--line);background:var(--card)}
.stk-c b{font-size:14px;line-height:1.2}.stk-c small{font-size:12px;color:var(--faint);font-weight:600}
.sbig{width:72px;height:72px;border-radius:36% 46% 40% 48%;display:grid;place-items:center;font-size:40px;margin-bottom:6px;background:linear-gradient(140deg,#fbe39a,#f4b79c);box-shadow:0 8px 18px rgba(24,60,53,.14),inset 0 0 0 3px rgba(255,255,255,.5);transform:rotate(-4deg)}
.stk-c:nth-child(even) .sbig{transform:rotate(5deg)}
.sbig.ghost{background:#f1ede1;box-shadow:none;filter:grayscale(1);opacity:.5}
.sbig.ghost{color:transparent;text-shadow:0 0 0 #b5b0a0}
@media (min-width:720px){
  .journey{padding:32px 32px 48px}
  .sums{max-width:640px}
  .sgrid{grid-template-columns:repeat(4,1fr)}
  .jbody.progress{grid-template-columns:1fr;max-width:820px}
}
@media (min-width:960px){.sgrid{grid-template-columns:repeat(6,1fr)}}

/* ---------- desktop / tablet ---------- */
@media (min-width:720px){
  main{padding:32px 32px 32px}
  .top{padding:12px 32px}
  .phases{padding:16px 32px 0}
  .phase span{display:inline}
  .foot{--fade:48px;padding:var(--fade) 32px 18px}
  .backdrop{align-items:center}.sheet{border-radius:28px;padding:20px 28px 24px}.grab{display:none}
  .ready{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:var(--section);align-items:start}
  .ready .sec-h:first-child{margin-top:0}
}
@media (min-width:960px){
  .ready{gap:80px}
  .tg{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);grid-template-areas:"step capture" "step help" "nav help";align-items:start;gap:var(--section) 80px}
  .stepcol{grid-area:step}
  .helparea{grid-area:help;align-content:start}
  .dock{display:contents}
  .dock .capture{grid-area:capture;position:sticky;top:96px;background:#fff;border:1.5px solid var(--forest);border-radius:var(--r);padding:20px;box-shadow:0 10px 28px rgba(24,60,53,.1);gap:10px}
  .dock .nav{grid-area:nav;justify-content:space-between;margin:0}
  .dock .nav .btn.primary{flex:none;min-width:240px}
  .side-title{display:block;font-family:var(--serif);font-size:24px;line-height:1.1;letter-spacing:-.02em}
  .cap-sub{display:block;color:var(--muted);font-size:15px;margin:0 0 4px}
  .cap-btn{min-height:64px;font-size:18px}
  .cap-status{display:block}
  .recbar{min-height:72px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- onboarding ----------
   Same paint-and-grain gradient as Today, but the blobs are registered custom properties,
   so they drift to new places on each step instead of jumping. */
@property --ax{syntax:'<percentage>';inherits:false;initial-value:85%}
@property --bx{syntax:'<percentage>';inherits:false;initial-value:8%}
@property --cx{syntax:'<percentage>';inherits:false;initial-value:55%}
@property --dx{syntax:'<percentage>';inherits:false;initial-value:90%}
@property --ex{syntax:'<percentage>';inherits:false;initial-value:25%}
@property --ay{syntax:'<length>';inherits:false;initial-value:80px}
@property --by{syntax:'<length>';inherits:false;initial-value:260px}
@property --cy{syntax:'<length>';inherits:false;initial-value:20px}
@property --dy{syntax:'<length>';inherits:false;initial-value:480px}
@property --ey{syntax:'<length>';inherits:false;initial-value:560px}
@property --s{syntax:'<number>';inherits:false;initial-value:1}
#decoTop.ob{height:680px;transition:--ax 1.3s ease,--bx 1.3s ease,--cx 1.3s ease,--dx 1.3s ease,--ex 1.3s ease,--ay 1.3s ease,--by 1.3s ease,--cy 1.3s ease,--dy 1.3s ease,--ey 1.3s ease,--s 1.3s ease;
  background:
   radial-gradient(calc(460px*var(--s)) calc(380px*var(--s)) at var(--ax) var(--ay),rgba(255,206,50,.95),rgba(255,206,50,0) 72%),
   radial-gradient(calc(420px*var(--s)) calc(340px*var(--s)) at var(--bx) var(--by),rgba(255,150,105,.8),rgba(255,150,105,0) 72%),
   radial-gradient(calc(300px*var(--s)) calc(240px*var(--s)) at var(--cx) var(--cy),rgba(255,105,100,.55),rgba(255,105,100,0) 72%),
   radial-gradient(calc(340px*var(--s)) calc(280px*var(--s)) at var(--dx) var(--dy),rgba(150,215,165,.6),rgba(150,215,165,0) 72%),
   radial-gradient(calc(300px*var(--s)) calc(240px*var(--s)) at var(--ex) var(--ey),rgba(140,195,255,.4),rgba(140,195,255,0) 72%)}
#decoTop.ob.hero{height:100dvh;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
main.ob{flex:1;width:100%;max-width:520px;margin:0 auto;padding:max(8px,env(safe-area-inset-top)) 20px 0;display:flex;flex-direction:column;min-height:100dvh;position:relative}
.ob-top{display:flex;align-items:center;gap:14px;min-height:56px}
.ob-prog{flex:1;display:flex;gap:6px}
.ob-prog i{flex:1;height:8px;border-radius:8px;background:rgba(24,60,53,.16);transition:background .3s}
.ob-prog i.on{background:var(--ink)}
.ob-body{flex:1 0 auto;display:flex;flex-direction:column;padding:20px 0 28px}
.ob h1.display{font-size:clamp(32px,9vw,44px)}
.ob .lead{font-size:17px;line-height:1.5;color:rgba(24,60,53,.84);max-width:36ch}
.ob-foot{position:sticky;bottom:0;margin:auto -20px 0;padding:16px 20px max(18px,env(safe-area-inset-bottom));display:grid;gap:10px;background:linear-gradient(rgba(255,249,237,0),var(--cream) 30%)}
.ob-welcome .ob-foot,.ob-done .ob-foot{background:none}
.ob-card{background:rgba(255,253,248,.92);border:1.5px solid var(--line);border-radius:24px;padding:18px 16px 6px;margin-top:22px;box-shadow:0 10px 30px rgba(93,70,22,.08)}
.ob-card .fld:last-child{margin-bottom:12px}
.ob .pw{display:flex;gap:6px;align-items:center}.ob .pw input{flex:1}
.ob .pw .lnk{font-weight:800;color:var(--forest);font-size:15px;min-height:44px;padding:0 8px}
.ob .fine{font-size:13px;color:var(--muted);margin-top:14px}
.ob .fine button,.ob .forgot{font-weight:800;color:var(--forest);text-decoration:underline;font-size:inherit}
.ob .fine button{display:inline;padding:0;min-height:0}
.ob .forgot{display:block;margin:14px auto 0;font-size:15px;min-height:44px}
.ob-welcome .ob-body,.ob-done .ob-body{justify-content:center;align-items:center;text-align:center}
.ob-welcome .lead,.ob-done .lead{margin:0 auto}
.ob-brand{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-weight:700;font-size:22px;letter-spacing:-.02em;color:var(--forest)}
.ob-brand i{width:40px;height:40px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-style:normal;font-size:21px}
.ob-cluster{display:grid;grid-template-columns:repeat(3,92px);gap:14px;justify-content:center;margin:30px 0 30px}
.ob-cluster .tile{width:92px;height:92px;border-radius:28px;--r:-4deg;transform:rotate(var(--r));animation:bob 4.6s ease-in-out infinite}
.ob-cluster .tile svg{width:60px;height:60px}
.ob-cluster .tile:nth-child(2){--r:3deg;animation-delay:-.8s}.ob-cluster .tile:nth-child(3){--r:-2deg;animation-delay:-1.6s}
.ob-cluster .tile:nth-child(4){--r:4deg;animation-delay:-2.4s}.ob-cluster .tile:nth-child(5){--r:-3deg;animation-delay:-3.2s}.ob-cluster .tile:nth-child(6){--r:2deg;animation-delay:-4s}
@keyframes bob{50%{transform:translateY(-8px) rotate(var(--r))}}
.pkgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 8px}
.pk{position:relative;display:grid;justify-items:start;align-content:start;gap:6px;padding:14px 12px;min-height:150px;border-radius:22px;border:1.5px solid rgba(24,60,53,.16);background:rgba(255,253,248,.88);text-align:left;transition:transform .15s,box-shadow .15s,border-color .15s,opacity .2s}
.pk .tile{width:56px;height:56px;border-radius:18px}.pk .tile svg{width:40px;height:40px}
.pk b{font-size:16px;line-height:1.2}.pk small{font-size:13px;color:var(--muted);line-height:1.3;font-weight:600}
.pk[aria-pressed=true]{border-color:var(--forest);background:#fff;box-shadow:0 10px 24px rgba(24,60,53,.14);transform:translateY(-2px)}
.pk.dim{opacity:.55}
.pk .rank{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px;border:1.5px dashed rgba(24,60,53,.3);color:transparent}
.pk[aria-pressed=true] .rank{background:var(--yellow);color:var(--ink);border:1.5px solid var(--yellow-d);animation:rank .3s cubic-bezier(.3,1.6,.5,1)}
@keyframes rank{from{transform:scale(.3)}}
.pkgrid.shake{animation:shake .35s}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.sheet .pkgrid{margin-top:4px}
.ob .glist{margin-top:22px}
.ob .grow{background:rgba(255,253,248,.92)}
.ob-done .faces{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:24px}
.ob-done .face{width:92px;height:92px;border-radius:50%;background:rgba(255,253,248,.94);border:2px solid #fff;display:grid;place-items:center;font-size:52px;box-shadow:0 12px 28px rgba(93,70,22,.18);animation:hop .9s ease-out both}
.ob-done .face:nth-child(2){animation-delay:.12s}.ob-done .face:nth-child(3){animation-delay:.24s}.ob-done .face:nth-child(4){animation-delay:.36s}
@keyframes hop{0%{transform:translateY(34px) scale(.6);opacity:0}60%{transform:translateY(-10px) scale(1.05);opacity:1}100%{transform:none}}
.ob-done .picks{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.ob-done .picks .pill{background:rgba(255,253,248,.92)}
.cf{position:absolute;top:-12px;width:10px;height:14px;border-radius:3px;pointer-events:none;animation:fall 2.6s ease-in both}
@keyframes fall{to{transform:translateY(105dvh) rotate(540deg);opacity:.9}}
@media (prefers-reduced-motion:reduce){#decoTop.ob{transition:none}.ob-cluster .tile,.ob-done .face,.pk .rank,.cf{animation:none}.cf{display:none}}
main.ob-done{overflow:clip}

/* ---------- real-app additions, in the prototype's style ---------- */
body.landing-mode .app{max-width:none}
.ob-err{margin-top:14px;padding:12px 14px;border-radius:14px;background:#fde7e1;color:#8a3220;font-size:15px;font-weight:600}
textarea.transcript{min-height:300px;font-size:16px;line-height:1.6}
.speaker{display:flex;align-items:center;gap:12px;min-height:52px}
.speaker b{flex:1;font-size:16px}
.speaker select{-webkit-appearance:none;appearance:none;min-height:44px;min-width:132px;border-radius:12px;border:1.5px solid #cfc9b9;padding:0 40px 0 14px;font:inherit;font-weight:600;color:inherit;cursor:pointer;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><path fill='%23183c35' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/></svg>") no-repeat right 14px center/16px 16px}
.speaker select:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
.refl a{color:var(--forest);font-weight:700}
.entryrefl .why summary{min-height:44px}
.entryrefl .why p{white-space:pre-line}
.abars{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;align-items:end;height:180px;margin-top:8px}
.abars div{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;height:100%;gap:4px}
.abars b{font-size:12px}.abars small{font-size:11px;color:var(--faint);font-weight:600}
.abars i{align-self:end;width:70%;border-radius:8px 8px 3px 3px;background:var(--leaf)}
.sum span:first-child{font-size:13px}
a.grow{color:inherit;text-decoration:none}
a.grow:after{content:"";flex:none;width:8px;height:8px;border-right:2.2px solid var(--faint);border-top:2.2px solid var(--faint);transform:rotate(45deg)}
.fld textarea{min-height:120px}

/* ---------- Phosphor line icons ----------
   One plain line weight everywhere; icons take the colour of the text beside them. */
.ph{flex:none;width:1.25em;height:1.25em;fill:currentColor;vertical-align:-.25em}
.brand i .ph,.ob-brand i .ph{width:24px;height:24px}
.icon-btn{padding:0}
/* A left arrow's ink sits mostly in its head, about 2px left of its box centre, so nudge it right to look centred. */
.icon-btn .ph{width:24px;height:24px;transform:translateX(1.5px)}
.phase i .ph{width:13px;height:13px}
.ph.lead{width:22px;height:22px;margin-top:1px}
.cap-list .ph.lead{width:24px;height:24px;color:var(--forest)}
.whyone .ph.lead,.points .ph.lead{color:var(--forest)}
.searchbox .x .ph{width:22px;height:22px}
.ph.fav{width:13px;height:13px;color:#b8860b;vertical-align:-2px}
.tile .ph{color:var(--forest)}
.backlink .ph{width:20px;height:20px}
.help button .ph{width:22px;height:22px;color:var(--forest)}
.handover .ph,.pill .ph,.chip .ph{width:18px;height:18px}

/* ---------- desktop sidebar ----------
   From 720px the top bar becomes a sidebar. Collapsed it shows icons only, with the label as a hover tip. */
.snav{display:none}
@media (min-width:720px){
  body[data-screen=shell]{--side:84px}
  body[data-screen=shell].side-open{--side:248px}
  body[data-screen=shell] .app{max-width:none;padding-left:var(--side);transition:padding-left .2s ease}
  .snav{display:flex;flex-direction:column;justify-content:space-between;gap:24px;position:fixed;z-index:6;left:0;top:0;bottom:0;width:var(--side);padding:16px 14px max(16px,env(safe-area-inset-bottom));background:rgba(255,249,237,.94);backdrop-filter:blur(14px);border-right:1px solid var(--line);transition:width .2s ease}
  .side-top,.side-nav,.side-bottom{display:grid;gap:6px}
  .snav .brand{min-height:52px;padding:0 8px;margin-bottom:14px;white-space:nowrap;overflow:hidden}
  .si{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 15px;border-radius:16px;font-weight:700;font-size:16px;color:var(--muted);text-align:left;white-space:nowrap}
  .si .ph{width:26px;height:26px}
  .si:hover{background:#fff;color:var(--ink)}
  .si[aria-current=page]{background:var(--ink);color:#fff}
  .si .av{flex:none;width:26px;font-size:24px;line-height:1;text-align:center}
  .si .lbl small{display:block;font-size:12px;font-weight:600;color:var(--faint);line-height:1.2}
  .si.child{border:1px solid var(--line);background:#fff;padding:0 14px}
  .si .ph.end{width:18px;height:18px;margin-left:auto;color:var(--faint)}
  .si.toggle{color:var(--faint)}
  /* collapsed: icons only, labels become tips */
  body:not(.side-open) .snav .brand .lbl,body:not(.side-open) .si .ph.end,body:not(.side-open) .si .lbl small{display:none}
  body:not(.side-open) .si .lbl{position:absolute;left:calc(100% + 14px);top:50%;transform:translateY(-50%);padding:6px 10px;border-radius:10px;background:var(--ink);color:#fff;font-size:13px;opacity:0;pointer-events:none;transition:opacity .12s}
  body:not(.side-open) .si:hover .lbl,body:not(.side-open) .si:focus-visible .lbl{opacity:1}
  body:not(.side-open) .si.child{padding:0 14px;justify-content:center}
  body:not(.side-open) .si.toggle .ph{transform:scaleX(-1)}
  .toast{left:calc(50% + var(--side,0px)/2)}
}

/* ---------- wrap-up bottom bar: the reflection is the main action, skipping is a quiet link ---------- */
.foot.wrapfoot{--fade:64px;flex-wrap:wrap;row-gap:4px}
.foot.wrapfoot>.btn.ghost{flex:none;padding:12px 18px}
.foot .skip{flex-basis:100%;min-height:40px;font-weight:700;font-size:15px;color:var(--forest);text-decoration:underline;text-underline-offset:3px}

/* ---------- transcript turns: each speaker has their own colour ---------- */
.k-p{--tc:var(--forest);--tb:var(--mint);--tf:var(--forest)}
.k-c{--tc:var(--yellow-d);--tb:var(--yellow);--tf:var(--ink)}
.k-o{--tc:#b5b0a0;--tb:#ece8dc;--tf:var(--muted)}
.k-a{--tc:#8f95f6;--tb:#e9e8ff;--tf:#3b3a8f}
.k-b{--tc:var(--apricot);--tb:#fde3d8;--tf:#8a3220}
.k-x{--tc:#cfc9b9;--tb:#f1ede1;--tf:var(--muted)}
.turns{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.turn{display:flex;gap:12px;align-items:flex-start;padding:10px 12px 10px 10px;border-radius:16px;background:#fff;border:1px solid var(--line);border-left:5px solid var(--tc)}
.turn.k-c{background:#fffbef}
.who{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:34px;padding:0 10px;border-radius:99px;background:var(--tb);color:var(--tf);font-weight:800;font-size:13px;white-space:nowrap}
.speaker b.who{flex:none;margin-right:auto}
.turn textarea{flex:1;min-height:0;min-width:0;margin:0;padding:5px 2px;border:0;border-radius:8px;background:transparent;resize:none;overflow:hidden;font-size:16px;line-height:1.5}
.turn textarea:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}
