/* THE LOOK: "THE LINE" (founder decisions 2026-11-18, ROADMAP "Founder decisions taken
   2026-11-18 (the learner redesign …)"; the look written down and the 35 pictures are in
   learner-model/docs/learner-redesign-2026-11-18/, and mocks.html there wins where the
   words and the drawing differ).

   ONE FILE, LOADED LAST on the learner home only, so the whole look can be dialled back
   in one place, as the learner refresh kit before it (kit.css). Three rules it keeps:

   - The platform's own purple stays (the founder's build message): the shared tokens in
     shell.css (--paper, --surface, --ink, --muted, --accent …) are READ here, never
     redeclared. Everything the look adds has a new name: --look-* and --w-* below.
   - Movement is unchanged: no animation or transition is added here, and none is
     removed (the founder: "keep today's animations exactly as they are and add no new
     ones"; animation, clicks and feel are a later round).
   - A line is drawn only where the order is real and its length known. The line itself
     is drawn by home-core.js (H.lineHtml); this file only paints it.
*/

/* ------------------------------------------------------------- tokens -- */
:root, :root[data-theme="purple"]{
  --look-tint: color-mix(in srgb, var(--ink) 10%, transparent);
  --look-tint2: color-mix(in srgb, var(--ink) 7%, transparent);
  --look-tintq: color-mix(in srgb, var(--ink) 14%, transparent);
  --look-tint3: color-mix(in srgb, var(--ink) 17%, transparent);
  --look-hair: color-mix(in srgb, var(--ink) 38%, transparent);
  --look-rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --look-card-edge: none;
  --look-bar: #3F1B5C;
  --look-bar-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  --look-well: var(--paper);
  --look-pad: #170522;
  --look-key: var(--surface);
  --look-key-shadow: none;
  --look-gold-text: var(--accent);
  --look-gold-edge: none;
  --look-goldwash: rgba(246, 189, 0, .15);
  --look-neutral: #E9DCF5;       /* "Your map", practice, hints, the quick check */
  --look-ahead: 34%;             /* a line still ahead: its colour at this strength */
  --look-on-wc: #260B37;         /* a tick on a world-coloured stop */
  --look-halo: 0 0 0 2.5px var(--ink), 0 0 0 8px rgba(246, 189, 0, .2);
  /* The six worlds' own colours (static/home/questmap.js), unchanged. */
  --w-number: #F6BD00; --w-ratio: #FF8A5B; --w-algebra: #4FD1A5;
  --w-geometry: #F58BAF; --w-probability: #B79CF5; --w-statistics: #F5619E;
}
:root[data-theme="black"]{
  --look-tint: color-mix(in srgb, var(--ink) 9%, transparent);
  --look-tint2: color-mix(in srgb, var(--ink) 6%, transparent);
  --look-tintq: color-mix(in srgb, var(--ink) 13%, transparent);
  --look-tint3: color-mix(in srgb, var(--ink) 15%, transparent);
  --look-hair: color-mix(in srgb, var(--ink) 36%, transparent);
  --look-rule: color-mix(in srgb, var(--ink) 12%, transparent);
  --look-card-edge: 0 0 0 1px #242B35;
  --look-bar: #1D232D;
  --look-bar-shadow: 0 0 0 1px #2A323D, 0 10px 28px rgba(0, 0, 0, .6);
  --look-well: var(--paper);
  --look-pad: #07090C;
  --look-gold-text: var(--accent-ink);
  --look-neutral: #D5DCE5;
  --look-on-wc: #0E1116;
}
:root[data-theme="white"]{
  --look-tint: color-mix(in srgb, var(--ink) 7%, transparent);
  --look-tint2: color-mix(in srgb, var(--ink) 4.5%, transparent);
  --look-tintq: color-mix(in srgb, var(--ink) 9%, transparent);
  --look-tint3: color-mix(in srgb, var(--ink) 10%, transparent);
  --look-hair: color-mix(in srgb, var(--ink) 45%, transparent);
  --look-rule: #E9DEEE;
  --look-card-edge: 0 0 0 1px #E0D2E8;
  --look-bar: #FFFFFF;
  --look-bar-shadow: 0 0 0 1px #E9DEEE, 0 10px 26px -6px rgba(38, 11, 55, .25);
  --look-well: #F6F0F8;
  --look-pad: #F1E8F4;
  --look-key: #FFFFFF;
  --look-key-shadow: 0 1px 0 rgba(38, 11, 55, .2);
  --look-gold-text: var(--accent-ink);
  --look-gold-edge: 0 0 0 1.5px #B88A00;
  --look-goldwash: rgba(246, 189, 0, .22);
  --look-neutral: #6B5A7A;
  --look-ahead: 42%;
  --look-on-wc: #FFFFFF;
  /* Darker world colours, so each reads on white (Claude's own, by eye, as drawn). */
  --w-number: #826508; --w-ratio: #B4441A; --w-algebra: #186741;
  --w-geometry: #A8325E; --w-probability: #5F3DC4; --w-statistics: #B4185E;
}

/* ----------------------------------------------------------- the line -- */
/* A row of stops. Each stop's cell draws the piece of line to the next stop (::before):
   walked (solid, the line's colour), ahead (the colour at --look-ahead), dashed (passed
   without stopping: into and between "already shown" stops), dotted (the tail for
   "usually one more"). --rl is the line's colour, set on the line by H.lineHtml. */
.rl{ --rl: var(--look-neutral); --rl-bg: var(--surface); display:flex; list-style:none; margin:14px 0 0; padding:0; }
.rl-sc{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative;
  font:500 12.5px/1.25 "Poppins", system-ui, sans-serif; color:var(--muted); text-align:center; }
.rl-sc::before{ content:""; position:absolute; top:12px; left:50%; width:100%; height:4px;
  background:color-mix(in srgb, var(--rl) var(--look-ahead), transparent); }
.rl-sc:last-child::before{ display:none; }
.rl-sc.walk::before{ background:var(--rl); }
.rl-sc.dash::before{ background:repeating-linear-gradient(to right, var(--rl) 0 7px, transparent 7px 14px); }
.rl-sc.more::before{ display:block; background:none; height:0; width:72%;
  border-top:4px dotted color-mix(in srgb, var(--rl) 55%, transparent); }
.rl-sc.tail{ flex:.5 1 0; }
.rl-sc.on{ color:var(--ink); font-weight:600; }
.rl-stn{ position:relative; z-index:1; flex:none; display:flex; align-items:center; justify-content:center;
  width:16px; height:16px; margin:6px 0; border-radius:50%; box-sizing:border-box;
  border:3px solid color-mix(in srgb, var(--rl) 60%, var(--rl-bg)); background:var(--rl-bg); }
