/* =====================================================================
   THE GROWN-UPS' DASHBOARD (WO-047 part 1, 2026-10-01)

   Loaded AFTER the page's own <style> block, so it restyles the whole
   page: warm and calm, in Kipwick's palette (navy ink, paper, the mark's
   green, sunshine yellow, cream) with the lands' painted banners, but grown-up: no
   chunky borders or bouncing, system text for reading, Baloo 2 for
   headings and the big numbers.

   Contrast: body text is navy on white/cream (12:1+); secondary text is
   --pr-dim (6.4:1 on white, 5.9:1 on cream). Subject colours are chart
   marks only (3:1+ on white) and every mark has its number in words.
   ===================================================================== */
:root{
  /* KIPWICK'S CANONICAL PALETTE (brand audit 2026-10-08, WO-136 F07). The
     same values as arcade.css's tokens (this page doesn't load it; the
     kipwick test compares them). The --pr-* names below point at these. */
  --kw-green:#5DBB7A; --kw-green-deep:#2E7845; --kw-outline:#1F4A37; --kw-navy:#1E2B63;
  --kw-paper:#FFF8EC; --kw-peach:#FDEBD3; --kw-sun:#FFD25E; --kw-teal:#3FB8B0;
  --kw-blue:#4C9BFF; --kw-blue-deep:#1F5FD6; --kw-red:#FF5A5A;
  --pr-ink:var(--kw-navy); --pr-dim:#4A5788; --pr-faint:#6A76A3;
  --pr-line:#DFE6F5; --pr-panel:#FFFFFF; --pr-cream:#FFF6E3; --pr-cream-edge:#F3DFB2;
  /* Kipwick's paper and a soft wash of Kipwick Green at the top (was a
     sky blue until 2026-10-01; the kids' pages are the explorer's map). */
  --pr-sky:#E6F3DE; --pr-bg:var(--kw-paper);
  --pr-accent:var(--kw-blue-deep); --pr-sun:var(--kw-sun); --pr-sun-deep:#E39B00;
  --pr-ai:#F5F0FF; --pr-ai-edge:#DCCDFA; --pr-ai-ink:#5B3AA6;
  --pr-shadow:0 1px 2px rgba(30,43,99,.06), 0 10px 28px rgba(30,43,99,.08);
  --pr-radius:22px;
  --pr-head:'Baloo 2','Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif;
  --pr-body:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  /* one hue per subject (validated as chart marks on white), and a tint for "growing" */
  --sub-RD:#E0592A; --sub-RD-t:#F7C3AC;
  --sub-MA:#2A78D6; --sub-MA-t:#B3D0F3;
  --sub-SC:#1F9D55; --sub-SC-t:#A9DDBF;
  --sub-SS:#8B46C9; --sub-SS-t:#D8BFEF;
  --sub-land:#1F5FD6; --sub-land-t:#FFD873;
  --track:#E9EDF6;
  /* the old page's tokens, pointed at the new palette */
  --ink:var(--pr-ink); --dim:var(--pr-dim); --line:var(--pr-line); --accent:var(--pr-accent); --bg:var(--pr-bg);
}

