/* Light and dark for the whole Teacher app (the user, Wed 2 Dec 2026: "allow both dark mode and light mode").
   mode.js sets <html data-mode="light|dark"> from the device (Auto) or the person's pick, before anything is drawn.
   Loaded after components.css and before each section's own CSS. The dark colours are the ones Music already used
   in 2026 (music.css), so Music looks exactly as before and every other screen now matches it.
   The header band stays plum with the gold rule in both, as the Teacher app's mark. */
:root{--card:#FFFFFF}
:root[data-mode=dark]{
  --ink:#F2F0F6;--muted:#A29DB0;--line:#2A2733;--lilac:#24212E;--zebra:#1D1A2B;--ground:#15121F;--card:#1A1822;
  --brand:#A797CF;--brand-hv:#B9ABDB;--gold-dk:#D4B97E;
  --ok:#8FD3A4;--okbg:#17301F;--warn:#E9A55A;--warnbg:#2E2416;--bad:#F2A3A0;--badbg:#3A1C1C;
  --brandsoft:#2B2640;--mist:var(--ground);
  color-scheme:dark}
:root[data-mode=dark] body{background:var(--ground)}
/* Plum is a text and outline colour on the other screens: too dark to read on a dark page, so it turns lilac there.
   Music keeps its own plum (its player and bars are filled with it). */
:root[data-mode=dark] body:not([data-sec=music]){--plum:#CBBEF0}
/* ...and anything filled with plum or the main button colour takes dark words instead of white. */
:root[data-mode=dark] body:not([data-sec=music]) :is(.btn.p,.badge,.pill,.sizes button.on,.chips button.on,.fixes button.on,.tabbtn.active,.mineseg button.on,.mk.in,.mk.out){color:#15121F}
/* Pale status chips on Home, as dark ones. */
:root[data-mode=dark] .chip.ok{background:var(--okbg);color:var(--ok)}
:root[data-mode=dark] .chip.bad{background:var(--badbg);color:var(--bad)}
:root[data-mode=dark] .chip.warn{background:var(--warnbg);color:var(--warn)}
:root[data-mode=dark] :is(.run.mine,.row2.next){background:var(--lilac)}
:root[data-mode=dark] .pc.done{border-color:#2F6B47}
:root[data-mode=dark] :is(.seg button[aria-pressed=true],.dock button[aria-pressed="true"],.t-mode-home .t-mode button[aria-pressed=true]){box-shadow:none;background:var(--lilac);color:var(--plum)}
:root[data-mode=dark] :is(input,select,textarea){color:var(--ink)}
:root[data-mode=dark] :is(input,select,textarea)::placeholder{color:#6F6A7E}
/* The menu bar at the bottom on a phone, and the side menu. */
:root[data-mode=dark] .t-nav a[aria-current=page]{color:var(--gold)}
/* Paper is always white: printing ignores dark. */
@media print{:root[data-mode=dark]{--ink:#25222B;--muted:#666270;--line:#E6E2EE;--ground:#FFFFFF;--card:#FFFFFF;color-scheme:light}
  :root[data-mode=dark] body{background:#fff}}
