/*!
 * Styling references: Tailwind CSS v3 color values and shadcn/ui theme-token
 * conventions. These notices apply to that styling material, not to Ravel's
 * original frontend as a whole.
 * https://github.com/tailwindlabs/tailwindcss/blob/v3.4.17/LICENSE
 * https://github.com/shadcn-ui/ui/blob/main/LICENSE.md
 *
 * MIT License
 *
 * Copyright (c) Tailwind Labs, Inc.
 * Copyright (c) 2023 shadcn
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --background-subtle: #fafafa;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --secondary-foreground: #52525b;
  --control-foreground: #3f3f46;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --primary: #18181b;
  --primary-hover: #27272a;
  --primary-foreground: #fafafa;
  --accent: #f4f4f5;
  --ring: #a1a1aa;
  --selection: #e4e4e7;
  --header-background: rgb(255 255 255 / 96%);
  --theme-active: #ffffff;
  --success: #166534;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --success-border-strong: #86efac;
  --danger: #991b1b;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-border-strong: #fca5a5;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --info: #1e40af;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --radius: 6px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --content: 1440px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111113;
  --background-subtle: #18181b;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --secondary-foreground: #d4d4d8;
  --control-foreground: #e4e4e7;
  --border: #27272a;
  --border-strong: #52525b;
  --primary: #fafafa;
  --primary-hover: #e4e4e7;
  --primary-foreground: #18181b;
  --accent: #27272a;
  --ring: #71717a;
  --selection: #3f3f46;
  --header-background: rgb(9 9 11 / 94%);
  --theme-active: #3f3f46;
  --success: #86efac;
  --success-bg: #052e16;
  --success-border: #166534;
  --success-border-strong: #22c55e;
  --danger: #fca5a5;
  --danger-bg: #450a0a;
  --danger-border: #991b1b;
  --danger-border-strong: #ef4444;
  --warning: #fcd34d;
  --warning-bg: #422006;
  --warning-border: #92400e;
  --info: #93c5fd;
  --info-bg: #172554;
  --info-border: #1e40af;
}

* { box-sizing: border-box; }
html { background: var(--background); }
body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
}
::selection { background: var(--selection); }
a { color: var(--primary); text-decoration-color: var(--ring); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
button, input, select, summary { font: inherit; }
button, input, select {
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  padding: 6px 9px;
}
button {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: var(--primary-hover); }
input::placeholder { color: var(--ring); }
select { padding-right: 28px; }
label {
  display: grid;
  gap: 5px;
  color: var(--control-foreground);
  font-size: 12px;
  font-weight: 600;
}
code, .mono { font-family: var(--mono); }
code { font-size: .93em; }
pre { margin: 0; white-space: pre-wrap; }

.shell, main {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
  backdrop-filter: blur(10px);
}
.nav-shell {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .18);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(9, 9, 11, .2);
}
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.beta-badge {
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.beta-badge:hover { background: var(--accent); color: var(--foreground); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav a {
  border-radius: 5px;
  color: var(--secondary-foreground);
  padding: 6px 9px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--accent); color: var(--foreground); }
.theme-switcher {
  display: inline-flex;
  flex: none;
  gap: 2px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  padding: 2px;
}
.theme-option {
  width: 28px;
  height: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 0;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.theme-option:hover {
  background: var(--accent);
  color: var(--foreground);
}
.theme-option[aria-pressed="true"] {
  background: var(--theme-active);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgb(0 0 0 / 16%);
}
.theme-option svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}
main {
  flex: 1 0 auto;
  padding-block: 24px 64px;
}
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
}
.footer-shell {
  width: min(100%, var(--content));
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  padding: 16px 24px 28px;
}
.footer-identity {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer-identity a {
  color: var(--foreground);
  font-weight: 650;
  text-decoration: none;
}
.footer-disclaimer { color: var(--muted-foreground); }
.footer-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-links a {
  border-radius: var(--radius);
  color: var(--muted-foreground);
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
}
.footer-links a:hover { background: var(--accent); color: var(--foreground); }

.info-page { max-width: 900px; }
.info-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.info-header .lede {
  max-width: 760px;
  margin-top: 8px;
}
.info-sections { display: grid; }
.info-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-block: 20px;
}
.info-section + .info-section { margin-top: 0; }
.info-section:last-child { border-bottom: 0; }
.info-section p {
  max-width: 760px;
  color: var(--muted-foreground);
}
.info-section p + p { margin-top: 8px; }

h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; color: var(--foreground); line-height: 1.25; }
h1 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 650; }
p { margin: 0; }
.eyebrow {
  margin-bottom: 5px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lede { margin-top: 5px; color: var(--muted-foreground); font-size: 13px; }
.muted { color: var(--muted-foreground); }
.small { font-size: 11px; }
.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;
}

.page-header {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
}
.home-header { align-items: center; }
.compact-header { min-height: 0; }
.header-actions, .row-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.header-actions { position: relative; }
.header-picker { position: static; }
.header-picker > summary { cursor: pointer; list-style: none; }
.header-picker > summary::-webkit-details-marker { display: none; }
.header-picker[open] > summary { background: var(--muted); }
.header-picker-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: min(320px, calc(100vw - 28px));
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
  padding: 10px;
}
.header-picker-panel label { display: grid; gap: 4px; font-weight: 600; }
.header-picker-panel select, .header-picker-panel button { width: 100%; min-height: 34px; }
.button, .table-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover, .table-action:hover { background: var(--accent); }
.button.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.button.primary:hover { background: var(--primary-hover); }
.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted-foreground);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.breadcrumbs a { color: var(--muted-foreground); }
.context-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted-foreground); font-size: 12px; }
.path-title { max-width: none; margin-top: 8px; font-size: 18px; font-weight: 600; }

section + section, section + .panel, .panel + section, details + section { margin-top: 28px; }
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.panel-heading, .section-heading, .section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.panel-heading { border-bottom: 1px solid var(--border); padding: 12px 14px; }
.panel-heading p, .section-heading p, .section-title p { margin-top: 3px; color: var(--muted-foreground); font-size: 12px; }
.panel-heading > span, .section-heading > span, .section-title > span { color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.section-heading, .section-title { margin-bottom: 10px; }

.control-bar, .search-form, .form-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 10px;
  margin: 0 0 14px;
}
.panel .control-bar { border: 0; border-radius: 0 0 var(--radius) var(--radius); margin: 0; }
.control-bar label, .search-form label, .form-row label { min-width: 150px; flex: 1; }
.control-bar label select, .control-bar label input, .search-form label select, .search-form label input, .form-row label select, .form-row label input { width: 100%; }
.control-bar .grow, .search-form .grow { flex: 2; }
.control-bar > a { min-height: 34px; display: inline-flex; align-items: center; padding-inline: 6px; }
.compare-form label { min-width: min(100%, 260px); }
.report-controls label { min-width: 140px; }
.control-bar .noise-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 34px;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  padding: 6px 9px;
  cursor: pointer;
}
.control-bar .noise-toggle input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}
.noise-toggle span { white-space: nowrap; }
.compact-controls {
  display: grid;
  width: fit-content;
  max-width: 100%;
  align-items: end;
  justify-content: start;
  gap: 8px;
  margin-bottom: 0;
  border-color: var(--border);
  background: var(--background);
  padding: 8px;
}
.compact-controls label { width: auto; min-width: 0; max-width: none; }
.compact-controls label input, .compact-controls label select { min-width: 0; max-width: 100%; }
.compact-controls input:not([type="hidden"]), .compact-controls select, .compact-controls button { height: 34px; min-height: 34px; }
.compact-controls > a { justify-content: center; }
section[aria-labelledby="binary-records-title"] .compact-controls {
  grid-template-columns: minmax(280px, 360px) minmax(160px, 220px) auto auto;
  margin-bottom: 8px;
}

.coverage-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
  border-block: 1px solid var(--border);
  background: var(--background-subtle);
  padding: 9px 11px;
  color: var(--muted-foreground);
  font-size: 12px;
}
.coverage-note strong { color: var(--foreground); }
.empty-state, .alert {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-subtle);
  padding: 14px;
}
.empty-state p { margin-top: 4px; color: var(--muted-foreground); }
.alert { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.alert span { color: var(--muted-foreground); }
.alert { border-color: var(--warning-border); background: var(--warning-bg); }
.alert strong { color: var(--warning); }
.source-choice-alert { align-items: center; justify-content: space-between; }
.source-choice-copy { display: grid; min-width: 0; gap: 3px; }
.source-choice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.source-choice-action { min-height: 32px; gap: 5px; background: var(--background); font-weight: 600; white-space: nowrap; }
.source-choice-action code { color: inherit; font-size: 11px; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--background-subtle);
  color: var(--secondary-foreground);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.sortable-table th {
  position: relative;
  height: 34px;
  padding: 0;
  vertical-align: middle;
}
.sortable-table .column-header {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 7px 10px;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}
.sortable-table .column-header:hover { background: var(--accent); color: var(--foreground); }
.sortable-table th[aria-sort="none"] .column-header::after {
  content: "↕";
  margin-left: auto;
  color: var(--ring);
  font-size: 10px;
  font-weight: 500;
}
.sortable-table .sort-indicator { margin-left: auto; font-size: 9px; }
.sortable-table .filtered-column {
  background: var(--muted);
  box-shadow: inset 0 -2px 0 var(--foreground);
}
.sortable-table .filtered-column .column-label::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--foreground);
  vertical-align: 1px;
}
.sortable-table .column-filter:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 34px;
  min-height: 34px;
  border-color: var(--ring);
  border-radius: 0;
  background: var(--background);
  padding: 7px 10px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.sortable-table th.numeric .column-header { justify-content: flex-end; text-align: right; }
.sortable-table th.numeric .column-filter { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover, .selected-row { background: var(--background-subtle); }
td { overflow-wrap: anywhere; }
.column-filter-empty td { color: var(--muted-foreground); text-align: center; }
.column-filter-empty:hover { background: transparent; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong-link { font-weight: 600; }
.path-link { font-size: 12px; }
.build-cell strong, .build-cell code, .build-cell small { display: block; white-space: nowrap; }
.build-cell code, .build-cell small { margin-top: 1px; color: var(--muted-foreground); font-size: 10px; }
.tag, .status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--background-subtle);
  color: var(--control-foreground);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.status.surface { border-color: var(--info-border); background: var(--info-bg); color: var(--info); }
.status.content, .status.metadata, .status.updated { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.status.added, .status.introduced { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.status.removed { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.symbol-presentation { display: grid; gap: 2px; min-width: 180px; }
.demangled-name { color: var(--foreground); overflow-wrap: anywhere; }
.raw-symbol { display: block; color: var(--muted-foreground); font-size: 10px; overflow-wrap: anywhere; }
.digest { word-break: break-all; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pagination-pages { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination-direction, .pagination-page {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--secondary-foreground);
  padding: 5px 9px;
  text-decoration: none;
}
.pagination-page { min-width: 32px; padding-inline: 7px; }
a.pagination-direction:hover, a.pagination-page:hover { border-color: var(--border-strong); background: var(--muted); color: var(--foreground); }
.pagination-page.active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); font-weight: 650; }
.pagination-gap { min-width: 20px; color: var(--muted-foreground); text-align: center; }


.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.coverage-grid > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--border);
  padding: 9px 11px;
}
.coverage-grid > div:last-child { border-right: 0; }
.coverage-grid span, .coverage-grid small { color: var(--muted-foreground); }
.coverage-grid strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.coverage-grid .text strong { font-size: 13px; }

.browse-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.filter-sidebar {
  position: sticky;
  top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-subtle);
}
.filter-sidebar form { display: grid; gap: 10px; padding: 12px; }
.filter-sidebar form + form { border-top: 1px solid var(--border); }
.form-help { color: var(--muted-foreground); font-size: 11px; font-weight: 400; }
.filter-sidebar form h2 { margin-bottom: 2px; }
.filter-sidebar form input, .filter-sidebar form select { width: 100%; background: var(--background); }
.clear-link { text-align: center; font-size: 12px; }
.sidebar-meta { display: grid; gap: 3px; border-top: 1px solid var(--border); padding: 10px 12px; color: var(--muted-foreground); font-size: 11px; }
.sidebar-meta strong { color: var(--foreground); }
.browse-results { min-width: 0; }
.browse-table { min-width: 900px; }
.result-subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 7px; }
.result-subheading span { color: var(--muted-foreground); font-size: 11px; font-weight: 500; }
.second-result-heading { margin-top: 24px; }

.metadata-disclosure, .aggregate-disclosure {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}
summary {
  width: fit-content;
  cursor: pointer;
  color: var(--control-foreground);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 600;
}
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.metadata-grid > div {
  min-width: 0;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
}
.metadata-grid > div:nth-child(4n) { border-right: 0; }
.metadata-grid .wide { grid-column: span 2; }
.metadata-grid span {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.metadata-grid strong { font-size: 11px; overflow-wrap: anywhere; }
.record-table { min-width: 850px; }

.comparison-page-header { padding-bottom: 12px; }
.entitlement-method {
  margin: 0 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background-subtle);
  color: var(--muted-foreground);
  font-size: 12px;
}
.entitlement-method summary {
  cursor: pointer;
  color: var(--control-foreground);
  font-weight: 600;
  padding: 8px 10px;
}
.entitlement-method[open] summary { border-bottom: 1px solid var(--border); }
.entitlement-method > p, .entitlement-method > div { margin: 0; padding: 9px 11px; }
.entitlement-method > div { display: grid; gap: 5px; }
.entitlement-method > div p { margin: 0; }
.entitlement-method strong { color: var(--foreground); }
.entitlement-empty { margin: 24px 0 30px; }
.comparison-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 32px minmax(180px, 1fr) minmax(160px, .7fr);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.comparison-strip > div { min-width: 0; display: grid; gap: 1px; padding: 10px 12px; }
.comparison-strip > div + div { border-left: 1px solid var(--border); }
.comparison-strip span { color: var(--muted-foreground); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.comparison-strip strong { font-size: 14px; }
.comparison-strip small { color: var(--muted-foreground); }
.comparison-strip .comparison-arrow { place-items: center; padding-inline: 5px; color: var(--muted-foreground); }
.comparison-total { background: var(--background-subtle); }
.status-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 0 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-right: 1px solid var(--border);
  color: var(--secondary-foreground);
  padding: 8px 10px;
  text-decoration: none;
}
.summary-stat:last-child { border-right: 0; }
.summary-stat:hover, .summary-stat.active { background: var(--muted); color: var(--foreground); }
.summary-stat.active { box-shadow: inset 0 -2px 0 var(--foreground); }
.summary-stat strong { color: var(--foreground); font-variant-numeric: tabular-nums; }
.summary-stat.added strong { color: var(--success); }
.summary-stat.removed strong { color: var(--danger); }
.entitlement-diff-section { margin: 20px 0 30px; }
.entitlement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--background-subtle);
}
.entitlement-summary > div { display: grid; gap: 2px; border-right: 1px solid var(--border); padding: 9px 11px; }
.entitlement-summary > div:last-child { border-right: 0; }
.entitlement-summary span, .entitlement-summary small { color: var(--muted-foreground); }
.entitlement-summary strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.entitlement-summary .introduced strong { color: var(--success); }
.entitlement-summary .removed strong { color: var(--danger); }
.entitlement-summary .changed strong { color: var(--warning); }
.entitlement-diff-controls { margin-bottom: 10px; }
.entitlement-diff-table { min-width: 940px; }
.entitlement-key-cell { min-width: 260px; vertical-align: top; }
.entitlement-key-cell > code, .entitlement-key-line code { overflow-wrap: anywhere; }
.entitlement-evidence-cell { min-width: 300px; vertical-align: top; }
.entitlement-key-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.entitlement-key-line code { min-width: 160px; flex: 1; }
.entitlement-cell-meta { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 10px; }
.evidence-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted-foreground); font-size: 10px; }
.entitlement-holder { display: grid; gap: 3px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.entitlement-holder > div { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.entitlement-holder a { min-width: 0; overflow-wrap: anywhere; }
.entitlement-holder small { color: var(--muted-foreground); }
.entitlement-holder > code { color: var(--control-foreground); overflow-wrap: anywhere; white-space: pre-wrap; }
.entitlement-side-empty { display: block; margin-top: 8px; font-size: 11px; }
.component-table { min-width: 1280px; }
.component-table td { font-size: 11px; }
.path-cell { min-width: 280px; max-width: 460px; }
.row-links { margin-top: 3px; }
.row-links a { color: var(--muted-foreground); font-size: 10px; }
.component-table .numeric { display: table-cell; }
.component-table .numeric span, .component-table .numeric small { display: block; }
.component-table .numeric small { color: var(--muted-foreground); margin-top: 2px; }
.table-action { min-height: 26px; padding: 3px 7px; white-space: nowrap; }
.metric-list { display: flex; flex-wrap: wrap; gap: 3px 8px; min-width: 180px; color: var(--muted-foreground); font-size: 10px; }
.metric-list b { color: var(--control-foreground); font-weight: 600; }
.aggregate-disclosure { margin-top: 14px; margin-bottom: 0; }
.aggregate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--border); padding: 12px; }
.binary-diff-header { margin-bottom: 24px; }
.comparison-notices { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.comparison-notice { position: relative; display: inline-flex; border-radius: 999px; }
.comparison-notice-detail {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max-content;
  max-width: min(560px, calc(100vw - 48px));
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 5px 9px;
  visibility: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  box-shadow: 0 8px 24px rgba(24, 24, 27, .14);
  padding: 9px 11px;
  opacity: 0;
  pointer-events: none;
}
.comparison-notice-detail > span { color: var(--muted-foreground); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.comparison-notice-detail code { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.comparison-notice:hover .comparison-notice-detail, .comparison-notice:focus .comparison-notice-detail { visibility: visible; opacity: 1; }
.compact-table { margin-bottom: 12px; }
.record-change-table { min-width: 1120px; }
.record-change-table tr.added td:first-child { box-shadow: inset 2px 0 0 #22c55e; }
.record-change-table tr.removed td:first-child { box-shadow: inset 2px 0 0 #ef4444; }
.record-change-table tr.updated td:first-child { box-shadow: inset 2px 0 0 #f59e0b; }
.change-sign { margin-right: 3px; }
.update-cell { min-width: 330px; vertical-align: middle; }
.field-change-list { display: grid; gap: 5px; }
.field-change {
  display: grid;
  grid-template-columns: 82px minmax(72px, auto) 14px minmax(72px, auto);
  align-items: center;
  justify-content: start;
  gap: 6px;
}
.field-change.unchanged { grid-template-columns: 82px minmax(72px, auto); }
.field-change-label { color: var(--muted-foreground); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.field-change-value {
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 23px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 7px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.field-change-value.before { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.field-change-value.after { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.field-change-value.stable { background: var(--muted); color: var(--foreground); }
.field-change-arrow { color: var(--muted-foreground); text-align: center; }

.page-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.page-head.compact h1 { font-size: 18px; }
.page-head p { margin-top: 4px; color: var(--muted-foreground); }
.search-form { margin-bottom: 24px; }
.search-mode {
  flex: 0 0 190px;
  min-width: 190px;
  margin: 0;
  border: 0;
  padding: 0;
}
.search-mode legend {
  margin: 0 0 5px;
  padding: 0;
  color: var(--control-foreground);
  font-size: 12px;
  font-weight: 600;
}
.search-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background-subtle);
  padding: 2px;
}
.search-form .search-mode-option {
  position: relative;
  display: block;
  min-width: 0;
  color: var(--muted-foreground);
  cursor: pointer;
}
.search-form .search-mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  outline: 0;
}
.search-mode-option span {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 4px 12px;
  white-space: nowrap;
}
.search-mode-option:hover span { color: var(--foreground); }
.search-mode-option input:checked + span {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.search-mode-option input:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.search-limit-note {
  width: fit-content;
  margin: -2px 2px 10px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted-foreground);
  padding-left: 8px;
  font-size: 12px;
}
.filters, .report-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filters a, .report-filters a { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 7px; text-decoration: none; }
.filters a.active, .report-filters a.active { background: var(--primary); color: var(--primary-foreground); }
.cards, .workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-decoration: none; }
.card:hover { background: var(--background-subtle); }
.card p { margin-top: 4px; color: var(--muted-foreground); }
.card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

@media (max-width: 1000px) {
  .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-grid > div:nth-child(2n) { border-right: 0; }
  .coverage-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .browse-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .status-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-stat:nth-child(3) { border-right: 0; }
  .summary-stat:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .aggregate-grid { grid-template-columns: 1fr; }
  .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metadata-grid > div:nth-child(2n) { border-right: 0; }
  .metadata-grid .wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .shell, main { padding-inline: 14px; }
  .footer-shell { padding-inline: 14px; }
  .info-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 16px;
  }
  .nav-shell { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; }
  main { padding-top: 18px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .header-actions { width: 100%; }
  .browse-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .filter-sidebar form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-sidebar form h2, .filter-sidebar form button, .filter-sidebar .clear-link, .filter-sidebar .form-help { grid-column: 1 / -1; }
  .comparison-strip { grid-template-columns: 1fr 28px 1fr; }
  .comparison-strip .comparison-total { grid-column: 1 / -1; border-top: 1px solid var(--border); border-left: 0; }
  .status-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-stat:nth-child(2n) { border-right: 0; }
  .summary-stat:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .entitlement-summary small { display: none; }
  .entitlement-responsive-table { min-width: 0; }
  .entitlement-responsive-table thead { display: none; }
  .entitlement-responsive-table, .entitlement-responsive-table tbody, .entitlement-responsive-table tr, .entitlement-responsive-table td { display: block; width: 100%; }
  .entitlement-responsive-table tr { border-bottom: 1px solid var(--border); padding-block: 3px; }
  .entitlement-responsive-table tr:last-child { border-bottom: 0; }
  .entitlement-responsive-table td {
    min-width: 0;
    border-bottom: 0;
    padding: 8px 10px;
  }
  .entitlement-responsive-table td + td { border-top: 1px solid var(--border); }
  .entitlement-responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted-foreground);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
  }
  .entitlement-responsive-table td[colspan]::before { content: none; }
  .entitlement-responsive-table tbody tr:hover { background: transparent; }
  .cards, .workflow-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-grid > div { border-right: 0; }
  .coverage-grid > div:not(:last-child) { border-bottom: 1px solid var(--border); }
  section[aria-labelledby="binary-records-title"] .compact-controls {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .compact-controls label, .compact-controls button, .compact-controls > a { width: 100%; }
}

@media (max-width: 480px) {
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .footer-links { justify-content: flex-start; }
  .filter-sidebar form { grid-template-columns: 1fr; }
  .panel-heading, .section-heading, .section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .control-bar, .search-form, .form-row { align-items: stretch; flex-direction: column; }
  .search-mode { width: 100%; min-width: 0; flex-basis: auto; }
  .comparison-strip { grid-template-columns: 1fr; }
  .comparison-strip .comparison-arrow { display: none; }
  .comparison-strip > div + div { border-top: 1px solid var(--border); border-left: 0; }
  .comparison-strip .comparison-total { grid-column: auto; }
  .control-bar label, .search-form label, .form-row label { width: 100%; min-width: 0; }
  .control-bar button, .search-form button, .form-row button { width: 100%; }
  .source-choice-alert { align-items: stretch; }
  .source-choice-actions { width: 100%; margin-left: 0; }
  .source-choice-action { flex: 1; }
  .metadata-grid { grid-template-columns: 1fr; }
  .metadata-grid .wide { grid-column: auto; }
  .metadata-grid > div { border-right: 0; }
}

.api-docs-header .lede { max-width: 820px; }
.api-version {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}
.api-auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}
.api-auth-copy { padding: 18px; }
.api-auth-copy > p:not(.eyebrow) { max-width: 760px; margin-top: 6px; color: var(--muted-foreground); }
.api-example { min-width: 0; background: #18181b; color: #f4f4f5; }
.api-example-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #3f3f46;
  color: #a1a1aa;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.api-example pre {
  overflow-x: auto;
  padding: 18px;
  white-space: pre;
}
.api-example code { color: inherit; font-size: 11px; }
.api-docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.api-docs-sidebar { position: sticky; top: 68px; min-width: 0; }
.api-docs-sidebar nav {
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px;
}
.api-docs-sidebar nav > p { margin-top: 2px; color: var(--muted-foreground); font-size: 11px; }
.api-docs-sidebar ul { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.api-docs-sidebar a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border-radius: 4px;
  padding: 6px;
  text-decoration: none;
}
.api-docs-sidebar a:hover { background: var(--muted); }
.api-docs-sidebar code { color: var(--secondary-foreground); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.api-method {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success-border);
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .03em;
}
.api-docs-content { min-width: 0; }
.api-endpoint-list, .api-schema-list { display: grid; gap: 12px; }
.api-endpoint, .api-schema {
  scroll-margin-top: 68px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.api-endpoint-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--background-subtle);
  padding: 9px 12px;
}
.api-endpoint-header > a { color: var(--muted-foreground); font-family: var(--mono); font-size: 10px; }
.api-endpoint-route { display: flex; min-width: 0; align-items: center; gap: 9px; }
.api-endpoint-route code { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.api-endpoint-body { padding: 14px; }
.api-endpoint-body > p { max-width: 900px; margin-top: 4px; color: var(--muted-foreground); }
.api-endpoint-body h4 { margin-top: 18px; margin-bottom: 7px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.api-table-wrap { border-radius: 5px; }
.api-docs-table { min-width: 760px; }
.api-docs-table th { white-space: nowrap; }
.api-docs-table td { max-width: 360px; font-size: 11px; vertical-align: top; }
.api-docs-table td code { overflow-wrap: anywhere; }
.api-response-table { min-width: 560px; }
.api-requirement {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
}
.api-requirement.required { border-color: var(--info-border); background: var(--info-bg); color: var(--info); }
.api-schema-summary {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  background: var(--card);
  color: var(--foreground);
  padding: 10px 12px;
}
.api-schema-summary::-webkit-details-marker { display: none; }
.api-schema-summary::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}
.api-schema-summary > span:first-child {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.api-schema-summary > span:last-child {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.api-schema-summary:hover { background: var(--muted); }
.api-schema-summary:focus-visible {
  position: relative;
  z-index: 1;
  outline-offset: -2px;
}
.api-schema[open] > .api-schema-summary {
  border-bottom: 1px solid var(--border);
}
.api-schema[open] > .api-schema-summary::before { transform: rotate(45deg); }
.api-schema-body { min-width: 0; }
.api-schema-body > p {
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 10px 12px;
  font-size: 11px;
}
.api-schema-body > .api-table-wrap {
  border: 0;
  border-radius: 0;
}

.api-token-entry {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.api-token-entry > label { margin-bottom: 6px; }
.api-token-entry > p { margin-top: 7px; color: var(--muted-foreground); font-size: 11px; }
.api-token-field { display: flex; max-width: 620px; gap: 7px; }
.api-token-field input {
  min-width: 0;
  flex: 1;
  font-family: var(--mono);
}
.api-token-field .button { flex: 0 0 auto; }
.api-try {
  margin-top: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background-subtle);
}
.api-try > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}
.api-try[open] > summary { border-bottom: 1px solid var(--border); }
.api-try form { padding: 12px; }
.api-try-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.api-try-fields label { min-width: 0; }
.api-try-fields label > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.api-try-fields label small {
  color: var(--muted-foreground);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}
.api-try-fields input, .api-try-fields select {
  width: 100%;
  min-width: 0;
  background: var(--background);
  font-family: var(--mono);
  font-size: 11px;
}
.api-try-field-help {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 400;
}
.api-try-field-help strong { color: var(--secondary-foreground); font-weight: 600; }
.api-try-empty { color: var(--muted-foreground); font-size: 11px; }
.api-try-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.api-try-actions [role="status"] { color: var(--muted-foreground); font-size: 11px; }
.api-try-actions button:disabled { cursor: wait; opacity: .65; }
.api-try-result {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
}
.api-try-result[data-state="success"] { border-color: var(--success-border-strong); }
.api-try-result[data-state="error"] { border-color: var(--danger-border-strong); }
.api-try-result dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  border-bottom: 1px solid #3f3f46;
  background: #18181b;
  color: #f4f4f5;
  padding: 9px 12px;
}
.api-try-result dl > div { min-width: 0; }
.api-try-result dt {
  color: #a1a1aa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.api-try-result dd { margin: 2px 0 0; }
.api-try-result dd code { color: inherit; overflow-wrap: anywhere; }
.api-try-result pre {
  max-height: 440px;
  overflow: auto;
  background: #18181b;
  color: #f4f4f5;
  padding: 14px;
  white-space: pre;
}
.api-try-result pre code { color: inherit; font-size: 11px; }

.error-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}
.error-panel {
  display: grid;
  width: min(100%, 820px);
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 20px 50px rgb(9 9 11 / 8%);
}
.error-code {
  display: grid;
  min-height: 260px;
  place-items: center;
  background: #18181b;
  color: #fafafa;
  font-family: var(--mono);
  font-size: clamp(68px, 9vw, 112px);
  font-weight: 750;
  letter-spacing: -.08em;
  line-height: 1;
}
.error-copy {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: 36px;
}
.error-copy h1 { font-size: 28px; }
.error-copy .lede { max-width: 440px; margin-top: 9px; font-size: 14px; }
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

@media (max-width: 1000px) {
  .api-auth-panel { grid-template-columns: 1fr; }
  .api-docs-layout { grid-template-columns: 1fr; }
  .api-docs-sidebar { position: static; }
  .api-docs-sidebar nav { max-height: none; }
  .api-docs-sidebar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .api-docs-sidebar ul { grid-template-columns: 1fr; }
  .api-endpoint-header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .api-example pre { padding: 14px; }
  .api-try-result dl { grid-template-columns: 1fr; }
  .error-panel { grid-template-columns: 1fr; }
  .error-code { min-height: 150px; font-size: 72px; }
  .error-copy { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .api-token-field { align-items: stretch; flex-direction: column; }
  .api-token-field .button, .api-try-actions button { width: 100%; }
  .api-try-actions { align-items: stretch; flex-direction: column; }
}
