/* Gradely teacher console. Builds on gradely.css tokens. */
body.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: var(--bg); }
.small { font-size: 12px; }

/* Sidebar — a paper margin, not a dark rail */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.side::after { content: ''; position: absolute; top: 0; bottom: 0; right: 10px; width: 3px; border-inline: 1px solid var(--margin); opacity: .55; pointer-events: none; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; color: var(--ink); }
.side-brand span { font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1; letter-spacing: -.02em; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(26,32,48,.05); } }
.side-nav a[aria-current='page'] { background: var(--bg); color: var(--ink); font-weight: 600; }
.side-nav a[aria-current='page'] svg { color: var(--accent); }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 4px 0 2px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 1.35; }
.side-org .muted { font-size: 11.5px; }
.org-dot { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 12px; font-weight: 600; }
.side-db { padding-left: 8px; color: var(--muted); }

/* Main */
.main { min-width: 0; padding: 22px clamp(16px, 3vw, 36px) 40px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.top-title { font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.08; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exam-pick[hidden] { display: none; }
.exam-pick { position: relative; display: flex; align-items: center; }
.exam-pick select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; max-width: 320px; }
.exam-pick svg { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.exam-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.view[data-entering] { animation: viewIn 320ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

.box { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.box-head h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: -.01em; max-width: none; line-height: 1.3; }

/* Status pills */
.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-review { background: var(--warn-soft); color: var(--warn); }
.st-graded { background: #E3E8F3; color: #28407A; }
.st-approved { background: var(--ok-soft); color: var(--ok); }

/* Exams */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.exam { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.exam::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.exam.exam-muted::before { background: var(--line-2); }
.ex-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ex-class { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); }
.exam h3 { font-family: var(--font-display); font-weight: 500; font-size: 25px; line-height: 1.15; margin-top: 2px; }
.ex-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-meta span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.segbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg-2); gap: 2px; }
.segbar i { display: block; height: 100%; transform-origin: left; transition: transform 700ms var(--ease-out); }
.segbar[data-pre] i { transform: scaleX(0); }
.seg-a { background: var(--ok); } .seg-g { background: #5E78B8; } .seg-r { background: #D9A441; }
.ex-counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.ex-counts span { display: inline-flex; align-items: center; gap: 6px; }
.ex-counts i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ex-counts b { font-weight: 600; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.ex-note { font-size: 13px; color: var(--muted); }
.scanning { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.scanning i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2) infinite; }

/* Queue */
.queue-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip b { font-weight: 500; color: var(--muted); font-size: 12px; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed='true'] b { color: rgba(247,244,236,.65); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); width: 260px; transition: border-color var(--t-fast) ease; }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; color: var(--ink); }

.table-wrap { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: auto; }
.table-wrap.flat { border: 0; border-radius: 0; background: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.sheets-tbl { min-width: 640px; }
.sheets-tbl tbody tr { cursor: pointer; transition: background-color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .sheets-tbl tbody tr:hover { background: var(--bg); } }
.sheets-tbl tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nm { font-weight: 500; }
.flagtxt-c { font-size: 13px; color: var(--warn); }
.dim { color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Marking */
.mark-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mh-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mh-meta { font-size: 12px; color: var(--muted); }
.mh-nav { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg); } }
.icon-btn:disabled { opacity: .4; cursor: default; }

.mark-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.scan-col { position: sticky; top: 16px; min-width: 0; }
.scan-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; color: var(--ink-2); }
.scan { max-height: calc(100vh - 200px); overflow: auto; border-radius: 6px; background: #E9E5DA; padding: 14px; border: 1px solid var(--line); scroll-behavior: smooth; }
.page { position: relative; background: #FFFEF9; border-radius: 3px; box-shadow: 0 1px 2px rgba(26,32,48,.08), 0 10px 28px -16px rgba(26,32,48,.3); padding: 0 76px 20px 64px; margin-bottom: 14px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 86px; transform: rotate(var(--tilt, 0deg)); filter: contrast(.98) brightness(.995); }
.page:last-child { margin-bottom: 0; }
.page::before { content: ''; position: absolute; top: 0; bottom: 0; left: 48px; width: 3px; border-inline: 1px solid var(--margin); }
.page::after { content: ''; position: absolute; top: 72px; bottom: 0; right: 62px; border-left: 1px dashed var(--margin); }
.pg-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; height: 72px; padding-top: 12px; margin-left: -12px; padding-left: 12px; background: #FFFEF9; z-index: 1; border-bottom: 1px solid var(--margin); margin-right: -76px; padding-right: 76px; position: relative; }
.pg-head p { font-size: 9px; letter-spacing: .12em; color: #7A8090; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-head .hand { font-size: 16px; letter-spacing: 0; margin-left: 6px; }
.pg-no { position: absolute; right: 12px; top: 12px; font-family: var(--font-mono); font-size: 10px; color: #7A8090; }
.pg-total { position: absolute; right: 10px; top: 28px; font-family: var(--font-pen); font-weight: 600; font-size: 26px; color: var(--accent); line-height: 1; }
.pg-body { padding-top: 14px; }
.ans { position: relative; padding: 0 0 32px; border-radius: 4px; transition: background-color var(--t-ui) ease; }
.ans[data-active] { background: rgba(200,50,43,.06); box-shadow: 0 0 0 6px rgba(200,50,43,.06); }
.ans .qno { position: absolute; left: -48px; top: 0; width: 26px; text-align: right; font-family: var(--font-hand); color: var(--blue-ink); font-size: 16px; line-height: 32px; }
.ans .hl { font-family: var(--font-hand); color: var(--blue-ink); font-size: 16.5px; line-height: 32px; min-height: 32px; overflow-wrap: anywhere; }
.ans .hl.over { text-decoration: line-through; text-decoration-color: rgba(31,58,138,.7); }
.ans .mk { position: absolute; right: -70px; top: 0; width: 56px; height: 32px; display: grid; place-items: center; }
.mk .ring { position: absolute; inset: 1px 6px; }
.mk .ring path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.mk b { position: relative; font-family: var(--font-pen); font-weight: 600; font-size: 23px; color: var(--accent); line-height: 1; }
.mk.pending b { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 3px 6px; border-radius: 5px; letter-spacing: .04em; }
.ans .sym { position: absolute; top: 4px; width: 22px; height: 20px; pointer-events: none; }
.sym path { fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.ans .flag-line { position: absolute; left: -8px; right: -8px; top: -2px; bottom: 26px; border: 1.5px dashed rgba(138,83,0,.55); border-radius: 6px; pointer-events: none; }
.diagram { display: block; width: 260px; max-width: 100%; height: auto; margin: 4px 0 0; }
.diagram path, .diagram ellipse, .diagram line { fill: none; stroke: var(--blue-ink); stroke-width: 1.5; stroke-linecap: round; }
.diagram text { font-family: var(--font-hand); font-size: 13px; fill: var(--blue-ink); }

.q-col { min-width: 0; }
.qlist { display: grid; gap: 8px; }
.qi { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.qi[data-active] { border-color: rgba(200,50,43,.45); box-shadow: 0 0 0 3px rgba(200,50,43,.08); }
.qi.is-flag { background: #FDF6E7; border-color: rgba(138,83,0,.25); }
.qi.is-flag.done { background: var(--surface); border-color: var(--line); }
.qi-q { font-size: 14px; font-weight: 600; line-height: 1.35; }
.qi-q .mono { color: var(--accent-deep); font-weight: 500; margin-right: 6px; }
.qi-q .max { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.qi-why { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.qi-why .tag { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; margin-top: 1px; }
.tag-s { background: #E3E8F3; color: #28407A; }
.tag-f { background: var(--warn-soft); color: var(--warn); }
.tag-t { background: var(--ok-soft); color: var(--ok); }
.qi-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.qi-foot s { color: var(--muted); }
.qi .stepper { height: 36px; }
.qi .stepper button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--ink-2); font-size: 17px; border-radius: 8px; transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.qi .stepper button:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .qi .stepper button:hover { background: var(--bg); } }
.qi .stepper button:disabled { opacity: .3; cursor: default; }
.qi .stepper output { min-width: 44px; text-align: center; font-family: var(--font-mono); font-weight: 500; font-size: 15px; border-inline: 1px solid var(--line); line-height: 34px; }
.qi .stepper output.unset { color: var(--warn); }
.qi .stepper output[data-bump] { animation: bump 220ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.12); } }
.approve-bar { position: sticky; bottom: 12px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #ECEAE4; box-shadow: 0 20px 40px -24px rgba(26,32,48,.6); flex-wrap: wrap; }
.ab-total b { font-size: 28px; font-weight: 500; color: #fff; }
.ab-total span { font-size: 14px; color: #9EA3B0; margin-left: 4px; }
.approve-bar .muted { color: #B5B8C2; }
.approve-bar .btn-ink { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .approve-bar .btn-ink:hover { background: var(--accent-deep); } }
.approve-bar .btn-ink:disabled { background: rgba(255,255,255,.12); color: #B5B8C2; cursor: not-allowed; transform: none; }
.approve-bar .btn-ink.is-approved { background: #CFE6D2; color: #1F4F2D; }

/* Results */
.res-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ra-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi p { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1.1; letter-spacing: -.02em; }
.kpi b small { font-family: var(--font-ui); font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.kpi span { font-size: 12px; color: var(--muted); }
.res-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 12px; }
.dchart { position: relative; height: 230px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; padding: 22px 2px 26px; }
.dchart::before { content: ''; position: absolute; inset: 22px 0 26px; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); pointer-events: none; }
.dcol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.dcol i { display: block; height: 100%; border-radius: 5px 5px 2px 2px; background: #3F4A66; transform-origin: bottom; transform: scaleY(var(--v)); transition: transform 800ms var(--ease-out); }
.dcol.low i { background: var(--accent); }
.dchart[data-pre] .dcol i { transform: scaleY(.02); }
.dcol span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dcol b { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100% + 4px); text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.dcol.low span, .dcol.low b { color: var(--accent-deep); font-weight: 600; }
.insights { display: grid; gap: 8px; margin-top: 14px; }
.insight { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; }
.insight .pen-note { font-size: 20px; }
.insight b { font-weight: 600; }
.hist { display: grid; gap: 9px; }
.hrow { display: grid; grid-template-columns: 64px 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; }
.hrow span { font-family: var(--font-mono); color: var(--muted); font-size: 11.5px; }
.hrow i { height: 18px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.hrow i::after { content: ''; position: absolute; inset: 0; border-radius: 4px; background: #5E78B8; transform-origin: left; transform: scaleX(var(--v)); transition: transform 800ms var(--ease-out); }
.hist[data-pre] .hrow i::after { transform: scaleX(0); }
.hrow b { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.hist-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.marklist { min-width: 760px; font-size: 13px; }
.marklist td, .marklist th { padding: 9px 10px; }
.marklist .qc { text-align: center; font-family: var(--font-mono); font-size: 12.5px; }
.marklist .qc.zero { color: var(--accent-deep); }
.marklist .tot { font-weight: 600; }
.marklist tr.unapproved td { color: var(--muted); }
.marklist tr.unapproved td.nm::after { content: ' · suggested'; font-size: 11px; color: var(--warn); }

.demo-note { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); text-align: center; }

/* Responsive */
@media (max-width: 1180px) {
  .mark-grid { grid-template-columns: 1fr; }
  .scan-col { position: static; }
  .scan { max-height: 520px; }
  .res-cols { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  body.app { grid-template-columns: 1fr; padding-bottom: 76px; }
  .side { position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: rgba(255,254,249,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .side::after, .side-brand, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 11.5px; }
  .side-nav a[aria-current='page'] { background: transparent; }
  .side-badge { position: absolute; top: 2px; right: calc(50% - 26px); min-width: 18px; height: 16px; font-size: 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .approve-bar { bottom: 84px; }
}
@media (max-width: 680px) {
  .top-title { font-size: 34px; }
  .top-actions { width: 100%; }
  .exam-pick { flex: 1; min-width: 0; }
  .exam-pick select { width: 100%; max-width: none; }
  .exam-grid { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .kpi b { font-size: 34px; }
  .page { padding: 0 58px 16px 44px; }
  .page::before { left: 32px; }
  .page::after { right: 46px; }
  .pg-head { margin-right: -58px; padding-right: 58px; grid-template-columns: 1fr; height: auto; min-height: 72px; padding-bottom: 6px; }
  .ans .qno { left: -42px; width: 22px; font-size: 15px; }
  .ans .mk { right: -54px; width: 44px; }
  .ans .hl { font-size: 15px; }
  .scan { padding: 8px; max-height: 460px; }
  .dchart { gap: 5px; }
  .dcol b { font-size: 9.5px; }
  .ra-btns { width: 100%; }
  .ra-btns .btn { flex: 1 1 auto; }
  .mark-head { padding: 12px; }
}

/* Waiting for a teacher */
.waiting { margin-top: 14px; }
.wlist { display: grid; }
.wlist li { border-top: 1px solid var(--line); }
.wlist li:first-child { border-top: 0; }
.wlist button { width: 100%; display: grid; grid-template-columns: 110px 170px 1fr; gap: 14px; align-items: baseline; padding: 11px 6px; border-radius: 8px; text-align: left; font-size: 14px; transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wlist button:hover { background: var(--bg); } }
.wlist .mono { font-size: 12px; color: var(--warn); }
.wlist .why { font-size: 13px; color: var(--muted); }
.wmore { padding: 12px 6px 2px; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .wlist button { grid-template-columns: 1fr; gap: 2px; } }

/* Marks with halves: IBM Plex Mono has no ½ glyph, so mark values use the UI face with tabular figures. */
.qi .stepper output, .ab-total b, .qi-foot s, .tbl .num, .marklist .qc, .kpi b { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.ab-total b { font-weight: 600; }
