

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

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  
  color-scheme: light;
  --c-brand: #6d28d9;
  --c-brand-hover: #5b21b6;
  --c-brand-soft: rgba(139, 92, 246, 0.13);
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f7;
  --c-bg-elv: #ffffff;
  --c-divider: #e2e2e3;
  --c-text-1: #3c3c43;
  --c-text-2: #545560;
  --c-text-3: #6e6e76;
  --c-code-bg: #ffffff;
  --c-mark: #fff3b8;
  
  --c-ok: #1a7f37;
  --c-warn: #9a6700;
  --dg-surface: var(--c-bg);
  --dg-accent-soft: var(--c-brand-soft);
  --dg-text: var(--c-text-1);
  --dg-edge: var(--c-brand);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  --navbar-height: 64px;
  --sidebar-width: 288px;
  --aside-width: 240px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

html.dark {
  --c-brand: #c4b5fd;
  --c-brand-hover: #ddd6fe;
  --c-brand-soft: rgba(139, 92, 246, 0.18);
  --c-bg: #1b1b1f;
  --c-bg-alt: #161618;
  --c-bg-elv: #202127;
  --c-divider: #2e2e32;
  --c-text-1: #dfdfd6;
  --c-text-2: #b5b5ad;
  --c-text-3: #98989f;
  --c-code-bg: #161618;
  --c-mark: #5c4d00;
  --c-ok: #3fb950;
  --c-warn: #d29922;
  --dg-surface: var(--c-bg);
  --dg-accent-soft: var(--c-brand-soft);
  --dg-text: var(--c-text-1);
  --dg-edge: var(--c-brand);
  color-scheme: dark;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 16px);
}

::selection {
  background: rgba(139, 92, 246, 0.22);
}
html.dark ::selection {
  background: rgba(139, 92, 246, 0.45);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-1);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--c-brand);
  color: #fff;
  border-radius: 6px;
  transition: top 0.15s;
}
html.dark .skip-link {
  color: #1b1b1f;
}
.skip-link:focus {
  top: 12px;
}

a {
  color: var(--c-brand);
  text-decoration: none;
}
a:hover {
  color: var(--c-brand-hover);
  text-decoration: underline;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--navbar-height);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-divider);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--c-text-1);
  white-space: nowrap;
}
.site-title:hover {
  text-decoration: none;
  color: var(--c-text-1);
}
.site-logo {
  display: block;
  width: 26px;
  height: 26px;
}
.navbar-spacer {
  flex: 1;
}
.top-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-1);
  border-radius: 8px;
}
.top-nav a:hover {
  color: var(--c-brand);
  text-decoration: none;
}
.top-nav a.nav-github {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
}
.top-nav a.nav-github svg {
  display: block;
}

.menu-toggle,
.theme-toggle,
.search-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--c-text-1);
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
}
.menu-toggle:hover,
.theme-toggle:hover {
  background: var(--c-bg-alt);
}
.menu-toggle {
  display: none;
}

.search-button {
  border: 1px solid var(--c-divider);
  background: var(--c-bg-alt);
  color: var(--c-text-2);
  font-size: 13px;
  padding: 5px 10px;
}
.search-button:hover {
  border-color: var(--c-brand);
}
.search-key {
  font-family: var(--font-body);
  font-size: 11px;
  border: 1px solid var(--c-divider);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--c-bg);
  color: var(--c-text-3);
}

.theme-toggle .icon-moon,
html.dark .theme-toggle .icon-sun {
  display: none;
}
html.dark .theme-toggle .icon-moon {
  display: block;
}

