/* PortWatch Lab: the community test pages (lab/). Same palette as the main site, light and dark: it follows the
   system unless the visitor picks Light or Dark in the theme menu (assets/js/theme.js, shared with the site, so a
   choice made on the homepage carries over). --bg is the surface cards, dialogs and the header sit on; --page is
   the page behind them. */
:root {
  --ink: #0d0e14; --ink-2: #2b2d38; --muted: #626778; --faint: #9a9eac;
  --line: #e6e8ef; --line-2: #d4d7e1; --soft: #f3f4f8;
  --bg: #ffffff; --page: #f6f7fb; --field: #ffffff;
  --violet: #7a5cff; --pink: #ff2e7e; --orange: #ff8a3d; --green: #16a36a; --red: #e5484d; --gold: #b7791f;
  /* Links, focus rings and picked choices: 6.4:1 on white; text on it (--on-accent) 6.4:1 */
  --accent: #5b3fe6; --on-accent: #ffffff; --accent-tint: rgba(122, 92, 255, .09); --accent-ring: rgba(122, 92, 255, .24);
  --rule-bg: #fff8ee; --rule-line: #f3d6a6; --rule-ink: #9a5b00;
  --ok-bg: #ecf9f2; --ok-line: #9fdcbd;
  --need-ink: #2563eb;
  --grad: linear-gradient(90deg, #7a5cff 0%, #ff2e7e 55%, #ff8a3d 100%);
  --btn-grad: linear-gradient(135deg, #6d4aff 0%, #5136d6 100%); /* white text: 5.1:1 and 7.4:1 */
  --radius: 18px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 18, 30, .04), 0 8px 24px rgba(16, 18, 30, .06);
  --shadow-lg: 0 2px 4px rgba(16, 18, 30, .04), 0 24px 60px rgba(16, 18, 30, .12);
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Dark: the homepage's dark colours. Written twice: once for "System" on a dark system, once for "Dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eceef3; --ink-2: #c9ccd6; --muted: #9da2b3; --faint: #6d7283;
    --line: #262838; --line-2: #363a4e; --soft: #1a1c28;
    --bg: #12131c; --page: #0b0c12; --field: #0e0f17;
    --accent: #a993ff; --on-accent: #12131c; --accent-tint: rgba(150, 125, 255, .13); --accent-ring: rgba(150, 125, 255, .32);
    --rule-bg: #1f1609; --rule-line: #4a3514; --rule-ink: #ffcf70;
    --ok-bg: #0f2a1f; --ok-line: #1d5a3f;
    --need-ink: #7cb4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eceef3; --ink-2: #c9ccd6; --muted: #9da2b3; --faint: #6d7283;
  --line: #262838; --line-2: #363a4e; --soft: #1a1c28;
  --bg: #12131c; --page: #0b0c12; --field: #0e0f17;
  --accent: #a993ff; --on-accent: #12131c; --accent-tint: rgba(150, 125, 255, .13); --accent-ring: rgba(150, 125, 255, .32);
  --rule-bg: #1f1609; --rule-line: #4a3514; --rule-ink: #ffcf70;
  --ok-bg: #0f2a1f; --ok-line: #1d5a3f;
  --need-ink: #7cb4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 80px; }
header.lab-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
header.lab-top .brand { font: 800 18px var(--display); color: var(--ink); text-decoration: none; }
header.lab-top .brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
header.lab-top nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
header.lab-top nav a, .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--bg); cursor: pointer; }
header.lab-top nav a:hover, .btn:hover { border-color: var(--line-2); }
header.lab-top nav a[aria-current="page"], .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
h1 { font: 800 clamp(26px, 4vw, 38px)/1.15 var(--display); margin: 0 0 8px; letter-spacing: -.02em; }
h2 { font: 700 21px/1.25 var(--display); margin: 34px 0 10px; }
h3 { font: 700 16px/1.3 var(--display); margin: 22px 0 8px; }
.lede { color: var(--muted); font-size: 17px; max-width: 68ch; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--bg); box-shadow: var(--shadow); margin: 14px 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg); }
.stat b { display: block; font: 800 24px var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; }
.good { color: var(--green); font-weight: 700; }
.bad { color: var(--red); font-weight: 700; }
.warn { color: var(--gold); font-weight: 700; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); border: 1px solid var(--line); }
.pill.ok { color: var(--green); } .pill.no { color: var(--red); }
.issues { margin: 10px 0; padding: 0; list-style: none; }
.issues li { padding: 9px 13px; border-radius: var(--radius-sm); margin: 6px 0; background: var(--soft); }
.issues li.hard { color: var(--red); font-weight: 600; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); margin: 14px 0; }
.notice.danger { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
/* A known issue staff confirmed with the build's team (LAB_NOTICES in lab-engine.js): on its card, in the report
   form and in its Stats view. */
.lab-notice { margin: 10px 0 0; padding: 9px 12px 9px 34px; position: relative; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, #ffc24d 65%, transparent); background: color-mix(in srgb, #ffc24d 17%, var(--bg)); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.lab-notice::before { content: "⚠"; position: absolute; left: 12px; top: 8px; color: #d99a1e; font-weight: 800; }
.lab-notice[hidden] { display: none; }
.bar { position: relative; height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.bar i.ghost { background: var(--grad); opacity: .25; } /* what testers saw, behind what counts */

/* Line icons and small chips: counts with a picture, the exact wording in the tooltip. */
.ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.gh { stroke: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.chip .ic { width: 13px; height: 13px; color: var(--muted); }
.chip.warn { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.chip b { color: var(--ink); }
.view-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.view-head h1 { margin: 0; }

/* Who's signed in, in the header in the "Me" tab's place: name, level, points. */
#who { display: contents; }
header.lab-top nav a.who { gap: 8px; padding: 4px 6px 4px 12px; }
.who-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.lvl-2, .lvl-3, .lvl-4 { background: var(--btn-grad); color: #fff; }
.who-pts { padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.who-pts small { margin-left: 2px; font-size: 10.5px; color: var(--muted); }
header.lab-top nav a[aria-current="page"] .who-pts { background: color-mix(in srgb, var(--bg) 18%, transparent); }
header.lab-top nav a[aria-current="page"] .who-pts small { color: inherit; opacity: .7; }
header.lab-top nav a.login { background: var(--btn-grad); color: #fff; border-color: transparent; }
.notice.gate { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.notice.gate .ic { width: 18px; height: 18px; color: var(--accent); }
.notice.gate > span { flex: 1 1 220px; }
.notice.gate .btn { margin-left: auto; }

/* ---------- Build cards ---------- */
.bcard { padding: 18px 20px; }
.b-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.b-id { min-width: 0; }
.b-id h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 19px/1.25 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.b-repo { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); }
.b-repo:hover { color: var(--ink); background: var(--soft); }
.b-repo .ic { width: 15px; height: 15px; }
/* A build that runs on one system only (LAB_PLATFORMS in lab-engine.js): the system's mark and name. */
.plat-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1.5px solid currentColor; color: var(--ink); font: 700 12px/1.3 var(--body); letter-spacing: .02em; white-space: nowrap; cursor: default; }
.plat-ic { width: 14px; height: 14px; flex: none; }
.b-score { flex: none; display: grid; justify-items: end; gap: 3px; text-align: right; }
.b-score b { font: 900 32px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.b-score b small { margin-left: 1px; font-size: 17px; font-weight: 800; color: var(--muted); }
.b-score.none b { color: var(--faint); }
.rt-tag { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rt-tag.on { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); color: var(--accent); }
/* The furthest step: five little bars that light up, then its name. */
.ladder { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 13.5px; }
.steps5 { display: inline-flex; gap: 3px; }
.steps5 i { width: 16px; height: 7px; border-radius: 3px; background: var(--soft); border: 1px solid var(--line-2); }
.steps5 i.on { background: var(--grad); background-size: 500% 100%; border-color: transparent; }
.steps5 i.on:nth-child(1) { background-position: 0 0; } .steps5 i.on:nth-child(2) { background-position: 25% 0; }
.steps5 i.on:nth-child(3) { background-position: 50% 0; } .steps5 i.on:nth-child(4) { background-position: 75% 0; }
.steps5 i.on:nth-child(5) { background-position: 100% 0; }
.ladder-name { font-weight: 700; }
.b-source { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.b-source .ic { margin-top: 1px; width: 14px; height: 14px; }
/* Testers still needed before a build is ranked. */
.need-meter { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--need-ink); }
.need-meter b { font-variant-numeric: tabular-nums; }
.need-meter > span:last-child { white-space: nowrap; }
.need-track { position: relative; flex: 1 1 80px; max-width: 220px; height: 8px; border-radius: 999px; background: color-mix(in srgb, #2f8cff 14%, var(--soft)); overflow: hidden; }
.need-track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #2f8cff 60%, #6366f1); }
/* One meter per RT mode; the closest to the minimum is outlined with what it still needs. */
.need-meters { display: grid; gap: 6px; margin-top: 12px; }
.need-meters .need-meter { margin-top: 0; }
.need-mode { width: 52px; flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.need-meter.is-next .need-mode { color: var(--need-ink); }
.need-meter.is-next .need-track { box-shadow: 0 0 0 1.5px color-mix(in srgb, #2f8cff 70%, transparent); }
.need-next { padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--need-ink); color: var(--need-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
/* A mode with enough testers whose score still lacks a part (owner, 2026-12-01: every part measured before it
   counts): a tick with its testers, then a dashed chip per missing part with how many more reports measure it. */
.need-meter.is-parts { flex-wrap: wrap; gap: 6px 8px; }
.need-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 700; cursor: help; }
.need-ok .ic { width: 14px; height: 14px; color: var(--green); stroke-width: 2.6; }
.need-part { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--need-ink) 60%, var(--line)); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: help; }
.need-part .ic { width: 14px; height: 14px; color: var(--need-ink); }
.need-part b { min-width: 18px; height: 18px; margin-right: -4px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--need-ink) 16%, transparent); color: var(--need-ink); font-size: 11.5px; font-weight: 800; }
.need-meter.is-next .need-part { border-style: solid; }
/* The three tracks: name, bar, figure. */
.tracks, .lvl-bars { display: grid; gap: 8px; margin-top: 14px; }
.trk { display: grid; grid-template-columns: 128px minmax(60px, 1fr) minmax(92px, auto); gap: 12px; align-items: center; font-size: 13.5px; }
.trk > span:first-child { color: var(--ink-2); }
.trk .val { display: flex; gap: 10px; justify-content: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.trk .val b { color: var(--ink); }
.trk .val small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.trk.wait { color: var(--muted); }
.trk.wait .val { font-size: 12.5px; }
.b-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.btn .ic { width: 15px; height: 15px; }
.btn.icon { width: 38px; justify-content: center; padding: 8px 0; color: var(--muted); }
.btn.icon:hover { color: var(--red); }
.btn.flagged { color: var(--red); cursor: default; }
/* The points a report earns, on the Report button (blue and shining while the build needs testers). */
.earn { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 22%, transparent); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: help; }
.earn.hot, .earn-chip.hot { position: relative; overflow: hidden; background: linear-gradient(120deg, #0a74da 0%, #2563eb 55%, #4f46e5 100%); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .4); }
.earn.hot::after, .earn-chip.hot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: need-shine 3.6s ease-in-out infinite; }
.earn-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font: 800 12px var(--body); font-style: normal; font-variant-numeric: tabular-nums; vertical-align: 1px; cursor: help; }
.earn-chip:empty, .earn-chip[hidden] { display: none; }
.choices label .earn-chip { margin-left: auto; align-self: center; }
@media (max-width: 560px) {
  .bcard { padding: 16px; }
  .b-score b { font-size: 27px; }
  .trk { grid-template-columns: 96px minmax(40px, 1fr) auto; gap: 8px; font-size: 13px; }
  .b-actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .earn.hot::after, .earn-chip.hot::after { animation: none; display: none; } }

/* My PC: one spec card per saved PC. */
.rigs { margin-bottom: 4px; }
.rig { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg); }
.rig > b { display: block; margin-bottom: 8px; font: 800 16px var(--display); }
.rig dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.rig dt { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; align-self: center; }
.rig dd { margin: 0; font-weight: 600; }
.rig dd small { color: var(--muted); font-weight: 500; }

/* Nominate: how a nomination opens, as three steps. */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font: 800 13px var(--display); }
.flow li b { font: 700 15px var(--display); }
.flow li > span { color: var(--muted); font-size: 13px; }
.endorse-bar.mini { display: flex; gap: 4px; }
.endorse-bar.mini i { flex: none; width: 18px; max-width: none; border-radius: 4px; box-shadow: none; animation: none; }
.notice.warn-line { border-color: var(--rule-line); background: var(--rule-bg); font-size: 14px; }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Me: next level as bars, points as chips, reports with icons. */
.lvl-bars { max-width: 560px; }
.lvl-bars .trk { grid-template-columns: 120px minmax(60px, 1fr) 64px; }
.lvl-bars .trk.done .bar i { background: var(--green); }
.lvl-bars .mark { display: flex; }
.lvl-bars .mark .ic { width: 18px; height: 18px; color: var(--red); }
.lvl-bars .trk.done .mark .ic { color: var(--green); }
.earn-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; cursor: help; }
.earn-legend .chip { padding: 5px 11px; font-size: 13px; }
.my-reports td.ev .ic { color: var(--accent); }
.my-reports td .ic { vertical-align: -2px; }
.me-out { margin-top: 26px; }
.done-tags { justify-content: center; margin: 6px 0 8px; }
.hidden { display: none !important; }
code { font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 6px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.controls label { min-width: 160px; }

/* Theme menu (built by theme.js into the header, as on the homepage). */
.theme-pick { position: relative; flex: none; }
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s; }
.theme-btn:hover { background: var(--soft); border-color: var(--line-2); }
.theme-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 150px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.theme-menu[hidden] { display: none; }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 500 14px var(--body); text-align: left; cursor: pointer; }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--soft); outline: none; }
.theme-menu button[aria-checked="true"] { color: var(--ink); font-weight: 700; }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--pink); }
.theme-menu svg { width: 16px; height: 16px; flex: none; }

/* ---------- Forms (report, PC, nomination) ---------- */
form .row { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 14px 0; }
label { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: 14px; color: var(--ink); }
label small, .hint { font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hint { margin: 10px 0 0; max-width: 72ch; }
.opt { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font: 600 11.5px var(--body); font-style: normal; letter-spacing: .01em; vertical-align: 1px; }
.gap-top { margin-top: 14px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
/* Selects get the same chevron in both themes (its grey reads on white and on the dark field). */
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238a8fa0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="file"] { padding: 7px; color: var(--muted); font-size: 14px; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--soft); color: var(--ink); font: 600 13.5px var(--body); cursor: pointer; }
input[type="file"]:hover::file-selector-button { border-color: var(--accent); }
/* A number field with its unit inside it, on the right. */
.unit { position: relative; display: block; }
.unit input { padding-right: 50px; }
.unit::after { content: attr(data-unit); position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; }
/* Radios and checkboxes, drawn the same in every browser and theme. */
input[type="radio"], input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border: 2px solid var(--faint); border-radius: 50%; background: var(--field); cursor: pointer; vertical-align: -4px; }
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .12s ease-out; }
input[type="checkbox"]::before { content: ""; width: 10px; height: 5px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .12s ease-out; }
input[type="radio"]:checked, input[type="checkbox"]:checked { border-color: var(--accent); }
input[type="checkbox"]:checked { background: var(--accent); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type="radio"]:focus, input[type="checkbox"]:focus { box-shadow: none; }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }
/* Choice tiles: the whole tile is the click target. */
.choices { display: grid; gap: 8px; }
.choices.cols { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
#upscaler { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); } /* four choices: two by two */
#picture { grid-template-columns: 1fr; max-width: 640px; } /* a scale from broken to matching: one column, in order */
.choices label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; font-weight: 500; font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--field); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choices label:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.choices label small { display: block; margin-top: 2px; }
.choices + .row { margin-top: 18px; }
/* Each part of the picture: a name and a Yes / Partly / No / Not sure switch. */
.feat { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; max-width: 640px; margin-top: 12px; }
.feat > span:not(.seg) { font-size: 14.5px; }
.feat .seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--soft); }
.feat .seg label { position: relative; display: block; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.feat .seg label:hover { background: var(--accent-tint); }
.feat .seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.feat .seg label:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.feat .seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
@media (max-width: 640px) { .feat { grid-template-columns: 1fr; gap: 6px; } .feat .seg { justify-self: start; margin-bottom: 10px; } .feat .seg label { padding: 6px 10px; } }

/* The report form: the rule, the unlock box, then numbered steps. */
.rule-card { margin: 16px 0 14px; padding: 14px; border-radius: var(--radius); background: var(--rule-bg); border: 1px solid var(--rule-line); }
/* The rule as tiles: the standard first and widest, then what's allowed (✓) and what isn't (✕). */
.rule-tiles { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .rule-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule-tile { position: relative; display: grid; gap: 3px; align-content: start; padding: 11px 13px; border-radius: 12px; background: var(--bg); border: 1px solid var(--rule-line); }
.rule-tile b { font: 700 14.5px/1.25 var(--display); }
.rule-tile span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.rule-tile.big { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
.rule-tile.big b { font: 900 26px/1 var(--display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule-tile.yes, .rule-tile.no { padding-left: 38px; }
.rule-tile.yes::before, .rule-tile.no::before { position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 900 11px/1 var(--body); }
.rule-tile.yes::before { content: "✓"; background: var(--green); }
.rule-tile.no::before { content: "✕"; background: var(--red); }
.shot-help { margin-top: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--rule-line); }
.shot-help summary { padding: 11px 14px; cursor: pointer; border-radius: 12px; }
.shot-help summary:hover { background: var(--soft); }
.shot-help[open] summary { border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.shot-help ol { margin: 12px 0 8px; padding: 0 16px 0 36px; }
.shot-help li { margin: 7px 0; line-height: 1.55; }
.shot-help ul { margin: 4px 0; padding-left: 18px; }
.shot-help code { overflow-wrap: anywhere; } /* the gamescope commands are long for a phone */
.shot-help .shot-foot { margin: 0; padding: 0 16px 14px; }
.consent { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; padding: 16px 18px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--accent-tint); font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s; }
.consent input[type="checkbox"] { width: 24px; height: 24px; margin: 0; }
/* The padlock opens when the box is ticked (the form under it unlocks). */
.consent .lock { width: 22px; height: 22px; margin-left: auto; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.consent .lock .shackle { transition: transform .25s; transform-origin: 16px 11px; }
.consent:has(input:checked) .lock { stroke: var(--green); }
.consent:has(input:checked) .lock .shackle { transform: translateY(-2px) rotate(32deg); }
.consent:has(input:checked) { border-color: var(--green); background: var(--ok-bg); }
.consent:has(input:checked) input { border-color: var(--green); background: var(--green); }
.consent:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.steps { counter-reset: step; }
.step { counter-increment: step; margin: 16px 0; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); transition: opacity .2s; }
fieldset:disabled .step { opacity: .55; }
.step-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; margin-bottom: 18px; }
.step-head::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font: 800 16px var(--display); }
.step-head h2 { margin: 0; font: 700 19px/1.25 var(--display); letter-spacing: -.01em; }
.step-head p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step .row:first-child, .step-head + .row { margin-top: 0; }
.q { margin: 22px 0 10px; font: 700 15px/1.3 var(--display); }
.step-head + .q { margin-top: 0; }
.q + .hint { margin: -4px 0 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.btn.submit { min-height: 50px; padding: 12px 30px; border: 0; background: var(--btn-grad); color: #fff; font: 700 16px var(--body); box-shadow: 0 8px 22px rgba(91, 63, 230, .32); transition: filter .15s, transform .15s, box-shadow .15s; }
.btn.submit:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(91, 63, 230, .4); }
.btn.submit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring), 0 8px 22px rgba(91, 63, 230, .32); }
@media (max-width: 560px) { .step { padding: 18px 16px 20px; } .btn.submit { width: 100%; justify-content: center; } .rule-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .btn.submit:hover { transform: none; } input[type="radio"]::before, input[type="checkbox"]::before { transition: none; } }

/* Nominations waiting for endorsements (owner, 2026-11-30): square cards in a grid, each with a bar of squares,
   one per endorsement point needed, that fill in the Lab's violet as endorsements come in. */
.nom-h { margin-top: 38px; }
/* At least square (min-height = the cell's own width, via its container query), and as tall as the tallest card in
   its row, so a long name or a source line doesn't make one card stick out. (aspect-ratio with stretch let the
   height decide the width, and the cards spilled out of the grid.) */
.nom-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.nom-cell { container-type: inline-size; min-width: 0; }
.nom-card { position: relative; height: 100%; min-height: 100cqi; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.nom-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nom-card.is-mine { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.nom-card h3 { margin: 0; padding-right: 26px; font: 800 19px/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.nom-repo { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.nom-repo:hover { color: var(--accent); }
.nom-repo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* the full name is in its title */
.nom-repo .ic { width: 13px; height: 13px; }
.nom-source { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nom-progress { align-self: stretch; margin-top: auto; padding-top: 14px; }
.endorse-bar { display: flex; gap: 6px; }
.endorse-bar i { flex: 1; aspect-ratio: 1; max-width: 34px; border-radius: 7px; background: var(--soft); border: 1.5px solid var(--line-2); }
.endorse-bar i.on { border-color: transparent; background: linear-gradient(135deg, #8b6bff 0%, #5b3fe6 100%); box-shadow: 0 3px 10px rgba(91, 63, 230, .3); animation: nom-fill .35s cubic-bezier(.2, .8, .2, 1.4) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes nom-fill { from { transform: scale(.4); opacity: 0; } }
.nom-count { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.nom-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.nom-you { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.nom-you .ic { width: 14px; height: 14px; stroke-width: 3; }
.nom-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 480px) {
  .nom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nom-card { padding: 13px 12px; } .nom-card h3 { font-size: 16px; }
  .endorse-bar { gap: 4px; } .endorse-bar i { border-radius: 5px; }
  .nom-actions { gap: 5px; } .nom-actions .btn { padding: 6px 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .endorse-bar i.on { animation: none; } .nom-card:hover { transform: none; } }

/* "It worked" dialog (done() in lab-app.js): a checkmark that draws itself, then what was saved. */
.lab-done { width: min(420px, calc(100vw - 32px)); padding: 30px 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--ink); text-align: center; box-shadow: 0 24px 70px rgba(16, 18, 30, .28); }
.lab-done::backdrop { background: rgba(13, 14, 20, .45); backdrop-filter: blur(3px); }
.lab-done[open] { animation: done-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes done-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.done-check { display: block; width: 76px; height: 76px; margin: 0 auto 12px; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 16px rgba(22, 163, 106, .35)); }
.done-check circle { stroke: var(--green); stroke-width: 3; fill: rgba(22, 163, 106, .12); stroke-dasharray: 145; stroke-dashoffset: 145; animation: done-draw .5s ease-out forwards; }
.done-check path { stroke: var(--green); stroke-width: 4; stroke-dasharray: 36; stroke-dashoffset: 36; animation: done-draw .35s .4s ease-out forwards; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
.lab-done h2 { margin: 0 0 8px; font: 800 24px/1.2 var(--display); letter-spacing: -.02em; }
.done-body p { margin: 0 0 6px; }
.done-body .done-points { margin-bottom: 10px; font: 900 30px/1.1 var(--display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.done-body .issues { margin: 12px 0 0; text-align: left; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.done-actions .btn { font-family: inherit; }

/* Flag dialog (openFlag() in lab-app.js): the same card, left-aligned for the form. */
.lab-flag { text-align: left; }
.lab-flag .choices label { margin: 6px 0; }
.lab-flag textarea { width: 100%; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .lab-done[open] { animation: none; } .done-check circle, .done-check path { animation: none; stroke-dashoffset: 0; } }

/* Stats view (lab-stats.js, #stats/<build>): one build's report numbers in a dialog over the builds list.
   One hue for every chart (the Lab's violet) on a lighter track of the same hue; yes / partly / no use the
   fixed status colours, always with their words beside them. */
.lab-stats {
  --viz-1: #7a5cff; --viz-hover: #9479ff; --viz-track: #ebe7ff; --viz-axis: #c9cbd4;
  --viz-yes: #0ca30c; --viz-partly: #fab219; --viz-no: #d03b3b;
  width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--ink); box-shadow: 0 24px 70px rgba(16, 18, 30, .28); overflow: auto; overscroll-behavior: contain;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lab-stats { --viz-hover: #9a85ff; --viz-track: #262046; --viz-axis: #3a3d4c; } }
:root[data-theme="dark"] .lab-stats { --viz-hover: #9a85ff; --viz-track: #262046; --viz-axis: #3a3d4c; }
.lab-stats::backdrop { background: rgba(13, 14, 20, .45); backdrop-filter: blur(3px); }
.lab-stats[open] { animation: ls-in .2s ease-out; } /* opacity only: a transform would move the tooltip */
@keyframes ls-in { from { opacity: 0; } }
.ls-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 22px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ls-kicker { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ls-head h2 { margin: 2px 0 0; font: 800 24px/1.2 var(--display); letter-spacing: -.02em; }
.ls-close { flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 24px/1 var(--body); cursor: pointer; }
.ls-close:hover { background: var(--soft); }
.ls-body { padding: 14px 22px 26px; }
.ls-intro { margin: 0 0 14px; max-width: 78ch; }
.ls-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.ls-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.ls-tile b { display: block; font: 800 26px/1.15 var(--display); }
.ls-tile span { font-size: 13px; color: var(--muted); }
.ls-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.ls-filter button { font: 600 14px var(--body); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.ls-filter button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ls-filter button small { font-weight: 500; opacity: .7; margin-left: 2px; }
.ls-grid { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-top: 14px; }
.ls-section { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ls-section h3 { margin: 0 0 2px; font: 700 16px/1.3 var(--display); }
.ls-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.ls-recent { margin-top: 24px; }
.ls-recent h3 span { font: 500 13px var(--body); margin-left: 6px; }
.ls-chart { min-width: 0; }
.ls-meters { display: grid; gap: 7px; }
.ls-meter { display: grid; grid-template-columns: minmax(88px, 36%) minmax(40px, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.ls-name { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.ls-track { display: block; height: 10px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.ls-track i { display: block; height: 100%; border-radius: 999px; background: var(--viz-1); }
.ls-meter:hover .ls-track i { background: var(--viz-hover); }
.ls-val { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.ls-val small { display: inline-block; min-width: 3ch; margin-left: 4px; color: var(--muted); font-weight: 500; }
/* Median fps by card: plain bars from one baseline, square there, rounded at the value end. */
.ls-bars .ls-track { height: 12px; border-radius: 0; background: none; border-left: 1px solid var(--viz-axis); overflow: visible; }
.ls-bars .ls-track i { border-radius: 0 4px 4px 0; }
/* What works: a thin bar per part, split yes / partly / no with a 2px gap; each part's hover area is taller than the bar. */
.ls-seg { display: flex; gap: 2px; height: 8px; }
.ls-seg i { position: relative; display: block; min-width: 3px; }
.ls-seg i::after { content: ""; position: absolute; inset: -7px 0; }
.ls-seg i:first-child { border-radius: 999px 0 0 999px; }
.ls-seg i:last-child { border-radius: 0 999px 999px 0; }
.ls-seg i:only-child { border-radius: 999px; }
.ls-seg i:hover { filter: brightness(1.12); }
.ls-k0 { background: var(--viz-yes); } .ls-k1 { background: var(--viz-partly); } .ls-k2 { background: var(--viz-no); }
.ls-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.ls-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* SVG charts */
.ls-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.ls-gridline { stroke: var(--line); stroke-width: 1; }
.ls-base { stroke: var(--viz-axis); stroke-width: 1; }
.ls-tick { fill: var(--muted); font: 11px var(--body); font-variant-numeric: tabular-nums; }
.ls-col { fill: var(--viz-1); }
.ls-hit { outline: none; }
.ls-hit:hover .ls-col, .ls-hit:focus .ls-col { fill: var(--viz-hover); }
.ls-hit:focus-visible .ls-col { stroke: var(--ink); stroke-width: 2; }
.ls-mark { stroke: var(--ink-2); stroke-width: 1; }
.ls-mark-label { fill: var(--ink-2); font: 600 11px var(--body); }
/* The last frame-rate bar when it holds everything faster ("30+"). */
.ls-col-open { opacity: .55; }
/* A frame-rate bar's count, above it. */
.ls-col-n { fill: var(--ink-2); font: 700 11px var(--body); font-variant-numeric: tabular-nums; pointer-events: none; }
.ls-line { fill: none; stroke: var(--viz-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ls-dot { fill: var(--viz-1); stroke: var(--bg); stroke-width: 2; outline: none; }
.ls-dot.is-on, .ls-dot:focus { r: 6px; }
.ls-dot:focus-visible { stroke: var(--ink); }
.ls-cross { stroke: var(--muted); stroke-width: 1; }
.ls-end { fill: var(--ink); font: 600 12px var(--body); font-variant-numeric: tabular-nums; }
.ls-axisnote, .ls-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ls-table summary { margin-top: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.ls-scroll { overflow-x: auto; }
.ls-section table { font-size: 13px; }
.ls-section td, .ls-section th { padding: 6px 8px; }
.ls-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ls-minis div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); }
.ls-minis b { display: block; font: 800 22px/1.2 var(--display); }
.ls-minis span { font-size: 12.5px; color: var(--muted); }
.ls-mem { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.ls-minis b small { font-size: 14px; font-weight: 700; color: var(--muted); }
.ls-live { margin-left: auto; cursor: help; }
.ls-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.ls-empty { margin: 4px 0; }
.ls-tip { position: fixed; z-index: 10; max-width: 260px; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.ls-tip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.ls-tip span { opacity: .8; }
@media (max-width: 560px) { .ls-body { padding: 12px 14px 22px; } .ls-head { padding: 14px 14px 10px; } .ls-tile { padding: 8px 10px; } .ls-tile b { font-size: 21px; } .ls-tile span { font-size: 12px; } .ls-meter { grid-template-columns: minmax(80px, 40%) minmax(30px, 1fr) auto; } }
@media (prefers-reduced-motion: reduce) { .lab-stats[open] { animation: none; } }

/* Builds still short of LAB_MIN_TESTERS (owner, 2026-11-30): first in the list, in a blue gradient outline, with
   the points a report on them earns on the Report button (.earn.hot). Same colours as the homepage's race. White
   on the badge is 4.6:1 or more. --need-ink (the testers meter) is set with the theme colours at the top. */
.card.need { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(120deg, #38bdf8 0%, #2f8cff 50%, #6366f1 100%) border-box; box-shadow: 0 6px 22px rgba(47, 140, 255, .16); }
@keyframes need-shine { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
