/* Study Compass refresh, the app's part (split from refresh.css, audit 29 Nov 2026, F-40 and roadmap 4.9).
   Loaded straight after refresh.css by app.html, start.html, signin.html and buy.html; public pages don't load it.
   Same rules, same order as before the split: Today, topics, grown-ups, selective, writing, reports. */

/* Today week strip and the grown-ups week */
.week .blk.done,.week .blk.today.done{background:var(--navy);color:#fff}
.week .blk.part{background:var(--maths-soft);color:var(--navy)}
.ov-day.done{background:var(--navy);color:#fff}
.ov-day.done *{color:#fff}
.ov-day.missed{background:var(--panel)}
.ov-day.missed .sub,.ov-day.missed small{color:#8A5A00}

/* grown-ups: "Do you need to do anything?" and other status panels are calm tiles; colour stays on the small icon */
.todo.some,.todo.none{background:var(--panel)}
.todo.some .ic,.todo.some > svg{color:#8A5A00}
.res-g.start{background:var(--panel)}
.ldone{background:var(--panel)}
.st.revisiting{background:var(--attention-fill)}

/* app header: keep everything on one row (save status keeps its dot; the words stay for screen readers) */
.learner:not([hidden]) ~ .save-dot #saveTxt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (min-width:1181px){.bar-in{flex-wrap:nowrap}.topnav button{padding-inline:12px}}
/* child screens: 48px tap targets in the header and tabs (design skill; UX audit 16 Nov 2026). The grown-ups area (body.parent-on) keeps its 40 to 44px. */
body.app-ui:not(.parent-on) .bar .brand{min-height:48px;min-width:48px;justify-content:center}
body.app-ui:not(.parent-on) .learner .learner-btn{min-height:48px}
body.app-ui:not(.parent-on) .bar .bell-btn{width:48px;height:48px}
body.app-ui:not(.parent-on) :is(.topnav button,.bar .chip-btn){min-height:48px}
body.app-ui:not(.parent-on) #app :is(.back,.rwt-chip,.ftag,.wg-cta,.tabs button,.linkish:not(p .linkish, li .linkish)){min-height:48px}
/* phones: the header stays one row (logo tile, stars and coins, account menu, save dot, bell). The wordmark goes (the logo keeps its
   label) and gaps tighten. Below 420px the account menu shows the child's initial, not a cut-off name (the button's label keeps it). */
@media (max-width:480px){
  body.app-ui .bar-in{flex-wrap:nowrap;column-gap:8px;padding-inline:12px}
  body.app-ui .bar .wordmark{display:none}
  body.app-ui .bar .spacer{margin-inline:-4px}
  body.app-ui .bar #learner{min-width:0;flex:0 1 auto}
  body.app-ui .bar .learner-btn{min-width:0;max-width:100%;padding-inline:4px 8px}
  body.app-ui .bar .learner-btn .nm{min-width:0;overflow:hidden}
  body.app-ui .bar .learner-btn .nm :is(b,span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* a grown-up looking at the child's plan also has the Grown-ups button: too much for one row, so that header may wrap */
  body.app-ui:not(.parent-on) .bar-in:has(#grownups){flex-wrap:wrap}
}
@media (max-width:420px){ body.app-ui .bar .learner-btn .nm{display:none} }
@media (max-width:380px){ body.app-ui .bar-in{column-gap:6px} }

/* Tests page: the weekly-test icon must not stretch with the card */
.task .ico.test{margin:0;min-height:0;height:48px;border:0;box-shadow:none;overflow:visible;flex-direction:row;border-radius:14px}

/* grown-ups heading: tabular digits on .qtop were widening the hyphen in "Grown-ups" */
.qtop .eyebrow,.qtop h1{font-variant-numeric:normal}
/* Today: a timed test in progress uses .hero-task.test, which also picked up the full-height test-screen rules */
.hero-task.test{min-height:0;flex-direction:row;border:0;box-shadow:none}

/* grown-ups Overview (7 Oct): one column, a compact week, and "For you to do" as a plain card with a coloured edge */
.ov-cols{grid-template-columns:1fr;gap:28px}
.ov-cols h2{font-size:var(--fs-xl)!important}
.ov-week{gap:6px;margin-top:10px}
.ov-day{min-height:0;padding:8px 10px;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 6px;border-radius:12px}
.ov-day > span:first-child{font-size:var(--fs-meta)}
.ov-day b{font-family:var(--body);font-size:var(--fs-body)}
.ov-day > span:last-child{width:100%;font-size:var(--fs-meta)}
.todo.some,.todo.none{display:block;background:var(--surface);border:1px solid var(--line);border-left:5px solid #C98A00;border-radius:16px;padding:14px 20px;margin:0 0 22px}
.todo.none{border-left-color:var(--good)}
.todo h2{font-size:var(--fs-label);font-weight:var(--fw-semibold);color:var(--ink-2);margin:0 0 4px}
.todo ul{list-style:none;padding:0;margin:0;gap:6px}
.att,.doing{border-radius:16px}
/* home page parent-view example: the to-do card matches the grown-ups Overview */
.dcard.todo-ex{border-left:5px solid var(--good-ink);border-radius:16px}   /* the example says "Nothing right now", which is the green state */
.dcard.todo-ex h3{font-size:var(--fs-label);font-weight:var(--fw-semibold);color:var(--ink-2)}

/* lessons stay locked until the starting check is done (7 Oct) */
.lock-banner{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-left:5px solid #C98A00;border-radius:16px;padding:16px 20px;margin:4px 0 18px}
.lock-banner h3{margin:0 0 4px;font-size:var(--fs-h4)}
.lock-banner p{margin:0;color:var(--ink-2)}
.lesson-row.locked{opacity:.6;cursor:default}
.lock-note{margin:0;padding:10px 14px;border-radius:12px;background:var(--surface);font-weight:var(--fw-semibold)}

/* Selective Entry Preparation preview: sections fold open to show every planned lesson (7 Oct) */
.sel-sec{padding:0;overflow:hidden;scroll-margin-top:90px}
.sel-sec > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;cursor:pointer;list-style:none}
.sel-sec > summary::-webkit-details-marker{display:none}
.sel-sec > summary > span:not(.st){display:flex;flex-direction:column;gap:2px}
.sel-sec > summary b{font-size:var(--fs-h4)}
.sel-sec[open] > summary{border-bottom:1px solid var(--line)}
.sel-sec h4{margin:16px 20px 4px;font-size:var(--fs-label);color:var(--ink-2)}
.sel-list{display:flex;flex-direction:column}
.sel-sec .sel-list{padding:0 20px 12px}
.sel-row{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}
.sel-row:last-child{border-bottom:0}
.sel-row > span:not(.sel-n):not(.st){flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.sel-row .sel-n{flex:none;min-width:40px;font-weight:var(--fw-semibold);color:var(--ink-2);font-variant-numeric:tabular-nums}
.sel-row.locked b{color:var(--ink-2)}
.sel-row .sel-m{align-self:flex-start;margin-top:4px;font-size:var(--fs-xs,12px);font-weight:var(--fw-semibold);color:var(--teal-ink,var(--ink-2));background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:1px 8px}
.sel-plan h4{margin:18px 0 4px;font-size:var(--fs-label);color:var(--ink-2)}
.sel-sugg{margin:8px 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:var(--fs-read)}
.sel-sec > summary .st,.sel-row .st{flex:none;white-space:nowrap}
/* App and setup heading sizes (8 Oct 2026): page titles were the marketing size (44px), too loud for an app screen.
   Page title 26 to 32px; a section headline stays below it on every screen (22 to 26px). */
#app h1,.wiz h1{font-size:clamp(28px,1vw + 20px,32px);line-height:1.15}
#app .hero-task h2{font-size:clamp(22px,.6vw + 18px,26px)}
#app .ov-title{font-size:clamp(22px,.8vw + 16px,26px)}
/* curriculum topic descriptions are content, not captions: 14px rather than 13px */
.cur-skill .sub{font-size:var(--fs-label)}
/* selective diagnostic: reading texts inside the timed test and its review */
.tt-passage{position:static;max-height:46vh;margin-bottom:14px}
@media (max-width:860px){.tt-passage{max-height:none}}
.tt-passage.poem p{font-style:normal;line-height:1.6}
.tt-rev-passage{margin:6px 0 4px}
.tt-rev-passage > summary{cursor:pointer;font-weight:var(--fw-semibold);color:var(--primary);min-height:40px;display:flex;align-items:center}
.tt-rev-passage .passage{max-height:none;margin-top:8px}
.sel-row .btn{flex:none}
.sel-note{margin:0 20px 4px;font-size:var(--fs-sm)}
.sel-act{display:flex;align-items:center;gap:10px;flex:none;flex-wrap:wrap;justify-content:flex-end}
.slide.dark h2{color:#fff}
/* selective diagnostic mock: the timed break between blocks, and block 3's two writing tasks */
.sel-break{background:var(--ink);color:#fff;border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:10px}
.sel-break h2{color:#fff;margin:0}
.sel-break .tag{align-self:flex-start;background:rgba(255,255,255,.16);color:#fff}
.sel-break p{margin:0;max-width:60ch;font-size:var(--fs-read)}
.sel-break .sel-bclock{font-family:"Plus Jakarta Sans",sans-serif;font-weight:800;font-size:clamp(48px,6vw,72px);letter-spacing:-1px;line-height:1;font-variant-numeric:tabular-nums}
.sel-break .btn[disabled]{background:rgba(255,255,255,.18);color:#fff;box-shadow:none;cursor:default}
.sel-break .linkish{color:#fff}
.selw-tabs{margin-bottom:12px}
.selw-prompt{margin-bottom:14px}
.selw-prompt p{margin:6px 0 0;font-size:var(--fs-read)}
.selw-label{display:block;font-weight:var(--fw-semibold);margin-bottom:6px}
.selw-text{width:100%;min-height:46vh;box-sizing:border-box;font:inherit;font-size:19px;line-height:1.8;padding:16px 18px;border:1.5px solid var(--line-strong,var(--line));border-radius:16px;background:var(--surface,#fff);color:var(--ink);resize:vertical}
.selw-text:focus{outline:3px solid var(--primary);outline-offset:2px}

/* ---------- Selective entry: My plan, All topics, Practice tests (UX brief, 12 Oct 2026) ----------
   One primary action per area, plain headings (no italic accent), state words always next to their icon. */
.sel-head h1{font-size:clamp(28px,4vw,34px)}
.sel-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:4px 0 20px;overflow-x:auto}
.sel-tabs [role=tab]{border:0;background:none;padding:12px 16px;min-height:48px;font:inherit;font-weight:var(--fw-semibold);color:var(--ink-2);border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap;cursor:pointer}
.sel-tabs [role=tab][aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}
.sel-tabs [role=tab]:focus-visible{outline:3px solid var(--primary);outline-offset:-3px;border-radius:8px}
.sel-top{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start}
.sel-next{background:#ECEFF4;border-radius:20px;padding:24px 28px;display:flex;flex-direction:column;gap:8px}
.sel-next h2{font-size:clamp(24px,3vw,30px);margin:4px 0 0}
.sel-next .sel-sub{font-size:var(--fs-read,18px);margin:0;color:var(--ink)}
.sel-next p{margin:0}
.sel-next .qactions{margin-top:12px;align-items:center;flex-wrap:wrap}
.sel-k{display:flex;justify-content:space-between;gap:12px;font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--ink-2);letter-spacing:.02em}
.sel-wh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.sel-wh h2{font-size:var(--fs-xl);margin:0}
.sel-week{padding:22px 24px}
.sel-bar{display:block;height:8px;border-radius:99px;background:var(--panel);overflow:hidden}
.sel-bar > span{display:block;height:100%;background:var(--ink);border-radius:99px}
.sel-days{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column}
.sel-days li{display:grid;grid-template-columns:3.5em 4.5em 1fr;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:var(--fs-sm)}
.sel-days li:last-child{border-bottom:0}
.sel-days li.today{font-weight:var(--fw-semibold)}
.sel-days li .w{text-align:right;color:var(--ink-2);display:flex;gap:4px;justify-content:flex-end;align-items:center}
.sel-days li.ok .w{color:var(--good-ink)}
.sel-fine{font-size:var(--fs-meta,13px);margin:10px 0 0}
.sel-areas{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.sel-area{display:flex;flex-direction:column;gap:6px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;font:inherit;color:var(--ink);cursor:pointer;min-height:48px}
.sel-area:hover{border-color:var(--line-strong)}
.sel-area .n{font-size:26px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.sel-area .n.soon{color:var(--ink-3)}
.sel-area .muted{font-size:var(--fs-meta,13px)}
.sel-na{font-size:var(--fs-meta,13px);color:var(--ink-2);border-top:1px solid var(--line);padding-top:6px;margin-top:2px}
.sel-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#ECEFF4;border-radius:16px;padding:14px 20px}
.sel-strip > span{display:flex;flex-direction:column;gap:2px}
.sx{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.sx-list{display:flex;flex-direction:column;gap:4px;position:sticky;top:84px}
.sx-list button{display:flex;flex-direction:column;gap:2px;text-align:left;border:1px solid transparent;background:none;border-radius:14px;padding:12px 16px;font:inherit;color:var(--ink);cursor:pointer;min-height:48px}
.sx-list button b{font-weight:var(--fw-semibold)}
.sx-list button .muted{font-size:var(--fs-meta,13px)}
.sx-list button[aria-current=true]{background:var(--surface);border-color:var(--line-strong)}
.sx-list button[aria-current=true] b{font-weight:800}
.sx-detail h2{font-size:clamp(24px,3vw,30px);margin:0}
.sx-detail > p{margin:0 0 14px}
.sel-grp{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:12px;overflow:hidden}
.sel-grp > summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none;min-height:48px}
.sel-grp > summary::-webkit-details-marker{display:none}
.sel-grp > summary b{font-size:var(--fs-h4)}
.sel-grp > summary .muted{font-size:var(--fs-sm);text-align:right;margin-left:auto}
.sel-grp > summary::after{content:"";flex:none;width:9px;height:9px;border-right:2px solid var(--ink-2);border-bottom:2px solid var(--ink-2);transform:rotate(45deg);margin:-4px 4px 0 4px}
.sel-grp[open] > summary::after{transform:rotate(-135deg);margin-top:4px}
.sel-grp[open] > summary{border-bottom:1px solid var(--line)}
.sel-grp .sel-list{padding:0 20px 6px}
.sel-grp.extra{background:transparent;border-style:dashed}
.sel-xh{font-size:var(--fs-h4);margin:20px 0 4px}
.sx-detail > .sel-note{margin:0 0 12px}
.sel-row.soon b{color:var(--ink-2);font-weight:var(--fw-semibold)}
.sel-row.soon{padding:8px 0}
.sel-meta{font-size:var(--fs-meta,13px);color:var(--ink-2);font-weight:var(--fw-semibold)}
.sel-about{padding:0}
.sel-about > summary{padding:16px 20px;cursor:pointer;min-height:48px}
.sel-about > p,.sel-about > .sel-list{padding:0 20px;margin:0 0 12px}
.sel-pre{padding:24px 28px;display:flex;flex-direction:column;gap:10px}
.sel-pre h2{font-size:var(--fs-xl);margin:0}
.sel-pre h3{font-size:var(--fs-h4);margin:10px 0 0}
.sel-pre p{margin:0}
.sel-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0}
.sel-facts div{background:var(--panel);border-radius:12px;padding:12px 14px}
.sel-facts dt{font-size:var(--fs-meta,13px);font-weight:var(--fw-semibold);color:var(--ink-2)}
.sel-facts dd{margin:2px 0 0;font-size:var(--fs-sm)}
.sel-rules{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
@media (max-width:900px){.sel-top{grid-template-columns:1fr}.sel-areas{grid-template-columns:repeat(2,minmax(0,1fr))}.sel-areas .sel-area:last-child{grid-column:1/-1}}
@media (max-width:760px){.sx{grid-template-columns:1fr}.sx-list{position:static}.sx-list button{border-color:var(--line);background:var(--surface)}.sel-facts{grid-template-columns:1fr}.sel-next{padding:20px}.sel-next .qactions .btn{width:100%}.sel-strip{flex-direction:column;align-items:stretch}}
@media (prefers-reduced-motion:reduce){.sel-grp > summary::after{transition:none}}

/* ---------- Grown-ups: grouped sections and the getting-started overview (UX brief, 12 Oct 2026) ---------- */
.gu-nav button[aria-current="page"]{background:#fff;color:var(--ink);font-weight:800}
.gu-sub{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px}
.gu-sub button{border:1px solid var(--line);background:var(--surface);color:var(--ink-2);border-radius:999px;padding:8px 16px;min-height:44px;font:inherit;font-weight:var(--fw-semibold);cursor:pointer}
.gu-sub button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.gs{display:flex;flex-direction:column;gap:20px}
.gs-next{background:#ECEFF4;border-radius:20px;padding:24px 28px;display:flex;flex-direction:column;gap:8px}
.gs-next h2{font-size:clamp(24px,3vw,30px);margin:0}
.gs-next p{margin:0}
.gs-time{font-weight:800;font-size:var(--fs-h4)}
.gs-more summary{cursor:pointer;font-weight:var(--fw-semibold);padding:10px 0;text-decoration:underline;text-underline-offset:3px}
.gs-more .sel-list{margin:6px 0 12px}
.gs-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.gs-cols h3{margin:0}
.gs-big{font-size:36px;font-weight:800;line-height:1.1;margin:4px 0 0}
.gs-list{margin:0}
.gs-list dt{font-weight:800;margin-top:10px}
.gs-list dd{margin:2px 0 0;color:var(--ink-2)}
.gs-na{margin:0;font-size:var(--fs-h4)}
@media (max-width:760px){.gs-cols{grid-template-columns:1fr}.gs-next{padding:20px}}

/* ---------- Typography for the student and parent views (UX brief section 10, 12 Oct 2026) ----------
   Sizes live in css/type-scale.css (brief sections 26 to 30).
   No italic serif words in functional headings: .acc keeps its place in the markup but reads as plain Inter.
   The public home page (index.html) keeps its own marketing styles. */
body.app-ui .acc{font-family:inherit;font-weight:inherit;letter-spacing:inherit;font-feature-settings:inherit}   /* genuine Inter italic for emphasis in learning text */
body.app-ui :is(h1,h2,h3,h4,.qtop,.topic-head,.ov-title) .acc{font-style:normal}

/* results: each question with its options and a "See detailed working" panel (10 Oct 2026) */
.tt-rev.tw{border:1.5px solid var(--line);border-left:1.5px solid var(--line);border-radius:20px;padding:18px 20px;gap:8px}
.tt-rev.tw .tt-rev-h{align-items:center;flex-wrap:wrap}
.tw-meta{font-size:var(--fs-label);color:var(--muted);font-weight:400}
.tw-v{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;line-height:1.25rem;font-weight:500;padding:4px 10px;border-radius:10px}
.tw-v.good{background:var(--good-fill);color:var(--good-ink)} .tw-v.bad{background:var(--attention-fill);color:var(--ink)} .tw-v.none{background:var(--panel);color:var(--ink)}
.tw-q{margin:2px 0}
.tw-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0}
.tw-opt{border:1.5px solid var(--line);border-radius:12px;padding:9px 12px;display:flex;gap:10px;align-items:center;min-width:0}
.tw-opt>b{font-family:var(--display);flex:none}
.tw-opt small{margin-left:auto;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap;padding-left:6px}
.tw-opt.right{background:var(--good-fill);border-color:#7CC9A8} .tw-opt.picked{background:var(--attention-fill);border-color:#F0C64A}
.tw-work{margin-top:4px}
.tw-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.tw-toggle svg{transition:transform .18s}
.tw-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.tw-toggle .tw-hide,.tw-toggle[aria-expanded="true"] .tw-show{display:none} .tw-toggle[aria-expanded="true"] .tw-hide{display:inline}
@media (prefers-reduced-motion:reduce){.tw-toggle svg{transition:none}}
.tw-body{margin-top:12px;background:var(--panel);border-radius:16px;padding:20px 24px;font-size:1rem;line-height:1.625}
.tw-body h4{font-family:var(--display);font-size:16px;margin:16px 0 8px}
.tw-body h4:first-child{margin-top:0}
.tw-steps{margin:0;padding:0;list-style:none;counter-reset:tws}
.tw-steps li{counter-increment:tws;display:flex;gap:12px;margin:0 0 10px;align-items:flex-start}
.tw-steps li::before{content:counter(tws);flex:none;width:28px;height:28px;border-radius:9px;background:var(--primary);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:14px}
.tw-calc{font-weight:700;background:var(--surface);border-radius:8px;padding:1px 7px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.tw-why{display:flex;gap:12px;padding:9px 0;border-top:1px solid var(--line)}
.tw-why:first-of-type{border-top:0}
.tw-why>b{flex:none;width:18px}
.tw-why.mine{background:var(--surface);border:1.5px solid #F0C64A;border-radius:12px;padding:10px 12px;margin:4px 0}
.tw-body h4.tw-sub{font-size:14px;color:var(--muted);margin:14px 0 2px}
.tw-tip{display:flex;gap:12px;background:var(--surface);border-radius:14px;padding:12px 14px;margin-top:12px;align-items:flex-start}
.tw-tip .ic{flex:none;width:36px;height:36px;border-radius:10px;background:var(--sunny);color:var(--ink);display:flex;align-items:center;justify-content:center}
.tw-metaline{margin:14px 0 0;font-size:14px;color:var(--muted)}
.tw-metaline .linkish{font-size:14px}
.tc-open.linkish{display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:15px;align-self:flex-start}
.tw-body h4.tw-sub+.tw-why{border-top:0}
@media (max-width:600px){.tt-rev.tw{padding:16px}.tw-opts{grid-template-columns:1fr}.tw-body{padding:16px}}

/* the diagnostic mock report for grown-ups (10 Oct 2026, restyled 12 Oct to UX guidelines v1 section 5); prints cleanly to PDF */
.mr{max-width:820px;margin:8px auto 0;display:flex;flex-direction:column;gap:20px}
.mr-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.mr-pick{display:flex;gap:8px;align-items:center;font-weight:600}
.mr-pick select{min-height:44px;border-radius:10px;border:1.5px solid var(--line);padding:0 10px;font:inherit}
.mr-hero{background:var(--ink);color:#fff;border-radius:24px;padding:28px}
.mr-hero h1{color:#fff;margin:4px 0 8px;font-size:clamp(28px,4vw,34px)}
.mr-hero p{color:rgba(255,255,255,.88);max-width:60ch;margin:0}
.mr-hero .mr-kick{font-size:14px;color:rgba(255,255,255,.78)}
.mr-big{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.mr-big div{background:rgba(255,255,255,.12);border-radius:14px;padding:14px 16px}
.mr-big b{display:block;font-family:var(--display);font-size:1.75rem;font-weight:700;letter-spacing:-.02em;line-height:2.25rem;font-variant-numeric:tabular-nums}
.mr-big span{display:block;margin-top:4px;font-size:14px;color:rgba(255,255,255,.85)}
.mr-card{background:var(--surface);border:1.5px solid var(--line);border-radius:20px;padding:24px}
.mr-card h2{font-size:22px;margin:0 0 8px}
.mr-card .mr-h{font-size:20px;margin:0 0 8px}
.mr-card h4{font-size:15px;margin:16px 0 8px}
.mr-card p{max-width:66ch;margin:8px 0}
.mr-short{background:color-mix(in srgb,var(--ink) 7%,var(--surface));border-color:transparent}
.mr-short p{font-size:var(--fs-md,16px)}
.mr-details{font-size:14px;font-weight:600;color:var(--muted);margin:4px 0 -8px;padding-top:16px;border-top:1px solid var(--line-strong,var(--line))}
.mr-note{font-size:14px;color:var(--muted)}
.mr-arow{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(80px,1fr) auto;gap:16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.mr-arow:first-child,.mr-srow:first-child,.mr-wk:first-child{border-top:0}
.mr-arow b{display:block}
.mr-arow>span>span{font-size:14px;color:var(--muted)}
.mr-bar{display:block;height:10px;background:var(--line);border-radius:6px;overflow:hidden}
.mr-bar i{display:block;height:100%;border-radius:6px;background:var(--ink)}
.mr-tag{display:inline-flex;align-items:center;gap:5px;font-size:.875rem;line-height:1.25rem;font-weight:500;padding:4px 10px;border-radius:8px;white-space:nowrap}
.mr-tag.sec{background:var(--good-fill);color:var(--good-ink)} .mr-tag.lrn{background:var(--panel);color:var(--ink)} .mr-tag.att{background:var(--attention-fill);color:var(--ink);border:1px solid #D9A928} .mr-tag.wait{background:var(--panel);color:var(--muted)}
/* question grid: state by fill, border and mark, never colour alone */
.mr-grid{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.mr-grid span,.mr-key i{width:26px;height:26px;border-radius:6px;font-size:11px;font-weight:700;font-style:normal;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;position:relative}
.mr-grid .r,.mr-key .r{background:var(--good-ink);color:#fff}
.mr-grid .w,.mr-key .w{background:var(--attention-fill);color:var(--ink);border:2px solid #B7791F}
.mr-grid .w::after,.mr-key .w::after{content:"";position:absolute;right:2px;top:2px;width:5px;height:5px;border-radius:50%;background:#B7791F}
.mr-grid .b,.mr-key .b{background:var(--surface);border:1.5px dashed #6B7280;color:var(--muted);text-decoration:line-through}
.mr-key{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;color:var(--muted);margin:4px 0 8px}
.mr-key span{display:inline-flex;align-items:center;gap:8px}
.mr-quote{background:var(--panel);border-radius:12px;padding:12px 16px;margin-top:12px}
.mr-two{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}
.mr-srow{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--line)}
.mr-srow>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.mr-srow>b{white-space:nowrap;font-variant-numeric:tabular-nums}
.mr-area{color:var(--muted);font-size:14px}
.mr-link{font-size:14px}
.mr-link .linkish,.mr-lessons .linkish{font-size:14px;padding:0;min-height:40px;text-align:left}
.mr-soon{color:var(--muted);font-size:14px}
.mr-agenda{display:flex;flex-direction:column}
.mr-wk{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:16px;padding:12px 0;border-top:1px solid var(--line);align-items:start}
.mr-when{display:flex;flex-direction:column}
.mr-when span,.mr-mins{font-size:14px;color:var(--muted)}
.mr-wk>div{display:flex;flex-direction:column;gap:2px}
.mr-lessons{display:flex;flex-wrap:wrap;gap:4px 16px}
.mr ul{margin:4px 0;padding-left:20px} .mr li{margin:6px 0}
.mr-foot{font-size:14px;color:var(--muted);text-align:center;max-width:62ch;margin:0 auto 24px}
@media (max-width:700px){.mr-two{grid-template-columns:1fr}}
@media (max-width:600px){.mr-hero,.mr-card{padding:18px}.mr-big{grid-template-columns:1fr}.mr-arow{grid-template-columns:minmax(0,1fr) auto}.mr-arow .mr-bar{grid-column:1/-1;grid-row:2}
  .mr-wk{grid-template-columns:1fr}.mr-when{flex-direction:row;gap:8px}}
@media print{
  header,nav,#topnav,.bar,.mr-noprint,footer{display:none!important}
  body{background:#fff!important}
  @page{size:A4;margin:12mm}
  .mr{display:block;max-width:none;margin:0;zoom:.78}
  .mr>*{margin:0 0 14px}
  .mr-card,.mr-hero,.mr-wk,.mr-srow{break-inside:avoid}
  .mr-hero{background:#fff;color:var(--ink);border:2px solid var(--ink)}
  .mr-hero h1,.mr-hero p,.mr-hero .mr-kick,.mr-big span{color:var(--ink)}
  .mr-big div{background:var(--panel)}
  .mr-card[data-who]::before{content:attr(data-who);display:block;font-size:11px;color:var(--muted);margin-bottom:6px}
  .mr-grid span,.mr-key i,.mr-bar i,.mr-tag,.mr-big div,.mr-short,.mr-quote{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- Today tiles and grown-ups Progress summary by subject (17 Oct 2026) ---------- */
.subj.mocks{background:var(--panel);color:var(--ink);border-radius:var(--tile-r)}
.subj.mocks b::before{background:var(--ink)}
.subj span{line-height:1.45}
.subj-five > .subj:last-child:nth-child(odd){grid-column:1 / -1;min-height:96px}
.pp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0 6px}
.pp-tile{background:var(--panel);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.pp-tile b{font-size:var(--fs-md)} .pp-tile span:not(.muted){font-weight:700}
.pp-subj{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.pp-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.pp-head h3{margin:0;font-size:var(--fs-lg)} .pp-count{font-weight:700;color:var(--ink-2)}
.pp-meta{margin:6px 0 10px;color:var(--ink-2);max-width:70ch}
.pp-grp{margin:14px 0 6px;font-size:var(--fs-sm);color:var(--ink-2)}
.pp-list{display:flex;flex-direction:column;gap:8px}
.pp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 16px;min-height:52px;background:var(--surface);border:1.5px solid var(--line);border-radius:14px}
.pp-row > span:first-child{display:flex;flex-direction:column} .pp-row .code{font-size:var(--fs-label);color:var(--ink-2)}
body.app-ui .pp-row .st{white-space:nowrap}

/* ---------- app fixes (Deb, 21 Oct 2026): Today fits the time set, one catalogue per year, one main action on topic pages,
   statuses instead of "Locked", linear progress, placeholder loading, phone bottom bar, honest parent area ---------- */
.too-long{margin:0;background:var(--sun-soft);border-radius:14px;padding:14px 16px;font-size:var(--fs-sm);line-height:1.5}
.too-long .linkish{font-weight:var(--fw-semibold);text-decoration:underline;padding:0}
.lin-prog{display:flex;align-items:center;gap:12px;max-width:560px;margin-top:6px}
.lin-prog .track{flex:1;height:8px;border-radius:999px;background:var(--panel);overflow:hidden;min-width:60px}
.lin-prog .track i{display:block;height:100%;background:var(--ink);border-radius:999px}
.lin-prog b{font-size:var(--fs-sm);white-space:nowrap}
.lin-prog b:empty{display:none}
.subject .lin-prog{margin-top:10px}
.st.upnext{display:inline-flex;align-items:center;gap:4px;background:var(--ink);color:#fff;border-radius:999px;padding:3px 10px;font-size:var(--fs-label);font-weight:var(--fw-semibold);white-space:nowrap}
.subject .foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.subject .foot .meta{font-size:var(--fs-sm)}
.subject.is-next,.lesson-row.is-next{outline:2px solid var(--ink);outline-offset:-2px}
.filter-tags{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}
.ftag{border:0;background:var(--panel);color:var(--ink);border-radius:999px;padding:8px 14px;min-height:40px;font:inherit;font-size:var(--fs-sm);font-weight:var(--fw-semibold);cursor:pointer}
.ftag[aria-pressed="true"],.ftag[aria-selected="true"]{background:var(--ink);color:#fff}
.cat-sec[hidden]{display:none}
.explore-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;background:var(--panel);border-radius:20px;padding:20px 24px;margin-top:24px}
.explore-card h3{margin:0 0 4px}.explore-card p{margin:0;color:var(--ink-2)}
.explore-card .linkish{font-weight:var(--fw-semibold);text-decoration:underline}
.rd-link{margin:0 0 20px}
.continue-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;background:var(--panel);border-radius:24px;padding:24px 28px}
.continue-card h2{margin:10px 0 6px;font-size:var(--fs-2xl)}.continue-card p{margin:0}
.lesson-row .num.next{background:var(--ink);color:#fff}
/* Practise and check (29 Oct 2026, Deb): Topic quiz, Quick practice and Question bank side by side, equal weight, each on its own soft
   tint with dark text and the same white button. The bank's full level ladder opens under the three ("See all levels"). */
.two.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.two.three{grid-template-columns:1fr}}
.pt-quiz,.pt-practice,.bank-card{border-color:transparent;color:var(--ink)}
.pt-quiz{background:var(--maths-soft)}
.pt-practice{background:var(--attention-fill)}
.bank-card{background:var(--good-fill)}
.pt-quiz .muted,.pt-practice .muted,.bank-card .muted{color:var(--ink-2,var(--muted))}
.bank-card .lin-prog .track{background:var(--surface)}
.bank-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.bank-acts .linkish{font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:12px 0;min-height:48px;cursor:pointer}
#bankLevels{margin-top:4px}
.skel-page{display:flex;flex-direction:column;gap:14px;padding-top:12px}
.skel{background:var(--panel);border-radius:14px;animation:skel 1.4s ease-in-out infinite}
.skel-h{height:34px;width:min(420px,70%)}.skel-line{height:16px;width:min(320px,55%)}.skel-hero{height:200px;border-radius:24px}
.skel-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.skel-card{height:120px;border-radius:20px}
@keyframes skel{50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}}
/* grown-ups */
.na-card{background:var(--panel);border-radius:24px;padding:24px 28px}
.na-card h2{margin:12px 0 6px;font-size:var(--fs-2xl)}.na-card p{margin:0 0 6px}
.na-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.na-cols h4{margin:0 0 6px}.na-cols p{margin:0}
.na-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;color:var(--ink-2)}
.hc-more>summary{cursor:pointer;color:var(--ink-2);list-style:none;min-height:40px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hc-more>summary::-webkit-details-marker{display:none}
.hc-more>summary .linkish{font-weight:var(--fw-semibold);text-decoration:underline}
.focus-box>summary,.goal-box>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;min-height:40px}
.focus-box>summary h3,.goal-box>summary h3{display:inline;margin:0}
.tag-picks{display:flex;flex-wrap:wrap;gap:8px}
.tag-pick{position:relative;display:inline-flex}
.tag-pick input{position:absolute;opacity:0;width:1px;height:1px}
.tag-pick span{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border-radius:999px;background:var(--panel);font-size:var(--fs-sm);font-weight:var(--fw-semibold);cursor:pointer}
.tag-pick input:checked+span{background:var(--ink);color:#fff}
.tag-pick input:checked+span::before{content:"✓ "}
.tag-pick input:focus-visible+span{outline:3px solid var(--maths, #1D5BD8);outline-offset:2px}
.gu-menu{display:none}
/* the main nav: words on desktop, a five-item bottom bar with icons on phones (Material 3 navigation bar) */
.topnav .ni{display:none}
@media (max-width:760px){
  body.app-ui #topnav{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-menu);order:initial;width:auto;display:flex;justify-content:space-around;gap:0;background:var(--surface);border-top:1px solid var(--line);border-radius:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));overflow:visible}
  body.app-ui #topnav button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;min-height:56px;font-size:var(--t-nav);line-height:var(--t-nav-lh);border-radius:14px;background:none;overflow:hidden}
  body.app-ui #topnav button[data-nav="sel"]{flex-grow:1.35}   /* the longest label ("Selective") gets a little more room when there are six */
  body.app-ui #topnav button .nl{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.app-ui #topnav button .ni{display:block;width:44px;height:28px;padding:4px 12px;border-radius:999px}
  body.app-ui #topnav button[aria-current="page"]{background:none;color:var(--ink)}
  body.app-ui #topnav button[aria-current="page"] .ni{background:var(--panel)}
  body.app-ui #topnav button[hidden]{display:none}
  body.app-ui{padding-bottom:84px}
  /* focus and toasts never sit under the 73 px bottom tab bar (audit F-38, WCAG 2.4.11) */
  html:has(body.app-ui:not(.nav-focus)){scroll-padding-bottom:calc(81px + env(safe-area-inset-bottom,0px))}
  body.app-ui:not(.nav-focus) .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  body.app-ui.nav-focus #topnav{display:none}
  body.app-ui.nav-focus{padding-bottom:0}
  .gu-menu{display:block;margin-bottom:6px}
  .gu-menu select{width:100%;min-height:48px;border:1px solid var(--line-strong);border-radius:14px;padding:0 14px;font:inherit;font-weight:var(--fw-semibold);background:var(--surface);color:var(--ink)}
  .gu .gu-nav{display:none}
  .na-cols{grid-template-columns:1fr}
  .continue-card,.na-card{padding:20px}
  .skel-row{grid-template-columns:1fr}
}
/* exam countdown (21 Oct 2026): a quiet line, not a hero */
.exam-count{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:8px 14px;border-radius:999px;background:var(--panel);font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--ink)}
.exam-count svg{width:18px;height:18px;flex:none}
/* Plan and study time (Deb, 23 Oct 2026): rarely changed settings sit in one fold with a visible open/close marker; Skip today is a quiet link */
.more-plan>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-height:40px;list-style:none}
.more-plan>summary::-webkit-details-marker{display:none}
.more-plan>summary::after{content:"Show";margin-left:auto;font-weight:var(--fw-semibold);color:var(--link);text-decoration:underline}
.more-plan[open]>summary::after{content:"Hide"}
.more-plan>summary h3{display:inline;margin:0}
.more-plan h4{margin:18px 0 6px;font-size:var(--fs-md)}
.review-item .pskip{white-space:nowrap;font-weight:var(--fw-semibold);text-decoration:underline;min-height:40px;padding:0 4px;flex:none}

/* ---------- Kids' Today (Deb, 23 Oct 2026): plan queue, progress line, folds, week strip, subject list ---------- */
.plan-top{display:flex;flex-direction:column;gap:6px;margin:0 0 18px;padding-top:24px}
.plan-top h1{margin:0}
.plan-top .sub{font-size:var(--fs-md);font-weight:var(--fw-semibold);color:var(--ink-2)}
.prog-line{display:flex;align-items:center;gap:12px;font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--ink-2)}
.prog-line .bar{flex:0 0 160px;height:8px;border-radius:99px;background:var(--panel);overflow:hidden}
.prog-line .bar i{display:block;height:100%;border-radius:99px;background:var(--navy);transition:width .3s}
.qlab{display:block;font-size:var(--fs-label);font-weight:700;color:var(--navy);margin-bottom:4px}
.hero-task .qlab{color:inherit}
.queue{display:flex;flex-direction:column;gap:14px}
.task .reason,.hero-task .reason{margin:4px 0 6px;color:var(--ink-2)}
.hero-task .reason{font-size:var(--fs-md)}
details.whyd{margin:2px 0 8px}
details.whyd summary{cursor:pointer;font-size:var(--fs-sm);font-weight:var(--fw-semibold);text-decoration:underline;list-style:none;min-height:32px;display:inline-flex;align-items:center}
details.whyd summary::-webkit-details-marker{display:none}
details.whyd p{margin:4px 0 0;font-size:var(--fs-sm)}
details.fold{background:var(--panel);border-radius:var(--tile-r);padding:6px 18px;margin-top:14px}
details.fold>summary{cursor:pointer;font-weight:700;font-size:var(--fs-h4);list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:48px}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::after{content:"Show";font-size:var(--fs-sm);font-weight:var(--fw-semibold);text-decoration:underline;color:var(--ink-2)}
details.fold[open]>summary::after{content:"Hide"}
details.fold[open]{padding-bottom:16px}
details.fold .fhint{margin:0 0 10px;color:var(--ink-2);font-size:var(--fs-sm)}
details.fold .row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--surface);border-radius:12px;padding:12px 14px;margin-top:8px}
details.fold .row .linkish{font-weight:var(--fw-semibold);text-decoration:underline;white-space:nowrap;min-height:44px}
details.fold .more-list{display:flex;flex-direction:column;gap:8px}
details.fold .more-item{background:var(--surface)}
.finish{background:var(--good-fill);border-radius:24px;padding:28px}
.finish h2{margin:0 0 6px}
.finish .qactions{margin-top:14px}
.wk-line{margin:4px 0 0;color:var(--ink-2)}
.wk2{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:10px}
.wk2 .d{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;font-weight:600;color:var(--ink-2)}
.wk2 .b{width:100%;aspect-ratio:1;border-radius:10px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:#fff}
.wk2 .b svg{width:16px;height:16px}
.wk2 .b.done{background:var(--writing-fill);border-color:transparent}
.wk2 .b.today{outline:2.5px solid var(--navy);outline-offset:1px}
.wk2 .b.rest{background:transparent;border:1.5px dashed var(--line-strong)}
.wk2 .t{color:var(--navy);font-weight:800}
.wk-key{display:flex;gap:6px 14px;flex-wrap:wrap;margin-top:10px;font-size:14px;color:var(--ink-2)}
.wk-key span{display:inline-flex;align-items:center;gap:6px}
.wk-key i{width:12px;height:12px;border-radius:4px;display:inline-block;background:var(--surface);border:1px solid var(--line)}
.wk-key i.done{background:var(--writing-fill);border-color:transparent}
.wk-key i.rest{background:transparent;border:1.5px dashed var(--line-strong)}
.subj-list{display:flex;flex-direction:column;gap:8px}
.subj-list button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:0;border-radius:14px;padding:12px 14px;min-height:56px;cursor:pointer;font:inherit;color:inherit}
.subj-list button:hover{background:var(--panel-2)}
.subj-list .band{width:6px;align-self:stretch;border-radius:3px;background:var(--navy)}
.subj-list .band.maths{background:var(--maths-fill)}.subj-list .band.language{background:var(--reading-fill)}.subj-list .band.writing{background:var(--writing-fill)}
.subj-list b{display:block}
.subj-list small{color:var(--ink-2);font-size:var(--fs-sm)}
.subj-list .chev{margin-left:auto;color:var(--ink-2)}

/* ---------- Kids' Maths and English pages (Deb, 23 Oct 2026): next lesson card, explore heading, English tabs ---------- */
.next-card{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--panel);border-radius:var(--tile-r);padding:22px 26px;margin:6px 0 18px;flex-wrap:wrap}
.next-card .band{display:block;width:28px;height:4px;border-radius:2px;margin-bottom:10px;background:var(--navy)}
.next-card .band.maths{background:var(--maths-fill)}.next-card .band.language{background:var(--reading-fill)}
.next-card h2{margin:0;font-size:var(--fs-xl)}
.next-card p{margin:4px 0 0;color:var(--ink-2)}
.sec-title{font-size:var(--fs-xl);margin:22px 0 10px}
.sec-sub{font-size:var(--fs-lg, 1.125rem);margin:18px 0 8px;color:var(--ink-2, inherit)}   /* a subject inside a section, e.g. the PAT-style pack (3 Nov 2026) */
.tabs4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:6px 0 16px}
.tabs4 .ftag{justify-content:center;text-align:center;min-height:44px}
.done-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 6px;color:var(--ink-2);font-weight:var(--fw-semibold)}
.done-line .tk{width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center}
.done-line .tk svg{width:14px;height:14px}
.done-line .linkish{text-decoration:underline;font-weight:var(--fw-semibold)}
.card .foot .pills{display:inline-flex;gap:6px;flex-wrap:wrap}
@media (max-width:48rem){.tabs4{grid-template-columns:1fr 1fr}}

/* ---------- Practice tests page (Deb, 23 Oct 2026) ---------- */
.t-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.t-card{display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--panel);border-radius:var(--tile-r);padding:18px 20px;flex-wrap:wrap}
.t-card h3{margin:0}
.t-card p{margin:2px 0 8px;color:var(--ink-2)}
.t-card .linkish{text-decoration:underline;font-weight:var(--fw-semibold)}
.unlock{display:flex;align-items:center;gap:10px;font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--ink-2)}
.unlock .bar{width:120px;height:8px;background:var(--surface);border-radius:99px;overflow:hidden}
.unlock .bar i{display:block;height:100%;background:var(--navy);border-radius:99px}
@media (max-width:48rem){.t-grid{grid-template-columns:1fr}}

/* ---------- Parent view (Deb, 23 Oct 2026): solid top bar, one child selector, summary cards ---------- */
.bar{background:var(--surface)}
#app [id]{scroll-margin-top:84px}
body.parent-on .topnav, body.app-ui.parent-on #topnav, body.parent-on #learner{display:none}
.gu-top h1{margin:2px 0 4px}
.gu-child{margin:4px 0 0;font-weight:var(--fw-semibold)}
.ov-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--tile-r);padding:20px 22px;margin:0 0 14px}
.ov-card h2{font-size:var(--fs-xl);margin:0 0 6px}
.ov-card > p{margin:0 0 10px;color:var(--ink-2)}
.ov-card .big{display:block;font-family:var(--display);font-size:var(--fs-2xl);font-weight:800;color:var(--ink);margin:2px 0}
.ov-card .h{font-weight:var(--fw-semibold);color:var(--ink-2);font-size:var(--fs-sm)}
.ov-card.snap{background:var(--panel);border-color:var(--panel)}
.snap-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.snap-c{display:flex;flex-direction:column;gap:2px;padding:4px 18px}
.snap-c:first-child{padding-left:0}
.snap-c + .snap-c{border-left:1px solid var(--line-strong)}
.snap-c b{font-family:var(--display);font-size:var(--fs-lg);line-height:1.25}
.snap-c .muted{font-size:var(--fs-sm)}
.focus-list,.act-list{display:flex;flex-direction:column;gap:8px}
.focus-row,.act-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;flex-wrap:wrap}
.focus-row b{flex:1 1 220px}
.focus-row .muted{flex:1 1 160px}
.act-row .t{flex:1 1 240px;display:flex;flex-direction:column}
.act-row .t .muted{font-size:var(--fs-sm)}
.act-row .m{font-weight:var(--fw-semibold);min-width:60px}
.pick-row{flex-basis:100%;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:6px}
.pick-row label{font-weight:var(--fw-semibold)}
.pick-row select,.same-row select{min-height:40px;border-radius:10px;border:1.5px solid var(--line-strong);padding:0 8px;background:var(--surface);font:inherit}
.same-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.same-row label{font-weight:var(--fw-semibold)}
.save-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.saved-note{display:flex;align-items:center;gap:8px;background:var(--good-fill);color:var(--good-ink);border-radius:10px;padding:10px 12px;font-weight:var(--fw-semibold);margin:10px 0 0}
.saved-note svg{width:16px;height:16px;flex:none}
.moved{margin-top:12px;font-size:var(--fs-sm)}
.moved p{margin:4px 0 0}
details.more-plan.est{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
details.more-plan.est summary{font-weight:var(--fw-semibold);cursor:pointer}
.wk-list{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.wk-list li{display:flex;flex-direction:column;gap:2px;background:var(--panel);border-radius:10px;padding:8px 10px;font-size:var(--fs-sm)}
.wk-list li.today{outline:2px solid var(--ink)}
.wk-list li.done b{color:var(--good-ink)}
.rw3{display:flex;flex-direction:column}
.lp-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.lp-cards .ov-card{display:flex;flex-direction:column}
.lp-fh{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.lp-fh h2{margin:0}
.lp-fh .filter-tags{margin:0}
.ov-card.mixed{background:var(--panel);border-color:var(--panel)}
.ov-card.mixed .sel-wh{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ev-table{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-top:10px}
.ev-h,.ev-row > summary{display:grid;grid-template-columns:1.2fr 1.6fr 1.2fr;gap:12px;padding:10px 14px;align-items:center}
.ev-h{background:var(--panel);font-weight:var(--fw-semibold);font-size:var(--fs-sm)}
.ev-row{border-top:1px solid var(--line)}
.ev-row > summary{cursor:pointer;list-style:none}
.ev-row > summary::-webkit-details-marker{display:none}
.ev-row > summary span{color:var(--ink-2);font-size:var(--fs-sm)}
.ev-in{padding:0 14px 12px;font-size:var(--fs-sm)}
.lp-list{display:flex;flex-direction:column;gap:6px}
.lp-row{border:1px solid var(--line);border-radius:12px}
.lp-row > summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;flex-wrap:wrap}
.lp-in{padding:0 14px 12px}
.lp-in p{margin:6px 0}
.lp-in .ev-table{margin-top:8px}
details.codes summary{cursor:pointer;font-size:var(--fs-sm);font-weight:var(--fw-semibold)}
.empty-tests .hc-more summary{display:inline-flex;list-style:none}
.empty-tests .hc-more summary::-webkit-details-marker{display:none}
@media (max-width:48rem){
  .snap-g{grid-template-columns:1fr}.snap-c{padding:8px 0}.snap-c + .snap-c{border-left:0;border-top:1px solid var(--line-strong)}
  .lp-cards{grid-template-columns:1fr}
  .wk-list{grid-template-columns:1fr 1fr}
  .ev-h{display:none}.ev-row > summary{grid-template-columns:1fr;gap:2px}
}
body.app-ui.parent-on{padding-bottom:0}

/* parent area header: Lock and go back, with a quieter Sign out beside it (29 Oct 2026) */
.gu-acts{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
.gu-acts .linkish{font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:8px 0;min-height:40px;cursor:pointer}

/* finished tests (29 Oct 2026): the tile's results button with an "All attempts" link; the details page lists each attempt */
.t-acts{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.t-acts .linkish,.nx-attempts .linkish{font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:8px 0;min-height:44px;cursor:pointer}
.nx-attempts{list-style:none;margin:0 0 8px;padding:0}
.nx-attempts li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding:6px 0;border-bottom:1px solid var(--line)}
.nx-how{margin:8px 0 4px}.nx-how>summary{cursor:pointer;font-weight:var(--fw-semibold);line-height:44px}

/* "Explain it another way" under a wrong answer (29 Oct 2026): a quiet link, the teaching assistant's answer on a soft panel */
.qx-help{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.qx-say{background:var(--maths-soft);border-radius:16px;padding:14px 18px;max-width:66ch}
.qx-say>b{display:block;margin-bottom:4px}.qx-say p{margin:0;font-size:var(--fs-read);line-height:1.55}
.qx-btn{font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:10px 0;min-height:48px;cursor:pointer;display:inline-flex;align-items:center}
/* writing studio guide and Writing Lab planner cards (UX list 14, 15) */
.wguide{display:flex;flex-direction:column;gap:12px}
/* Evaluated submissions (1 Nov 2026, Deb): marked pieces on a writing-tinted card at the top of the Write tab, like the Question bank */
.wsub-card{background:var(--writing-soft);border-color:transparent;color:var(--ink);display:flex;flex-direction:column;gap:14px;padding:22px 24px}
.wsub-card .muted{color:var(--ink-2,var(--muted))}
.wsub-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.wsub-head h2{margin:0 0 4px;font-size:var(--fs-lg)}.wsub-head p{margin:0}
.wsub-list{display:flex;flex-direction:column;gap:8px}
.wsub-row{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:center;width:100%;text-align:left;background:var(--surface);border:0;border-radius:14px;padding:12px 16px;min-height:56px;cursor:pointer;font:inherit;color:inherit}
.wsub-row:hover{box-shadow:0 0 0 2px var(--writing-fill) inset}
.wsub-t{display:flex;flex-direction:column;gap:2px}.wsub-t .muted{font-size:var(--fs-sm)}
.wsub-row .num{width:40px;height:40px}
.pill.new{background:var(--writing-fill);color:var(--writing-ink)}
.wsub-more{align-self:flex-start;font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:8px 0;min-height:44px;cursor:pointer}
@media (max-width:560px){.wsub-row{grid-template-columns:40px 1fr}.wsub-row .pill{grid-column:2;justify-self:start}}
.wguide h2{font-size:var(--fs-lg);margin:0}
.wg-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:700px){.wg-list{grid-template-columns:1fr}}
.wg{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:var(--ink);border:0;border-radius:var(--tile-r);padding:16px 20px;min-height:72px;cursor:pointer;background:var(--panel)}
.wg b{font-weight:var(--fw-semibold)} .wg span{font-size:var(--fs-sm);opacity:.85}
.wg.w{background:var(--writing-fill);color:var(--writing-ink)} .wg.s{background:var(--good-fill)} .wg.p{background:var(--maths-soft)} .wg.k{background:var(--attention-fill)} .wg.g{background:var(--panel)}
.wg:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.lab-pick{display:flex;flex-direction:column;gap:8px;border-color:transparent;padding:20px 22px;color:var(--ink)}
.lab-pick.s{background:var(--good-fill)} .lab-pick.p{background:var(--maths-soft)}
.lab-pick h3,.lab-pick p{margin:0}
.lp-type{font-size:var(--fs-sm);font-weight:var(--fw-semibold)}
.lp-steps{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0;padding:0;list-style:none;counter-reset:lp;font-size:var(--fs-sm)}
.lp-steps li{counter-increment:lp} .lp-steps li::before{content:counter(lp) ". ";font-weight:var(--fw-semibold)}
.lp-help{font-size:var(--fs-sm)} .lp-help b{font-weight:var(--fw-semibold)}
.lp-go{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:4px}
.wg{justify-content:space-between}
.wg .wg-cta{align-self:flex-start;margin-top:8px;opacity:1;font-size:var(--fs-sm);font-weight:var(--fw-semibold);background:#fff;color:var(--navy);border:1.5px solid var(--line-strong);border-radius:999px;padding:8px 16px;min-height:40px;display:inline-flex;align-items:center}
.wg.w .wg-cta{border-color:transparent}
.wg-more{font:inherit;font-weight:var(--fw-semibold);color:var(--ink);text-decoration:underline;background:none;border:0;padding:12px 0;cursor:pointer}
.wg{cursor:default}
.wg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:8px}
.wg .wg-cta{margin-top:0;font-family:inherit;cursor:pointer;min-height:44px}
.wg .wg-cta:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.wg .wg-more{font-size:var(--fs-sm);padding:12px 0;min-height:44px}
/* phone: keep Lock and Sign out on one line so the page's main button stays on screen */
@media (max-width:480px){.gu-acts{flex-wrap:nowrap;gap:12px}.gu-acts .btn{padding-inline:14px;white-space:nowrap}}
.yl-done{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:0}.yl-done .linkish{font:inherit;font-weight:var(--fw-semibold);text-decoration:underline;background:none;border:0;padding:12px 0;min-height:48px;cursor:pointer}

/* Today queue (Deb, 16 Nov 2026): the button sits on the same line as the title, so the cards waste less space */
.hero-task .txt{flex:1 1 100%;max-width:none;gap:6px}
.ht-row{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap}
.ht-copy{flex:1 1 18em;min-width:0}
.ht-copy h2,.ht-copy h3{margin:0}
.ht-copy .reason{display:block;margin:6px 0 0;max-width:60ch}   /* not the landing page's two-column .reason grid */
.ht-copy details.whyd{margin:2px 0 0}
.ht-row .btn{flex:none;margin:0;align-self:center}
.task .body{flex:1}
/* who wrote the writing feedback (Deb, 17 Nov 2026) */
.fb-by{margin:2px 0 10px;font-size:var(--fs-sm);color:var(--ink-2)}
/* weekly writing: timed or no time limit (Deb, 17 Nov 2026) */
.w-choose .page-h{margin:4px 0 8px}
.w-choose-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.w-opt{display:flex;flex-direction:column;gap:4px;text-align:left;min-height:48px;padding:16px;border:2px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.w-opt b{font-size:var(--fs-body)}
.w-opt span{color:var(--ink-2);font-size:var(--fs-sm)}
.w-opt:hover{border-color:var(--teal-bright)}
.w-opt:focus-visible{outline:3px solid var(--teal-bright);outline-offset:2px}
@media (max-width:560px){.w-choose-opts{grid-template-columns:1fr}}
/* free trial locks (Deb, 18 Nov 2026, js/features/trial-locks.js): padlocked bank levels and report printing */
.tl-lock{display:inline-block;vertical-align:-3px;margin-right:4px;flex:none}
.level-tile.tl-tile{background:var(--surface);border-style:dashed;color:var(--ink-2)}
.level-tile.tl-tile b{color:var(--ink-2)}
.tl-trial{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
@media print{
  body.tl-noprint *{display:none !important}
  body.tl-noprint::before{content:"Printing opens once the family subscribes to Study Compass.";display:block;font:16px/1.5 Arial,sans-serif;padding:24px}
}
/* save status in words, not colour alone (audit F-72, WCAG 1.4.1): the words stay for screen readers at every width (never display:none),
   and "Not saved online" shows as words beside the dot wherever the dot shows */
.save-dot #saveTxt,.learner:not([hidden]) ~ .save-dot #saveTxt{display:inline}
@media (max-width:760px){.save-dot:not(.local) #saveTxt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.save-dot.local #saveTxt,.learner:not([hidden]) ~ .save-dot.local #saveTxt{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:nowrap;font-weight:var(--fw-semibold);color:var(--ink)}
/* landscape phones (audit F-72, RAD-07): one header row that scrolls away with the page, so it never holds a third of the screen */
@media (max-height:500px) and (orientation:landscape){
  body.app-ui .bar{position:static}
  body.app-ui .bar-in{flex-wrap:nowrap;column-gap:6px;padding-block:6px}
  body.app-ui .bar .wordmark,body.app-ui .bar .spacer{display:none}
  body.app-ui .bar .learner-btn .nm{display:none}
}
@media (max-height:500px) and (orientation:landscape) and (min-width:761px){
  body.app-ui .topnav{order:initial;width:auto;min-width:0;flex:1 1 auto;overflow-x:auto}
  body.app-ui .bar .topnav button{padding-inline:7px}
}

/* journey plan batch 1 (1 Dec 2026): first-day note under the starting check, welcome back line, evidence dialog, overview hooks */
.queue .plan-after{margin:0;padding:0 4px;color:var(--ink-2);font-size:var(--fs-sm)}
.today-main .welcome-back{margin:0 0 14px;padding:12px 16px;border-radius:14px;background:var(--sun-soft);color:var(--ink)}
.gu-evdlg{width:min(560px,calc(100vw - 24px));max-height:min(86vh,760px);display:flex;flex-direction:column;overflow:hidden}
.gu-evdlg:not([open]){display:none}
.gu-evdlg .ev-dhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 12px;border-bottom:1px solid var(--line)}
.gu-evdlg .ev-dhead h2{margin:0;font-size:var(--fs-xl)}
.gu-evdlg .ev-dhead p{margin:2px 0 0;font-size:var(--fs-sm)}
.gu-evdlg .ev-dbody{overflow:auto;padding:14px 20px 20px}
.ev-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.ev-item{background:var(--panel);border-radius:12px;padding:12px 14px}
.ev-item p{margin:0}
.ev-when{font-size:var(--fs-sm);color:var(--ink-2)}
.ev-q{font-weight:var(--fw-semibold);margin:4px 0 10px !important}
.ev-ans{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.ev-ans > div{background:var(--surface);border-radius:10px;padding:8px 10px}
.ev-ans dt{font-size:var(--fs-sm);color:var(--ink-2)}
.ev-ans dd{margin:2px 0 0;font-weight:var(--fw-semibold);overflow-wrap:anywhere}
.ev-gave{box-shadow:inset 3px 0 0 var(--bad)}
.ev-right{box-shadow:inset 3px 0 0 var(--good)}
.ev-why{margin-top:10px !important;font-size:var(--fs-sm);color:var(--ink-2)}
.ev-pass,.ev-rule{margin:12px 0 0;font-size:var(--fs-sm)}
.gu-evdlg .ev-dbody > .linkish{margin-top:14px}
.gu-chat details{margin:6px 0 8px}
.gu-fixed{margin:8px 0 0;padding-left:1.2em}
.gu-fixed li{margin:4px 0}

/* NSW OC and Selective tests (features/nsw-tests.js): the text beside the question on a wide screen, gaps in a text, 5 or 7 options */
.tt-split{display:grid;gap:16px}
.tt-texts{display:flex;flex-direction:column;gap:12px}
.tt-texts .tt-passage{margin-bottom:0}
@media (min-width:1024px){
  .tt-split{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
  .tt-texts{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;padding-right:4px}
  .tt-texts .tt-passage{max-height:none}
}
.tt-gap{display:inline-block;padding:0 6px;border-radius:6px;background:var(--teal-soft);color:var(--teal);font-weight:var(--fw-semibold)}
.tt-intro{margin:0;font-size:var(--fs-label);color:var(--ink-2)}
.tt-opts.many .tt-opt{min-height:44px}
.nsw-fig{border-collapse:collapse;margin:4px 0;font-size:var(--fs-label)}
.nsw-fig caption{text-align:left;font-weight:var(--fw-semibold);padding-bottom:4px}
.nsw-fig th,.nsw-fig td{border:1px solid var(--line);padding:6px 10px;text-align:left}
.nsw-grid td{text-align:center;min-width:40px}
.nsw-svg{max-width:100%;height:auto}
.nswt-sec.locked{opacity:.6}
