/* Self-hosted fonts (SIL OFL), latin subsets. Fallbacks are size-matched so text doesn't jump when fonts arrive. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Grotesk Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 93%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 101.7%; ascent-override: 95.4%; descent-override: 24.6%; line-gap-override: 0%; }
/* Bench look: cool paper, graphite ink, one "signal" green for pass, amber for warn, red for fail. No gradients. */
:root {
  --paper: #f3f4f1; --paper-2: #e9ebe6; --card: #ffffff; --ink: #161a1f; --ink-2: #3b434b; --muted: #68717a; --rule: #dde1e3; --rule-2: #c9cfd3;
  --go: #178a4e; --go-soft: #e3f3e9; --warn: #b26b00; --warn-soft: #fbefd6; --bad: #c73a2d; --bad-soft: #fbe4e1; --info: #2362a8; --info-soft: #e2ecf8;
  --accent: #178a4e; --field: #fafbf9;
  --radius: 14px; --radius-sm: 9px; --max: 1080px;
  --display: "Space Grotesk", "Grotesk Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sans: "Instrument Sans", "Instrument Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(22, 26, 31, .04), 0 10px 26px -14px rgba(22, 26, 31, .22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #121517; --paper-2: #191d20; --card: #1c2125; --ink: #eef1f2; --ink-2: #c4cbd1; --muted: #8b949c; --rule: #2a3137; --rule-2: #3a434a; --go: #3fbf77; --go-soft: #16301f; --warn: #e8a53b; --warn-soft: #3a2a0d; --bad: #ef6b5e; --bad-soft: #3a1b17; --info: #6ea8f0; --info-soft: #14243a; --accent: #3fbf77; --field: #171b1e; --shadow: 0 1px 0 rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--sans); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--go) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--go); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 17px; gap: 7px; } }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.logo .mark .ic { width: 17px; height: 17px; stroke-width: 2.4; color: var(--go); }
nav.top { display: flex; gap: 4px; font-size: 14.5px; font-weight: 500; align-items: center; }
nav.top a { color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 420px) { nav.top { font-size: 13.5px; gap: 2px; } nav.top a { padding: 6px 9px; } }
nav.top a:hover { background: var(--paper-2); color: var(--ink); }
nav.top a.all { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { nav.top .hide-sm { display: none; } }

/* Page head */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 18px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hero { padding: 22px 0 6px; display: flex; gap: 16px; align-items: flex-start; }
.hero .badge-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--card); color: var(--ink); flex: none; margin-top: 4px; border: 1px solid var(--rule-2); }
.hero .badge-ic .ic { width: 26px; height: 26px; }
.hero h1, .h-display { font-family: var(--display); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.06; margin: 0 0 8px; letter-spacing: -.025em; font-weight: 700; }
.hero p { color: var(--ink-2); margin: 0; max-width: 680px; font-size: 18px; line-height: 1.5; }
@media (max-width: 640px) { .hero .badge-ic { display: none; } .hero p { font-size: 16.5px; } }
.promises { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.promises li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); padding: 4px 10px 4px 8px; border-radius: 999px; }
.promises li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Tool surface */
.tool { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; margin: 22px 0; box-shadow: var(--shadow); }
@media (max-width: 640px) { .tool { padding: 16px; border-radius: 12px; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; letter-spacing: .01em; }
.field.grow { flex: 1 1 220px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
input[type=text], input[type=number], input[type=search], select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--field); border: 1px solid var(--rule-2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 20%, transparent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--go); }
input[type=range] { accent-color: var(--go); }
button, .btn { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; cursor: pointer; background: var(--ink); color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.3; transition: transform .06s, background .15s, border-color .15s; }
button:hover, .btn:hover { background: #000; color: #fff; }
button:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) { button:hover, .btn:hover { background: #fff; color: #000; } }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
button.ghost:hover, .btn.ghost:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); }
button.primary, .btn.primary { background: var(--go); border-color: var(--go); color: #fff; }
button.primary:hover, .btn.primary:hover { background: color-mix(in srgb, var(--go) 85%, black); border-color: color-mix(in srgb, var(--go) 85%, black); color: #fff; }
button:disabled { opacity: .4; cursor: default; }
.big-btn { font-size: 17px; padding: 12px 28px; }
.sm { font-size: 13.5px; padding: 6px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.seg button { background: transparent; color: var(--ink-2); border: 1px solid var(--rule-2); font-weight: 500; padding: 6px 14px; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: 11px; padding: 11px 13px; min-width: 0; }
.stat b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat b.long { font-size: 16px; line-height: 1.3; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.status { margin: 14px 0 8px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-top: 8px; }
.status.go { color: var(--go); } .status.go::before { background: var(--go); }
.status.warn { color: var(--warn); } .status.warn::before { background: var(--warn); }
.status.bad { color: var(--bad); } .status.bad::before { background: var(--bad); }
.status.wait::before { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--rule-2); }
.privacy::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Diagnosis box under a failed test */
.diag { margin-top: 16px; border: 1px solid var(--rule-2); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 14px; background: var(--paper); font-size: 15px; }
.diag.bad { border-left-color: var(--bad); }
.diag b { display: block; margin-bottom: 4px; }
.diag ul { margin: 6px 0 0; padding-left: 18px; }
.diag li { margin: 3px 0; color: var(--ink-2); }
.diag:empty { display: none; }

/* Article (below the tool) */
.ad { margin: 26px auto; text-align: center; min-height: 0; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
article { max-width: 740px; }
article > h2, .section-title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 44px 0 12px; line-height: 1.2; }
article h3 { font-size: 17px; margin: 22px 0 8px; font-weight: 700; }
article p, article li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
article ul { padding-left: 20px; }
article ul li::marker { color: var(--go); }
article strong { color: var(--ink); }
article code, .kbd { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--rule); }
article ol { list-style: none; counter-reset: step; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
article ol > li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
article ol > li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
article table, .table-scroll table { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
th, td { border-bottom: 1px solid var(--rule); padding: 10px 14px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
article td:first-child { color: var(--ink); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.faq details { border-top: 1px solid var(--rule); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.faq p { margin: 8px 0 4px; }
.callout { border: 1px solid var(--rule-2); border-radius: 12px; padding: 14px 16px; background: var(--card); margin: 16px 0; display: flex; gap: 10px; align-items: flex-start; }
.callout .ic { color: var(--go); margin-top: 3px; }
.callout p { margin: 0; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.chips a { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }

/* Cards grid (home / all tests) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0 0; }
.card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .12s; }
.card:hover { border-color: var(--ink); transform: translateY(-1px); color: var(--ink); }
.card .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); flex: none; }
.card strong { display: block; font-size: 15.5px; line-height: 1.3; }
.card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.card.guide .ci { color: var(--warn); }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); }
.share .sh { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--card); border: 1px solid var(--rule); padding: 5px 11px; border-radius: 999px; text-decoration: none; cursor: pointer; }
.share .sh:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.share-end { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); }

/* Footer */
footer.site { margin-top: 56px; border-top: 1px solid var(--rule); background: var(--paper-2); padding: 30px 0 26px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
footer .fh { font-weight: 700; color: var(--ink); margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .fine { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; }

/* Shared test components */
.meter { height: 26px; background: var(--field); border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--go); transition: width .05s; }
.meter i.hot { background: var(--bad); }
canvas.wave { width: 100%; height: 110px; display: block; margin-top: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.video-box { background: var(--field); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; position: relative; }
.video-box::before { content: attr(data-empty); position: absolute; color: var(--muted); font-size: 14px; }
.video-box.live { background: #000; border-color: #000; }
.video-box video { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }

/* Keyboard */
.kb { display: grid; gap: 4px; user-select: none; margin-top: 12px; }
.kb .r { display: flex; gap: 4px; }
.kb span { flex: 1 1 0; min-width: 0; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 6px; font-size: 12px; color: var(--ink-2); background: var(--field); white-space: nowrap; overflow: hidden; }
.kb span.w15 { flex-grow: 1.5; } .kb span.w18 { flex-grow: 1.8; } .kb span.w2 { flex-grow: 2.2; } .kb span.w25 { flex-grow: 2.6; } .kb span.w6 { flex-grow: 6.5; }
.kb span.hit { background: var(--go-soft); border-color: var(--go); color: var(--ink); }
.kb span.down { background: var(--go); border-color: var(--go); color: #fff; }
@media (max-width: 640px) { .kb span { height: 30px; font-size: 9px; } }

/* Mouse */
.mouse { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 640px) { .mouse { grid-template-columns: 1fr; } }
.mouse-pic { position: relative; aspect-ratio: 3/4; max-height: 320px; margin: 0 auto; width: 100%; max-width: 240px; }
.mouse-pic .mb { position: absolute; border: 2px solid var(--rule-2); background: var(--field); display: grid; place-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.mouse-pic .mb.on { background: var(--go); border-color: var(--go); color: #fff; }
.mouse-pic .mb.hit { border-color: var(--go); }
.mouse-pic .mb.left { left: 0; top: 0; width: 44%; height: 36%; border-radius: 100% 10% 0 0 / 60% 10% 0 0; }
.mouse-pic .mb.right { right: 0; top: 0; width: 44%; height: 36%; border-radius: 10% 100% 0 0 / 10% 60% 0 0; }
.mouse-pic .mb.middle { left: 44%; top: 8%; width: 12%; height: 22%; border-radius: 6px; }
.mouse-pic .mb.body { left: 0; right: 0; top: 36%; bottom: 0; border-radius: 0 0 45% 45% / 0 0 50% 50%; z-index: -1; }
.mouse-pic .mb.back { left: -14%; top: 48%; width: 16%; height: 10%; border-radius: 6px; }
.mouse-pic .mb.forward { left: -14%; top: 36%; width: 16%; height: 10%; border-radius: 6px; }
.pad { border: 2px dashed var(--rule-2); border-radius: 12px; min-height: 180px; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 12px; touch-action: none; user-select: none; background: var(--field); }
.pad.on { border-color: var(--go); color: var(--ink); }

/* Gamepad */
.gp-sticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 12px; }
.stick { text-align: center; }
.stick canvas { width: 160px; height: 160px; max-width: 100%; display: block; margin: 0 auto; }
.stick .read { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.gp-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 14px; }
.gp-buttons .b { position: relative; height: 40px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--field); display: grid; place-items: center; font-size: 12px; overflow: hidden; color: var(--ink-2); }
.gp-buttons .b i { position: absolute; left: 0; bottom: 0; top: 0; width: 0; background: var(--go-soft); z-index: 0; }
.gp-buttons .b span { position: relative; z-index: 1; }
.gp-buttons .b.on { border-color: var(--go); color: var(--ink); }
.gp-buttons .b.hit { border-color: var(--go); }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.verdict.go { background: var(--go-soft); color: var(--go); } .verdict.warn { background: var(--warn-soft); color: var(--warn); } .verdict.bad { background: var(--bad-soft); color: var(--bad); }

/* Touch */
.touch-grid { display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 2px; touch-action: none; user-select: none; -webkit-user-select: none; aspect-ratio: 4/3; margin-top: 12px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.touch-grid i { display: block; background: var(--field); }
.touch-grid i.hit { background: var(--go); }
.touch-dots { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.touch-dots b { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid var(--go); background: color-mix(in srgb, var(--go) 25%, transparent); font-family: var(--mono); font-size: 14px; display: grid; place-items: center; color: var(--ink); }

/* Screen tests */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swatches button { width: 44px; height: 44px; border-radius: 10px; padding: 0; border: 2px solid var(--rule-2); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.screen-full { position: fixed; inset: 0; z-index: 100; display: none; cursor: none; }
.screen-full.on { display: block; }
.screen-full .hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: rgba(0,0,0,.65); color: #fff; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: default; pointer-events: none; transition: opacity .4s; }
.screen-full.quiet .hint { opacity: 0; }
.ufo { position: relative; height: 90px; overflow: hidden; background: var(--field); border: 1px solid var(--rule); border-radius: 10px; margin-top: 12px; }
.ufo i { position: absolute; top: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); }
.hz { font-family: var(--mono); font-size: clamp(40px, 9vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1; text-align: center; margin: 14px 0 4px; }
.hz small { font-size: .35em; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ruler { position: relative; height: 104px; margin-top: 14px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ruler i { position: absolute; bottom: 0; width: 1px; background: var(--ink); }

/* Pre-call check */
.steps { display: grid; gap: 10px; margin-top: 14px; }
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule-2); color: var(--muted); font-family: var(--mono); font-weight: 600; font-size: 14px; }
.step.go .n { background: var(--go); border-color: var(--go); color: #fff; }
.step.warn .n { background: var(--warn); border-color: var(--warn); color: #fff; }
.step.bad .n { background: var(--bad); border-color: var(--bad); color: #fff; }
.step.run .n { border-color: var(--ink); color: var(--ink); animation: pulse 1s infinite; }
.step b { display: block; font-size: 15.5px; }
.step small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.step .v { font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
@media (max-width: 520px) { .step { grid-template-columns: 34px 1fr; } .step .v { grid-column: 2; text-align: left; white-space: normal; } }
.pc-live { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .pc-live { grid-template-columns: 1fr; } }
.report { margin-top: 18px; border: 1px solid var(--rule-2); border-radius: 12px; padding: 16px; background: var(--card); }
.report h3 { margin: 0 0 8px; font-family: var(--display); font-size: 20px; }
.report pre { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; margin: 10px 0 0; color: var(--ink-2); }
.rc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.rc i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted); }
.rc.go i { background: var(--go); } .rc.warn i { background: var(--warn); } .rc.bad i { background: var(--bad); }
