/* Root Access — a dark, terminal-adjacent theme. A course about the machine
   should look a little like the machine, and dark is what a two-hour evening
   lab is easier on. */

:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2430;
  --line: #2b3440;
  --ink: #e6edf3;
  --ink-dim: #9aa7b4;
  --ink-faint: #6b7785;
  --accent: #58a6ff;
  --accent-deep: #1f6feb;
  --green: #3fb950;
  --amber: #d29922;
  --red: #f85149;
  --violet: #bc8cff;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* Several utility classes below set an explicit `display`, which beats the user
   agent's rule for [hidden] and leaves supposedly-hidden fields on screen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
.offscreen { position: fixed; left: -9999px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent-deep);
  color: #fff; padding: .6rem 1rem; z-index: 50; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(13, 17, 23, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.brand small { display: block; color: var(--ink-faint); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }

.topnav { display: flex; gap: .3rem; margin-left: auto; flex-wrap: wrap; }
.topnav a {
  padding: .35rem .7rem; border-radius: 999px; color: var(--ink-dim); font-size: .9rem;
}
.topnav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.topnav a.active { background: var(--bg-3); color: var(--ink); }

.account-slot { display: flex; align-items: center; gap: .55rem; }
.who { color: var(--ink-dim); font-size: .88rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-pip {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--amber); border: 1px solid var(--amber); border-radius: 999px; padding: .1rem .45rem;
}

/* -------------------------------------------------------------- layout */
main { display: block; min-height: 70vh; }
main:focus { outline: none; }
.wrap { max-width: 1060px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2rem) 4rem; }
.wrap.narrow { max-width: 620px; }

