/* class-games-87: TeachMech look for the text pages (Class Report, Privacy & Terms).
   Dark by default like Home and Games; light theme (cg-theme = light) keeps the page's own light colours. */
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme=dark] body{background:#232323;color:#fff;font-family:Inter,"Segoe UI",system-ui,sans-serif}
:root[data-theme=dark] h1,:root[data-theme=dark] h2{font-family:Poppins,sans-serif}
:root[data-theme=dark] header{background:#232323}
:root[data-theme=dark] a.home,:root[data-theme=dark] a.btn.home{background:#ffffff14;color:#fff;border:1px solid #ffffff26;box-shadow:none}
:root[data-theme=dark] a.home:hover,:root[data-theme=dark] a.btn.home:hover{background:#ffffff26}
:root[data-theme=dark] .card{background:#2e2e2e;border:1px solid #ffffff1f;box-shadow:0 10px 26px #0005}
:root[data-theme=dark] .sub,:root[data-theme=dark] .hint,:root[data-theme=dark] .nx,:root[data-theme=dark] .empty,:root[data-theme=dark] .st span,:root[data-theme=dark] .sync{color:#cfcfcf}
:root[data-theme=dark] a{color:#7dd3fc}
:root[data-theme=dark] nav a{color:#7dd3fc}
:root[data-theme=dark] .ok{color:#86efac}
:root[data-theme=dark] .sync.ok,:root[data-theme=dark] .msg{color:#86efac}
:root[data-theme=dark] .sync.bad{color:#fcd34d}
:root[data-theme=dark] .st{background:#3a3a3a}
:root[data-theme=dark] th{color:#bdbdbd}
:root[data-theme=dark] th,:root[data-theme=dark] td{border-bottom-color:#ffffff1f}
:root[data-theme=dark] .bar{background:#4a4a4a}
:root[data-theme=dark] .warn{background:#43281a;color:#fed7aa}
:root[data-theme=dark] select,:root[data-theme=dark] input[type=text]{background:#1f1f1f;color:#fff;border-color:#ffffff33}
:root[data-theme=dark] button.k{background:#525252}
/* class-games-87b: LIGHT theme = same neutral white/grey as Home (no more blue-grey page) */
:root[data-theme=light] body{background:#f4f4f4;color:#1d1d1d;font-family:Inter,"Segoe UI",system-ui,sans-serif}
:root[data-theme=light] h1,:root[data-theme=light] h2{font-family:Poppins,sans-serif}
:root[data-theme=light] header{background:#f4f4f4}
:root[data-theme=light] a.home,:root[data-theme=light] a.btn.home{background:#0000000a;color:#1d1d1d;border:1px solid #0000001f;box-shadow:none}
:root[data-theme=light] .card{background:#fff;border:1px solid #0000001a;box-shadow:0 8px 22px #0000001a}
:root[data-theme=light] .st{background:#f1f1f1}
/* Teacher accounts page (admin.html) */
:root[data-theme=dark] body.adm{background:#232323}
:root[data-theme=light] body.adm{background:#f4f4f4}
:root[data-theme=light] body.adm h1,:root[data-theme=light] body.adm .who{color:#1d1d1d}
:root[data-theme=dark] body.adm .card,:root[data-theme=light] body.adm .card{border-width:1px}
:root[data-theme=dark] body.adm .card h2,:root[data-theme=dark] body.adm label{color:#fff}
:root[data-theme=dark] body.adm .note,:root[data-theme=dark] body.adm th{color:#cfcfcf}
:root[data-theme=dark] body.adm input,:root[data-theme=dark] body.adm select{background:#1f1f1f;color:#fff;border-color:#ffffff33}
