@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/Inter-700.woff2") format("woff2"); }

@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/Nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/Nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/Nunito-900.woff2") format("woff2"); }

/* Mintful: the same mint and forest green as the children's window. Nunito for names, numbers and buttons; Inter for reading. */
:root {
  --bg: #f3faf6; --surface: #ffffff; --fg: #0e2a22; --muted: #4a6b5f; --line: #dcebe3; --soft: #eef6f1; --track: #e3efe8;
  --accent: #157a4f; --accent-fg: #ffffff; --link: #127047; --mint: #5be3a6; --mint-soft: #d9f7e8;
  --ink: #0e2a22; --ink-2: #173a2f; --ink-line: #24483b; --ink-fg: #ffffff; --ink-muted: #9fc2b3;
  --coins: #8a5a00; --coins-ink: #ffd166; --good: #15803d; --bad: #b42318; --warn: #b45309; --game: #f97316; --game-soft: #ffedd5;
  --bed: #e0e7ff; --star: #e3a008; --shadow: 0 1px 0 var(--line), 0 6px 18px rgb(14 42 34 / 0.04);
  --head: "Nunito", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08150f; --surface: #10231b; --fg: #e8f5ee; --muted: #9fc2b3; --line: #1f3a30; --soft: #163028; --track: #1f3a30;
    --accent: #5be3a6; --accent-fg: #0e2a22; --link: #7fe9bc; --mint: #5be3a6; --mint-soft: #173f30;
    --ink: #06110c; --ink-2: #143128; --ink-line: #24483b;
    --coins: #ffc94a; --good: #4ade80; --bad: #ff8a80; --warn: #f59e0b; --game: #fb923c; --game-soft: #3a2414;
    --bed: #272b4a; --star: #f5c542; --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 "Inter", system-ui, -apple-system, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; font-family: var(--head); font-weight: 800; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; }
p { margin: 0; }
a { color: var(--link); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 0.84rem; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* MARK: the frame: side menu (wide screens), header, content */
.shell { display: flex; min-height: 100vh; }
.side {
  flex: none; width: 248px; background: var(--ink); color: var(--ink-fg); padding: 28px 18px; display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side[hidden] { display: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.brand .logo { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.brand > span { display: grid; line-height: 1.05; }
.brand b { font: 900 1.45rem var(--head); letter-spacing: -0.01em; }
.brand small { font: 800 0.72rem var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c9cdd6; text-decoration: none; font-size: 0.92rem; min-height: 44px; }
.sidenav a:hover { background: var(--ink-2); color: #fff; }
.sidenav a[aria-current="page"] { background: var(--mint); color: var(--ink); font-weight: 700; }
.sidenav a[aria-current="page"] svg.ic { color: var(--ink); }
.sidenav a .count { margin-left: auto; background: var(--mint); color: var(--ink); font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.sidenav .sep { height: 1px; background: var(--ink-line); margin: 10px 4px; }
.sidenav svg.ic { width: 18px; height: 18px; }
.sidefoot { margin-top: auto; display: grid; gap: 10px; font-size: 0.78rem; color: var(--ink-muted); }
.sidefoot span { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: #9ca3af; flex: none; display: inline-block; }
.dot.on { background: #22c55e; }
.dot.warn { background: #f59e0b; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top h1 { font-size: 1.15rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { font-size: 2rem; line-height: 1; border: 0; background: none; padding: 0 8px 4px 0; cursor: pointer; color: var(--link); }
#title.tappable { cursor: pointer; }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 16px calc(48px + env(safe-area-inset-bottom)); display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) {
  .top { padding: 20px 40px 8px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: static; }
  .top #menu { display: none; }
  body.home .top { display: none; }
  main { padding: 28px 40px 56px; gap: 24px; }
}
@media (max-width: 959px) { .side { display: none; } }

/* MARK: cards, rows, numbers */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--soft); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.stat b { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 0.78rem; color: var(--muted); display: block; line-height: 1.35; }
@media (max-width: 600px) { .stat { padding: 10px 10px; } .stat b { font-size: 1.15rem; letter-spacing: -0.03em; } }
.coins { color: var(--coins); font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.tag.approved { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.tag.returned { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.tag.pending { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

/* MARK: buttons and fields */
button.primary, button.secondary, button.ghost, button.danger, button.dark, a.btn {
  border-radius: 12px; padding: 10px 18px; font-weight: 600; cursor: pointer; border: 1px solid transparent; min-height: 44px;
}
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; justify-self: start; }
button.primary, a.btn.primary { background: var(--accent); color: var(--accent-fg); }
a.btn.secondary { background: var(--surface); border-color: var(--line); color: var(--fg); }
button.dark { background: var(--fg); color: var(--bg); }
button.secondary { background: var(--surface); border-color: var(--line); }
button.secondary:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
button.ghost { background: none; color: var(--link); padding: 8px 10px; min-height: 0; }
button.danger { background: none; color: var(--bad); border-color: var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label.field { display: grid; gap: 4px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
label.field .hint { font-weight: 400; font-size: 0.8rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 16px; color: var(--fg);
}
textarea { min-height: 70px; resize: vertical; }
select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); font-size: 16px; }
form { display: grid; gap: 12px; }
.error { color: var(--bad); font-size: 0.9rem; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
label.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.linkbtn { background: none; border: 0; padding: 2px 0; color: var(--link); font: inherit; font-size: 13px; cursor: pointer; }
.linkbtn:disabled { opacity: .5; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
code { font: 0.85em ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
pre { background: var(--soft); padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: 0.85rem; margin: 0; }
details.card summary { cursor: pointer; }

/* MARK: icons and what each Mac is doing */
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.badge svg.ic { width: 14px; height: 14px; margin-right: 4px; }
.states { display: grid; gap: 6px; }
.card.states { padding: 12px 16px; }
.state { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; padding: 8px 12px; border-radius: 12px; background: var(--soft); min-width: 0; }
.state span { min-width: 0; overflow-wrap: anywhere; }
.state svg.ic { padding: 5px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--muted); }
.state.on svg.ic { color: #15803d; background: rgb(21 128 61 / 0.12); }
.state.rest svg.ic { color: #6d4ae0; background: rgb(109 74 224 / 0.12); }
@media (prefers-color-scheme: dark) { .state.on svg.ic { color: #4ade80; } .state.rest svg.ic { color: #a78bfa; } }

/* MARK: the family page */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hello .date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hello h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 0.9rem; text-decoration: none; color: inherit; min-height: 44px; }
.pill i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.pill.warn i { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill svg.ic { width: 16px; height: 16px; stroke-width: 2.6; }

.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.kid { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.kid > a.card { border: 0; border-radius: 0; box-shadow: none; padding: 24px 24px 16px; gap: 20px; }
.kid > a.card:hover { background: color-mix(in srgb, var(--soft) 50%, var(--surface)); }
.kidhead { display: flex; align-items: center; gap: 12px; }
.kidhead > span:not(.av):not(.badge) { flex: 1; min-width: 0; display: grid; }
.kidhead h2 { font-size: 1.15rem; }
.av { width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 0.7rem; }
.av.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.av.c0 { background: #6366f1; } .av.c1 { background: #f97316; } .av.c2 { background: #0ea5e9; } .av.c3 { background: #ec4899; } .av.c4 { background: #10b981; }
.kidbody { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ring { --p: 0; --c: var(--accent); width: 140px; height: 140px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--track) 0); }
.ring.c1 { --c: var(--game); }
.ring > div { width: 114px; height: 114px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.ring b { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring span { font-size: 0.75rem; color: var(--muted); }
.ring.rest { --c: #8b5cf6; }
.ring.rest b { font-size: 1.4rem; }
.ring svg.rmoon { width: 22px; height: 22px; margin: 0 auto 2px; display: block; color: #8b5cf6; }
dl.facts { margin: 0; flex: 1; min-width: 200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
dl.facts dt { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
dl.facts dt svg.ic { width: 14px; height: 14px; }
dl.facts dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
dl.facts dd.big { font-size: 1.45rem; letter-spacing: -0.02em; }
dl.facts dd small { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.tl { position: relative; height: 32px; border-radius: 10px; background: var(--track); overflow: hidden; }
.tl i { position: absolute; top: 0; bottom: 0; }
.tl i.game { background: repeating-linear-gradient(135deg, var(--game-soft) 0 6px, color-mix(in srgb, var(--game-soft) 40%, transparent) 6px 12px); border-left: 2px solid var(--game); }
.tl i.bed { background: var(--bed); }
.tl i.now { width: 2px; background: var(--fg); }
.tl i.past { left: 0; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.tlkey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.tlkey span { display: inline-flex; align-items: center; gap: 6px; }
.tlkey i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tlkey i.game { background: var(--game); } .tlkey i.bed { background: #818cf8; } .tlkey i.now { width: 2px; height: 12px; border-radius: 0; background: var(--fg); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.quick button { min-height: 44px; }
.addkid { border-style: dashed; box-shadow: none; }
.addkid summary { font-weight: 600; }

/* MARK: Needs you */
.needs h2 { display: flex; align-items: center; gap: 8px; }
.needs h2 svg.ic { width: 20px; height: 20px; color: var(--warn); }
.need { display: grid; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.needs h2 + .need { border-top: 0; padding-top: 0; }
.needtop { display: flex; align-items: flex-start; gap: 12px; }
.needtop > span { flex: 1; min-width: 0; padding-top: 4px; }
.needtop > span > .small { display: block; margin-top: 2px; }
.needtop svg.ic { flex: none; padding: 7px; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--accent); }
.need.warn .needtop svg.ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.need blockquote { margin: 0 0 0 46px; padding: 10px 14px; background: var(--soft); border-radius: 12px; overflow-wrap: anywhere; }
.need .answer { margin-left: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.need .answer input[type=text] { flex: 1 1 160px; min-width: 0; padding: 8px 10px; }
.need button.small { padding: 4px 14px; font-size: 0.85rem; min-height: 36px; }
@media (max-width: 480px) { .need blockquote, .need .answer { margin-left: 0; } }

/* MARK: a child's page */
.hero { background: var(--ink); color: var(--ink-fg); border-radius: 28px; padding: 28px; display: grid; gap: 24px; }
.herotop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.who h2 { font-size: 2rem; letter-spacing: -0.025em; }
.herostats { display: flex; flex-wrap: wrap; gap: 32px; }
.herostats div { min-width: 0; }
.herostats .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.herostats b { display: block; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.herostats b.gold { color: var(--coins-ink); }
.herostats .s { font-size: 0.8rem; color: var(--ink-muted); }
.hero .states { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.hero .state { background: var(--ink-2); color: #e5e7eb; }
.hero .state svg.ic { background: var(--ink); color: var(--ink-muted); }
.hero .state.on svg.ic { color: #4ade80; background: rgb(74 222 128 / 0.12); }
.hero .state.rest svg.ic { color: #a78bfa; background: rgb(167 139 250 / 0.14); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--fg); }
.tabs button svg.ic { width: 16px; height: 16px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tabs button[aria-selected="true"] svg.ic { color: inherit; }
.tabs .tmore, .moresheet { display: none; }
@keyframes sheetin { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .moresheet { animation: none; } }
.tabs .tcount { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; }
#body { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 600px) {
  /* Phones: the tabs are an app's bar, fixed at the bottom; Streak, Coins and Macs open from More. */
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 0; padding: 6px 6px calc(4px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    border-top: 1px solid var(--line); }
  .tabs > button { position: relative; flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; height: 50px; padding: 0 2px;
    border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 0.68rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabs > button.tx { display: none; }
  .tabs > button.tmore { display: inline-flex; }
  .tabs > button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs > button svg.ic { width: 23px; height: 23px; color: inherit; transition: transform .15s; }
  .tabs > button[aria-selected="true"] { background: transparent; color: var(--accent); }
  .tabs > button:active svg.ic { transform: scale(.88); }
  .tabs .tcount { position: absolute; top: 2px; left: calc(50% + 5px); min-width: 18px; height: 18px; font-size: 0.66rem; padding: 0 5px; box-shadow: 0 0 0 2px var(--surface); }
  .moresheet { position: absolute; right: 8px; bottom: calc(100% + 8px); display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 40px rgb(0 0 0 / 0.18); animation: sheetin .16s ease-out; }
  .moresheet[hidden] { display: none; }
  .moresheet button { justify-content: flex-start; width: 100%; height: 46px; border: 0; border-radius: 12px; background: transparent; font-size: 0.95rem; gap: 12px; padding: 0 12px; }
  .moresheet button svg.ic { width: 20px; height: 20px; }
  .moresheet button[aria-selected="true"] { background: var(--soft); color: var(--accent); }
  .moresheet button[aria-selected="true"] svg.ic { color: var(--accent); }
  body.hasbar main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.hasbar .savebar { bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.hasbar #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero { padding: 22px; border-radius: 22px; }
  .herostats { gap: 20px; }
  .herostats b { font-size: 1.6rem; }
  .ring { width: 120px; height: 120px; } .ring > div { width: 96px; height: 96px; } .ring b { font-size: 1.4rem; } .ring.rest b { font-size: 1.15rem; } .ring svg.rmoon { width: 18px; height: 18px; }
}

/* The week's time from the rules, as bars */
.weekbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.wb { display: grid; gap: 6px; justify-items: center; min-width: 0; text-align: center; }
.wb .bars { width: 100%; height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.wb .bars i { display: block; border-radius: 8px; }
.wb .bars i.s { background: color-mix(in srgb, var(--accent) 35%, var(--track)); }
.wb .bars i.g { background: color-mix(in srgb, var(--game) 55%, var(--track)); }
.wb.today .bars i.s { background: var(--accent); }
.wb.today .bars i.g { background: var(--game); }
.wb.off .bars { border: 2px dashed var(--line); border-radius: 10px; }
.wkhead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 24px; }
.wkhead h2 { margin: 0 0 2px; }
.wktotal { display: flex; align-items: baseline; gap: 8px; }
.wktotal > b { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.wktotal span { color: var(--muted); font-size: 0.88rem; }
.wktotal span b { color: var(--fg); }
.wkchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.wkchip { font-size: 0.8rem; background: var(--soft); border-radius: 999px; padding: 5px 11px; color: var(--muted); }
.wkchip b { color: var(--fg); }
.wkrows { display: flex; flex-direction: column; gap: 2px; margin: 4px -12px 0; }
.wkrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(150px, 220px); align-items: center; gap: 14px; padding: 9px 12px; border-radius: 12px; }
.wkrow.today { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.wkday { display: flex; flex-direction: column; line-height: 1.2; }
.wkday b { font-size: 0.9rem; }
.wkday small { font-size: 0.66rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.wkrow.today .wkday b { color: var(--accent); }
.wkrow.later .wkday b { color: var(--muted); }
.wkbars { display: flex; gap: 6px; align-items: center; min-width: 0; }
.wkbar { flex: none; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); overflow: hidden; }
.wkbar i { display: block; height: 100%; border-radius: 7px; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.wkrow.today .wkbar.s i { background: var(--accent); }
.wkbar.g { background: color-mix(in srgb, var(--game) 18%, var(--surface)); }
.wkbar.g i { background: color-mix(in srgb, var(--game) 70%, var(--surface)); }
.wkbar.later { background: repeating-linear-gradient(135deg, var(--track) 0 6px, var(--soft) 6px 12px); }
.wkbar.g.later { background: repeating-linear-gradient(135deg, var(--game-soft) 0 6px, var(--surface) 6px 12px); }
.wkbar.over { box-shadow: inset 0 0 0 2px var(--bad); }
.wklbl { text-align: right; font-size: 0.88rem; line-height: 1.35; }
.wklbl .of { color: var(--muted); }
.wklbl .sub { display: block; font-size: 0.76rem; }
.wklbl .gm { color: color-mix(in srgb, var(--game) 75%, var(--fg)); }
.wklbl .bn { color: var(--accent); font-weight: 600; }
.wklbl .ov { color: var(--bad); font-weight: 700; }
.wklegend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.76rem; color: var(--muted); margin-top: 12px; }
.wklegend span { display: flex; align-items: center; gap: 6px; }
.wklegend i { width: 18px; height: 8px; border-radius: 4px; }
.wklegend i.u { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.wklegend i.a { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.wklegend i.g { background: color-mix(in srgb, var(--game) 70%, var(--surface)); }
.wklegend i.f { background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--soft) 3px 6px); }
@media (max-width: 560px) {
  .wkrow { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; padding: 8px 12px; }
  .wklbl { grid-column: 2; text-align: left; }
  .wklbl .sub { display: inline; margin-left: 8px; }
  .wktotal > b { font-size: 1.5rem; }
}
.wb b { font-size: 0.82rem; }
.wb.today b { color: var(--accent); }
.wb span { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }

/* MARK: homework */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { display: grid; gap: 6px; }
.photo button { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--soft); cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .gone { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--muted); font-size: 0.8rem; text-align: center; padding: 8px; }
.photo p { font-size: 0.9rem; }
.stars { display: flex; gap: 2px; }
.stars button { border: 0; background: none; font-size: 1.9rem; line-height: 1; padding: 2px 4px; cursor: pointer; color: var(--line); min-width: 44px; min-height: 44px; }
.stars button[aria-checked="true"] { color: var(--star); }
.rating { display: grid; gap: 2px; }
.rating > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.viewer { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / 0.9); display: grid; place-items: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.viewer button { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; font-size: 1rem; background: rgb(255 255 255 / 0.15); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* MARK: lists, calendar, charts */
.ledger { display: grid; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.ledger div:last-child { border-bottom: 0; }
.ledger > div > span:last-child { white-space: nowrap; padding-left: 8px; }
.plus { color: var(--good); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.minus { color: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 0.78rem; background: var(--soft); color: var(--muted); }
.cal .h { background: none; font-weight: 600; aspect-ratio: auto; }
.cal .ok { background: var(--accent); color: #fff; }
.cal .freeze { background: #0ea5e9; color: #fff; }
.cal .miss { background: color-mix(in srgb, var(--bad) 22%, var(--soft)); color: var(--fg); }
.cal .off { background: none; border: 2px dashed var(--line); }
.cal .pending { background: color-mix(in srgb, var(--warn) 28%, var(--soft)); color: var(--fg); }
.cal .today { outline: 2px solid var(--fg); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.hoursbar { display: flex; gap: 3px; align-items: flex-end; height: 100px; padding-top: 4px; }
.hoursbar i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.hourslabels { display: flex; justify-content: space-between; margin-top: -6px; }
.weeknav { display: flex; gap: 6px; }
.weeknav button.small { min-width: 40px; min-height: 36px; padding: 4px 10px; font-size: 1.1rem; }
.weekcard .stats { margin-bottom: 12px; }
.delta { font-size: 0.7rem; color: var(--muted); display: block; margin-top: 2px; }
.stat .delta.up, .stat .delta.down { font-weight: 600; }
.stat .delta.up { color: var(--fg); }
.wkchart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 150px; }
.wcol { display: grid; grid-template-rows: minmax(0, 1fr) 18px 16px; text-align: center; gap: 2px; min-width: 0; }
.wcol b { font-size: 0.75rem; }
.wcol.today b { color: var(--accent); }
button.wcol { background: none; border: 0; padding: 4px 2px 0; margin: -4px 0 0; font: inherit; color: inherit; cursor: pointer; border-radius: 10px; }
button.wcol:hover { background: var(--soft); }
button.wcol:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wcol.picked { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent); }
.wcol.picked b { color: var(--accent); }
/* Reports: Day / Week / Month */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--soft); justify-self: start; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 7px 16px; border-radius: 9px; cursor: pointer; min-height: 36px; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
#rep { display: grid; gap: 16px; min-width: 0; }
.weeknav select { max-width: 9.5em; }
.mchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 150px; }
.mcol { display: grid; grid-template-rows: minmax(0, 1fr) 16px; min-width: 0; text-align: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; border-radius: 4px; }
button.mcol { cursor: pointer; }
button.mcol:hover { background: var(--soft); }
button.mcol:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mcol .wbar i.s, .mcol .wbar i.g + i.s { border-radius: 3px 3px 0 0; }
.mcol.today .mlab, .mcol.today { color: var(--accent); }
.mlab { font-size: 0.7rem; color: var(--muted); }
.wbar { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; }
.wbar i { display: block; width: 100%; }
.wbar i.s { background: var(--accent); border-radius: 6px 6px 0 0; }
.wbar i.g { background: var(--game); }
.wbar i.g + i.s { border-radius: 6px 6px 0 0; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 2px; vertical-align: -1px; }
.key.s { background: var(--accent); }
.key.g { background: var(--game); }
.weekcard details { margin-top: 8px; }
.weekcard h3 { font-size: 0.9rem; margin: 12px 0 4px; }

/* MARK: rules */
details.section { padding: 0; gap: 0; }
details.section > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary > span { display: grid; gap: 2px; min-width: 0; }
details.section > summary::after { content: "›"; color: var(--muted); font-size: 1.4rem; transition: transform .15s; flex: none; }
details.section[open] > summary::after { transform: rotate(90deg); }
details.section .sbody { padding: 0 20px 20px; display: grid; gap: 10px; }
#rules { gap: 12px; }
table.days { width: 100%; border-collapse: collapse; }
table.days th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 4px 4px 6px; }
table.days td { padding: 3px 4px; }
table.days input[type=number] { width: 100%; padding: 8px 6px; text-align: center; min-width: 0; }
label.daychk { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 40px; }
label.daychk input { width: 20px; height: 20px; accent-color: var(--accent); }
.gamehours { display: grid; grid-template-columns: 4em minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 0.9rem; }
.gamehours input { min-width: 0; padding: 8px 6px; }
/* iPhone Safari gives time fields a width of their own and ignores the grid, so "to 18:00" ran off the sheet. */
input[type=time] { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 44px; text-align: center; }
input[type=time]::-webkit-date-and-time-value { text-align: center; }
.gamehours .d { font-weight: 600; }
details.perday > summary { cursor: pointer; color: var(--link); padding: 4px 0; }
details.perday .gamehours { margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.savebar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.savebar .primary { width: 100%; }

/* MARK: Macs */
.macbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.macbtns button.small { padding: 6px 12px; font-size: 0.85rem; min-height: 36px; }
.field.macmode { margin: 10px 0; }
.field.macmode select { width: 100%; max-width: 100%; min-width: 0; }
fieldset.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
fieldset.days legend { padding: 0; margin-bottom: 6px; }
fieldset.days label { position: relative; }
fieldset.days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
fieldset.days span { display: inline-block; min-width: 44px; padding: 8px 6px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
fieldset.days input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
fieldset.days input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
ol.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.code { font: 700 2rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; text-align: center; padding: 14px; background: var(--soft); border-radius: 14px; user-select: all; }

/* MARK: weekly plans */
.plan .pgoals { display: grid; gap: 6px; margin: 10px 0 6px; }
.pgoal { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.pgoal:not(:has(.pbar)) { grid-template-columns: 1fr auto; }
.pbar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 4px; }
.ptasks { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.ptasks li { display: flex; gap: 8px; align-items: center; }
.ptasks li .ic { width: 16px; height: 16px; flex: none; }
.ptasks li.done { color: var(--muted); }
.ptasks li.done .ic { color: var(--good); }
.weekplan { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* MARK: the rest */
#toast { position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 600; z-index: 30; max-width: calc(100% - 32px); }
.login { max-width: 420px; width: 100%; margin: 10vh auto 0; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
@media (prefers-reduced-motion: no-preference) { .card, .kid > a.card { transition: border-color 0.15s, background 0.15s; } }

/* MARK: homework, checked: title first, then the result and the message */
.hwhead { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hwtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hwtitle { font-size: 1.08rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hwmeta { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.hwdone { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.hwdone.sentback { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.hwthumbs { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hwthumbs > :first-child { grid-column: 1 / -1; }
.hwthumbs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); cursor: zoom-in; aspect-ratio: 4 / 3; }
.hwthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hwthumbs .gone, .hwthumbs .more { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 0.72rem; display: grid; place-items: center; text-align: center; padding: 4px; }
.hwmain { display: grid; gap: 8px; min-width: 0; }
.hwrate { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.84rem; color: var(--muted); }
.hwrate span { display: inline-flex; align-items: center; gap: 6px; }
.ro { display: inline-flex; gap: 1px; font-size: 0.95rem; line-height: 1; }
.ro i { font-style: normal; color: var(--line); }
.ro i.on { color: var(--star); }
.hwmsg { margin: 2px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: 0.98rem; font-weight: 600; overflow-wrap: anywhere; }
.hwmsg span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--link); margin-bottom: 2px; }
.hwby { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 520px) { .hwdone { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; } .hwtitle { font-size: 1rem; } }

/* MARK: reading */
.spine { flex: none; width: 46px; height: 66px; border-radius: 3px 8px 8px 3px; display: flex; align-items: flex-end; padding: 5px; box-sizing: border-box;
  color: #fff; font-size: 0.6rem; font-weight: 700; line-height: 1.1; overflow: hidden; box-shadow: inset 3px 0 0 rgba(0,0,0,0.18); }
.spine span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.spine.sm { width: 34px; height: 48px; font-size: 0; }
.spine.h0 { background: #1e3a5f; } .spine.h1 { background: #0f766e; } .spine.h2 { background: #b91c1c; } .spine.h3 { background: #6d28d9; }
.spine.h4 { background: #a16207; } .spine.h5 { background: #be185d; } .spine.h6 { background: #15803d; } .spine.h7 { background: #334155; }
.readtop { display: flex; align-items: flex-start; gap: 14px; }
.readtop > div { flex: 1; min-width: 0; }
.readtop h3 { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.readtop .ro { color: var(--star); font-size: 0.9rem; }
.thought { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); font-size: 1.02rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.thought.small { font-size: 0.92rem; }
.hwmsg.reply { background: color-mix(in srgb, var(--good) 9%, var(--surface)); border-color: color-mix(in srgb, var(--good) 22%, transparent); }
.coinpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coinpick button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.coinpick input { width: 96px; margin-left: 4px; }
.readstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .readstats .card { padding: 12px; } .readstats b { font-size: 1.3rem !important; } .readstats .k { font-size: 0.62rem !important; } }
.readstats .card { gap: 2px; }
.readstats .k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.readstats b { font-size: 1.7rem; font-weight: 800; }
.readstats b small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.readstats .s { font-size: 0.82rem; color: var(--muted); }
.goalbar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: 6px; }
.goalbar i { display: block; height: 100%; background: var(--game); border-radius: 4px; }
.readgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.wordbars { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 3px; align-items: end; height: 110px; margin: 8px 0 4px; }
.wordbars i { display: block; border-radius: 3px; background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.wordbars i.today { background: var(--accent); }
.wordbars i.none { background: var(--track); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.shelfbook { display: flex; gap: 12px; padding: 10px; border-radius: 14px; background: var(--soft); }
.shelfbook > div { display: grid; gap: 2px; min-width: 0; align-content: start; }
.shelfbook b { overflow-wrap: anywhere; }
.readrules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.readrules .check, .readrules button { grid-column: 1 / -1; justify-self: start; }
.stack { display: grid; gap: 10px; }

/* MARK: Mintful (1.9): buttons, compact family cards, a compact child header with a switcher */
button.primary, button.secondary, button.ghost, button.danger, button.dark, button.mint, a.btn { font-family: var(--head); font-weight: 800; border-radius: 14px; }
button.mint { background: var(--mint); color: #0e2a22; border: 1px solid transparent; padding: 10px 18px; min-height: 44px; cursor: pointer; }
button.mint:hover { filter: brightness(0.96); }
.badge { background: var(--mint-soft); color: var(--accent); font-family: var(--head); font-weight: 800; }
.top h1 { font-family: var(--head); font-weight: 900; }

.kids { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.kid { border-radius: 22px; }
.kid > a.card { padding: 16px 16px 10px; gap: 12px; }
.kidhead { gap: 10px; }
.kidhead .av { width: 38px; height: 38px; font-size: 1rem; }
.kidhead h2 { font-size: 1.2rem; font-weight: 900; }
.kidhead .badge { padding: 3px 9px; }
.kidhead svg.go { color: var(--muted); width: 20px; height: 20px; }
.kidbody { gap: 16px; flex-wrap: nowrap; }
.kid .ring { width: 84px; height: 84px; }
.kid .ring > div { width: 68px; height: 68px; }
.kid .ring b { font: 900 1.05rem var(--head); letter-spacing: -0.02em; }
.kid .ring span { font-size: 0.62rem; line-height: 1.1; }
.kid .ring.rest b { font-size: 0.95rem; }
.kid .ring svg.rmoon { width: 14px; height: 14px; }
.kid dl.facts { min-width: 0; gap: 8px 14px; }
.kid dl.facts dd { font: 900 1.12rem var(--head); }
.kid dl.facts dd small { font-family: "Inter", system-ui, sans-serif; }
.states.one { display: flex; align-items: center; gap: 8px; }
.states.one .state { flex: 1; padding: 6px 10px; }
.states.one .state svg.ic { width: 24px; height: 24px; padding: 4px; }
.states .more { flex: none; }
.kid .quick { padding: 0 16px 14px; gap: 6px; }
.kid .quick button { min-height: 38px; padding: 6px 14px; font-size: 0.9rem; }
.ring { --c: var(--accent); }
.ring.c0 { --c: #2fbf7f; }

.kidswitch { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: -8px; }
.kidswitch::-webkit-scrollbar { display: none; }
.kidswitch a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none; font: 800 0.92rem var(--head); min-height: 40px; }
.kidswitch a .av.sm { width: 28px; height: 28px; font-size: 0.8rem; }
.kidswitch a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kidswitch em { font-style: normal; background: var(--mint); color: #0e2a22; border-radius: 999px; padding: 0 7px; font-size: 0.72rem; }

.hero { background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 14px 16px; gap: 10px; }
.who { gap: 12px; align-items: center; }
.who .av { width: 48px; height: 48px; font-size: 1.2rem; }
.who h2 { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.herostats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.herostats span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.herostats svg.ic { width: 15px; height: 15px; }
.herostats b { display: inline; font: 900 1.05rem var(--head); color: var(--fg); letter-spacing: 0; }
.herostats b.gold { color: var(--coins); }
.herostats small { font-size: 0.78rem; }
.hero details.macs summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hero details.macs summary::-webkit-details-marker { display: none; }
.hero details.macs summary .state { flex: 1; }
.hero details.macs[open] summary { display: none; }
.hero .state { background: var(--soft); color: var(--fg); padding: 6px 10px; }
.hero .state svg.ic { background: var(--surface); color: var(--muted); width: 24px; height: 24px; padding: 4px; }
.hero .state.on svg.ic { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.hero .state.rest svg.ic { color: #6d4ae0; background: rgb(109 74 224 / 0.12); }
.tabs { position: sticky; top: 0; z-index: 6; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 6px 0; margin: -6px 0; }
.tabs button { font-family: var(--head); font-weight: 800; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"], .kidswitch a[aria-current="page"] { background: var(--mint); color: #0e2a22; border-color: var(--mint); } }
.tabs .tcount { background: var(--mint); color: #0e2a22; }
@media (max-width: 600px) {
  .tabs { position: fixed; top: auto; margin: 0; padding: 6px 6px calc(4px + env(safe-area-inset-bottom)); }
  .tabs > button[aria-selected="true"] { background: transparent; color: var(--accent); border: 0; }
  .hero { padding: 12px 14px; }
  .who h2 { font-size: 1.25rem; }
  main { gap: 14px; }
}
@media (min-width: 960px) { .tabs { top: 0; } }
@media (min-width: 960px) { .kidswitch { display: none; } }   /* the side menu lists the children there */
body.home .top h1 { display: flex; align-items: center; gap: 8px; }
body.home .top h1::before { content: ""; width: 32px; height: 32px; flex: none; border-radius: 9px; background: url("/icon-192.png") center / cover no-repeat; }


/* MARK: Mintful Family, the new look: Mintful's soft green and yellow shapes behind every page, round white cards,
   a colour for each kind of thing (green time, blue homework, purple reading, yellow mints, orange games), and four places to go. */
:root { --g-soft: #ddf7ea; --g-fg: #157a4f; --b-soft: #dcebff; --b-fg: #1f5fb8; --p-soft: #ece8ff; --p-fg: #4b3bb0; --y-soft: #fff0c2; --y-fg: #8a5e00; --o-soft: #ffe6d4; --o-fg: #a4480f;
  --sun: #fff0c2; --leaf: #3ccb8b; --lift: 0 4px 14px rgb(14 42 34 / 0.07); }
@media (prefers-color-scheme: dark) {
  :root { --g-soft: #173f30; --g-fg: #7fe9bc; --b-soft: #1b2f4d; --b-fg: #9cc4ff; --p-soft: #2b2650; --p-fg: #c3b8ff; --y-soft: #3a3214; --y-fg: #ffd166; --o-soft: #3a2414; --o-fg: #ffb07a;
    --sun: #2c2a14; --leaf: #5be3a6; --lift: none; }
}
body { overflow-x: hidden; }
.content { position: relative; }
.blobs { position: absolute; inset: 0 0 auto 0; height: 340px; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; }
.blobs .g { width: 340px; height: 250px; left: -110px; top: -90px; background: var(--mint-soft); }
.blobs .y { width: 270px; height: 230px; right: -100px; top: 40px; background: var(--sun); border-radius: 46% 54% 50% 50%; }
.top, main { position: relative; z-index: 1; }
.top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: static; }
.top h1 { font-size: 1.3rem; }
.back { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--lift); padding: 0 2px 4px 0; font-size: 1.7rem; color: var(--fg); flex: none; }
body.tabpage .top { display: none; }
body.tabpage main { padding-top: calc(22px + env(safe-area-inset-top)); }
main { max-width: 940px; gap: 16px; }
@media (max-width: 959px) { body.signedin main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .blobs .g { width: 460px; height: 320px; } .blobs .y { width: 380px; height: 300px; } body.tabpage main { padding-top: 36px; } }
.card { border: 0; border-radius: 22px; box-shadow: var(--lift); }
@media (prefers-color-scheme: dark) { .card { border: 1px solid var(--line); } }
button.primary, a.btn.primary { background: var(--leaf); color: #06281c; }
button.primary.taking { background: var(--o-soft); color: var(--o-fg); }
button.secondary, a.btn.secondary { background: var(--g-soft); border-color: transparent; color: var(--fg); }

.hi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hi small { display: block; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.hi h1 { font: 900 clamp(1.7rem, 4vw, 2.2rem)/1.1 var(--head); }
.me { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--fg); display: grid; place-items: center; box-shadow: var(--lift); flex: none; }
.me svg.ic { width: 20px; height: 20px; }
.sprout { display: block; width: 46px; height: auto; flex: none; }
.bub { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; }
.bub > a, .bub > span { background: var(--surface); color: var(--fg); border-radius: 18px 18px 5px 18px; padding: 10px 14px; box-shadow: var(--lift); margin-bottom: 14px; text-decoration: none; font-size: 0.95rem; }
.bub b { font-family: var(--head); font-weight: 800; }
h2.lbl, .lbl { font: 900 0.72rem/1.2 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.lbl.in { margin: 0; }

.ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.ico svg.ic { width: 19px; height: 19px; stroke-width: 2.1; vertical-align: 0; }
.c-g { background: var(--g-soft); color: var(--g-fg); } .c-b { background: var(--b-soft); color: var(--b-fg); } .c-p { background: var(--p-soft); color: var(--p-fg); }
.c-y { background: var(--y-soft); color: var(--y-fg); } .c-o { background: var(--o-soft); color: var(--o-fg); }

/* Needs you */
.needs { display: grid; gap: 10px; }
.hs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nc { background: var(--surface); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--lift); color: var(--fg); text-decoration: none; min-width: 0; }
.nc b { font: 800 0.98rem var(--head); margin-top: 8px; overflow-wrap: anywhere; } .nc small { color: var(--muted); font-size: 0.82rem; }
.btnlike { margin-top: 10px; border-radius: 13px; padding: 9px 12px; text-align: center; font: 900 0.9rem var(--head); }
.btnlike.b { background: var(--b-soft); color: var(--b-fg); } .btnlike.p { background: var(--p-soft); color: var(--p-fg); }
.needs .need { background: var(--surface); border-radius: 22px; padding: 14px; border-top: 0; box-shadow: var(--lift); }
.needs h2 + .need { padding-top: 14px; }

/* Children on Home */
.kids { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.kidc { background: var(--surface); border-radius: 24px; padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--lift); color: var(--fg); text-decoration: none; min-width: 0; }
.kidc:hover { box-shadow: 0 8px 22px rgb(14 42 34 / 0.12); }
.av { width: 56px; height: 56px; }
.av .sprout { width: 72%; }
.av.c0 { background: var(--g-soft); } .av.c1 { background: var(--y-soft); } .av.c2 { background: var(--b-soft); } .av.c3 { background: var(--o-soft); } .av.c4 { background: var(--p-soft); }
.av.sm { width: 28px; height: 28px; }
.kinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .kh b { font: 900 1.12rem var(--head); }
.st { font: 900 0.7rem/1 var(--head); padding: 4px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.st.on { background: var(--g-soft); color: var(--g-fg); } .st.game { background: var(--o-soft); color: var(--o-fg); } .st.rest { background: var(--p-soft); color: var(--p-fg); }
.kmeta { display: flex; gap: 12px; flex-wrap: wrap; font: 800 0.82rem var(--head); font-variant-numeric: tabular-nums; } .kmeta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.kmeta svg.ic { width: 14px; height: 14px; color: var(--g-fg); vertical-align: 0; }
.wk { display: flex; gap: 4px; } .wk i { width: 14px; height: 6px; border-radius: 99px; background: var(--track); } .wk i.f { background: var(--leaf); } .wk i.t { outline: 1.5px solid var(--muted); outline-offset: 1px; }
.state.game svg.ic { color: var(--o-fg); background: var(--o-soft); }

/* Rings */
.ringw { position: relative; display: inline-grid; place-items: center; width: 70px; height: 70px; flex: none; }
.ringw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ringw circle { fill: none; stroke-width: 7; }
.ringw .tr { stroke: var(--track); } .ringw .pr { stroke: var(--leaf); stroke-linecap: round; } .ringw .pr.game { stroke: var(--game); } .ringw .pr.rest { stroke: #8b5cf6; }
.rin { position: relative; text-align: center; line-height: 1.05; display: grid; justify-items: center; }
.rin b { font: 900 1.02rem/1.05 var(--head); font-variant-numeric: tabular-nums; } .rin small { font-size: 0.6rem; color: var(--muted); font-weight: 600; } .rin svg.ic { position: static; width: 16px; height: 16px; color: #8b5cf6; }
.ringw.big { width: 168px; height: 168px; background: var(--surface); border-radius: 50%; box-shadow: 0 8px 24px rgb(14 42 34 / 0.1); }
.ringw.big .rin b { font-size: 1.9rem; } .ringw.big .rin small { font-size: 0.8rem; } .ringw.big .rin svg.ic { width: 28px; height: 28px; }

/* The four places: along the bottom of a phone, down the side on wide screens */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 2px; padding: 5px; border-radius: 99px;
  background: color-mix(in srgb, var(--track) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 26px rgb(14 42 34 / 0.16); max-width: 520px; margin: 0 auto; }
.tabbar[hidden] { display: none; }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 6px; border-radius: 99px; color: var(--muted); text-decoration: none; font: 800 0.72rem var(--head); min-height: 52px; }
.tabbar a b { font-weight: 800; } .tabbar .ico { width: 30px; height: 30px; } .tabbar .ico svg.ic { width: 16px; height: 16px; }
.tabbar a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: 0 4px 12px rgb(14 42 34 / 0.1); }
.tabbar em.count { position: absolute; top: 2px; left: calc(50% + 6px); background: #ff8a3d; color: #fff; font: 900 0.66rem/17px var(--head); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; text-align: center; font-style: normal; }
@media (min-width: 960px) { .tabbar { display: none; } }
body.sheeted .tabbar { display: none; }
.sidenav .ico { width: 28px; height: 28px; } .sidenav .ico svg.ic { width: 15px; height: 15px; }
.sidenav a[aria-current="page"] .ico { background: rgb(255 255 255 / 0.55); color: var(--ink); }
.sidenav a em.count { margin-left: auto; background: #ff8a3d; color: #fff; font: 900 0.72rem var(--head); padding: 1px 8px; border-radius: 999px; font-style: normal; }
.sidenav .av.sm { width: 28px; height: 28px; }

.kpills { display: flex; gap: 4px; background: var(--track); border-radius: 99px; padding: 3px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.kpills::-webkit-scrollbar { display: none; }
.kpills a { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 7px; border-radius: 99px; font: 800 0.86rem var(--head); color: var(--muted); text-decoration: none; min-height: 36px; }
.kpills a .sprout { width: 20px; } .kpills a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: 0 2px 6px rgb(14 42 34 / 0.1); }
.kpills em { font-style: normal; background: #ff8a3d; color: #fff; border-radius: 99px; padding: 0 6px; font-size: 0.7rem; }
.kpills.wide { align-self: start; justify-self: start; }
@media (min-width: 960px) { .kpills.wide { display: none; } }

/* A child's day */
.dayhero { display: grid; justify-items: center; gap: 10px; padding: 4px 0; }
.acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--fg); text-decoration: none; min-width: 60px; border-radius: 14px; font: inherit; }
.act .ico { width: 48px; height: 48px; } .act .ico svg.ic { width: 22px; height: 22px; } .act small { font: 800 0.76rem var(--head); }
.act:hover .ico { filter: brightness(0.96); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border-radius: 20px; padding: 12px 14px; box-shadow: var(--lift); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.tile .ico { grid-row: 1 / 3; width: 32px; height: 32px; } .tile .ico svg.ic { width: 17px; height: 17px; }
.tile b { font: 900 1.05rem var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tile small { color: var(--muted); font-size: 0.78rem; }

/* Lists of rows */
.card.list { padding: 4px 16px; gap: 0; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: left; color: var(--fg); text-decoration: none; font: inherit; min-width: 0; }
.rrow:first-child { border-top: 0; }
button.rrow, a.rrow { cursor: pointer; }
.rrow > span:not(.ico):not(.amt) { flex: 1; min-width: 0; display: grid; }
.rrow b { font: 800 0.98rem var(--head); overflow-wrap: anywhere; } .rrow small { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
svg.go { color: color-mix(in srgb, var(--muted) 55%, transparent); width: 18px; height: 18px; flex: none; }
.rrow em.count { background: #ff8a3d; color: #fff; font: 900 0.72rem var(--head); padding: 1px 8px; border-radius: 99px; font-style: normal; }
.amt { font: 900 0.98rem var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); } .amt.plus { color: var(--good); } .amt.minus { color: var(--o-fg); }

/* Review */
.rvlist { display: grid; gap: 10px; }
.rv { background: var(--surface); border-radius: 24px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--lift); color: var(--fg); text-decoration: none; min-width: 0; }
.rv > span:not(.thumb):not(.spine) { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.rv b { font: 800 1rem var(--head); overflow-wrap: anywhere; } .rv small { color: var(--muted); font-size: 0.82rem; }
.thumb { width: 56px; height: 68px; border-radius: 13px; flex: none; background: var(--b-soft); color: var(--b-fg); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kind { font: 900 0.68rem/1 var(--head); padding: 4px 8px; border-radius: 99px; } .kind.b { background: var(--b-soft); color: var(--b-fg); } .kind.p { background: var(--p-soft); color: var(--p-fg); }
.rvcount { text-align: center; }
.say { display: flex; flex-wrap: wrap; gap: 6px; }
.saychip, .chipbtn { background: var(--surface); border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 13px; font: 800 0.84rem var(--head); cursor: pointer; min-height: 36px; color: var(--fg); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { .chipbtn[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #0e2a22; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.two { display: flex; gap: 8px; } .two > * { flex: 1; } .two > .primary { flex: 1.5; }
blockquote.thought footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--p-soft); font-size: 0.8rem; color: var(--muted); font-weight: 400; }
blockquote.thought footer .sprout { width: 22px; }
.rvcard blockquote.thought { font: 700 1.08rem/1.55 var(--head); }

/* Sheets */
body.sheeted { overflow: hidden; }
.veil { position: fixed; inset: 0; z-index: 40; background: rgb(14 42 34 / 0.38); display: grid; align-items: end; justify-items: center; animation: veil-in 0.2s ease-out; }
.sheet { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: 30px 30px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; box-shadow: 0 -12px 40px rgb(14 42 34 / 0.2); animation: sheet-in 0.28s cubic-bezier(0.2, 0.9, 0.25, 1); }
@media (min-width: 700px) { .veil { align-items: center; } .sheet { border-radius: 30px; padding-bottom: 18px; } }
@keyframes veil-in { from { opacity: 0; } } @keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .veil, .sheet { animation: none; } }
.grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); justify-self: center; }
.sh { display: flex; gap: 12px; align-items: center; } .sh > div { display: grid; min-width: 0; } .sh b { font: 900 1.15rem var(--head); } .sh small { color: var(--muted); font-size: 0.84rem; }
.sheetbody { display: grid; gap: 12px; }
.dial { display: flex; align-items: center; justify-content: center; gap: 18px; }
.dial .ringw.big { width: 136px; height: 136px; box-shadow: none; } .dial .ringw.big .rin b { font-size: 1.45rem; }
button.round { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--g-soft); color: var(--fg); font: 900 1.5rem/1 var(--head); cursor: pointer; flex: none; }
.sheet .linkbtn { justify-self: center; font-size: 0.86rem; }

/* Rules */
.wb { display: flex; gap: 8px; align-items: flex-end; }
.wb > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.wb .col { height: 84px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 9px; overflow: hidden; }
.wb .col i { display: block; width: 100%; } .wb i.s { background: var(--leaf); } .wb i.g { background: var(--game); } .wb i.off { background: var(--track); }
.wb b { font: 800 0.74rem var(--head); color: var(--muted); } .wb small { font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb .today b { color: var(--fg); }
.wblegend { display: flex; gap: 14px; font-size: 0.76rem; color: var(--muted); } .wblegend span { display: inline-flex; align-items: center; gap: 6px; }
.wblegend i { width: 10px; height: 10px; border-radius: 4px; display: block; } .wblegend i.s { background: var(--leaf); } .wblegend i.g { background: var(--game); }

/* Mints */
.bal { background: linear-gradient(150deg, #1f5c46, #0b3023); color: #fff; border-radius: 26px; padding: 18px; display: grid; grid-template-columns: 1fr auto; row-gap: 14px; align-items: center; box-shadow: 0 10px 24px rgb(15 61 46 / 0.3); }
.bal small, .bal dt { color: #a9e3c8; font-size: 0.78rem; font-weight: 600; display: block; }
.bal > div b { font: 900 2.3rem/1 var(--head); font-variant-numeric: tabular-nums; } .bal > div span { margin-left: 6px; color: #c8f5de; font-weight: 600; }
.bigcoin { width: 78px; height: 78px; } .bigcoin .c1 { fill: #5be3a6; } .bigcoin .c2 { fill: #c8f5de; } .bigcoin .c3 { fill: #1e8a5b; }
.bal dl { grid-column: 1 / 3; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 12px; }
.bal dd { margin: 0; font: 900 1.05rem var(--head); font-variant-numeric: tabular-nums; }
.givef { gap: 10px; }
.seg2 { display: flex; background: var(--track); border-radius: 14px; padding: 3px; }
.seg2 button { flex: 1; border: 0; background: none; padding: 9px 0; border-radius: 11px; font: 800 0.92rem var(--head); cursor: pointer; color: var(--muted); min-height: 40px; }
.seg2 button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 2px 6px rgb(14 42 34 / 0.1); }
.give { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 6px; }
.give button { border: 0; border-radius: 14px; padding: 12px 0; background: var(--surface); box-shadow: var(--lift); font: 900 1rem var(--head); cursor: pointer; font-variant-numeric: tabular-nums; min-height: 46px; color: var(--fg); }
.give button[aria-pressed="true"] { background: var(--y-soft); color: var(--y-fg); box-shadow: inset 0 0 0 2px #f2c94c; }
.give input { background: var(--surface); border: 0; box-shadow: var(--lift); border-radius: 14px; text-align: center; font-weight: 700; min-width: 0; }
@media (prefers-color-scheme: dark) { .give button, .give input, .nc, .kidc, .rv, .tile, .needs .need { border: 1px solid var(--line); } }
.ringw:not(.big) .rin b.long { font-size: 0.8rem; }
@media (max-width: 959px) { body.signedin #toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .top { width: 100%; max-width: 940px; margin: 0 auto; box-sizing: border-box; } }
/* No mascot on the parents' site: a child is a coloured initial. */
.av { font: 900 1.35rem var(--head); }
.av.sm { font-size: 0.8rem; }
.av.c0 { color: var(--g-fg); } .av.c1 { color: var(--y-fg); } .av.c2 { color: var(--b-fg); } .av.c3 { color: var(--o-fg); } .av.c4 { color: var(--p-fg); }
.bub { justify-content: flex-start; }
.bub > a, .bub > span { border-radius: 18px; margin-bottom: 0; }
.bub.warn > a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff8a3d; margin-right: 9px; }
.kpills a { padding: 5px 14px; }
