  :root {
    color-scheme: dark;
    --bg: #09090b; --ink: #fafafa; --ink2: #a1a1aa; --muted: #71717a;
    --card: #101012; --line: #27272a; --grid: #1c1c1f;
    --tipbg: #fafafa; --tipink: #09090b;
    --c1: #5a93da; --c2: #c9782b; --c3: #2fa595;              /* Opus, Sonnet, Haiku */
    --h0: #1c1c1f; --h1: #17304f; --h2: #1f4a80; --h3: #3678c4; --h4: #7db3f0;
    --acc: #fafafa;
    --good: #4ade80; --bad: #fb923c;
  }
  @media (prefers-color-scheme: light) {
    :root {
      color-scheme: light;
      --bg: #fafafa; --ink: #09090b; --ink2: #52525b; --muted: #71717a;
      --card: #ffffff; --line: #e4e4e7; --grid: #f1f1f3;
      --tipbg: #09090b; --tipink: #fafafa;
      --c1: #2b6cb0; --c2: #d9822b; --c3: #2f9e8f;
      --h0: #f1f1f3; --h1: #cfe3f6; --h2: #8ec0ea; --h3: #3f8fd4; --h4: #14589a;
      --acc: #09090b;
      --good: #15803d; --bad: #c2410c;
    }
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); }
  body { margin: 0; color: var(--ink); min-height: 100vh; position: relative; overflow-x: hidden;
    font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
  main { max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; }

  header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
  .brand svg { width: 28px; height: 28px; }
  .live { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 12px;
    padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
  .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c3); position: relative; }
  .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c3); animation: ping 2s ease-out infinite; }
  @keyframes ping { to { transform: scale(3.2); opacity: 0; } }

  .glass { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }

  /* hero */
  .hero { position: relative; overflow: hidden; padding: 36px; margin-bottom: 16px; }
  .eyebrow { color: var(--ink2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .big { font-size: clamp(56px, 11vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.05em; margin: 10px 0 6px; color: var(--ink); }
  .big small { font-size: .32em; letter-spacing: 0; margin-left: 10px; font-weight: 500; color: var(--ink2); }
  .hero-sub { color: var(--ink2); font-size: 15px; }
  .hero-spark { position: absolute; right: 36px; top: 36px; width: min(340px, 40%); }
  /* tiles */
  .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
  .tile { padding: 18px; transition: transform .25s, border-color .25s; }
  .tile:hover { transform: translateY(-3px); border-color: var(--muted); }
  .tile .label { color: var(--ink2); font-size: 12px; }
  .tile .value { font-size: 28px; font-weight: 650; letter-spacing: -.03em; margin: 2px 0; }
  .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
  .chip.up { color: var(--good); } .chip.down { color: var(--bad); }
  .tile .note { color: var(--muted); font-size: 12px; }
  .tile svg.sp { width: 100%; height: 34px; margin-top: 8px; display: block; }
  .dots { display: flex; gap: 3px; margin-top: 12px; }
  .dots i { flex: 1; height: 22px; border-radius: 4px; background: var(--h0); }
  .dots i.on { background: var(--h3); }

  /* cards */
  .card { padding: 22px; margin-bottom: 16px; }
  .card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
  h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
  .hint { color: var(--muted); font-size: 12px; margin: 2px 0 0; }
  .controls { display: flex; gap: 10px; flex-wrap: wrap; }
  .seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--grid); }
  .seg button { background: none; border: 0; padding: 4px 14px; border-radius: 999px; color: var(--ink2); font: inherit; font-size: 12px; cursor: pointer; transition: all .2s; }
  .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
  .legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
  .legend button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--line); color: var(--ink2);
    border-radius: 999px; padding: 3px 12px 3px 9px; font: inherit; font-size: 12px; cursor: pointer; transition: opacity .2s; }
  .legend button[aria-pressed="false"] { opacity: .4; }
  .legend i { width: 9px; height: 9px; border-radius: 3px; }
  svg.chart { display: block; width: 100%; height: auto; overflow: visible; }
  svg.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
  .reveal { animation: reveal 1s cubic-bezier(.22,.8,.3,1) both; }
  @keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }

  .tip { position: fixed; pointer-events: none; background: var(--tipbg); color: var(--tipink); border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.6; display: none; z-index: 9; white-space: nowrap;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
  .tip b { font-weight: 650; } .tip .r { display: flex; justify-content: space-between; gap: 18px; } .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; }

  .grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
  .hm rect { animation: pop .5s both; transition: transform .15s; transform-box: fill-box; transform-origin: center; }
  .hm rect:hover { transform: scale(1.35); }
    @keyframes pop { from { opacity: 0; transform: scale(.4); } }
  .hm-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; color: var(--muted); font-size: 11px; margin-top: 8px; }
  .hm-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

  .models { display: grid; gap: 18px; margin-top: 6px; }
  .mrow .top { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .mrow .top span:first-child { display: flex; align-items: center; gap: 8px; }
  .mrow .top i { width: 9px; height: 9px; border-radius: 3px; }
  .mrow .n { color: var(--ink2); }
  .mtrack { height: 8px; background: var(--grid); border-radius: 4px; overflow: hidden; }
  .mfill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(.22,.8,.3,1); }

  footer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 28px; }

  @media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } .hero-spark { display: none; } .hero { padding: 28px 22px; } }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
  .badge-stale .pulse, .badge-stale .pulse::after { background: var(--bad); }
  .notice { padding: 28px; text-align: center; color: var(--ink2); }
  .notice h2 { color: var(--ink); margin-bottom: 6px; }
  .notice button { margin-top: 14px; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 6px 18px; font: inherit; cursor: pointer; }
  .hm rect.nodata { fill: none; stroke: var(--grid); stroke-dasharray: 2 2; }
  .foot-note { max-width: 720px; margin: 0 auto; }

  .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
  .chip-meta { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12px; color: var(--ink2); }
  .sk { background: var(--grid); border-radius: 8px; animation: skpulse 1.4s ease-in-out infinite; }
  @keyframes skpulse { 50% { opacity: .4; } }
