.unit-grid{display:grid;grid-template-columns:1fr;gap:12px}
.unit-card{cursor:pointer;border-right:5px solid var(--g);text-align:right}
.unit-card h3{margin:0 0 4px}
.unit-meta{color:var(--muted);font-size:.92rem}
.unit-progress{display:flex;justify-content:space-between;margin-top:10px;font-weight:800;color:var(--g)}
.step-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.step-pill{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:#fff;font-weight:800}
.step-pill.done{background:#e7f4ec;border-color:#8bc6a7}
.step-pill.now{border-color:var(--g);box-shadow:0 0 0 1px var(--g) inset}
.step-pill.locked{opacity:.55}
.path-block{margin-top:12px}
.nline{direction:ltr;display:flex;justify-content:space-between;align-items:flex-end;gap:4px;padding:18px 8px 8px;background:#f7f4ea;border-radius:14px;overflow:auto}
.nline i{display:flex;flex-direction:column;align-items:center;min-width:28px;font-style:normal}
.nline .tick{width:2px;height:18px;background:var(--n);margin-bottom:4px}
.nline .tick.on{height:28px;background:var(--g)}
.video-box video{width:100%;border-radius:14px;background:#111;max-height:240px}
.video-note{font-size:.9rem;color:var(--muted)}
.yt-frame{position:relative;width:100%;aspect-ratio:16/9;background:#111;border-radius:14px;overflow:hidden}
.yt-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
a.yt-sub{display:flex;align-items:center;justify-content:center;width:100%;margin-top:12px;min-height:48px;background:#e11;color:#fff;border-color:#e11;text-decoration:none}
.mn,.mx,.mabs,.mpow{display:inline-flex;unicode-bidi:isolate;align-items:baseline;vertical-align:baseline}
.mx,.mpow{direction:rtl}
.mn,.mabs{direction:ltr;flex-direction:row}
.mn-digits{order:1}
.mn-sign{order:2}
.mn.mpct{direction:rtl}
.mn.mpct .mn-sign,.mn.mpct .mn-digits,.mn.mpct .mpct-sign{order:0}
.mx{gap:.25em}
.mn-sign,.mn-digits,.mop,.mbar,.mcomma,.mpct-sign{unicode-bidi:isolate}
ol{list-style-type:arabic-indic}
.mfrac{display:inline-flex;flex-direction:column;direction:ltr;vertical-align:middle;text-align:center;margin:0 .15em;unicode-bidi:isolate}
.mnum{border-bottom:1px solid currentColor;padding:0 .15em}
.mden{padding:0 .15em}
.mexp{font-size:.72em;line-height:1}
.path-q{padding:8px 0}
.remedial-card{border-right:4px solid var(--gold);margin-top:10px}
.needs-teacher{background:#fff1dd;border:1px solid #e0c48a;border-radius:14px;padding:12px;margin-top:12px;font-weight:800}
.gap-note{background:#f7f4ea;border-radius:12px;padding:10px;margin-top:8px}
.heat{width:100%;border-collapse:collapse;font-size:.92rem}
.heat th,.heat td{border:1px solid var(--line);padding:6px;text-align:center}
.heat .nm{text-align:right;white-space:nowrap}
.heat .h0{background:#f3f0e8}
.heat .h1{background:#f8d7d2}
.heat .h2{background:#ffe3b3}
.heat .h3{background:#d9f0e3}
.report-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.report-tools select,.report-tools .btn{flex:1;min-width:140px}
.year-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:12px 0}
.year-card{text-align:right;cursor:pointer;border-right:5px solid var(--g)}
.year-banner{background:#fff1dd;border:1px solid #e0c48a;border-radius:14px;padding:12px;font-weight:800;margin:12px 0}
#yearResetView input{width:100%;margin:8px 0 12px;padding:12px;border-radius:12px;border:1px solid var(--line);font:inherit}
#yearResetView .btn{margin-left:8px}
@media print{
  header,.nav,.site-footer,.report-tools,.no-print{display:none!important}
  #teacherReportView.show,#yearArchiveView.show{display:block!important}
  body{background:#fff}
}
@media(min-width:800px){
  .unit-grid{grid-template-columns:1fr 1fr}
  .video-box video{max-height:360px}
}
@media(min-width:1280px){
  body:has(#teacherNav:not(.hidden)){font-size:20px}
  body:has(#teacherNav:not(.hidden)) .layout,
  body:has(#teacherNav:not(.hidden)) header .wrap{max-width:1760px}
  body:has(#teacherNav:not(.hidden)) .nav .btn,
  body:has(#teacherNav:not(.hidden)) select,
  #teacherHome .btn,
  #studentsView .btn,
  #teacherReportView .btn,
  #teacherReportView select,
  #yearResetView .btn,
  #yearResetView input,
  #yearArchiveView .btn,
  #yearArchiveView select{min-height:56px;font-size:1.15rem;padding:12px 16px}
  #teacherHome .grid{grid-template-columns:repeat(3,1fr)}
  #teacherHome .stat{min-height:180px}
  #teacherHome .stat b{font-size:3.2rem}
  #teacherHome .support-row,
  #teacherReportView .support-row{min-height:76px;font-size:1.2rem;padding:16px 8px}
  #teacherReportView .report-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto auto;align-items:center}
  #teacherReportView .grid{grid-template-columns:repeat(4,1fr)}
  #teacherReportView .heat{font-size:1.15rem}
  #teacherReportView .heat th,#teacherReportView .heat td,
  #yearArchiveView .heat th,#yearArchiveView .heat td{padding:16px 12px;min-width:96px}
  #yearArchiveView .report-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto auto;align-items:center}
  #yearArchiveView .grid,#yearResetView .year-counts{grid-template-columns:repeat(4,1fr)}
  #yearArchiveView .support-row{min-height:76px;font-size:1.2rem;padding:16px 8px}
  #studentsView table{font-size:1.15rem}
  #studentsView th,#studentsView td{padding:16px 12px}
}