.home-footer p.footer-disclaimer {
  max-width: 640px;
  margin: 6px auto;
  font-size: 13px;
  color: var(--c-text-3);
}
.footer-badge {
  font-size: 12.5px;
  color: var(--c-text-3);
}
.footer-badge code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-2);
  background: var(--c-brand-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

.home {
  padding-top: var(--navbar-height);
  
  overflow-x: clip;
}
.hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 88px 24px 64px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px -240px 0;
  z-index: -1;
  background:
    radial-gradient(560px 320px at 30% 20%, rgba(168, 85, 247, 0.14), transparent 70%),
    radial-gradient(640px 360px at 72% 62%, rgba(109, 40, 217, 0.12), transparent 70%);
  pointer-events: none;
}
html.dark .hero::before {
  background:
    radial-gradient(560px 320px at 30% 20%, rgba(139, 92, 246, 0.17), transparent 70%),
    radial-gradient(640px 360px at 72% 62%, rgba(91, 33, 182, 0.22), transparent 70%);
}
.hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(124, 58, 237, 0.35));
}
.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #7c3aed 20%, #a855f7 55%, #6d28d9 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
html.dark .hero-name {
  background-image: linear-gradient(115deg, #c4b5fd 15%, #e9d5ff 50%, #a78bfa 90%);
}
.hero-text {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-tagline {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--c-text-2);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.action {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 600;
}
.action:hover {
  text-decoration: none;
}
.action-brand {
  background: linear-gradient(115deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35);
}
.action-brand:hover {
  background: linear-gradient(115deg, #6d28d9, #5b21b6);
  color: #fff;
}
.action-alt {
  background: transparent;
  border: 1px solid var(--c-divider);
  color: var(--c-text-1);
}
.action-alt:hover {
  border-color: var(--c-brand);
  color: var(--c-text-1);
}

.band {
  position: relative;
  padding: 72px 24px;
  background: #4c1d95 url("./hero-rays.svg") center / cover no-repeat;
}

.band .demo-scenario-note {
  max-width: 760px;
  margin: 12px auto 0;
  color: rgba(233, 213, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
.band .demo-scenario-note[hidden] {
  display: none;
}
.code-panel {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(233, 213, 255, 0.28);
  border-radius: 14px;
  background: #161022;
  box-shadow: 0 32px 80px rgba(23, 8, 55, 0.55);
  overflow: hidden;
}
.code-panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(233, 213, 255, 0.14);
}
.code-panel-dots {
  display: inline-flex;
  gap: 6px;
}
.code-panel-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(233, 213, 255, 0.22);
}
.code-panel-file {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #b7aed4;
}
.code-panel pre {
  margin: 0;
  padding: 20px 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #d6d3e1;
}

.code-panel .shiki,
.code-panel .shiki span {
  color: var(--shiki-dark);
  background: transparent !important;
}
.code-panel .shiki code {
  counter-reset: hero-line;
  display: block;
}
.code-panel .shiki .line {
  counter-increment: hero-line;
}
.code-panel .shiki .line::before {
  content: counter(hero-line);
  display: inline-block;
  width: 2.2em;
  margin-right: 1.1em;
  text-align: right;
  color: #8f88ab;
  user-select: none;
}
.code-panel-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid rgba(233, 213, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #b7aed4;
}
.demo-times {
  color: #8f88ab;
}
.hp-ok {
  color: #6ee7a0;
}
#demo-status[data-tone="error"] {
  color: #ff9d94;
}
#demo-status[data-tone="warning"] {
  color: #e3b341;
}

.code-panel-hint {
  margin-left: auto;
  font-size: 12px;
  color: #8f88ab;
  
  flex: 0 999999 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-panel-actions {
  display: inline-flex;
  gap: 8px;
}
.code-panel-actions[hidden] {
  display: none;
}
.demo-button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
}
.demo-button:hover {
  background: rgba(139, 92, 246, 0.4);
}
.demo-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.code-panel-editor {
  position: relative;
  overflow: hidden;
}
.demo-diags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.demo-diag {
  position: absolute;
  border-bottom: 2px solid;
  border-radius: 2px;
}
.demo-diag.error {
  background: rgba(248, 81, 73, 0.16);
  border-color: #f85149;
}
.demo-diag.warning {
  background: rgba(210, 153, 34, 0.16);
  border-color: #d29922;
}
.demo-active pre {
  overflow: hidden;
}
.demo-input {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  border: none;
  background: transparent;
  
  color: #e1e4e8;
  -webkit-text-fill-color: transparent;
  caret-color: #e1e4e8;
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  resize: none;
  outline: none;
  tab-size: 2;
}
.demo-input::selection {
  background: rgba(139, 92, 246, 0.45);
}
.demo-input:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.6);
  outline-offset: -2px;
}
.demo-tooltip {
  position: fixed;
  z-index: 60;
  max-width: 380px;
  padding: 8px 12px;
  border: 1px solid rgba(233, 213, 255, 0.3);
  border-radius: 8px;
  background: #0d0819;
  color: #e1e4e8;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.demo-tooltip-rule {
  display: block;
  color: #b7aed4;
}
.demo-tooltip-rule code {
  font-family: var(--font-mono);
  color: #f0abfc;
}
.demo-tooltip-message {
  display: block;
  margin-top: 2px;
}

