:root {
      --bg: #0b1020;
      --panel: #121933;
      --panel-2: #192142;
      --border: #2d3a6b;
      --text: #e8edf9;
      --muted: #9ba7c9;
      --accent: #7aa2ff;
      --good: #2fbf71;
      --bad: #ff6b6b;
      --track: #202a52;
      --zero: #7f8bb5;
      --shadow: rgba(0, 0, 0, 0.28);
    }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background: radial-gradient(circle at top, #152048 0, var(--bg) 42%); color: var(--text); }
    .shell { max-width: 1440px; margin: 0 auto; padding: 28px 24px 48px; }
    .hero { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
    h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; }
    .sub { color: var(--muted); max-width: 860px; }
    .meta { color: var(--muted); font-size: 13px; text-align: right; }
    .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
    .panel { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)), var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 30px var(--shadow); }
    .sidebar { padding: 14px; position: sticky; top: 16px; align-self: start; }
    .sidebar h2, .content h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
    .comparison-list { display: grid; gap: 8px; }
    .comparison-btn { width: 100%; text-align: left; background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 12px; cursor: pointer; transition: 120ms ease; }
    .comparison-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
    .comparison-btn.active { background: var(--panel-2); border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(122,162,255,0.25); }
    .comparison-btn .title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
    .comparison-btn .subtitle { font-size: 12px; color: var(--muted); }
    .content { padding: 18px; }
    .run-header { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
    .run-header h3 { margin: 0 0 4px; font-size: 24px; }
    .run-header p { margin: 0; color: var(--muted); }
    .chips { display: flex; gap: 8px; flex-wrap: wrap; }
    .chip { padding: 6px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); font-size: 12px; }
    .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
    .card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; min-height: 112px; }
    .card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
    .card .name { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
    .card .subname { font-size: 12px; color: var(--muted); margin-top: -4px; margin-bottom: 10px; }
    .card .value.bad { color: var(--bad); }
    .card .value.good { color: var(--good); }
    .name-main { font-size: 14px; font-weight: 600; line-height: 1.3; }
    .name-refs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
    .ref-link { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; font-size: 11px; color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.02); }
    .ref-link:hover { border-color: var(--accent); color: var(--text); }
    .ref-link.issue { color: #d7e3ff; }
    .ref-link.dataset { color: #d8f7e7; }
    .spotlight-section { margin-bottom: 20px; }
    .section-note { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
    .spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
    .spotlight-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
    .spotlight-card.bad { box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.14); }
    .spotlight-card.good { box-shadow: inset 0 0 0 1px rgba(47, 191, 113, 0.14); }
    .example-section { margin-bottom: 20px; }
    .section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
    .section-heading h2 { margin-bottom: 0; }
    summary.section-heading { cursor: pointer; list-style: none; user-select: none; }
    summary.section-heading::-webkit-details-marker { display: none; }
    .section-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
    .example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
    .example-column { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
    .example-column.bad { box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.14); }
    .example-column.good { box-shadow: inset 0 0 0 1px rgba(122, 162, 255, 0.18); }
    .example-header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; }
    .example-title { font-size: 14px; font-weight: 600; }
    .example-kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
    .example-list { display: grid; gap: 10px; }
    .example-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px; }
    .example-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 8px; }
    .example-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
    .example-metrics { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; }
    .example-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.02); }
    .example-gap { font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
    .example-gap.bad { color: var(--bad); }
    .example-gap.good { color: #8bc0ff; }
    .example-preview { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; line-height: 1.45; font-size: 12px; color: var(--text); background: #0d1430; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 10px; max-height: 11.5em; overflow: auto; }
    .example-focus { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--muted); }
    .focus-label { color: var(--muted); margin-right: 6px; }
    .diff-span { border-radius: 4px; padding: 0 1px; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12); }
    .diff-span.diff-worse { background: hsla(24, 100%, 55%, var(--diff-alpha)); color: #fff5ed; }
    .diff-span.diff-better { background: hsla(215, 85%, 58%, var(--diff-alpha)); color: #eef5ff; }
    .example-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
    .spotlight-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; margin-bottom: 10px; }
    .spotlight-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
    .spotlight-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 4px 8px; border: 1px solid var(--border); color: var(--muted); }
    .spotlight-card.bad .spotlight-tag { color: #ffd1d1; border-color: rgba(255, 107, 107, 0.35); }
    .spotlight-card.good .spotlight-tag { color: #c8f7dd; border-color: rgba(47, 191, 113, 0.35); }
    .spotlight-note { color: var(--muted); font-size: 13px; line-height: 1.35; margin-bottom: 12px; min-height: 34px; }
    .spotline { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
    .spotline-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
    .spotline-gap { font-variant-numeric: tabular-nums; font-size: 13px; }
    .mini-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(47,191,113,0.08) 0 50%, rgba(255,107,107,0.08) 50% 100%); overflow: hidden; }
    .mini-track::after { content: ''; position: absolute; inset: 0 auto 0 50%; width: 1px; background: var(--zero); opacity: 0.9; }
    .mini-fill { position: absolute; top: 1px; height: 8px; border-radius: 999px; }
    .mini-fill.negative { right: 50%; background: linear-gradient(90deg, #49d28e, var(--good)); }
    .mini-fill.positive { left: 50%; background: linear-gradient(90deg, #ff8a8a, var(--bad)); }
    .controls { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
    .tabs, .sorts { display: flex; gap: 8px; flex-wrap: wrap; }
    .tab, .sort { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
    .tab.active, .sort.active { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
    .toggle-row { margin-top: 8px; }
    .toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
    .toggle input { margin: 0; accent-color: var(--accent); }
    .search { border: 1px solid var(--border); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 9px 12px; min-width: 260px; }
    table { width: 100%; border-collapse: collapse; }
    th, td { padding: 10px 8px; border-top: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
    th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; }
    td.name { width: 36%; font-size: 14px; }
    td.metric, td.bytes, td.docs { width: 12%; font-variant-numeric: tabular-nums; }
    td.barcell { width: 28%; }
    .bar-track { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, rgba(47,191,113,0.08) 0 50%, rgba(255,107,107,0.08) 50% 100%); overflow: hidden; }
    .bar-track::after { content: ''; position: absolute; inset: 0 auto 0 50%; width: 1px; background: var(--zero); opacity: 0.9; }
    .bar-fill { position: absolute; top: 1px; height: 12px; border-radius: 999px; }
    .bar-fill.negative { right: 50%; background: linear-gradient(90deg, #49d28e, var(--good)); }
    .bar-fill.positive { left: 50%; background: linear-gradient(90deg, #ff8a8a, var(--bad)); }
    .legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
    .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 999px; margin-right: 6px; vertical-align: -1px; }
    .foot { margin-top: 16px; color: var(--muted); font-size: 12px; }
    a, a:visited { color: var(--accent); }
    @media (max-width: 1100px) {
      .layout { grid-template-columns: 1fr; }
      .sidebar { position: static; }
      .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .example-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 720px) {
      .hero, .run-header, .controls { display: block; }
      .cards { grid-template-columns: 1fr; }
      .spotlight-grid { grid-template-columns: 1fr; }
      .example-grid { grid-template-columns: 1fr; }
      .meta { text-align: left; margin-top: 12px; }
      .search { width: 100%; margin-top: 10px; }
      table, thead, tbody, tr, td, th { display: block; }
      thead { display: none; }
      td { border-top: none; padding: 6px 0; }
      tr { border-top: 1px solid rgba(255,255,255,0.08); padding: 10px 0; }
      td.barcell { width: 100%; }
    }
