/* Maths 360 — the redesign, now in colour.
   One idea carries the look: questions and lesson steps sit on squared
   exercise-book paper and get marked in green pen and grey-blue pencil (never red: Adam, 13 Nov 2026, "rocco is 10 and does not want to see lots of red"). Everything
   around that stays plain and quiet. */

:root{
  --page:#F6F5FB;      /* soft lilac-white */
  --sheet:#FFFFFF;     /* white page */
  --ink:#18213A;       /* blue-black ink */
  --dim:#5B6478;
  --rule:#E1E6EF;
  --blue:#2848C4;      /* biro blue, the one accent */
  --blue-soft:#E8EDFB;
  --grid:#DCE5F4;      /* exercise-book squares */
  --margin:#EBA9A3;    /* the red margin line */
  --good:#1C7A45;      /* green pen */
  --bad:#56708F;       /* pencil: a wrong answer is never red (13 Nov 2026) */
  --bad-soft:#EEF2F7;  /* its quiet fill */
  --r:12px;
  /* names the shared lesson/question markup (data/*.js) already uses */
  --lime:var(--blue); --cyan:var(--blue); --bg:var(--sheet); --line:var(--rule);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);
  font-family:'Atkinson Hyperlegible',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:18px;line-height:1.45}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

#app{max-width:640px;margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom))}

/* ---------- headers ---------- */
.top{display:flex;align-items:center;gap:10px;margin-bottom:6px;min-height:44px}
.back{display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:10px 6px 10px 0;
  color:var(--blue);font-weight:700;font-size:17px}
.icon-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--rule);background:var(--sheet);
  display:grid;place-items:center;font-size:17px;flex:0 0 auto}
.wordmark{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:8px 0 2px}
.wordmark span{color:var(--blue)}
.lede{color:var(--dim);margin:0 0 18px;font-size:17px}
h1{font-size:28px;line-height:1.15;letter-spacing:-.015em;margin:4px 0 6px}
h2{font-size:19px;margin:0}
.section-h{font-size:15px;color:var(--dim);font-weight:700;margin:28px 2px 8px}

/* ---------- search ---------- */
.search{display:flex;align-items:center;gap:10px;background:var(--sheet);border:1.5px solid var(--rule);
  border-radius:var(--r);padding:0 6px 0 14px;margin:14px 0 6px}
.search:focus-within{border-color:var(--blue)}
.search svg{flex:0 0 auto;color:var(--dim)}
.search input{flex:1;min-width:0;border:0;background:none;padding:14px 0;font-size:18px;outline:none}
.search input::placeholder{color:#8A93A6}
.search .clear{border:0;background:none;color:var(--dim);width:40px;height:40px;font-size:16px}
.found{color:var(--dim);font-size:15px;margin:12px 2px 8px}
.empty{background:var(--sheet);border-radius:var(--r);padding:22px 18px;color:var(--dim)}
.empty b{color:var(--ink);display:block;margin-bottom:4px}

/* ---------- list sheets ---------- */
.sheet{background:var(--sheet);border-radius:var(--r);overflow:hidden;border:1px solid var(--rule)}
.row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:none;border:0;
  padding:15px 16px;border-top:1px solid var(--rule)}