.features {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  border: 1px solid var(--c-divider);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color 0.2s;
}
.feature:hover {
  border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-divider));
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-divider);
  border-radius: 10px;
  color: var(--c-brand);
  background: var(--c-brand-soft);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
}
.feature-details {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-2);
}

.home-bench {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 8px;
}
.home-bench h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  text-align: center;
}
.home-bench > p {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 14.5px;
  color: var(--c-text-2);
}
.home-bench > p a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-bench > p a:hover {
  color: var(--c-brand-hover);
}
p.home-bench-link {
  margin: 26px auto 4px;
  text-align: center;
  font-size: 14px;
}
.home-upstream {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.home-upstream h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  text-align: center;
}
.home-upstream > p {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 14.5px;
  color: var(--c-text-2);
}
.home-upstream > p a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-upstream > p a:hover {
  color: var(--c-brand-hover);
}
p.home-upstream-link {
  margin: 0 auto 4px;
  text-align: center;
  font-size: 14px;
}
.bench-row {
  cursor: default;
  outline: none;
}
.bench-row .bench-hit {
  fill: transparent;
}
.bench-row:hover .bench-hit,
.bench-row:focus-visible .bench-hit {
  fill: var(--c-brand-soft);
}
.bench-row:focus-visible .bench-hit {
  stroke: var(--c-brand);
  stroke-width: 1.5;
}
.chart-tooltip-note {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--c-divider);
}
.chart-tooltip-samples {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--c-text-3);
}
.chart-tooltip {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid var(--c-divider);
  border-radius: 8px;
  background: var(--c-bg-elv);
  color: var(--c-text-1);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.chart-tooltip[hidden] {
  display: none;
}
.chart-tooltip strong {
  font-family: var(--font-mono);
  font-size: 12px;
}
.tsrx-hover {
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 3px;
  border-radius: 3px;
  cursor: help;
}
.tsrx-hover:hover,
.tsrx-hover:focus-visible {
  background: rgba(139, 92, 246, 0.22);
}
.chart-tooltip span {
  color: var(--c-text-2);
}

.chart-tooltip .chart-tooltip-key {
  color: var(--c-text-3);
}
.chart-tooltip .chart-tooltip-value {
  color: var(--c-text-1);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.chart-tooltip .chart-tooltip-pass {
  color: #15803d;
  font-weight: 600;
}
.chart-tooltip .chart-tooltip-fail {
  color: #b91c1c;
  font-weight: 600;
}
html.dark .chart-tooltip .chart-tooltip-pass {
  color: #4ade80;
}
html.dark .chart-tooltip .chart-tooltip-fail {
  color: #f87171;
}

.demo-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #b7aed4;
}
.demo-check[hidden] {
  display: none;
}

.demo-completions {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 190px;
  background: #0d0819;
  border: 1px solid rgba(233, 213, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
}
.demo-completions[hidden] {
  display: none;
}
.demo-completions li {
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: #d6d3e1;
}
.demo-completions li[aria-selected="true"] {
  background: rgba(139, 92, 246, 0.35);
}
.demo-completions code {
  font-family: var(--font-mono);
  color: #f0abfc;
}

.demo-diff {
  border-top: 1px solid rgba(233, 213, 255, 0.14);
  background: #100b1c;
}
.demo-diff[hidden] {
  display: none;
}
.demo-diff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: #e1e4e8;
  font-size: 13px;
}
.demo-diff-actions {
  display: inline-flex;
  gap: 8px;
}
.demo-diff-body {
  max-height: 280px;
  overflow: auto;
  padding: 4px 0 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.demo-diff-line {
  padding: 0 16px;
  white-space: pre;
  color: #b7aed4;
}
.demo-diff-line span {
  display: inline-block;
  width: 1.4em;
  user-select: none;
}
.demo-diff-line.add {
  color: #7ee2a8;
  background: rgba(46, 160, 67, 0.15);
}
.demo-diff-line.del {
  color: #ffa198;
  background: rgba(248, 81, 73, 0.15);
}

.home-footer {
  border-top: 1px solid var(--c-divider);
  padding: 24px 24px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text-3);
}
.home-footer p.footer-links {
  font-size: 13.5px;
}
.home-footer p.footer-links a {
  color: var(--c-text-2);
}
.home-footer p.footer-links a:hover {
  color: var(--c-brand);
}
.home-footer p {
  margin: 4px 0;
}

.search-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: 80px auto auto;
  padding: 0;
  border: 1px solid var(--c-divider);
  border-radius: 10px;
  background: var(--c-bg-elv);
  color: var(--c-text-1);
  box-shadow: var(--shadow);
}
.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}
.search-panel {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 560px);
}
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--c-divider);
}
#search-input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 6px 8px;
}
.search-close {
  font-size: 11px;
  font-family: var(--font-body);
  border: 1px solid var(--c-divider);
  border-radius: 4px;
  background: var(--c-bg-alt);
  color: var(--c-text-3);
  padding: 3px 7px;
  cursor: pointer;
}
.search-results {
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
}
.search-results li {
  border-radius: 8px;
  cursor: pointer;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  color: inherit;
  border-radius: 8px;
}
.search-results a:hover {
  text-decoration: none;
}
.search-results a[aria-selected="true"] {
  background: var(--c-brand);
  color: #fff;
}
html.dark .search-results a[aria-selected="true"] {
  color: #1b1b1f;
}
.search-result-page {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.search-result-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.search-result-text {
  display: block;
  font-size: 12.5px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-results mark {
  background: var(--c-mark);
  color: inherit;
  border-radius: 2px;
}
.search-results a[aria-selected="true"] mark {
  background: rgba(255, 255, 255, 0.3);
}
.search-status {
  margin: 0;
  padding: 8px 16px 12px;
  font-size: 13px;
  color: var(--c-text-3);
}

@media (max-width: 1279px) {
  .aside {
    display: none;
  }
}

@media (max-width: 959px) {
  .menu-toggle {
    display: inline-flex;
  }
  .top-nav {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    z-index: 40;
    height: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    border-right: 1px solid var(--c-divider);
    background: var(--c-bg);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: var(--navbar-height) 0 0 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.4);
  }
  .sidebar-backdrop[hidden] {
    display: none;
  }
  .content {
    padding: 32px 24px 72px;
  }
}

@media (max-width: 639px) {
  .search-button-text,
  .search-key {
    display: none;
  }
  .search-button {
    border: none;
    background: none;
    padding: 6px;
  }
  .code-panel-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 10px;
  }
  .code-panel-file {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .code-panel-hint {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    justify-self: end;
  }
  .code-panel-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pager {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.home-page .menu-toggle {
  display: none;
}

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

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}

.home-bench-sub {
  margin: 44px 0 14px;
  font-family: var(--font-display);
  font-size: 16px;
  text-align: center;
}
p.home-bench-caption {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 12px;
  color: var(--c-text-3);
}

.comp-chart {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comp-row {
  display: block;
  padding: 8px 12px 11px;
  border-radius: 10px;
  cursor: default;
}

.comp-row:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}
.comp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.comp-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-2);
}
.comp-row.comp-ours .comp-name {
  color: var(--c-text-1);
}
.comp-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-1);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.comp-track {
  display: block;
  position: relative;
  height: 26px;
  margin-top: 6px;
  border-radius: 13px;
  overflow: hidden;
}

