:root {
  color-scheme: light;
  --paper: #eef1e8;
  --ink: #19231d;
  --muted: #4a5b50;
  --line: #aab7a8;
  --night: #17231c;
  --lime: #d2f786;
  --raw: #37644c;
  --pc1: #9eb976;
  --lost: #d8ded1;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font: 16px "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: #315b35; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #347c51; outline-offset: 4px; }
.wrap { width: min(1320px, 100% - clamp(32px, 9vw, 144px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 66px; border-bottom: 1px solid var(--line); gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 750; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.mark { width: 25px; height: 20px; background: repeating-linear-gradient(100deg, var(--raw) 0 4px, transparent 4px 8px); clip-path: polygon(0 30%, 100% 0, 82% 75%, 2% 100%); }
nav, .site-footer { display: flex; gap: clamp(14px, 3vw, 33px); font-weight: 620; font-size: 14px; }
h1, h2, p { margin: 0; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 31px 0 24px; }
h1 { font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.082em; }
.intro p { margin-top: 12px; color: var(--muted); line-height: 1.42; }
.provenance { padding: 3px 0 3px 14px; border-left: 2px solid #638156; flex-shrink: 0; }
.provenance strong, .provenance span { display: block; }
.provenance strong { font-size: 15px; }
.provenance span { color: var(--muted); font: 11px var(--mono); margin-top: 5px; }
.load-status, .error { padding: 17px; border: 1px solid var(--line); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(265px, 1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.scope, .inspector { padding: clamp(16px, 2.25vw, 30px); }
.scope { background: var(--night); color: var(--paper); }
.scope-head, .inspector-head, .timeline-head, .timeline-controls, .scope-foot { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.scope-head { align-items: start; }
.scope h2 { font-size: 14px; font-weight: 600; }
.peak { font: 600 clamp(34px, 5vw, 66px)/1.15 var(--mono); color: var(--lime); letter-spacing: -.095em; white-space: nowrap; }
.chart-note, .scope-foot { font: 11px var(--mono); color: #bac9bd; }
.peak-button, .replay { border: 1px solid transparent; border-radius: 5px; font-weight: 680; padding: 10px 13px; white-space: nowrap; }
.peak-button { background: var(--lime); color: var(--night); }
.peak-button:hover { background: #e4ffa8; }
.peak-button:focus-visible { outline-color: var(--lime); }
#chart { display: block; width: 100%; height: clamp(172px, 22vw, 244px); margin: 8px 0 0; cursor: crosshair; touch-action: manipulation; }
.scope-foot { border-top: 1px solid #526458; padding-top: 10px; }
.inspector { min-width: 0; }
h2 { font-size: clamp(22px, 2.25vw, 31px); line-height: 1.07; letter-spacing: -.045em; }
.tier { font: 600 12px var(--mono); white-space: nowrap; padding: 5px 7px; border-radius: 4px; color: var(--ink); background: var(--lost); }
.tier[data-tier="raw"] { background: var(--raw); color: white; }
.tier[data-tier="pc1"] { background: #d9e5c5; }
.record-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 19px; }
.record-id strong { font: 650 clamp(32px, 4vw, 47px)/1.02 var(--mono); letter-spacing: -.08em; }
.record-id span { color: var(--muted); font: 12px var(--mono); }
dl { margin: 15px 0 16px; min-height: 112px; }
dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 7px 0; border-bottom: 1px solid #c6d0c3; }
dt { font-size: 14px; }
dd { margin: 0; text-align: right; font: 13px var(--mono); overflow-wrap: anywhere; }
.replay { background: var(--ink); color: #fff; }
.replay:hover:enabled { background: var(--raw); }
.replay-result { min-height: 2.6em; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.replay-result strong { color: #244932; }
.timeline { padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline-head { align-items: end; flex-wrap: wrap; }
.timeline-head p, .benchmark p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.45; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button, .scrubber button { background: transparent; border: 1px solid #889887; color: var(--ink); border-radius: 4px; padding: 7px 10px; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button:hover:not([aria-pressed="true"]), .scrubber button:hover:enabled { background: #dce5d6; }
#strip { display: block; width: 100%; height: 28px; margin-top: 14px; border: 1px solid #879886; cursor: crosshair; touch-action: manipulation; }
.timeline-controls { flex-wrap: wrap; margin-top: 9px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 17px; font: 12px var(--mono); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--swatch); outline: 1px solid #718372; }
.legend-raw { --swatch: var(--raw); }
.legend-pc1 { --swatch: var(--pc1); }
.legend-lost { --swatch: var(--lost); }
.scrubber { display: flex; align-items: center; gap: 8px; width: min(100%, 430px); }
.scrubber input { flex: 1; min-width: 0; accent-color: var(--raw); }
.scrubber button { flex: none; min-width: 44px; min-height: 36px; }
.benchmark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 19px 38px; padding: 27px 0 30px; }
.benchmark a { display: inline-block; font-size: 14px; font-weight: 650; margin-top: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #bcc9ba; }
th:first-child, td:first-child { padding-left: 11px; }
th { color: var(--muted); }
td:not(:first-child) { font: 13px var(--mono); }
tr.featured { background: #dceac2; }
.site-footer { flex-wrap: wrap; border-top: 1px solid var(--line); padding: 18px 0 25px; }

@media (max-width: 810px) {
  .workspace, .benchmark { grid-template-columns: 1fr; }
  .inspector { border-top: 1px solid var(--line); }
  .intro { align-items: start; flex-direction: column; }
  .timeline-head { align-items: start; }
}
@media (max-width: 410px) {
  .brand { font-size: 19px; }
  nav { gap: 12px; font-size: 13px; }
  .scope-foot { gap: 4px; font-size: 10px; }
  th, td { padding: 8px 5px; }
}
