
  /* the reset the artifact host normally provides */
  *,*::before,*::after{box-sizing:border-box}
  html{-webkit-text-size-adjust:100%}
  img,svg{max-width:100%}
  /* back link to the subject hub, in the lesson's own palette */
  /* 🚨 CENTRED WITH THE MASTHEAD BELOW IT. Leaving the back link hard left while
     the title centres is one of the five centring traps already written up in
     CLAUDE.md - "a crumb left unstyled while the title centred, so the header
     read as off-centre." It was fixed on the site pages and would have been
     reintroduced here the moment .mast started centring. */
  .ns-back{
    font-family:"IBM Plex Sans",system-ui,sans-serif;
    max-width:660px;margin:0 auto;padding:18px 22px 0;
    font-size:13px;font-weight:600;letter-spacing:.04em;text-align:center;
  }
  .ns-back a{color:var(--verdigris);text-decoration:none;display:inline-flex;gap:7px;align-items:center}
  .ns-back a:hover{text-decoration:underline}
  .ns-back a:focus-visible{outline:2px solid var(--verdigris);outline-offset:3px;border-radius:2px}

  /* ══ THE UNIT STRIP — how you leave a lesson forwards ══
     Paul, 2026-08-31: "i would like to have a way inside to switch to the next
     one." Before this the only exit from a finished lesson was the back button,
     so the course had no forward direction at all from inside a lesson.
     Rendered by build-lessons.js from `seq`; a lesson without `seq` gets an
     empty string here and the strip simply does not appear. */
  /* ⚠️ THIS TEMPLATE HAS ITS OWN PALETTE. There is no --line, --panel or
     --muted here; those are ns.css tokens and they resolve to NOTHING inside a
     lesson page. The five themes swap --rule, --surface-2, --ink-soft and
     --verdigris, so a strip built on those re-colours with the theme picker
     for free. Never hardcode a colour, and never borrow an ns.css token name. */
  /* The closing strip - homework button and the prev/next arrows - is ONE
     definition in tools/lesson-footer.js, shared by all five lesson
     templates. It was four copies and they drifted; see that file. */