.comp-track::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
html:not(.dark) .comp-track::after {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.comp-chart .comp-row[data-key='oxlint'] .comp-fill,
.comp-chart .comp-row[data-key='oxcTsrx'] .comp-fill {
  background: linear-gradient(
    90deg,
    #fffbe8 0%,
    #ffe066 12%,
    #ffa726 32%,
    #ff7a1a 55%,
    #ff3a5e 78%,
    #e912a8 100%
  );
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 100%);
}

.comp-chart .comp-row[data-key='oxcTsrxMixed'] .comp-fill {
  opacity: 1;
  background: linear-gradient(
    90deg,
    #e0f3f8 0%,
    #90d9e2 12%,
    #3eb3c4 32%,
    #338acc 55%,
    #305cb3 78%,
    #342e79 100%
  );
  mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 100%);
}
.comp-track > canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  border-radius: 13px;
}

html.dark .comp-track::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.comp-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 13px;
  min-width: 4px;
}

.comp-fill.comp-other {
  background-color: #a2a2a2;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.14) 0 5px,
    rgba(0, 0, 0, 0.05) 5px 10px
  );
}
html.dark .comp-fill.comp-other {
  background-color: #737373;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0 5px,
    rgba(0, 0, 0, 0.12) 5px 10px
  );
}
.comp-fill.comp-ours {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
}
html.dark .comp-fill.comp-ours {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}
.comp-fill.comp-mixed {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  opacity: 0.55;
}
html.dark .comp-fill.comp-mixed {
  background: linear-gradient(90deg, #a78bfa, #c4b5fd);
  opacity: 0.55;
}
.bench-fine {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 12.5px;
  color: var(--c-text-3);
  text-align: center;
}
.bench-fine summary {
  cursor: pointer;
  display: inline-block;
  list-style: none;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.bench-fine summary::-webkit-details-marker {
  display: none;
}
.bench-fine summary::before {
  content: "▸ ";
}
.bench-fine[open] summary::before {
  content: "▾ ";
}
.bench-fine summary:hover {
  color: var(--c-text-2);
}
.bench-fine p {
  margin: 8px 0 0;
  text-align: left;
}

.bench-fine ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
}
.bench-fine li strong {
  color: var(--c-text-2);
  font-weight: 600;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.gate-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px;
  border: 1px solid var(--c-divider);
  border-radius: 12px;
  background: var(--c-bg-elv);
  cursor: default;
}
.gate-card:hover,
.gate-card:focus-visible {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
}
.gate-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-1);
  font-variant-numeric: tabular-nums;
}
.gate-label {
  font-size: 12.5px;
  color: var(--c-text-2);
}

