@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-Variable.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
:root {
  --bg: #0e0f10; --panel: #16181a; --rule: #2a2d30; --text: #e9e7e3; --dim: #9aa0a6;
  --not-yet: #ff453a; --on-screen: #3ddc84;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
a { color: var(--text); text-underline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.mark { font-weight: 800; font-stretch: 80%; letter-spacing: 0.02em; text-transform: uppercase; font-size: 16px; text-decoration: none; }
.mark span { color: var(--not-yet); font-family: var(--mono); font-weight: 500; margin-right: 8px; }
nav a { font: 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); text-decoration: none; margin-left: 16px; }
nav a:hover, nav a[aria-current] { color: var(--text); }
.label { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1 { font-weight: 700; font-stretch: 85%; font-size: 32px; line-height: 1.15; margin: 32px 0 8px; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-stretch: 85%; font-size: 20px; margin: 40px 0 8px; }
p.lede { color: var(--dim); max-width: 720px; margin: 0 0 24px; }
.tool { display: grid; grid-template-columns: 360px minmax(0, 1fr); border: 1px solid var(--rule); }
.inputs { border-right: 1px solid var(--rule); padding: 16px; display: grid; gap: 16px; align-content: start; }
.drop { border: 1px dashed var(--rule); padding: 24px 16px; display: grid; gap: 8px; }
.drop.over { border-color: var(--on-screen); }
.drop input[type=file] { font: 12px var(--mono); color: var(--dim); max-width: 100%; }
.drop input[type=file]::file-selector-button { font: 12px var(--mono); background: var(--panel); color: var(--text); border: 1px solid var(--rule); border-radius: 0; padding: 8px 12px; margin-right: 12px; cursor: pointer; }
.drop input[type=file]::file-selector-button:hover { border-color: var(--text); }
.file-name { font: 13px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.readout { padding: 16px 24px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.readout .big { font: 500 88px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.readout .tc { font: 14px var(--mono); color: var(--dim); white-space: pre; }
.controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font: 12px var(--mono); color: var(--dim); }
select, button { font: 12px var(--mono); background: var(--panel); color: var(--text); border: 1px solid var(--rule); border-radius: 0; padding: 8px 12px; cursor: pointer; }
button:hover { border-color: var(--text); }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--on-screen); outline-offset: 2px; }
.status { padding: 8px 24px; font: 13px var(--mono); min-height: 40px; border-bottom: 1px solid var(--rule); color: var(--dim); }
.status.err { color: var(--text); border-left: 3px solid var(--not-yet); }
.status.ok { color: var(--text); border-left: 3px solid var(--on-screen); }
.timeline { overflow-x: auto; overflow-y: hidden; padding: 0 0 8px; background: var(--panel); }
.tl-track { position: relative; height: 168px; }
.tl-ruler { position: absolute; top: 0; left: 0; right: 0; height: 24px; border-bottom: 1px solid var(--rule); }
.tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--rule); }
.tick.major { height: 12px; background: var(--dim); }
.tick-label { position: absolute; top: 2px; transform: translateX(4px); font: 10px var(--mono); color: var(--dim); }
.tl-strip { position: absolute; top: 28px; left: 0; right: 0; height: 36px; }
.tl-strip img { position: absolute; top: 0; width: 32px; height: 36px; object-fit: cover; opacity: 0.9; }
.tl-fill { position: absolute; top: -4px; left: 0; height: 44px; background: rgba(255, 69, 58, 0.32); border-top: 3px solid var(--not-yet); }
.tl-fill.pending { background: rgba(255, 69, 58, 0.16); }
.tl-shots { position: absolute; top: 76px; left: 0; right: 0; height: 80px; }
.shot { position: absolute; top: 0; height: 80px; padding: 0; border: 1px solid var(--rule); background: var(--bg); overflow: hidden; text-align: left; }
.shot img { display: block; width: 96px; max-width: 100%; height: 54px; object-fit: cover; }
.shot-t { position: absolute; left: 4px; bottom: 2px; font: 10px var(--mono); color: var(--dim); }
.shot.not-yet { border-top: 3px solid var(--not-yet); }
.shot.is-app { border-top: 3px solid var(--on-screen); }
.shot.is-error { border-top: 3px dashed var(--dim); }
button.shot:hover { border-color: var(--on-screen); }
.tl-marker { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--on-screen); }
.marker-label { position: absolute; top: 0; left: 6px; font: 500 11px var(--mono); color: var(--bg); background: var(--on-screen); padding: 2px 6px; white-space: nowrap; }
.exports { padding: 16px 24px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--rule); }
.exports[hidden] { display: none; }
.example-note { padding: 8px 24px; font: 12px var(--mono); color: var(--dim); border-bottom: 1px solid var(--rule); }
.offscreen { position: fixed; left: -10000px; top: 0; width: 160px; height: 90px; }
table { border-collapse: collapse; width: 100%; font: 13px var(--mono); font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--rule); padding: 8px; text-align: left; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); font-weight: 400; }
td.miss { color: var(--not-yet); } td.hit { color: var(--on-screen); }
.prose { max-width: 760px; } .prose li { margin-bottom: 8px; }
footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 16px 0 32px; font: 12px var(--mono); color: var(--dim); }
@media (max-width: 900px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .inputs { border-right: 0; border-bottom: 1px solid var(--rule); }
  .readout .big { font-size: 56px; }
  nav a { margin-left: 0; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tl-track.no-shots { height: 76px; }
#bench-table { max-width: 100%; }
#bench-table td { vertical-align: top; }
/* min-width keeps names on one line on desktop; the Result column takes the wrapping instead. */
#bench-table td:first-child { overflow-wrap: anywhere; min-width: calc(19ch + 16px); }
#bench-table td:nth-child(2), #bench-table td:nth-child(3), #bench-table td:nth-child(4) { white-space: nowrap; }
@media (max-width: 600px) {
  #bench-table th:nth-child(2), #bench-table td:nth-child(2) { display: none; }
  #bench-table th, #bench-table td { padding: 8px 4px; font-size: 12px; }
  /* Names break only at their hyphens (<wbr>), never mid-word. */
  #bench-table td:first-child { overflow-wrap: break-word; min-width: 0; }
}
.status.busy { color: var(--text); border-left: 3px solid var(--dim); }
