
  :root {
    color-scheme: light;
    --surface-1: #fcfcfb;
    --page-plane: #f9f9f7;
    --text-primary: #0b0b0b;
    --text-secondary: #52514e;
    --text-muted: #898781;
    --gridline: #e1e0d9;
    --baseline: #c3c2b7;
    --border: rgba(11,11,11,0.10);
    --card-bg: #ffffff;
    --series-2025: #2a78d6;
    --series-2026: #eb6834;
    --series-meta: #898781;
    --pos: #0ca30c;
    --pos-bg: rgba(12,163,12,0.10);
    --neg: #d03b3b;
    --neg-bg: rgba(208,59,59,0.10);
    --warn: #c98500;
    --warn-bg: rgba(237,161,0,0.14);
    --seq: #6a5fc8;
    --partial-band: rgba(137,135,129,0.12);
  }
  @media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
      color-scheme: dark;
      --surface-1: #1a1a19;
      --page-plane: #0d0d0d;
      --text-primary: #ffffff;
      --text-secondary: #c3c2b7;
      --text-muted: #898781;
      --gridline: #2c2c2a;
      --baseline: #383835;
      --border: rgba(255,255,255,0.10);
      --card-bg: #232322;
      --series-2025: #3987e5;
      --series-2026: #d95926;
      --series-meta: #898781;
      --pos: #0ca30c;
      --pos-bg: rgba(12,163,12,0.16);
      --neg: #e66767;
      --neg-bg: rgba(230,103,103,0.16);
      --warn: #eda100;
      --warn-bg: rgba(237,161,0,0.18);
      --seq: #9089e0;
      --partial-band: rgba(137,135,129,0.16);
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --page-plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --gridline: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255,255,255,0.10);
    --card-bg: #232322;
    --series-2025: #3987e5;
    --series-2026: #d95926;
    --series-meta: #898781;
    --pos: #0ca30c;
    --pos-bg: rgba(12,163,12,0.16);
    --neg: #e66767;
    --neg-bg: rgba(230,103,103,0.16);
    --warn: #eda100;
    --warn-bg: rgba(237,161,0,0.18);
    --seq: #9089e0;
    --partial-band: rgba(137,135,129,0.16);
  }

  * { box-sizing: border-box; }
  body {
    background: var(--page-plane);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
  }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }

  header.hero { margin-bottom: 32px; }
  header.hero .eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 8px;
  }
  header.hero h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
  header.hero p { color: var(--text-secondary); font-size: 14.5px; margin: 0; max-width: 720px; }

  section { margin-bottom: 40px; }
  h2 {
    font-size: 18px; font-weight: 700; margin: 0 0 4px;
    display: flex; align-items: center; gap: 8px;
  }
  h2 .num-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 6px; background: var(--series-2025);
    color: white; font-size: 12px; font-weight: 700; flex-shrink: 0;
  }
  .section-sub { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 16px; }
  p.prose { font-size: 14.5px; color: var(--text-primary); margin: 0 0 12px; }
  p.prose:last-child { margin-bottom: 0; }
  .prose-block {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 22px;
  }
  strong.hl { font-weight: 700; }

  .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .kpi-row.three { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
  .kpi-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 16px 18px;
  }
  .kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
  .kpi-value { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
  .kpi-delta { font-size: 12.5px; margin-top: 4px; font-weight: 600; }
  .kpi-delta.pos { color: var(--pos); }
  .kpi-delta.neg { color: var(--neg); }

  table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  thead th {
    text-align: left; padding: 10px 14px; background: var(--page-plane);
    color: var(--text-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase;
    letter-spacing: 0.03em; border-bottom: 1px solid var(--border);
  }
  thead th.num { text-align: right; }
  tbody td { padding: 9px 14px; border-bottom: 1px solid var(--gridline); color: var(--text-primary); }
  tbody tr:last-child td { border-bottom: none; }
  td.num { text-align: right; font-variant-numeric: tabular-nums; }
  td.pos, td.num.pos { color: var(--pos); }
  td.neg, td.num.neg { color: var(--neg); }
  tr.total-row td { font-weight: 700; background: var(--page-plane); border-top: 1px solid var(--border); }
  .table-scroll { overflow-x: auto; }
  .table-block { margin-bottom: 14px; }
  .table-block-title { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.03em; }

  .chart-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 22px 12px;
  }
  .chart-svg { width: 100%; height: auto; display: block; }
  .legend-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gridline); }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
  .legend-swatch { width: 14px; height: 3px; border-radius: 2px; }
  .legend-swatch.dot { width: 9px; height: 9px; border-radius: 50%; }
  .legend-swatch.dashed { background: none; border-top: 2px dashed var(--series-meta); width: 14px; height: 0; }

  .axis-label { font-size: 11px; fill: var(--text-muted); font-family: system-ui, sans-serif; }
  .axis-title { font-size: 12px; fill: var(--text-secondary); font-family: system-ui, sans-serif; font-weight: 600; }
  .row-label { font-size: 12.5px; fill: var(--text-primary); font-family: system-ui, sans-serif; }
  .bar-value { font-size: 12px; fill: var(--text-secondary); font-family: system-ui, sans-serif; font-variant-numeric: tabular-nums; }
  .target-label { font-size: 11px; fill: var(--text-muted); font-family: system-ui, sans-serif; }
  .scatter-label { font-size: 12px; fill: var(--text-primary); font-family: system-ui, sans-serif; font-weight: 600; }
  .scatter-grid { stroke: var(--gridline); stroke-width: 1; }

  line.zero-line, line.target-line { stroke: var(--baseline); stroke-width: 1.5; }
  line.target-line { stroke-dasharray: 4 3; }
  .partial-band { fill: var(--partial-band); }

  polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .line-2025 { stroke: var(--series-2025); }
  .line-2026 { stroke: var(--series-2026); }
  .line-meta { stroke: var(--series-meta); stroke-width: 1.5; stroke-dasharray: 5 4; }
  circle { stroke: var(--card-bg); stroke-width: 1.5; cursor: pointer; }
  .pt-2025 { fill: var(--series-2025); }
  .pt-2026 { fill: var(--series-2026); }
  .pt-meta { fill: var(--series-meta); r: 3; }
  .pt-good { fill: var(--pos); stroke-width: 2; }
  .pt-bad { fill: var(--neg); stroke-width: 2; }
  .pt-mixed { fill: var(--warn); stroke-width: 2; }

  rect.bar-pos, rect.bar-attain-pos { fill: var(--pos); cursor: pointer; }
  rect.bar-neg, rect.bar-attain-neg { fill: var(--neg); cursor: pointer; }
  rect.bar-seq { fill: var(--seq); cursor: pointer; }
  rect.quad-good { fill: var(--pos-bg); }
  rect.quad-bad { fill: var(--neg-bg); }
  rect.quad-mixed { fill: var(--warn-bg); }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  .tooltip {
    position: fixed; pointer-events: none; background: var(--text-primary); color: var(--surface-1);
    font-size: 12.5px; padding: 6px 10px; border-radius: 6px; opacity: 0; transition: opacity 0.08s;
    z-index: 100; font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .tooltip.show { opacity: 1; }

  .callout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
  .callout { border-radius: 10px; padding: 12px 14px; border: 1px solid var(--border); }
  .callout.good { background: var(--pos-bg); }
  .callout.bad { background: var(--neg-bg); }
  .callout.warn { background: var(--warn-bg); }
  .callout .callout-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
  .callout .callout-value { font-size: 15px; font-weight: 700; }
  .callout .callout-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

  .update-banner {
    background: var(--warn-bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; font-size: 13px; color: var(--text-primary); margin-bottom: 28px;
  }

  footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }

  @media (max-width: 720px) {
    .kpi-row, .kpi-row.three { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .callout-grid { grid-template-columns: 1fr; }
  }
