/* Theme "Sand", second edition: the original warm stone neutrals and amber, with serif display type
   for headlines and numbers, hairline panels and one soft glow. Amber is the only accent, so status
   uses shape (filled, half, ring, square) before colour. */
:root {
  color-scheme: light;
  --page: #f6f3ec;
  --surface: #fffdf9;
  --surface-2: #efebe2;
  --ink: #1c1a16;
  --ink-2: #57524a;
  --muted: #6b655b;
  --grid: #ece6da;
  --axis: #cfc7b8;
  --border: #e8e2d6;
  --border-strong: #e0dacd;
  --ui: #1c1a16; --on-ui: #fffdf9; --ui-soft: rgba(43, 39, 33, 0.06);
  --logo: #BA7517;
  --brand: #BA7517; --brand-ink: #8f5c0b; --brand-fill: #9a640f; --on-brand: #ffffff; --brand-soft: rgba(186, 117, 23, 0.12);
  --tint: #f9e6c8; --tint-ink: #7a4a05; --range: #e9cf9f; --glow: rgba(186, 117, 23, 0.13);
  --link: #8f5c0b;
  --bar: #BA7517;
  --heat: 186, 117, 23;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --good: #0ca30c; --warning: #e8743b; --on-warning: #1a0a00; --serious: #b4532a; --critical: #d03b3b;
  --good-ink: #006300; --warning-ink: #a8461a; --serious-ink: #8f3d1c; --critical-ink: #a32424;
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.05), 0 24px 60px rgba(60, 40, 10, 0.1);
  --radius: 24px;
  --serif: 'Fraunces', 'Sitka Display', 'Sitka Heading', 'Sitka Text', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #121110; --surface: #1b1a18; --surface-2: #24221f; --ink: #f1ede6; --ink-2: #c9c2b6; --muted: #a39b8f;
    --grid: #2a2724; --axis: #4a453e; --border: #2e2b27; --border-strong: #34302b;
    --ui: #f1ede6; --on-ui: #1b1a18; --ui-soft: rgba(255, 245, 225, 0.07);
    --logo: #EF9F27; --brand: #EF9F27; --brand-ink: #f0a93f; --brand-fill: #EF9F27; --on-brand: #2a1a00; --brand-soft: rgba(239, 159, 39, 0.14);
    --tint: #3a2a10; --tint-ink: #f5b85a; --range: #5a431c; --glow: rgba(239, 159, 39, 0.16);
    --link: #f0a93f; --bar: #EF9F27; --heat: 239, 159, 39;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --warning: #ec835a; --serious: #b4532a; --critical: #e66767;
    --good-ink: #0ca30c; --warning-ink: #ec835a; --serious-ink: #e08a64; --critical-ink: #e66767;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #121110; --surface: #1b1a18; --surface-2: #24221f; --ink: #f1ede6; --ink-2: #c9c2b6; --muted: #a39b8f;
  --grid: #2a2724; --axis: #4a453e; --border: #2e2b27; --border-strong: #34302b;
  --ui: #f1ede6; --on-ui: #1b1a18; --ui-soft: rgba(255, 245, 225, 0.07);
  --logo: #EF9F27; --brand: #EF9F27; --brand-ink: #f0a93f; --brand-fill: #EF9F27; --on-brand: #2a1a00; --brand-soft: rgba(239, 159, 39, 0.14);
  --tint: #3a2a10; --tint-ink: #f5b85a; --range: #5a431c; --glow: rgba(239, 159, 39, 0.16);
  --link: #f0a93f; --bar: #EF9F27; --heat: 239, 159, 39;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --warning: #ec835a; --serious: #b4532a; --critical: #e66767;
  --good-ink: #0ca30c; --warning-ink: #ec835a; --serious-ink: #e08a64; --critical-ink: #e66767;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 560px at 80% 0, var(--glow), transparent 70%) no-repeat, var(--page);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
.num, td.n, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; }
.spacer { flex: 1; }
[hidden] { display: none !important; }
.shell { max-width: 1400px; margin: 0 auto; padding: 0 40px 64px; }
body[data-tab='leaderboard'] .shell { max-width: 1680px; } /* the table has up to 20 columns */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); }