.rl-stn.here{ width:28px; height:28px; margin:0; border:7px solid var(--accent); box-shadow:var(--look-halo); }
.rl-stn.fill{ background:var(--rl); border-color:var(--rl); }
.rl-stn.done{ width:26px; height:26px; margin:1px 0; border:0; background:var(--rl); color:var(--look-on-wc); }
.rl-stn.shown{ width:26px; height:26px; margin:1px 0; border:0; color:var(--ink);
  background:color-mix(in srgb, var(--rl) 42%, var(--rl-bg)); }
.rl-stn svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; }
.rl-stn.shown svg{ stroke-width:2.6; }
/* The small line in a card's corner. */
.rl.rl-mini{ margin:0 0 0 auto; width:124px; flex:none; }
.rl-mini .rl-stn{ width:14px; height:14px; margin:7px 0; border-width:3px; }
.rl-mini .rl-stn.done{ width:22px; height:22px; margin:3px 0; }
.rl-mini .rl-stn.done svg{ width:13px; height:13px; }
.rl-mini .rl-sc::before{ top:12.5px; }
/* The finished line at the end of a topic. */
.rl.rl-big .rl-sc::before{ top:17px; height:5px; }
.rl-big .rl-stn.done{ width:36px; height:36px; }
.rl-big .rl-stn.done svg{ width:21px; height:21px; }
.rl-big .rl-sc{ color:var(--ink); }
/* A quarter larger on a computer. */
@media (min-width:841px){
  .rl-sc{ font-size:13.5px; gap:8px; }
  .rl-sc::before{ top:15px; height:5px; }
  .rl-stn{ width:20px; height:20px; margin:7px 0; border-width:4px; }
  .rl-stn.here{ width:34px; height:34px; margin:0; border-width:8px; }
  .rl-stn.done, .rl-stn.shown{ width:32px; height:32px; margin:1px 0; }
  .rl-stn.done svg, .rl-stn.shown svg{ width:18px; height:18px; }
  .rl-stn.fill{ width:22px; height:22px; margin:6px 0; }
}

/* ----------------------------------------------------------- buttons -- */
/* One gold button on a screen: a pill, 54 high. The press still moves it down by 3px as
   before (kit.css's .k-btn:active); only the lip under it goes, as drawn. */
.k-btn{ height:54px; border-radius:27px; font:600 17px/1 "Poppins", system-ui, sans-serif;
  box-shadow:var(--look-gold-edge); }
.k-btn:active{ box-shadow:var(--look-gold-edge); }
.k-btn.k-lg{ height:54px; border-radius:27px; font-size:17px; }
/* A second action: a quiet pill in a tint of the text colour. */
.k-btn.k-quiet{ height:44px; border-radius:22px; padding:0 20px; background:var(--look-tintq); color:var(--ink);
  box-shadow:none; font-size:15px; }
.k-btn.k-quiet.k-lg{ height:50px; border-radius:25px; }

/* -------------------------------------------------- the counters (chips) -- */
.hud-pill{ height:34px; padding:0 10px; border-radius:17px; border:0; background:var(--look-tint); gap:6px;
  font:600 13px/1 "Poppins", system-ui, sans-serif; }
.hud-pill:hover{ background:var(--look-tintq); }
.hud-pill svg{ width:15px; height:15px; }
.topbar-pip.labelled{ border:0; background:var(--look-tint); }
@media (max-width:520px){
  .hud-pill{ height:34px; padding:0 10px; font-size:13px; }
  .hud-pill svg{ width:15px; height:15px; }
}

/* --------------------------------------------------------- the top bar -- */
/* No rule under the top bar (as drawn); it keeps the shell's own see-through fill, so
   what scrolls under it never shows through sharp. */
.app .topbar{ border-bottom:0; }

/* ------------------------------------------- the bar along the bottom -- */
/* It floats: 60 high, round, 12 from each side and 10 from the foot. What scrolls under
   it fades out before the bar starts. */
@media (max-width:840px){
  .tabbar{ left:12px; right:12px; bottom:calc(10px + env(safe-area-inset-bottom, 0px)); height:60px;
    padding:5px; border:0; border-radius:30px; background:var(--look-bar); box-shadow:var(--look-bar-shadow); }
  .tab{ gap:4px; border-radius:25px; color:var(--muted); font:500 12px/1 "Poppins", system-ui, sans-serif; }
  .tab .tab-ic{ width:auto; height:auto; background:none; }
  .tab.on{ background:var(--look-tint3); color:var(--ink); }
  .tab.on .tab-ic{ background:none; }
  .app:not(.focus) .tabbar::before{ content:""; position:fixed; left:0; right:0; bottom:0; height:124px; z-index:-1;
    pointer-events:none; background:linear-gradient(to bottom, transparent, var(--paper) 34%); }
  .app:not(.focus) .content{ padding-bottom:calc(60px + 10px + 40px + env(safe-area-inset-bottom, 0px)); }
}

/* ------------------------------------------------------- the side menu -- */
.rail .nav-item{ min-height:44px; border-radius:22px; font:500 15px/1 "Poppins", system-ui, sans-serif; color:var(--muted); }
.rail .nav-item.on{ background:var(--look-tint3); color:var(--ink); font-weight:600; }
.rail .nav-item.on svg{ color:var(--ink); }
.rail .rail-section{ font:600 13px/1 "Poppins", system-ui, sans-serif; letter-spacing:0; text-transform:none; color:var(--muted); }
/* Worlds are squares; stops are circles (never swapped). Each square carries its world's own
   drawing (the abacus, the bars, the die...), in dark ink on the world's colour: the redesign
   of 18 Nov had hidden it, and the founder asked for it back (23 Nov 2026). The square here is
   the world's bright colour on every theme, so the ink is the dark one on every theme. */