html{ -webkit-text-size-adjust:100%; }
body{
  background:linear-gradient(180deg, var(--pr-sky) 0, var(--pr-bg) 360px) no-repeat, var(--pr-bg);
  color:var(--pr-ink); font:16px/1.55 var(--pr-body);
}
.wrap{ max-width:1040px; padding:16px max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
h1, h2, h3, h4{ font-family:var(--pr-head); color:var(--pr-ink); letter-spacing:0; }
h1{ font-size:30px; line-height:1.1; margin:6px 0 2px; font-weight:800; }
h2{ font-size:22px; line-height:1.2; font-weight:800; }
a{ color:var(--pr-accent); }
.muted{ color:var(--pr-dim); font-size:14px; }
.sub{ color:var(--pr-dim); font-size:15px; margin:0 0 14px; max-width:60ch; }
/* AJ's tagline under the title, with the way to "Our promise" (WO-058).
   The green is the mark's, darkened for AA on the green wash (5.5:1). */
.pr-tagline{ font-family:var(--pr-head); font-weight:700; font-size:17px; line-height:1.3; color:var(--kw-green-deep); margin:0 0 6px; }
.pr-tagline a{ font-family:var(--pr-body); font-size:14px; font-weight:600; margin-left:6px; white-space:nowrap; }
.about .about__pledge{ font-weight:600; }
.back{
  display:inline-flex; align-items:center; gap:6px; margin:0 0 8px; padding:8px 14px;
  border-radius:999px; background:rgba(255,255,255,.8); color:var(--pr-ink); font-weight:600; font-size:14px;
  box-shadow:0 1px 2px rgba(30,43,99,.08);
}
:focus-visible{ outline:3px solid var(--pr-accent); outline-offset:2px; }

/* ---------------- cards, buttons and fields, page-wide ---------------- */
.card{
  background:var(--pr-panel); border:1px solid var(--pr-line); border-radius:var(--pr-radius);
  padding:20px; margin-bottom:16px; box-shadow:var(--pr-shadow);
}
.card h2{ margin:0 0 4px; }
.notice{ border-radius:16px; }
button.plain{
  font:600 15px/1.2 var(--pr-body); min-height:44px; padding:10px 18px; margin:6px 8px 0 0;
  color:var(--pr-ink); background:#fff; border:1.5px solid #C9D4EE; border-radius:999px; cursor:pointer;
}
button.plain:hover{ border-color:var(--pr-accent); }
button.plain:disabled{ opacity:.6; cursor:default; }
button.plain.primary{ background:var(--pr-ink); border-color:var(--pr-ink); color:#fff; }
input.pw, .fbform select, .fbform textarea, .landpick select{
  font:16px/1.3 var(--pr-body); color:var(--pr-ink); border:1.5px solid #C9D4EE; border-radius:14px; background:#fff;
}
input.pw{ padding:11px 14px; }
input.pw:focus, .fbform select:focus, .fbform textarea:focus{ border-color:var(--pr-accent); }
summary{ color:var(--pr-accent); font-weight:600; }
.tag{ font-family:var(--pr-body); }
table{ font-size:14px; }
th{ color:var(--pr-dim); }
.gate h2{ font-size:24px; }

/* ---------------- the page's top: the shared header, the tagline, the three tabs ----------------
   The header (header.js, kind 'grown'; WO-139) is the same bar as the
   kids' pages, calm: not sticky here (the tabs are), no press shadows.
   Its rules are arcade.css's, copied between the markers below by
   scripts/brand/header-mirror.mjs (kipwick.test.mjs 20 holds them equal);
   the tokens they use are mapped to this page's palette first. The mark
   is the logo (BRAND.md: the grown-ups' page shows the logo only):
   --kw-mark repeats arcade.css's (kipwick.test.mjs "ONE LOOK"). */
:root{ --kw-mark:url("/app/kipwick/mark.webp"); --kw-mark-sm:url("/app/kipwick/mark-sm.webp"); }
.kw-mark{ display:inline-block; flex:none; width:1.3em; height:1.3em; background:var(--kw-mark) center / contain no-repeat; }
.kw-small .kw-mark{ background-image:var(--kw-mark-sm); }
.kwh{ --ac-edge:var(--kw-navy); --ac-panel:#FFFFFF; --ac-font:var(--pr-head); --ac-blue:var(--kw-blue); --kw-land:var(--kw-green); }
/* BEGIN SHARED HEADER (header.js; dashboard.css carries a copy: node scripts/brand/header-mirror.mjs) */
/* ------------------------------------------------------------- header */
/* THE HEADER (header.js; WO-139, AJ's pick 2026-10-08: Option B, "the
   land bar"). Edge to edge, a light wash of the LAND's colour (--ac-land-tint,
   land-tint.js: Coral Cove's sea-teal, not Kipwick's coral pink; the bar is
   a land surface), at most 40% on paper so navy text on it stays AA in
   every land, and a navy line under it. Kipwick's head in it wears
   Kipwick's own colour (--kw-land). One row:
     🏠 Home  ·  Kipwick + the name + ★ Level N  ·  the wallets (Pause in a run)
   The sides are kept the same width (--kwh-side, measured by header.js),
   so the name is centred on the screen. 64 px on a laptop (content held
   to 1080 px), 60 px on a phone, 52 px on a phone on its side. No page
   restyles it (kipwick.test.mjs 20). */
.kwh{
  box-sizing:border-box; position:sticky; top:0; z-index:44; flex:none; width:100%;
  display:grid; grid-template-columns:var(--kwh-side, minmax(max-content,1fr)) minmax(0,1fr) var(--kwh-side, minmax(max-content,1fr));
  align-items:center; column-gap:8px; min-height:64px; margin:0 0 10px;
  padding:calc(6px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 6px max(10px, env(safe-area-inset-left, 0px));
  background:var(--kw-paper);
  background:linear-gradient(180deg, color-mix(in srgb, var(--ac-land-tint, var(--kw-green)) 40%, var(--kw-paper)), color-mix(in srgb, var(--ac-land-tint, var(--kw-green)) 26%, var(--kw-paper)));
  border-bottom:4px solid var(--ac-edge); box-shadow:0 4px 0 rgba(30,43,99,.14);
  font-family:var(--ac-font); color:var(--ac-edge); text-align:left; -webkit-tap-highlight-color:transparent;
}
.kwh[hidden]{ display:none; }
.kwh *{ box-sizing:border-box; }
/* home: the header is the top; the page under it starts close */
body.kw-has-head > .ac-page__inner{ padding-top:6px; }
.kwh__l{ justify-self:start; display:flex; align-items:center; min-width:0; }
.kwh__c{ justify-self:stretch; min-width:0; display:flex; align-items:center; justify-content:center; }
.kwh__r{ justify-self:end; display:flex; align-items:center; justify-content:flex-end; }
.kwh__r [hidden]{ display:none !important; }
/* 🏠 Home: a navy button, a house and the word, 48 px (44 sideways) */
.kwh__home{
  display:inline-flex; align-items:center; gap:6px; min-height:48px; padding:0 14px 0 6px; border-radius:999px;
  background:var(--ac-edge); color:#fff; border:3px solid var(--ac-edge); box-shadow:0 4px 0 rgba(30,43,99,.35);
  font:800 16px/1 var(--ac-font); text-decoration:none; white-space:nowrap; cursor:pointer;
}
.kwh__home:active{ transform:translateY(4px); box-shadow:0 0 0 rgba(30,43,99,.35); }
.kwh__home:focus-visible, .kwh__pause:focus-visible, .kwh__link:focus-visible{ outline:4px solid var(--ac-blue); outline-offset:3px; }
.kwh__house{ flex:none; width:34px; height:34px; border-radius:50%; background:#fff; display:grid; place-items:center; }
.kwh__house svg{ width:22px; height:22px; }
.kwh__homeword{ padding-top:.08em; }
/* lit on home itself, like the bottom bar's lit tab */
.kwh__home.is-here{ background:var(--kw-sun); color:var(--ac-edge); box-shadow:inset 0 0 0 2px var(--ac-edge); transform:translateY(3px); }
/* the centre: Kipwick's head, the name, the level */
.kwh__title{ display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
.kwh__kip{ flex:none; width:44px; height:44px; border-radius:50%; object-fit:cover; display:block;
  background:color-mix(in srgb, var(--kw-land) 30%, var(--kw-paper)); border:3px solid var(--ac-edge); }
.kwh .kwh__mark{ width:44px; height:44px; }
.kwh__words{ display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.kwh .kwh__name{ margin:0; font-size:20px; font-weight:800; line-height:1.08; color:var(--ac-edge); text-shadow:none; letter-spacing:0;
  max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.kwh__lv{ display:flex; align-items:center; gap:6px; max-width:100%; font-size:14px; font-weight:800; line-height:1.15; color:var(--ac-edge); white-space:nowrap; }
.kwh__gotd{ display:inline-flex; align-items:center; padding:0 7px; border-radius:999px; background:var(--kw-sun); border:2px solid var(--ac-edge); font-size:12px; }
.kwh__gotd[hidden]{ display:none; }
/* the wallets: one white pill */
.kwh__wallets{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; background:var(--ac-panel);
  border:3px solid var(--ac-edge); border-radius:999px; }
.kwh__wal{ font-size:16px; font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; color:var(--ac-edge); }
.kwh__dot{ width:2px; height:20px; border-radius:2px; background:var(--ac-edge); opacity:.2; }
/* ⏸ Pause, in place of the wallets during a run */
.kwh__pause{ display:inline-flex; align-items:center; gap:6px; min-height:48px; padding:0 16px 0 7px; border-radius:999px; cursor:pointer;
  background:var(--ac-panel); color:var(--ac-edge); border:3px solid var(--ac-edge); box-shadow:0 4px 0 var(--ac-edge);
  font:800 16px/1 var(--ac-font); white-space:nowrap; }
.kwh__pause:active, .kwh.is-paused .kwh__pause{ transform:translateY(4px); box-shadow:0 0 0 var(--ac-edge); }
.kwh__pausedisc{ flex:none; width:34px; height:34px; border-radius:50%; background:var(--kw-sun); border:2.5px solid var(--ac-edge); display:grid; place-items:center; }
.kwh__pausedisc svg{ width:18px; height:18px; }
.kwh__pauseword{ padding-top:.08em; }
.kwh__link{ display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:999px; background:var(--ac-panel);
  border:3px solid var(--ac-edge); color:var(--ac-edge); text-decoration:none; font:800 15px/1 var(--ac-font); white-space:nowrap; }
@media (min-width:900px){
  .kwh{ min-height:68px; column-gap:12px; padding-left:max(16px, calc((100% - 1080px) / 2)); padding-right:max(16px, calc((100% - 1080px) / 2)); }
  .kwh .kwh__name{ font-size:22px; }
  .kwh__kip, .kwh .kwh__mark{ width:50px; height:50px; }
}
/* a phone: the wallets stack in the pill, a long name takes two lines */
@media (max-width:520px){
  .kwh{ min-height:60px; column-gap:6px; padding-left:max(8px, env(safe-area-inset-left, 0px)); padding-right:max(8px, env(safe-area-inset-right, 0px)); }
  .kwh__home{ font-size:15px; padding:0 12px 0 5px; gap:5px; }
  .kwh__house{ width:32px; height:32px; }
  .kwh__title{ gap:5px; }
  .kwh__kip, .kwh .kwh__mark{ width:38px; height:38px; }
  .kwh .kwh__name{ font-size:15px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
  .kwh__lv{ font-size:12px; gap:4px; }
  .kwh__gotdword{ display:none; }
  .kwh__gotd{ padding:0 3px; font-size:11px; }
  .kwh__wallets{ flex-direction:column; align-items:flex-start; justify-content:center; gap:0; padding:2px 10px; border-radius:16px; }
  .kwh__wal{ font-size:13px; line-height:1.2; }
  .kwh__dot{ display:none; }
  .kwh__pause{ padding:0 12px 0 5px; font-size:15px; gap:5px; }
  .kwh__pausedisc{ width:32px; height:32px; }
  .kwh__link{ padding:0 12px; font-size:14px; }
}
/* very narrow (320 px): the words still fit */
@media (max-width:359px){
  .kwh__homeword, .kwh__pauseword{ font-size:14px; }
  .kwh__home{ padding-right:10px; }
  .kwh__kip, .kwh .kwh__mark{ width:32px; height:32px; }
}
/* a phone on its side: slimmer, so the play area keeps its height */
@media (max-height:500px){
  .kwh{ min-height:52px; padding-top:calc(3px + env(safe-area-inset-top, 0px)); padding-bottom:3px; margin-bottom:6px; }
  .kwh__home, .kwh__pause{ min-height:44px; }
  .kwh__house, .kwh__pausedisc{ width:30px; height:30px; }
  .kwh__kip, .kwh .kwh__mark{ width:38px; height:38px; }
  .kwh .kwh__name{ font-size:17px; }
  .kwh__lv{ font-size:12px; }
}
/* the grown-ups' page: the same bar, calm (BRAND.md, two tones) */
.kwh--calm{ box-shadow:none; border-bottom-width:3px; }
.kwh--calm .kwh__home{ box-shadow:none; }
.kwh--calm .kwh__home:active{ transform:none; }
/* END SHARED HEADER */
.kwh--calm{ position:relative; }
.pr-top{ margin:0 0 8px; text-align:center; }
.pr-top .pr-tagline{ margin:0; font-size:15px; }
.pr-tabs{
  position:sticky; top:0; z-index:5; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:4px;
  margin:0 -16px 10px; padding:6px 16px; background:rgba(251,247,240,.94);
  -webkit-backdrop-filter:saturate(1.4) blur(10px); backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid rgba(223,230,245,.9);
}
.pr-tabs button{
  font:700 15px/1.1 var(--pr-body); color:var(--pr-ink); min-height:44px; padding:10px 6px; cursor:pointer;
  background:#fff; border:1.5px solid var(--pr-line); border-radius:999px; white-space:nowrap;
}
.pr-tabs button:hover{ border-color:var(--pr-accent); }
.pr-tabs button[aria-selected="true"]{ background:var(--pr-ink); border-color:var(--pr-ink); color:#fff; }
.pr-panel{ scroll-margin-top:72px; }
.pr-panel[hidden]{ display:none; }
.pr-foot{ margin:14px 0 0; }
.pr-account{ margin:22px 0 0; }

/* the child switcher: portraits, one row, scrolls inside itself */
.kidpick{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 -16px 10px; padding:2px 16px 4px; }
.kidpick::-webkit-scrollbar{ display:none; }
.kidpick__b{
  flex:none; display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:4px 16px 4px 4px; cursor:pointer;
  font:700 15px/1 var(--pr-body); color:var(--pr-ink); background:#fff; border:1.5px solid var(--pr-line); border-radius:999px;
}
.kidpick__b .kc__avatar{ width:38px; height:38px; font-size:18px; border-width:2px; box-shadow:none; }
.kidpick__b[aria-selected="true"]{ border-color:var(--pr-ink); box-shadow:inset 0 0 0 1px var(--pr-ink); background:#F4F7FD; }

/* ---------------- the report card (WO-068) ---------------- */
.rc{
  background:var(--pr-panel); border:1px solid var(--pr-line); border-radius:24px; box-shadow:var(--pr-shadow);
  margin:0 0 18px; padding:14px 16px 6px; scroll-margin-top:72px;
}
.rc[hidden]{ display:none; }
.rc__head{ display:flex; align-items:center; gap:12px; }
.rc__head .kc__avatar{ width:52px; height:52px; font-size:24px; border-width:3px; }
.rc__name{ font-size:24px; line-height:1.05; margin:0; font-weight:800; }
.rc__where{ margin:2px 0 0; color:var(--pr-dim); font-size:13px; }
.rc__stats{ list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.rc__stats li{ background:var(--pr-cream); border:1px solid var(--pr-cream-edge); border-radius:14px; padding:8px 6px; text-align:center; }
.rc__stats b{ display:block; font:800 24px/1 var(--pr-head); }
.rc__stats b small{ font-size:14px; color:var(--pr-dim); font-weight:700; }
.rc__stats span{ display:block; font-size:12px; line-height:1.2; color:var(--pr-dim); margin-top:3px; }
.rc__line{ font:700 15px/1.35 var(--pr-head); margin:8px 0 0; color:var(--pr-ink); }
.rc__sec{ padding:10px 0 4px; border-top:1px solid var(--pr-line); margin-top:10px; }
.rc__h{ font:800 17px/1.25 var(--pr-head); margin:0 0 6px; display:flex; align-items:center; gap:8px; }
.rc__list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.rc__list li{ display:flex; align-items:flex-start; gap:10px; }
.rc__list li .dsk__dot{ margin-top:6px; }
.rc__list li > span{ display:flex; flex-direction:column; min-width:0; }
.rc__list b{ font-weight:650; font-size:15px; line-height:1.3; }
.rc__list small{ font-size:13px; color:var(--pr-dim); line-height:1.3; }
.rc__list--help li{ background:#FFF8EA; border:1px solid #F1DDB0; border-radius:12px; padding:8px 10px; }
.rc__why{ font-style:normal; font-weight:700; color:#7A4B00; }
.rc__empty{ color:var(--pr-dim); font-size:14px; margin:0; }
.rc__idea{ margin:0 0 8px; }
.rc__for{ margin:0 0 2px; font-size:14px; color:var(--pr-dim); }
.rc__for b{ color:var(--pr-ink); }
.rc__idea ul{ margin:0; padding-left:20px; display:grid; gap:4px; }
.rc__idea li{ font-size:15px; line-height:1.45; }
.rc__fine{ font-size:12px; color:var(--pr-dim); margin:4px 0 6px; }
/* WO-145: free families' three honest locked cards. Plain and readable:
   no blur, no fake rows, nothing greyed out to tease. */
.rc__locked{ margin:12px 0 4px; }
.rc__lockedlist{ list-style:none; margin:0 0 10px; padding:0; display:grid; gap:8px; }
.rc__lock{ padding:10px 12px; border-radius:14px; background:var(--pr-ai); border:1px solid var(--pr-ai-edge); }
.rc__locktitle{ margin:0; font:700 15px/1.3 var(--pr-head); color:var(--pr-ink); }
.rc__locksub{ margin:2px 0 0; font-size:13px; line-height:1.35; color:var(--pr-dim); }
a.plain{ display:inline-flex; align-items:center; text-decoration:none; font:600 15px/1.2 var(--pr-body); min-height:44px; padding:10px 18px;
  color:var(--pr-ink); background:#fff; border:1.5px solid #C9D4EE; border-radius:999px; }
a.plain.primary{ background:var(--pr-ink); border-color:var(--pr-ink); color:#fff; }
.rc__lockedbtn{ margin:0; }
.rc__pick .rc__pickline{ margin:0; font-size:15px; }
.rc__pick .rc__pickwhy{ margin:2px 0 0; font-size:13px; }
.rc .ainote{ margin:12px 0 4px; }
.rc__all{ margin:10px -16px 0; border-top:1px solid var(--pr-line); }
.rc__all > summary{ padding:14px 16px; }
.rc__allbody{ padding:0 0 8px; }
.kc--detail{ border:0; border-radius:0; box-shadow:none; margin:0; overflow:visible; }
.kc--detail .kc__ai{ padding-top:4px; }

/* ---------------- Settings: folded sections (WO-068) ---------------- */
.set{ background:var(--pr-panel); border:1px solid var(--pr-line); border-radius:18px; margin:0 0 10px; box-shadow:0 1px 2px rgba(30,43,99,.05); scroll-margin-top:72px; }
.set > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px; padding:12px 16px; min-height:60px; color:var(--pr-ink); }
.set > summary::-webkit-details-marker{ display:none; }
.set > summary::after{ content:'›'; margin-left:auto; font:700 24px/1 var(--pr-body); color:var(--pr-dim); transition:transform .2s; }
.set[open] > summary::after{ transform:rotate(90deg); }
.set__i{ flex:none; font-size:22px; width:32px; text-align:center; }
.set__t{ display:flex; flex-direction:column; min-width:0; }
.set__t b{ font:800 17px/1.2 var(--pr-head); }
.set__t span{ font-size:13px; font-weight:400; color:var(--pr-dim); line-height:1.3; }
.set__body{ padding:0 16px 16px; }
.set__body .card{ border:0; box-shadow:none; padding:4px 0 0; margin:0 0 14px; border-radius:0; }
.set__body .card + .card, .set__body div + .card{ border-top:1px solid var(--pr-line); padding-top:14px; }
.set__body h2{ font-size:19px; }
.data-kid{ border:1px solid var(--pr-line); border-radius:14px; margin:8px 0 0; }
.data-kid > summary{ padding:12px 14px; min-height:48px; }

/* ---------------- the Plus tab (WO-068) ---------------- */
.plus{ padding:20px; }
.plus__kicker{ margin:0; font:800 13px/1 var(--pr-body); letter-spacing:.08em; text-transform:uppercase; color:var(--pr-ai-ink); }
.plus__lead{ font-size:24px; line-height:1.2; margin:6px 0 4px; }
.plus__sub{ margin:0 0 10px; font-size:16px; line-height:1.4; color:var(--pr-dim); }
.plus__status{ margin:0 0 6px; padding:8px 12px; border-radius:12px; background:#F1F4FB; color:var(--pr-ink); font-weight:600; font-size:15px; }
.plus__status.is-plus{ background:#EAF7EF; color:#14532D; }
.plus h3{ font-size:17px; margin:16px 0 6px; }
.plus__price{ margin:18px 0 0; padding:14px 16px; border-radius:16px; background:var(--pr-cream); border:1px solid var(--pr-cream-edge); }
.plus__price p{ margin:0 0 6px; font-size:15px; }
.plus__price b{ font:800 22px/1.1 var(--pr-head); }
.plus__price button{ margin:4px 0 0; }
.plus__why{ margin:16px 0 0; }
/* WO-173: the plan choice, yearly highlighted. Whole cards are the tap target (48px+). */
.plus__plans{ margin:0 0 10px; padding:0; border:0; min-width:0; }
.plus__plans legend{ padding:0; margin:0 0 6px; font:800 16px/1.2 var(--pr-head); color:var(--pr-ink); }
.plus__planlist{ display:grid; gap:8px; }
.plus__plan{ position:relative; display:flex; gap:12px; align-items:flex-start; min-height:48px; padding:12px 14px; border-radius:14px;
  background:var(--pr-panel); border:2px solid var(--pr-line); cursor:pointer; }
.plus__plan.is-best{ border-color:var(--pr-ai-edge); }
.plus__plan.is-on{ border-color:var(--pr-ai-ink); background:var(--pr-ai); }
.plus__plan input{ flex:none; width:22px; height:22px; margin:2px 0 0; accent-color:var(--pr-ai-ink); }
.plus__plan:focus-within{ outline:3px solid var(--pr-accent); outline-offset:2px; }
.plus__planbody{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.plus__plantop{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.plus__planname{ font-weight:700; font-size:15px; }
.plus__badge{ display:inline-block; padding:2px 8px; border-radius:999px; background:var(--pr-ai-ink); color:#fff; font:700 12px/1.4 var(--pr-body); }
.plus__price .plus__planprice{ font:800 20px/1.15 var(--pr-head); color:var(--pr-ink); }
.plus__plansub{ font-size:13px; color:var(--pr-dim); }
/* WO-059: the AI OK beside Subscribe, the PIN, back from Stripe. */
.plus__ainote{ margin:6px 0 8px; font-size:14px; line-height:1.45; color:var(--pr-dim); }
.plus__pin{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:4px 0 8px; }
.plus__pin label{ font-weight:700; font-size:14px; }
.plus__pin input{ width:9em; }
.plus__welcome{ margin:0 0 8px; padding:10px 12px; border-radius:12px; background:#EAF7EF; color:#14532D; font-weight:700; font-size:15px; }
.plus__welcome[data-kind="cancelled"]{ background:#F1F4FB; color:var(--pr-ink); }
.plus__worth{ margin:6px 0 0; padding-left:20px; display:grid; gap:4px; font-size:15px; line-height:1.4; }
/* Free vs Plus (WO-145): a real table; the two tick columns stay narrow on a phone. */
.cmp{ width:100%; border-collapse:collapse; font-size:15px; }
.cmp th, .cmp td{ border-bottom:0; text-transform:none; letter-spacing:0; font-size:15px; color:var(--pr-ink); vertical-align:middle; }
.cmp thead th{ font:800 16px/1.2 var(--pr-head); text-align:center; padding:0 4px 6px; width:56px; }
.cmp thead th:last-child{ color:var(--pr-ai-ink); }
.cmp th[scope="row"]{ text-align:left; font-weight:400; padding:8px 6px 8px 0; }
.cmp__row{ display:flex; gap:10px; align-items:flex-start; }
.cmp tr + tr th[scope="row"], .cmp tr + tr td{ border-top:1px solid var(--pr-line); }
.cmp__i{ flex:none; width:24px; text-align:center; font-size:18px; line-height:1.2; }
.cmp__t{ display:flex; flex-direction:column; min-width:0; }
.cmp__t b{ font-weight:650; line-height:1.3; }
.cmp .cmp__t small{ font-size:13px; color:var(--pr-dim); line-height:1.3; }
.cmp td{ text-align:center; padding:8px 4px; font:800 18px/1 var(--pr-head); }
.cmp td.cmp__yes{ color:var(--kw-green-deep); }
.cmp td.cmp__no{ color:var(--pr-dim); }
.cmp td:last-child{ background:var(--pr-ai); }
.cmp__group th{ text-align:left; font:800 16px/1.2 var(--pr-head); padding:16px 0 4px; border-top:0 !important; }
.cmp__ai{ margin:10px 0 0; font-size:14px; color:var(--pr-ink); padding:8px 12px; border-radius:12px; background:#F1F4FB; }
.plus__why p{ margin:4px 0 0; font-size:15px; }
.plus__why h3{ margin:0; }
.plus__code{ margin:14px 0 0; }
.plus__thanks{ margin:16px 0 0; font-size:15px; }
.plus__usage{ margin-top:16px; }
.plus__usage h3{ margin:0 0 2px; }
button.plain[disabled]{ cursor:default; }

/* ---------------- the AI note: front and centre ---------------- */
.tag.ai{ background:#E9DFFC; color:var(--pr-ai-ink); font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:2px 9px; }
.ainote{
  margin:0; padding:16px 18px; border:1px solid var(--pr-ai-edge); background:var(--pr-ai); border-radius:18px;
}
.ainote__head h3, .ainote__head h4{ font-size:17px; margin:0; }
.ainote__text{ font-size:16px; line-height:1.6; margin:8px 0 6px; color:var(--pr-ink); }
.ainote .muted{ font-size:13px; }
.ainote button.plain{ background:var(--pr-ink); border-color:var(--pr-ink); color:#fff; }
.ainote button.plain:disabled{ background:#fff; color:var(--pr-ink); }

/* ---------------- one card per child ---------------- */
.kc{
  background:var(--pr-panel); border:1px solid var(--pr-line); border-radius:28px; overflow:hidden;
  box-shadow:var(--pr-shadow); margin:0 0 24px; scroll-margin-top:64px;
}
.kc__banner{ position:relative; height:112px; overflow:hidden; background:var(--pr-sky); }
.kc__banner img{ width:100%; height:100%; object-fit:cover; object-position:center 40%; display:block; }
.kc__banner::after{ content:''; position:absolute; inset:auto 0 0 0; height:56px; background:linear-gradient(rgba(255,255,255,0), #fff); }
.kc__head{ padding:0 18px 16px; position:relative; }
.kc__who{ display:flex; align-items:flex-end; gap:12px; margin-top:-30px; position:relative; }
.kc__avatar{
  flex:none; width:64px; height:64px; border-radius:50%; display:grid; place-items:center;
  background:var(--pr-sun); color:var(--pr-ink); font:800 30px/1 var(--pr-head); border:4px solid #fff;
  box-shadow:0 4px 12px rgba(30,43,99,.15);
}
/* the child's own profile picture: a portrait of their My World avatar */
.kc__avatar--portrait{ overflow:hidden; padding:0; background:#A8E4FF; }
.kc__avatar--portrait .ac-portrait{ display:block; width:100%; height:100%; border-radius:50%; }
.kc__name{ font-size:28px; line-height:1.05; margin:0; font-weight:800; }
.kc__where{ margin:2px 0 4px; color:var(--pr-dim); font-size:14px; }
.kc__headline{ font:700 21px/1.3 var(--pr-head); margin:14px 0 14px; max-width:36ch; color:var(--pr-ink); }
.kc__stats{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
.kc__stats li{ background:var(--pr-cream); border:1px solid var(--pr-cream-edge); border-radius:16px; padding:10px 8px; text-align:center; }
.kc__stats b{ display:block; font:800 26px/1 var(--pr-head); }
.kc__stats span{ display:block; font-size:12px; line-height:1.25; color:var(--pr-dim); margin-top:4px; }

.kc__ai{ display:grid; gap:12px; padding:0 18px 18px; }
.kc__try{ background:var(--pr-cream); border:1px solid var(--pr-cream-edge); border-radius:18px; padding:16px 18px; }
.kc__trytext{ font-size:16px; line-height:1.55; margin:6px 0; }
/* WO-054: the gentle guessing note, only in a week when it was frequent. */
.kc__guess{ background:var(--pr-cream); border:1px solid var(--pr-cream-edge); border-left:5px solid var(--sub-MA, #4C9BFF); border-radius:18px; padding:16px 18px; }
.kc__src{ font-size:13px; color:var(--pr-dim); margin:0; }

.kc__h{ font-size:17px; line-height:1.25; margin:0; font-weight:800; display:flex; align-items:center; gap:8px; }
.kc__h--sub{ font-size:15px; margin:18px 0 8px; color:var(--pr-dim); }
.kc__sec{ padding:18px; border-top:1px solid var(--pr-line); }
.kc__sechead{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 14px; margin-bottom:12px; }
.kc__legend{ margin:0; font-size:12px; color:var(--pr-dim); display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.lg{ display:inline-block; width:12px; height:12px; border-radius:4px; margin-left:6px; }
.lg:first-child{ margin-left:0; }
/* the legend swatches carry all four subject hues, solid and tinted */
.lg--got{ background:linear-gradient(90deg, var(--sub-RD) 0 25%, var(--sub-MA) 25% 50%, var(--sub-SC) 50% 75%, var(--sub-SS) 75%); }
.lg--grow{ background:linear-gradient(90deg, var(--sub-RD-t) 0 25%, var(--sub-MA-t) 25% 50%, var(--sub-SC-t) 50% 75%, var(--sub-SS-t) 75%); }
.lg--none{ background:var(--track); }
.kc__fine{ font-size:12px; color:var(--pr-dim); margin:12px 0 0; }
.kc__empty{ color:var(--pr-dim); font-size:14px; margin:8px 0 0; }
.kc__more{ color:var(--pr-dim); font-size:13px; margin:6px 0 0; }

/* rings */
.ring{ display:block; overflow:visible; }
.ring__track{ stroke:var(--track); }
.ring__num{ font:800 14px/1 var(--pr-head); fill:var(--pr-ink); }
.ring__sub{ font:600 5px/1 var(--pr-body); fill:var(--pr-dim); }
.ring--RD .ring__got{ stroke:var(--sub-RD); } .ring--RD .ring__grow{ stroke:var(--sub-RD-t); }
.ring--MA .ring__got{ stroke:var(--sub-MA); } .ring--MA .ring__grow{ stroke:var(--sub-MA-t); }
.ring--SC .ring__got{ stroke:var(--sub-SC); } .ring--SC .ring__grow{ stroke:var(--sub-SC-t); }
.ring--SS .ring__got{ stroke:var(--sub-SS); } .ring--SS .ring__grow{ stroke:var(--sub-SS-t); }
.ring--land .ring__got{ stroke:var(--sub-land); } .ring--land .ring__grow{ stroke:var(--sub-land-t); }
.ring circle{ stroke-linecap:butt; transition:stroke-dasharray .6s ease; }
@media (prefers-reduced-motion: reduce){ .ring circle{ transition:none; } }

.rtiles{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.rtile{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:12px; border-radius:18px; background:#FAFBFE; border:1px solid var(--pr-line); min-width:0; }
.rtile__ring{ flex:none; }
.rtile__ring .ring{ width:64px; height:64px; }
.rtile__txt{ min-width:0; display:flex; flex-direction:column; }
.rtile__txt b{ font:800 16px/1.2 var(--pr-head); }
.rtile__txt span{ font-size:13px; color:var(--pr-dim); line-height:1.3; }
.rtile__txt strong{ color:var(--pr-ink); }
.rtile--empty .rtile__txt b{ color:var(--pr-dim); }

.ltiles{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px,1fr)); gap:12px; }
.ltile{ border-radius:18px; overflow:hidden; border:1px solid var(--pr-line); background:#fff; }
.ltile.is-current{ border-color:var(--pr-sun-deep); box-shadow:0 0 0 2px var(--pr-sun) inset, var(--pr-shadow); }
.ltile__art{ aspect-ratio:16/6; overflow:hidden; background:var(--pr-sky); }
.ltile__art img{ width:100%; height:100%; object-fit:cover; display:block; }
.ltile__body{ display:flex; align-items:center; gap:12px; padding:10px 12px; }
.ltile__ring{ flex:none; }
.ltile__txt{ display:flex; flex-direction:column; min-width:0; }
.ltile__txt b{ font:800 16px/1.2 var(--pr-head); }
.ltile__txt span{ font-size:13px; color:var(--pr-dim); line-height:1.35; }

/* got it / growing */
.kc__pair{ display:grid; grid-template-columns:minmax(0,1fr); border-top:1px solid var(--pr-line); }
.kc__panel{ padding:18px; min-width:0; }
.kc__panel + .kc__panel{ border-top:1px solid var(--pr-line); }
.dsklist{ list-style:none; margin:10px 0 0; padding:0; display:grid; gap:8px; }
.dsk{ border:1px solid var(--pr-line); border-radius:14px; background:#fff; }
.dsk[open]{ border-color:#C9D4EE; background:#FAFBFE; }
.dsk summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; min-height:48px; padding:8px 10px 8px 12px; color:var(--pr-ink); font-weight:400;
}
.dsk summary::-webkit-details-marker{ display:none; }
.dsk__dot{ flex:none; width:10px; height:10px; border-radius:50%; }
.dsk__dot--RD{ background:var(--sub-RD); } .dsk__dot--MA{ background:var(--sub-MA); }
.dsk__dot--SC{ background:var(--sub-SC); } .dsk__dot--SS{ background:var(--sub-SS); }
.dsk__main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.dsk__name{ font-weight:650; font-size:15px; line-height:1.3; }
.dsk__meta{ font-size:12px; color:var(--pr-dim); }
.dsk__fill{ display:block; height:5px; border-radius:999px; background:var(--track); margin-top:5px; max-width:180px; overflow:hidden; }
.dsk__fill i{ display:block; height:100%; border-radius:999px; background:#7C8BC0; }
.dsk__more{
  flex:none; font-size:12px; font-weight:600; color:var(--pr-accent); border:1px solid #C9D4EE; border-radius:999px; padding:4px 10px; white-space:nowrap;
}
.dsk[open] .dsk__more{ background:var(--pr-ink); border-color:var(--pr-ink); color:#fff; }
.dsk__body{ padding:2px 14px 12px 32px; font-size:14px; color:var(--pr-ink); }
.dsk__body p{ margin:6px 0 0; color:var(--pr-dim); }
.dsk__codes{ display:grid; grid-template-columns:auto 1fr; gap:4px 10px; margin:4px 0 0; }
.dsk__codes dt{ color:var(--pr-dim); font-size:13px; }
.dsk__codes dd{ margin:0; }
.dsk__codes code{ font:600 13px/1.3 ui-monospace,Menlo,Consolas,monospace; background:#EEF2FB; border-radius:6px; padding:1px 6px; color:var(--pr-ink); word-break:break-all; }
.dsk__flag{ background:#FFF6E3; border:1px solid var(--pr-cream-edge); border-radius:10px; padding:8px 10px; color:#6B4E00 !important; }

/* time and consistency */
.kc__time{ display:grid; gap:12px; margin-top:10px; }
.mchart{ width:100%; max-width:420px; height:auto; display:block; }
.mchart__base{ stroke:var(--pr-line); stroke-width:1; }
.bar{ fill:#7AA7EC; }
.bar--today{ fill:var(--pr-accent); }
.bar--off{ fill:#D5DCEC; }
.bar__val{ font:700 11px/1 var(--pr-body); fill:var(--pr-ink); }
.bar__day{ font:500 11px/1 var(--pr-body); fill:var(--pr-dim); }
.bar__day.is-today{ font-weight:700; fill:var(--pr-ink); }
.kc__facts{ list-style:none; margin:0; padding:0; display:grid; gap:8px; font-size:15px; }
.kc__facts li{ line-height:1.45; }
.kc__tip{ display:block; font-size:12px; color:var(--pr-dim); }

/* the fun side */
.funs{ list-style:none; margin:10px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.funs li{ display:flex; align-items:center; gap:8px; padding:8px 14px 8px 10px; border-radius:999px; background:#F1F8EF; border:1px solid #CDE8C6; font-size:14px; }
.funs b{ font:800 17px/1 var(--pr-head); }
.funs__i{ font-size:18px; }

/* steer (focus and starting land) and the detail tables, folded */
.kc__fold{ border-top:1px solid var(--pr-line); }
.kc__fold > summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; min-height:56px; color:var(--pr-ink);
}
.kc__fold > summary::-webkit-details-marker{ display:none; }
.kc__fold > summary::after{ content:'›'; font:700 24px/1 var(--pr-body); color:var(--pr-dim); transition:transform .2s; }
.kc__fold[open] > summary::after{ transform:rotate(90deg); }
.kc__fold > summary b{ display:block; font:800 16px/1.25 var(--pr-head); }
.kc__fold > summary span{ display:block; font-size:13px; font-weight:400; color:var(--pr-dim); }
.kc__foldbody{ padding:0 18px 18px; }
.kc__foldbody .focus{ margin-top:0; border-top:none; padding-top:0; }
.kc__foldbody .focus + .focus{ margin-top:18px; padding-top:16px; border-top:1px solid var(--pr-line); }
.kc__foldbody details{ margin-top:10px; }
.focus h3{ font-size:17px; }
.focusbtn{ color:var(--pr-ink); border-radius:16px; border:1.5px solid #C9D4EE; padding:12px 14px; min-height:44px; font-family:var(--pr-body); }
.focusbtn b{ font-size:15px; }
.focusbtn span{ font-size:13px; color:var(--pr-dim); }
.focusbtn.is-on{ border-color:var(--sub-SC); background:#EFFAF3; box-shadow:inset 0 0 0 1px var(--sub-SC); }
.landpick select{ padding:11px 12px; width:100%; max-width:480px; }

/* the curriculum and other detail cards keep their tables, softened */
.curtab{ min-height:40px; font-family:var(--pr-body); font-weight:600; }
.ccell{ border-radius:10px; }

/* ---------------- wider screens ---------------- */
@media (min-width:700px){
  .wrap{ padding-top:24px; }
  h1, .pr-top h1{ font-size:36px; }
  .pr-tabs{ margin:0 0 18px; top:10px; border-radius:999px; border:1px solid var(--pr-line); padding:6px; width:max-content; max-width:100%;
    grid-template-columns:repeat(3, auto); background:rgba(255,255,255,.96); box-shadow:0 6px 20px rgba(30,43,99,.12); }
  .pr-tabs button{ border-color:transparent; padding:10px 22px; }
  .kidpick{ margin:0 0 14px; padding:2px 0 4px; flex-wrap:wrap; }
  .rc{ padding:22px 26px 8px; }
  .rc__head .kc__avatar{ width:64px; height:64px; }
  .rc__name{ font-size:30px; }
  .rc__stats{ max-width:520px; }
  .rc__line{ font-size:19px; }
  .rc__all{ margin:10px -26px 0; }
  .rc__all > summary{ padding:16px 26px; }
  .plus{ padding:28px 32px; }
  .plus__lead{ font-size:30px; max-width:24ch; }
  .plus__compare{ max-width:640px; }
  .kc__banner{ height:170px; }
  .kc__head, .kc__ai, .kc__sec, .kc__panel, .kc__fold > summary, .kc__foldbody{ padding-left:26px; padding-right:26px; }
  .kc__who{ margin-top:-36px; }
  .kc__avatar{ width:76px; height:76px; font-size:36px; }
  .kc__name{ font-size:34px; }
  .kc__headline{ font-size:25px; }
  .kc__stats{ max-width:620px; }
  .kc__ai{ grid-template-columns:minmax(0,3fr) minmax(0,2fr); align-items:start; }
  .rtiles{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .rtile{ flex-direction:row; align-items:center; gap:10px; padding:10px; }
  .kc__pair{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .kc__panel + .kc__panel{ border-top:none; border-left:1px solid var(--pr-line); }
  .kc__time{ grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:center; }
}
@media (max-width:359px){
  .kc__stats{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .rtiles{ grid-template-columns:minmax(0,1fr); }
}

@media print{
  .pr-tabs, .kidpick, .kc__fold, .set, .rc__locked{ display:none !important; }
  .rc[hidden]{ display:block !important; }
  .kc{ box-shadow:none; break-inside:avoid; }
  body{ background:#fff; }
}

@media print{ .kwh{ display:none; } }
