@font-face{font-family:"Baloo 2";font-weight:700;font-display:swap;src:url(/fonts/baloo-2-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Baloo 2";font-weight:800;font-display:swap;src:url(/fonts/baloo-2-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-weight:800;font-display:swap;src:url(/fonts/nunito-latin-800-normal.woff2) format("woff2")}

:root{
  --peach:#FCE9DC; --sky:#D7EEFB; --hill:#C3DDF3; --lilac:#D9D0FA;
  --ink:#2A2F4F; --muted:#4A4F6E; --card:#FFFFFF; --line:#E4E1F0;
  --orange:#FFB347; --orange-dark:#E8891C; --orange-light:#FFD08A;
  --coral:#FF8A3D; --teal:#1F8F85; --teal-soft:#E3F5F1; --blue:#5C8FF0; --warn:#B4441C; --warn-soft:#FFE8D6;
  --head:"Baloo 2","Arial Rounded MT Bold",system-ui,sans-serif;
  --body:"Nunito",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--peach);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.45;-webkit-tap-highlight-color:transparent}
body{min-height:100vh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#app{max-width:760px;margin:0 auto;padding:20px 18px 48px;display:flex;flex-direction:column;gap:16px}
h1,h2,h3{font-family:var(--head);font-weight:800;line-height:1.1;margin:0}
h1{font-size:2.1rem} h2{font-size:1.6rem} h3{font-size:1.2rem;font-weight:700}
p{margin:0}
.muted{color:var(--muted)} .small{font-size:.9rem}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:8px}

.card{background:var(--card);border-radius:26px;padding:20px;box-shadow:0 10px 26px rgba(42,47,79,.12);display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}
.spread{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}

.btn{border:0;font-family:var(--head);font-weight:800;font-size:1.25rem;min-height:58px;padding:10px 22px;border-radius:18px;
  background:var(--orange);box-shadow:inset 0 -5px 0 var(--orange-dark),inset 0 4px 0 var(--orange-light);color:var(--ink)}
.btn:active{transform:translateY(2px)}
.btn.wide{width:100%}
.btn.plain{background:var(--card);box-shadow:inset 0 -4px 0 #CFC6F5,0 4px 12px rgba(42,47,79,.10)}
.btn.small{font-size:1rem;min-height:46px;padding:8px 16px;border-radius:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.link{align-self:flex-start;background:none;border:0;padding:6px 0;font-weight:700;color:#1F5C99;text-decoration:underline}

label.f{display:flex;flex-direction:column;gap:6px;font-weight:700}
input[type=text],input[type=email],input[type=password],input[type=time],input[type=date],input[type=number],select{
  font:inherit;font-size:1.05rem;padding:12px 14px;border-radius:14px;border:2px solid var(--line);background:#FBFAFF;color:var(--ink);width:100%}
input:focus{border-color:var(--blue);outline:none}
.err{background:var(--warn-soft);color:var(--warn);border-radius:14px;padding:10px 14px;font-weight:700}
.ok{background:var(--teal-soft);color:#14675F;border-radius:14px;padding:10px 14px;font-weight:700}

.steps{margin:0;padding-left:1.3em;display:flex;flex-direction:column;gap:8px}
.choice{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:3px solid var(--line);background:var(--card);border-radius:20px;padding:14px 16px;min-height:64px}
.choice[aria-pressed=true]{border-color:var(--coral);background:#FFF4EC}
.choice .big{font-family:var(--head);font-weight:800;font-size:1.2rem}
.pick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pick button{border:3px solid var(--line);background:var(--card);border-radius:22px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:2px;font-weight:800}
.pick button[aria-pressed=true]{border-color:var(--coral);background:#FFF4EC}
.pick img{width:100%;max-width:120px;height:auto}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.check{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#FBFAFF;border:2px solid var(--line);font-weight:600}
.check input{width:22px;height:22px;accent-color:var(--teal)}
.days{display:flex;gap:6px;flex-wrap:wrap}
.days label{display:flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;border-radius:12px;border:2px solid var(--line);background:#FBFAFF;font-weight:800}
.days input{position:absolute;opacity:0;pointer-events:none}
.days label:has(input:checked){border-color:var(--teal);background:var(--teal-soft)}

/* kid home */
.hello{display:flex;align-items:center;gap:14px}
.hello img{width:84px;height:auto}
.routines{display:flex;flex-direction:column;gap:12px}
.routine-card{display:flex;align-items:center;gap:14px;border:0;width:100%;text-align:left;background:var(--card);border-radius:24px;padding:16px 18px;box-shadow:0 8px 20px rgba(42,47,79,.10)}
.routine-card.now{outline:4px solid var(--orange)}
.routine-card .tag{font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--coral)}
.routine-card .title{font-family:var(--head);font-weight:800;font-size:1.4rem;line-height:1.1}
.routine-card .bar{height:12px;border-radius:99px;background:#EEF0F7;overflow:hidden;margin-top:6px}
.routine-card .bar i{display:block;height:100%;background:var(--teal);border-radius:99px}
.tasks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.task{display:flex;align-items:center;gap:14px;background:var(--card);border-radius:20px;padding:14px 16px;min-height:66px;border:3px solid transparent}
.task.next{border-color:var(--orange)}
.task.done{background:#F3F4FA;color:var(--muted)}
.task .n{flex:none;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-family:var(--head);font-weight:800;background:var(--orange);box-shadow:inset 0 -4px 0 var(--orange-dark)}
.task.done .n{background:var(--teal);color:#fff;box-shadow:none}
.task .lbl{flex:1;min-width:0;font-weight:800;font-size:1.1rem}
.task .meta{display:block;font-weight:600;font-size:.88rem;color:var(--muted)}
.gems{display:inline-flex;align-items:center;gap:6px;background:var(--blue);color:#fff;font-family:var(--head);font-weight:800;border-radius:999px;padding:4px 14px 4px 8px;box-shadow:inset 0 -4px 0 #3F6FD0}
.gem{width:22px;height:22px}

/* switcher */
.kids{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.kids button{border:0;background:var(--card);border-radius:24px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 8px 20px rgba(42,47,79,.10);font-family:var(--head);font-weight:800;font-size:1.3rem}
.kids img{width:110px;height:auto}

/* parent */
.ptabs{display:flex;gap:6px;overflow-x:auto}
.ptabs button{border:2px solid var(--line);background:var(--card);border-radius:12px;padding:8px 14px;font-weight:800;white-space:nowrap}
.ptabs button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.editrow{display:flex;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.editrow:first-child{border-top:0}
.editrow .grow{flex:1;min-width:0}
.iconbtn{border:2px solid var(--line);background:#fff;border-radius:12px;min-width:44px;min-height:44px;font-weight:800}

.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-weight:700;max-width:calc(100% - 32px);text-align:center;z-index:20}
@media (max-width:520px){.checks{grid-template-columns:1fr} h1{font-size:1.8rem}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.card > img:first-child{width:180px;height:auto;align-self:center}

/* task runner (Tue Nov 17) */
.rhead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.dots{display:flex;gap:6px}
.dots i{width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--line)}
.dots i.d{background:var(--teal);border-color:var(--teal)}
.dots i.c{background:var(--orange);border-color:var(--orange-dark)}
.runcard{align-items:center;text-align:center;gap:14px}
.runcard h1{font-size:2.3rem}
.buddybox{display:flex;flex-direction:column;align-items:center;gap:6px;background:linear-gradient(var(--sky),#fff);border-radius:24px;padding:16px 16px 12px;width:100%}
.buddybox img{width:min(220px,55vw);height:auto}
.buddybox .with{font-family:var(--head);font-weight:800;font-size:1.45rem;line-height:1.15}
.lead{font-size:1.2rem;font-weight:600}
.partlbl{font-family:var(--head);font-weight:800;font-size:1.9rem;color:var(--coral)}
.mouth{width:min(230px,55vw);height:auto}
.tbar{width:100%;height:26px;border-radius:99px;background:#EEF0F7;overflow:hidden;border:2px solid var(--line)}
.tbar i{display:block;height:100%;background:var(--teal);border-radius:99px;transition:width .25s linear}
.tbar.pulse{animation:glow 1.6s ease-in-out 2}
@keyframes glow{50%{box-shadow:0 0 0 8px rgba(255,179,71,.55);border-color:var(--orange)}}
.clock{font-family:var(--head);font-weight:800;font-size:2rem;font-variant-numeric:tabular-nums}
.switch{display:inline-flex;align-items:center;gap:10px;font-weight:700;min-height:44px}
.switch input{width:52px;height:30px;appearance:none;-webkit-appearance:none;background:#D5D8E6;border-radius:99px;position:relative;cursor:pointer;flex:none}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.switch input:checked{background:var(--teal)}
.switch input:checked::after{left:25px}
.runcard .choice{justify-content:center}
.pick4{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.pick4 button{border:3px solid var(--line);background:var(--card);border-radius:16px;min-height:52px;font-weight:800}
.pick4 button[aria-pressed=true]{border-color:var(--coral);background:#FFF4EC}
.bedbar{background:#fff;border-radius:20px;padding:12px 16px;box-shadow:0 6px 16px rgba(42,47,79,.08);display:flex;flex-direction:column;gap:8px}
.bbar{height:14px;border-radius:99px;background:#EEF0F7;overflow:hidden}
.bbar i{display:block;height:100%;background:var(--lilac);border-radius:99px}
.hometimes{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.hometimes label{display:flex;flex-direction:column;gap:4px;font-weight:700;font-size:.9rem}

/* task screen layout, matching approved board G (Nov 17) */
#app:has(.rgrid){max-width:1180px}
.rtop{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rtitle{display:flex;align-items:center;gap:14px}
.rtitle .num{flex:none;width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-family:var(--head);font-weight:800;font-size:1.6rem;background:var(--orange);box-shadow:inset 0 -5px 0 var(--orange-dark),inset 0 4px 0 var(--orange-light)}
.rtitle h1{font-size:2.4rem}
.b{font-weight:700}
.switch.pill{background:#fff;border-radius:16px;padding:6px 10px 6px 16px;box-shadow:0 6px 16px rgba(42,47,79,.10)}
.rgrid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:stretch}
.runmain{min-height:460px;justify-content:center;padding:28px}
.rside{display:flex;flex-direction:column;gap:16px}
.eyebrow{font-size:.85rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rlist .li{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;font-weight:600}
.rlist .li.cur{background:#FFE7D6;font-weight:800}
.rlist .dot{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;background:#EEF0F7;color:var(--muted)}
.rlist .li.done .dot{background:var(--teal);color:#fff}
.rlist .li.cur .dot{background:var(--coral);color:#fff}
.buddycard{align-items:center;text-align:center}
.buddycard img{width:min(200px,50vw);height:auto}
.buddycard .with{font-family:var(--head);font-weight:800;font-size:1.45rem;line-height:1.15}
.chip{display:inline-flex;align-items:center;gap:6px;background:#EEF0F7;border-radius:999px;padding:4px 12px;font-weight:700;font-size:.9rem}
.rbtns{display:grid;grid-template-columns:1fr;gap:10px}
.rbtns .btn{width:100%}
.mtext{display:flex;flex-direction:column;gap:12px}
.mtext.center{align-items:center;text-align:center}
.mtext h2{font-size:2.6rem}
.brush{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.brush .mapcol{flex:none}
.brush .mtext{flex:1;min-width:240px}
.brush h2{font-size:3rem}
.sent{font-family:var(--head);font-weight:800;font-size:1.7rem;line-height:1.2}
.tag2{align-self:flex-start;background:#FFE7D6;color:#B4441C;font-weight:800;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;border-radius:10px;padding:4px 12px}
.segs{margin-top:22px;display:flex;flex-direction:column;gap:8px}
.segrow{display:flex;gap:8px;height:auto;background:none;border:0;border-radius:0;overflow:visible}
.seg{flex:1;display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:.9rem;color:var(--muted)}
.seg .sbar{height:18px;border-radius:99px;overflow:hidden}
.seg .sbar i{display:block;height:100%;background:var(--coral);border-radius:99px;transition:width .25s linear}
.seg span.cur{color:#B4441C;font-weight:800}
.segrow.pulse{animation:glow 1.6s ease-in-out 2;border-radius:12px}
@media (max-width:900px){.rgrid{grid-template-columns:1fr}.rside{order:2}.rlist{order:3}.runmain{min-height:0}.brush{justify-content:center}.brush .mtext{text-align:center;align-items:center}.tag2{align-self:center}.brush h2{font-size:2.3rem}}
@media (max-width:520px){.rtitle h1{font-size:1.9rem}.mtext h2{font-size:2rem}.sent{font-size:1.35rem}.seg{font-size:.75rem}}
/* background scene from the approved look: peach sky, pale blue cloud hills, lilac ground */
.scene{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
#app,.toast{position:relative;z-index:1}
.toast{position:fixed}
html{background:#FCE9DC} body{background:transparent}
/* Nov 17 once-over: real back buttons, centered home, plain switch note */
.btn.back{align-self:flex-start}
.cuenote{font-weight:700;color:var(--muted);font-size:1rem;line-height:1.3}
.homeview{min-height:calc(100vh - 68px);min-height:calc(100dvh - 68px);display:flex;flex-direction:column;justify-content:center;gap:18px;width:100%}
.homeview .routine-card{padding:20px 22px}
@media (min-width:700px){.homeview .routine-card .title{font-size:1.7rem}.homeview .hello img{width:110px}.homeview h1{font-size:2.6rem}}
.rbtns p{text-align:center}
/* center short screens in the window (Devon: not crunched at the top) */
#app{min-height:100vh;min-height:100dvh;justify-content:center}
.homeview{min-height:0}
/* phones / narrow: the action buttons come right after the task, then the buddy, then the list */
@media (max-width:900px){.rside{display:contents}.runmain{order:1}.rbtns{order:2}.buddycard{order:3}.rlist{order:4}.rgrid{display:flex;flex-direction:column}}
.ptabs{flex-wrap:wrap}
@media (max-width:520px){.brush .mouth{width:150px}}
/* ALIGNMENT STANDARD (Nov 17): read-and-do screens = one left edge; moment screens = centered; no mixing in a card;
   big buttons full width (words centered inside buttons only); brushing follows board G (text left). */
.moment{align-items:center;text-align:center}
.moment > img:first-child, .moment img{align-self:center}
.moment .btn{width:100%}
.stack.moment h1{text-align:center}
.homehead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.homehead img{width:110px;height:auto}
.homehead .gems{margin-top:6px}
.row.center{justify-content:center}
.mtext{align-items:flex-start;text-align:left}
.mtext .btn.wide{align-self:stretch}
.mtext .stack{align-self:stretch}
.runmain .choice{justify-content:flex-start}
.toast{font-family:var(--head);font-weight:800}
@media (max-width:900px){.brush{justify-content:flex-start}.brush .mtext{text-align:left;align-items:flex-start}.tag2{align-self:flex-start}}
.moment .btn.small{width:auto}
/* Nov 17: phone brushing map centered; kid picker sized like the other moment screens */
@media (max-width:900px){.brush{flex-direction:column;align-items:stretch}.brush .mapcol{align-self:center}}
.stack.moment{width:100%;max-width:640px;align-self:center;gap:18px}
.stack.moment h1{font-size:2.4rem}
/* kid tiles: same proportions as before, scaled up as a whole (Devon: bigger tile, not more white space) */
.kids{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;width:100%}
.kids button{padding:14px 16px 12px;font-size:1.7rem}
.kids img{width:190px}
@media (max-width:520px){.kids img{width:130px}.kids button{font-size:1.4rem}.stack.moment h1{font-size:1.9rem}}
/* time-of-day scenes */
.scene g[data-s]{display:none}
body:not([data-scene]) .scene g[data-s="morning"], body[data-scene="morning"] .scene g[data-s="morning"], body[data-scene="afternoon"] .scene g[data-s="afternoon"], body[data-scene="evening"] .scene g[data-s="evening"]{display:inline}
/* evening stars: slow, soft twinkle (stops automatically with Reduce Motion via the rule above) */
.scene .star{transform-box:fill-box;transform-origin:center;animation:twinkle 4.5s ease-in-out infinite}
.scene .star:nth-of-type(2){animation-delay:-1.1s;animation-duration:5.2s}
.scene .star:nth-of-type(3){animation-delay:-2.3s}
.scene .star:nth-of-type(4){animation-delay:-3.4s;animation-duration:5.8s}
.scene .star:nth-of-type(5){animation-delay:-0.6s;animation-duration:4.9s}
.scene .star:nth-of-type(6){animation-delay:-2.9s;animation-duration:6.1s}
.scene .star:nth-of-type(7){animation-delay:-1.7s}
@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.scene .star{animation:none!important;opacity:1}}