.rail .world{ min-height:46px; border-radius:16px; }
.rail .world .ring{ width:28px; height:28px; border-radius:8px; background:var(--wsq, var(--w)); color:#260B37; }
.rail .world .ring > span{ width:auto; height:auto; border-radius:0; background:none; color:inherit; }
.rail .world .ring > span svg{ width:19px; height:19px; stroke-width:1.6; }
.rail .world .w-name{ font:500 14.5px/1.25 "Poppins", system-ui, sans-serif; }
.rail .world .w-sub{ font:400 12px/1.25 "Poppins", system-ui, sans-serif; color:var(--muted); }
.rail .world.on{ background:color-mix(in srgb, var(--wsq, var(--w)) 18%, transparent); }

/* ------------------------------------------------------------- Today -- */
.landing.today .landing-hi{ font:400 28px/1.2 "ITC Ronda", "Poppins", sans-serif; }
.td-sub{ font-size:16px; line-height:1.45; color:var(--ink); }
.landing.today .landing-earlier{ font-size:13.5px; color:var(--muted); gap:5px; }
/* "Earlier today: …" is one quiet sentence, not a label in capitals. */
.landing.today .le-lead{ font:inherit; letter-spacing:0; text-transform:none; color:inherit; }
.landing.today .le-lead::after{ content:":"; }
/* The card with the one next thing: flat, round, no picture (as drawn). */
.td-hero{ display:block; min-height:0; padding:18px; border:0; border-radius:26px; box-shadow:var(--look-card-edge); }
.td-hero .td-pic{ display:none; }
.td-hero .td-body{ display:block; padding:0; }
.td-eyebrow{ font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; letter-spacing:0; text-transform:none;
  color:var(--hcw, var(--hc)); }
.td-title{ margin-top:5px; font:400 25px/1.2 "ITC Ronda", "Poppins", sans-serif; }
.td-hero .rl{ margin-left:-16px; margin-right:-16px; }
.td-hero .td-line{ margin-top:12px; font-size:14px; line-height:1.45; color:var(--muted); }
/* With a road on the card, the line says which stop is next; "Stop 2 of 4" would repeat it. */
.td-hero.has-road .td-line{ display:none; }
.td-actions{ margin-top:14px; padding-top:0; gap:0; }
.td-actions .td-go{ width:100%; min-width:0; }
/* "Talk it through": a way out, so plain text, never a button shape. */
.cont-doors .door.k-btn{ width:100%; height:44px; margin-top:4px; background:none; box-shadow:none; color:var(--muted);
  font:500 14.5px/1 "Poppins", system-ui, sans-serif; }
.td-card, .td-qa{ border:0; box-shadow:var(--look-card-edge); }
.td-card{ border-radius:26px; padding:18px; }
/* The quick ways in are rows: 50 high, round, a faint tint, a name and an arrow. */
.td-quick{ gap:8px; }
.td-qa{ min-height:50px; padding:8px 16px; border-radius:18px; background:var(--look-tint2); box-shadow:none; }
.td-qa-ic{ color:var(--muted); }
.td-qa-t b{ font:500 15.5px/1.25 "Poppins", system-ui, sans-serif; }
.td-qa-t span{ font-size:13.5px; color:var(--muted); }
.td-qa-go{ stroke:var(--muted); }
/* THE FIRST SCREEN (founder, 2026-11-22: the critique's issue 4). Until part 1 of the map is
   done (home-landing.js setFirstStep) the map's card stands alone: the day's cards and the shelf
   fold behind "Your day" (the shelf: the founder's "b" the same morning), and the quick ways in
   shrink to one quiet row of small links. */
.landing.today.td-first .td-cards, .landing.today.td-first .shelf{ display:none; }
.landing.today.td-first .td-quick{ display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.landing.today.td-first .td-qa{ min-height:44px; padding:6px 16px 6px 12px; gap:8px; border-radius:999px;
  background:none; box-shadow:inset 0 0 0 1px var(--line); color:var(--muted); }
.landing.today.td-first .td-qa-ic svg{ width:18px; height:18px; }
.landing.today.td-first .td-qa-t{ flex-direction:row; align-items:baseline; gap:6px; }
.landing.today.td-first .td-qa-t b{ font-size:14px; }
.landing.today.td-first .td-qa-t span, .landing.today.td-first .td-qa-go{ display:none; }
.landing.today.td-first .td-day-go .td-qa-t span{ display:inline; font-size:13px; }
/* "Ask the tutor" is on Today at every width (Giammarco's pick 4a, 2026-11-23). From 22 Nov
   it had been the rail's alone on a computer (the critique's issue 4: no doubles), but on an
   iPad held sideways, and on a small laptop, the rail's button sits below the bottom of the
   screen (779 points down the rail; an 11-inch iPad shows about 750), so Today shows it too,
   as it does on a phone. The rail keeps its own, moved up under Me, above the worlds (pick
   A a, the same day), so held sideways it is in view there too (index.html). */
/* 1a (pick, 2026-11-23): "Not you? Sign out" under the greeting, quiet, a 44-tall tap. */
.td-notyou{ margin:6px 0 0; font-size:14px; line-height:1.4; color:var(--muted); }
.td-notyou[hidden]{ display:none; }
.td-notyou button{ display:inline-flex; align-items:center; min-height:44px; margin:-12px 0; padding:0 6px;
  border:0; background:none; color:var(--ink); font:600 14px/1 "Poppins", system-ui, sans-serif;
  text-decoration:underline; text-underline-offset:3px; cursor:pointer; border-radius:8px; }
.td-notyou button:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }
@media (min-width:841px){
  .landing.today .landing-hi{ font-size:34px; }
  .td-sub{ font-size:17px; }
  .landing.today .landing-earlier{ font-size:14px; }
  .td-hero{ padding:24px; }
  .td-eyebrow{ font-size:14px; }
  .td-title{ font-size:30px; }
  .td-hero .rl{ margin-left:-14px; margin-right:-14px; margin-top:18px; }
  .td-hero .td-line{ font-size:14.5px; }
  .td-actions{ flex-wrap:nowrap; gap:26px; margin-top:18px; }
  .td-actions .td-go{ width:auto; padding:0 38px; }
  .cont-doors .door.k-btn{ width:auto; margin-top:0; padding:0; font-size:15px; }
  .td-quick{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px 16px; }
}

/* ---------------------------------------------------- a question's card -- */
/* The question in a flat card; the answer in a "well" (the page's own colour inside the
   card); the keys and chips in tints of the text colour; Check in the gold pill. The keys
   still move 2px when pressed, as before (kit.css's .kp-key:active). */
.dg-qcard{ border:0; border-radius:26px; padding:18px; box-shadow:var(--look-card-edge); }
.dg-prompt{ font:400 21px/1.4 "Poppins", system-ui, sans-serif; margin:0 0 18px; }
.dg-input{ height:54px; padding:0 16px; border:0; border-radius:18px; background:var(--look-well);
  font:500 21px/1 "Poppins", system-ui, sans-serif; }
.dg-input:focus{ border:0; box-shadow:0 0 0 2.5px var(--accent); }
.dg-conf-l{ font-size:13.5px; color:var(--muted); }
.dg-chip{ height:40px; padding:0 14px; border:0; border-radius:20px; background:var(--look-tint); color:var(--ink);
  font:500 13.5px/1 "Poppins", system-ui, sans-serif; }
.dg-notsure{ height:44px; padding:0 16px; border:1.5px dashed var(--look-hair); border-radius:22px; color:var(--ink);
  font:500 14px/1 "Poppins", system-ui, sans-serif; }
.dg-ladder .dg-rung{ height:44px; padding:0 16px; border:0; border-radius:22px; background:var(--look-goldwash);
  color:var(--look-gold-text); font:600 14px/1 "Poppins", system-ui, sans-serif; }
.ans-check, .ans-go{ height:54px; padding:0 32px; border-radius:27px; font:600 17px/1 "Poppins", system-ui, sans-serif;
  box-shadow:var(--look-gold-edge); }
.ans-check:active:not([disabled]), .ans-go:active{ box-shadow:var(--look-gold-edge); }
@media (min-width:841px){
  .dg-qcard{ padding:28px; }
  .dg-prompt{ font-size:26px; }
  .dg-chip{ height:44px; border-radius:22px; padding:0 16px; font-size:14px; }
}
@media (max-width:840px){
  .ans-dock{ background:var(--look-pad); border-top:0; border-radius:28px 28px 0 0; padding:14px 12px calc(20px + env(safe-area-inset-bottom, 0px)); gap:8px; }
  .kpad{ gap:8px; }
  .kp-key{ height:50px; border-radius:16px; background:var(--look-key); box-shadow:var(--look-key-shadow);
    font:500 21px/1 "Poppins", system-ui, sans-serif; }
  .kp-key.kp-fn{ background:var(--look-tint2); color:var(--muted); font-size:16px; box-shadow:none; }
  .ans-dock .dg-chip{ height:40px; padding:0 14px; }
  .ans-dock .dg-notsure{ padding:0 16px; }
}

/* ------------------------------------- the shell's buttons on the work screens -- */
/* On the screens where a learner works (a topic, a stop, practice, the assessment), the
   shell's gold button takes the pill and the quiet one the tint. Not the household board
   or the chat, which keep their own small buttons. */
#view-topic .btn:not(.ghost):not(.ghost2), #view-teach .btn:not(.ghost):not(.ghost2),
#view-practice .btn:not(.ghost):not(.ghost2), #view-diagnostic .btn:not(.ghost):not(.ghost2), .flow-cta{
  min-height:54px; padding:0 28px; border-radius:27px; font:600 17px/1 "Poppins", system-ui, sans-serif;
  box-shadow:var(--look-gold-edge); }
