/* Device tests. Swiss/International style, like a test instrument's front panel or a printed spec sheet.
   Light only. Black on white, greys, square corners, black rules, Helvetica set large.
   State colours only: black = pass/tested, red #e30613 = fail, yellow #ffc400 = warning or "held now".
   No dark panels, no green, no pills or badges, no uppercase letter-spaced labels, no shadows, no rounded cards. */
:root {
  --bg: #ffffff; --surface: #ffffff; --ink: #000000; --ink-2: #222222; --muted: #666666; --line: #dddddd; --line-2: #bbbbbb;
  --link: #000000; --accent: #000000;
  /* panel tokens kept so tool CSS stays readable; all light now */
  --p-bg: #ffffff; --p-bg2: #f3f3f3; --p-bg3: #ffffff; --p-line: #d4d4d4; --p-line2: #000000; --p-ink: #000000; --p-ink2: #333333; --p-muted: #666666;
  --sig: #000000; --sig-ink: #ffffff; --warn: #ffc400; --bad: #e30613; --idle: #bbbbbb;
  --radius: 0;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bad); }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
code { font-family: var(--mono); font-size: .88em; background: #f0f0f0; padding: 1px 4px; }
[hidden] { display: none !important; }
.ico { flex: none; }

/* ── header + nav ─────────────────────────────────────────────────── */
.top { background: #fff; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-dot { display: none; }
.topnav { display: flex; gap: 0; margin-left: auto; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.topnav .menu > summary { font-size: 16px; color: var(--ink); padding: 8px 12px; display: flex; align-items: center; gap: 7px; }
.topnav .menu > summary::after, .allnav > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.topnav .menu > summary:hover, .menu[open] > summary { background: var(--ink); color: #fff; }
.topnav .menu > summary.cur { font-weight: 700; }
.menu-pop { position: absolute; right: 0; top: 100%; background: #fff; border: 2px solid var(--ink); padding: 0; min-width: 320px; }
.menu-pop ul { list-style: none; margin: 0; padding: 0; }
.menu-pop li + li { border-top: 1px solid var(--line); }
.menu-pop a { display: grid; gap: 1px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.menu-pop a:hover, .menu-pop a[aria-current] { background: var(--ink); color: #fff; }
.menu-pop a:hover .md, .menu-pop a[aria-current] .md { color: #ccc; }
.menu-pop .mn { font-weight: 700; font-size: 16px; }
.menu-pop .md { font-size: 14px; color: var(--muted); line-height: 1.4; }
.allnav { display: none; margin-left: auto; min-width: 0; }
.allnav > summary { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 8px 10px; border: 2px solid var(--ink); min-height: 42px; max-width: calc(100vw - 160px); overflow: hidden; }
.allnav-cur { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.allnav-cur + .allnav-lab { color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 8px; white-space: nowrap; }
.allnav-lab { white-space: nowrap; }
.sheet { position: fixed; left: 0; right: 0; top: 58px; max-height: calc(100vh - 58px); overflow: auto; background: #fff; border-bottom: 2px solid var(--ink); padding: 4px 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.sheet-h { margin: 14px 0 0; font-size: 14px; font-weight: 700; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet a { display: block; padding: 10px 0; min-height: 44px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a[aria-current] { font-weight: 700; }
.sheet-foot { grid-column: 1 / -1; margin: 12px 0 0; }
@media (max-width: 900px) { .topnav { display: none; } .allnav { display: block; } }

/* ── type ─────────────────────────────────────────────────────────── */
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 700; }
.lede { color: var(--ink-2); margin: 10px 0 0; font-size: 19px; line-height: 1.45; max-width: 60ch; }

/* ── tool page top ────────────────────────────────────────────────── */
.tool-top { display: flex; flex-direction: column; padding-top: 28px; }
.tool-top .lede { margin-bottom: 22px; }
@media (max-width: 700px) {
  .tool-top { padding-top: 16px; }
  .tool-top h1 { font-size: 34px; margin-bottom: 12px; }
  .tool-top .lede { order: 3; margin: 14px 0 0; font-size: 17px; }
  .tool-top .tool { order: 2; }
  .tool-top .trust { order: 4; }
}

/* ── the test panel ───────────────────────────────────────────────── */
.tool { background: #fff; color: var(--ink); border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 0 0 20px; position: relative; min-height: min(62vh, 600px); }
.tool a { color: var(--ink); }
.tool h2, .tool h3 { color: var(--ink); }
@media (max-width: 700px) { .tool { min-height: 0; } }
.k { font-size: 14px; color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.inst { padding-top: 18px; }
.sub { border-top: 2px solid var(--ink); margin-top: 22px; padding-top: 4px; }
.sub-h { margin: 10px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sub-h .muted { color: var(--muted); font-weight: 400; }
.sub-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; }
@media (max-width: 760px) { .sub-2 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-between { justify-content: space-between; }
.mt-s { margin-top: 10px; }

/* verdict: the headline of the panel */
.vbar { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0 16px; border-bottom: 1px solid var(--ink); }
.verdict { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.verdict .dot { margin-top: 9px; }
.vword { display: none; }
.vt { min-width: 0; }
.vh { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.verdict.bad .vh { color: var(--bad); }
.vt small { display: block; font-size: 16px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.vt small .fix { font-weight: 700; margin-left: 4px; }
@media (max-width: 700px) { .vh { font-size: 22px; } .vbar .btn-copy { display: none; } }
/* state marker: a square, not a glowing dot */
.dot { width: 16px; height: 16px; background: #fff; border: 2px solid var(--idle); flex: none; display: inline-block; }
.dot.good { background: var(--ink); border-color: var(--ink); }
.dot.warn { background: var(--warn); border-color: var(--ink); }
.dot.bad { background: var(--bad); border-color: var(--bad); }
.dot.idle, .dot.busy { background: #fff; border-color: var(--idle); }
.dot.busy { border-color: var(--ink); }
.pulse { animation: none; }
.verdict.mini { align-items: center; }
.verdict.mini .dot { margin-top: 0; }
.verdict.mini .vh { font-size: 17px; }
.subv { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 16px; }
.subv .dot { position: relative; top: 2px; width: 12px; height: 12px; }
.subv .muted { color: var(--muted); font-size: 14px; }

/* buttons */
.btn { appearance: none; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 16px/1.1 var(--sans); text-decoration: none;
       padding: 10px 16px; border-radius: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; touch-action: manipulation; }
.btn:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .3; cursor: not-allowed; background: #fff; color: var(--ink); }
.btn.on { background: var(--ink); color: #fff; }
.btn-go { background: var(--ink); color: #fff; }
.btn-go:hover { background: var(--bad); border-color: var(--bad); }
.btn-go.on { background: #fff; color: var(--ink); }
.btn-sm { padding: 7px 12px; min-height: 38px; font-size: 15px; }
.btn-quiet { border-color: var(--line-2); font-weight: 400; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-copy { flex: none; font-size: 15px; min-height: 40px; padding: 8px 12px; }
.tool a.btn { color: var(--ink); }
.tool a.btn:hover { color: #fff; }
select.sel { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center;
       color: var(--ink); border: 2px solid var(--ink); border-radius: 0; padding: 9px 34px 9px 11px; font: 16px var(--sans); min-height: 46px; max-width: 100%; }
select.sel[disabled] { opacity: .4; }
.sel-sm { min-height: 38px; padding: 6px 30px 6px 10px; font-size: 15px; }
label.chk { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-2); cursor: pointer; }
input[type=range], input[type=checkbox] { accent-color: #000; }
.field { display: grid; gap: 4px; }
.field > span:first-child { font-size: 14px; color: var(--muted); }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline > span { font-size: 15px !important; color: var(--ink-2) !important; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; margin-top: 16px; }
.seg { display: inline-flex; gap: 0; flex-wrap: wrap; }
.seg .btn + .btn { margin-left: -2px; }
.primer { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; max-width: 46ch; text-align: center; }
.primer strong { color: var(--ink); }
.blocked .primer { display: none; }   /* never say “choose Allow” above a blocked panel */

/* readouts: big Helvetica numerals */
.readout { display: grid; gap: 2px; }
.readout .num { font: 700 56px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.04em; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.readout .u { font: 400 17px var(--sans); color: var(--muted); letter-spacing: 0; }
.readout-xl .num { font-size: clamp(72px, 12vw, 140px); }
.readout-inline .num { font-size: 36px; }

/* spec sheet */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin: 20px 0 0; }
.spec { padding: 9px 12px 10px 0; min-width: 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 14px; color: var(--muted); }
.spec dd { margin: 2px 0 0; font: 700 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) { .specs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* overlay that puts the Start button on the instrument */
.on-inst { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: rgba(255,255,255,.88); }
.wake-bar { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; border-left: 6px solid var(--ink); padding: 6px 12px; margin-bottom: 12px; }
.wake-bar .wake { margin: 0; font-size: 17px; font-weight: 700; }
.wake-bar .primer { margin: 0; text-align: left; max-width: none; font-size: 15px; }

/* mic */
.mic-top { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 560px) { .mic-top { grid-template-columns: 1fr; gap: 8px; } .mic-top .readout .num { font-size: 44px; } }
.meter { position: relative; height: 28px; background: #eeeeee; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
.meter-fill.hot { background: var(--warn); }
.meter-fill.clip { background: var(--bad); }
.meter .zone { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; }
.meter .z1 { left: 66.67%; } .meter .z2 { left: 90%; }
.meter-peak { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--bad); left: 0; }
.meter-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }
.scope-box { position: relative; margin-top: 16px; }
canvas { display: block; width: 100%; }
.scope { height: 190px; background: #fff; border: 1px solid var(--ink); }
@media (max-width: 560px) { .scope { height: 150px; } }
.playback { margin-top: 12px; }
.playback audio { width: 100%; max-width: 520px; }

/* webcam */
.cam-wrap { position: relative; background: #eeeeee; overflow: hidden; aspect-ratio: 16 / 9; }
.cam-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-wrap.mirror video { transform: scaleX(-1); }
.cam-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; color: var(--muted); }
.cam-glyph { color: #999; margin-bottom: 12px; }
.cam-badge, .cam-rec { position: absolute; top: 10px; background: #fff; padding: 3px 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cam-badge { left: 10px; } .cam-rec { right: 10px; display: flex; gap: 6px; align-items: center; color: var(--bad); }
.cam-rec .dot { width: 10px; height: 10px; }
.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.shots figure { margin: 0; width: 160px; }
.shots img, .shots video { width: 100%; border: 1px solid var(--ink); display: block; }
.shots figcaption { font-size: 13px; color: var(--muted); margin-top: 2px; }
.inst-foot { margin-top: 12px; }

/* pre-call */
.pc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } }
.pc-cam .inst { padding-top: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.checklist li { border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; gap: 6px; }
.pc-spk { margin-top: 2px; }
.pc-intro { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.pc-intro .primer { text-align: left; }
.pc-side > .btn-quiet { margin-top: 12px; }
.pc-mic { margin-top: 6px; border-top: 2px solid var(--ink); }

/* speaker / headphone */
.spk-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .spk-grid { grid-template-columns: minmax(0, 1fr); } }
.layout { width: 100%; height: auto; display: block; }
.layout .room { fill: #f3f3f3; stroke: none; }
.layout .sp rect { fill: #fff; stroke: var(--ink); stroke-width: 2; rx: 0; }
.layout .sp text, .layout .lt { fill: var(--ink); font: 700 13px var(--sans); text-anchor: middle; dominant-baseline: central; }
.layout .sur { opacity: .25; }
.layout.is51 .sur:not(.s71), .layout.is71 .sur { opacity: 1; }
.layout .sp.on rect { fill: var(--ink); }
.layout .sp.on text { fill: #fff; }
.layout .listener { fill: none; stroke: var(--ink); stroke-width: 2; }
.hp-layout .band { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: butt; }
.hp-layout .pan { fill: var(--ink); opacity: 0; }
.hp-layout .pan.on { opacity: 1; }
.stage { background: #f3f3f3; }
.spk-side { display: grid; gap: 12px; }
.pad3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pad3 .btn + .btn { margin-left: -2px; }
.btn-pad { justify-content: center; min-height: 68px; font-size: 19px; }
.lrq { border-left: 6px solid var(--warn); padding: 8px 12px; }
.lrq .hint { margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.vol { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.vol input { flex: 1; min-width: 120px; }
.freq { font: 700 40px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.freq small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.sweepbar, .progress { height: 8px; background: #e6e6e6; overflow: hidden; margin: 10px 0 8px; }
.sweepbar > div, .progress > div { height: 100%; width: 0; background: var(--ink); }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.btn-grid .btn { justify-content: center; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ink); padding: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.tab { appearance: none; background: none; border: 0; color: var(--ink); font: 400 16px var(--sans); padding: 9px 14px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab:hover { background: #eee; }
.tab.on { background: var(--ink); color: #fff; font-weight: 700; }
.lat-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 560px) { .lat-top { grid-template-columns: 1fr; } }
.btn-tap { min-width: 120px; min-height: 68px; justify-content: center; font-size: 19px; }

/* keyboard */
.kb-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.progress-wrap { flex: 1; min-width: 220px; max-width: 420px; }
.progress-wrap .progress { margin: 6px 0 0; }
.kb-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.kb-wrap { overflow: hidden; }
.kb { display: grid; gap: 14px; grid-template-columns: minmax(0, 15fr) minmax(0, 3.2fr) minmax(0, 4.2fr); user-select: none; -webkit-user-select: none; }
.kb.kb-tkl { grid-template-columns: minmax(0, 15fr) minmax(0, 3.2fr); }
.kb.kb-75, .kb.kb-60 { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.kb-sec { display: flex; flex-direction: column; gap: 4px; }
.kb-row { display: flex; gap: 4px; }
.kb-row.gap { margin-bottom: 8px; }
.key { flex: var(--w, 1) 1 0; min-width: 0; height: clamp(26px, 3vw, 40px); background: #fff; border: 1px solid #9a9a9a;
       color: #444; font: 400 clamp(8px, .85vw, 13px)/1.1 var(--sans); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 2px; overflow: hidden; white-space: nowrap; }
.key.sp { visibility: hidden; }
.key.dead { opacity: .35; border-style: dashed; }
.key.done { background: var(--ink); border-color: var(--ink); color: #fff; }
.key.down { background: var(--warn); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.key.chat { box-shadow: inset 0 0 0 3px var(--bad); }
.kb-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; }
@media (max-width: 760px) { .kb { grid-template-columns: minmax(0, 1fr) !important; } .kb-nav, .kb-num { display: none; } .kb-side { grid-template-columns: minmax(0, 1fr); } }
.keylog { font: 13px/1.5 var(--mono); height: 132px; overflow: auto; margin: 0 0 8px; padding: 0; list-style: none; color: var(--ink-2); }
.keylog li { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 2px 0; }
.keylog li:first-child { color: var(--muted); font-family: var(--sans); border-bottom: 2px solid var(--ink); }
.held { font: 700 16px var(--sans); min-height: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.held span { background: var(--warn); color: var(--ink); padding: 2px 8px; }
.held span.muted { background: none; color: var(--muted); padding: 0; }
.notice.kb-touch { margin: 0 0 12px; }

/* gamepad */
.pad-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .pad-grid { grid-template-columns: minmax(0, 1fr); } }
.pad-stage, .drift-stage { position: relative; }
.pad-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.pad-svg .b { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.pad-svg .b.on { fill: var(--ink); }
.pad-svg .lab { fill: var(--ink); font: 700 13px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pad-svg .lab.sm { font-size: 11px; fill: var(--muted); }
.pad-svg .b.on + .lab { fill: #fff; }
.pad-svg .body { fill: #f3f3f3; stroke: var(--ink); stroke-width: 2; }
.pad-svg .thumb { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.trig-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.tb { display: grid; grid-template-columns: 34px 1fr 36px; gap: 8px; align-items: center; font-size: 14px; }
.tb .progress { margin: 0; }
.sticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stick { display: grid; gap: 4px; justify-items: center; }
.stick canvas { aspect-ratio: 1; max-width: 220px; }
.sticks-big .stick canvas { max-width: 280px; }
.stick .xy { font-size: 14px; color: var(--muted); white-space: pre; }
.pad-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pad-tabs:empty { display: none; }
.raw { font-size: 13px; line-height: 1.5; color: var(--ink-2); display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; margin-top: 12px; }
.raw span { border: 1px solid var(--line-2); padding: 2px 6px; }
.raw span.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.drift-res { margin-top: 10px; }
.drift-big { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 16px; }

/* mouse */
.mouse-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .mouse-grid { grid-template-columns: minmax(0, 1fr); } }
.mouse-pad { background: #f3f3f3; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: none; }
.mouse-pad:focus-visible { outline: 3px solid var(--warn); }
.mouse-svg { width: 150px; height: auto; }
.mouse-svg .mb { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.mouse-svg .mb.done { fill: #666; }
.mouse-svg .mb.on { fill: var(--ink); }
.mouse-svg .mbody { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.mouse-svg .wh { fill: var(--line-2); }
.mouse-svg .wh.done { fill: var(--ink); }
.pad-hint { color: var(--muted); font-size: 15px; text-align: center; max-width: 40ch; margin: 12px 0 0; }
.mouse-side { display: grid; gap: 10px; align-content: start; }

/* solid colours + dead pixel */
.swatches { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px 6px; }
@media (max-width: 600px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sw { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 4px; min-width: 0; }
.sw-chip { display: block; aspect-ratio: 1; border: 1px solid var(--ink); }
.sw:hover .sw-chip, .sw:focus-visible .sw-chip { outline: 3px solid var(--ink); outline-offset: 2px; }
.sw-name { font-size: 13px; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solid { display: flex; align-items: flex-end; justify-content: center; width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--ink); cursor: pointer; padding: 14px; font: 15px var(--sans); }
.solid-white { background: #fff; color: #666; }
.solid-black { background: #000; color: #999; }
@media (max-width: 600px) { .solid { aspect-ratio: 4 / 3; } }
.fs { position: fixed; inset: 0; z-index: 1000; cursor: none; touch-action: manipulation; }
.fs-hint { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #000; color: #fff; padding: 8px 14px; font: 15px var(--sans); z-index: 1001; transition: opacity .6s; pointer-events: none; text-align: center; max-width: 90vw; }

/* refresh rate */
.hz-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; }
@media (max-width: 700px) { .hz-top { grid-template-columns: 1fr; gap: 12px; } }
.hz-graph-wrap { display: grid; gap: 4px; }
.ftgraph { height: 110px; background: #fff; border-bottom: 2px solid var(--ink); }
.lanes { border-top: 2px solid var(--ink); margin-top: 10px; }
.lane { position: relative; height: 64px; border-bottom: 1px solid var(--line); }
.lane-lab { position: absolute; right: 0; top: 6px; font: 700 13px var(--sans); color: var(--ink); z-index: 2; }
.lane canvas { height: 64px; }
.diag { margin-top: 8px; }
.diag ol { margin: 6px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.diag li { margin: 4px 0; }

/* notices (permission flow) */
.notice { border-left: 6px solid var(--warn); padding: 6px 0 6px 14px; margin: 16px 0 0; font-size: 16px; }
.notice.bad { border-left-color: var(--bad); }
.notice-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.notice h3 { margin: 0; font-size: 19px; color: var(--ink); }
.errcode { font-size: 13px; color: var(--muted); }
.notice p, .notice ol, .notice ul { margin: 6px 0 0; color: var(--ink-2); }
.notice ol { padding-left: 22px; }
.notice li { margin: 4px 0; }
.fixfor { font-weight: 700; color: var(--ink) !important; }
.notice-act { margin-top: 12px; }
.notice-act .hint { margin: 0; }

/* under the panel */
.trust { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.trust .ico { display: none; }
.works { color: var(--muted); font-size: 15px; margin: 4px 0 0; max-width: 90ch; }
.works .k { color: var(--ink); font-weight: 700; margin-right: 6px; font-size: 15px; }

/* ── copy below the tool ──────────────────────────────────────────── */
.copy { max-width: 760px; }
.block { margin: 56px 0 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.block p, .block li { color: var(--ink-2); }
.block ul, .block ol { padding-left: 22px; }
.block li { margin: 5px 0; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq .ans p:first-child { margin-top: 0; }
.replace { margin: 40px 0 0; padding: 16px 0; border-top: 2px solid var(--ink); }
.tbl { overflow-x: auto; }
.block table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 8px 0; }
.block th, .block td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.block th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }

/* next tests */
.related { margin: 60px 0 64px; max-width: 760px; }
.journey { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.jrow { display: grid; grid-template-columns: 32px minmax(140px, 210px) 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.jrow:hover { color: var(--ink); background: #f3f3f3; }
.jrow:hover .jt { color: var(--bad); }
.jn { color: var(--muted); font-size: 15px; }
.jt { font-weight: 700; }
.jd { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .jrow { grid-template-columns: 28px 1fr; } .jd { grid-column: 2; } }
.outbound { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* ── hub ──────────────────────────────────────────────────────────── */
.home-head { padding: 44px 0 30px; }
.home-head h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.04em; max-width: 17ch; }
.home-head .lede { font-size: 21px; }
.tool.live { min-height: 0; padding-bottom: 0; border-bottom: 0; }
.tool.live .vbar { border-bottom: 0; padding-bottom: 0; }
.tool.live .vh { font-size: 22px; }
.specs-live { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--ink); }
.specs-live .spec { display: grid; gap: 2px; padding-right: 16px; }
.specs-live dd { font-size: 22px; letter-spacing: -.02em; min-height: 1.4em; }
.specs-live a { font-size: 14px; }
@media (max-width: 960px) { .specs-live { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .specs-live { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.routes { margin: 56px 0 0; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 860px) { .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .route-grid { grid-template-columns: minmax(0, 1fr); } }
.route { border-top: 2px solid var(--ink); padding-top: 8px; }
.route h3 { margin: 0 0 6px; font-size: 18px; }
.route ol { margin: 0; padding-left: 22px; font-size: 16px; }
.route li { margin: 3px 0; }
.all { margin: 64px 0 0; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
@media (max-width: 760px) { .groups { grid-template-columns: minmax(0, 1fr); } }
.group-h { font-size: 18px; font-weight: 700; margin: 16px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: minmax(140px, 180px) 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.trow:hover { color: var(--ink); background: #f3f3f3; }
.trow:hover .tn { color: var(--bad); }
.tn { font-weight: 700; }
.td { color: var(--muted); font-size: 15px; }
.tv { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 480px) { .trow { grid-template-columns: 1fr auto; } .td { grid-column: 1 / -1; grid-row: 2; } }
.home-copy { margin-bottom: 64px; }
.page-text .copy { padding: 36px 16px 64px; }
.page-text h1 { margin-bottom: 10px; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { border-top: 6px solid var(--ink); background: #fff; padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.foot-about p { margin: 0 0 8px; max-width: 40ch; }
.foot h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--ink-2); }
.foot-brand { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.legal { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ── mobile sticky action bar ─────────────────────────────────────── */
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--ink); overflow-x: auto; }
  .mbar .btn { flex: 1 0 auto; justify-content: center; min-height: 48px; white-space: nowrap; }
  .mbar .btn-copy { flex: 0 0 auto; }
  body.has-mbar { padding-bottom: 72px; }
}
