@font-face { font-family: Geist; src: url("./fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #fff;
  --surface: #fafafa;
  --hover: #f5f5f5;
  --foreground: #171717;
  --secondary: #515151;
  --muted: #696969;
  --border: #e5e5e5;
  --grid: #eaeaea;
  --focus: #215aca;
  --vulkan: #235ed0;
  --metal: #575757;
  --gl-native: #006e58;
  --gl-zink: #8a43a2;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 16px/1.5 var(--sans);
  background: var(--bg);
  color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #111;
    --hover: #181818;
    --foreground: #ededed;
    --secondary: #bbb;
    --muted: #a0a0a0;
    --border: #282828;
    --grid: #242424;
    --focus: #8ab4ff;
    --vulkan: #80adff;
    --metal: #b1b1b1;
    --gl-native: #68d4b6;
    --gl-zink: #d3a0e3;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.frame { width: min(100% - 48px, 1080px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner { min-height: 64px; display: flex; align-items: center; gap: 16px; font-size: .875rem; }
.masthead a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.mark {
  display: inline-block; width: 19px; height: 18px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 72% 100%, 50% 55%, 28% 100%, 0 100%);
}
.divider, .product, .footer { color: var(--muted); }
.repo { margin-left: auto; border: 1px solid var(--border); padding: 5px 11px; border-radius: 6px; }
.repo:hover { background: var(--hover); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-block: 49px 31px; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: 2rem; line-height: 1.13; font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.027em; }
.intro p { color: var(--secondary); margin-top: 10px; }
.text-link { color: var(--secondary); font-size: .875rem; white-space: nowrap; text-decoration-color: var(--border); }
.text-link:hover { color: var(--foreground); text-decoration-color: currentColor; }
.notice { padding: 16px 0; color: var(--secondary); }
.technical, td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.device {
  text-align: left; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); padding: 11px 13px; min-width: 0;
}
.device:hover { background: var(--hover); }
.device[aria-pressed="true"] { background: var(--surface); border-color: var(--secondary); }
.device strong { display: block; font-size: .9375rem; font-weight: 620; }
.device span { display: block; color: var(--muted); font-size: .8125rem; }
.panel { border: 1px solid var(--border); border-radius: 8px; }
.filters {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: 12px; border-bottom: 1px solid var(--border); background: var(--surface); padding: 14px 20px 16px;
  border-radius: 8px 8px 0 0;
}
.filters label { display: grid; gap: 6px; min-width: 0; color: var(--secondary); font-size: .8125rem; font-weight: 540; }
.filters select {
  appearance: none; width: 100%; min-height: 40px; min-width: 0; border-radius: 6px;
  padding: 7px 30px 7px 10px; border: 1px solid var(--border); background: var(--bg);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%;
  background-size: 4px 4px; background-repeat: no-repeat; font-size: .875rem;
}
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 19px 20px 0; }
.panel-heading p { color: var(--muted); font-size: .75rem; margin-top: 4px; overflow-wrap: anywhere; }
#direction { color: var(--secondary); font-size: .75rem; text-align: right; margin-top: 4px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; }
.series {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg); font-size: .8125rem; min-height: 34px;
}
.series:hover { background: var(--hover); }
.series[aria-pressed="false"] { color: var(--muted); }
.series[aria-pressed="false"] .swatch { opacity: .38; }
.swatch { width: 12px; border-top: 2px solid var(--series); }
.swatch.metal { border-top-style: dashed; }
.swatch.gl-zink { border-top-style: dotted; }
.vulkan { --series: var(--vulkan); }
.metal { --series: var(--metal); }
.gl-native { --series: var(--gl-native); }
.gl-zink { --series: var(--gl-zink); }
.plot { margin: 8px 20px 13px; position: relative; }
#chart { display: block; width: 100%; height: 238px; }
#chart-empty { display: grid; place-items: center; min-height: 190px; text-align: center; color: var(--muted); padding: 20px; }
figcaption { font: .75rem var(--mono); text-align: center; color: var(--muted); margin-top: 2px; }
#chart-tooltip {
  pointer-events: none; position: absolute; top: 2px; left: var(--tooltip-left, 0);
  min-width: min(174px, 100%); padding: 8px 10px; border: 1px solid var(--border);
  background: var(--bg); border-radius: 6px; font-size: .75rem;
}
#chart-tooltip strong { display: block; font-weight: 600; margin-bottom: 4px; }
.tooltip-series { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tooltip-value { color: var(--series); }
.measurements { border-top: 1px solid var(--border); }
summary { min-height: 44px; padding: 12px 20px; font-size: .875rem; font-weight: 570; }
summary:hover { background: var(--hover); }
summary span { color: var(--muted); margin-left: 6px; font-size: .75rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th, td { border-top: 1px solid var(--border); padding: 8px 11px; font-size: .8125rem; }
th { color: var(--muted); font-weight: 540; }
th:first-child, td:first-child { padding-left: 20px; font-family: var(--sans); }
.records { margin-top: 31px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-actions { display: flex; align-items: center; gap: 14px; }
.records-list { border: 1px solid var(--border); border-radius: 8px; }
.run {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto;
  align-items: start; gap: 8px 12px; padding: 11px 14px; font-size: .875rem;
}
.run + .run { border-top: 1px solid var(--border); }
.run strong { font-weight: 590; }
.run .technical { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.run .run-note { grid-column: 2 / -1; font-size: .8125rem; color: var(--secondary); }
.run .run-link { grid-column: 1 / -1; width: fit-content; }
.run-missing { color: var(--muted); }
.methodology { margin-top: 18px; color: var(--secondary); border-bottom: 1px solid var(--border); }
.methodology summary { padding-left: 0; }
.methodology p { max-width: 68ch; font-size: .875rem; margin-bottom: 13px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding-block: 23px 30px; font-size: .8125rem; }
.footer a { text-decoration: none; }
@media (max-width: 600px) {
  .frame { width: calc(100% - 32px); }
  .masthead-inner { min-height: 56px; }
  .intro { display: block; padding-block: 33px 22px; }
  .devices { gap: 6px; margin-bottom: 12px; }
  .device { padding: 8px; }
  .device strong { font-size: .875rem; }
  .device span { font-size: .75rem; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 11px 12px; }
  .filters label:first-child { grid-column: 1 / -1; }
  .panel-heading { padding: 14px 12px 0; display: grid; gap: 5px; }
  .panel-heading p { font-size: .6875rem; }
  #direction { text-align: left; margin-top: 0; }
  .legend { padding-inline: 12px; }
  .series { min-height: 40px; }
  .plot { margin-inline: 8px; }
  #chart { height: 217px; }
  .run { grid-template-columns: minmax(0, 1fr) auto; }
  .run .run-meta { grid-row: 2; grid-column: 1 / -1; }
  .run .run-note { grid-column: 1 / -1; }
}
.run-picker {
  grid-column: 1 / -1; width: fit-content; max-width: 100%; min-height: 36px;
  padding: 4px 8px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; font-size: .75rem; color: var(--secondary);
}
.series:disabled { cursor: default; opacity: .55; }
