/* Native scrolling with discreet controls, shared by every student app surface. */
:root { --scroll-thumb:color-mix(in srgb,var(--muted) 70%,var(--line)); scrollbar-gutter:stable; background:var(--bg); }
html, body * { scrollbar-width:thin; scrollbar-color:var(--scroll-thumb) transparent; }
html:has(dialog[open]) { overflow:hidden; }
.sidebar { scrollbar-width:none; }
@supports selector(::-webkit-scrollbar) {
  html, body * { scrollbar-width:auto; scrollbar-color:auto; }
  ::-webkit-scrollbar { width:8px; height:8px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background:transparent; }
  ::-webkit-scrollbar-thumb { background:var(--scroll-thumb); border:2px solid transparent; background-clip:padding-box; border-radius:999px; }
  ::-webkit-scrollbar-thumb:hover { background-color:var(--muted); }
  ::-webkit-scrollbar-thumb:active { background-color:var(--primary); }
  ::-webkit-scrollbar-button { display:none; width:0; height:0; }
  .sidebar::-webkit-scrollbar { display:none; width:0; height:0; }
}
@media(forced-colors:active) {
  html, body *, .sidebar { scrollbar-width:auto; scrollbar-color:auto; }
  ::-webkit-scrollbar { width:revert; height:revert; }
  ::-webkit-scrollbar-thumb { background:ButtonText; border:0; }
  .sidebar::-webkit-scrollbar { display:revert; width:revert; height:revert; }
}
