:root {
  --fp-paper: #0d0d0d;
  --fp-page: #080808;
  --fp-well: #111111;
  --fp-ink: #f4f4f4;
  --fp-muted: #b8b8b8;
  --fp-subtle: #969696;
  --fp-line: #2b2b2b;
  --fp-line-strong: #4a4a4a;
  --fp-blue: #7db8f3;
  --fp-blue-press: #a7cff7;
  --fp-blue-tint: #14263a;
  --fp-success: #108548;
  --fp-success-tint: #ecf4ee;
  --fp-danger: #c02f12;
  --fp-danger-tint: #fcf1ef;
  --fp-warning: #995715;
  --fp-warning-tint: #fdf1dd;
  --fp-radius: 8px;
  --fp-radius-lg: 12px;
  --fp-shadow: 0 2px 8px rgba(24, 23, 29, .08);
  --font-ui: "GitLab Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "GitLab Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-hero-h1: clamp(52px, 5.1vw, 64px);
  --text-product-h1: clamp(40px, 4.4vw, 52px);
  --text-utility-h1: clamp(32px, 3.7vw, 44px);
  --text-article-h1: clamp(36px, 4vw, 48px);
  --text-h1: var(--text-utility-h1);
  --text-h2: clamp(32px, 3.4vw, 40px);
  --text-h3: clamp(22px, 2.4vw, 28px);
  --text-body: clamp(16px, 1.1vw, 18px);
  --text-small: 14px;
  --text-label: 12px;
  --leading-heading: 1.1;
  --leading-body: 1.6;
  --tracking-label: .08em;
  font-family: var(--font-ui);
  color: var(--fp-ink);
  background: var(--fp-page);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
body { margin: 0; background: var(--fp-page); color: var(--fp-ink); font-family: var(--font-ui); font-size: 16px; line-height: var(--leading-body); -webkit-font-smoothing: antialiased; }
.fp-site-header { border-bottom: 1px solid var(--fp-line); background: var(--fp-paper); }
.fp-site-nav { width: min(1120px, calc(100% - clamp(28px, 6vw, 64px))); min-height: 64px; margin-inline: auto; display: flex; align-items: center; gap: 18px; }
.fp-site-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fp-ink); font-weight: 800; text-decoration: none; }
.fp-site-brand svg { width: 22px; height: 22px; }
.fp-site-links { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.fp-site-links a { color: var(--fp-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.fp-site-links a:hover { color: var(--fp-blue); }
.fp-site-links a.site-nav-primary-cta { padding: 8px 12px; border: 1px solid #f4f4f4; background: #f4f4f4; color: #080808; }
.fp-site-links a.site-nav-primary-cta:hover { border-color: #fff; background: #dcdcdc; color: #080808; }
.fp-site-links a.site-nav-primary-cta:focus-visible { outline: 2px solid #8bc3f7; outline-offset: 3px; color: #080808; }
.fp-site-footer { border-top: 1px solid var(--fp-line); background: var(--fp-paper); }
.fp-site-footer-inner { width: min(1120px, calc(100% - clamp(28px, 6vw, 64px))); margin-inline: auto; padding-block: 30px; display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 28px; }
.fp-site-footer-brand { color: var(--fp-ink); font-weight: 800; }
.fp-site-footer-brand p, .fp-site-copyright { margin: 6px 0 0; color: var(--fp-subtle); font-size: 13px; }
.fp-site-footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fp-site-footer-group strong { display: block; margin-bottom: 8px; font-size: 12px; }
.fp-site-footer-group a { display: block; width: fit-content; margin-top: 5px; color: var(--fp-muted); font-size: 13px; text-decoration: none; }
.fp-site-footer-group a:hover { color: var(--fp-blue); }
.fp-site-copyright { width: min(1120px, calc(100% - clamp(28px, 6vw, 64px))); margin: 0 auto; padding: 0 0 24px; }
main { width: min(1040px, calc(100% - clamp(28px, 6vw, 64px))); max-width: 1040px; margin-inline: auto; padding-block: clamp(32px, 6vw, 64px); }
h1, h2, h3 { color: var(--fp-ink); font-family: var(--font-ui); font-weight: 600; line-height: var(--leading-heading); letter-spacing: -.025em; }
h1 { margin: 0 0 10px; font-size: var(--text-utility-h1); }
h2 { margin: 0 0 10px; font-size: var(--text-h2); }
h3 { margin: 0 0 8px; font-size: var(--text-h3); line-height: 1.25; }
p { line-height: 1.6; }
a { color: var(--fp-blue); text-underline-offset: 3px; }
.muted, .sub, .note, .status-note { color: var(--fp-muted); }
.mono, code, pre, dd, .value, .v { font-family: var(--font-mono); }
.links, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.links { margin-block: 12px 20px; }
section, .card, .download, .panel, .results {
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-lg);
  background: var(--fp-paper);
  box-shadow: var(--fp-shadow);
}
main > section, .section, .download, .panel, .results, .card { margin-block: 18px; padding: clamp(18px, 3vw, 26px); }
.grid, .stats, .metric { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats .card, .grid .card { margin: 0; padding: 16px; box-shadow: none; }
.label, .k, dt, th, .sectionTitle {
  color: var(--fp-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.value, .v { margin-top: 4px; color: var(--fp-ink); font-size: clamp(18px, 3vw, 24px); font-weight: 700; }
.button, button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--fp-line-strong);
  border-radius: var(--fp-radius);
  background: var(--fp-paper);
  color: var(--fp-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.button:hover, button:hover { border-color: var(--fp-blue); background: var(--fp-blue-tint); }
.button.primary, button.primary { border-color: var(--fp-blue); background: var(--fp-blue); color: #fff; box-shadow: none; }
.button.primary:hover, button.primary:hover { border-color: var(--fp-blue-press); background: var(--fp-blue-press); }
button:disabled, .button[aria-disabled="true"] { border-color: var(--fp-line); background: var(--fp-well); color: var(--fp-subtle); cursor: not-allowed; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--fp-blue); outline-offset: 3px; }
input, select, textarea {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--fp-line-strong);
  border-radius: var(--fp-radius);
  background: var(--fp-paper);
  color: var(--fp-ink);
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--fp-subtle); opacity: 1; }
.bar { display: flex; gap: 10px; margin-block: 18px; }
.bar input { flex: 1 1 auto; min-width: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); }
table { width: 100%; border-collapse: collapse; background: var(--fp-paper); }
th, td { padding: 12px; border-bottom: 1px solid var(--fp-line); text-align: left; vertical-align: top; }
th { background: var(--fp-well); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--fp-blue-tint) 42%, var(--fp-paper)); }
.pill, .state { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid var(--fp-line); border-radius: 999px; background: var(--fp-well); color: var(--fp-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.state { border-color: var(--fp-success-tint); background: var(--fp-success-tint); color: var(--fp-success); }
.err { color: var(--fp-danger); }
.err.card, .card.err { border-color: color-mix(in srgb, var(--fp-danger) 24%, var(--fp-line)); background: var(--fp-danger-tint); }
pre { max-width: 100%; overflow-x: auto; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); background: var(--fp-well); color: var(--fp-ink); }
details { border-color: var(--fp-line); }
summary { cursor: pointer; color: var(--fp-ink); }
.right { text-align: right; }
@media (max-width: 720px) {
  .fp-site-nav { min-height: 56px; flex-wrap: wrap; padding-block: 10px; }
  .fp-site-links { width: 100%; margin-left: 0; gap: 12px 16px; }
  .fp-site-footer-inner { grid-template-columns: 1fr; }
  main { width: min(100% - 28px, 1040px); padding-block: 28px; }
  main > section, .section, .download, .panel, .results, .card { padding: 18px; }
  .bar { align-items: stretch; flex-direction: column; }
  .bar button, .actions .button { width: 100%; }
  .grid, .stats, .metric { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(28px, 8vw, 34px); }
  h3 { font-size: clamp(20px, 6vw, 24px); }
}
@media (max-width: 375px) {
  .fp-site-footer-groups { grid-template-columns: 1fr 1fr; }
  main { width: calc(100% - 20px); }
  .grid, .stats, .metric { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* The benchmark is a standalone static surface. Override its existing palette
   on the page class only so it aligns with FARPY without affecting other routes. */
.fp-benchmark-page {
  --fp-paper: #0d0d0d;
  --fp-page: #080808;
  --fp-well: #111111;
  --fp-ink: #f4f4f4;
  --fp-muted: #b8b8b8;
  --fp-subtle: #969696;
  --fp-line: #2b2b2b;
  --fp-line-strong: #4a4a4a;
  --fp-blue: #7db8f3;
  --fp-blue-press: #a7cff7;
  --fp-blue-tint: #14263a;
  --fp-shadow: none;
  color-scheme: dark;
}

/* Hard-edge treatment scoped to the standalone benchmark surface. */
.fp-benchmark-page :where(.button, .download, .panel, .results, .table-wrap, .card, pre) {
  border-radius: 0 !important;
}
