/* tm.css — the Classroom lessons pages (tutor-tools/teaching-*.html), on the
   tutor dashboard's tokens (tutor-shared.css), plus the board timer. */
:root{--tm-ink:#1e293b;--tm-mute:#5b6b80;--tm-line:#d9e2ee;--tm-card:#fff;--tm-page:#eef3fa;--tm-navy:#1a2744;
  --tm-blue:#2563eb;--tm-blue-soft:#e4edfd;--tm-teal:#0f8f80;--tm-teal-soft:#dcf3ef;--tm-amber:#a36705;--tm-amber-soft:#fbefd6;
  --tm-red:#b4332b;--tm-red-soft:#fbe3e1;--tm-green:#1f7a45;--tm-green-soft:#e0f2e7;--tm-violet:#6a43b8;--tm-violet-soft:#ece5fa}
*{box-sizing:border-box}
body{margin:0;background:var(--tm-page);color:var(--tm-ink);font:15px/1.55 "Plus Jakarta Sans","Segoe UI",system-ui,sans-serif}
h1,h2,h3,h4{font-family:"Outfit","Segoe UI",system-ui,sans-serif;margin:0;line-height:1.2;text-wrap:balance}
a{color:var(--tm-blue)}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--tm-blue);outline-offset:2px}
.tnum{font-variant-numeric:tabular-nums}
.tm-wrap{max-width:1120px;margin:0 auto;padding:18px 16px 70px;display:grid;gap:16px}
.tm-top{background:var(--tm-navy);color:#fff;border-radius:12px;padding:16px 20px;display:grid;gap:4px}
.tm-top h1{font-size:1.45rem}
.tm-top p{margin:0;color:#c3cde0;font-size:.92rem}
.tm-back{font-weight:700;text-decoration:none;font-size:.92rem}
.tm-crumb{font-size:.86rem;color:var(--tm-mute)}
.tm-card{background:var(--tm-card);border:1px solid var(--tm-line);border-radius:12px;padding:14px 16px;display:grid;gap:10px}
.tm-card h2{font-size:1.15rem}
.tm-small{font-size:.82rem;color:var(--tm-mute)}
.tm-chips{display:flex;flex-wrap:wrap;gap:6px}
.tm-chip{font-size:.78rem;border-radius:99px;padding:2px 9px;background:var(--tm-blue-soft);color:var(--tm-blue);font-weight:650}
.tm-chip.t{background:var(--tm-teal-soft);color:var(--tm-teal)}.tm-chip.a{background:var(--tm-amber-soft);color:var(--tm-amber)}.tm-chip.g{background:var(--tm-green-soft);color:var(--tm-green)}
.tm-ramp{display:inline-flex;gap:3px;align-items:center}
.tm-ramp i{display:block;width:16px;height:8px;border-radius:2px;background:var(--tm-line)}
.tm-ramp i.on{background:var(--tm-teal)}
.tm-ramp span{font-size:.78rem;color:var(--tm-mute);margin-left:4px}
/* The unit pills, one level at a time (2 Nov 2026): a button per level, its units underneath. */
.tm-units{display:grid;gap:8px}
.tm-levels,.tm-unitpills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tm-unitpills[hidden]{display:none}
.tm-level{border:1px solid var(--tm-line);background:var(--tm-card);color:var(--tm-ink);border-radius:99px;padding:6px 14px;min-height:36px;font-size:.9rem;font-weight:700;display:inline-flex;align-items:center;gap:8px}
.tm-level::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.6}
.tm-level[aria-expanded="true"]{background:var(--tm-blue-soft);border-color:var(--tm-blue);color:var(--tm-blue)}
.tm-level[aria-expanded="true"]::after{transform:rotate(-135deg) translateY(-2px)}
.tm-leveln{font-size:.76rem;font-weight:500;color:var(--tm-mute)}
.tm-unitpills{padding:2px 0 0 10px;border-left:3px solid var(--tm-blue-soft)}
.tm-unitpills a{border:1px solid var(--tm-line);background:var(--tm-card);color:var(--tm-ink);border-radius:99px;padding:5px 12px;font-size:.88rem;font-weight:650;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.tm-unitpills a[aria-current="page"]{background:var(--tm-navy);border-color:var(--tm-navy);color:#fff}
.tm-coming{font-size:.8rem;color:var(--tm-mute);padding:0 4px}
.tm-views{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:.86rem}
.tm-views button{border:1px solid var(--tm-line);background:var(--tm-card);color:var(--tm-ink);border-radius:99px;padding:4px 12px;min-height:32px}
.tm-views button[aria-pressed="true"]{background:var(--tm-blue-soft);border-color:var(--tm-blue);color:var(--tm-blue);font-weight:700}
.tm-scroll{overflow-x:auto}
table.tm-t{border-collapse:collapse;width:100%;font-size:.88rem}
table.tm-t th,table.tm-t td{border-bottom:1px solid var(--tm-line);padding:7px 8px;text-align:left;vertical-align:top}
table.tm-t th{font-size:.74rem;letter-spacing:.05em;text-transform:uppercase;color:var(--tm-mute)}
table.tm-t td.gap{color:var(--tm-red);font-weight:650}
table.tm-t tr.day td{background:var(--tm-page);font-weight:700;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--tm-mute)}
.tm-shape{font-size:.76rem;border-radius:99px;padding:1px 8px;font-weight:700;white-space:nowrap}
.tm-shape.predict{background:var(--tm-blue-soft);color:var(--tm-blue)}.tm-shape.callout{background:var(--tm-amber-soft);color:var(--tm-amber)}
.tm-shape.compare{background:var(--tm-violet-soft);color:var(--tm-violet)}.tm-shape.build{background:var(--tm-teal-soft);color:var(--tm-teal)}.tm-shape.review{background:var(--tm-line);color:var(--tm-ink)}
.tm-head{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;align-items:start}
.tm-balance .big{font:800 1.6rem "Outfit",system-ui,sans-serif}
.tm-meter{position:relative;height:10px;border-radius:99px;background:var(--tm-line);overflow:hidden}
.tm-meter i{position:absolute;inset:0 auto 0 0;background:var(--tm-green)}
.tm-meter b{position:absolute;top:0;bottom:0;border-left:2px dashed var(--tm-ink);opacity:.45}
.tm-checks{list-style:none;margin:0;padding:0;display:grid;gap:3px;font-size:.82rem}
.tm-checks li::before{content:"✓ ";color:var(--tm-green);font-weight:800}
.tm-checks li.bad::before{content:"! ";color:var(--tm-red)}
.tm-obj{border-left:5px solid var(--tm-violet)}
.tm-obj ol{margin:0;padding-left:1.3em;display:grid;gap:5px}
.tm-ac{font-size:.72rem;border-radius:4px;padding:0 5px;background:var(--tm-line);color:var(--tm-mute);font-weight:700;margin-left:6px}
.tm-objhead{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tm-strip{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:.85rem}
.tm-strip button{border:1.5px solid var(--tm-violet);background:var(--tm-violet-soft);color:var(--tm-violet);border-radius:99px;min-width:34px;min-height:30px;font-weight:800}
.tm-btn{border:1.5px solid var(--tm-blue);background:var(--tm-blue);color:#fff;border-radius:8px;padding:6px 14px;font-weight:700;min-height:36px}
.tm-btn.ghost{background:transparent;color:var(--tm-blue)}
.tm-btn.violet{background:var(--tm-violet);border-color:var(--tm-violet)}
.tm-btn.sm{padding:3px 10px;min-height:30px;font-size:.85rem}
.tm-teachbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--tm-blue-soft);border-radius:10px;padding:10px 14px}
.tm-clock{font:800 1.4rem "Outfit",system-ui,sans-serif}
.tm-stages{display:grid;gap:8px}
.tm-stage{display:grid;grid-template-columns:3.2em minmax(0,1fr) auto;gap:4px 12px;align-items:start;background:var(--tm-card);border:1px solid var(--tm-line);border-left:5px solid var(--tm-line);border-radius:10px;padding:10px 12px}
.tm-stage.talk{border-left-color:var(--tm-blue)}.tm-stage.learn{border-left-color:var(--tm-amber)}.tm-stage.check{border-left-color:var(--tm-violet)}.tm-stage.recap{border-left-color:var(--tm-teal)}
.tm-stage.live{background:var(--tm-blue-soft)}
.tm-stage .min{font:800 1.25rem "Outfit",system-ui,sans-serif;text-align:center}
.tm-stage .min small{display:block;font-size:.7rem;color:var(--tm-mute);font-weight:600}
.tm-stage h4{font-size:1.02rem}
.tm-stage .kind{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--tm-mute)}
.tm-stage p{margin:3px 0 0;font-size:.9rem}
.tm-ochips{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.tm-ochips span{font-size:.72rem;font-weight:800;border-radius:4px;padding:1px 6px;background:var(--tm-violet-soft);color:var(--tm-violet)}
.tm-ochips em{font-size:.78rem;font-style:normal;color:var(--tm-violet);font-weight:650}
.tm-emb{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}
.tm-emb span{font-size:.74rem;border-radius:4px;padding:1px 6px;font-weight:700;background:var(--tm-line)}
.tm-emb .english{background:var(--tm-blue-soft);color:var(--tm-blue)}.tm-emb .maths{background:var(--tm-teal-soft);color:var(--tm-teal)}
.tm-emb .employ{background:var(--tm-amber-soft);color:var(--tm-amber)}.tm-emb .bv{background:var(--tm-violet-soft);color:var(--tm-violet)}
.tm-res{font-size:.8rem;color:var(--tm-mute);margin-top:5px}
.tm-uses{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tm-uses a{font-size:.8rem;text-decoration:none;border:1px solid var(--tm-line);border-radius:6px;padding:2px 8px;color:var(--tm-ink);background:var(--tm-card)}
.tm-uses a:hover{border-color:var(--tm-blue);color:var(--tm-blue)}
.tm-uses a b{color:var(--tm-mute);margin-right:5px}
.tm-acts{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.tm-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.tm-dl{display:grid;grid-template-columns:9.5em minmax(0,1fr);gap:4px 12px;margin:0;font-size:.9rem}
.tm-dl dt{font-weight:700}.tm-dl dd{margin:0}
.tm-nav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* the board timer */
.tm-board{position:fixed;inset:0;z-index:50;background:#0b1220;color:#fff;display:grid;grid-template-rows:auto 1fr auto;padding:18px 20px}
.tm-board[hidden]{display:none}
.tm-board .top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#aab6c8;font-weight:600}
.tm-board .top b{color:#fff}
.tm-board .mid{display:grid;place-items:center;text-align:center;gap:6px}
.tm-board .digits{font:800 clamp(5rem,24vw,17rem)/1 "Outfit",system-ui,sans-serif;font-variant-numeric:tabular-nums}
.tm-board .digits.over{color:#f6a39b}
.tm-board .what{font:700 clamp(1.1rem,3vw,2rem) "Outfit",system-ui,sans-serif;max-width:30ch}
.tm-board .act{font-weight:600;font-size:clamp(.95rem,2vw,1.3rem);color:#9fd6cc}
.tm-board .bar{height:8px;border-radius:99px;background:#22304d;overflow:hidden;width:min(680px,80vw)}
.tm-board .bar i{display:block;height:100%;background:#4fd1bd;transition:width .9s linear}
.tm-board .ctl{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.tm-board .ctl button{border:1.5px solid #3b4a66;background:#16213a;color:#fff;border-radius:10px;padding:10px 18px;font-weight:700;min-height:46px}
.tm-board .ctl button.pri{background:#2f6fe0;border-color:#2f6fe0}
.tm-board .objp{display:none;max-width:min(1000px,92vw);text-align:left;gap:12px}
.tm-board.withobj .objp{display:grid}
.tm-board.withobj .digits{font-size:clamp(2.4rem,8vw,5rem)}
.tm-board.withobj .what{display:none}
.tm-board .objp h3{font-size:clamp(1.1rem,2.6vw,1.8rem);color:#c9b6ff}
.tm-board .objp ol{margin:0;padding-left:1.4em;display:grid;gap:10px}
.tm-board .objp li{font-weight:600;font-size:clamp(1.05rem,2.6vw,1.9rem);line-height:1.3}
.tm-board .objp li.dim{opacity:.35}
.tm-board .rate{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.tm-board .rate button{border:1.5px solid #3b4a66;background:#16213a;color:#fff;border-radius:8px;padding:5px 12px;font-weight:700;font-size:.95rem;min-height:38px}
.tm-board .rate button b{margin-left:6px;color:#9fd6cc;font-variant-numeric:tabular-nums}
.tm-board .wallp{width:min(1000px,92vw);display:grid;gap:10px}
.tm-board .wallp[hidden],.tm-board .answered[hidden]{display:none}
.tm-board.withwall .digits{font-size:clamp(2.4rem,8vw,5rem)}
.tm-board .wallq{font:700 clamp(1.15rem,2.4vw,1.9rem)/1.35 'Plus Jakarta Sans',system-ui,sans-serif;color:#fff;text-align:left}
.tm-board .wallq:empty{display:none}
.tm-board .wallhead{display:flex;gap:12px;align-items:center;text-align:left;color:#cfd8e6}
.tm-board .wallqr{width:96px;height:96px;background:#fff;flex:0 0 auto;padding:4px}
.tm-board .wallqr img,.tm-board .wallqr canvas{width:88px!important;height:88px!important}
.tm-board .tiles{display:flex;flex-wrap:wrap;gap:8px}
.tm-board .tile{color:#fff;background:#1d2b47;border:1px solid #31456b;border-radius:10px;padding:8px 12px;font-weight:600;font-size:clamp(.95rem,1.8vw,1.25rem);max-width:30ch;text-align:left}
.tm-board .answered{font-weight:700;font-size:clamp(1rem,2.4vw,1.6rem);color:#9fd6cc}
.tm-dlrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tm-dlrow>span:first-child{min-width:12em;font-weight:650}
.tm-extra{display:grid;gap:4px;margin-top:6px;font-size:.86rem}
.tm-extra:empty{display:none}
.tm-key{background:var(--tm-green-soft);color:var(--tm-green);border-radius:6px;padding:4px 8px}
.tm-wn{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.tm-wn.hidden{opacity:.5;text-decoration:line-through}
.tm-mini{font-size:.78rem;border:1px solid var(--tm-line);background:var(--tm-card);border-radius:6px;padding:1px 8px;cursor:pointer}
.tm-ex table td{min-width:9em}
.tm-ex .rate{font-size:.72rem;border-radius:4px;padding:0 5px;font-weight:700;background:var(--tm-line)}
.tm-ex .rate.g{background:var(--tm-green-soft);color:var(--tm-green)}.tm-ex .rate.n{background:var(--tm-amber-soft);color:var(--tm-amber)}.tm-ex .rate.x{background:var(--tm-red-soft);color:var(--tm-red)}
.tm-ex .mk,.tm-work .mk{border:1.5px dashed var(--tm-line);background:var(--tm-card);border-radius:6px;min-width:30px;min-height:28px;font-weight:800;cursor:pointer}
.tm-ex .mk.sure,.tm-work .mk.sure{border-style:solid;border-color:var(--tm-ink)}
.tm-ex .flag{font-size:.72rem;font-weight:800;color:var(--tm-amber)}
.tm-ex .ans.no{color:var(--tm-red)}
.tm-sum{display:grid;gap:4px;font-size:.9rem}
.tm-sum .most{background:var(--tm-blue-soft);border-radius:6px;padding:4px 8px}
.tm-sum .over{background:var(--tm-amber-soft);color:var(--tm-amber);border-radius:6px;padding:4px 8px;font-weight:650}
@media (prefers-reduced-motion:reduce){.tm-board .bar i{transition:none}}
@media (max-width:700px){.tm-head{grid-template-columns:1fr}.tm-stage{grid-template-columns:2.6em minmax(0,1fr)}.tm-stage .tm-acts{grid-column:2;flex-direction:row}.tm-dl{grid-template-columns:1fr}}
/* homework (step 5) */
.tm-hw{border:1px solid var(--tm-line);border-radius:10px;padding:10px 12px;display:grid;gap:6px}
.tm-hwhead{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.tm-hwdue{font-size:.88rem;color:var(--tm-mute)}.tm-hwdue.late{color:var(--tm-red);font-weight:700}
.tm-hwcount{font-weight:650}
.tm-hwt td.hw-done{color:var(--tm-green);font-weight:800;text-align:center}.tm-hwt td.hw-started{color:var(--tm-amber);font-weight:800;text-align:center}.tm-hwt td.hw-none{text-align:center}
.tm-hwt tr.st-none td:first-child{color:var(--tm-red);font-weight:650}
.tm-hwkey{margin:4px 0 0;padding-left:1.4em}
.tm-hwform{display:grid;gap:10px}
.tm-hwform fieldset{border:1px solid var(--tm-line);border-radius:8px;padding:8px 10px;display:grid;gap:4px}
.tm-hwform legend{font-weight:700;font-size:.9rem;padding:0 4px}
.tm-hwform .row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.tm-hwlearners{display:grid;grid-template-columns:repeat(auto-fill,minmax(12em,1fr));gap:2px 10px}
.tm-bad{color:var(--tm-red);font-weight:650}
/* catch-up homework and the Homework page's set panels (tm-sethw.js, 3 Nov 2026) */
.tm-hwform[hidden],.tm-hwform [hidden],.tm-hwset[hidden]{display:none!important}
.tm-hwcu{border-left:4px solid var(--tm-violet)}
.tm-hwabsent{border:1px dashed var(--tm-violet);border-radius:8px;padding:6px 8px;display:grid;gap:4px;margin-top:4px}
.tm-hwacts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tm-hwset{border:1px solid var(--tm-blue);border-radius:10px;padding:10px 12px;display:grid;gap:8px;background:var(--tm-card);min-width:0}
.tm-hwset h3{font-size:1rem;margin:0}
.tm-hwpick{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.tm-hwpick label{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.tm-hwset select,.tm-hwform select{max-width:100%;min-width:0}
.tm-hwset>*,.tm-hwset .tm-hwform,.tm-hwset fieldset{min-width:0;max-width:100%}
.tm-hwset label{overflow-wrap:anywhere}
.tm-hwchoose{display:grid;grid-template-columns:repeat(auto-fill,minmax(14em,1fr));gap:2px 10px;max-height:16em;overflow:auto;border:1px solid var(--tm-line);border-radius:8px;padding:6px 8px}
.tm-hwform select,.tm-hwform input[type=date]{max-width:100%}
/* Set your own homework (6 Nov 2026): a heading over each list, the written tasks, Select all, and a written task's tick box in the table */
.tm-hwchoose>b{grid-column:1/-1;margin-top:4px}
.tm-hwtasks{border:1px solid var(--tm-line);border-radius:8px;padding:8px 10px;display:grid;gap:6px;min-width:0;max-width:100%}
.tm-hwtasks legend{font-weight:700;font-size:.9rem;padding:0 4px}
.tm-hwtasks input[type=text]{width:100%;max-width:36em;box-sizing:border-box;padding:6px 8px;border:1px solid var(--tm-line);border-radius:6px;font:inherit}
.tm-hwtasks .tm-mini{justify-self:start}
.tm-hwall{font-weight:700}
.tm-hwtick{border:1px solid var(--tm-line);background:#fff;border-radius:5px;min-width:1.9em;min-height:1.9em;font:inherit;font-weight:800;cursor:pointer;line-height:1}
.tm-hwt td.hw-done .tm-hwtick{color:var(--tm-green);border-color:var(--tm-green)}
/* a stage's pictures (Classroom lessons, photo stimuli): numbered, each with its credit */
.tm-pics{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-top:6px}
.tm-pic{margin:0}.tm-pic img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;border:1px solid var(--tm-line);background:#fff}
.tm-pic figcaption{font-size:.72rem;color:var(--tm-mute);line-height:1.3;margin-top:2px}
.tm-pic figcaption b{color:var(--tm-ink,#1e293b);margin-right:3px}
.tm-board .picsp{width:min(1200px,94vw);display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.tm-board .picsp[hidden]{display:none}
.tm-board .picsp .tm-pic img{aspect-ratio:auto;max-height:34vh;object-fit:contain;background:#000;border-color:#22304d}
.tm-board .picsp figcaption{color:#aab6c8;font-size:.78rem}.tm-board .picsp figcaption b{color:#fff;font-size:1.1rem}
.tm-board.withpics .digits{font-size:clamp(2.4rem,8vw,5rem)}
/* the QR pop-up for learners (1 Nov) */
.tm-qrpop{position:fixed;inset:0;z-index:60;background:rgba(5,10,20,.92);display:grid;place-items:center;padding:16px}
.tm-qrpop[hidden]{display:none}
.tm-qrpop .qrin{background:#fff;color:#0b1220;border-radius:18px;padding:22px 26px;display:grid;gap:10px;justify-items:center;text-align:center;max-width:min(680px,96vw)}
.tm-qrpop .qract{font:800 clamp(1.1rem,3vw,1.8rem) "Outfit",system-ui,sans-serif}
.tm-qrpop .qrbig{display:grid;place-items:center}
.tm-qrpop .qrbig img,.tm-qrpop .qrbig canvas{display:block}
.tm-qrpop .qrurl{font:700 clamp(1rem,2.6vw,1.6rem) ui-monospace,Consolas,monospace;color:#1d4ed8;word-break:break-all}
.tm-qrpop .qrwhat{color:#475569;font-size:.95rem;max-width:46ch}
.tm-qrpop .qrbtns{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.tm-qrpop button{border:1.5px solid #1d4ed8;background:#fff;color:#1d4ed8;border-radius:8px;padding:6px 14px;font-weight:700;min-height:36px;cursor:pointer}
.tm-qrpop button.pri{background:#1d4ed8;color:#fff}
/* the online worksheet's answers (1 Nov) */
.tm-work{display:grid;gap:4px;border-top:1px dashed var(--tm-line);padding-top:6px;margin-top:4px}
.tm-workhead{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.85rem}
.tm-workrow{display:grid;grid-template-columns:9em 1fr auto;gap:8px;align-items:start;font-size:.85rem;border-bottom:1px solid var(--tm-line);padding:3px 0}
.tm-workrow .who{font-weight:650}.tm-workrow .ans{white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:560px){.tm-workrow{grid-template-columns:1fr auto}.tm-workrow .who{grid-column:1/-1}}
.tm-board .workp{width:min(1000px,92vw);display:grid;gap:10px;justify-items:center}
.tm-board .workp[hidden]{display:none}
/* Make it mine (tm-mine.js) */
.tm-mine{border-color:var(--tm-violet)}
.tm-minetop{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tm-minetop select{font:inherit;font-size:.9rem;padding:4px 6px;border:1px solid var(--tm-line);border-radius:6px;max-width:100%}
.tm-checks li.adv{color:var(--tm-amber)}
.tm-checks li.adv::before{content:"→ ";color:var(--tm-amber)}
.tm-mineedit{display:grid;gap:8px;border-top:1px dashed var(--tm-line);padding-top:8px}
.tm-minelist{display:grid;gap:2px}
.tm-minerow{display:grid;gap:4px;border:1px solid var(--tm-line);border-radius:8px;padding:6px 8px;background:var(--tm-card)}
.tm-minerow.own{border:2px dashed var(--tm-violet);background:var(--tm-violet-soft)}
.tm-minerow.edited{border-left:4px solid var(--tm-blue)}
.tm-minerow.skip{opacity:.55}.tm-minerow.skip .lab span{text-decoration:line-through}
.tm-minerow .lab{font-size:.88rem;overflow-wrap:anywhere}
.tm-minerow .ctl{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.tm-minerow input.mins,.tm-mineform input.mins{width:4.2em}
.tm-minenote{background:var(--tm-amber-soft);color:var(--tm-ink);border-radius:6px;padding:4px 8px;font-size:.84rem;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tm-addown{justify-self:start;margin:2px 0 4px}
.tm-mineform{display:grid;gap:6px;border:1px solid var(--tm-violet);border-radius:8px;padding:8px;background:var(--tm-card)}
.tm-mineform input,.tm-mineform textarea,.tm-mineform select{font:inherit;font-size:.88rem;border:1px solid var(--tm-line);border-radius:6px;padding:4px 6px;max-width:100%}
/* Everything to print (tm-print.js, 3 Nov 2026): filters that combine, then the printables in groups. */
.tm-unitpills .tm-polab{font-size:.8rem;color:var(--tm-mute);padding:0 2px 0 6px}
.tm-unitpills a.po{border-style:dashed;color:var(--tm-mute);font-weight:600}
.tm-unitpills a.po[aria-current="page"]{border-style:solid;color:#fff}
.tp-filters{display:grid;gap:8px;background:var(--tm-page);border-radius:10px;padding:10px 12px}
.tp-row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.tp-lab{font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--tm-mute);min-width:5.2em}
.tp-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0;flex:1 1 0}
.tp-chip{border:1px solid var(--tm-line);background:var(--tm-card);color:var(--tm-ink);border-radius:99px;padding:4px 11px;min-height:34px;font-size:.86rem;font-weight:650;display:inline-flex;gap:6px;align-items:center}
.tp-chip .tp-n{font-size:.74rem;font-weight:700;color:var(--tm-mute);font-variant-numeric:tabular-nums}
.tp-chip[aria-pressed="true"]{background:var(--tm-blue);border-color:var(--tm-blue);color:#fff}
.tp-chip[aria-pressed="true"] .tp-n{color:#dbe6fb}
.tp-chip.zero{opacity:.5}
.tp-select,.tp-q{font:inherit;font-size:.88rem;border:1px solid var(--tm-line);border-radius:8px;padding:6px 8px;min-height:36px;background:var(--tm-card);color:var(--tm-ink);min-width:0;max-width:100%}
.tp-select{flex:1 1 16em;width:16em}
.tm-wrap>.tp-card,.tp-card>*,.tp-row>*{min-width:0}
.tp-q{flex:1 1 12em;width:12em}
.tp-sum{justify-content:space-between}
.tp-list{display:grid;gap:12px}
.tp-group{display:grid;gap:6px;border-top:1px solid var(--tm-line);padding-top:10px}
.tp-group h3{font-size:1.02rem}
.tp-group h3 a{text-decoration:none}
.tp-group>p{margin:0}
.tp-item{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;justify-content:space-between;background:var(--tm-card);border:1px solid var(--tm-line);border-radius:8px;padding:8px 10px}
.tp-what{flex:1 1 18em;min-width:0}
.tp-acts{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.tp-dl{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.tp-msg:empty{display:none}
.tp-go{display:inline-flex;align-items:center;min-height:30px;border:1.5px solid var(--tm-teal);color:var(--tm-teal);background:var(--tm-card);border-radius:8px;padding:3px 10px;font-weight:700;font-size:.85rem;text-decoration:none;white-space:nowrap}
.tp-go.key{background:var(--tm-teal);color:#fff}
.tp-go:hover{box-shadow:0 2px 8px rgba(15,143,128,.25)}
.tp-none{margin:0;color:var(--tm-mute)}
.tm-flash{animation:tmflash 2.4s ease-out 1}
@keyframes tmflash{0%,40%{box-shadow:0 0 0 4px var(--tm-amber)}100%{box-shadow:0 0 0 0 transparent}}
@media (max-width:560px){.tp-lab{min-width:0;width:100%}.tp-chips{flex-basis:100%}}
a.tm-btn{text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.tp-card h2[tabindex]:focus{outline:none}
/* THE SECTION PILLS (3 Nov 2026). The unit page: one section at a time, as tabs
   (Start here, Sessions, English and maths, Everything to print). The session
   page: a bar that jumps to each section and marks the one in view. Both stay
   at the top as the page scrolls; teach mode on the board covers the session's
   bar and hides it (body.tm-boardopen). */
.tm-card[hidden]{display:none}
/* the cards on a Classroom lessons page sit apart, as the rest of the page does
   (they touched before), and nothing in them can widen the page on a phone */
.tm-wrap>#tm-main{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.tm-secs{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:var(--tm-page);padding:6px 0;box-shadow:0 1px 0 var(--tm-line);min-width:0}
.tm-secs[hidden]{display:none}
.tm-secs a{flex:0 0 auto;border:1.5px solid var(--tm-blue);background:var(--tm-card);color:var(--tm-blue);border-radius:99px;padding:5px 14px;min-height:36px;font-size:.9rem;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;white-space:nowrap}
.tm-secs a:hover{background:var(--tm-blue-soft)}
.tm-secs a[aria-current]{background:var(--tm-blue);color:#fff}
/* the session page's bar keeps to one row and scrolls sideways inside itself on a phone */
.tm-secs.tm-jump{flex-wrap:nowrap;overflow-x:auto;contain:inline-size;scrollbar-width:thin;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.tm-secs.tm-jump.more{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
body.tm-boardopen .tm-secs{display:none}
.tm-card[data-jump]{scroll-margin-top:calc(var(--tm-secs-h,56px) + 12px)}
.tm-stage{scroll-margin-top:calc(var(--tm-secs-h,56px) + 12px)}
.tm-card[data-jump] h2[tabindex]:focus,.tm-stage:focus{outline:none}
/* this session's English and maths, gathered: the stages that carry each strand */
.tm-embat{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:4px;font-size:.8rem}
.tm-embat a{text-decoration:none;border:1px solid var(--tm-line);border-radius:6px;padding:1px 7px;background:var(--tm-card);color:var(--tm-ink)}
.tm-embat a:hover{border-color:var(--tm-blue);color:var(--tm-blue)}
.tm-embat a b{color:var(--tm-mute);font-weight:700;margin-right:4px}
@media (max-width:560px){.tm-secs a{padding:4px 11px;min-height:34px;font-size:.86rem}}
.tm-two>.tm-card{align-content:start}
.tm-card>a.tm-btn{justify-self:start}
/* GET READY (tm-ready.js, 6 Nov 2026): its own screen, behind the first pill. It takes
   the place of everything under the header and the pills. */
.tm-ready{display:none}
body.tm-readyview .tm-ready{display:grid}
body.tm-readyview #tm-main>:not(.tm-head):not(.tm-jump):not(.tm-ready){display:none}
.tm-ready h3{font-size:1rem;display:flex;gap:8px;align-items:baseline}
.tm-rgroup{font:inherit;font-size:.9rem;padding:4px 6px;border:1px solid var(--tm-line);border-radius:6px;max-width:100%}
.tm-rstatus{margin-left:auto}
.tm-rparts{display:grid;gap:14px;min-width:0}
.tm-rpart{display:grid;gap:6px;border-top:1px solid var(--tm-line);padding-top:10px;min-width:0}
.tm-rpart>p{margin:0}
.tm-rlist{list-style:none;margin:0;padding:0;display:grid;gap:2px;min-width:0}
.tm-rrow{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;min-height:38px;padding:3px 0;border-bottom:1px solid var(--tm-page)}
.tm-rrow label{display:flex;gap:8px;align-items:flex-start;flex:1 1 16em;min-width:0;cursor:pointer}
.tm-rrow input[type=checkbox]{width:20px;height:20px;margin:1px 0 0;flex:0 0 auto;accent-color:var(--tm-teal)}
.tm-rtext{overflow-wrap:anywhere;min-width:0}
.tm-rrow input:checked~.tm-rtext{color:var(--tm-mute);text-decoration:line-through}
.tm-rnote{white-space:nowrap}
.tm-rcopies{font:800 1.05rem "Outfit",system-ui,sans-serif;min-width:3.2em;text-align:right}
.tm-radd{justify-self:start;min-height:32px;padding:3px 10px}
.tm-radd[hidden]{display:none}
.tm-rform{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.tm-rform[hidden]{display:none}
.tm-rform input{font:inherit;font-size:.9rem;border:1px solid var(--tm-line);border-radius:6px;padding:5px 8px;flex:1 1 14em;min-width:0}
.tm-rclass{display:grid;gap:8px;min-width:0}
.tm-rfact{display:grid;grid-template-columns:11em minmax(0,1fr);gap:2px 12px;font-size:.92rem}
.tm-rval{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.tm-rmost{background:var(--tm-blue-soft);border-radius:6px;padding:3px 8px}
.tm-rnames{font-weight:650}
.tm-rshare{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.tm-rothers summary{cursor:pointer;font-weight:650;font-size:.9rem}
.tm-rothers .tm-dlrow>span:first-child{min-width:0}
.tm-rothertext{flex:1 1 14em;min-width:0;overflow-wrap:anywhere}
.tm-rready{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;background:var(--tm-teal-soft);border-radius:10px;padding:10px 14px}
.tm-rready label{display:flex;gap:10px;align-items:center;cursor:pointer;font:800 1.25rem "Outfit",system-ui,sans-serif}
.tm-rready input{width:28px;height:28px;accent-color:var(--tm-teal)}
.tm-rready p{margin:0;flex-basis:100%}
@media (max-width:560px){.tm-rfact{grid-template-columns:1fr}.tm-rstatus{margin-left:0;flex-basis:100%}.tm-rnote{white-space:normal}.tm-rrow label{flex-basis:100%}}
/* CLEARER STAGE CARDS (idea 5): who is doing what, resources as buttons, chips */
.tm-who{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:5px;font-size:.84rem}
.tm-who .w{border:1px solid var(--tm-line);border-radius:6px;padding:1px 7px;color:var(--tm-mute)}
.tm-who .w b{font-weight:800;margin-right:2px}
.tm-who .w.tutor.lead{background:var(--tm-blue-soft);border-color:var(--tm-blue);color:var(--tm-blue)}
.tm-who .w.learners.lead{background:var(--tm-amber-soft);border-color:var(--tm-amber);color:var(--tm-amber)}
.tm-whostrip{display:flex;gap:2px;height:16px;border-radius:6px;overflow:hidden}
.tm-whostrip a{display:block;min-width:4px;flex-basis:0}
.tm-whostrip a.tutor{background:var(--tm-blue)}.tm-whostrip a.learners{background:var(--tm-amber)}
.tm-whokey{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.tm-whokey .k{width:10px;height:10px;border-radius:2px;display:inline-block}
.tm-whokey .k.tutor{background:var(--tm-blue)}.tm-whokey .k.learners{background:var(--tm-amber)}
.tm-uses a,.tm-rb{min-height:34px;display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 5px;font-size:.82rem;border:1.5px solid var(--tm-blue);border-radius:8px;padding:3px 10px;color:var(--tm-blue);background:var(--tm-card);font-weight:650;overflow-wrap:anywhere;min-width:0}
.tm-uses a b{color:inherit;margin-right:0;font-weight:800}
.tm-uses a:hover,.tm-rb:hover{background:var(--tm-blue-soft)}
.tm-extra .tm-rb{justify-self:start}
.tm-schips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.tm-schip{font-size:.74rem;font-weight:700;border:0;border-radius:99px;padding:2px 10px;min-height:26px;background:var(--tm-teal-soft);color:var(--tm-teal)}
.tm-schip.stretch{background:var(--tm-violet-soft);color:var(--tm-violet)}
.tm-schip::after{content:" +"}
.tm-schip[aria-expanded="true"]::after{content:" −"}
.tm-schipt{font-size:.84rem;color:var(--tm-ink);margin-top:3px}
.tm-schipt[hidden]{display:none}
.tm-board .bwho{color:#cfd8e6;font-size:clamp(.9rem,1.7vw,1.15rem);font-weight:600}
.tm-board .bwho:empty,.tm-board .bchips:empty{display:none}
.tm-board .bchips{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.tm-board .bchip{font-size:.8rem;font-weight:700;border:0;border-radius:99px;padding:2px 12px;background:#22304d;color:#9fd6cc}
.tm-board button.bchip{cursor:pointer;min-height:28px}
.tm-board .bans{max-width:min(1000px,92vw);background:#16324a;border:1px solid #2f6fe0;border-radius:10px;padding:10px 16px;font-weight:600;font-size:clamp(1rem,2.2vw,1.5rem);line-height:1.35;text-align:left}
.tm-board .bans[hidden]{display:none}
#bRes{display:contents}
/* A picture for the room fills about 95% of the screen, small ones scaled up (picFit in
   teaching-session.html sets its size; Daniel, 9 Nov 2026). On the dark backdrop, with
   its caption under it and Close in the corner. */
.tm-qrpop .picin{background:transparent;padding:0;max-width:none;max-height:calc(100vh - 32px);overflow:auto;cursor:zoom-out;border-radius:0}
.tm-qrpop #picBig .tm-pic img{aspect-ratio:auto;max-width:none;max-height:none;width:auto;height:85vh;object-fit:contain;display:block;margin:0 auto;background:#fff;border:0;border-radius:10px}
.tm-qrpop #picBig .tm-pic figcaption{color:#fff;font:600 clamp(15px,1.8vw,22px)/1.35 system-ui,sans-serif;text-align:center;margin-top:8px}
.tm-qrpop #picBig .tm-pic figcaption b{color:#fff}
.tm-qrpop #picBig .tm-pic figcaption a{color:#9fd6cc}
.tm-qrpop .picin .qrbtns{position:fixed;top:14px;right:14px;z-index:1}
.tm-qrpop .picin .qrbtns button{min-height:48px;padding:10px 18px;font-size:1rem;background:#fff;color:#0f172a;border-color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.tm-board .picsp img,.tm-board .seep img,.tm-pics img{cursor:zoom-in}
/* Word wall stages stand out on the plan, and their Start says so (Daniel, 6 Nov 2026). */
.tm-wallbadge{display:inline-block;margin-left:4px;padding:2px 8px;border-radius:999px;background:#ede9fe;color:#5b21b6;font:700 .72rem/1.4 'Plus Jakarta Sans',system-ui,sans-serif;vertical-align:middle;white-space:nowrap}
.tm-btn.tm-wallgo{background:#7c3aed;border-color:#7c3aed}
/* The board's controls on the laptop while the board is popped out onto another screen. */
.tm-remote{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#0b1220;color:#fff;padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;box-shadow:0 -4px 18px rgba(0,0,0,.25)}
.tm-remote[hidden]{display:none}
.tm-remoteinfo{flex:1 1 260px;font-weight:600;color:#dbe4f0;min-width:0}
.tm-remotebtns{display:flex;flex-wrap:wrap;gap:6px}
.tm-remotebtns button{font:600 .85rem 'Plus Jakarta Sans',system-ui,sans-serif;padding:7px 12px;border-radius:8px;border:1px solid #2f3b52;background:#16213a;color:#fff;cursor:pointer}
.tm-remotebtns button.pri{background:#2f6fe0;border-color:#2f6fe0}
.tm-remotebtns button:disabled{opacity:.45;cursor:default}
.tm-remotebtns button[hidden]{display:none}
body.tm-remoteon{padding-bottom:84px}
/* The booklet task on the board, up when the stage starts, and a worked example's
   working a step at a time (teaching/tm-see.js; Daniel, 6 Nov 2026). */
/* With a task up, the board stacks from the top and the task takes the room the rest leaves (fitSee in teaching-session.html shrinks the type, --see, only if it must). */
/* The title, who is doing what and the clock are one group (.bline): as they always were on an open board, on one short row under a task. */
.tm-board .bline{display:contents}
.tm-board .bans{order:1}.tm-board .digits{order:2}.tm-board .bar{order:3}.tm-board #bState{order:4}
.tm-board.withsee .mid{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px}
.tm-board.withsee .mid>*{flex:0 0 auto}
.tm-board.withsee .mid>.seep{order:-3;flex:0 1 auto;min-height:120px}
.tm-board.withsee .mid>.stepsp{order:-2}
.tm-board.withsee .mid>.bans{order:-1}
.tm-board.withsee .bline{display:flex;flex-wrap:wrap;gap:2px 16px;align-items:center;justify-content:center;width:min(1150px,94vw)}
.tm-board.withsee .what{font-size:clamp(1rem,1.7vw,1.3rem);max-width:none}
.tm-board.withsee .act,.tm-board.withsee .bwho{font-size:clamp(.85rem,1.3vw,1rem)}
.tm-board .seep{width:min(1150px,94vw);overflow:auto;text-align:left;background:#101a2e;border:1px solid #22304d;border-radius:12px;padding:12px 18px}
.tm-board .seep[hidden],.tm-board .stepsp[hidden]{display:none}
.tm-board .seep .see{display:grid;gap:10px}
.tm-board .seep p{margin:0;font-size:calc(clamp(1rem,2vw,1.45rem)*var(--see,1));line-height:1.35}
.tm-board .seep .see-q{font-weight:700;color:#fff}
.tm-board .seep .see-note{background:#1d2b46;border-left:5px solid #f5b83d;border-radius:8px;padding:10px 14px;display:grid;gap:6px}
.tm-board .seep .see-list{margin:0;padding-left:1.6em;display:grid;gap:6px;font-size:calc(clamp(1rem,2vw,1.45rem)*var(--see,1));line-height:1.35}
.tm-board .seep .see-table{border-collapse:collapse;width:100%;font-size:calc(clamp(.95rem,1.7vw,1.25rem)*var(--see,1))}
.tm-board .seep .see-table th,.tm-board .seep .see-table td{border:1px solid #2f3b52;padding:6px 10px;text-align:left;vertical-align:top}
.tm-board .seep .see-table th{background:#16213a;color:#cfd8e6}
.tm-board .seep .see-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tm-board .seep .see-pic{margin:0}.tm-board .seep .see-pic img{width:100%;max-height:28vh;object-fit:contain;background:#000;border-radius:8px;display:block}
.tm-board .seep .see-pic figcaption{text-align:center;font-weight:800;font-size:1.3rem;color:#fff}
.tm-board.withsee .digits{font-size:clamp(1.8rem,5vw,3.4rem)}
.tm-board .stepsp{width:min(1150px,94vw);text-align:left}
.tm-board .stepsp ol{margin:0;padding-left:1.6em;display:grid;gap:8px;font:600 clamp(1.05rem,2.2vw,1.6rem)/1.4 'Plus Jakarta Sans',system-ui,sans-serif;color:#fff}
.tm-board .stepsp li{background:#14324a;border:1px solid #2f6fe0;border-radius:10px;padding:8px 12px}
.tm-board .bans .bans-steps{margin:0;padding-left:1.4em;display:grid;gap:6px;text-align:left}
/* A revealed answer, laid out for the back of the room (tutor-tools/tm-answer.js;
   Daniel, 11 Nov 2026): "Answer" as a label, a line to each point, a line no
   longer than the eye takes in at once, and the tutor's own instruction under
   it, smaller and dimmer. */
.tm-board .bans{padding:12px 20px 14px}
.tm-board .bans .bans-h{display:flex;align-items:center;gap:12px;margin:0 0 6px}
.tm-board .bans .bans-hl{font-size:.62em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9fd6cc}
.tm-board .bans .bans-letter{display:inline-grid;place-items:center;min-width:1.7em;height:1.7em;border-radius:8px;background:#2f6fe0;color:#fff;font-weight:800;font-size:1.15em}
.tm-board .bans .bans-a{display:grid;gap:.45em}
.tm-board .bans .bans-a>*{max-width:62ch}
.tm-board .bans .bans-p{margin:0;line-height:1.4}
.tm-board .bans .bans-l{color:#ffd88a;font-weight:800}
.tm-board .bans .bans-lead{color:#ffd88a;font-weight:800}
.tm-board .bans .bans-list{margin:0;padding-left:1.2em;display:grid;gap:.3em;line-height:1.35}
.tm-board .bans .bans-list li::marker{color:#9fd6cc}
.tm-board .bans .bans-list.short{display:block;columns:2 14ch;column-gap:2.4em}
.tm-board .bans .bans-list.short li{break-inside:avoid;margin:0 0 .3em}
.tm-board .bans .bans-note{margin:.35em 0 0;padding-top:.45em;border-top:1px solid #2f4a6a;font-size:.68em;font-weight:600;line-height:1.4;color:#aab6c8}
.tm-board .bans .bans-nl{font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8fa3bf;margin-right:.4em}
.tm-board .bmore a.bm-go[hidden],.tm-board .bmore .bm-note[hidden]{display:none}
.tm-board .bmore h4.bm-now{color:#ffd88a}
.tm-board .bm-grid.bm-now a.bm-go{border-color:#f5b83d}
/* the pop-out blocked message: it stays until it is dismissed or tried again */
.tm-board .popmsg{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;background:#3b2a12;border:1px solid #f5b83d;color:#ffe9b8;border-radius:10px;padding:8px 12px;font-weight:600}
.tm-board .popmsg[hidden]{display:none}
.tm-board .popmsg button{min-height:36px;padding:6px 12px}
/* a filter that is hiding answers says so */
.tm-filternote{margin:4px 0;font-size:.85rem;font-weight:600;color:#92400e}
.tm-board .tm-filternote{color:#f5d38a;font-size:clamp(.9rem,1.6vw,1.1rem)}
.tm-board .tm-filternote .tm-mini{color:#0b1220}
/* the same, folded away on the plan */
.tm-see{margin:8px 0 0;border:1px solid #dbe3ef;border-radius:10px;padding:6px 10px;background:#fbfcfe}
.tm-see summary{cursor:pointer;font-weight:700;font-size:.9rem;color:#1d4ed8}
.tm-see .see{display:grid;gap:6px;margin-top:6px;font-size:.9rem}
.tm-see .see p{margin:0}.tm-see .see-q{font-weight:600}
.tm-see .see-note{background:#fff8e6;border:1px solid #f1d9a0;border-radius:8px;padding:6px 10px}
.tm-see .see-list,.tm-see .tm-steps{margin:0;padding-left:1.3em}
.tm-see .see-table{border-collapse:collapse;font-size:.85rem}
.tm-see .see-table th,.tm-see .see-table td{border:1px solid #dbe3ef;padding:4px 6px;text-align:left;vertical-align:top}
.tm-see .see-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.tm-see .see-pic{margin:0}.tm-see .see-pic img{width:100%;border-radius:6px;display:block}
.tm-see .see-pic figcaption{text-align:center;font-weight:700}
.tm-see .see-tablewrap{overflow-x:auto}
/* a long booklet task or all of a worked example's steps scroll inside the board, never pushing the buttons off it */
.tm-board .mid{min-height:0;overflow:auto}
/* a hinge question on the board: its four answers as a grid to point at */
.tm-board .seep .hinge-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:10px}
.tm-board .seep .hinge-opt{display:flex;gap:12px;align-items:flex-start;background:#16213a;border:1.5px solid #2f3b52;border-radius:12px;padding:10px 14px;font:600 calc(clamp(1rem,2vw,1.4rem)*var(--see,1))/1.35 'Plus Jakarta Sans',system-ui,sans-serif}
.tm-board .seep .hinge-opt b{flex:none;width:2.1em;height:2.1em;border-radius:50%;display:grid;place-items:center;background:#2f6fe0;color:#fff;font-size:.95em}
.tm-board .seep .hinge-after{color:#cfd8e6}

/* THEORY AND WORKSHOP KEPT APART (card C4, Daniel, 7 Nov 2026: "Differentiate
   practical and theory lessons in the tutor area though so they don't get mixed
   up"). Theory is blue with 📖 and S01, S02…; workshop is amber with 🔧 and W01,
   W02…, in its own list and on its own page. */
.tm-kindrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tm-kind{display:inline-flex;align-items:center;gap:4px;font-size:.74rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-radius:6px;padding:2px 8px;white-space:nowrap}
.tm-kind.theory{background:var(--tm-blue-soft);color:var(--tm-blue)}
.tm-kind.workshop{background:var(--tm-amber-soft);color:var(--tm-amber)}
.tm-card.tm-theory{border-left:6px solid var(--tm-blue)}
.tm-card.tm-workshop{border-left:6px solid var(--tm-amber)}
.tm-card.tm-workshop h2,.tm-card.tm-theory h2{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
table.tm-t tr.wk td:first-child b{color:var(--tm-amber)}
.tm-wshead{border-top:6px solid var(--tm-amber)}
.tm-safety{border-left:6px solid var(--tm-red);background:var(--tm-red-soft)}
.tm-wchecklist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tm-wchecklist label{display:flex;gap:8px;align-items:flex-start;cursor:pointer}
.tm-wchecklist input{width:20px;height:20px;margin-top:2px;flex:none}
.tm-board .wkcheck{display:none;max-width:min(1000px,92vw);text-align:left;gap:10px}
.tm-board.withcheck .wkcheck{display:grid}
.tm-board.withcheck .digits{font-size:clamp(2.4rem,8vw,5rem)}
.tm-board.withcheck .what{display:none}
.tm-board .wkcheck h3{font-size:clamp(1.1rem,2.6vw,1.8rem);color:#f3c46b;margin:0}
.tm-board .wkcheck ul{margin:0;padding-left:1.2em;display:grid;gap:8px}
.tm-board .wkcheck li{font-weight:600;font-size:clamp(1rem,2.4vw,1.7rem);line-height:1.3}
.tm-board .wkcheck li button{all:unset;cursor:pointer;display:block;width:100%}
.tm-board .wkcheck li button:focus-visible{outline:3px solid #f3c46b;outline-offset:2px}
.tm-board .wkcheck li button.on{color:#9fd6cc}
/* the workshop page prints as a plan and checklist, without its buttons */
@media print{
  body.tm-wpage .tm-wboard,body.tm-wpage .tm-nav,body.tm-wpage .tm-btn{display:none!important}
  body.tm-wpage{background:#fff}
  body.tm-wpage .tm-card{break-inside:avoid;border-color:#999}
}
/* The board's Lessons and Who's active (tm-board-more.js; Daniel, 9 Nov 2026): a panel
   on the board, so it goes with it when it pops out, with buttons big enough for a
   finger on a classroom touch-screen. --bmore-b keeps it above the bar of buttons. */
.tm-board{--bmore-w:min(420px,40vw)}
.tm-board .bmore{position:absolute;top:52px;right:16px;bottom:var(--bmore-b,100px);width:min(var(--bmore-w),calc(100% - 32px));overflow:auto;background:#111a2e;border:1.5px solid #31456b;border-radius:14px;padding:12px 16px 16px;z-index:3;text-align:left;box-shadow:0 12px 40px rgba(0,0,0,.45);color:#fff}
.tm-board .bmore[hidden],.tm-board .bmore [hidden]{display:none!important}
.tm-board .bmore-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tm-board .bmore-head h3{font:800 1.3rem "Outfit",system-ui,sans-serif;margin:0}
.tm-board .bmore h4{margin:14px 0 6px;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:#9fd6cc}
.tm-board .bmore button,.tm-board .bmore select{border:1.5px solid #3b4a66;background:#16213a;color:#fff;border-radius:10px;padding:10px 16px;font:700 1rem 'Plus Jakarta Sans',system-ui,sans-serif;min-height:48px;cursor:pointer}
.tm-board .bmore button.pri{background:#2f6fe0;border-color:#2f6fe0}
.tm-board .bmore button:disabled{opacity:.5;cursor:default}
.tm-board .bmore button[aria-pressed="true"]{background:#7c2d12;border-color:#f97316}
.tm-board .bm-grid{display:grid;gap:8px}
.tm-board .bmore a.bm-go{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:56px;padding:10px 14px;border-radius:10px;background:#16213a;border:1.5px solid #3b4a66;color:#fff;text-decoration:none;font-weight:700;font-size:1.05rem;line-height:1.25;overflow-wrap:anywhere}
.tm-board .bmore a.bm-go small{font-weight:600;color:#aab6c8;font-size:.82rem}
.tm-board .bmore a.bm-go:hover,.tm-board .bmore a.bm-go:focus-visible{border-color:#4fd1bd;outline:none}
.tm-board .bm-note{color:#aab6c8;font-size:.88rem;margin:6px 0 0}
.tm-board .bm-msg{font-weight:650;margin:8px 0 0}
.tm-board .bm-msg.bad{color:#f6a39b}
.tm-board .bm-pick{display:grid;gap:10px;margin-top:8px}
.tm-board .bm-pick label{display:grid;gap:4px;font-weight:700;font-size:.9rem;color:#cfd8e6}
.tm-board .bm-pick select{width:100%}
.tm-board .bm-live{display:grid;gap:10px;margin-top:6px}
.tm-board .bm-of{margin:0;font-weight:700;color:#cfd8e6;overflow-wrap:anywhere}
.tm-board .bm-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tm-board .bm-count{background:#16213a;border-radius:10px;border-left:6px solid #94a3b8;padding:8px 12px}
.tm-board .bm-count b{display:block;font:800 2.2rem/1.05 "Outfit",system-ui,sans-serif}
.tm-board .bm-count span{font-weight:650;color:#cfd8e6}
.tm-board .bm-count.work,.tm-board .bm-l.work{border-left-color:#60a5fa}
.tm-board .bm-count.done,.tm-board .bm-l.done{border-left-color:#4ade80}
.tm-board .bm-count.idle,.tm-board .bm-l.idle{border-left-color:#fbbf24}
.tm-board .bm-names{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tm-board .bm-l{background:#16213a;border-left:5px solid #94a3b8;border-radius:8px;padding:6px 10px;display:grid;gap:1px;min-width:0}
.tm-board .bm-l b{overflow-wrap:anywhere}
.tm-board .bm-l span{color:#aab6c8;font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-board .bm-acts{display:grid;gap:8px;margin-top:12px}
.tm-board .ctl button[aria-expanded="true"]{border-color:#4fd1bd;background:#123a3a}
.tm-board .ctl button.bm-open{min-height:48px}
/* While a panel is open, the board's own clock, stage and task keep to the room
   on its left, smaller as they must, so the class still sees all of them
   (review of PR 450: at 1280 wide the panel hid half the clock). The board's
   own small-clock layouts (objectives, word wall, pictures, a task, the
   checklist) keep their sizes. */
.tm-board.withmore .mid{padding-right:calc(var(--bmore-w) + 20px);grid-template-columns:minmax(0,1fr)}
.tm-board.withmore .mid>*{max-width:100%;box-sizing:border-box}
.tm-board.withmore .digits{font-size:clamp(3rem,calc((100vw - var(--bmore-w) - 90px) * .3),15rem)}
.tm-board.withmore.withobj .digits,.tm-board.withmore.withwall .digits,.tm-board.withmore.withpics .digits,.tm-board.withmore.withcheck .digits{font-size:clamp(2.4rem,8vw,5rem)}
.tm-board.withmore.withsee .digits{font-size:clamp(1.8rem,5vw,3.4rem)}
.tm-board.withmore.withsee .bline{width:100%}
.tm-board.withmore .what{max-width:100%}
/* Who's active: when the view stops by itself, and Keep going, amber in its last quarter of an hour (as on the live class page) */
.tm-board .bm-until{margin:0;color:#aab6c8;font-size:.9rem}
.tm-board .bmore button.bm-keep.soon{border-color:#f59e0b;background:#3b2a0b;color:#fde68a}