/* ── the end of the lesson: shared by all five templates (lesson-footer.js) ── */
.lfoot{
  --lf-l: var(--lf-line,   var(--rule,    var(--line,    rgba(255,255,255,.16))));
  --lf-p: var(--lf-panel,  var(--surface, var(--panel,   rgba(255,255,255,.04))));
  --lf-i: var(--lf-ink,    var(--ink,     var(--fg,      #f2f4f7)));
  --lf-d: var(--lf-dim,    var(--ink-soft,var(--dim,     rgba(255,255,255,.62))));
  --lf-a: var(--lf-accent, var(--verdigris, var(--a,     #7fd1c1)));
  margin:26px 0 0;
}
/* The homework row. One button, full width, so it reads as a destination and
   not as a third control beside Print and Retake. */
.lfoot-hw{display:block;width:100%;box-sizing:border-box;text-align:center;
  padding:13px 16px;border:1px solid var(--lf-l);border-radius:10px;
  background:var(--lf-p);color:var(--lf-i);font-weight:600;font-size:.95rem;
  text-decoration:none;line-height:1.35}
a.lfoot-hw:hover{border-color:var(--lf-a);color:var(--lf-i)}
/* 🚨 NO HOMEWORK YET = FADED AND NOT CLICKABLE, and it is a <span>, never an <a>.
   Paul, 2026-09-19: "even a homework button if one comes available and if not it
   just says unavailable." A disabled-looking <a> that still navigates is worse
   than no button, so there is no href to follow in the first place. */
.lfoot-hw.is-off{opacity:.42;border-style:dashed;cursor:default;font-weight:500}
.lfoot-hw small{display:block;font-weight:400;font-size:.8rem;color:var(--lf-d);
  margin-top:2px}
/* the saved homework score (lfootHwScript); green is "done", never the accent */
.lfoot-hwst{display:block;margin-top:6px;font-weight:700;font-size:.88rem}
.lfoot-hwst:empty{display:none}
.lfoot-hwst.is-done{color:var(--laurel, #1c7a4a)}

/* ── prev / next ──────────────────────────────────────────────────────────
   🚨 SMALL ARROWS, NOT CARDS. Paul, 2026-09-19: "i want a smaller jump to the
   next and previous lesson arrwo button honestly." They used to be two large
   tiles carrying the full lesson title, which ate the bottom of the page and
   competed with the results. The title is still there for a reader and a screen
   reader, just no longer set at heading size. */
.lfoot-nav{display:flex;align-items:center;gap:10px;margin:16px 0 0;flex-wrap:wrap}
.lfoot-nav a{display:inline-flex;align-items:center;gap:7px;max-width:46%;
  padding:8px 13px;border:1px solid var(--lf-l);border-radius:999px;
  background:var(--lf-p);color:var(--lf-i);text-decoration:none;
  font-size:.86rem;line-height:1.3}
.lfoot-nav a:hover{border-color:var(--lf-a)}
.lfoot-nav a .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--lf-d)}
.lfoot-nav a .ar{font-size:1rem;line-height:1;color:var(--lf-a);flex:0 0 auto}
.lfoot-nav .next{margin-left:auto}
.lfoot-nav .lfoot-end{margin:0;color:var(--lf-d);font-size:.84rem}
@media (max-width:560px){
  .lfoot-nav a{max-width:100%;flex:1 1 auto;justify-content:center}
  .lfoot-nav .next{margin-left:0}
}
@media print{ .lfoot{display:none!important} }

/* ── ONE CORNER RADIUS, EVERY LESSON TYPE ─────────────────────────────────
   Paul, 2026-09-19: "even on the teacher notes panel you have rounded corners
   but not on the neewer ones they are more angle corners."

   He is right, and it is the same failure as the footer: a shared surface with
   no shared definition. Measured across the two prose engines that evening:

     Teacher Notes    reading 10px   english 4px    <- the same panel, two shapes
     results / score  reading  4px   english 4px
     visual panel     reading 10px   -

   So a student walking from Writing Good Sentences to Simple Subjects saw the
   identical Teacher Notes panel change shape, and inside one reading lesson the
   Teacher Notes and the results panel disagreed with each other.

   🚨 PANELS ARE 10px. PILLS STAY 999px. Those are the only two shapes a lesson
   page uses, and --lf-r is here so a future template can read the number instead
   of typing it again.

   🚨 SCOPED TO THE LESSON WRAPPER, and that is not decoration. This block is
   injected near the TOP of lesson-template.html and at the END of the <style> in
   the other four, so source order cannot be relied on to win. .wrap/.wrapx is

   ⚠️ AND NOTE WHAT THE CSS COMMENTS HERE MUST NEVER DO: name a slot token. The
   generators fill slots with a plain .replace, which takes the FIRST match, so a
   token spelled inside this string gets substituted into the page and the
   unfilled-slot guard then fails on the copy it just injected. That is exactly
   how this block failed its first build, and split/template.html already carried
   the same warning. Spell it "the CSS slot", never the token itself.

   .wrap/.wrapx puts these at
   two-class specificity, which beats each template's own single-class rule
   wherever the block happens to sit. Do not "simplify" these to bare classes. */
.wrap, .wrapx{ --lf-r:10px }
.wrap .ground,   .wrapx .ground,
.wrap .score,    .wrapx .score,
.wrap .status,   .wrapx .status,
.wrap .scorebar, .wrapx .scorebar,
.wrap .dbox,     .wrapx .dbox,
.wrap .lfoot-hw, .wrapx .lfoot-hw{ border-radius:var(--lf-r,10px) }

/* ── Teacher Notes: the videos section and the PIN pad (lesson-notes.js) ──────
   Shared by all five templates. The colours chain the same way lesson-footer.js
   does (reading palette, then English palette, then a literal), so this cannot go
   invisible on a template nobody remembered to update.
   The bottom Retake button is hidden on every engine: the reset lives ONLY in
   Teacher Notes (Reset Test). The element stays because the reset code clicks it. */
.ground, .gpin{
  --gn-l: var(--rule,    var(--line,    rgba(255,255,255,.16)));
  --gn-p: var(--surface, var(--panel,   rgba(255,255,255,.04)));
  --gn-i: var(--ink,     var(--fg,      #f2f4f7));
  --gn-d: var(--ink-soft,var(--dim,     rgba(255,255,255,.62)));
  --gn-a: var(--verdigris, var(--a,     #7fd1c1));
}
#retake, #retake[hidden]{display:none!important}

.gv{margin:6px 0 4px}
.gv-note{margin:0 0 9px;color:var(--gn-d);line-height:1.55}
.gv-note a, .gv-who a{color:var(--gn-i);text-decoration:underline;text-underline-offset:2px}
.gv-kid{border:1px solid var(--gn-l);border-radius:10px;padding:12px 14px;margin:0 0 12px}
.gv-who{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-weight:700}
.gv-av{flex:0 0 auto;width:30px;height:30px;border-radius:7px;display:grid;place-items:center;
  font-style:normal;font-weight:800;font-size:.9rem;color:#fff;background:#8a8f98}
.gv-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.gv-item{display:flex;align-items:center;gap:10px;min-width:0}
.gv-item img{flex:0 0 auto;width:96px;height:54px;object-fit:cover;border-radius:6px;background:#000}
.gv-lab{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gv-rm{flex:0 0 auto}
.gv-add{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}
.gv-add input{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;font:inherit;font-size:16px;
  color:var(--gn-i);background:transparent;border:1px solid var(--gn-l);border-radius:8px}
.gv-add input:focus{outline:none;border-color:var(--gn-a)}
.gv-msg{min-height:1.2em;margin:8px 0 0;font-size:.88rem;color:var(--gn-d)}
@media (max-width:560px){
  .gv-add{grid-template-columns:1fr}
  .gv-add .btn{justify-self:start}
}

/* The PIN pad: the same shape as the account panel's (four boxes over one real input,
   so a phone shows its number keyboard). It sits just under the Teacher Notes bar. */
.gpin{margin:8px 0 4px;padding:14px;border:1px solid var(--gn-l);border-radius:10px;
  background:var(--gn-p);text-align:center}
.gpin-t{margin:0 0 4px;color:var(--gn-i);line-height:1.5}
.gpin-box{position:relative;display:flex;justify-content:center;gap:12px;margin:14px auto 0;width:max-content}
.gpin-box span{width:48px;height:56px;border:1.5px solid var(--gn-l);border-radius:8px;display:grid;place-items:center}
.gpin-box span.is-on::after{content:"";width:12px;height:12px;border-radius:50%;background:var(--gn-i)}
.gpin-box span.is-cur{border-color:var(--gn-i)}
.gpin-box input{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;padding:0;font-size:16px}
.gpin-box.is-shake{animation:gpinShake .32s}
@keyframes gpinShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){.gpin-box.is-shake{animation:none}}
.gpin-msg{min-height:1.3em;margin:10px 0 0;font-size:.9rem;color:var(--porphyry, #a3312b)}
.gpin-x{background:none;border:0;padding:8px 10px;font:inherit;font-size:.9rem;cursor:pointer;
  color:var(--gn-d);text-decoration:underline;text-underline-offset:2px}
@media print{ .gpin, .gv{display:none!important} }

/* a non-YouTube video has no picture to borrow: a plain play box the same size */
.gv-play{display:grid;place-items:center;width:96px;height:54px;border-radius:6px;background:var(--surface, #222);color:var(--ink-soft, #aaa);font-size:18px;flex:none}

/* ── Lesson Sections (ROADMAP 92, migration 023) ─────────────────────────────
   🚨 data-ns-off IS HOW A SECTION "JUST DISAPPEARS" for a student whose parent turned it Off
   (Paul, 2026-10-12): no placeholder, no note. display:none and nothing else, so the cards
   keep their place in the page and a saved answer still lands on its question. !important
   because several section wrappers set their own display. */
[data-ns-off]{display:none!important}

.gv-sec{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--gn-l)}
.gv-sub{margin:0 0 6px;font-weight:700;color:var(--gn-i)}
.gv-secs{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.gv-sec-i{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.gv-chk{display:inline-flex;align-items:center;gap:9px;cursor:pointer;line-height:1.4;min-height:32px}
.gv-chk input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:var(--gn-a)}
/* This Lesson [switch] This Subject. Both sides are a real choice, so the track stays neutral
   and only the knob and the chosen word carry the accent. */
.gv-scope{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 10px}
.gv-sw-l{cursor:pointer;color:var(--gn-d);font-size:.95rem}
.gv-sw-l.is-on{color:var(--gn-i);font-weight:700}
.gv-sw{position:relative;flex:0 0 auto;width:46px;height:26px;padding:0;border-radius:999px;cursor:pointer;
  border:1px solid var(--gn-l);background:var(--gn-p)}
.gv-sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:var(--gn-a);transition:transform .15s ease}
.gv-sw[aria-checked="true"]::after{transform:translateX(20px)}
.gv-sw:focus-visible{outline:2px solid var(--gn-a);outline-offset:2px}
.gv-sec .gv-go{margin-top:2px}

/* 🎬 SUGGESTED VIDEOS (2026-10-13): the lesson's own list in Teacher Notes, rendered
   by build-lessons.js. Each row is a link to watch first; the per-student "Add"
   buttons are drawn under each student by lesson-notes-client.js. */
.gsugg{list-style:none;margin:6px 0 4px;padding:0;display:grid;gap:10px;max-width:68ch}
.gsugg li{display:grid;gap:2px;line-height:1.45}
.gsugg a{color:var(--gn-i);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.gsugg-ch{font-size:.86rem;color:var(--gn-d)}
.gsugg-why{font-size:.92rem}
.gsugg-note{font-size:.92rem}
.gv-sugg{display:grid;gap:6px;margin:0 0 10px}
.gv-sugg-row{display:flex;align-items:center;gap:10px;justify-content:space-between}
.gv-sugg-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gv-sugg-row .btn{flex:0 0 auto;font-size:12.5px;padding:6px 12px}

