:root {
  color-scheme: light;
  --topbar: 76px;
  --nav-width: 314px;
  --request-width: minmax(390px, 31vw);
  --ink: #14171a;
  --ink-soft: #596167;
  --ink-faint: #858d91;
  --canvas: #f7f8f5;
  --canvas-raised: #ffffff;
  --panel: #f0f2ef;
  --panel-strong: #edf1fb;
  --panel-hover: #e8ece8;
  --line: #d2d8d4;
  --line-soft: #e1e5e2;
  --clay: #d4372a;
  --clay-strong: #a6241b;
  --clay-wash: rgba(212, 55, 42, .1);
  --paper: #ffffff;
  --signal: #176b55;
  --signal-soft: #e5f2ed;
  --registry: #3157af;
  --registry-soft: #edf1fb;
  --highlight: #e4f1da;
  --green: #176b55;
  --blue: #3157af;
  --purple: #7653a7;
  --code: #14171a;
  --shadow: 0 22px 60px rgba(20, 23, 26, .14);
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f3f5f1;
  --ink-soft: #b7bfba;
  --ink-faint: #7f8883;
  --canvas: #111513;
  --canvas-raised: #171c19;
  --panel: #1d2420;
  --panel-strong: #202a35;
  --panel-hover: #26302b;
  --line: #343c37;
  --line-soft: #29302c;
  --clay: #ee6456;
  --clay-strong: #ff7869;
  --clay-wash: rgba(238, 100, 86, .13);
  --paper: #f7f8f5;
  --signal: #62c7a8;
  --signal-soft: #17362d;
  --registry: #8eaaff;
  --registry-soft: #202a35;
  --highlight: #273621;
  --green: #62c7a8;
  --blue: #8eaaff;
  --purple: #c1a4ff;
  --code: #090c0a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
svg { display: block; }
::selection { color: var(--ink); background: rgba(212, 55, 42, .22); }
:focus-visible { outline: 2px solid var(--clay-strong); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  transform: translateY(-150%);
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { transform: none; }

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--topbar);
  display: grid;
  grid-template-columns: var(--nav-width) 1fr auto;
  align-items: center;
  border-top: 3px solid var(--clay);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas-raised) 95%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(20, 23, 26, .035);
}
.brand-zone {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
}
.brand-copy { display: grid; gap: 4px; }
.brand-name {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.045em;
}
.brand-copy small {
  color: var(--ink-soft);
  font: 500 8px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.product-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
}
.product-nav a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.product-nav a:hover { color: var(--ink); border-color: var(--line); background: var(--registry-soft); }
.product-nav a.active { color: var(--ink); border-color: var(--line); background: var(--registry-soft); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 8px;
}
.search-trigger, .jump-button {
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-soft);
  cursor: pointer;
}
.search-trigger {
  width: 205px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-radius: 4px;
}
.search-trigger:hover, .jump-button:hover { border-color: var(--ink-faint); color: var(--ink); }
.search-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-trigger span { flex: 1; text-align: left; }
kbd {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-faint);
}
.api-key-button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--clay);
  border-radius: 4px;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .16s ease, filter .16s ease;
}
.api-key-button:hover { background: var(--clay-strong); border-color: var(--clay-strong); transform: translateY(-1px); }
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover { background: var(--panel); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.docs-shell {
  height: calc(100vh - var(--topbar));
  display: grid;
  grid-template-columns: var(--nav-width) minmax(510px, 1fr) var(--request-width);
  margin-top: var(--topbar);
}
.navigation-panel, .reference-content, .request-panel { min-width: 0; min-height: 0; }
.navigation-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--canvas-raised);
}
.jump-wrap { padding: 18px 17px 12px; }
.jump-button {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 600;
}
.endpoint-tree {
  flex: 1;
  overflow: auto;
  padding: 6px 12px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.nav-section { margin: 8px 0 17px; }
.nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.nav-section-toggle svg {
  width: 14px;
  height: 14px;
  margin-left: auto;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  transition: transform .18s ease;
}
.nav-section.collapsed .nav-section-toggle svg { transform: rotate(-90deg); }
.nav-section.collapsed .nav-items { display: none; }
.nav-tag-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color, var(--clay));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tag-color, var(--clay)) 15%, transparent);
}
.nav-items { display: grid; gap: 2px; }
.nav-endpoint {
  min-height: 50px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.25;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.nav-endpoint-copy { min-width: 0; display: grid; gap: 2px; }
.nav-endpoint-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-endpoint-copy small { overflow: hidden; color: var(--ink-faint); font-size: 9px; font-weight: 400; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.nav-endpoint:hover .nav-endpoint-copy small, .nav-endpoint.active .nav-endpoint-copy small { color: var(--ink-soft); }
.nav-endpoint:hover { color: var(--ink); background: var(--panel); }
.nav-endpoint.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel-strong);
  box-shadow: inset 3px 0 0 var(--clay);
}
.nav-guide {
  min-height: 34px;
  display: flex;
  align-items: center;
  margin-left: 17px;
  padding: 4px 10px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
}
.nav-guide:hover { border-left-color: var(--clay); color: var(--ink); }
.method-mini {
  justify-self: start;
  min-width: 35px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(85, 197, 140, .13);
  color: var(--green);
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: center;
  letter-spacing: .03em;
}
.method-mini.post { color: var(--blue); background: rgba(108, 167, 255, .14); }
.nav-footer {
  min-height: 49px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 19px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10.5px;
}
.nav-footer a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(85, 197, 140, .12); }