.gate-meter {
  display: block;
  position: relative;
  height: 10px;
  margin-top: auto;
  border-radius: 5px;
  overflow: hidden;
}

.gate-meter::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
html:not(.dark) .gate-meter::after {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
html.dark .gate-meter::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.gate-meter-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 5px;
  max-width: 100%;
  min-width: 6px;
  background-repeat: no-repeat;
  background-size: calc(10000% / max(var(--gate-pct, 100), 1)) 100%;
  background-image: linear-gradient(
    90deg,
    #ffc400 0%,
    #ffe066 12%,
    #ffa726 32%,
    #ff7a1a 55%,
    #ff3d14 78%,
    #f2400f 100%
  );
}
html.dark .gate-meter-fill {
  background-image: linear-gradient(
    90deg,
    #fffbe8 0%,
    #ffe066 12%,
    #ffa726 32%,
    #ff7a1a 55%,
    #ff3a5e 78%,
    #e912a8 100%
  );
}

.gate-card .gate-meter-fill.fail {
  background-image: none;
  background-color: #b91c1c;
}
html.dark .gate-card .gate-meter-fill.fail {
  background-color: #f87171;
}
.gate-budget {
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}

.gate-aside {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--c-text-3);
}

.gate-status {
  margin-right: 5px;
  font-weight: 700;
  color: #b91c1c;
}
html.dark .gate-status {
  color: #f87171;
}
@media (max-width: 720px) {
  .gate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .gate-grid {
    grid-template-columns: 1fr;
  }
  .comp-head {
    flex-wrap: wrap;
  }
}

.demo-completions li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.demo-completion-kind {
  margin-left: auto;
  font-size: 11px;
  color: #8f88ab;
}

.pg-scenario-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-examples-bar {
  display: block;
}
.pg-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pg-examples-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-right: 4px;
}
.pg-examples-bar .pg-note {
  margin: 8px 0 0;
}

@media (max-width: 767px) {
  .code-panel-bar {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .code-panel-actions {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .code-panel-hint {
    order: 5;
    flex-basis: 100%;
  }
}

.code-panel-actions .demo-button {
  white-space: nowrap;
}
.code-panel-file {
  white-space: nowrap;
}
.code-panel-status {
  row-gap: 2px;
  line-height: 1.5;
}
