/* The PHP Bench: glass surfaces over a live shader backdrop. */

@font-face {
  font-family: "IBM VGA";
  src: url("/fonts/Ac437_IBM_VGA_8x16.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/*
 * Surfaces stack in three layers and each one contrasts with the one behind it:
 *   backdrop  the animated shader (or a CSS gradient without WebGL)
 *   glass     translucent, blurred and saturated panels floating over the backdrop
 *   well      dense surfaces inside the glass that carry text, tables and charts
 * Dark wells sink below the glass; light wells lift above it.
 */

:root {
  color-scheme: dark;

  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-pixel: "IBM VGA", var(--font-mono);

  --shader-base: #070520;
  --shader-1: #5a2ad4;
  --shader-2: #c42b92;
  --shader-3: #1178c9;
  --shader-4: #46e6ff;

  --glass-bg: rgba(22, 18, 48, 0.46);
  --glass-edge: rgba(255, 255, 255, 0.11);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 12px 30px -18px rgba(0, 0, 0, 0.6);

  --well-bg: rgba(7, 6, 20, 0.66);
  --well-edge: rgba(255, 255, 255, 0.07);
  --tile-bg: rgba(255, 255, 255, 0.045);
  --tile-edge: rgba(255, 255, 255, 0.06);
  --row-hover: rgba(255, 255, 255, 0.04);
  --rule: rgba(255, 255, 255, 0.075);

  --ink: #f6f4ff;
  --ink-2: #cbc5e8;
  --ink-3: #9a93bd;

  --accent: #b99dff;
  --accent-ink: #120d2c;
  --cyan: #63e2ff;
  --pink: #ff6fcb;
  --good: #6ff2b0;
  --warn: #ffc56b;

  --track: rgba(255, 255, 255, 0.07);
  --fill: linear-gradient(90deg, #ff6fcb 0%, #a987ff 50%, #63e2ff 100%);
  --fill-glow: 0 0 14px rgba(169, 135, 255, 0.45);

  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-edge: rgba(255, 255, 255, 0.1);
  --chip-active-bg: rgba(185, 157, 255, 0.22);
  --chip-active-edge: rgba(185, 157, 255, 0.55);

  --phase-init: #4f7cff;
  --phase-insert: #c98016;
  --phase-read: #1597bd;
  --phase-update: #8f63ff;
  --phase-delete: #e0469f;
  --tip-bg: rgba(250, 248, 255, 0.94);
  --tip-ink: #15102c;

  --radius-glass: 26px;
  --radius-well: 18px;
  --blur: 30px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --shader-base: #f0eeff;
    --shader-1: #b8a2ff;
    --shader-2: #ffb0da;
    --shader-3: #9ee0ff;
    --shader-4: #ffcfa3;

    --glass-bg: rgba(255, 255, 255, 0.38);
    --glass-edge: rgba(255, 255, 255, 0.78);
    --glass-highlight: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 40px 80px -34px rgba(58, 36, 140, 0.34), 0 10px 26px -16px rgba(58, 36, 140, 0.22);

    --well-bg: rgba(255, 255, 255, 0.8);
    --well-edge: rgba(110, 88, 200, 0.14);
    --tile-bg: rgba(108, 82, 230, 0.055);
    --tile-edge: rgba(108, 82, 230, 0.1);
    --row-hover: rgba(108, 82, 230, 0.05);
    --rule: rgba(60, 40, 140, 0.09);

    --ink: #16112e;
    --ink-2: #463f66;
    --ink-3: #6a6390;

    --accent: #6a45f5;
    --accent-ink: #ffffff;
    --cyan: #0a8fb8;
    --pink: #cc2d8f;
    --good: #0f8a55;
    --warn: #a65f00;

    --track: rgba(80, 58, 170, 0.1);
    --fill: linear-gradient(90deg, #e2479f 0%, #7a58ff 50%, #16aad8 100%);
    --fill-glow: 0 0 10px rgba(122, 88, 255, 0.25);

    --chip-bg: rgba(255, 255, 255, 0.55);
    --chip-edge: rgba(110, 88, 200, 0.18);
    --chip-active-bg: rgba(106, 69, 245, 0.14);
    --chip-active-edge: rgba(106, 69, 245, 0.5);

    --phase-init: #3563e9;
    --phase-insert: #b86e00;
    --phase-read: #0f8fb3;
    --phase-update: #7443f0;
    --phase-delete: #cf2f8a;
    --tip-bg: rgba(22, 16, 46, 0.94);
    --tip-ink: #f6f4ff;
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --shader-base: #f0eeff;
  --shader-1: #b8a2ff;
  --shader-2: #ffb0da;
  --shader-3: #9ee0ff;
  --shader-4: #ffcfa3;

  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 40px 80px -34px rgba(58, 36, 140, 0.34), 0 10px 26px -16px rgba(58, 36, 140, 0.22);

  --well-bg: rgba(255, 255, 255, 0.8);
  --well-edge: rgba(110, 88, 200, 0.14);
  --tile-bg: rgba(108, 82, 230, 0.055);
  --tile-edge: rgba(108, 82, 230, 0.1);
  --row-hover: rgba(108, 82, 230, 0.05);
  --rule: rgba(60, 40, 140, 0.09);

  --ink: #16112e;
  --ink-2: #463f66;
  --ink-3: #6a6390;

  --accent: #6a45f5;
  --accent-ink: #ffffff;
  --cyan: #0a8fb8;
  --pink: #cc2d8f;
  --good: #0f8a55;
  --warn: #a65f00;

  --track: rgba(80, 58, 170, 0.1);
  --fill: linear-gradient(90deg, #e2479f 0%, #7a58ff 50%, #16aad8 100%);
  --fill-glow: 0 0 10px rgba(122, 88, 255, 0.25);

  --chip-bg: rgba(255, 255, 255, 0.55);
  --chip-edge: rgba(110, 88, 200, 0.18);
  --chip-active-bg: rgba(106, 69, 245, 0.14);
  --chip-active-edge: rgba(106, 69, 245, 0.5);

  --phase-init: #3563e9;
  --phase-insert: #b86e00;
  --phase-read: #0f8fb3;
  --phase-update: #7443f0;
  --phase-delete: #cf2f8a;
  --tip-bg: rgba(22, 16, 46, 0.94);
  --tip-ink: #f6f4ff;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 96px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--shader-base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); font-size: 0.9em; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; color: var(--ink); }
.sub { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; }
.pre { white-space: pre-line; }

.ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
}

.ico-brand {
  object-fit: contain;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1px;
}

.with-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Backdrop */

.backdrop,
.backdrop-fallback {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.backdrop { display: block; }

.backdrop-fallback {
  z-index: -3;
  background:
    radial-gradient(60% 50% at 18% 20%, color-mix(in srgb, var(--shader-2) 70%, transparent), transparent 70%),
    radial-gradient(55% 45% at 82% 12%, color-mix(in srgb, var(--shader-3) 70%, transparent), transparent 70%),
    radial-gradient(70% 60% at 60% 90%, color-mix(in srgb, var(--shader-1) 80%, transparent), transparent 75%),
    var(--shader-base);
}

/* Glass and wells */

.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-glass);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
}

/* A faint grain keeps large frosted areas from looking like flat plastic. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass > * { position: relative; }

.well {
  background: var(--well-bg);
  border: 1px solid var(--well-edge);
  border-radius: var(--radius-well);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1240px, calc(100% - 32px));
  height: 60px;
  margin: 14px auto 0;
  padding: 0 12px 0 22px;
  border-radius: 20px;
}

.wordmark {
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-prompt {
  margin-right: 10px;
  background: var(--fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topnav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.topnav a:hover { color: var(--ink); background: var(--chip-bg); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--chip-edge);
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--ink);
  cursor: pointer;
}

.theme-icon { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-icon-moon { display: block; }
}

:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

/* Page */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Regions swapped in place by the tab and engine controls */

.region {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  transition: opacity 0.15s ease;
}

.region[aria-busy="true"] {
  opacity: 0.55;
  cursor: progress;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  padding: 40px;
  align-items: center;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: center;
}

.eyebrow {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--chip-active-edge);
  border-radius: 999px;
  background: var(--chip-active-bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: 0;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 45%, var(--accent) 75%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* Dashboard header bar: title, latest run and the six counts in about 100px. */

.hero-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title latest" "stats stats";
  align-items: center;
  gap: 10px 24px;
  padding: 16px 24px;
}

.hero-bar-title {
  grid-area: title;
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.hero-bar h1 {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 45%, var(--accent) 75%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bar .lede {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-bar-latest {
  grid-area: latest;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--chip-active-edge);
  border-radius: 10px;
  background: var(--chip-active-bg);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}

.hero-bar-latest .mono { font-weight: 600; }
.hero-bar-latest:hover { border-color: var(--accent); }

.hero-bar-stats {
  grid-area: stats;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
}

.hero-bar-stats > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero-bar-stats dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hero-bar-stats dt {
  color: var(--ink-3);
  font-size: 12.5px;
}

.lede {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.hero-facts {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.stat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
.stat-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px; }

.stat {
  padding: 14px 16px;
  border: 1px solid var(--tile-edge);
  border-radius: 14px;
  background: var(--tile-bg);
}

.stat dt {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat dd {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat dd.stat-text { font-size: 16px; line-height: 1.35; }

.latest {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--chip-active-edge);
  border-radius: 14px;
  background: var(--chip-active-bg);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.latest:hover { transform: translateY(-1px); border-color: var(--accent); }

.latest-label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.latest-id { font-size: 15px; font-weight: 600; }
.latest-meta { color: var(--ink-2); font-size: 13px; }

/* Panels */

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  align-content: start;
}

.panel-head {
  display: grid;
  gap: 6px;
}

.panel-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-head p {
  max-width: 80ch;
  color: var(--ink-2);
  font-size: 14px;
}

.subhead {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--chip-edge);
  border-radius: 14px;
  background: var(--well-bg);
}

.segmented a {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.segmented a:hover { color: var(--ink); }

.segmented a.active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -8px var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--chip-edge);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.chip:hover { color: var(--ink); border-color: var(--chip-active-edge); }

.chip.active {
  border-color: var(--chip-active-edge);
  background: var(--chip-active-bg);
  color: var(--ink);
}

/* Bars */

.track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

/* The gradient spans the full track, so each bar's end colour tracks its value. */
.fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
  background: var(--fill);
  background-size: calc(100% * 100 / max(var(--w, 100), 0.5)) 100%;
  box-shadow: var(--fill-glow);
}

.version {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--tile-edge);
  border-radius: 6px;
  background: var(--tile-bg);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  vertical-align: 1px;
}

.version-sm { font-size: 10.5px; padding: 0 5px; }

/* Comparison cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.compare-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  align-content: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.compare-card:hover { border-color: var(--chip-active-edge); }

.compare-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-card-icon .ico {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.compare-card-title { display: grid; gap: 2px; min-width: 0; }

.compare-card-title h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.compare-card-title p {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-rows {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
}

.card-grid-wide .compare-row { grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 76px; }

.compare-row:hover { background: var(--row-hover); }

.compare-label {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
}

.compare-label > span:last-child { overflow: hidden; text-overflow: ellipsis; }

.compare-value {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.compare-row.is-missing .compare-value { color: var(--ink-3); font-weight: 400; }

.empty-state { padding: 28px; color: var(--ink-2); text-align: center; }

/* Tables */

.table-well { padding: 6px 18px; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data th,
.data td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

.data th:first-child, .data td:first-child { padding-left: 4px; }
.data th:last-child, .data td:last-child { padding-right: 4px; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data tbody tr:hover > * { background: var(--row-hover); }

.data thead th {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data tbody th { font-weight: 500; }
.data td { color: var(--ink-2); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }

.data thead th button {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.data thead th button:hover { color: var(--ink); }
.data thead th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.data th[aria-sort] button { color: var(--ink); }

.data th[aria-sort] button::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid var(--accent);
}

.data th[aria-sort="descending"] button::after { transform: rotate(180deg); }

.fw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fw > .ico { width: 26px; height: 26px; flex-basis: 26px; }
.fw-text { display: grid; }
.fw-name { color: var(--ink); font-weight: 600; white-space: nowrap; }
.fw-package { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }

/* Every combination, one sorted list */

.combo-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.combo {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 150px) minmax(0, 1fr) 88px;
  grid-template-areas: "framework engine track value";
  gap: 18px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
}

.combo:nth-child(even) { background: var(--tile-bg); }
.combo:hover { background: var(--row-hover); box-shadow: inset 0 0 0 1px var(--tile-edge); }

.combo-framework {
  grid-area: framework;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.combo-framework > .ico { width: 24px; height: 24px; flex-basis: 24px; }

.combo-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-engine {
  grid-area: engine;
  min-width: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
}

.combo .phase-track { grid-area: track; height: 14px; }

.combo { cursor: default; }
.combo:focus-visible { background: var(--row-hover); outline-offset: 0; }
.combo-list:hover .combo:not(:hover) .phase-bar { opacity: 0.45; }

.combo-value {
  grid-area: value;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--chip-active-edge);
}

.link:hover { border-bottom-color: var(--accent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--good) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--good) 14%, transparent);
  color: var(--good);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.pill.pending {
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--warn);
}

.file {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--ink);
}

/* Phase charts */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-2);
  font-size: 13px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.phase-init { background: var(--phase-init); }
.phase-insert { background: var(--phase-insert); }
.phase-read { background: var(--phase-read); }
.phase-update { background: var(--phase-update); }
.phase-delete { background: var(--phase-delete); }

.phase-mean {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.phase-mean-label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phase-mean-bar,
.phase-bar {
  display: flex;
  gap: 2px;
}

.phase-mean-bar { height: 30px; }

.phase-mean-bar .seg:first-child,
.phase-bar .seg:first-child { border-radius: 6px 0 0 6px; }

.phase-mean-bar .seg:last-child,
.phase-bar .seg:last-child { border-radius: 0 6px 6px 0; }

.seg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.seg-label {
  padding: 0 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.phase-groups {
  display: grid;
  gap: 14px;
}

.phase-group { padding: 16px 18px 12px; }

.phase-group-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.phase-rows {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase-row {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 84px;
  gap: 16px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: default;
}

.phase-row:hover,
.phase-row:focus-visible { background: var(--row-hover); }

.phase-framework {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.phase-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-track {
  display: block;
  height: 16px;
}

.phase-bar { height: 100%; }

.phase-rows:hover .phase-row:not(:hover) .phase-bar { opacity: 0.45; }
.phase-bar { transition: opacity 0.15s ease; }

.phase-total {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.table-well-flush { padding: 0 0 8px; }

/* Tooltip */

.tip {
  position: fixed;
  z-index: 50;
  max-width: 340px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tip-bg);
  color: var(--tip-ink);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.tip.is-visible { opacity: 1; transform: none; }

/* Simple bar lists */

.bar-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.bar-item {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
}

.bar-item:hover { background: var(--row-hover); }

.bar-label {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-value {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Workloads */

.family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.family {
  display: grid;
  gap: 10px;
  padding: 18px;
  align-content: start;
}

.family-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.family-head h3 { font-size: 15px; font-weight: 500; }

.family-runtime {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.family p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.tag {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--chip-active-edge);
  border-radius: 999px;
  background: var(--chip-active-bg);
  color: var(--ink);
  font-size: 12px;
}

.operations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 8px 22px;
}

.operation {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.operations:not(.operations-compact) .operation:nth-last-child(-n + 2) { border-bottom: 0; }

.operation dt { font-weight: 600; font-size: 14px; }

.operation dd {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.operations-compact {
  grid-template-columns: 1fr;
  padding: 0 4px;
}

.operations-compact .operation:last-child { border-bottom: 0; }

.disclosure { padding: 4px 18px; }

.disclosure summary {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

/* Run detail */

.crumb {
  justify-self: start;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.crumb:hover { color: var(--ink); }

.hero h1.run-id {
  font-size: 40px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.run-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-signed .ico { width: 15px; height: 15px; flex-basis: 15px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.spec {
  display: grid;
  gap: 4px;
  padding: 16px;
  align-content: start;
}

.spec-label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 36px;
  padding: 0 8px;
  color: var(--ink-2);
  font-size: 13px;
  text-shadow: 0 1px 8px var(--shader-base);
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsive */

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .hero-bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "latest" "stats"; }
  .hero-bar-title { flex-wrap: wrap; gap: 6px 16px; }
  .hero-bar .lede { white-space: normal; }
  .hero-bar-latest { flex-wrap: wrap; white-space: normal; }
  .split, .card-grid, .card-grid-wide, .family-grid, .operations { grid-template-columns: 1fr; }
  .operations:not(.operations-compact) .operation:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --blur: 22px; }

  .topbar { top: 8px; width: calc(100% - 16px); margin-top: 8px; padding: 0 8px 0 16px; gap: 10px; }
  .topnav a { padding: 8px 9px; font-size: 13px; }
  .topnav a:first-child { display: none; }
  .page, .footer { width: calc(100% - 16px); }
  .page { gap: 14px; margin-top: 14px; }

  .hero { padding: 22px 18px; gap: 20px; }
  .hero h1 { font-size: 48px; }
  .hero h1.run-id { font-size: 22px; }
  .lede { font-size: 15.5px; }
  .panel { padding: 20px 16px; }
  .stat-grid, .stat-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat dd { font-size: 21px; }
  .spec-grid { grid-template-columns: 1fr; }

  .combo {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "framework value" "engine engine" "track track";
    gap: 6px 12px;
    padding: 10px;
  }

  .phase-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name total" "track track";
    gap: 6px 12px;
  }

  .phase-framework { grid-area: name; }
  .phase-track { grid-area: track; }
  .phase-total { grid-area: total; }

  .compare-row, .card-grid-wide .compare-row { grid-template-columns: minmax(0, 124px) minmax(0, 1fr) 64px; gap: 8px; padding: 7px 4px; }
  .bar-item { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 66px; gap: 10px; }
  .table-well { padding: 4px 12px; }
  .file { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: color-mix(in srgb, var(--shader-base) 88%, transparent); }
}