.reference-content {
  overflow: auto;
  background: var(--canvas);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
#endpoint-article {
  position: relative;
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 52px clamp(36px, 5vw, 76px) 110px;
  border-left: 2px solid color-mix(in srgb, var(--clay) 62%, transparent);
}
#endpoint-article::before {
  content: '';
  position: absolute;
  top: 58px;
  left: -6px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  background: var(--canvas);
}
.endpoint-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.source-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-breadcrumb .source-line { width: 26px; height: 2px; background: var(--tag-color, var(--clay)); }
.page-actions { display: flex; gap: 8px; }
.page-action {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--canvas-raised);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
}
.page-action:hover { color: var(--ink); border-color: var(--ink-faint); }
.page-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.endpoint-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 600;
}
.endpoint-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 34px;
  min-width: 0;
}
.method-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 3px;
  background: rgba(85, 197, 140, .18);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.method-badge.post { color: var(--blue); background: rgba(108, 167, 255, .15); }
.route-path {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-path strong { color: var(--ink); font-weight: 400; }
.endpoint-description {
  max-width: 700px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agent-onboarding {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 9px;
  margin: 0 0 34px;
}
.agent-setup-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px 8px 20px;
  border: 1px solid #60645f;
  border-radius: 999px;
  background: #292b29;
  color: #f7f8f5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  cursor: pointer;
  font-size: 16px;
  letter-spacing: -.015em;
  transition: border-color .15s, transform .15s, background .15s;
}
.agent-setup-button:hover { border-color: #9ca19b; background: #222422; transform: translateY(-1px); }
.agent-setup-button:active { transform: translateY(0); }
.agent-logos { display: flex; align-items: center; gap: 7px; }
.agent-logo {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  color: #f7f8f5;
  font: 700 9px/1 var(--mono);
}
.agent-logo svg { width: 100%; height: 100%; }
.claude-logo { color: #e17a52; }
.claude-logo svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
.codex-logo { border: 1px solid rgba(255,255,255,.72); border-radius: 50%; font-size: 8px; }
.cursor-logo svg { fill: #f7f8f5; stroke: #292b29; stroke-width: .8; stroke-linejoin: round; }
.opencode-logo svg { fill: none; stroke: #f7f8f5; stroke-width: 2; }
.opencode-logo svg path:last-child { fill: #f7f8f5; stroke: none; }
.agent-onboarding > #agent-setup-note { color: var(--ink-faint); font: 400 9px/1.5 var(--mono); }
.setup-copy-toast {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(100% + 13px);
  padding: 10px 14px;
  border: 1px solid #3c403c;
  border-radius: 8px;
  transform: translate(-50%, 7px);
  opacity: 0;
  pointer-events: none;
  background: #171917;
  color: #f7f8f5;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  font-size: 12px;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.setup-copy-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.plain-language {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);
  border-radius: 4px;
  background: var(--canvas-raised);
}
.plain-language span, .starter-kicker {
  color: var(--clay);
  font: 600 9px/1.3 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.plain-language p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.starter-guide {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
  gap: 26px;
  margin: 36px 0 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--canvas-raised);
  scroll-margin-top: 96px;
}
.starter-copy h2, .intent-guide h2 { margin: 9px 0 12px; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.starter-copy p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.company-passport {
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--canvas);
  box-shadow: 5px 5px 0 var(--registry-soft);
}
.passport-head { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-faint); font: 500 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.passport-head strong { color: var(--signal); font-weight: 600; }
.passport-head strong::before { content: '● '; }
.company-passport h3 { margin: 15px 0; font-size: 19px; letter-spacing: -.025em; }
.company-passport dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); }
.company-passport dl div { padding: 10px 8px 9px 0; border-bottom: 1px solid var(--line); }
.company-passport dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.company-passport dl div:nth-child(even) { padding-left: 10px; }
.company-passport dt { color: var(--ink-faint); font: 500 8px/1.3 var(--mono); text-transform: uppercase; }
.company-passport dd { margin: 5px 0 0; color: var(--ink); font-size: 12px; }
.company-passport dd code { color: var(--registry); font-family: var(--mono); font-size: 11px; }
.company-passport > p { margin: 13px 0 0; color: var(--ink-soft); font-size: 11px; }
.identifier-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.identifier-grid > div { display: grid; gap: 5px; padding: 13px 14px; border-right: 1px solid var(--line); }
.identifier-grid > div:last-child { border-right: 0; }
.identifier-grid strong { color: var(--clay); font: 600 10px/1 var(--mono); }
.identifier-grid span { color: var(--ink-soft); font-size: 10px; }
.intent-guide { margin: 34px 0 36px; scroll-margin-top: 96px; }
.intent-guide > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.intent-guide h2 { margin-bottom: 0; }
.intent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--ink); }
.intent-grid button {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 15px 17px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.intent-grid button:nth-child(even) { border-right: 0; }
.intent-grid button:hover { background: var(--registry-soft); }
.intent-grid button > span { color: var(--clay); font: 600 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.intent-grid button strong { font-size: 13px; font-weight: 600; }
.intent-grid button small { color: var(--ink-soft); font-size: 10px; }
.data-provenance {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 30px 0 38px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--registry) 42%, var(--line));
  border-left: 3px solid var(--registry);
  border-radius: 5px;
  background: var(--registry-soft);
}
.data-provenance::after {
  content: '';
  position: absolute;
  inset: auto -15% -38px 35%;
  height: 70px;
  background: repeating-linear-gradient(115deg, transparent 0 13px, color-mix(in srgb, var(--tag-color, var(--clay)) 14%, transparent) 13px 14px);
  transform: skewX(-18deg);
  pointer-events: none;
}
.provenance-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--registry);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.data-provenance strong { display: block; margin-bottom: 2px; font-size: 13px; }
.data-provenance p { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
.doc-section {
  margin-top: 46px;
  scroll-margin-top: 100px;
}
.doc-section > h2 {
  margin: 0 0 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 500;
}
.doc-section > p { color: var(--ink-soft); }
.parameter-list { display: grid; gap: 10px; }
.parameter-row {
  padding: 16px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: color-mix(in srgb, var(--canvas-raised) 88%, transparent);
}
.parameter-row-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 8px;
}
.parameter-name { color: var(--clay-strong); font-family: var(--mono); font-size: 12px; }
.parameter-type { color: var(--purple); font-family: var(--mono); font-size: 10px; }
.parameter-location { color: var(--ink-faint); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.required-label { margin-left: auto; color: var(--clay-strong); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.parameter-row p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.parameter-example { display: inline-block; margin-top: 9px; color: var(--ink-faint); font-family: var(--mono); font-size: 10px; }
.response-list { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.response-item + .response-item { border-top: 1px solid var(--line); }
.response-item summary {
  min-height: 51px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}
.response-item summary::-webkit-details-marker { display: none; }
.response-item summary::after { content: '+'; color: var(--ink-faint); font-family: var(--mono); }
.response-item[open] summary::after { content: '−'; }
.status-code { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.status-code.success { color: var(--green); }
.response-description { color: var(--ink-soft); font-size: 12.5px; }
.response-detail { padding: 0 16px 16px 98px; color: var(--ink-faint); font-size: 12px; }
.response-detail code { font-family: var(--mono); color: var(--ink-soft); }
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--signal) 38%, var(--line));
  border-left: 3px solid var(--signal);
  border-radius: 4px;
  background: var(--signal-soft);
  color: var(--ink-soft);
  font-size: 13px;
}
.auth-note svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--signal); stroke-width: 1.7; }
.auth-note strong { color: var(--ink); }