/* ── header ──────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 26px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
svg.logo { width: 38px; height: 38px; flex: none; color: var(--logo); }
.loading .logo { width: 52px; height: 52px; display: block; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 22px; color: var(--ink-2); font-weight: 500; }
.tabs a:hover { text-decoration: none; color: var(--ink); background: var(--ui-soft); }
.tabs a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current='page']::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.count { background: var(--tint); color: var(--tint-ink); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 0 7px; line-height: 20px; min-width: 20px; text-align: center; }
.count:empty { display: none; }
.status { display: flex; align-items: center; justify-content: flex-end; gap: 4px 12px; flex-wrap: wrap; min-height: 20px; color: var(--muted); font-size: 12.5px; }
.src { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.dot.bad { background: var(--critical); }
.dot.stale { background: transparent; border: 1.5px solid var(--brand); }
.spin { width: 12px; height: 12px; border: 2px solid var(--grid); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--ui); border-color: var(--ui); color: var(--on-ui); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 17px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.chip-hw .hw-gpu { font-weight: 600; }
.icon-btn { width: 44px; padding: 0; border-radius: 50%; }
.icon-btn svg { width: 17px; height: 17px; }
#refreshBtn[disabled] svg { animation: spin 0.9s linear infinite; }

/* ── page head + filters ─────────────────────────────── */
.pagehead { display: flex; flex-direction: column; gap: 10px; padding: 26px 0 28px; }
.pagehead h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -0.035em; }
.pagehead p { margin: 0; max-width: 600px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 0 0 24px; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.seg button:hover { background: var(--ui-soft); }
.seg button[aria-pressed='true'] { background: var(--ui); border-color: var(--ui); color: var(--on-ui); font-weight: 600; }
.lb-toolbar .seg button[aria-pressed='true'] { background: var(--tint); border-color: var(--tint); color: var(--tint-ink); }
.field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
select, input[type='search'], input[type='number'] {
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 22px; padding: 0 14px; min-height: 44px;
}
input[type='search'] { width: 240px; }
input[type='number'] { width: 90px; }
input[type='checkbox'] { accent-color: var(--brand-fill); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.section-title { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-title .muted { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ── tags + fit verdict ──────────────────────────────── */
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--ink-2); text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.tag.open { color: var(--ink); border-color: var(--axis); }
.tag.new { background: var(--tint); border-color: var(--tint); color: var(--tint-ink); }
.tag.strata { color: var(--ink); border-color: var(--axis); }
.tag.unreleased { color: var(--serious-ink); border-color: color-mix(in srgb, var(--serious) 55%, transparent); background: color-mix(in srgb, var(--serious) 12%, transparent); }
.tag.limited { color: var(--ink-2); border: 1px dashed var(--muted); background: none; }
.fit { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.fit i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--brand); background: transparent; flex: none; font-size: 0; }
.fit-good i { background: var(--brand); }
.fit-warning i { background: linear-gradient(90deg, var(--brand) 50%, transparent 50%); }
.fit-serious { color: var(--ink-2); }
.fit-critical { color: var(--ink-2); }
.fit-critical i { border-radius: 2px; border-color: var(--critical-ink); background: var(--critical-ink); }
.fit-none { color: var(--muted); }
.fit-none i { border-color: var(--axis); }
.fit .fit-sub { color: var(--muted); font-weight: 400; }
.fit.lg { font-size: 17px; font-weight: 600; }
.fit.lg i { width: 14px; height: 14px; }

/* ── lab icons ───────────────────────────────────────── */
.mcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lab-ico { width: 24px; height: 24px; flex: none; display: inline-block; object-fit: contain; vertical-align: middle; }
.lab-ico.mono { background: var(--ink); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.lab-ico.avatar { border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.lab-ico.letter { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--ink-2); font-family: var(--serif); font-weight: 500; font-size: 15px; line-height: 1; }
.lab-ico.sm { width: 16px; height: 16px; font-size: 10px; border-radius: 4px; }
.lab-ico.lg { width: 40px; height: 40px; font-size: 22px; border-radius: 9px; align-self: center; }
.ico-c { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); flex: none; }
.ico-c .lab-ico.letter { font-size: 19px; }

/* ── range track (confidence interval) ───────────────── */
.range { position: relative; height: 16px; }
.range::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 1px; background: var(--border); }
.range .span { position: absolute; top: 5px; height: 6px; border-radius: 3px; background: var(--range); }
.range .at { position: absolute; top: 1px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.range-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── overview ────────────────────────────────────────── */
.hero { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding: 32px 0 56px; }
.hero-text { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p { margin: 0; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.feat { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 28px; box-shadow: var(--shadow); cursor: pointer; }
.feat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feat-num { font-family: var(--serif); font-weight: 400; font-size: clamp(84px, 9vw, 124px); line-height: 0.92; letter-spacing: -0.05em; font-variant-numeric: lining-nums; }
.feat-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tiles { display: flex; flex-direction: column; gap: 24px; }
.tile-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.tile-row.start { align-items: flex-start; }
.tile { flex: 1 1 300px; min-width: 0; padding: 12px 28px 8px; }
.tile.grow2 { flex: 2 1 520px; }
.tile.pad { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.tile-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tile-col .tile { flex: none; }
.tile-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0 14px; }
.tile h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.tile h2.sm { font-size: 24px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto); gap: 16px; align-items: center; min-height: 68px; padding: 8px 0; border-top: 1px solid var(--grid); cursor: pointer; }
.row:hover .row-name, .best-row:hover .row-name, .gap-row:hover .row-name { color: var(--brand-ink); }
.row-main { min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 16px; font-weight: 600; }
.row-meta, .row-lab { color: var(--muted); font-size: 14px; font-weight: 400; }
.row-lab { font-size: 13px; margin-left: 4px; }
.row-end { display: flex; justify-content: flex-end; }
.row-end .fit, .rel-fit .fit { white-space: normal; text-align: right; flex-direction: row-reverse; }
.lbrow { grid-template-columns: 60px minmax(0, 1fr) auto; min-height: 88px; }
.bigrank { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 68px; line-height: 0.9; letter-spacing: -0.04em; color: var(--muted); }
.bigrank.first { color: var(--brand); }
.thinbar { display: block; height: 4px; margin-top: 7px; border-radius: 2px; background: var(--grid); overflow: hidden; }
.thinbar span { display: block; height: 100%; border-radius: 2px; background: var(--bar); }
.row-score { display: flex; flex-direction: column; align-items: flex-end; }
.num-serif { font-family: var(--serif); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.num-serif.md { font-size: 22px; }
.tile-foot { display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--grid); font-weight: 600; }
.tile-note { display: block; padding: 14px 0 4px; border-top: 1px solid var(--grid); color: var(--muted); font-size: 13px; }
.pc-big { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.03em; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-cell { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.stat-cell b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stat-cell span { color: var(--ink-2); font-size: 13px; }
.gap-row, .best-row { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.best-row { padding: 12px 0; border-top: 1px solid var(--grid); }
.line2 { display: flex; align-items: baseline; gap: 8px; }
.line2 .lbl { flex: 1 1 0; min-width: 0; color: var(--muted); font-size: 13px; }
.line2 .row-name { flex: 1 1 0; min-width: 0; font-size: 15.5px; }
.gap-row .row-name { font-size: 15.5px; }
.gapbar { display: block; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.gapbar span { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.gapbar span.me { background: var(--brand); }

/* ── releases ────────────────────────────────────────── */
.rel-group { margin-bottom: 28px; }
.rel-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.rel-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 28px; }
.rel { display: grid; grid-template-columns: 58px 44px minmax(0, 1.6fr) 72px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 72px; padding: 10px 0; border-top: 1px solid var(--grid); cursor: pointer; }
.rel:first-child { border-top: 0; }
.rel:hover .rel-name { color: var(--brand-ink); }
.rel-date { color: var(--muted); font-size: 13px; }
.rel-main { min-width: 0; }
.rel-name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rel-org { color: var(--muted); font-size: 14px; }
.rel-eci { text-align: right; }
.eci-pill { font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.eci-pill small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.rel-fit { display: flex; justify-content: flex-end; }

/* ── leaderboard ─────────────────────────────────────── */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-bottom: 28px; }
.pod { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 26px; cursor: pointer; }
.pod.first { box-shadow: var(--shadow); }
.pod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pod-rank { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 150px; line-height: 0.8; letter-spacing: -0.05em; color: var(--muted); }
.pod.first .pod-rank { color: var(--brand); }
.pod-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 6px; font-size: 13px; }
.pod-cmp { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--muted); cursor: pointer; }
.pod-id { display: flex; align-items: center; gap: 12px; padding-top: 6px; min-width: 0; }
.pod-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pod-eci { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: lining-nums tabular-nums; }
.lb-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-height: 82vh; }
table.lb { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.lb th, .lb td { padding: 9px 8px; border-bottom: 1px solid var(--grid); text-align: left; white-space: nowrap; }
/* The verdict may wrap, so a long "runs on my PC" text does not push the table wider than its panel. */
.lb td .fit { white-space: normal; min-width: 150px; max-width: 250px; }
.lb th:first-child, .lb td:first-child { padding-left: 24px; }
.lb th:last-child, .lb td:last-child { padding-right: 24px; }
.lb thead th { position: sticky; top: 0; background: var(--surface); z-index: 3; padding-top: 16px; font-size: 12px; color: var(--muted); font-weight: 600; cursor: pointer; user-select: none; vertical-align: bottom; }
.lb thead th .cat { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.lb thead th.sorted { color: var(--ink); }
.lb thead th.sorted::after { content: ' ▾'; color: var(--brand-ink); }
.lb thead th.sorted.asc::after { content: ' ▴'; }
.lb th.n, .lb td.n { text-align: right; }
.lb tbody tr { cursor: pointer; }
.lb tbody tr:hover td { background: var(--surface-2); }
.lb td.sticky, .lb th.sticky { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.lb thead th.sticky { z-index: 4; }
.lb tbody tr:hover td.sticky { background: var(--surface-2); }
.lb .mname { font-weight: 600; font-size: 15px; }
.lb .morg { color: var(--muted); font-size: 13px; }
.lb .mname, .lb .morg { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.lb td.heat { position: relative; }
.lb td.best { font-weight: 700; }
.lb tr.tier-row { cursor: default; }
.lb tr.tier-row td { background: var(--surface-2); color: var(--ink-2); font-size: 13px; padding: 9px 24px; position: sticky; left: 0; white-space: normal; }
.lb tr.tier-row.solo td { padding: 0; height: 3px; }
.lb .tie { color: var(--brand-ink); font-weight: 700; margin-right: 3px; cursor: help; }
.delta-up, .delta-new { color: var(--brand-ink); font-size: 12px; font-weight: 600; }
.delta-down { color: var(--muted); font-size: 12px; font-weight: 600; }
.eci-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
.eci-bar { width: 56px; height: 4px; background: var(--grid); border-radius: 2px; position: relative; overflow: hidden; }
.eci-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 2px; }
.cmp-box { width: 16px; height: 16px; cursor: pointer; }
.foot { margin: 14px 4px 0; }
.fresh { padding: 20px 28px 22px; margin-top: 24px; }
.fresh-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.fresh-head b { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.fresh-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fresh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 13.5px; }
.fresh-chip:hover { background: var(--surface-2); }
.fresh-name { font-weight: 600; }

/* ── chart ───────────────────────────────────────────── */
.chart-card { padding: 22px 28px 14px; margin-top: 28px; }
.chart-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-head h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .pt { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.chart .pt:hover, .chart .pt.hl { stroke: var(--ink); }
.chart .lbl { fill: var(--ink-2); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 12px; font-size: 13px; max-width: 300px; }
.tooltip b { font-size: 14px; }
.collapse-btn { margin-left: auto; }

/* ── compare ─────────────────────────────────────────── */
.cmp-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 14px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 14px; }
.cmp-chip b { width: 10px; height: 10px; border-radius: 50%; }
.cmp-chip button { border: 0; background: var(--surface-2); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; line-height: 1; color: var(--ink-2); }
.suggest { position: relative; }
.suggest-list { position: absolute; top: 100%; left: 0; z-index: 20; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); width: 360px; max-width: 90vw; max-height: 340px; overflow: auto; margin-top: 6px; padding: 6px; }
.suggest-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: none; padding: 9px 10px; text-align: left; cursor: pointer; font-size: 14px; }
.suggest-list button:hover, .suggest-list button.active { background: var(--surface-2); }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.bench-card { padding: 18px 22px; border-radius: 20px; }
.bench-card h4 { margin: 0; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.bench-card h4 .muted { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.bench-card p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.hbar { display: grid; grid-template-columns: 1fr 46px; align-items: center; gap: 8px; height: 22px; }
.hbar .track { position: relative; height: 10px; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; min-width: 2px; }
.hbar .v { font-size: 13px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hbar .v.na { color: var(--muted); }
.hbar + .hbar { margin-top: 2px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { padding: 11px 16px; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec th { color: var(--muted); font-weight: 600; width: 190px; }
.spec thead th { font-size: 14px; color: var(--ink); }

/* ── my pc ───────────────────────────────────────────── */
.pc-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.pc-form { padding: 26px; display: grid; gap: 14px; position: sticky; top: 16px; }
.pc-form label { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-form select, .pc-form input { width: 100%; border-radius: 12px; }
.pc-form .detected { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { padding: 18px 22px; border-radius: 20px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.mem { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--grid); width: 120px; gap: 2px; }
.mem span { display: block; height: 100%; }
.mem .g { background: var(--bar); }
.mem .r { background: var(--muted); }
.strata-head { padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.strata-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 760px; }
.pack-ok { color: var(--brand-ink); font-weight: 700; }
.pack-no { color: var(--muted); }
.notice { background: var(--tint); color: var(--tint-ink); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin: 10px 0; }
.notice a { color: inherit; text-decoration: underline; }
.method { font-size: 14px; color: var(--ink-2); padding: 18px 24px; }
.method li { margin: 5px 0; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* ── drawer ──────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--page); z-index: 50; box-shadow: var(--shadow); overflow-y: auto; border-left: 1px solid var(--border); }
.drawer-head { position: sticky; top: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; z-index: 2; }
.drawer-head h2 { margin: 2px 0 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.drawer-body { padding: 6px 24px 36px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.fact { padding: 12px 14px; border-radius: 16px; }
.fact .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.fact .v { font-size: 16px; font-weight: 600; margin-top: 2px; }
.fact .v small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 14px 0 0; }
table.qt { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.qt th, .qt td { padding: 8px 10px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt th:first-child, .qt td:first-child, .qt td.l, .qt th.l { text-align: left; }
.qt th { font-size: 12px; color: var(--muted); font-weight: 600; }
.qt tr.best td { background: var(--tint); color: var(--tint-ink); font-weight: 600; }
.qt-wrap { overflow-x: auto; }
.qt.wrap td { white-space: normal; vertical-align: top; }
.qt.wrap td:first-child { white-space: nowrap; }
.qt.wrap td:nth-child(3) { min-width: 180px; }
.qt.wrap td:last-child { min-width: 150px; }
.qt tr.nofit td { color: var(--muted); }
.verdict { padding: 18px 22px; margin-top: 10px; border-radius: 20px; }
.verdict .line { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.cmd { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.cmd code { flex: 1; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }

/* ── loading screen + footer ─────────────────────────── */
.loading { max-width: 600px; margin: 60px auto; padding: 32px; }
.loading h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; }
.loading pre { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; max-height: 260px; overflow: auto; }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; }

/* ── Impressum + privacy page ────────────────────────── */
.legal main { max-width: 760px; padding: 24px 0 8px; }
.legal h1 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.legal h2 { margin: 30px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }
.legal p, .legal li, .legal address { font-size: 16px; line-height: 1.65; color: var(--ink-2); font-style: normal; }
.legal address { margin: 12px 0; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal mark { background: var(--tint); color: var(--tint-ink); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 1100px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-form { position: static; }
}
@media (max-width: 720px) {
  .shell { padding: 0 16px 40px; }
  .top { padding-top: 16px; }
  .brand { font-size: 22px; flex: 1 1 auto; }
  svg.logo { width: 32px; height: 32px; }
  .top .spacer { display: none; }
  .chip-hw { order: 4; min-height: 36px; padding: 0 14px; font-size: 13px; }
  .tabs { order: 5; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { flex: none; }
  .status { justify-content: flex-start; }
  .hero { padding: 20px 0 36px; }
  .feat, .tile.pad { padding: 22px; }
  .tile, .rel-list { padding-left: 18px; padding-right: 18px; }
  input[type='search'] { width: 100%; }
  .row { grid-template-columns: 44px minmax(0, 1fr); }
  .row .row-end, .row .row-score { grid-column: 2; justify-content: flex-start; align-items: flex-start; }
  .row-end .fit, .rel-fit .fit { flex-direction: row; text-align: left; }
  .lbrow { grid-template-columns: 52px minmax(0, 1fr); }
  .bigrank { font-size: 54px; }
  .rel { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; }
  .rel-date { grid-column: 1 / -1; }
  .rel-eci { grid-column: 2; text-align: left; }
  .rel-fit { grid-column: 2; justify-content: flex-start; }
  .pod-rank { font-size: 110px; }
  .pagehead { padding: 16px 0 20px; }
}
