:root{--bg:#fff8f2;--surface:#fff;--surface-2:#fff1e6;--ink:#1f2330;--ink-2:#5b6170;--ink-3:#8f95a3;--line:#efe4da;--brand:#ff6a3d;--brand-ink:#fff;--brand-soft:#ffe3d8;--ok:#22a06b;--ok-soft:#dcf5e9;--warn:#c77700;--warn-soft:#fff1d6;--danger:#d6455d;--shadow:0 1px 2px #1f23300a, 0 6px 20px #1f23300f;--radius:18px;--radius-sm:12px;--tabbar-h:68px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-family:Nunito,ui-rounded,SF Pro Rounded,system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{background:var(--bg);min-height:100%;margin:0}body{overscroll-behavior-y:none}button{font:inherit;color:inherit;cursor:pointer}input,textarea,select{font:inherit;color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.app{max-width:520px;min-height:100dvh;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);margin:0 auto;position:relative}.page{flex-direction:column;gap:16px;padding:16px 16px 8px;display:flex}.page-title{letter-spacing:-.02em;font-size:26px;font-weight:800}.section-title{letter-spacing:-.01em;font-size:18px;font-weight:800}.muted{color:var(--ink-2)}.small{font-size:14px}.row{align-items:center;gap:10px;display:flex}.spread{justify-content:space-between;align-items:center;gap:10px;display:flex}.stack{flex-direction:column;gap:10px;display:flex}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.btn{background:var(--brand);color:var(--brand-ink);border:0;border-radius:999px;width:100%;padding:14px 20px;font-size:16px;font-weight:800;transition:transform 80ms,opacity .2s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45}.btn.secondary{background:var(--surface-2);color:var(--ink)}.btn.ghost{color:var(--ink-2);background:0 0}.btn.small{width:auto;padding:9px 14px;font-size:14px}.chip{background:var(--surface-2);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:700;display:inline-flex}.chip.ok{background:var(--ok-soft);color:var(--ok)}.chip.brand{background:var(--brand-soft);color:#c4421a}.progress{background:var(--line);border-radius:999px;height:8px;overflow:hidden}.progress>span{background:var(--ok);border-radius:999px;height:100%;transition:width .4s;display:block}.emoji-badge{border-radius:14px;flex:none;place-items:center;width:48px;height:48px;font-size:26px;display:grid}.segmented{background:var(--surface-2);border-radius:999px;gap:4px;padding:4px;display:flex}.segmented button{color:var(--ink-2);background:0 0;border:0;border-radius:999px;flex:1;padding:9px 10px;font-size:14px;font-weight:800}.segmented button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:14px;font-weight:800}.input{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);outline:none;width:100%;padding:12px 14px;font-size:16px}.input:focus{border-color:var(--brand)}.option-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.option{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);text-align:left;align-items:center;gap:8px;padding:12px;font-weight:700;display:flex}.option.selected{border-color:var(--brand);background:var(--brand-soft)}.list-btn{background:var(--surface);border-radius:var(--radius);width:100%;box-shadow:var(--shadow);text-align:left;border:0;align-items:center;gap:12px;padding:14px;display:flex}.list-btn .grow{flex:1;min-width:0}.list-btn .title{font-weight:800}.check{border:2px solid var(--line);color:#fff;border-radius:50%;flex:none;place-items:center;width:26px;height:26px;font-size:14px;display:grid}.check.done{background:var(--ok);border-color:var(--ok)}.back{background:var(--surface);box-shadow:var(--shadow);border:0;border-radius:50%;place-items:center;width:40px;height:40px;font-size:18px;display:grid}.empty{text-align:center;color:var(--ink-2);padding:24px 12px}.fade-in{animation:.25s fade}@keyframes fade{0%{opacity:.6;transform:translateY(6px)}to{opacity:1;transform:none}}html.large-text .app{zoom:1.15}.welcome-back{box-shadow:none;background:linear-gradient(135deg,#fff4d6,#ffe7dc)}.legal-links{flex-wrap:wrap;justify-content:center;gap:6px 16px;margin-top:10px;font-size:13px;font-weight:700;display:flex}.legal-links a{color:var(--ink-3);text-decoration:none}.terms a{color:inherit;text-decoration:underline}.tabbar{width:100%;max-width:520px;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:20;background:#fffffff0;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.tab{color:var(--ink-3);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:11px;font-weight:800;display:flex}.tab-icon{filter:grayscale();opacity:.6;font-size:20px;transition:transform .15s}.tab.active{color:var(--ink)}.tab.active .tab-icon{filter:none;opacity:1;transform:translateY(-1px)scale(1.08)}.hero{border-radius:var(--radius);color:#fff;box-shadow:var(--shadow);background:linear-gradient(135deg,#ff7a45,#ff4f6d);flex-direction:column;gap:12px;padding:18px;display:flex}.hero .ring-wrap{background:#ffffff2e;border-radius:999px}.streak{background:#ffffff38;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:14px;font-weight:800;display:inline-flex}.avatar{background:var(--brand-soft);border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;font-size:22px;display:grid}.task{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);text-align:left;border:0;align-items:center;gap:12px;width:100%;padding:12px 14px;display:flex}.task .meta{color:var(--ink-3);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:800}.task .title{font-size:16px;font-weight:800}.task.done .title{color:var(--ink-3);text-decoration:line-through}.tools{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.tool{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:0;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;font-size:13px;font-weight:800;display:flex}.tool span:first-child{font-size:26px}.program-card{text-align:left;border-radius:var(--radius);box-shadow:var(--shadow);background:var(--surface);border:0;flex-direction:column;gap:10px;width:100%;padding:14px;display:flex}.program-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.program-tile{text-align:left;border-radius:var(--radius);min-height:150px;box-shadow:var(--shadow);background:var(--surface);border:0;flex-direction:column;gap:8px;padding:14px;display:flex}.program-tile .t{font-weight:800;line-height:1.2}.program-hero{border-radius:var(--radius);flex-direction:column;gap:10px;padding:20px;display:flex}.lesson-row{border-radius:var(--radius-sm);background:var(--surface);text-align:left;width:100%;box-shadow:var(--shadow);border:0;align-items:center;gap:12px;padding:12px 14px;display:flex}.lesson-row .num{background:var(--surface-2);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-weight:800;display:grid}.lesson-row.next{outline:2px solid var(--brand)}.step{border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow);align-items:flex-start;gap:12px;padding:14px;line-height:1.45;display:flex}.step .n{background:var(--brand);color:#fff;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font-size:14px;font-weight:800;display:grid}.step.tip{background:var(--ok-soft);box-shadow:none}.step.warning{background:var(--warn-soft);box-shadow:none}.step.prep{background:var(--surface-2);box-shadow:none}.step.checked{opacity:.55}.page:has(>.sticky-actions){padding-bottom:24px}.sticky-actions{z-index:5;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);gap:8px;margin-top:8px;padding-top:8px;display:flex;position:sticky}.timer{justify-content:space-between;align-items:center;gap:12px;display:flex}.timer .clock{font-variant-numeric:tabular-nums;font-size:34px;font-weight:800}.clicker-big{color:#fff;background:radial-gradient(circle at 35% 30%,#ff9a6b,#ff4f3a);border:0;border-radius:50%;place-items:center;width:200px;height:200px;margin:12px auto;font-size:22px;font-weight:800;transition:transform 60ms;display:grid;box-shadow:0 14px 30px #ff4f3a59,inset 0 -6px #0000001f}.clicker-big:active{transform:scale(.94)}.chat{flex-direction:column;gap:10px;display:flex}.bubble{white-space:pre-wrap;border-radius:18px;max-width:85%;padding:11px 14px;font-size:15px;line-height:1.45}.bubble.user{background:var(--brand);color:#fff;border-bottom-right-radius:6px;align-self:flex-end}.bubble.assistant{background:var(--surface);box-shadow:var(--shadow);border-bottom-left-radius:6px;align-self:flex-start}.composer{width:100%;max-width:520px;left:50%;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));background:var(--bg);z-index:15;gap:8px;padding:10px 16px;display:flex;position:fixed;transform:translate(-50%)}.composer textarea{resize:none;border:1.5px solid var(--line);background:var(--surface);border-radius:22px;outline:none;flex:1;max-height:120px;padding:11px 16px;font-size:16px}.composer button{background:var(--brand);color:#fff;border:0;border-radius:50%;flex:none;align-self:flex-end;width:46px;height:46px;font-size:18px}.suggestions{scrollbar-width:none;gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.suggestions button{border:1.5px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:999px;padding:8px 12px;font-size:14px;font-weight:700}.badge-grid{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.badge{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;display:flex}.badge .e{font-size:30px}.badge.locked .e{filter:grayscale();opacity:.35}.badge .t{font-size:13px;font-weight:800}.badge .h{color:var(--ink-3);font-size:11px}.stats{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.stat{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;padding:14px 10px}.stat .v{font-size:24px;font-weight:800}.stat .l{color:var(--ink-2);font-size:12px;font-weight:700}.week{text-align:center;grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.week .d{color:var(--ink-3);flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:800;display:flex}.week .dot{background:var(--line);border-radius:50%;place-items:center;width:30px;height:30px;font-size:14px;display:grid}.week .dot.on{background:var(--ok);color:#fff}.week .dot.today{outline:2px solid var(--brand);outline-offset:2px}.sheet-backdrop{z-index:50;background:#14161e6b;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:520px;padding:10px 16px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;flex-direction:column;gap:14px;max-height:88dvh;display:flex;overflow-y:auto}.sheet-handle{background:var(--line);border-radius:999px;width:44px;height:5px;margin:0 auto 4px}.mood{justify-content:space-between;gap:8px;display:flex}.mood button{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);flex:1;padding:8px 0;font-size:26px}.mood button.selected{border-color:var(--brand);background:var(--brand-soft)}.details summary{cursor:pointer;font-weight:800;list-style:none}.details summary::-webkit-details-marker{display:none}.celebrate{text-align:center;flex-direction:column;align-items:center;gap:10px;display:flex}.celebrate .big{font-size:64px;animation:.5s pop}@keyframes pop{0%{transform:scale(.4)}70%{transform:scale(1.15)}to{transform:scale(1)}}.setup{flex-direction:column;gap:18px;min-height:100dvh;padding:24px 16px 32px;display:flex}.steps-dots{gap:6px;display:flex}.steps-dots span{background:var(--line);border-radius:999px;flex:1;height:6px}.steps-dots span.on{background:var(--brand)}.dog-switch{scrollbar-width:none;gap:8px;display:flex;overflow-x:auto}.dog-switch button{border:1.5px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:999px;padding:7px 14px;font-weight:800}.dog-switch button.active{border-color:var(--brand);background:var(--brand-soft)}.nudge{background:var(--warn-soft);color:#7a4a00;border-radius:var(--radius);padding:12px 14px;font-weight:700;line-height:1.4}.week .dot.frozen{background:#dbeeff}.list-btn.checkin{outline:2px solid #b9d6ff}.potty-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.potty-row button{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);flex-direction:column;align-items:center;gap:2px;padding:10px 6px;font-size:12px;font-weight:800;display:flex}.potty-row button span:first-child{font-size:22px}.potty-row button b{color:var(--ok);font-size:18px}.potty-row button.bad b{color:var(--danger)}.potty-row button:active{transform:scale(.97)}.practice .reps{justify-content:space-between;gap:8px;display:flex}.practice .reps span{aspect-ratio:1;background:var(--surface-2);max-width:54px;color:var(--ink-3);border-radius:50%;flex:1;place-items:center;font-weight:800;display:grid}.practice .reps span.ok{background:var(--ok);color:#fff}.practice .reps span.miss{color:var(--danger);background:#fde3e7}.practice .history{align-items:flex-end;gap:6px;height:40px;display:flex}.practice .history div{background:var(--surface-2);border-radius:6px;flex:1;align-items:flex-end;max-width:26px;height:100%;display:flex;overflow:hidden}.practice .history span{background:var(--ok);border-radius:6px;width:100%;display:block}.scale{grid-template-columns:repeat(5,1fr);gap:6px;display:grid}.scale button{border:1.5px solid var(--line);background:var(--surface);border-radius:10px;padding:10px 2px;font-size:12px;font-weight:800}.scale button.selected{border-color:var(--brand);background:var(--brand-soft)}.ba{background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.ba span{border-radius:999px;height:100%;display:block}.ba .before{background:#f3a28a}.ba .after{background:var(--ok)}.potty-chart{text-align:center;grid-template-columns:repeat(7,1fr);gap:8px;display:grid}.potty-chart .bars{justify-content:center;align-items:flex-end;gap:3px;height:70px;display:flex}.potty-chart .bars span{border-radius:4px;width:9px;min-height:2px}.potty-chart .acc{background:var(--danger)}.potty-chart .out{background:var(--ok)}.science summary{justify-content:space-between;align-items:center;display:flex}.sources{flex-direction:column;gap:6px;margin:0;padding-left:18px;font-size:14px;line-height:1.4;display:flex}.sources a{color:#c4421a;text-decoration:underline}.switch{background:var(--line);border:0;border-radius:999px;width:50px;height:30px;padding:0;transition:background .2s;position:relative}.switch span{background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.switch.on{background:var(--ok)}.switch.on span{transform:translate(20px)}.practice .row .btn{white-space:nowrap;padding:12px 14px;font-size:15px}.practice .history-label{color:var(--ink-3);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:800}.getting-started{outline:2px solid var(--ok-soft)}.gs-item{text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:6px 0;font-weight:700;display:flex}.gs-item.done{color:var(--ink-3);text-decoration:line-through}.gs-item:disabled{cursor:default}.onboarding .big-emoji{font-size:64px;animation:.5s pop}.pill{border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 12px;font-size:14px;font-weight:700}.pill.selected{border-color:var(--brand);background:var(--brand-soft)}.clicker-big:disabled{opacity:.6}.install-hero{place-items:center;margin:8px 0;display:grid}.install-hero img{border-radius:22px;width:92px;height:92px;box-shadow:0 10px 24px #ff4f6d4d}.ig-step{align-items:center;gap:12px;display:flex}.ig-n{background:var(--brand);color:#fff;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.ig-icon{background:var(--surface-2);border-radius:10px;flex:none;width:34px;height:34px;padding:5px}.ig-icon.ig-app{object-fit:cover;border-radius:9px;width:34px;height:34px;max-height:34px;padding:0}.confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti i{opacity:0;border-radius:2px;width:8px;height:14px;animation:1.6s ease-out forwards confetti;position:absolute;top:-12px}@keyframes confetti{0%{opacity:1;transform:translateY(0)rotate(0)}to{opacity:0;transform:translateY(320px)rotate(540deg)}}.sheet,.lesson-path{position:relative}.lesson-path:before{content:"";background:var(--line);border-radius:3px;width:3px;position:absolute;top:20px;bottom:20px;left:29px}.lesson-path .lesson-row{position:relative}.tab{font-size:12px}.code-input{letter-spacing:.4em;text-align:center;font-size:28px;font-weight:800}.error-text{color:var(--danger);font-size:14px;font-weight:700}