.request-panel {
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--canvas-raised);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
#request-workbench { padding: 34px 22px 56px; }
.language-label {
  margin-bottom: 13px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.language-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 30px;
}
.language-tab {
  min-height: 56px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 3px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
}
.language-tab:hover { color: var(--ink); background: var(--panel); }
.language-tab.active { color: var(--ink); border-color: var(--line); background: var(--panel); }
.language-icon { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--language-color, var(--clay)); }
.credential-section, .parameter-builder { margin-bottom: 25px; }
.section-label-row {
  min-height: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-label-row h2 {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.section-label-row span, .section-label-row button { color: var(--ink-faint); font-size: 10px; }
.section-label-row button { border: 0; background: transparent; cursor: pointer; }
.section-label-row button:hover { color: var(--ink); }
.credential-input {
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--canvas);
}
.credential-input > span { height: 100%; display: grid; place-items: center; padding: 0 13px; border-right: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.credential-input input { min-width: 0; height: 100%; padding: 0 11px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 11px; }
.credential-input input::placeholder { color: var(--ink-faint); }
.credential-help { margin: 8px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.5; }
.credential-help code { color: var(--registry); font-family: var(--mono); font-size: 10px; }
.reveal-key { width: 42px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; }
.reveal-key:hover { color: var(--ink); }
.reveal-key svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#parameter-inputs { display: grid; gap: 9px; }
.parameter-input-label { display: grid; gap: 5px; }
.parameter-input-label > span { display: flex; justify-content: space-between; color: var(--ink-soft); font-family: var(--mono); font-size: 9px; }
.parameter-input-label em { color: var(--ink-faint); font-family: var(--sans); font-style: normal; }
.parameter-input-label input, .parameter-input-label select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
}
.parameter-input-label input:focus, .parameter-input-label select:focus { border-color: var(--clay); }
.code-card, .response-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--code);
  color: #dbded7;
}
.response-card { margin-top: 16px; }
.code-card-head, .response-card-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px 0 14px;
  border-bottom: 1px solid #282b27;
}
.code-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9bdb5;
  cursor: default;
  font-size: 11px;
}
.code-format svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy-button {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #82877e;
  cursor: pointer;
  font-size: 9px;
}
.copy-button:hover { background: #21241f; color: #e4e8df; }
.copy-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.request-code, .response-code {
  margin: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #30342f transparent;
}
.request-code { min-height: 180px; max-height: 285px; }
.response-code { min-height: 235px; max-height: 370px; }
.request-code code, .response-code code {
  display: block;
  min-width: max-content;
  padding: 18px;
  color: #d3d7cf;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.75;
  white-space: pre;
  tab-size: 2;
}
.tok-key { color: #b995ff; }
.tok-string { color: #b9d477; }
.tok-number { color: #f08373; }
.tok-boolean { color: #72b2ff; }
.tok-null { color: #8c9188; }
.try-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 9px 10px 9px 14px;
  border-top: 1px solid #282b27;
}
.try-row > span { flex: 1; color: #777d73; font-size: 9px; line-height: 1.3; }
.try-button {
  min-width: 75px;
  height: 36px;
  border: 1px solid #53645d;
  border-radius: 4px;
  background: #263a34;
  color: #eff7f2;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}
.try-button:hover { background: #304b43; }
.try-button:disabled { opacity: .55; cursor: wait; }
.response-card-head { color: #9da298; font-size: 10px; }
.response-status, .response-actions { display: flex; align-items: center; gap: 7px; }
.response-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(85, 197, 140, .12); }
.response-status.error .response-dot { background: var(--clay); box-shadow: 0 0 0 4px rgba(226, 100, 80, .12); }
#response-time { color: #71776d; }

.search-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 80px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas-raised);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(3, 4, 3, .7); backdrop-filter: blur(4px); }
.search-box {
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.search-box svg { width: 21px; height: 21px; fill: none; stroke: var(--ink-faint); stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-box input::placeholder { color: var(--ink-faint); }
.search-box kbd, .search-dialog footer kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.search-results { max-height: 510px; overflow: auto; padding: 9px; }
.search-result {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}
.search-result:hover, .search-result.selected { border-color: var(--line); background: var(--panel); color: var(--ink); }
.search-result-copy strong { display: block; color: var(--ink); font-size: 13px; font-weight: 500; }
.search-result-copy small { display: block; margin: 3px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.search-result-copy span { font-family: var(--mono); font-size: 9px; }
.search-result-tag { color: var(--ink-faint); font-size: 10px; }
.empty-search { padding: 50px 20px; color: var(--ink-faint); text-align: center; }
.search-dialog footer { height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; }
.search-dialog footer span { display: flex; align-items: center; gap: 5px; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--canvas-raised);
  font-size: 12px;
  font-weight: 600;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.nav-skeleton, .content-loading, .request-loading { display: grid; gap: 13px; }
.nav-skeleton { padding: 12px 8px; }
.nav-skeleton span, .content-loading span, .request-loading span {
  display: block;
  height: 13px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-strong) 50%, var(--panel) 75%) 0 0 / 200% 100%;
  animation: skeleton 1.4s infinite linear;
}
.nav-skeleton span:nth-child(2) { width: 72%; }
.nav-skeleton span:nth-child(3) { width: 86%; }
.content-loading { padding: 80px 10%; }
.content-loading span { height: 18px; }
.content-loading span:first-child { width: 65%; height: 42px; }
.content-loading span:nth-child(2) { width: 80%; }
.content-loading span:nth-child(3) { width: 92%; }
.content-loading span:nth-child(4) { width: 76%; }
.request-loading { padding: 50px 24px; }
.request-loading span { height: 54px; }
.request-loading span:nth-child(2) { height: 240px; }
.request-loading span:nth-child(3) { height: 300px; }
@keyframes skeleton { to { background-position: -200% 0; } }

.mobile-only, .mobile-console-toggle { display: none; }
.mobile-backdrop { position: fixed; z-index: 45; inset: var(--topbar) 0 0; background: rgba(0, 0, 0, .62); }

@media (max-width: 1280px) {
  :root { --nav-width: 280px; }
  .docs-shell { grid-template-columns: var(--nav-width) minmax(480px, 1fr) minmax(360px, 420px); }
  .search-trigger { width: 46px; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .product-nav a { padding-inline: 10px; }
}

@media (max-width: 1040px) {
  body { overflow: auto; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand-zone { border-right: 0; padding-inline: 14px; }
  .product-nav { display: none; }
  .mobile-only { display: grid; }
  #menu-toggle { margin-right: 5px; }
  .brand-name { font-size: 24px; }
  .brand-product { font-size: 22px; }
  .docs-shell { height: calc(100vh - var(--topbar)); grid-template-columns: 1fr; }
  .navigation-panel {
    position: fixed;
    z-index: 46;
    inset: var(--topbar) auto 0 0;
    width: min(340px, 88vw);
    transform: translateX(-102%);
    box-shadow: var(--shadow);
    transition: transform .22s ease;
  }
  body.nav-open .navigation-panel { transform: none; }
  .reference-content { grid-column: 1; }
  #endpoint-article { padding-bottom: 150px; }
  .request-panel {
    position: fixed;
    z-index: 47;
    inset: var(--topbar) 0 0 auto;
    width: min(500px, 100vw);
    transform: translateX(102%);
    box-shadow: var(--shadow);
    transition: transform .22s ease;
  }
  body.request-open .request-panel { transform: none; }
  .mobile-console-toggle {
    position: fixed;
    z-index: 40;
    right: 18px;
    bottom: 18px;
    min-width: 122px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ink);
    color: var(--canvas-raised);
    box-shadow: var(--shadow);
    font-weight: 600;
  }
  .mobile-console-toggle code { color: #1f7d50; font-family: var(--mono); font-size: 9px; }
}

@media (max-width: 680px) {
  :root { --topbar: 62px; }
  .topbar { border-top-width: 2px; }
  .brand-zone { padding-left: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 21px; }
  .brand-product { font-size: 19px; }
  .top-actions { gap: 2px; padding-right: 8px; }
  .search-trigger { width: 38px; height: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .api-key-button { height: 36px; padding-inline: 12px; font-size: 11px; }
  #theme-toggle { display: none; }
  #endpoint-article { padding: 32px 18px 130px 24px; }
  #endpoint-article::before { top: 38px; }
  .agent-onboarding { justify-items: stretch; margin-bottom: 30px; }
  .agent-setup-button { width: 100%; justify-content: space-between; gap: 8px; padding-left: 15px; font-size: 13px; }
  .agent-logos { gap: 3px; }
  .agent-logo { width: 23px; height: 23px; flex-basis: 23px; }
  .agent-onboarding > #agent-setup-note { font-size: 8px; }
  .starter-guide { grid-template-columns: 1fr; gap: 20px; padding: 21px 17px; }
  .identifier-grid { grid-template-columns: 1fr; }
  .identifier-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .identifier-grid > div:last-child { border-bottom: 0; }
  .intent-guide > div:first-child { display: block; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent-grid button { border-right: 0; }
  .company-passport dl { grid-template-columns: 1fr; }
  .company-passport dl div:nth-child(odd) { border-right: 0; }
  .company-passport dl div:nth-child(even) { padding-left: 0; }
  .endpoint-topline { align-items: flex-start; margin-bottom: 22px; }
  .page-action span { display: none; }
  .page-action { width: 38px; justify-content: center; padding: 0; }
  .endpoint-title { font-size: 34px; }
  .endpoint-route { align-items: flex-start; }
  .route-path { padding-top: 2px; white-space: normal; word-break: break-all; font-size: 11px; }
  .endpoint-description { font-size: 15px; }
  .data-provenance { grid-template-columns: 1fr; }
  .parameter-row-head { flex-wrap: wrap; }
  .required-label { width: 100%; margin-left: 0; }
  .response-item summary { grid-template-columns: 52px 1fr auto; padding-inline: 12px; }
  .response-detail { padding-left: 64px; }
  #request-workbench { padding: 25px 15px 44px; }
  .copy-button span { display: none; }
  .search-dialog { max-height: calc(100vh - 24px); }
  .search-result-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