.crumbs { color: var(--ink-faint); font-size: .85rem; margin-bottom: 1rem; }
.eyebrow { color: var(--ink-faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .3rem; }

h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.lede { color: var(--ink-dim); font-size: 1.05rem; max-width: 62ch; }
.hint { color: var(--ink-faint); font-size: .9rem; }
.callout { background: var(--bg-2); border-left: 3px solid var(--accent); padding: .7rem 1rem; border-radius: 0 8px 8px 0; }

.foot { border-top: 1px solid var(--line); padding: 1.6rem; text-align: center; color: var(--ink-faint); font-size: .85rem; }

/* --------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero-units { list-style: none; padding: 0; margin: 1.2rem 0 0; color: var(--ink-dim); }
.hero-units li { padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.hero-units b { color: var(--ink); }

.card-solid { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.signin input { margin-bottom: .6rem; }
.signin-form { display: block; }
.or { text-align: center; color: var(--ink-faint); font-size: .8rem; margin: .9rem 0; position: relative; }
.or::before, .or::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--line); }
.or::before { left: 0; } .or::after { right: 0; }
.row.between { justify-content: space-between; }

/* ------------------------------------------------------------ controls */
input, textarea, select {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
.wide { width: 100%; display: block; }
textarea { resize: vertical; width: 100%; }
.code-input { text-transform: uppercase; letter-spacing: .35em; font-size: 1.2rem; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent-deep); color: #fff; border: 1px solid transparent;
  border-radius: 8px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: #2b7cf3; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 500; }
.btn.ghost:hover { background: var(--bg-3); }
.btn.small { padding: .3rem .65rem; font-size: .84rem; }
.btn.wide { width: 100%; }
.btn.google { background: #fff; color: #1a1a1a; }
.btn.google:hover { background: #eaeef2; }
.linkish { background: none; border: none; color: var(--accent); font: inherit; font-size: .87rem; cursor: pointer; padding: 0; }
.linkish:hover { text-decoration: underline; }

.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }

.copy {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  background: var(--bg-3); color: var(--ink-dim); border: 1px solid var(--line);
  border-radius: 6px; padding: .2rem .55rem; font: inherit; font-size: .76rem; cursor: pointer;
}
.copy:hover { color: var(--ink); }
.copy.ok { color: var(--green); border-color: var(--green); }

/* ---------------------------------------------------------- week cards */
.greeting { margin-bottom: 2rem; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.week-card {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; color: var(--ink);
}
.week-card.open:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); transition: .15s; }
.week-card.locked { opacity: .45; }
.week-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.week-num { font-family: var(--mono); font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.lock { font-size: .74rem; color: var(--ink-faint); }
.week-card h3 { font-size: 1.02rem; }
.week-meta { color: var(--ink-faint); font-size: .82rem; margin: .6rem 0 0; font-family: var(--mono); }

.ring-holder { flex: 0 0 auto; line-height: 0; }
.ring-bg { fill: none; stroke: var(--bg-3); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-text { fill: var(--ink-dim); font-size: 13px; font-family: var(--mono); text-anchor: middle; dominant-baseline: central; }

/* ------------------------------------------------------------ week view */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.outcomes { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.outcomes ul { margin: 0; padding-left: 1.2rem; color: var(--ink-dim); }
.outcomes li { padding: .15rem 0; }

.module-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.module-row {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; color: var(--ink);
}
.module-row:hover { border-color: var(--accent); text-decoration: none; }
.module-row.brk { background: transparent; border-style: dashed; }
.module-row.done { border-left: 3px solid var(--green); }
.module-time { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); }
.module-body b { display: block; font-size: .98rem; }
.module-body small { color: var(--ink-faint); }
.module-score { font-family: var(--mono); font-size: .88rem; color: var(--ink-dim); }
.module-score.full { color: var(--green); }
.module-score.muted { color: var(--ink-faint); }

.module-head { margin-bottom: 1.2rem; }
.module-progress { color: var(--ink-faint); font-family: var(--mono); font-size: .85rem; margin: .3rem 0 0; }
.module-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- pacer */
.pacer { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1.2rem 0; }
.pacer-idle { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; color: var(--ink-faint); font-size: .89rem; }
.pacer-now { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; flex-wrap: wrap; }
.pacer-left { color: var(--ink-faint); font-family: var(--mono); font-size: .85rem; }
.pacer-track { position: relative; display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-3); margin-bottom: .6rem; }
.pacer-seg { background: var(--accent-deep); border-right: 2px solid var(--bg-2); }
.pacer-seg.brk { background: var(--bg-3); }
.pacer-seg.now { background: var(--green); }
.pacer-head { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink); border-radius: 2px; }
.pacer-live.over .pacer-head { background: var(--amber); }

/* --------------------------------------------------------------- blocks */
.blocks { display: grid; gap: 1.3rem; }

.note { background: var(--bg-2); border-left: 3px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; }
.note p { margin: 0; color: var(--ink-dim); }
.note b { color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.card-tag { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .09em; text-transform: uppercase; }
.card h4 { margin: .25rem 0 .4rem; font-size: .97rem; }
.card p { margin: 0; color: var(--ink-dim); font-size: .9rem; }

.faq { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .94rem; }
.faq-a { color: var(--ink-dim); font-size: .9rem; padding-top: .4rem; }
.faq-a p { margin: .3rem 0; }

/* ------------------------------------------------------------- terminal */
.terminal-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.term-tabs { display: flex; gap: .3rem; margin: .8rem 0 0; flex-wrap: wrap; }
.term-tab {
  background: transparent; border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0; padding: .35rem .8rem; color: var(--ink-faint);
  font: inherit; font-size: .84rem; cursor: pointer;
}
.term-tab.active { background: var(--bg); color: var(--ink); border-color: var(--line); }
.code-wrap { position: relative; }
pre.term, pre.mono, .cipher, .code-build, .evidence-view {
  background: var(--bg); border: 1px solid var(--line); border-radius: 0 8px 8px 8px;
  padding: .9rem 1rem; overflow-x: auto; font-family: var(--mono); font-size: .855rem;
  line-height: 1.65; margin: 0; white-space: pre-wrap; word-break: break-word;
}
.c-comment { color: var(--ink-faint); }
.c-cmd { color: var(--green); }
.expect { margin-top: .9rem; padding: .7rem .9rem; background: var(--bg-3); border-radius: 8px; font-size: .89rem; color: var(--ink-dim); }
.expect b { color: var(--ink); }

/* ---------------------------------------------------------------- panel */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.panel-head h3 { margin: 0; }
.panel-head code { font-family: var(--mono); font-size: .9em; background: var(--bg-3); padding: .05em .35em; border-radius: 4px; }
.panel-score { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }
.panel-score.partial { color: var(--amber); }
.panel-score.complete { color: var(--green); }
.panel-note { color: var(--ink-dim); font-size: .92rem; margin: 0 0 .9rem; }

.feedback { font-size: .9rem; margin: .7rem 0 0; min-height: 1.2em; color: var(--ink-dim); }
.feedback.ok { color: var(--green); }
.feedback.bad { color: var(--red); }
.feedback.warn { color: var(--amber); }
.feedback ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.feedback b { color: inherit; }
.flagged { color: var(--amber); }

.aside { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.aside summary { cursor: pointer; color: var(--ink-faint); font-size: .87rem; }
.aside-body { color: var(--ink-dim); font-size: .89rem; }
.aside-body p { margin: .45rem 0; }

.q { font-weight: 600; margin: 0 0 .6rem; }
.saved-note { color: var(--ink-faint); font-size: .8rem; margin: 0; }

/* ----------------------------------------------------------------- bits */
.bits-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.bit {
  flex: 1 1 0; min-width: 62px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .5rem .2rem; cursor: pointer; color: var(--ink-faint);
  display: grid; gap: .1rem; justify-items: center; font: inherit; transition: .12s;
}
.bit:hover { border-color: var(--accent); }
.bit.on { background: rgba(63, 185, 80, .13); border-color: var(--green); color: var(--green); }
.bit-place { font-family: var(--mono); font-size: .74rem; }
.bit-val { font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.bit.on .bit-val { color: var(--green); }
.bit-exp { font-size: .68rem; opacity: .7; }
.bits-readout { margin-top: 1rem; }
.bits-big { font-size: 1.5rem; letter-spacing: .12em; text-align: center; color: var(--green); margin-bottom: .8rem; }
.bits-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin: 0; }
.bits-facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
.bits-facts dt { font-size: .72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.bits-facts dd { margin: .15rem 0 0; font-size: .95rem; }

/* ---------------------------------------------------------------- drill */
.drill-dots { display: flex; gap: .35rem; margin-bottom: .8rem; }
.dot { width: 100%; height: 5px; border-radius: 999px; background: var(--bg-3); }
.dot.filled { background: var(--green); }
.drill-q { font-size: 1.15rem; margin-bottom: .7rem; }
.drill-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.drill-input { flex: 1 1 180px; font-size: 1.1rem; letter-spacing: .1em; }

/* --------------------------------------------------------------- encode */
.byte-table { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.byte { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; text-align: center; }
.byte.multi { border-color: var(--amber); }
.byte-char { font-size: 1.3rem; line-height: 1.2; }
.byte-bits { font-size: .74rem; color: var(--green); }
.byte-meta { font-size: .7rem; color: var(--ink-faint); }
.byte-flag { font-size: .66rem; color: var(--amber); margin-top: .2rem; }
.cipher { letter-spacing: .06em; color: var(--green); margin-bottom: .8rem; border-radius: 8px; }

/* ----------------------------------------------------------------- sort */
.sort-pool { display: flex; gap: .45rem; flex-wrap: wrap; margin: .8rem 0 1rem; min-height: 2.4rem; }
.chip {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; font: inherit; font-size: .86rem; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.selected { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.chip.settled { cursor: default; background: rgba(63,185,80,.12); border-color: var(--green); color: var(--green); }
.sort-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.bucket { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: .8rem; min-height: 6rem; }
.bucket.armed { border-color: var(--accent); cursor: pointer; }
.bucket.armed:hover { background: var(--bg-3); }
.bucket h4 { margin: 0 0 .5rem; font-size: .84rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.bucket-items { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }

/* ---------------------------------------------------------------- scale */
.scale-slider { width: 100%; accent-color: var(--green); margin: .5rem 0; }
.scale-label { color: var(--ink-dim); font-size: .92rem; margin: 0 0 .8rem; }
.scale-rows { display: grid; gap: .3rem; }
.scale-row { display: grid; grid-template-columns: 11rem 1fr 8rem; gap: .7rem; align-items: center; font-size: .85rem; }
.scale-name { color: var(--ink-dim); }
.scale-bar { background: var(--bg); border-radius: 999px; height: 12px; overflow: hidden; }
.scale-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); }
.scale-time { color: var(--ink); text-align: right; font-size: .8rem; }
.scale-quiz { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 620px) { .scale-row { grid-template-columns: 7.5rem 1fr; } .scale-time { grid-column: 2; text-align: left; } }

/* ------------------------------------------------------------ proctable */
.proc-table { display: grid; gap: 2px; margin: .8rem 0; }
.proc-row {
  display: grid; grid-template-columns: 4rem 5rem 4rem 4rem 1fr; gap: .5rem; align-items: center;
  background: var(--bg); border: 1px solid transparent; border-radius: 6px;
  padding: .4rem .6rem; font-size: .84rem; text-align: left; color: var(--ink-dim);
  font-family: var(--mono); cursor: pointer;
}
.proc-row:hover { border-color: var(--accent); }
.proc-head { color: var(--ink-faint); font-size: .74rem; letter-spacing: .06em; cursor: default; background: transparent; }
.proc-row .hot { color: var(--red); font-weight: 700; }
.proc-row .warm { color: var(--amber); }
.proc-cmd { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.proc-row.nailed { border-color: var(--green); background: rgba(63,185,80,.08); }
.proc-step2 { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 620px) { .proc-row { grid-template-columns: 3.2rem 3.4rem 3.4rem 1fr; } .proc-row > :nth-child(4) { display: none; } }

/* ---------------------------------------------------------------- build */
.code-file { margin-bottom: .3rem; }
.code-name { font-size: .78rem; color: var(--ink-faint); background: var(--bg-3); padding: .15rem .55rem; border-radius: 6px 6px 0 0; }
.code-build { border-radius: 0 8px 8px 8px; }
.code-line { min-height: 1.65em; }
.blank {
  background: var(--bg-3); border: 1px dashed var(--accent); border-radius: 5px;
  padding: 0 .25rem; font-family: var(--mono); font-size: .85rem; color: var(--ink);
}
.blank.right { border-style: solid; border-color: var(--green); color: var(--green); }
.blank.wrong { border-style: solid; border-color: var(--red); color: var(--red); }
.runner { margin-top: 1rem; }

/* ----------------------------------------------------------------- quiz */
.quiz-result { background: var(--bg-3); border-radius: 8px; padding: .6rem .9rem; font-size: .92rem; margin-bottom: 1rem; }
.quiz-result.passed { background: rgba(63,185,80,.12); color: var(--green); }
.quiz-result.failed { background: rgba(248,81,73,.1); color: var(--red); }
.quiz-list { padding-left: 1.3rem; display: grid; gap: 1.4rem; }
.quiz-opts { display: grid; gap: .35rem; }
.quiz-opt {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .8rem; text-align: left; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.right { border-color: var(--green); background: rgba(63,185,80,.1); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(248,81,73,.08); }

/* -------------------------------------------------------------- evidence */
.evidence { min-height: 6rem; font-size: .85rem; line-height: 1.6; }
.code-pill { background: var(--bg-3); border-radius: 6px; padding: .1rem .5rem; letter-spacing: .2em; color: var(--green); }

/* ------------------------------------------------------------- roster */
.roster { display: grid; gap: 2px; margin-top: 1.2rem; overflow-x: auto; }
.roster-row {
  display: grid; grid-template-columns: 13rem repeat(15, 1fr) 4rem 5.5rem; gap: 3px;
  align-items: center; background: var(--bg-2); border: 1px solid transparent;
  border-radius: 6px; padding: .45rem .6rem; text-align: left; color: var(--ink-dim);
  font-size: .82rem; min-width: 780px;
}
.roster-head { background: transparent; color: var(--ink-faint); font-size: .7rem; text-align: center; }
.roster-head .roster-name { text-align: left; }
.roster-student { cursor: pointer; }
.roster-student:hover { border-color: var(--accent); }
.roster-name { display: flex; flex-direction: column; color: var(--ink); overflow: hidden; }
.roster-name small { color: var(--ink-faint); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; }
.roster-cell { height: 22px; border-radius: 3px; background: var(--bg-3); }
.roster-cell.full { background: var(--green); }
.roster-cell.part { background: var(--amber); }
.roster-cell.none { background: var(--bg-3); }
.roster-total, .roster-seen { font-family: var(--mono); font-size: .78rem; text-align: right; }

.detail { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.detail-task { margin-bottom: 1.2rem; }
.detail-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; }
.detail-head b { font-size: .92rem; }
.pill { font-family: var(--mono); font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); }
.pill.full { color: var(--green); border-color: var(--green); }
.pill.part { color: var(--amber); border-color: var(--amber); }
.evidence-view { max-height: 16rem; overflow: auto; border-radius: 8px; font-size: .8rem; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 2rem);
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .89rem;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