.row:first-child{border-top:0}
.row:active{background:#F7F9FD}
.row .t{flex:1;min-width:0}
.row .t b{display:block;font-size:18px;line-height:1.25}
.row .t span{display:block;color:var(--dim);font-size:15.5px;line-height:1.35;margin-top:2px}
.row .chev{color:#A3ABBC;font-size:22px;flex:0 0 auto}
.row .aside{color:var(--dim);font-size:14.5px;flex:0 0 auto;text-align:right}
.yr{flex:0 0 auto;width:40px;height:40px;border-radius:10px;background:var(--blue-soft);color:var(--blue);
  display:grid;place-items:center;font-weight:700;font-size:15px}

/* today's three actions */
.act{display:flex;align-items:center;gap:14px}
.act .mark{flex:0 0 auto;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;
  background:var(--blue);color:#fff;font-weight:700}
.act .mark.done{background:var(--good)}
.act .mark svg{width:22px;height:22px}

/* topic rows: learn on the row, practise on its own button */
.trow{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-top:1px solid var(--rule)}
.trow:first-child{border-top:0}
.trow .open{flex:1;min-width:0;display:flex;gap:14px;align-items:center;background:none;border:0;text-align:left;padding:3px 0}
.trow .t{flex:1;min-width:0}
.trow .t b{display:block;font-size:17.5px;line-height:1.25}
.trow .t span{display:block;color:var(--dim);font-size:15px;line-height:1.35;margin-top:2px}
.trow .t i{display:block;font-style:normal;color:#7C8599;font-size:14px;margin-top:3px}
.pbtn{flex:0 0 auto;border:1.5px solid var(--blue);color:var(--blue);background:var(--sheet);
  border-radius:99px;padding:8px 14px;font-weight:700;font-size:15.5px}
.pbtn:active{background:var(--blue-soft)}
.pbtn:disabled{opacity:.35}

/* ---------- grading card ---------- */
.grade{display:flex;align-items:center;gap:14px;background:var(--sheet);border:1px solid var(--rule);
  border-radius:var(--r);padding:14px 16px;margin:16px 0 4px}
.grade .t{flex:1}
.grade .t b{display:block;font-size:18px}
.grade .t span{color:var(--dim);font-size:15px}

/* ---------- buttons ---------- */
.btn{display:block;width:100%;border:0;border-radius:var(--r);padding:16px 18px;background:var(--blue);color:#fff;
  font-weight:700;font-size:18px;text-align:center}
.btn:active{transform:translateY(1px)}
.btn:disabled{background:#AEB8D6}
.btn.quiet{background:var(--sheet);color:var(--blue);border:1.5px solid var(--blue)}
.btn + .btn{margin-top:10px}
.dock{position:fixed;left:0;right:0;bottom:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(transparent,var(--page) 26%);z-index:20}
.dock-in{max-width:640px;margin:0 auto}
/* on a question the button sits straight under the answers, not at the foot of a tall screen (iPad portrait) */
.dock.inline{position:static;background:none;padding:0;margin-top:16px}
.link{background:none;border:0;color:var(--blue);font-weight:700;padding:8px 0;font-size:16px;text-decoration:underline;text-underline-offset:3px}

/* ---------- the exercise-book board ---------- */
.board{position:relative;background-color:#fff;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:22px 22px;background-position:-1px -1px;
  border:1px solid #CBD6EA;border-radius:6px;padding:22px 16px 22px 34px;overflow:hidden}
.board::before{content:'';position:absolute;top:0;bottom:0;left:22px;width:2px;background:var(--margin)}

/* ---------- lesson ---------- */
.meta{color:var(--dim);font-size:15.5px;margin:0 0 4px}
.blurb{font-size:19px;margin:6px 0 16px}
.listen{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--rule);background:var(--sheet);
  border-radius:99px;padding:9px 16px;font-weight:700;font-size:16px;margin-bottom:18px}
.listen svg{color:var(--blue)}
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{counter-increment:s;margin:0 0 22px}
.steps .board{text-align:center;min-height:90px;display:flex;flex-direction:column;justify-content:center}
.steps .say{display:flex;gap:12px;margin:10px 2px 0}
.steps .say::before{content:counter(s);flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;
  font-size:14px;font-weight:700;display:grid;place-items:center;margin-top:1px}
.tips{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);padding:4px 16px}
.tips p{margin:0;padding:12px 0;border-top:1px solid var(--rule);font-size:17px}
.tips p:first-child{border-top:0}
.ex{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);padding:14px 16px;margin-bottom:10px}
.ex .seq{font-size:21px;font-weight:700;margin-bottom:6px}
.ex .work{color:var(--dim);font-size:16.5px}
.ex .ans{margin-top:10px;font-weight:700;color:var(--blue)}

/* narrated player (engine's mx-player) */
.mx-player{margin-bottom:22px}
.mx-stage{position:relative;background-color:#fff;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:22px 22px;border:1px solid #CBD6EA;border-radius:6px;min-height:200px;display:grid;place-items:center;padding:20px 16px 20px 34px}
.mx-stage::before{content:'';position:absolute;top:0;bottom:0;left:22px;width:2px;background:var(--margin)}
.mx-show{text-align:center}
.mx-show.in{animation:fadein .35s ease}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.mx-say{font-size:18px;margin:12px 2px;min-height:3em}
.mx-track{height:4px;background:var(--rule);border-radius:99px;overflow:hidden}
.mx-fill{display:block;height:100%;background:var(--blue);transition:width .3s}
.mx-ctrls{display:flex;gap:8px;margin-top:12px}
.mx-btn{border:1.5px solid var(--rule);background:var(--sheet);border-radius:10px;padding:10px 14px;font-weight:700;min-width:48px}
.mx-play{flex:1}
.mx-dots{display:none}
.mx-player .mx-cta{display:block;width:100%;margin-top:12px;border:0;border-radius:var(--r);padding:14px;background:var(--blue);color:#fff;font-weight:700}

/* ---------- quiz ---------- */
.qtop{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.qtop .t{flex:1;min-width:0}
.qtop .t b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qtop .t span{color:var(--dim);font-size:14.5px}
.clock{font-weight:700;font-variant-numeric:tabular-nums;background:var(--ink);color:#fff;border-radius:99px;padding:6px 12px;font-size:15px}
.clock.low{background:var(--bad)}
.progress{height:5px;background:var(--rule);border-radius:99px;overflow:hidden;margin-bottom:16px}
.progress i{display:block;height:100%;background:var(--blue);transition:width .3s}
.qboard{font-size:22px;line-height:1.4;text-align:center;font-weight:700;min-height:120px;display:flex;flex-direction:column;justify-content:center}
.qmeta{display:flex;justify-content:space-between;gap:10px;color:var(--dim);font-size:14px;margin:8px 2px 14px}
/* working out: a button, then squared paper he writes on (no page scroll while his finger is on it) */
.work{margin:0 0 14px}
.work-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--rule);background:var(--sheet);color:var(--blue);font-weight:700;font-size:15px;border-radius:99px;padding:8px 14px;cursor:pointer}
.work-btn::before{content:'';width:14px;height:14px;border-radius:3px;border:1.5px solid currentColor;
  background-image:linear-gradient(currentColor 1px,transparent 1px),linear-gradient(90deg,currentColor 1px,transparent 1px);background-size:5px 5px;opacity:.85}
.work-btn[aria-pressed="true"]{background:var(--blue-soft);border-color:var(--blue)}
.help-btn{width:38px;height:38px;margin-left:10px;border-radius:50%;border:1px solid var(--rule);background:var(--sheet);color:var(--blue);font-weight:800;font-size:19px;cursor:pointer;vertical-align:middle}
.help-btn[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
/* the BIDMAS test's results: one chip per year, green when every question that year was right */
.bt-years{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0 4px}
.bt-years span{display:grid;text-align:center;min-width:76px;padding:7px 10px;border-radius:12px;font-size:14px;border:1px solid var(--rule);background:var(--sheet);color:var(--dim)}
.bt-years span b{color:var(--ink);font-size:15px}
.bt-years .ok{border-color:#1C7A45;background:#E6F4EB}
.bt-years .miss{border-color:var(--bad);background:var(--bad-soft)}
.teach-btn{display:inline-flex;align-items:center;gap:7px;margin-left:10px;border:1px solid var(--blue);background:var(--blue);color:#fff;font-weight:700;font-size:15px;border-radius:99px;padding:8px 14px;cursor:pointer;vertical-align:middle}
.teach-btn::before{content:'';width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8l9-4 9 4-9 4z'/%3E%3Cpath d='M7 10v5c0 1.5 2.5 3 5 3s5-1.5 5-3v-5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8l9-4 9 4-9 4z'/%3E%3Cpath d='M7 10v5c0 1.5 2.5 3 5 3s5-1.5 5-3v-5'/%3E%3C/svg%3E") center/contain no-repeat}
/* Ask teacher's window: a sheet over the quiz with the helper page inside it */
.teacher{position:fixed;inset:0;background:rgba(24,33,58,.35);z-index:55;display:flex;justify-content:center;align-items:flex-end}
.teacher[hidden]{display:none}
.teacher-sheet{background:#F6F5FB;width:100%;max-width:760px;height:96vh;height:96dvh;border-radius:18px 18px 0 0;display:flex;flex-direction:column;overflow:hidden}
.teacher-head{display:flex;align-items:center;gap:12px;padding:12px 14px 10px 18px;border-bottom:1px solid var(--rule);background:var(--sheet)}
.teacher-head b{flex:1;font-size:18px}
.teacher-sheet iframe{flex:1;width:100%;border:0;background:#F6F5FB}
.help-box{margin-top:10px;background:var(--sheet);border:1px solid var(--rule);border-left:4px solid var(--blue);border-radius:var(--r);padding:12px 16px}
.help-box b{display:block;margin-bottom:4px}
.help-box ol{margin:0;padding-left:22px}
.help-box li{margin:6px 0;font-size:17px;line-height:1.4}
.help-box .link{padding:6px 0}
.help-box .hint{margin:8px 0 0}
.work-paper{margin-top:10px;background-color:#fff;border:1px solid #CBD6EA;border-radius:6px;overflow:hidden;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:38px 38px;background-position:-1px -1px}
.work-paper canvas{display:block;width:100%;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.work-tools{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:flex-end;align-items:center;padding:4px 12px;background:var(--sheet);border-top:1px solid var(--rule)}
.work-tools .link{font-size:15px;padding:6px 0}
.work-tools .sp{flex:1}
#workpen[aria-pressed="true"]{color:var(--good,#1C8A4A)}
.opts{display:grid;gap:10px}
.opts.two{grid-template-columns:1fr 1fr}
.opt{position:relative;background:var(--sheet);border:1.5px solid var(--rule);border-radius:var(--r);padding:15px 14px;
  font-size:19px;font-weight:700;text-align:center;min-height:58px}
.opts:not(.two) .opt{text-align:left;font-size:17.5px;font-weight:400}
.opt.sel{border-color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--blue);background:#F6F8FE}
.opt.right{border-color:var(--good);box-shadow:inset 0 0 0 1.5px var(--good);color:var(--good)}
.opt.wrong{border-color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad);color:var(--bad)}
.opt.right::after,.opt.wrong::after{position:absolute;top:6px;right:10px;font-size:18px;font-weight:700;text-decoration:none}
.opt.right::after{content:'✓';color:var(--good)}
.opt.wrong::after{content:none}
.opt:disabled{cursor:default}
.feedback{margin-top:14px;background:var(--sheet);border-radius:var(--r);padding:14px 16px;border-left:4px solid var(--good)}
.feedback.bad{border-left-color:var(--bad)}
.feedback b{display:block;margin-bottom:4px}
.feedback.good b{color:var(--good)} .feedback.bad b{color:var(--bad)}
.feedback p{margin:0;font-size:17px}
.sats{font-size:14px;color:var(--dim);margin:0 2px 8px}

/* ---------- results ---------- */
.score{text-align:center;padding:18px 0 8px}
.score .big{font-size:56px;font-weight:700;letter-spacing:-.02em;line-height:1}
.score .of{color:var(--dim);font-size:17px;margin-top:6px}
.score .say{font-size:19px;margin:14px auto 0;max-width:30ch}
.review{margin-top:10px}
/* one row instead of a list of misses (13 Nov 2026): closed until he taps it */
.checkrow{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);margin:16px 0 0}
.checkrow>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;font-weight:700}
.checkrow>summary::-webkit-details-marker{display:none}
.checkrow>summary small{margin-left:auto;font-weight:400;color:var(--dim);font-size:16px}
.checkrow>summary::after{content:'›';font-size:24px;line-height:1;color:var(--blue);transition:transform .15s}
.checkrow[open]>summary::after{transform:rotate(90deg)}
.checkrow .review{padding:0 12px 4px}
.checkrow .miss{border-left:5px solid var(--blue-soft)}
.miss{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);padding:14px 16px;margin-bottom:10px}
.miss .q{font-weight:700;margin-bottom:6px}
.miss .a{font-size:16px;color:var(--dim)}
.miss .a em{font-style:normal;color:var(--dim)}
.miss .a strong{color:var(--good)}
.miss .why{font-size:16px;margin:6px 0 4px}
.miss .links{display:flex;gap:18px;flex-wrap:wrap}
.tally{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--rule);font-size:16.5px}
.tally:first-child{border-top:0}
.tally b.good{color:var(--good)} .tally b.bad{color:var(--bad)}
.stats{display:flex;gap:10px;margin:12px 0 4px}
.stats div{flex:1;background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);padding:10px 12px}
.stats b{display:block;font-size:20px}
.stats span{color:var(--dim);font-size:14px}
.note-box{background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);padding:14px 16px;color:var(--dim);font-size:16.5px;margin:14px 0}

/* ---------- coach ---------- */
.coach{position:fixed;inset:0;background:rgba(24,33,58,.35);z-index:50;display:flex;justify-content:center;align-items:flex-end}
.coach-sheet{background:var(--page);width:100%;max-width:640px;height:92vh;height:92dvh;border-radius:18px 18px 0 0;display:flex;flex-direction:column}
.coach-head{display:flex;align-items:center;gap:12px;padding:16px 16px 10px;border-bottom:1px solid var(--rule)}
.coach-head div{flex:1}
.coach-head p{margin:0;color:var(--dim);font-size:15px}
.coach-body{flex:1;overflow:auto;padding:14px 16px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.chat{display:flex;flex-direction:column;gap:10px;flex:1}
.bubble{max-width:86%;padding:11px 14px;border-radius:16px;font-size:17px;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.ai{background:var(--sheet);border:1px solid var(--rule);align-self:flex-start;border-bottom-left-radius:4px}
.bubble.me{background:var(--blue);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.bubble.wait{color:var(--dim)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.chips button{border:1.5px solid var(--rule);background:var(--sheet);border-radius:99px;padding:8px 13px;font-size:15px}
.send{display:flex;gap:8px;margin-top:6px}
.send input{flex:1;min-width:0;border:1.5px solid var(--rule);background:var(--sheet);border-radius:var(--r);padding:12px 14px;font-size:17px;outline:none}
.send input:focus{border-color:var(--blue)}
.send button{border:0;background:var(--blue);color:#fff;border-radius:var(--r);padding:0 18px;font-weight:700}

/* ---------- maths markup used by the lesson and question data ---------- */
.eq{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:32px;font-weight:700;margin:6px 0}
.qboard .eq{font-size:28px}
/* one wrapper so the words and the + / × spans of a question flow as one line, not one flex item each */
.qtext{display:block;max-width:100%}
/* tables in questions (timetables, data) are styled inline by the course files; squeeze them on a phone */
@media (max-width:480px){.qboard table{font-size:13px!important}.qboard th,.qboard td{padding:4px 5px!important}}
/* angle puzzles: diagrams drawn by data/more-angle-puzzles.js */
.angfig{display:flex;justify-content:center;margin:0 auto 6px}
.angfig .angsvg{width:100%;max-width:380px;height:auto;overflow:visible}
/* a shape drawn on a square grid (the ratio course's plans and enlargements): the grid faint, the shape bold with a solid
   tint, so it is not lost among the squares (Adam, 18 Oct 2026: "it's really difficult to see"). Done here, not in the
   data: a question's picture is part of its key, and his progress and check-up point at the keys. */
.angsvg line[data-g]{stroke-opacity:.3!important}
.angsvg line[data-g]~path[data-rect]{fill-opacity:.45!important;stroke-width:3.6!important}
/* and the drawing sits on plain white: the board's squared-paper ruling showed through a drawing of a grid, so the plan's
   squares were lost among the paper's (the same complaint) */
.qboard .angfig{background:#fff;border-radius:10px;padding:4px 6px;position:relative;z-index:1}
.ag-l{stroke:var(--ink);stroke-width:2.6;fill:none;stroke-linecap:round}
.ag-l.ag-dash{stroke:var(--dim);stroke-width:2;stroke-dasharray:6 6}
.ag-t,.ag-ar{stroke:var(--ink);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ag-arc{fill:none;stroke-width:2}
.ag-c-k{stroke:var(--dim)}.ag-c-x{stroke:#D93A2F;stroke-width:2.6}.ag-c-a{stroke:#2F6BFF}.ag-c-v{stroke:var(--good)}
.angsvg text{text-anchor:middle;font-weight:700;font-size:15px;fill:var(--ink)}
.angsvg .ag-x{fill:#D93A2F;font-size:20px;font-style:italic;font-family:Georgia,serif}
.angsvg .ag-a{fill:#2F6BFF;font-size:19px;font-style:italic;font-family:Georgia,serif}
.angsvg .ag-v{fill:var(--good)}
.angsvg .ag-p{fill:var(--dim);font-size:14px}
.qboard .angfig + *{margin-top:2px}
.fr{display:inline-flex;flex-direction:column;align-items:center;line-height:1;vertical-align:middle}
.fr-n{padding:0 7px 3px}
.fr-d{padding:3px 7px 0;border-top:2.5px solid currentColor}
.fr.hl-n .fr-n,.fr.hl .fr-n,.fr.hl-d .fr-d,.fr.hl .fr-d,.fr.good,.mix.good,.num.good{color:var(--blue)}
.num.bad{color:var(--bad)}
.mix{display:inline-flex;align-items:center;gap:5px}
.op{opacity:.7;font-size:.85em}
.op-big{color:var(--blue);font-weight:400;font-size:1.25em;padding:0 .06em;line-height:1}
/* a power (4², 3³) as a real superscript, big and blue, so ² and ³ can be told apart on a tablet (18 Oct 2026) */
sup.pow{font-size:.78em;font-weight:800;color:var(--blue);line-height:0;vertical-align:.55em;margin-left:.04em}
.qsay{color:var(--dim);font-size:16px;text-align:center;margin:-4px 2px 8px}
.note{font-size:16.5px;color:var(--dim);margin-top:10px;font-weight:700}
.bar{display:flex;gap:3px;margin:8px auto;max-width:260px;width:100%}
.bar span{flex:1;height:24px;background:#E6EBF4;border-radius:4px}
.bar span.on{background:var(--blue)}
.pie{width:104px;height:104px;margin:6px}
.pie path{fill:#E6EBF4;stroke:#fff;stroke-width:2}
.pie path.on{fill:var(--blue)}
.circ{width:120px;height:120px;margin:6px auto;display:block}
.circ .o{fill:#EEF2F9;stroke:var(--dim);stroke-width:3}
.circ .s{fill:var(--blue);opacity:.8}
.circ .h{fill:#fff;stroke:var(--dim);stroke-width:3}
.circ .l{stroke:var(--blue);stroke-width:4;stroke-linecap:round}
.circ .c{fill:var(--blue)}
.circ text{font:700 16px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--blue)}
.dst{width:150px;height:112px;margin:6px auto;display:block}
.dst .o{fill:#EEF2F9;stroke:var(--dim);stroke-width:3;stroke-linejoin:round}
.dst .t{font:700 26px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--ink)}
.dst .t.hl{fill:var(--blue)}
.dst .sh{fill:var(--blue);opacity:.22}
.dst .w{font:700 9.5px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--dim)}
.dst3{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;margin:6px 0}
.dst3 figure{margin:0;text-align:center}
.dst3 .dst{width:80px;height:60px;margin:0 auto}
.dst3 figcaption{font-size:12.5px;font-weight:700;color:var(--dim);line-height:1.3}
.dstq{flex-basis:100%}
.dstq .dst{width:136px;height:102px;margin:0 auto 4px}
.dtg{width:170px;height:117px;margin:6px auto;display:block}
.dtg .ax{stroke:var(--dim);stroke-width:2.5;stroke-linecap:round}
.dtg .ln{fill:none;stroke:var(--blue);stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.dtg .pt{fill:var(--ink)}
.dtg text{font:700 11px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--dim)}
.pgrid{width:120px;height:120px;margin:6px auto;display:block}
.pgrid rect{fill:#E6EBF4}
.pgrid rect.on{fill:var(--blue)}
.nvr{width:64px;height:64px;flex:0 0 auto}
.nvr-row{display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap;margin:10px 0 2px}
.nvr-to{font-size:22px;font-weight:700;color:var(--dim);padding:0 2px}
.nvr-grid{display:grid;grid-template-columns:repeat(3,64px);gap:6px;justify-content:center;margin:10px 0 2px}
.nvr-lab{display:flex;flex-direction:column;align-items:center;gap:2px}
.nvr-lab span{font-weight:700;font-size:14px}
.opt .nvr{width:76px;height:76px;display:block;margin:0 auto}
.miss .nvr{width:44px;height:44px}
.miss .nvr-grid{grid-template-columns:repeat(3,44px)}
.miss .dst{width:90px;height:68px}
.miss .eq{font-size:22px;justify-content:flex-start}


/* =====================================================================
   COLOUR LAYER
   Every subject owns a colour and a symbol (set as --c from app.js).
   The home page is a wheel of all of them: 17 subjects, one 360° ring.
   Whatever subject you are in, the page takes on its colour.
   ===================================================================== */
#app{--c:#4F46E5;--c-soft:color-mix(in srgb,var(--c) 12%,#fff);--c-deep:color-mix(in srgb,var(--c) 78%,#000)}
h1,.wordmark,.section-h,.tile b,.qk b,.band h1,.score .big,.sr-in b{font-family:'Bricolage Grotesque','Atkinson Hyperlegible',system-ui,sans-serif}

/* ---- home hero: the 360 ring ---- */
.hero{display:flex;align-items:center;gap:16px;margin:6px 0 4px}
.ring{width:96px;height:96px;flex:0 0 auto}
.ring path{fill:none;stroke-width:13;stroke-linecap:butt}
.ring text{font:800 21px 'Bricolage Grotesque',system-ui,sans-serif;fill:var(--ink);letter-spacing:-.03em}
@media (prefers-reduced-motion:no-preference){
  .ring path{stroke-dasharray:60;stroke-dashoffset:60;animation:slice .5s cubic-bezier(.2,.8,.2,1) forwards}
  .ring path:nth-child(2){animation-delay:.03s}.ring path:nth-child(3){animation-delay:.06s}.ring path:nth-child(4){animation-delay:.09s}
  .ring path:nth-child(5){animation-delay:.12s}.ring path:nth-child(6){animation-delay:.15s}.ring path:nth-child(7){animation-delay:.18s}
  .ring path:nth-child(8){animation-delay:.21s}.ring path:nth-child(9){animation-delay:.24s}.ring path:nth-child(10){animation-delay:.27s}
  .ring path:nth-child(11){animation-delay:.3s}.ring path:nth-child(12){animation-delay:.33s}.ring path:nth-child(13){animation-delay:.36s}
  .ring path:nth-child(14){animation-delay:.39s}.ring path:nth-child(15){animation-delay:.42s}.ring path:nth-child(16){animation-delay:.45s}
  .ring path:nth-child(17){animation-delay:.48s}
}
@keyframes slice{to{stroke-dashoffset:0}}
.wordmark{font-size:36px;font-weight:800;letter-spacing:-.035em;line-height:1;margin:0 0 6px}
.hero .lede{margin:0;font-size:18px;color:var(--dim)}
.search{border:2px solid #E4E2F0;border-radius:16px;margin-top:18px;box-shadow:0 6px 18px -14px rgba(60,40,140,.45)}
.search:focus-within{border-color:#7B4DE8}

/* ---- quick actions: three colour blocks ---- */
.quick{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:16px}
.qk{border:0;border-radius:18px;padding:14px 12px 13px;text-align:left;color:#fff;display:flex;flex-direction:column;gap:2px;min-height:132px;position:relative;overflow:hidden}
.qk-daily{background:linear-gradient(150deg,#3B82FF,#2547D8)}
.qk-mock{background:linear-gradient(150deg,#2E3A7A,#151D45)}
.qk-coach{background:linear-gradient(150deg,#F25C9A,#C7287A)}
.qk-paper{background:linear-gradient(150deg,#1E88E5,#0D47A1)}
.cucard{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;border:0;border-radius:18px;margin-top:14px;padding:16px 18px;color:#fff;background:linear-gradient(150deg,#7B5CF0,#4527A0)}
.cucard .cu-k{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}
.cucard b{font-size:17px;line-height:1.3}
.cucard > span:last-child{font-size:14px;opacity:.9}
.cu-plan{display:grid;gap:10px}
.cu-step{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1.5px solid var(--rule);border-left:6px solid var(--c);border-radius:14px;padding:12px 14px}
.cu-step .cu-n{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--c);color:#fff;font-weight:800;display:grid;place-items:center}
.cu-step .t{flex:1;min-width:0}.cu-step .t b{display:block}.cu-step .t > span{display:block;color:var(--ink);font-size:14.5px}
.cu-step em{display:block;font-style:normal;color:var(--dim);font-size:13px;margin-top:2px}
.cu-dots{display:flex;gap:5px;flex:0 0 auto}
.cu-dots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--rule);background:#fff}
.cu-dots i.on{background:var(--good);border-color:var(--good)}
.cu-dots i.low{background:var(--bad);border-color:var(--bad)}
.cu-dots i.skip{background:#fff;border-style:dashed}
.potd{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;border:0;border-radius:18px;margin-top:14px;padding:16px 18px;color:#fff;background:linear-gradient(150deg,#E2A100,#B86E00)}
.potd .potd-k{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.9}
.potd b{font-size:17px;line-height:1.3}
.potd > span:last-child{font-size:14px;opacity:.9}
/* building blocks + sprints on the home page */
.blocks{display:grid;gap:10px}
.blk-check{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1.5px solid var(--rule);border-radius:16px;padding:14px 16px}
.blk-check .t{flex:1;min-width:0}.blk-check .t > span{display:block;color:var(--dim);font-size:14.5px}
.blk-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.blk-pills i{font-style:normal;font-size:12.5px;font-weight:700;padding:3px 9px;border-radius:99px;border:1.5px solid var(--rule);color:var(--dim);background:#fff}
.blk-pills i.on{background:#E6F6EC;border-color:var(--good);color:var(--good)}
.blk-pills i.half{background:#FFF4DC;border-color:#D99A00;color:#8A5E00}
.blk-pills i.low{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}
.blk-sprints{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.blk-sp{border:0;border-radius:16px;padding:14px;text-align:left;color:#fff;background:var(--c);display:flex;flex-direction:column;gap:2px}
.blk-sp b{font-size:16px}.blk-sp span{font-size:13.5px;opacity:.9}
.qk-g{font:800 26px 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.03em;margin-bottom:auto;display:block;opacity:.95}
.qk b{font-size:16.5px;line-height:1.15;margin-top:12px}
.qk > span:last-child{font-size:13.5px;opacity:.85;line-height:1.25}
.qk:active{transform:scale(.97)}

/* ---- subject tiles ---- */
.section-h{font-size:21px;font-weight:800;color:var(--ink);margin:28px 2px 10px;letter-spacing:-.01em}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{--c-soft:color-mix(in srgb,var(--c) 13%,#fff);position:relative;overflow:hidden;border:0;border-radius:18px;padding:14px 14px 13px;
  text-align:left;background:var(--c);color:#fff;min-height:128px;display:flex;flex-direction:column;justify-content:flex-end;
  box-shadow:0 10px 22px -16px var(--c)}
.tile-g{position:absolute;top:6px;right:10px;font:800 46px/1 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.04em;
  color:rgba(255,255,255,.28);white-space:nowrap}
.tile b{font-size:18px;line-height:1.12;font-weight:800;letter-spacing:-.01em;position:relative}
.tile-m{font-size:13.5px;opacity:.88;margin-top:4px;position:relative}
.tile:active{transform:scale(.97)}

/* ---- subject and lesson header band ---- */
.band{position:relative;overflow:hidden;background:var(--c);color:#fff;margin:-18px -16px 16px;padding:max(14px,env(safe-area-inset-top)) 20px 26px;
  border-radius:0 0 26px 26px}
.band .back{color:#fff;opacity:.92;padding:10px 0}
.band h1{font-size:34px;font-weight:800;letter-spacing:-.03em;margin:30px 0 6px;position:relative;max-width:85%}
.band p{margin:0;opacity:.9;font-size:17px;position:relative;max-width:80%}
.band-g{position:absolute;right:-6px;bottom:-14px;font:800 130px/1 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.05em;color:rgba(255,255,255,.18);pointer-events:none;white-space:nowrap}
.band.small h1{font-size:27px;margin:8px 0 0;line-height:1.12}
.band.small .band-k{margin-top:22px;font-weight:700;font-size:15px;opacity:.85}
.band.small .band-g{font-size:104px}

.grade{border:0;background:var(--c-soft);border-radius:16px}
.grade .pbtn{background:var(--c);color:#fff;border-color:var(--c)}
.section-h + .sheet{border:0;box-shadow:0 8px 22px -18px rgba(40,30,90,.4)}

/* ---- topic rows wear their subject colour ---- */
.yr{background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c-deep,var(--c));color:color-mix(in srgb,var(--c) 80%,#000)}
.pbtn{border-color:var(--c);color:color-mix(in srgb,var(--c) 85%,#000)}
.pbtn:active{background:color-mix(in srgb,var(--c) 12%,#fff)}
.trow{border-left:5px solid var(--c)}
.trow:first-child{border-top:0}

/* ---- lesson ---- */
.blurb{font-size:19px;font-weight:700}
.listen{border-color:var(--c);color:var(--ink)}
.listen svg{color:var(--c)}
.steps .say::before{background:var(--c)}
.steps .board{border-color:color-mix(in srgb,var(--c) 30%,#CBD6EA)}
.tips{border:0;background:var(--c-soft)}
.tips p{border-top-color:color-mix(in srgb,var(--c) 18%,#fff)}
.ex .ans{color:var(--c-deep)}
.eq .num.good,.fr.good,.mix.good,.num.good{color:var(--c-deep)}
.mx-fill{background:var(--c)}
.mx-player .mx-cta{background:var(--c)}

/* ---- buttons take the subject colour ---- */
.btn{background:var(--c);box-shadow:0 10px 22px -14px var(--c)}
.btn.quiet{background:#fff;color:var(--c-deep);border-color:var(--c);box-shadow:none}
.link{color:var(--c-deep)}
.back{color:var(--c-deep)}

/* ---- quiz ---- */
.progress{height:8px;background:color-mix(in srgb,var(--c) 14%,#fff)}
.progress i{background:var(--c)}
.opt{border:2px solid #E4E2F0;border-radius:16px;box-shadow:0 4px 0 #E4E2F0}
.opt.sel{border-color:var(--c);background:var(--c-soft);box-shadow:0 4px 0 var(--c)}
.opt.right{background:#E6F6EC;box-shadow:0 4px 0 var(--good)}
.opt.wrong{background:var(--bad-soft);box-shadow:0 4px 0 var(--bad)}
.feedback.good{background:#EAF7EF}
.feedback.bad{background:var(--bad-soft)}
.qboard{border-top:6px solid var(--c)}
.clock{background:var(--c)}

/* ---- results: the score ring ---- */
.sring{position:relative;width:170px;height:170px;margin:0 auto}
.sring svg{width:100%;height:100%;transform:rotate(-90deg)}
.sr-bg{fill:none;stroke:color-mix(in srgb,var(--c) 14%,#fff);stroke-width:12}
.sr-fg{fill:none;stroke:var(--c);stroke-width:12;stroke-linecap:round}
@media (prefers-reduced-motion:no-preference){.sr-fg{animation:fillring .9s cubic-bezier(.2,.8,.2,1)}}
@keyframes fillring{from{stroke-dashoffset:327}}
.sr-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.sr-in b{font-size:54px;line-height:1;letter-spacing:-.03em}
.sr-in span{color:var(--dim);font-size:15px}
.score .big{color:var(--c-deep)}
.miss{border:0;border-left:5px solid var(--bad);box-shadow:0 6px 18px -16px rgba(40,30,90,.5)}
.stats div{border:0;background:var(--c-soft)}
.note-box{border:0;background:var(--c-soft);color:var(--ink)}

/* ---- search results and coach ---- */
.found{font-weight:700}
.bubble.me{background:#C7287A}
.send button{background:#C7287A}
.chips button{border-color:#F3C4DA}

@media (max-width:560px){.quick{grid-template-columns:1fr 1fr}}
@media (min-width:561px){.quick{grid-template-columns:repeat(4,1fr)}}
.tiles > .tile:last-child:nth-child(odd){grid-column:span 2;min-height:104px}
.band-g{color:rgba(255,255,255,.15)}

/* ---- progress, mistakes, review, typed answers, devices ---- */
.yr.done{background:var(--c);color:#fff;font-size:18px}
.trow .t em.stat{display:block;font-style:normal;font-size:13.5px;font-weight:700;color:var(--dim);margin-top:3px}
.trow .t em.stat.good{color:var(--good)}
.tile-bar{position:relative;display:block;height:5px;border-radius:99px;background:rgba(255,255,255,.28);margin-top:8px;overflow:hidden}
.tile-bar i{display:block;height:100%;background:#fff;border-radius:99px}
.fixcard{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:0;border-radius:18px;margin-top:14px;padding:14px 16px;
  background:linear-gradient(150deg,#FF6B5E,#D93A2F);color:#fff;box-shadow:0 10px 22px -14px #D93A2F}
.fixcard .fx-n{flex:0 0 auto;width:46px;height:46px;border-radius:50%;background:#fff;color:#D93A2F;display:grid;place-items:center;
  font:800 20px 'Bricolage Grotesque',system-ui,sans-serif}
.fixcard .t{flex:1}
.fixcard .t b{display:block;font-size:18px;font-family:'Bricolage Grotesque',system-ui,sans-serif}
.fixcard .t span{font-size:14.5px;opacity:.92}
.fixcard .chev{color:#fff}
.hint{color:var(--dim);font-size:15px;margin:-4px 2px 10px}
.sheet + .hint{margin:10px 2px 0}
.nudge{margin-top:14px;background:#FFF6DA;border-radius:16px;padding:14px 16px}
.nudge b{display:block;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:17px}
.nudge span{color:#6B5A1E;font-size:15px}
.devices{display:flex;align-items:center;gap:12px;width:100%;margin-top:26px;text-align:left;background:#fff;border:2px dashed #DCD8EC;border-radius:16px;padding:14px 16px}
.devices > span{flex:1}
.devices b{display:block}
.devices span span{display:block;color:var(--dim);font-size:14.5px}
.typed{margin-top:4px}
.ans{display:flex;align-items:center;gap:8px;background:#fff;border:2.5px solid var(--c);border-radius:16px;padding:6px 16px;box-shadow:0 4px 0 var(--c)}
.ans span{font-size:24px;font-weight:700;color:var(--dim)}
.ans input{flex:1;min-width:0;border:0;outline:none;background:none;font-size:30px;font-weight:700;padding:10px 0;letter-spacing:.01em}
.ans input::placeholder{font-size:20px;font-weight:400;color:#A3A9B8}
.ans.right{border-color:var(--good);box-shadow:0 4px 0 var(--good);background:#E6F6EC}
.ans.right input{color:var(--good)}
.ans.wrong{border-color:var(--bad);box-shadow:0 4px 0 var(--bad);background:var(--bad-soft)}
.ans.wrong input{color:var(--bad)}
.typed .link{margin-top:10px;font-size:15px}
.row .dot{flex:0 0 auto;width:14px;height:14px;border-radius:50%;background:var(--c)}
.mini{display:block;height:5px;border-radius:99px;background:color-mix(in srgb,var(--c) 16%,#fff);margin-top:6px;overflow:hidden}
.mini i{display:block;height:100%;background:var(--c)}
.codebox{background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 8px 22px -18px rgba(40,30,90,.4)}
.codebox p{margin:0 0 10px;font-size:16px}
.codebox .hint{margin:10px 0 0}
.code{font:800 40px/1 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:.14em;text-align:center;padding:12px 0;color:var(--c-deep)}
.codebox .send input{text-transform:uppercase;letter-spacing:.12em;font-weight:700}
.codebox .send button{background:var(--c)}
.also{color:var(--dim);font-size:14.5px;text-align:center;margin:22px 0 0;line-height:1.8}
.also a{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* ---- rounding course: place-value chart, number line, cheat sheet, mastery ---- */
.pvc{display:inline-flex;align-items:flex-start;gap:3px;margin:4px auto}
.pvc .col{display:flex;flex-direction:column;align-items:center;min-width:40px}
.pvc .col b{font-size:34px;font-weight:800;line-height:1.1;padding:2px 6px;border-radius:10px;position:relative}
.pvc .col i{font-style:normal;font-size:10.5px;font-weight:700;color:var(--dim);margin-top:6px;white-space:nowrap}
.pvc .col.pt{min-width:12px}
.pvc .col.pt b{padding:2px 0}
.pvc .keep b{color:var(--c-deep);box-shadow:inset 0 -6px 0 color-mix(in srgb,var(--c) 45%,#fff)}
.pvc .peek b{color:#D93A2F;outline:3px solid #D93A2F;border-radius:50%;outline-offset:-1px}
.pvc .peek i{color:#D93A2F}
.pvc .gone b{opacity:.25}
.pvc-note{font-size:14.5px;font-weight:700;color:var(--dim);margin-top:6px}
/* adding decimals: a column sum lined up on the point (data/more-adding-decimals.js COL) */
.colsum{display:inline-flex;flex-direction:column;align-items:flex-end;margin:4px auto;font-variant-numeric:tabular-nums}
.cs-row{display:flex;align-items:flex-end;position:relative}
.cs-row span{width:.72em;text-align:center;font-size:34px;font-weight:800;line-height:1.15}
.cs-row span.pt{width:.32em}
.cs-row .cs-u{width:.66em;color:var(--dim)}
.cs-head span{font-size:11px;font-weight:700;color:var(--dim);line-height:1.6;width:calc(34px*.72)}
.cs-head span.pt{width:calc(34px*.32)}
.cs-head .cs-u{width:calc(34px*.66)}
.cs-row span.cs-c{font-size:17px;color:var(--c-deep);height:22px;line-height:22px;width:calc(34px*.72)}
.cs-row span.cs-c.pt{width:calc(34px*.32)}
.cs-row span.fz{color:color-mix(in srgb,var(--c) 70%,#fff)}
.cs-plus{position:absolute;left:-.9em;bottom:0;font-style:normal;font-size:30px;font-weight:700;color:var(--dim)}
.cs-ans{border-top:3px solid var(--ink);margin-top:4px;padding-top:2px;min-height:44px}
.nl{width:100%;max-width:320px;display:block;margin:2px auto}
.nl .ax{stroke:var(--ink);stroke-width:3;stroke-linecap:round}
.nl .tk{stroke:var(--ink);stroke-width:3}
.nl .half{stroke:var(--dim);stroke-width:2;stroke-dasharray:3 3}
.nl .pull{stroke:var(--c);stroke-width:8;stroke-linecap:round;opacity:.55}
.nl .dot{fill:#D93A2F}
.nl .xv{font:800 17px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:#D93A2F;text-anchor:middle}
.nl .lb{font:700 15px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--ink);text-anchor:middle}
.nl .hl{font:700 11px 'Atkinson Hyperlegible',system-ui,sans-serif;fill:var(--dim);text-anchor:middle}
.nl .zone{fill:color-mix(in srgb,var(--c) 22%,#fff)}
.nl .in{fill:var(--c)}
.nl .out{fill:#fff;stroke:var(--c);stroke-width:3}
.sheet-card{background:#fff;border:2px solid var(--c);border-radius:16px;padding:14px 16px;box-shadow:0 6px 0 color-mix(in srgb,var(--c) 30%,#fff)}
.sc-trick{font-size:17px;line-height:1.55}
.sc-trick b{color:var(--c-deep)}
.sc-names{width:100%;border-collapse:collapse;margin:12px 0;font-size:15px}
.sc-names th{text-align:left;font-weight:700;padding:6px 0;border-top:1px solid var(--rule)}
.sc-names td{padding:6px 0 6px 8px;border-top:1px solid var(--rule);color:var(--dim)}
.sc-traps{background:var(--bad-soft);border-radius:12px;padding:10px 12px;font-size:15px;line-height:1.55}
.sc-traps b{color:var(--bad)}
.coursecard{display:block;width:100%;text-align:left;border:0;border-radius:20px;padding:16px 18px;margin:0 0 14px;color:#fff;
  background:linear-gradient(150deg,var(--c),color-mix(in srgb,var(--c) 70%,#000));box-shadow:0 12px 24px -16px var(--c)}
.coursecard .cc-k{display:block;font-size:13.5px;font-weight:700;opacity:.85}
.coursecard b{display:block;font:800 23px/1.15 'Bricolage Grotesque',system-ui,sans-serif;margin:4px 0}
.coursecard > span:nth-of-type(2){display:block;font-size:15px;opacity:.92}
.coursecard .cc-m{display:block;font-size:14px;font-weight:700;margin-top:8px;opacity:.92}
.mastery-strip{display:flex;gap:6px;margin-top:12px}
.mastery-strip span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;
  background:rgba(255,255,255,.22);color:#fff;border:2px solid rgba(255,255,255,.55)}
.mastery-strip span.half{background:rgba(255,255,255,.5);color:var(--c-deep)}
.mastery-strip span.on{background:#fff;color:var(--c-deep)}
.mastery-strip.big{justify-content:center;margin:14px 0 0}
.mastery-strip.big span,.score + .mastery-strip span{background:color-mix(in srgb,var(--c) 12%,#fff);color:var(--c-deep);border-color:color-mix(in srgb,var(--c) 40%,#fff);width:40px;height:40px;font-size:16px}
.mastery-strip.big span.half,.score + .mastery-strip span.half{background:color-mix(in srgb,var(--c) 45%,#fff)}
.mastery-strip.big span.on,.score + .mastery-strip span.on{background:var(--c);color:#fff;border-color:var(--c)}
.score + .mastery-strip{justify-content:center}
.yr.mastered{background:#F2B705;color:#fff}

/* ================================================================ home page (17 Oct 2026 redesign)
   One calm column of white cards: a Today checklist, then Tests, Quick practice and the
   subject tiles. Colour only marks what each thing is (the chip); the cards stay white. */
#app.home{max-width:860px}
.hm-top{display:flex;align-items:center;gap:14px;margin:4px 0 2px}
.hm-top .ring{width:64px;height:64px}
.hm-hi{flex:1;min-width:0}
.hm-hi .wordmark{font-size:30px;margin:0 0 2px}
.hm-hi p{margin:0;color:var(--dim);font-size:15.5px}
.hm-me{display:flex;align-items:center;gap:6px;border:1.5px solid var(--rule);background:var(--sheet);color:var(--ink);border-radius:99px;padding:8px 14px;font-weight:700;font-size:14.5px}
.hm-me svg{color:var(--blue)}
#app.home .search{margin-top:14px}
.hm-chip{flex:0 0 auto;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--c);color:#fff;
  font:800 16px/1 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.02em}
.hm-today{background:var(--sheet);border:1px solid var(--rule);border-radius:18px;margin-top:16px;padding:6px 0 4px;box-shadow:0 10px 26px -22px rgba(30,30,80,.5)}
.hm-today-h{display:flex;align-items:center;gap:12px;padding:12px 18px 8px}
.hm-today-h h2{margin:0;font-size:22px;letter-spacing:-.02em;flex:1}
.hm-today-h > span{color:var(--dim);font-size:14px;font-weight:700}
.hm-meter{display:block;width:72px;height:7px;border-radius:99px;background:var(--rule);overflow:hidden}
.hm-meter i{display:block;height:100%;background:var(--good);border-radius:99px}
.hm-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--rule);padding:12px 18px}
.hm-row:first-of-type{border-top:0}
.hm-row .t{flex:1;min-width:0}
.hm-row .t b{display:block;font-size:17px;line-height:1.25}
.hm-row .t span{display:block;color:var(--dim);font-size:14.5px;line-height:1.35;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-row.done .t b{color:var(--dim)}
.hm-row.done .hm-chip{opacity:.55}
.hm-st{flex:0 0 auto;color:var(--dim)}
.hm-st i{font-style:normal}
.hm-tick{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#E6F6EC;color:var(--good);font-weight:800}
.hm-go{display:inline-block;background:var(--c);color:#fff;font-weight:700;font-size:14.5px;border-radius:99px;padding:7px 16px}
.hm-count{display:inline-block;min-width:30px;text-align:center;background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c);font-weight:800;border-radius:99px;padding:5px 10px}
.hm-grid{display:grid;gap:10px}
.hm-3{grid-template-columns:repeat(3,1fr)}
.hm-4{grid-template-columns:repeat(4,1fr)}
.hm-5{grid-template-columns:repeat(5,1fr)}
.hm-5 .hm-tile{min-height:160px}
.hm-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:var(--sheet);border:1px solid var(--rule);border-radius:16px;padding:14px;min-height:150px;
  box-shadow:0 10px 24px -22px rgba(30,30,80,.55)}
.hm-tile .hm-chip{width:38px;height:38px;border-radius:11px;font-size:14px;margin-bottom:6px}
.hm-tile b{font-size:16.5px;line-height:1.2}
.hm-tile .hm-sub{color:var(--dim);font-size:13.5px;line-height:1.35}
.hm-tile .hm-stat{margin-top:auto;padding-top:8px;font-size:13px;font-weight:700;color:var(--c)}
.hm-dots{display:flex;gap:4px;margin-top:auto;padding-top:8px}
.hm-dots i{width:12px;height:12px;border-radius:50%;border:2px solid var(--rule);background:#fff}
.hm-dots i.on{background:var(--good);border-color:var(--good)}
.hm-dots i.half{background:#E2A100;border-color:#E2A100}
.hm-dots i.low{background:var(--bad);border-color:var(--bad)}
.hm-tiles{grid-template-columns:repeat(3,1fr)}
.hm-tiles .tile{min-height:104px}
.hm-tiles .tile-g{font-size:38px}
.hm-tiles > .tile:last-child:nth-child(odd){grid-column:auto;min-height:104px}
@media (max-width:700px){
  .hm-4{grid-template-columns:repeat(2,1fr)}
  .hm-5{grid-template-columns:repeat(2,1fr)}
  .hm-5 > .hm-tile:last-child:nth-child(odd){grid-column:span 2;min-height:0}
  .hm-3{grid-template-columns:1fr}
  .hm-3 .hm-tile{flex-direction:row;flex-wrap:wrap;align-items:center;min-height:0;column-gap:12px}
  .hm-3 .hm-tile .hm-chip{margin:0}
  .hm-3 .hm-tile b{flex:1}
  .hm-3 .hm-tile .hm-sub{flex-basis:100%}
  .hm-3 .hm-tile .hm-stat{padding-top:2px}
  .hm-tiles{grid-template-columns:repeat(2,1fr)}
  .hm-tiles > .tile:last-child:nth-child(odd){grid-column:span 2}
  .hm-me span{display:none}
  .hm-me{padding:9px}
  .hm-hi .wordmark{font-size:26px}
  .hm-top{gap:10px}
  .hm-top .ring{width:50px;height:50px}
  .hm-hi p{font-size:13.5px}
}

/* ---------- today's session (the hero on the home page) ---------- */
.hm-hero{background:linear-gradient(135deg,#2848C4,#5B3FD6);color:#fff;border-radius:18px;padding:16px 18px 14px;margin-top:16px;box-shadow:0 14px 30px -18px rgba(40,72,196,.75)}
.hm-hero-t b{display:block;font-size:23px;line-height:1.15;letter-spacing:-.02em;font-family:'Bricolage Grotesque','Atkinson Hyperlegible',system-ui,sans-serif}
.hm-hero-t span{display:block;color:rgba(255,255,255,.82);font-size:14.5px;margin-top:2px}
.hm-plan{list-style:none;margin:12px 0 14px;padding:0;display:grid;gap:7px}
.hm-plan li{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;line-height:1.3}
.hm-plan li i{flex:0 0 auto;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.24);font-style:normal;font-weight:800;font-size:12.5px;display:grid;place-items:center;margin-top:1px}
.hm-plan li span{min-width:0}
.hm-plan li.done{opacity:.62;text-decoration:line-through}
.hm-hero .btn{background:#fff;color:#2848C4;box-shadow:none}
.hm-hero.primes{background:linear-gradient(135deg,#1E88E5,#0FA39A);box-shadow:0 14px 30px -18px rgba(30,136,229,.75)}
.hm-hero.primes .btn{color:#1E88E5}
.hm-hero.done{background:var(--sheet);color:var(--ink);border:1px solid var(--rule);box-shadow:none;display:flex;align-items:center;gap:12px;padding:14px 18px}
.hm-hero.done .hm-hero-t{flex:1;min-width:0}
.hm-hero.done .hm-hero-t b{font-size:19px;color:var(--good)}
.hm-hero.done .hm-hero-t span{color:var(--dim)}
.hm-hero.done .link{padding:6px 0;font-size:15px;flex:0 0 auto}
.devices.parents{margin-top:12px;border-style:solid;border-color:#1F2A5C33}

/* ---------- for parents ---------- */
.pa-ready{display:flex;gap:14px;align-items:center;background:var(--sheet);border:1px solid var(--rule);border-radius:18px;padding:12px 14px}
.pa-ring{flex:0 0 auto;width:124px}
.pa-ring .sring{width:124px;height:124px}
.pa-ring .sr-in b{font-size:30px}
.pa-ring .sr-in span{font-size:12px}
.pa-ready-t{flex:1;min-width:0}
.pa-ready-t p{margin:8px 0 2px;font-size:15px;color:var(--dim);line-height:1.4}
.pa-ready-t .link{padding:4px 0;font-size:15px}
.pa-status{display:inline-block;border-radius:99px;padding:5px 12px;font-weight:700;font-size:14px;background:var(--blue-soft);color:var(--blue);line-height:1.3}
.pa-status.good{background:#E6F6EC;color:var(--good)}
.pa-status.bad{background:var(--bad-soft);color:var(--bad)}
.pa-chart{width:100%;height:auto;display:block;margin:12px 0 0;background:var(--sheet);border:1px solid var(--rule);border-radius:14px;padding:6px 4px 2px}
.pa-days{display:flex;gap:6px;margin:4px 0 10px}
.pa-days i{flex:1;max-width:44px;aspect-ratio:1;border-radius:50%;border:2px solid var(--rule);display:grid;place-items:center;font-size:13px;font-style:normal;font-weight:700;color:var(--dim);background:var(--sheet)}
.pa-days i.on{background:var(--good);border-color:var(--good);color:#fff}
.pa-days i.today{border-color:var(--blue);box-shadow:0 0 0 2px #fff inset}
.pa-miss{padding:10px 0;border-top:1px solid var(--rule)}
.pa-miss:first-child{border-top:0}
.pa-miss .q{font-size:15.5px;line-height:1.35}
.pa-miss .a{color:var(--dim);font-size:14px;margin-top:3px}
.pa-miss .a .frac{font-size:13px}
.seg{display:flex;gap:6px;margin:4px 0 8px}
.seg button{flex:1;border:1.5px solid var(--rule);background:var(--sheet);border-radius:10px;padding:11px 6px;font-weight:700}
.seg button.on{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
@media (max-width:420px){.pa-ready{flex-direction:column;align-items:stretch;text-align:center}.pa-ring{margin:0 auto}}

/* ---- Needs work (27 Oct 2026): the badge, the Watch together card on Today and the For parents page, the lesson banner ----
   One mark everywhere: a small red screen with a play button — "watch a video on this together". Ticked green once watched. */
.nw-badge{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;margin-left:8px;padding:2px 9px 2px 6px;border-radius:99px;
  background:#FDECEA;color:var(--bad);font:800 12.5px/1.4 'Atkinson Hyperlegible',system-ui,sans-serif;letter-spacing:.01em;white-space:nowrap}
.nw-badge svg{flex:0 0 auto}
.nw-badge.sm{padding:3px;margin-left:6px}
.nw-badge.watched{background:#E6F4EC;color:var(--good)}
.hm-plan .nw-badge{background:#fff;color:var(--bad)}
.hm-plan .nw-badge.watched{color:var(--good)}
.nw-card{background:var(--sheet);border:1px solid #F3C9C4;border-left:5px solid var(--bad);border-radius:18px;margin-top:16px;padding:4px 0;
  box-shadow:0 10px 26px -22px rgba(194,53,43,.6)}
.nw-h{display:flex;gap:14px;align-items:center;padding:14px 18px 8px}
.nw-h h2{margin:0;font-size:22px;letter-spacing:-.02em}
.nw-h p{margin:2px 0 0;color:var(--dim);font-size:14.5px;line-height:1.35}
.nw-logo{flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:var(--bad);color:#fff;display:grid;place-items:center}
.nw-logo svg rect,.nw-logo svg path[stroke]{fill:#fff;stroke:#fff}
.nw-logo svg path[fill="#fff"]{fill:var(--bad)}
.nw-row{border-top:1px solid var(--rule);padding:12px 18px}
.nw-row .t b{display:block;font-size:17px;line-height:1.3}
.nw-row .t > span{display:block;color:var(--dim);font-size:14.5px;line-height:1.4;margin-top:2px}
.nw-row .t .ex{color:var(--ink);background:var(--page);border-radius:10px;padding:8px 10px;margin-top:8px}
.nw-row .t .ex em{font-style:normal;color:var(--bad);font-weight:700}
.nw-row .t .ex strong{color:var(--good)}
.nw-row.watched .t b{color:var(--dim)}
.nw-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.nw-watch,.nw-try,.nw-done{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:8px 14px;font-weight:700;font-size:15px;text-decoration:none;border:0}
.nw-watch{background:var(--bad);color:#fff}
.nw-watch svg rect,.nw-watch svg path[stroke]{fill:#fff;stroke:#fff}
.nw-watch svg path[fill="#fff"]{fill:var(--bad)}
.nw-try{background:var(--blue-soft);color:var(--blue)}
.nw-done{background:none;color:var(--dim);border:1px solid var(--rule)}
.nw-done[aria-pressed="true"]{color:var(--good);border-color:#BFE0CC;background:#F1F9F4}
.nw-banner{background:#FFF6F5;border:1px solid #F3C9C4;border-radius:14px;padding:12px 14px;margin:12px 0 4px}
.nw-banner .nw-badge{margin-left:0}
.nw-banner p{margin:8px 0 0;font-size:15.5px;line-height:1.4}

/* ---------- the navy exam look (29 Oct 2026, Adam liked it on the mock-up): the 11+ tests sit as one rounded sheet on navy ---------- */
body.exam{background:#1F2A5C}
body.exam #app{background:var(--page);border-radius:26px;margin-top:max(12px,env(safe-area-inset-top));min-height:calc(100vh - 12px);
  padding-top:16px;box-shadow:0 20px 50px -30px rgba(0,0,0,.6)}
@media (max-width:672px){body.exam #app{margin-left:8px;margin-right:8px;border-radius:22px}}
body.exam .dock{background:linear-gradient(transparent,#1F2A5C 30%)}
body.exam .dock-in{max-width:608px}

/* ---------- real 11+ papers ---------- */
.rp-list{display:flex;flex-direction:column}
.rp-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:none;border:0;
  border-top:1px solid var(--rule);padding:14px 16px;min-height:64px}
.rp-row:first-child{border-top:0}
.rp-row span{display:flex;flex-direction:column;gap:2px;min-width:0}
.rp-row small{color:var(--dim);font-size:14.5px}
.rp-row b.good{color:var(--good)} .rp-row b.bad{color:var(--bad)}
.rp-go{color:var(--blue);white-space:nowrap}
.rp-note{color:var(--dim);font-size:14.5px;margin:12px 2px 0}
.rp-head{display:flex;align-items:center;gap:12px;background:#1F2A5C;color:#fff;border-radius:18px;padding:12px 14px;margin-bottom:12px}
.rp-head .t{flex:1;min-width:0}
.rp-head .t b{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-head .t span{color:#C9D2F0;font-size:14px}
.rp-head .icon-btn{background:rgba(255,255,255,.12);border-color:transparent;color:#fff}
.rp-clock{background:#fff;color:#1F2A5C;font-weight:700;font-size:20px;padding:6px 14px;border-radius:999px;font-variant-numeric:tabular-nums}
.rp-clock.low{background:#FCE4E2;color:var(--bad)}
.pv-bar{display:flex;justify-content:space-between;align-items:center;color:var(--dim);font-size:14.5px;margin:0 2px 6px}
.pv{background:#E9ECF2;border-radius:16px;height:58vh;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px;display:flex;flex-direction:column;gap:8px}
.pv-short{height:46vh}
.pv-page{display:block;width:100%;height:auto;background:#fff;border-radius:6px;box-shadow:0 2px 8px -4px rgba(0,0,0,.25)}
.pv.big .pv-page{width:190%;max-width:none}
.pv-msg{margin:auto;text-align:center;color:var(--dim);padding:20px}
.pv-msg a{color:var(--blue);font-weight:700}
.rp-sheet{margin-top:12px;padding:14px 16px 16px}
.rp-sheet-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.rp-sheet-h span{color:var(--dim);font-size:14.5px}
.rp-tip{color:var(--dim);font-size:14.5px;margin:6px 0 12px}
.rp-tip-light{margin-top:0}
/* one question at a time (30 Oct 2026): the strip of question numbers, the question cut from the page, a box per part */
.rp-strip{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 8px;margin:0 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rp-strip::-webkit-scrollbar{display:none}
.rp-chip{flex:0 0 auto;min-width:40px;height:40px;border-radius:999px;border:1.5px solid var(--rule);background:#fff;font:inherit;font-weight:700;font-size:16px;color:var(--dim);padding:0 10px}
.rp-chip.has{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
.rp-chip.now{background:#1F2A5C;color:#fff;border-color:#1F2A5C}
.rp-qbox{background:#fff;border:1px solid #CBD6EA;border-radius:14px;overflow:auto;-webkit-overflow-scrolling:touch;min-height:120px;display:flex;flex-direction:column}
.rp-qbox canvas{display:block;width:100%;height:auto}
.rp-qbox.big canvas{width:170%;max-width:none}
.rp-qbox.pv{height:58vh}
.rp-parts{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.rp-part{display:flex;align-items:center;gap:10px}
.rp-part.col{flex-direction:column;align-items:stretch;gap:8px}
.rp-part .k{min-width:36px;font-weight:800;font-size:19px;color:#1F2A5C}
.rp-part .k:empty{display:none}
.rp-part .ans{flex:1;--c:#1F2A5C;padding:4px 8px 4px 16px;box-shadow:0 3px 0 var(--c);border-width:2px}
.rp-part .ans input{font-size:26px;padding:8px 0}
.rp-kb{flex:0 0 auto;height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--rule);background:var(--page);color:var(--dim);font:inherit;font-weight:700;font-size:13px;letter-spacing:.04em}
.rp-kb[aria-pressed="true"]{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
.rp-table{border-collapse:collapse;width:100%;background:#fff;font-size:17px;table-layout:fixed}
.rp-table th:first-child{width:24%}
.pv-links{display:flex;gap:18px}
.rp-table th,.rp-table td{border:1px solid #CBD6EA;padding:6px 8px;text-align:center}
.rp-table th{background:var(--page);font-weight:700}
.rp-table input{width:100%;min-width:56px;border:0;outline:none;font:inherit;font-size:21px;font-weight:700;text-align:center;background:var(--blue-soft);border-radius:6px;padding:8px 4px;color:var(--ink)}
.rp-table input:focus{box-shadow:0 0 0 2px var(--blue)}
.rp-part .hint{margin:0;font-size:14.5px}
.rp-nav{display:flex;gap:10px}
.rp-nav .btn{flex:1;margin:0}
.rp-nav .btn[disabled]{opacity:.45}
.rp-mrow{display:flex;align-items:center;gap:10px;border-top:1px solid var(--rule);padding:10px 0}
.rp-mrow:first-of-type{margin-top:8px}
.rp-q{font-weight:700;min-width:38px}
.rp-his{flex:1;min-width:0;overflow-wrap:anywhere}
.rp-his i{color:var(--dim)}
.rp-step{display:flex;align-items:center;gap:8px}
.rp-step b{min-width:22px;text-align:center;font-size:19px}
.rp-zero{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px}
.rp-zero span{background:#FCE4E2;color:var(--bad);font-weight:700;border-radius:999px;padding:4px 12px}
body.exam .dock .btn:not(.quiet){background:var(--blue)}

/* Recite it (31 Oct 2026): the rhyme, its hidden words, and the gaps to fill */
.board.recite{text-align:center;font-size:21px;line-height:1.55;font-weight:700;padding:18px 14px}
.board.recite p{margin:4px 0}
.board.recite i{display:inline-block;border-bottom:3px solid #c9bfe0;margin:0 1px;font-style:normal}
.board.recite .gap{display:inline-block;min-width:84px;border-bottom:3px solid #8E44AD;margin:0 3px;color:#8E44AD}
.board.recite .gap.ok{color:var(--good);border-color:var(--good)}
.board.recite .gap.no{color:var(--bad);border-color:var(--bad)}
.board.recite .gap s{color:var(--good);text-decoration:none;font-size:.8em}
.rc-tiles{margin-top:10px}
/* the Daily test: a section's rule, and the study sheets */
.d-ready{text-align:center;padding:48px 12px}
.d-rule{font-size:24px;line-height:1.6;margin:0}
.d-rule .good{color:var(--good)} .d-rule .bad{color:var(--bad)}
.d-study{margin-top:12px}
.st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.st-tile{background:#fff;border:1px solid var(--rule);border-radius:12px;padding:6px;text-align:center;display:flex;flex-direction:column;align-items:center}
.st-tile svg{width:100px!important;max-width:100%!important;margin:0 0 2px!important}
.st-tile b{font-size:15px;line-height:1.2}
.st-tile span{font-size:13px;line-height:1.25;color:var(--dim)}
.st-facts{margin-top:10px;background:#fff;border:1px solid var(--rule);border-radius:12px;padding:4px 14px}
.st-facts div{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid var(--rule);font-size:16px}
.st-facts div:first-child{border-top:0}