#view-topic .btn.ghost2, #view-teach .btn.ghost2, #view-practice .btn.ghost2, #view-diagnostic .btn.ghost2{
  min-height:44px; padding:0 20px; border:0; border-radius:22px; background:var(--look-tintq);
  font:600 15px/1 "Poppins", system-ui, sans-serif; }

/* ------------------------------------------------ the bar does everything (F1 a) -- */
/* On a phone the square menu button goes: Worlds, Me and the rows on Today reach
   everything it opened. Messages and Board stay in the top bar (the drawings leave them
   out on a phone; nothing was decided about them, so they keep their place). */
@media (max-width:840px){ .app .rail-open{ display:none; } }
/* On a computer the side menu keeps the bar's names in the bar's order. Settings lives on
   Me now (F1 a); the homework photo is a row on Today. */
@media (min-width:841px){
  .rail .rail-foot, .rail .nav-item[data-action="lens"]{ display:none; }
}
/* SIGN OUT, FIXED AT THE FOOT OF THE SIDE MENU (founder, 2026-11-24, question 2 a; F3 a of
   2026-11-18 had left it on Me alone). The menu is longer than a laptop's window, so it needs a
   place rather than only showing again: always on screen while the list above scrolls, as a
   teacher's and a carer's are. Sticky at bottom:0 on a backdrop of the menu's own colour that
   fills the menu's 16px padding below it, for the reason shell.css gives at its own account
   row; flex:none keeps its height when the list is longer than the window. */
@media (min-width:841px){
  .rail .rail-signout{ position:sticky; bottom:0; z-index:1; isolation:isolate; flex:none; box-sizing:border-box;
    min-height:44px; margin-top:12px; padding:0 14px; gap:14px; border-radius:22px;
    color:var(--muted); font:500 15px/1 "Poppins", system-ui, sans-serif; }
  .rail .rail-signout svg{ width:20px; height:20px; }
  .rail .rail-signout::before{ content:""; position:absolute; z-index:-2; left:-12px; right:-12px; top:-9px; bottom:-16px;
    background:linear-gradient(var(--rail-edge), var(--rail-edge)) 12px 0 / calc(100% - 24px) 1px no-repeat, var(--rail); }
  .rail .rail-signout::after{ content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; }
  .rail .rail-signout:hover{ background:none; color:var(--ink); }
  .rail .rail-signout:hover::after{ background:var(--accent-wash); }
  .rail .rail-signout:focus-visible{ outline:var(--focus-ring); outline-offset:-2px; }
}

/* ------------------------- only the question, on a computer (L53, 2026-11-24, 6 b) -- */
/* While a question of the first assessment is open the side menu folds away, as it always has
   on a phone (home-diagnostic.js, body.asking). Pause is the way out, or Back once the part can
   no longer pause, and the menu comes back there. */
@media (min-width:841px){
  body.asking .app{ grid-template-columns:minmax(0, 1fr); }
  body.asking .app .rail, body.asking .app .rail-open{ display:none; }
}

/* ----------------------------------------------------- Worlds and Me (pages) -- */
.pl-page{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.pl-h1{ margin:0; padding:0 4px; font:400 28px/1.2 "ITC Ronda", "Poppins", sans-serif; color:var(--ink); }
.pl-card{ background:var(--surface); border-radius:26px; padding:18px; box-shadow:var(--look-card-edge); }
.pl-lab{ margin:0; font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; }
.pl-gold{ color:var(--look-gold-text); }
.pl-h3{ margin:6px 0 0; font:400 21px/1.25 "ITC Ronda", "Poppins", sans-serif; color:var(--ink); text-wrap:balance; }
.pl-carry .rl{ margin-left:-16px; margin-right:-16px; }
.pl-go{ width:100%; margin-top:14px; }
.pl-go svg{ width:18px; height:18px; fill:currentColor; }
.pl-rows{ display:flex; flex-direction:column; gap:8px; }
.pl-row{ display:flex; align-items:center; gap:12px; min-height:50px; padding:8px 14px 8px 16px; border:0; border-radius:18px;
  background:var(--look-tint2); color:var(--ink); font:500 15.5px/1.25 "Poppins", system-ui, sans-serif; text-align:left; cursor:pointer; }
.pl-row:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }
.pl-name{ flex:1 1 auto; min-width:0; }
.pl-v{ font:400 13.5px/1.2 "Poppins", system-ui, sans-serif; color:var(--muted); white-space:nowrap; }
/* Started (the founder's pick 1a, 2026-11-24): a card under Carry on, one row per topic
   with its name, its four stops small, and its next stop, beside the world's square. */
