/* TokenTwirl site: marketing pages, parent app, onboarding. Kid board styles live in board.css. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/nunito-latin.acfce21e9f6e.woff2") format("woff2"); }

:root {
  --bg: #fff9f0; --bg-2: #fff2dc; --ink: #1f2140; --muted: #5c6085; --card: #ffffff; --line: #ebe5da; --field: #8f92b3;
  --brand: #3a5bff; --brand-ink: #2a44d6; --btn: #3a5bff; --btn-ink: #2a44d6; --accent: #ffca3a; --accent-ink: #d9a514;
  --pink: #ff595e; --green: #2a9d4b; --orange: #ff924c; --violet: #6a4c93; --sky: #1982c4; --danger: #d62839; --danger-ink: #c21f30;
  --ok-bg: #d7f5df; --ok-ink: #145c2a; --warn-bg: #fff0c2; --warn-ink: #6b4e00; --stop-bg: #ffd7da; --stop-ink: #7a0f1a;
  --outline: #1f2140; --device: #1f2140; --device-edge: #1f2140; --base: #c9cbe0; --base-edge: #b1b4cf;
  --radius: 1.375rem; --shadow: 0 .625rem 1.875rem rgba(31, 33, 64, .08); --shadow-lg: 0 1.5rem 3.75rem rgba(31, 33, 64, .14);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light dark; accent-color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12132a; --bg-2: #1a1c3a; --ink: #f4f4ff; --muted: #a6aacb; --card: #1e2043; --line: #2c2f5a; --field: #6a70b0;
          --brand: #8fa2ff; --brand-ink: #a4b3ff; --danger-ink: #ff8a95;
          --ok-bg: #16402a; --ok-ink: #8ff0b0; --warn-bg: #4a3a0c; --warn-ink: #ffe08a; --stop-bg: #4a1820; --stop-ink: #ffb3ba;
          --outline: #fff9f0; --device: #2f3366; --device-edge: #3d4280; --base: #3d4280; --base-edge: #4b5199;
          --shadow: 0 .625rem 1.875rem rgba(0,0,0,.35); --shadow-lg: 0 1.5rem 3.75rem rgba(0,0,0,.5); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 5.25rem; }
a, button, label, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
       min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: .1875rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
hr { border: 0; border-top: .125rem dashed var(--line); margin: 1.25rem 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -62.4375rem; } .skip:focus { left: .75rem; top: .75rem; z-index: 99; background: var(--card); padding: .5rem .75rem; border-radius: .5rem; }
:focus-visible { outline: .1875rem solid var(--brand); outline-offset: .125rem; }

/* ---- layout ---- */
.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1 0 auto; width: 100%; padding: 1rem 1.25rem 3rem; max-width: 70rem; margin: 0 auto; }
main.full { max-width: none; padding: 0; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tint { background: var(--bg-2); }
.section.flush-top { padding-top: 1.5rem; }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr)); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--brand); margin-bottom: .6em; }
.page-head { text-align: center; padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head .lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 auto; }
.page-head .mascot-inline { width: 5.25rem; height: 5.25rem; margin-bottom: .5rem; }

/* ---- header / footer ---- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(.625rem); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 4.25rem; gap: 1rem; }
.nav .brand { margin-right: auto; }
.nav nav { display: flex; gap: 1.125rem; align-items: center; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current] { color: var(--brand); }
.nav nav a[aria-current] { text-decoration: underline; text-decoration-thickness: .1875rem; text-underline-offset: .5rem; text-decoration-color: var(--accent); }
.nav form { margin: 0; }
.nav button.link { color: var(--muted); font-weight: 700; }
.nav .nav-cta { display: none; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .nav nav { display: none; position: absolute; top: 4.25rem; left: 0; right: 0; flex-direction: column; align-items: stretch;
             background: var(--card); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
  .nav.open nav { display: flex; }
  .nav .nav-cta { display: inline-flex; align-items: center; min-height: 2.625rem; padding: .5rem .875rem; font-size: .9rem; white-space: nowrap; }  /* same height as the menu button */
  .menu-toggle { display: inline-flex; flex: none; min-height: 2.625rem; align-items: center; background: none; color: var(--ink); padding: .5rem; box-shadow: none; }
  .nav nav .btn { display: none; }
  .menu-toggle .i-close, .nav.open .menu-toggle .i-open { display: none; }
  .nav.open .menu-toggle .i-close { display: block; }
  .menu-toggle svg { width: 1.625rem; height: 1.625rem; }
  body.app .menu-toggle, body.app .nav nav { display: none !important; }
}
@media (max-width: 360px) {
  .nav .wrap { gap: .5rem; }
  .nav .nav-cta { display: none; }
  .nav nav .btn { display: inline-flex; }
  .brand { font-size: 1.2rem; }
}
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; color: var(--muted); font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--muted); text-decoration: none; } .footer a:hover { color: var(--brand); }
.footer .brand { color: var(--ink); font-size: 1.1rem; }
.footer nav { display: flex; gap: 1.125rem; flex-wrap: wrap; }
.footer .copy { flex-basis: 100%; font-size: .85rem; margin: 0; }
.footer.slim { padding: 1.25rem 0; font-size: .85rem; }
.footer.slim .wrap { align-items: center; }

/* app bottom tab bar (phones, signed in) */
.tabbar { display: none; }
@media (max-width: 760px) {
  body.app { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  body.app .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line); padding: .375rem .25rem calc(.375rem + env(safe-area-inset-bottom)); box-shadow: 0 -.375rem 1.25rem rgba(31,33,64,.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .125rem; font-size: .72rem; font-weight: 800; color: var(--muted);
              text-decoration: none; padding: .25rem 0; border-radius: .75rem; }
  .tabbar a svg { width: 1.5rem; height: 1.5rem; }
  .tabbar a[aria-current] { color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }
  body.app .footer { display: none; }
}