.pl-started{ margin-top:12px; }
.pl-started .pl-rows{ margin-top:12px; }
.pl-started + .pl-rows{ margin-top:12px; }
.pl-start{ gap:14px; padding-top:10px; padding-bottom:10px; }
.pl-st{ display:grid; gap:6px; flex:1 1 auto; min-width:0; }
.pl-st .rl.rl-mini{ margin:0; max-width:100%; }
.pl-next{ font:400 14px/1.3 "Poppins", system-ui, sans-serif; color:var(--muted); }
/* A stop left part-way, back as it was (the founder's pick 2a, 2026-11-24). */
.resume-note{ margin:0 0 14px; padding:10px 14px; border-radius:14px; background:var(--look-tint2);
  font:400 14.5px/1.4 "Poppins", system-ui, sans-serif; color:var(--ink); }
.pl-chev{ width:20px; height:20px; flex:none; fill:none; stroke:var(--muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pl-world{ padding-left:12px; }
/* The phone's list of worlds: the same square and drawing as the side menu. Its square is the
   look's token (--w-<id>), darker on the white theme, so the ink is --look-on-wc (white there). */
.pl-sq{ width:28px; height:28px; border-radius:8px; background:var(--wsq); flex:none; display:grid; place-items:center;
  color:var(--look-on-wc); }
.pl-sq svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.pl-cardhead{ display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; margin:-10px 0 4px;
  padding:0; border:0; background:none; color:var(--ink); font:600 15px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }
.pl-who{ display:flex; align-items:center; gap:14px; }
/* The face in its circle, on the learner's own backdrop (avatar round, 19 Nov 2026, P2 a),
   and a button: it opens the creator (repair 12). The tint shows only behind a monogram. */
.pl-face{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; overflow:hidden; flex:none;
  background:var(--look-tint2); border:0; padding:0; cursor:pointer; }
.pl-face:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
.pl-face > svg{ width:52px; height:52px; display:block; }
.pl-who-t{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.pl-who-t .pl-h3{ margin:0; }
.pl-who-t span{ font-size:13.5px; color:var(--muted); }
.pl-kv{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:12px 2px;
  border-top:1px solid var(--look-rule); font-size:15px; color:var(--ink); }
.pl-kv:first-of-type{ margin-top:16px; }
.pl-kv b{ font:600 16px/1 "Poppins", system-ui, sans-serif; }
@media (min-width:841px){ .pl-h1{ font-size:34px; } }
/* The exam topics (founder decisions 2026-11-23, the exam readiness review): Me's row says
   what the counts are of, with the counts under it, and opens a page that reads as Me does.
   No band colour and no bar anywhere (2 a). home-exam.js draws all of it. */
.ex-row .pl-name{ display:flex; flex-direction:column; gap:3px; }
.ex-row-line{ font:400 13.5px/1.3 "Poppins", system-ui, sans-serif; color:var(--muted); }
/* The counts in Poppins: ITC Ronda draws 0 as a plain circle, so "106" read as "1O6" (the
   same reason the replies ring's numbers are Poppins, 2026-11-22). */
.ex-line{ font:600 20px/1.3 "Poppins", system-ui, sans-serif; font-variant-numeric:tabular-nums; }
#view-exam .back-link{ align-self:flex-start; }
#examBody{ display:flex; flex-direction:column; gap:12px; }
.ex-p{ margin:10px 0 0; font:400 15px/1.45 "Poppins", system-ui, sans-serif; color:var(--ink); }
.ex-p b{ font-weight:600; }
.mm-exam .mm-since{ margin:8px 0 6px; font-weight:600; }
.mm-exam .mm-small + .mm-small{ margin-top:6px; }

/* ------------------------------------------------------- the XP note (B2, B3) -- */
.hud{ position:relative; }
.hud-tip{ position:absolute; top:calc(100% + 8px); right:0; z-index:60; width:min(280px, calc(100vw - 32px)); margin:0;
  padding:12px 14px; border-radius:16px; background:var(--surface); box-shadow:var(--look-card-edge), var(--shadow);
  color:var(--ink); font:500 14px/1.4 "Poppins", system-ui, sans-serif; }

/* ------------------------------------------------------ a round of five (B1) -- */
#pracBody .pr-round{ margin:0 0 2px; }
.pr-round .dg-sess{ font:600 14px/1.2 "Poppins", system-ui, sans-serif; letter-spacing:0; text-transform:none; color:var(--ink); }
.pr-line .rl{ margin:4px 0 14px; }
.bm-round .rl{ margin:10px 0 6px; }
.bm-worked{ margin:6px 0 0; font-size:14px; line-height:1.45; color:var(--muted); text-align:center; text-wrap:balance; }
.bm-round .bm-foot{ display:flex; flex-direction:column; gap:10px; }

/* ------------------------------------------ the fraction key and the keypad (G1) -- */
.dg-alab{ margin:0 0 8px; font:500 13.5px/1 "Poppins", system-ui, sans-serif; color:var(--muted); }
.fx{ display:inline-flex; flex-direction:column; align-items:center; gap:6px; color:var(--ink); }
.fx[hidden]{ display:none; }
.dg-answer:has(> .fx:not([hidden])){ background:var(--look-well); border-radius:18px; padding:14px 16px; }
.fx-box{ min-width:66px; width:6.5ch; max-width:100%; height:40px; padding:0 12px; border:0; border-radius:8px;
  background:var(--look-tint); color:var(--ink); font:500 21px/1 "Poppins", system-ui, sans-serif; text-align:center; }
.fx-box:focus{ outline:none; box-shadow:0 0 0 2.5px var(--accent); }
.fx-bar{ align-self:stretch; height:2.5px; border-radius:2px; background:currentColor; }
.fx-ic{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.kp-key .fx-ic{ width:22px; height:22px; }
.fx-key{ display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 16px; border:0; border-radius:14px;
  background:var(--look-tintq); color:var(--muted); font:500 14px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }
@media (max-width:840px){
  .fx-key{ display:none; }
  .kpad{ display:flex; flex-direction:column; gap:8px; }
  .kp-row{ display:flex; gap:8px; }
  .kp-row .kp-key{ flex:1 1 0; min-width:0; }
}

/* ----------------------------------------- a topic's stops, down the page (C3) -- */
/* Each stop is a row: its mark on the line at the left, its name and where it stands.
   The row draws the line into its stop (::before) and on to the next one (::after), so
   rows of any height join up. The next stop sits in a box with the one gold button. */
.road.vline{ display:block; margin:6px 0 4px; padding:0 0 0 4px; --rl-bg:var(--paper); }
.road.vline .road-stop{ position:relative; display:block; box-sizing:border-box; width:100%; min-height:74px; margin:0;
  padding:18px 0 0 58px; border:0; border-radius:0; background:none; box-shadow:none; color:var(--ink);
  text-align:left; font:inherit; cursor:pointer; }
.road.vline .road-stop::before, .road.vline .road-stop::after{ content:""; position:absolute; left:19px; width:4px;
  background:color-mix(in srgb, var(--rl) var(--look-ahead), transparent); }
.road.vline .road-stop::before{ top:0; height:36px; }
.road.vline .road-stop::after{ top:36px; bottom:0; }
.road.vline .road-stop:first-child::before, .road.vline .road-stop:last-child::after{ display:none; }
.road.vline .road-stop.walk::before, .road.vline .road-stop.out-walk::after{ background:var(--rl); }
.road.vline .road-stop.dash::before, .road.vline .road-stop.out-dash::after{
  background:repeating-linear-gradient(to bottom, var(--rl) 0 7px, transparent 7px 14px); }
.road.vline .rl-stn{ position:absolute; left:21px; top:36px; transform:translate(-50%, -50%); margin:0; }
.road.vline .rs-name{ display:block; font:600 17px/1.25 "Poppins", system-ui, sans-serif; white-space:normal; color:var(--ink); }
.road.vline .rs-state{ display:block; margin-top:2px; font-size:13.5px; color:var(--muted); }
.road.vline .vs-here{ padding-top:6px; cursor:default; }
.road.vline .vs-box{ display:block; padding:14px 16px 16px; border-radius:22px; background:var(--surface); box-shadow:var(--look-card-edge); }
.road.vline .vs-here .rs-state{ color:var(--look-gold-text); font-weight:600; }
.road.vline .vs-go{ width:100%; height:52px; margin-top:14px; }
#topicBody.stop-active .vs-go{ display:none; }  /* the open stop has its own buttons */
.road.vline .road-stop.active .vs-t{ display:inline-block; margin-left:-8px; padding:4px 8px; border-radius:12px; background:var(--look-tint); }
.road.vline.dim .road-stop{ opacity:.55; }
.road.vline .road-stop:focus-visible{ outline:var(--focus-ring); outline-offset:2px; border-radius:12px; }

/* The topic's heading: the world in its colour, the name, and the next stop in words. */
.topic-hero{ border:0; background:none; box-shadow:none; padding:0 4px; }
.topic-hero::before{ display:none; }
.topic-hero .ring2{ display:none; }
.th-crumb{ font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; letter-spacing:0; text-transform:none; }
.th-title.display{ margin-top:4px; font:400 28px/1.2 "ITC Ronda", "Poppins", sans-serif; }
.th-status{ font-size:14px; color:var(--muted); }
/* The card below the line holds a stop while it is open, and the ways in beside it. */
#topicBody:not(.stop-active) #topicStage, #topicBody:not(.stop-active) .fcard-h, #topicBody #topicLine{ display:none; }
@media (min-width:841px){
  #topicBody{ display:grid; grid-template-columns:minmax(0, 1fr) 430px; column-gap:56px; align-items:start; }
  #topicBody > .topic-hero{ grid-column:1; }
  #topicBody > .road{ grid-column:2; grid-row:1 / span 2; }
  #topicBody > .flow-cards{ grid-column:1; display:flex; flex-direction:column; gap:12px; margin-top:20px; }
  #topicBody > .flow-cards > *{ width:auto; max-width:none; margin:0; }
  #topicBody.stop-active{ display:block; }
  .th-title.display{ font-size:40px; }
  .th-status{ font-size:15.5px; }
}

/* The warm-up under the topic Today chose (C3 a). */
.t-warm{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.t-warm-p{ margin:0; font-size:15.5px; line-height:1.45; color:var(--ink); }

/* ------------------------------------------------ the teacher's quick check (E1) -- */
.tc-check .dg-sess{ font:600 14px/1.3 "Poppins", system-ui, sans-serif; letter-spacing:0; text-transform:none; color:var(--ink); }
.tc-check .dg-topic{ display:block; font-size:13.5px; color:var(--muted); }
.tc-said{ margin:16px 0 0; font-size:16px; color:var(--ink); }
.tc-next{ margin-top:14px; }
.tc-end{ max-width:520px; margin:0 auto; }
.tc-kv{ padding:12px 2px; border-top:1px solid var(--look-rule); }
.tc-kv span{ display:block; font-size:13.5px; color:var(--muted); }
.tc-kv b{ display:block; margin-top:2px; font:600 16px/1.3 "Poppins", system-ui, sans-serif; color:var(--ink); }
.tc-all{ margin:16px 0 0; font:600 16px/1.3 "Poppins", system-ui, sans-serif; }
/* A long topic name wraps inside the pill ("Practise Percentage increase and decrease" spilled
   out of it on a phone, 2026-11-24). */
.tc-end .k-btn{ height:auto; min-height:54px; margin-top:14px; padding:12px 22px; line-height:1.25; white-space:normal; text-wrap:balance; }
.tc-out{ display:block; width:100%; min-height:44px; margin-top:4px; border:0; background:none; color:var(--muted);
  font:500 14.5px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }

/* ------------------------------------------------------ the end of a topic (C1) -- */
.t-end-done{ display:block; font:600 15.5px/1.35 "Poppins", system-ui, sans-serif; color:var(--look-gold-text); }
.t-next, .bm-nextcard{ margin-top:16px; padding:18px; border-radius:26px; background:var(--surface); box-shadow:var(--look-card-edge);
  text-align:left; width:100%; box-sizing:border-box; }
.t-next[hidden], .bm-nextcard[hidden]{ display:none; }
.t-next-l{ margin:0; font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; color:var(--look-gold-text); }
.t-next-h{ margin:4px 0 0; font:400 21px/1.25 "ITC Ronda", "Poppins", sans-serif; color:var(--ink); overflow-wrap:anywhere; }
.t-next .k-btn, .bm-nextcard .k-btn{ margin-top:14px; }
.t-next .k-btn svg, .bm-nextcard .k-btn svg{ width:18px; height:18px; fill:currentColor; }
.bm-topic{ margin:4px 0 0; font:400 25px/1.2 "ITC Ronda", "Poppins", sans-serif; color:var(--ink); text-align:center;
  overflow-wrap:anywhere; text-wrap:balance; }
.bm-out{ display:block; width:100%; min-height:44px; border:0; background:none; color:var(--muted);
  font:500 14.5px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }

/* ------------------------------------------------- hints, as a short line (D2) -- */
/* The hints' line and dots take the pale neutral; each hint's heading is gold text. */
#pracHint{ margin:14px 4px 0; padding:0; border:0; background:none; }
#pracHint .dg-rung-text{ position:relative; margin:0; padding:0 0 12px 30px; font-size:14.5px; line-height:1.45; color:var(--ink); }
#pracHint .dg-rung-text:last-child{ padding-bottom:0; }
#pracHint .dg-rung-text::before{ content:""; position:absolute; left:1px; top:2px; width:16px; height:16px; border-radius:50%;
  background:var(--look-neutral); }
#pracHint .dg-rung-text:not(:last-child)::after{ content:""; position:absolute; left:7px; top:10px; bottom:-10px; width:4px;
  background:var(--look-neutral); }
#pracHint .dg-rung-l{ display:block; font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; color:var(--look-gold-text); }

/* ----------------------------------------------------------- the eight faults -- */
/* L11: nothing is wider than the phone; a long topic name wraps. */
.t-name{ white-space:normal; overflow-wrap:anywhere; }
/* L22: all eight looks show at set-up, on two rows. */
.fr-looks{ display:grid; grid-template-columns:repeat(4, 62px); justify-content:center; gap:10px; overflow:visible; }
/* L16: the topic panel fits the screen, its close and its main button in view. */
@media (max-width:840px){ .map-detail{ max-height:calc(100dvh - 24px); } }
#pracHint .dg-rung-l{ letter-spacing:0; text-transform:none; }
#diagBody .dg-alab, #pracBody .dg-alab{ font-size:13.5px; letter-spacing:0; text-transform:none; }

/* ----------------------------------------------------- the map's card (A1, A2) -- */
/* Since 2026-11-23 no lesson is offered before the map is built, so the map's card is the
   main card and the quiet copy that sat beside a lesson (M1 a) is gone. */
.td-parts[hidden], .td-notnow[hidden]{ display:none; }
.td-hero .td-parts .rl{ margin-left:-16px; margin-right:-16px; }
.td-notnow{ display:block; width:100%; min-height:44px; margin-top:4px; border:0; background:none; color:var(--muted);
  font:500 14.5px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }
@media (min-width:841px){
  .td-hero .td-parts .rl{ margin-left:-14px; margin-right:-14px; margin-top:18px; }
}

/* ------------------------------------------------- "already shown" said at the top (C2) -- */
.t-shown{ margin:14px 2px 0; font-size:15.5px; line-height:1.5; color:var(--ink); max-width:60ch; }
.t-shown[hidden]{ display:none; }

/* ------------------------------------------------- a Diagnostic only world as rows (F5) -- */
.wr-list{ display:grid; gap:10px; margin-top:8px; }
.wr-list > [role="list"], .wr-folded{ display:grid; gap:10px; }
.wr-fold{ display:flex; align-items:center; gap:12px; width:100%; min-height:52px; padding:12px 16px; border-radius:16px;
  border:1.5px dashed var(--look-hair); background:transparent; color:var(--muted); text-align:left;
  font:500 15px/1.35 "Poppins", system-ui, sans-serif; cursor:pointer; }
.wr-fold span{ flex:1; min-width:0; }
.wr-fold b{ color:var(--ink); font-weight:600; }
.wr-row{ display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:12px 14px 12px 16px;
  border-radius:16px; border:0; box-shadow:var(--look-card-edge); background:var(--look-tint); color:var(--ink); text-align:left;
  font:500 15.5px/1.35 "Poppins", system-ui, sans-serif; cursor:pointer; }
.wr-name{ flex:1; min-width:0; overflow-wrap:anywhere; }
.wr-st{ display:inline-flex; align-items:center; gap:4px; flex:none; font-size:13.5px; color:var(--muted); }
.wr-st svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.wr-st.wr-good{ color:var(--ink); }
.wr-st.wr-gold{ color:var(--look-gold-text); }
.wr-chev{ width:18px; height:18px; flex:none; fill:none; stroke:var(--muted); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* ------------------------------------------------- Your map as it grows (A5) -- */
.pg-eyebrow{ margin:0 0 4px; font:600 13.5px/1.3 "Poppins", system-ui, sans-serif; color:var(--muted); }
.pg-eyebrow[hidden]{ display:none; }
.mm-parts{ padding:6px 0; }
.mm-parts .rl{ margin:0; }
.mm-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.mm-tile{ display:grid; gap:2px; padding:16px; border-radius:18px; background:var(--look-tint); box-shadow:var(--look-card-edge); }
.mm-tile b{ font:600 30px/1.1 "Poppins", system-ui, sans-serif; color:var(--ink); }
.mm-tile span{ font-size:14.5px; color:var(--muted); }
.mm-next{ margin-top:16px; width:100%; }
@media (min-width:841px){ .mm-next{ width:auto; min-width:260px; } .mm-tiles{ max-width:560px; } }

/* ------------------------------------------------- the tutor opened on a question (D1) -- */
.tc-yourq{ margin:4px 0 14px; padding:14px 16px; border-radius:18px; background:var(--look-tint); box-shadow:var(--look-card-edge); }
.tc-yourq-l{ margin:0 0 4px; font:600 13px/1.3 "Poppins", system-ui, sans-serif; color:var(--muted); }
.tc-yourq-p{ margin:0; font-size:16.5px; line-height:1.45; color:var(--ink); }
.tc-ways-in{ display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 4px; }
.tc-way-in{ min-height:44px; }

/* ------------------------------------------------- the phone's top bar fits (F1, B3) -- */
/* The menu button left the phone (F1 a), so its 60px of room goes back to the counters;
   with Messages and Board kept there they ran off a 390px screen once a league place showed. */
@media (max-width:840px){ .app .topbar{ padding-left:16px; padding-right:16px; } }
@media (max-width:400px){ .hud-xpw{ display:none; } }
.mm-parts{ border:0; background:var(--look-tint); box-shadow:var(--look-card-edge); border-radius:22px; padding:14px 0 10px; }
.mm-tile{ gap:4px; }
.mm-tile b{ line-height:1.3; }
/* L16 (a fault listed with the founder's choices, 2026-11-18: "The topic panel fits the screen,
   with its close button and its main button in view"). On a phone the world's header is not
   sticky (kit.css), and its full-width band (home.css .world-head::before) was then placed
   against the page instead of the header: it ran 18px past a 390px screen, the page grew to
   408 and every world page, its panel's close button and the bottom bar slid off the edge. */
@media (max-width:840px){ .world-head{ position:relative; top:auto; } }

/* D1: "‹ Back to my question" keeps its words on a phone (kit.css hides the chat's back label). */
#view-tutor.tc-from-q .back-link .back-label{ position:static; width:auto; height:auto; overflow:visible; clip:auto; }

/* ------------------------------ the gamification round (founder decisions 2026-11-19) -- */
/* GF9 a: no streak, XP or league figure while a learner answers the first assessment, a
   check-in or a teacher's check (home-diagnostic.js sets body.measuring on a question). */
body.measuring #hudStreak, body.measuring #hudXp, body.measuring #hudLeague{ display:none; }
/* GF6 a: one true line about how a right answer was got. */
.fb-how{ margin:4px 0 0; font-size:14.5px; line-height:1.45; color:var(--ink); font-weight:500; }
.dg-how{ display:block; margin:6px 0 0; font-size:14.5px; line-height:1.45; color:var(--ink); font-weight:500; }
.bm-how{ display:grid; gap:6px; width:100%; max-width:420px; margin:0 auto; }
.bm-how-r{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:0; padding:10px 14px;
  border-radius:18px; background:var(--look-tint2); color:var(--ink); font-size:15px; }
.bm-how-r b{ font-variant-numeric:tabular-nums; }
/* GF13 a: the learner's own goal, a quiet row under the main card; never a gold button. */
.td-mygoal{ gap:8px; }
.tdg-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:50px; padding:8px 16px;
  border:0; border-radius:18px; background:var(--look-tint2); color:var(--ink); font:inherit; font-size:15px;
  text-align:left; cursor:pointer; }
.tdg-row:focus-visible, .tdg-change:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }
.tdg-name{ font-weight:600; min-width:0; }
.tdg-v{ color:var(--muted); white-space:nowrap; }
.tdg-change{ align-self:flex-start; min-height:44px; padding:0 4px; border:0; background:none; color:var(--muted);
  font:inherit; font-size:14.5px; font-weight:500; cursor:pointer; }
.t-goal-is{ display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:14.5px; font-weight:500; }
@media (max-width:840px){
  /* GF4 a (fault N1): the three quests are listed on a phone too, across the whole width. */
  .td-quests{ grid-column:1 / -1; }
  .td-quests .tdq-list{ display:flex; }
  .td-quests .td-foot{ display:block; }
  .td-quests .td-sum-bar{ display:none; }
  /* K12: the month of maths days shows on a phone too; the streak card above it already
     carries the streak, so the month's own streak figures stay off the phone. */
  .me-col > .pg-month{ display:block; }
  .me-col > .pg-month .mg-streaks{ display:none; }
}

/* The gamification round, slice 5a (2026-11-20; home-game.js). The streak's note on Today
   (GF1 a, GF2 a): a quiet card across the day's row, never a second gold button. */
.td-streak{ grid-column:1 / -1; gap:6px; }
.tds-line{ margin:0; font-size:15px; line-height:1.5; color:var(--ink); }
.tds-offer{ margin:6px 0 0; font-size:14px; line-height:1.45; color:var(--muted); }
.tds-back{ align-self:flex-start; }
/* GF5 a: the line under the first "well done" (and under a praise note) says what that adult
   can and cannot see. */
.land-note .ln-explain{ flex-basis:100%; font-size:13px; line-height:1.45; color:var(--muted); }
.land-note .ln-explain[hidden]{ display:none; }
/* GF4 a: one quest swapped a day, on the quests card: a quiet "Swap one", then the quests to
   choose from as quiet chips (home-landing.js). Never a gold button. */
.tdq-swap{ display:flex; flex-direction:column; gap:8px; }
.tdq-swap-go{ align-self:flex-start; min-height:44px; padding:0 4px; border:0; background:none; color:var(--muted);
  font:inherit; font-size:14.5px; font-weight:500; cursor:pointer; }
.tdq-swap-q{ margin:0; font-size:14px; font-weight:600; color:var(--ink); }
.tdq-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.tdq-chip{ min-height:44px; padding:8px 14px; border:0; border-radius:18px; background:var(--look-tint2); color:var(--ink);
  font:inherit; font-size:14.5px; text-align:left; cursor:pointer; }
.tdq-swap-go:focus-visible, .tdq-chip:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }

/* The gamification round, slice 5b (2026-11-21). The streak on Me with its pause (GF2 a, the
   founder's answers of 20 Nov) and the learner's own bests (GF12 a): quiet controls; the one
   gold button is the pause's own "Pause" (home-me.js). */
.pl-sub{ margin:6px 0 0; font-size:13.5px; line-height:1.45; color:var(--muted); }
.pl-streak .pl-h3, .pl-bests .pl-h3{ margin-top:4px; }
.pl-pause-h{ margin-top:14px; }
.pl-link{ display:block; min-height:44px; margin-top:6px; padding:0 2px; border:0; background:none; color:var(--muted);
  font:500 14.5px/1.2 "Poppins", system-ui, sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.pl-days{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.pl-day{ min-height:44px; padding:8px 16px; border:0; border-radius:18px; background:var(--look-tint2); color:var(--ink);
  font:500 15px/1 "Poppins", system-ui, sans-serif; cursor:pointer; }
.pl-day.on{ background:var(--accent); color:var(--on-accent); }
.pl-link:focus-visible, .pl-day:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }
.pl-acts{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:12px; }
.pl-acts .pl-link{ margin-top:0; }
/* GF3 a: "Join this week's league?", asked once, on Today and the League page (home-game.js). */
.lj-card{ display:flex; flex-direction:column; gap:8px; }
.lj-q{ margin:0; font:400 21px/1.25 "ITC Ronda", "Poppins", sans-serif; color:var(--ink); }
.lj-what{ margin:0; font-size:14.5px; line-height:1.5; color:var(--ink); }
.lj-leave{ margin:0; font-size:13.5px; line-height:1.5; color:var(--muted); }
.lj-acts{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
#leagueBody .lj-card{ margin:0 0 16px; padding:18px; border-radius:26px; background:var(--surface); color:var(--ink);
  box-shadow:var(--look-card-edge); }
/* GF3 a: the Monday line after a move down, once a week (Today's league card). */
.tdl-week{ display:flex; flex-direction:column; gap:4px; }
.tdl-week-l{ margin:0; font-size:15px; line-height:1.45; color:var(--ink); }
/* GF14 a: together this week, on Today and at the top of the League page. */
.td-together{ gap:8px; }
.tdt-n{ margin:0; font-size:15px; color:var(--ink); }
.tdt-n b{ font:600 22px/1 "Poppins", system-ui, sans-serif; }
.tdt-line{ margin:0; font-size:13px; line-height:1.45; color:var(--muted); }
.lg-together{ display:flex; flex-direction:column; gap:8px; margin:0 0 16px; padding:16px 18px; border-radius:22px;
  background:var(--surface); color:var(--ink); box-shadow:var(--look-card-edge); }
.lg-together[hidden]{ display:none; }
/* GF3 a with the founder's note: a table of any size folds; "See everyone" opens it. */
.lg-all{ display:block; min-height:44px; margin:8px 0 0; padding:0 12px; border:0; background:none; color:var(--muted);
  font:500 14px/1 "Poppins", system-ui, sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.lg-all:focus-visible{ outline:var(--focus-ring); outline-offset:2px; }
@media (max-width:840px){
  /* On a phone the league's card is half a row; its question and its Monday line need all of it. */
  .td-league.tdl-wide{ grid-column:1 / -1; }
}
/* Me's parts, a gap apart, like the rest of the page (the card and the rows below it touched). */
#meBody{ display:flex; flex-direction:column; gap:12px; }