/* ---- buttons & forms ---- */
.btn, button { background: var(--btn); color: #fff; border: 0; border-radius: 62.4375rem; padding: .6875rem 1.375rem; font: inherit; font-weight: 800;
               text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
               box-shadow: 0 .25rem 0 var(--btn-ink); transition: transform .08s, box-shadow .08s, filter .15s; line-height: 1.3; }
.btn:hover, button:hover { filter: brightness(1.06); }
.btn:active, button:active { transform: translateY(.1875rem); box-shadow: 0 1px 0 var(--btn-ink); }
button:disabled, .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn.big, button.big { font-size: 1.15rem; padding: .9375rem 1.875rem; }
/* buttons sharing a row with a big one are big too, so a row never mixes heights (Back / Next, Add / Cancel, hero CTAs) */
:is(.btn-row, .ctas):has(> .big) > :is(.btn, button), .wizard-nav:has(.big) :is(.btn, button) { font-size: 1.15rem; padding: .9375rem 1.875rem; }
.btn.small, button.small { font-size: .9rem; padding: .5rem .875rem; }
.btn.light, button.light { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 .125rem var(--line), 0 .25rem 0 var(--line); }
.btn.yellow, button.yellow { background: var(--accent); color: #1f2140; box-shadow: 0 .25rem 0 var(--accent-ink); }
button.ghost, .btn.ghost { background: none; color: var(--brand); box-shadow: inset 0 0 0 .125rem var(--brand), 0 .25rem 0 var(--line); }
button.danger { background: var(--danger); box-shadow: 0 .25rem 0 #9e1c29; }
button.link { background: none; color: var(--brand); padding: 0; font-weight: 700; box-shadow: none; }
button.link:active { transform: none; }
button.link.danger-link, .danger-link { color: var(--danger-ink); }
.icon-btn { background: none; box-shadow: none; color: var(--danger-ink); padding: .375rem .625rem; font-size: 1.2rem; border-radius: .625rem; }
.icon-btn:hover { background: var(--stop-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
label { font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: .6875rem .875rem; border-radius: .875rem; border: .125rem solid var(--field); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 .1875rem color-mix(in srgb, var(--brand) 30%, transparent); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a5bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.375rem; height: 1.375rem; accent-color: var(--brand); vertical-align: -.3125rem; }
fieldset { border: 0; padding: 0; margin: .75rem 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: .375rem; }
.field { margin: 0 0 1rem; } .field label { display: block; margin-bottom: .375rem; }
.errorlist, .error { color: var(--danger-ink); list-style: none; padding: 0; margin: .25rem 0; font-weight: 700; }
.hp { position: absolute; left: -312.5rem; }

/* ---- cards, messages, banners ---- */
.card { background: var(--card); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.card > h2:first-child, .card-title { font-size: 1.3rem; margin-bottom: .6em; }
.narrow { max-width: 30rem; margin: 5vh auto; }
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .75rem 1.125rem; background: var(--warn-bg); color: var(--warn-ink); border-radius: .875rem; font-weight: 700; margin-bottom: .5rem; }
.messages li.success { background: var(--ok-bg); color: var(--ok-ink); }
.messages li.error { background: var(--stop-bg); color: var(--stop-ink); }
.banner { padding: .75rem 1.25rem; text-align: center; font-weight: 700; }
.banner a { color: inherit; white-space: nowrap; }
.banner.warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner.stop { background: var(--stop-bg); color: var(--stop-ink); }
.pill { display: inline-block; padding: .1875rem .75rem; border-radius: 62.4375rem; font-size: .8rem; font-weight: 800; background: var(--bg-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); } .pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.stop { background: var(--stop-bg); color: var(--stop-ink); }
.draft-note { background: var(--warn-bg); color: var(--warn-ink); padding: .75rem 1rem; border-radius: .75rem; font-weight: 700; }
.empty { text-align: center; padding: 1.75rem 1rem; }
.empty img { width: 5.5rem; height: 5.5rem; margin-bottom: .5rem; }
.empty h2, .empty h3 { margin-bottom: .3em; }

/* ---- marketing ---- */
.hero { padding: clamp(2.25rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; margin: 1.75rem 0 .75rem; }
.step .num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem;
             color: #1f2140; margin-bottom: .875rem; border: .1875rem solid var(--outline); box-shadow: 0 .1875rem 0 var(--outline); }
.price-card { width: 100%; max-width: 26.25rem; margin: 0 auto; text-align: center; border: .1875rem solid var(--brand); }
.grid-2 > .price-card { justify-self: center; }
.price { font-size: 3.4rem; font-weight: 900; line-height: 1; margin: .75rem 0 .25rem; }
.price small { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0; text-align: left; }
.checks li { padding: .375rem 0 .375rem 2.125rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 1.375rem; height: 1.375rem;
  background: url("../img/star.b6d35157185c.svg") no-repeat center / contain; }
.sr-radio { position: absolute; opacity: 0; pointer-events: none; }
.toggle { display: inline-flex; background: var(--bg-2); border-radius: 62.4375rem; padding: .3125rem; margin: 0 auto 1.5rem; box-shadow: inset 0 0 0 .125rem var(--line); }
.toggle label { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; padding: .5rem 1.25rem; border-radius: 62.4375rem; cursor: pointer; }
.toggle input:checked + label { background: var(--btn); color: #fff; box-shadow: 0 .1875rem 0 var(--btn-ink); }
.toggle input:checked + label .save { color: #fff; }
.toggle input:focus-visible + label { outline: .1875rem solid var(--brand); outline-offset: .125rem; }
.pricing:has(#annual:checked) .monthly-only, .pricing:has(#monthly:checked) .annual-only { display: none; }
@media (max-width: 360px) { .toggle label { padding: .5rem .75rem; font-size: .92rem; } }
.save { color: #1f7a3a; font-weight: 900; }
@media (prefers-color-scheme: dark) { .save { color: #7ee2a0; } }
.faq details { background: var(--card); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: .625rem; box-shadow: var(--shadow); }
.faq summary { font-weight: 800; cursor: pointer; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }
.faq-title { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--btn), #5a44e0); color: #fff; border-radius: 2rem;
            padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .18;
  background: radial-gradient(circle at 12% 30%, #fff 0 .25rem, transparent .3125rem), radial-gradient(circle at 80% 18%, #fff 0 .375rem, transparent .4375rem),
              radial-gradient(circle at 30% 82%, #ffca3a 0 .5rem, transparent .5625rem), radial-gradient(circle at 92% 70%, #fff 0 .1875rem, transparent .25rem); }
.cta-band > * { position: relative; }
.cta-band .btn { margin-top: .75rem; }
.cta-band .mascot { position: absolute; right: 4%; bottom: -.625rem; width: 8.75rem; transform: rotate(10deg); }
@media (max-width: 700px) { .cta-band .mascot { display: none; } }
.prose { max-width: 45rem; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.sticker { display: inline-block; background: var(--accent); color: #1f2140; font-weight: 900; padding: .25rem .875rem; border-radius: 62.4375rem;
           transform: rotate(-3deg); box-shadow: 0 .1875rem 0 var(--accent-ink); }
.mascot-inline { width: 4.5rem; height: 4.5rem; vertical-align: middle; flex: none; }
.story { display: grid; grid-template-columns: 1fr 13.75rem; gap: 2rem; align-items: center; }
@media (max-width: 700px) { .story { grid-template-columns: 1fr; } .story img { width: 8.75rem; margin: 0 auto; } }
.contact-side { position: relative; }
.contact-side img { width: 7.5rem; height: 7.5rem; margin-bottom: .5rem; transform: rotate(-8deg); }

/* flat sticker icons */
.flat-icon { width: 4rem; height: 4rem; border-radius: 1.375rem; display: grid; place-items: center; margin-bottom: .875rem;
             border: .1875rem solid var(--outline); box-shadow: 0 .25rem 0 var(--outline); }
.flat-icon svg { width: 2.375rem; height: 2.375rem; }
.feature { transition: transform .15s; } .feature:hover { transform: translateY(-.25rem) rotate(-.5deg); }

/* device mockups */
.device { position: relative; background: var(--device); box-shadow: 0 0 0 .125rem var(--device-edge), var(--shadow-lg); }
.device img { display: block; width: 100%; height: auto; }
.device.tablet { border-radius: 2.125rem; padding: 1rem; }
.device.tablet img { border-radius: 1rem; aspect-ratio: 1180 / 820; object-fit: cover; }
.device.phone { border-radius: 2.375rem; padding: .5625rem; width: 100%; max-width: 14.375rem; }
.device.phone img { border-radius: 1.875rem; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.device.laptop { border-radius: 1.125rem 1.125rem 0 0; padding: .875rem .875rem 1.125rem; }
.device.laptop img { border-radius: .375rem; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device.laptop::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -1rem; height: 1rem; background: var(--base);
                        border-radius: 0 0 1.125rem 1.125rem; box-shadow: inset 0 .1875rem 0 var(--base-edge); }
.device.tv { border-radius: .875rem; padding: .75rem; }
.device.tv img { border-radius: .25rem; aspect-ratio: 16 / 9; object-fit: cover; }
.device.tv::after { content: ""; position: absolute; left: 50%; bottom: -2.125rem; width: 22%; height: 2.125rem; transform: translateX(-50%);
                    background: linear-gradient(var(--device-edge), var(--device)); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); }
.device-caption { text-align: center; font-weight: 800; margin-top: .875rem; }
.device-caption small { display: block; color: var(--muted); font-weight: 600; }
.hero-devices { position: relative; padding: 0 0 3rem 0; }
.hero-devices .tablet { transform: rotate(-2deg); }
/* the phone tucks under the tablet's bottom-left corner so the first row of tiles (Potty!) and the jar stay visible */
.hero-devices { padding-bottom: 4.5rem; }
.hero-devices .phone { position: absolute; left: -.875rem; bottom: -2.25rem; width: 22%; transform: rotate(-6deg); z-index: 2; }
.hero-devices .mascot { position: absolute; right: -.875rem; top: -3.25rem; width: 6.875rem; animation: bob 3s ease-in-out infinite; z-index: 3; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-.75rem) rotate(6deg); } }
@media (max-width: 560px) { .hero-devices .phone { display: none; } .hero-devices .mascot { right: 0; width: 5rem; top: -2.5rem; } }
.screens { display: grid; gap: 2.5rem 1.75rem; grid-template-columns: 1.5fr 1fr; align-items: end; }
.screens figure { margin: 0; }
.screens .tv-fig figcaption { margin-top: 2.875rem; }
.screens .stack-sm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.screens .phone { margin: 0 auto; }
.laptop-fig { margin: 4.5rem auto 0; max-width: 51.25rem; padding-inline: 4%; }
.laptop-fig figcaption { margin-top: 1.875rem; }
@media (max-width: 860px) { .screens { grid-template-columns: 1fr; } }

.wave { display: block; width: 100%; height: 2.5rem; color: var(--bg-2); }
.wave.flip { transform: rotate(180deg); }
.scribble { position: relative; }
.scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("../img/scribble.936bd0847995.svg") no-repeat center / 100% 100%; z-index: -1; }

/* ---- auth ---- */
.auth-wrap { max-width: 28.75rem; margin: 7vh auto 0; }
.auth-card { position: relative; padding-top: 3.25rem; }
.auth-mascot { position: absolute; top: -2.625rem; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.auth-card h1 { text-align: center; font-size: 1.9rem; }
.auth-card .lede { text-align: center; color: var(--muted); }
.auth-card .field { margin-bottom: .875rem; }
.auth-card .field label { margin-bottom: .375rem; }
.help { font-size: .85rem; color: var(--muted); margin: .375rem 0 0; }  /* every form's hint text, not just sign-in/sign-up */
.auth-card .forgot { display: inline-block; margin-top: .5rem; font-size: .9rem; }
.auth-card .remember { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.auth-card form > button, .auth-card form .submit { width: 100%; margin-top: .5rem; }
.auth-perks { margin: 0 0 1rem; }
.auth-perks li { padding-top: .1875rem; padding-bottom: .1875rem; font-weight: 700; }
.auth-alt { text-align: center; margin-top: 1rem; }

/* ---- parent app ---- */
body.app main a:not(.btn) { text-decoration: none; font-weight: 700; }
body.app main a:not(.btn):hover { text-decoration: underline; }
body.app h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.app-head { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin: .5rem 0 1.25rem; }
.app-head h1 { margin: 0; }
.app-head p { margin: .125rem 0 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin: .5rem 0 .125rem; }
.crumbs a { color: var(--muted); }
.title-avatar { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; font-size: 1.8rem; vertical-align: middle;
                background: color-mix(in srgb, var(--c) 22%, var(--card)); margin-right: .5rem; }
.settings { max-width: 45rem; margin-inline: auto; }
/* settings-style pages (devices, household, rewards, add a child, account) share one centred 45rem column, title included */
.app-head:has(+ .settings) { max-width: 45rem; margin-inline: auto; }
.settings .card + .card { margin-top: 1.25rem; }
.kid-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr)); }
.kid-card { background: linear-gradient(var(--c) 0 .625rem, var(--card) .625rem); padding-top: calc(clamp(1.25rem, 3vw, 2rem) + .375rem); }
.kid-card .who { display: flex; align-items: center; gap: .75rem; }
.kid-card .avatar-big { font-size: 2.4rem; width: 3.75rem; height: 3.75rem; border-radius: 1.125rem; display: grid; place-items: center; flex: none;
                        background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.kid-card h2 { margin: 0; font-size: 1.45rem; }
.kid-card .today { text-align: right; line-height: 1; }
.kid-card .today b { font-size: 2.2rem; font-weight: 900; display: block; }
.kid-card .today span { font-size: .78rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.chips-done { display: flex; flex-wrap: wrap; gap: .375rem; margin: .875rem 0 .25rem; list-style: none; padding: 0; }
.chips-done li { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .625rem; border-radius: 62.4375rem; font-size: .85rem; font-weight: 700;
                 background: var(--bg-2); color: var(--muted); }
.chips-done li.done { background: color-mix(in srgb, var(--c) 22%, var(--card)); color: var(--ink); }
.chips-done li.done::after { content: "✓"; font-weight: 900; color: var(--green); }
.bar { height: .875rem; background: var(--bg-2); border-radius: 62.4375rem; overflow: hidden; margin: .75rem 0 .25rem; }
@media (prefers-color-scheme: dark) { .bar, .progress { background: rgba(255,255,255,.1); } }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffe066, #ffca3a); border-radius: 62.4375rem; }
.goal-line { margin: 0; font-size: .92rem; }
.quick { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1rem; align-items: center; }
.quick button { padding: .5rem .875rem; font-size: .95rem; min-width: 3.5rem; }
.quick .btn.light { margin-left: auto; padding: .5rem .875rem; font-size: .95rem; }
.paused-card { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; border: .125rem solid var(--stop-bg); }
.paused-card img { width: 4.5rem; height: 4.5rem; flex: none; }
.paused-card p { margin: 0 0 .5rem; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: .75rem; align-items: center; padding: .625rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.feed li:last-child { border-bottom: 0; }
.feed li .when { color: var(--muted); font-size: .85rem; min-width: 4.5em; }
.feed li > :last-child { white-space: nowrap; margin-left: auto; font-weight: 800; }
.feed .who-emoji { font-size: 1.3rem; }
.table { width: 100%; border-collapse: collapse; margin-top: .75rem; }
.table td, .table th { text-align: left; padding: .625rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 10rem; }
.inline-form select { max-width: 16.25rem; }
.inline-form button, .inline-form a { flex: none; }
.pair-box { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 16%, var(--card));
            padding: 1.25rem; border-radius: 1.125rem; margin-bottom: 1.25rem; border: .125rem dashed var(--accent); }
.pair-box > div:last-child { flex: 1 1 15rem; min-width: 0; }
.qr { position: relative; flex: none; }
.qr svg { display: block; background: #fff; border-radius: .75rem; padding: .375rem; width: 10.625rem; height: 10.625rem; }
.qr-x { display: none; position: absolute; inset: 0; border-radius: .75rem; background: color-mix(in srgb, #fff 55%, transparent); }
.qr-x::before, .qr-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: .625rem; border-radius: .3125rem;
  background: var(--danger); transform: translate(-50%, -50%) rotate(45deg); }
.qr-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.qr { overflow: hidden; border-radius: .75rem; }
.pair-box.expired .qr-x { display: block; }
.pair-box.expired .pair-code { text-decoration: line-through .25rem var(--danger); opacity: .6; }
.pair-box.expired #pair-status { color: var(--danger-ink); font-weight: 700; }
#pair-new { margin-top: .75rem; }
.pair-code { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 900; letter-spacing: .12em; margin: .25rem 0; font-variant-numeric: tabular-nums; }
.code-input { font-size: 2rem !important; text-align: center; letter-spacing: .2em; text-transform: uppercase; }
.code-input::placeholder { color: color-mix(in srgb, var(--muted) 45%, transparent); opacity: 1; }
details summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0 0 1rem; align-items: center; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; font-weight: 700; }
.stack > * + * { margin-top: 1.25rem; }
.devices-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.devices-list li { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.devices-list li:last-child { border-bottom: 0; }
.devices-list .dev-icon { width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--bg-2); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.devices-list .dev-main { flex: 1; min-width: 0; }
.devices-list .dev-main b { display: block; }
.devices-list .removed { opacity: .6; }
.removed-boards { margin-top: .875rem; }
.removed-boards .devices-list { margin-top: .25rem; }
.children-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.children-list li { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid var(--line); }
.children-list .avatar-sm { width: 2.75rem; height: 2.75rem; border-radius: .875rem; display: grid; place-items: center; font-size: 1.5rem;
                            background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.children-list .grow { flex: 1; }

/* activity feed */
.filters { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; margin: .25rem 0 .5rem; }
.filters select { width: auto; min-width: 9.375rem; flex: 1 1 9.375rem; max-width: 13.75rem; }
.filters button { align-self: stretch; min-height: 3.3125rem; }  /* same height as the selects, also when it wraps on a phone */
.events li.empty { border-bottom: 0; }
@media (max-width: 560px) { .filters button { flex: 1 1 100%; } }
.events { list-style: none; padding: 0; margin: .5rem 0 0; }
.events li { display: grid; grid-template-columns: auto 1fr auto; gap: .125rem .875rem; align-items: start; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.events li.day { display: block; font-weight: 900; color: var(--muted); padding: 1.125rem 0 .25rem; border: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.events .ev-avatar { grid-row: span 2; font-size: 1.6rem; width: 2.875rem; height: 2.875rem; border-radius: .9375rem; display: grid; place-items: center;
                     background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.events .ev-what { font-weight: 800; }
.events .ev-amount { font-weight: 900; white-space: nowrap; text-align: right; }
.events .ev-meta { grid-column: 2 / -1; color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: .125rem .75rem; align-items: center; }
.events .reversed .ev-what, .events .reversed .ev-amount { text-decoration: line-through; opacity: .6; }
.events details summary { list-style: none; color: var(--danger-ink); font-size: .86rem; }
/* undo / delete on each entry: quiet text buttons; delete asks once more (its <details> opens a confirm button) */
.events .ev-actions { display: flex; flex-wrap: wrap; gap: .25rem .875rem; align-items: center; }
.events .ev-actions > form { display: inline; margin: 0; }
.events .link-btn { background: none; border: 0; box-shadow: none; padding: 0; color: var(--brand); font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.events .ev-tag { font-weight: 800; }
.events details summary { cursor: pointer; font-weight: 800; }
.events details summary::-webkit-details-marker { display: none; }
.events details form { display: flex; gap: .5rem; margin-top: .5rem; }
.events details input { min-width: 0; padding: .4375rem .75rem; }
.events details button { padding: .4375rem .875rem; font-size: .88rem; }

/* child page task editor */
.task-table input:not([type=checkbox]) { padding: .5rem .625rem; }
.task-table select { padding: .5rem 2.25rem .5rem .625rem; }
.task-table .t-emoji { width: 3.6em; text-align: center; font-size: 1.2rem; }
.task-table .t-num { width: 4.5em; }
.task-table .t-name { min-width: 9em; }
.task-table .cap { margin-top: .375rem; display: flex; gap: .375rem; align-items: center; font-size: .85rem; color: var(--muted); }
.task-table .cap input { width: 4em; }
.add-task { display: grid; grid-template-columns: 4em 1fr minmax(10em, 13em) auto; gap: .625rem; align-items: stretch; margin-top: .5rem; }
.add-task button { white-space: nowrap; }  /* stretches to the inputs' height */
.task-table th { padding-left: .875rem; }  /* headers line up with the text inside the fields */
.task-table th:nth-child(2) { text-align: center; padding-left: 0; }
.add-task input[name=new_emoji] { text-align: center; }
@media (max-width: 640px) {
  .task-table thead { display: none; }
  .task-table, .task-table tbody, .task-table td { display: block; }
  .task-table tr { display: grid; grid-template-columns: 4rem 1fr auto; gap: .5rem .625rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
  .task-table td { padding: 0; border: 0; }
  .task-table td.c-order { display: none; }
  .task-table td.c-remove { grid-row: 1; grid-column: 3; }
  .task-table td.c-emoji { grid-row: 1; grid-column: 1; } .task-table td.c-name { grid-row: 1; grid-column: 2; }
  .task-table td.c-freq, .task-table td.c-wait, .task-table td.c-paused { grid-column: 1 / -1; display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
  .task-table td.c-wait::before { content: "Rest between taps (min)"; font-weight: 700; color: var(--muted); font-size: .88rem; flex: 1; }
  .task-table td.c-paused::before { content: "Paused"; font-weight: 700; color: var(--muted); font-size: .88rem; flex: 1; }
  .task-table td.c-freq select { flex: 1; }
  .task-table .t-emoji { width: 100%; }
  .add-task { grid-template-columns: 4rem 1fr; }
  .add-task select, .add-task button { grid-column: 1 / -1; }
}
.goal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; line-height: 2; }
.goal input[name$=stars_needed] { width: 4.5em !important; text-align: center; }
.goal input[name$=reward_text] { flex: 1 1 10em; width: auto !important; }
.goal input.emoji-input { width: 2.6em !important; text-align: center; font-size: 1.3em; padding: .125rem; }
.picks .swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 2.875rem)); gap: .5rem; }
.picks .avatars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; max-width: 26.25rem; }

/* ---- onboarding wizard ---- */
.wizard { max-width: 47.5rem; margin: 3vh auto; }
.wizard h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .4em; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.progress { height: .75rem; background: var(--bg-2); border-radius: 62.4375rem; overflow: hidden; margin-bottom: .5rem; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #ffe066, #ffca3a); transition: width .4s; }
.wiz-guide { display: flex; gap: .75rem; align-items: center; margin: .625rem 0 .875rem; }
.wiz-guide img { width: 3.5rem; height: 3.5rem; flex: none; }
.bubble { background: var(--bg-2); border-radius: 1.125rem 1.125rem 1.125rem .25rem; padding: .5rem .875rem; font-weight: 700; margin: 0; }
.numbers { display: flex; flex-wrap: wrap; gap: .875rem; margin: 1.25rem 0 .5rem; }
.numbers button { width: 5.5rem; height: 5.5rem; font-size: 2.2rem; border-radius: 1.625rem; }
.numbers .picked { background: var(--accent); color: #1f2140; box-shadow: 0 .25rem 0 var(--accent-ink); }
.child-card { border: 0; border-left: .5rem solid var(--c, var(--brand)); border-radius: 1.125rem; background: var(--bg-2);
              background: color-mix(in srgb, var(--c, var(--brand)) 7%, var(--card)); margin: 1rem 0; padding: 1.125rem; }
@media (prefers-color-scheme: dark) { .child-card { background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--card)); } }
.child-card > label { display: block; margin: .5rem 0; }
.child-card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.row { display: flex; gap: .75rem; } .row label { flex: 1; }
.swatches, .avatars, .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .5rem; }
.swatch, .avatar, .chip { position: relative; margin: 0 !important; }
.swatch input, .avatar input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: block; width: 100%; max-width: 2.875rem; aspect-ratio: 1; min-width: 2.125rem; border-radius: 50%; background: var(--c);
               border: .25rem solid var(--card); box-shadow: 0 0 0 .125rem var(--line); cursor: pointer; }
@media (prefers-color-scheme: dark) { .swatch span { box-shadow: 0 0 0 .125rem rgba(255,255,255,.3); } }
.swatch input:checked + span { box-shadow: 0 0 0 .1875rem var(--ink); }
.avatar span { display: block; text-align: center; font-size: 1.9rem; padding: .25rem; border-radius: 1rem; border: .1875rem solid transparent; cursor: pointer;
               background: var(--bg-2); }
.avatar input:checked + span { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 25%, var(--card)); }
.chip span { display: inline-block; padding: .4375rem .9375rem; border-radius: 62.4375rem; border: .125rem solid var(--field); font-weight: 700; cursor: pointer; background: var(--card); }
.chip input:checked + span { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); color: var(--ink-on-c, #fff); }
.chip input:focus-visible + span, .swatch input:focus-visible + span, .avatar input:focus-visible + span { outline: .1875rem solid var(--brand); outline-offset: .125rem; }
.idea-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.idea-chips button { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 .125rem var(--line); padding: .375rem .875rem; font-size: .9rem; font-weight: 700; }
.task-row { display: grid; grid-template-columns: 1.875rem 3.5rem 1fr auto; gap: .5rem; align-items: center; margin: .5rem 0;
            background: var(--card); border-radius: 1rem; padding: .5rem; box-shadow: 0 .125rem 0 var(--line); transition: opacity .15s; }
.task-row select { width: auto; }
.task-row input[type=checkbox] { width: 1.625rem; height: 1.625rem; justify-self: center; }
.task-row input.emoji { text-align: center; font-size: 1.3rem; padding: .375rem; background: color-mix(in srgb, var(--c, var(--brand)) 20%, var(--card)); }
.task-row:has(input[type=checkbox]:not(:checked)) > :is(input, select):not([type=checkbox]) { border-style: dashed; background: var(--bg-2); }
.task-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .625rem; }
.wizard .goal { font-size: 1.1rem; }
.wizard .goal input { border-width: 0 0 .1875rem; border-style: dashed; border-color: var(--c, var(--brand)); border-radius: 0; background: transparent;
                      padding: .125rem .375rem; font-weight: 900; box-shadow: none; }
/* PIN fields: full width like every other field, digits centred and spaced (same look as the pairing code box) */
input[name=pin], input[name=pin2] { width: 100%; font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; padding-right: .25rem !important; }
.wizard form > label, .wizard .pin-field { display: block; margin: .875rem 0 .375rem; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.75rem; }
/* one primary action per step: Back and Skip are quiet text links, never a second big button */
.wizard-nav .back { font-weight: 700; color: var(--muted); text-decoration: none; padding: .75rem .25rem; }
.wizard-nav .back:hover { color: var(--ink); }
.done-ctas { margin: .5rem 0 1.25rem; }
.done-links { margin-top: 1.5rem; text-align: center; font-weight: 700; }
.trust { margin: -.25rem 0 1rem; }
.preview { margin: 1rem 0 1.375rem; }
.preview h3 { display: flex; align-items: center; gap: .5rem; }
.preview .goal-line { margin-top: .75rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .75rem; }
.tile { background: var(--c); color: var(--ink-on-c, #fff); border-radius: 1.5rem; padding: .875rem .5rem; text-align: center; font-weight: 800; font-size: .92rem;
        box-shadow: 0 .375rem 0 rgba(0,0,0,.18), inset 0 -.5rem 0 rgba(0,0,0,.08), inset 0 .375rem 0 rgba(255,255,255,.22); aspect-ratio: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; }
.tile span { display: block; font-size: 2.4rem; line-height: 1; }
.twirl { display: inline-block; animation: twirl 1.6s ease-out; }
@keyframes twirl { from { transform: scale(0) rotate(-720deg); } to { transform: scale(1) rotate(0); } }
.confetti { position: fixed; width: .75rem; height: .75rem; border-radius: .1875rem; pointer-events: none; z-index: 50; }
@media (max-width: 560px) {
  main:has(.wizard) { padding-inline: .625rem; }
  .wizard.card { padding: 1.25rem .875rem; margin-top: .5rem; }
  .child-card { padding: .875rem .75rem; border-left-width: .375rem; }
  .task-row { grid-template-columns: 1.875rem 3.25rem 1fr; }
  .task-row select { grid-column: 2 / -1; width: 100%; }
  .numbers button { width: 4.5rem; height: 4.5rem; }
}
@media (prefers-color-scheme: dark) { .mascot-inline, .wiz-guide img, .auth-mascot, .empty img { filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.install-card { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; padding: 1rem 1.25rem; }
.install-card img { border-radius: .875rem; }
@media (display-mode: standalone) { .nav { padding-top: env(safe-area-inset-top); } }
.rows-empty ~ .rows-empty { display: none; }
@media (max-width: 560px) {
  .app-head .btn-row { width: 100%; }
  .app-head .btn-row > * { flex: 1 1 0; }
}
.wizard .goal { line-height: 1.5; row-gap: .375rem; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* allauth generic pages (verify code, email, password change/reset) */
.aa-form { margin: .75rem 0 .25rem; }
.aa-form .btn-row { margin-top: .875rem; }
/* account forms: the submit and Cancel buttons share the row equally (email and password pages alike) */
.aa-form .btn-row > :is(.btn, button), .btn-row.even > :is(.btn, button) { flex: 1 1 0; }
.auth-card .aa-form .btn-row { flex-direction: column; align-items: stretch; }
.aa-panel { margin-top: 1.5rem; }
.aa-panel h2 { font-size: 1.2rem; }
.help ul { margin: .375rem 0 0; padding-left: 1.125rem; }
.help li + li { margin-top: .125rem; }
.messages .msg { margin: 0; }
.card.narrow h1 { font-size: clamp(1.6rem, 3vw, 2rem); }
.card.narrow label:has(> input[type=radio]) { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .625rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.card.narrow details { margin-top: 1rem; }
.board-back { display: inline-block; margin: 0 0 1.125rem; font-weight: 800; text-decoration: none; }
.nowrap { white-space: nowrap; }
fieldset.plain { margin: 0; }
fieldset.plain:disabled { opacity: .6; }
.kv dd.email { overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: .125rem; } .kv dd { margin-bottom: .625rem; } }
/* wizard round 2 */
.child-card:not(.show-all) .task-row.idea { display: none; }
.more-ideas { margin-top: .625rem; }
.task-actions { margin: .25rem 0 .625rem; }
.child-num { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .25rem; }
.idea-chips button[aria-pressed=true] { background: var(--c, var(--brand)); color: var(--ink-on-c, #fff); box-shadow: 0 .1875rem 0 rgba(0,0,0,.18); }
.idea-chips button[aria-pressed=true]::before { content: "✓ "; }
.wizard-nav .btn, .wizard-nav button { white-space: nowrap; }
@media (max-width: 560px) {
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav > span:empty { display: none; }
  .wizard-nav .btn-row { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn, .wizard-nav button:not(.link) { width: 100%; }
  .wizard-nav .back, .wizard-nav button.link { align-self: center; }
  .done-ctas .big { width: 100%; }
  .pair-box { justify-content: center; text-align: center; }
  .pair-box .qr { margin: 0 auto; }
}

/* ---- reward shop editor ---- */
.reward-row { grid-template-columns: 1.875rem 3.5rem 1fr 5.75rem; }
.reward-row.head { display: grid; gap: .5rem; margin: .25rem 0 -.125rem; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.reward-row .cost { display: flex; align-items: center; gap: .25rem; font-weight: 800; margin: 0; }
.reward-row .cost { align-self: stretch; }
.reward-row .cost input { width: 4rem; align-self: stretch; text-align: center; font-size: 1rem; padding: 0 .25rem; }  /* same height as the name field */
.reward-row.head > span:nth-child(3) { padding-left: 1rem; }  /* line up with the text inside the name field */
.reward-row .row-error { grid-column: 2 / -1; margin: 0; color: var(--danger-ink); font-weight: 700; font-size: .9rem; }
.shop-preview { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-preview li { background: var(--card); border: .125rem solid var(--line); border-radius: .875rem; padding: .375rem .75rem; font-weight: 700; }
@media (max-width: 560px) {
  .reward-row { grid-template-columns: 1.5rem 2.5rem 1fr 3.875rem; gap: .375rem; }
  .reward-row .cost input { width: 2.625rem; }
  .reward-row input.emoji { padding: .25rem; font-size: 1.1rem; }
  .reward-row input[name$=-name] { font-size: .95rem; padding-inline: .625rem; }  /* "Choosing dinner" fits on a phone */
  .reward-row.head > span:nth-child(3) { padding-left: .625rem; }
}
.spend { margin-top: .625rem; }
.spend summary { font-size: .95rem; }
.spend-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .375rem; }
.spend-list li { display: flex; align-items: center; justify-content: space-between; gap: .625rem; }
.layout-pick { border: 0; padding: 0; display: grid; gap: .5rem; }
.layout-pick legend { font-weight: 800; margin-bottom: .375rem; }
.layout-pick label { display: flex; gap: .75rem; align-items: center; padding: .625rem .75rem; border: .125rem solid var(--line); border-radius: 1rem; cursor: pointer; }
.layout-pick label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.layout-pick small { display: block; color: var(--muted); }
.lp-pic { flex: none; width: 4rem; height: 2.75rem; border-radius: .5rem; background: var(--bg-2); display: flex; gap: .25rem; padding: .25rem; }
.lp-pic i { flex: 1; border-radius: .3125rem; background: #ff924c; }
.lp-pic i + i { background: #1982c4; }

/* ---- account: identity header, plan card, settings rows, danger zone (one 47.5rem column, settings-page rhythm) ---- */
.acct { max-width: 45rem; margin: .5rem auto 0; display: grid; gap: 1.25rem; }
.acct-hero { display: flex; align-items: center; gap: 1.25rem; padding: .25rem .25rem .5rem; }
.acct-avatar { flex: none; width: 4.75rem; height: 4.75rem; border-radius: 1.625rem; display: grid; place-items: center; font-size: 2.2rem; font-weight: 900;
               color: #1f2140; background: linear-gradient(135deg, var(--accent), #ff924c); box-shadow: 0 .375rem 0 var(--accent-ink); }
.acct-id { min-width: 0; }
.acct-id h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; }
.acct-email { margin: .25rem 0 .375rem; color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.acct-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .625rem; font-size: .9rem; color: var(--muted); font-weight: 700; }
.acct-kids { display: inline-flex; }
.acct-kids span { width: 1.875rem; height: 1.875rem; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; margin-right: -.375rem;
                  background: color-mix(in srgb, var(--c) 25%, var(--card)); box-shadow: 0 0 0 .1875rem var(--bg); }
.acct-kids span:last-child { margin-right: .25rem; }

.acct-plan { padding: 1.5rem; border-top: .375rem solid var(--brand); }
.acct-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.acct-eyebrow { margin: 0 0 .125rem; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct-plan-name { margin: 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.acct-pills { display: flex; gap: .375rem; flex-wrap: wrap; }
.acct-trial { margin: 1.125rem 0 .25rem; }
.acct-trial-row { display: flex; justify-content: space-between; align-items: baseline; gap: .625rem; margin-bottom: .5rem; flex-wrap: wrap; }
.acct-trial-row b { font-size: 1.1rem; }
.acct-trial .bar { height: .75rem; }
.acct-trial p { margin: .5rem 0 0; }
.acct-note { margin: .875rem 0 0; }
.acct-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 1.125rem 0 0; }
.acct-facts > div { background: var(--bg-2); border-radius: .875rem; padding: .625rem .875rem; }
.acct-facts dt { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.acct-facts dd { margin: .125rem 0 0; font-weight: 800; }
.acct-plan-actions { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; margin-top: 1.25rem; }
.acct-plan-actions:empty { display: none; }
.acct-plan-actions form { margin: 0; }
.acct-plan-actions .promo-open { margin-left: auto; }
.promo-dlg { max-width: min(26rem, calc(100vw - 2rem)); width: 100%; border: 0; border-radius: 1.25rem; padding: 1.5rem;
  background: var(--card, #fff); color: inherit; }
.promo-dlg::backdrop { background: rgb(0 0 0 / .5); }
.promo-dlg h2 { margin: 0 0 1rem; }
.promo-dlg form { margin: 0; display: grid; gap: .75rem; }
.promo-dlg fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.promo-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.acct-list { padding: .5rem 0; }
.acct-section { margin: .875rem 1.5rem .125rem; font-size: 1.1rem; }
.acct-sub { margin: 0 1.5rem .25rem; font-size: .92rem; }
.acct-row { display: flex; align-items: center; gap: .875rem; padding: .875rem 1.5rem; }
.acct-list .acct-row + .acct-row { border-top: 1px solid var(--line); }
.acct-ico { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; font-size: 1.15rem; background: var(--bg-2); }
.acct-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acct-val { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.acct-row > .btn, .acct-row > form { flex: none; margin: 0; }

.acct-danger { padding: .625rem 0 1.125rem; box-shadow: var(--shadow), inset 0 0 0 .125rem var(--stop-bg); }
.acct-danger .acct-ico { background: var(--stop-bg); }
.acct-danger details { margin: 0 1.5rem 0 4.875rem; }
.acct-danger summary { color: var(--danger-ink); font-weight: 800; }
.acct-del-form { margin-top: .75rem; max-width: 26.25rem; }
@media (max-width: 560px) {
  .acct-hero { gap: .875rem; } .acct-avatar { width: 3.75rem; height: 3.75rem; font-size: 1.7rem; border-radius: 1.25rem; }
  .acct-plan { padding: 1.25rem; }
  .acct-row { padding: .75rem 1.125rem; gap: .75rem; flex-wrap: wrap; } .acct-section { margin: .75rem 1.125rem .125rem; } .acct-sub { margin: 0 1.125rem .25rem; }
  .acct-row-main { flex: 1 1 calc(100% - 3.75rem); }  /* text gets the full row; the button drops below it */
  .acct-row > .btn, .acct-row > form { margin-left: 3.25rem; }
  .acct-meta > span[aria-hidden] { display: none; }
  .acct-danger details { margin: 0 1.125rem; }
}
.danger-zone { grid-column: 1 / -1; box-shadow: var(--shadow), inset 0 0 0 .125rem var(--stop-bg); }
.danger-zone summary { color: var(--danger-ink); }
.here-board { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .875rem 1rem; margin: 0 0 1.125rem; border-radius: 1rem;
              background: color-mix(in srgb, var(--brand) 8%, var(--card)); border: .125rem solid color-mix(in srgb, var(--brand) 30%, transparent); }
.here-board .dev-icon { width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--bg-2); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.here-board > div { flex: 1 1 13.75rem; display: flex; flex-direction: column; gap: .125rem; }
.here-board form { margin: 0; }
.here-note { background: var(--ok-bg); color: var(--ok-ink); border-radius: .875rem; padding: .625rem .875rem; font-weight: 700; }
.howto { display: flex; gap: .625rem; align-items: flex-start; background: var(--bg-2); border-radius: .875rem; padding: .75rem .875rem; margin: 1rem 0; }
.howto > span:first-child { font-size: 1.4rem; line-height: 1.2; flex: none; }
.howto > span:last-child { flex: 1; }
.add-reward { margin-top: .5rem; }
.first-star { margin-top: 1.125rem; background: var(--bg-2); border-radius: 1rem; padding: .875rem 1.125rem; }
.first-star h3 { margin: 0 0 .375rem; }
.first-star ul { margin: 0; padding-left: 1.2em; display: grid; gap: .25rem; }
.kid-card { scroll-margin-top: 5rem; }
.kid-card.just-updated { animation: card-flash 1.2s ease-out; }
@keyframes card-flash { from { box-shadow: var(--shadow), 0 0 0 .25rem var(--c); } }
.card-msg { margin: -.25rem 0 .75rem; padding: .5rem .75rem; border-radius: .75rem; font-weight: 800; background: var(--ok-bg); color: var(--ok-ink); }
.card-msg.error { background: var(--stop-bg); color: var(--stop-ink); }
.gate-form { text-align: left; margin-top: 1.125rem; } .gate-form label { text-align: center; }
.family-name { max-width: 26.25rem; margin-bottom: 1.375rem; }
