@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #0e0e10;
  --surface: #1f1f23;
  --surface-raised: #333337;
  --line: rgba(244, 244, 246, .14);
  --line-soft: rgba(244, 244, 246, .09);
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, .58);
  --faint: rgba(244, 244, 246, .35);
  --accent: #26d07c;
  --accent-muted: #8f8f91;
  --accent-soft: rgba(38, 208, 124, .10);
  --font-heading: "Space Grotesk", Inter, Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f6;
  --surface: #ededed;
  --surface-raised: #ffffff;
  --line: rgba(14, 14, 16, .20);
  --line-soft: rgba(14, 14, 16, .10);
  --text: #0e0e10;
  --muted: rgba(14, 14, 16, .64);
  --faint: rgba(14, 14, 16, .42);
  --accent: #15965a;
  --accent-muted: #57575a;
  --accent-soft: rgba(38, 208, 124, .12);
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #434346 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { border: 2px solid var(--bg); border-radius: 0; background: #434346; }
*::-webkit-scrollbar-thumb:hover { background: #57575a; }
html { background: var(--bg); scroll-behavior: auto; }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
code, pre, kbd, .method, .sidebar-label, .breadcrumb, .field-meta, .endpoint-group-label, .run-note { font-family: var(--font-mono); }
h1, h2, h3, .api-family-title, .endpoint-link, .copy-page, .try-button { font-family: var(--font-heading); }

.docs-shell { min-height: 100vh; background: var(--bg); }
.topbar { position: relative; z-index: 10; height: 80px; display: grid; grid-template-columns: 250px minmax(280px, 560px) 1fr; align-items: center; gap: 24px; padding: 0 40px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.brand-logo { display: block; width: 142px; height: auto; }
:root[data-theme="light"] .brand-logo { filter: invert(1); }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-family: "Space Mono", monospace; font-size: 7px; font-weight: 700; letter-spacing: .11em; line-height: 1.12; }
.top-search { display: flex; flex: 1 1 460px; align-items: center; gap: 10px; width: auto; max-width: 640px; height: 42px; padding: 0 12px; border: 1px solid rgba(244, 244, 246, .17); background: #17171a; color: #a8a8ad; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.top-search:focus-within { border-color: rgba(38, 208, 124, .74); background: #191a1c; box-shadow: 0 0 0 3px rgba(38, 208, 124, .11); }
.top-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 13px; }
.top-search input::placeholder { color: var(--faint); }
.top-search input::-webkit-search-cancel-button { display: none; }
.search-icon { width: 18px; height: 18px; flex: 0 0 auto; }
kbd { padding: 4px 6px; border: 1px solid rgba(244, 244, 246, .15); background: rgba(255, 255, 255, .025); color: #99999f; font-size: 9px; line-height: 1; white-space: nowrap; }
.top-actions { position: absolute; top: 22px; right: calc(40px - (100vw - 100%)); display: flex; gap: 8px; }
.app-sections { display: flex; align-items: center; gap: 8px; font-family: "Space Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-sections a { padding: 10px 12px; border: 1px solid var(--line); color: var(--faint); background: transparent; text-decoration: none; white-space: nowrap; }
.app-sections a:hover { border-color: var(--muted); color: var(--text); background: var(--surface); }
.app-sections a.active { border-color: var(--line); color: var(--accent); background: var(--surface); }
.icon-button { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: var(--surface); cursor: pointer; font-size: 17px; line-height: 1; text-decoration: none; }
.icon-button:hover { color: var(--bg); border-color: var(--accent); background: var(--accent); }
.theme-toggle { margin-right: 8px; color: var(--accent); }

.reference-layout { display: grid; grid-template-columns: 276px minmax(520px, 1fr) minmax(390px, 31vw); min-height: calc(100vh - 80px); }
.sidebar { border-right: 1px solid var(--line); }
.sidebar-scroll { position: sticky; top: 0; max-height: calc(100vh - 80px); overflow: auto; padding: 28px 16px 60px 24px; }
.sidebar-label { margin: 0 0 12px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-label-spaced { margin-top: 30px; }
.sidebar-actions { display: flex; align-items: center; gap: 8px; margin: -1px 0 14px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; }
.sidebar-actions span { margin-right: auto; text-transform: uppercase; }
.sidebar-actions button { border: 0; padding: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: inherit; }
.sidebar-actions button:hover { color: var(--text); }
.api-family-title { margin: 0 0 8px 10px; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.endpoint-nav { margin: 0 0 12px 8px; border-left: 1px solid var(--surface-raised); }
.endpoint-group { padding: 11px 0 6px; }
.endpoint-group + .endpoint-group { margin-top: 7px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.endpoint-group-label { margin: 0 0 8px 13px; color: #b5b5b6; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.endpoint-link { display: flex; align-items: center; gap: 9px; width: calc(100% - 6px); min-height: 36px; margin: 1px 0; padding: 7px 8px 7px 12px; border: 0; border-left: 2px solid transparent; background: transparent; color: #c8c8cc; font-size: 13px; font-weight: 400; line-height: 1.25; text-align: left; }
.endpoint-link:hover { color: var(--text); background: var(--surface); }
.endpoint-link.active { border-left-color: var(--accent); background: var(--surface-raised); color: var(--text); }
.method { display: inline-block; flex: 0 0 auto; min-width: 31px; padding: 2px 4px; color: var(--accent-muted); font-size: 8px; font-weight: 700; letter-spacing: .02em; text-align: center; }
.endpoint-link.active .method { color: var(--accent); }
.method.post { color: #d9d9da; }
.sidebar-link { display: flex; justify-content: space-between; padding: 9px 10px; color: var(--muted); font-family: var(--font-heading); font-size: 13px; }
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.search-hidden { display: none !important; }

.content-column { min-width: 0; border-right: 1px solid var(--line); }
.content-inner { max-width: 910px; margin: 0 auto; padding: 54px clamp(28px, 5vw, 70px) 100px; }
.breadcrumb { display: flex; gap: 9px; color: var(--accent-muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.breadcrumb span:nth-child(2) { color: var(--faint); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 19px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--text); font-family: var(--font-heading); font-size: clamp(30px, 3vw, 44px); font-weight: 300; letter-spacing: -.03em; line-height: 1.04; }
h2 { color: var(--text); font-family: var(--font-heading); font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
h3 { color: var(--text); font-family: var(--font-heading); font-size: 16px; font-weight: 500; }
.lede { max-width: 690px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.copy-page { flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; }
.copy-page:hover { color: var(--text); border-color: rgba(244,244,246,.3); }
.endpoint-bar { display: flex; align-items: center; gap: 12px; min-height: 54px; margin-top: 34px; padding: 8px 9px; border: 1px solid var(--line); background: rgba(31, 31, 35, .54); }
.endpoint-bar .method { min-width: auto; padding: 5px 7px; background: rgba(143, 143, 145, .13); color: #c8c8cc; font-size: 10px; font-weight: 800; }
.endpoint-bar .method.post { color: #c8c8cc; }
.endpoint-bar code { overflow: auto; color: var(--text); font-size: 13px; white-space: nowrap; }
.try-button { margin-left: auto; flex: 0 0 auto; padding: 9px 13px; border: 0; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; }
.try-button span { margin-left: 6px; font-size: 9px; }
.try-panel { display: none; margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.try-panel.open { display: block; }
.try-panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.try-panel-heading h2 { margin: 0; font-size: 16px; }
.try-panel-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.try-panel-heading > button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.try-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.try-input-label { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.try-input-label textarea, .try-input-label input, .try-input-label select { display: block; width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 0; outline: none; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 12px; }
.try-input-label input, .try-input-label select { height: 39px; }
.try-input-label textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.try-input-label.full-width { grid-column: 1 / -1; }
.try-required { color: var(--accent); font-size: 9px; }
.try-run-button { margin-top: 16px; padding: 10px 14px; border: 0; background: var(--accent); color: var(--bg); font-family: var(--font-heading); font-size: 12px; font-weight: 700; }
.try-run-button:disabled { opacity: .55; cursor: wait; }
.field-section, .usage-section, .notes-section { margin-top: 48px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; }
.section-heading > span { color: var(--faint); font-family: var(--font-mono); font-size: 11px; }
.field-row { padding: 22px 0 23px; border-bottom: 1px solid var(--line-soft); }
.field-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field-name code { color: var(--accent-muted); font-size: 13px; font-weight: 700; }
.type-pill, .location-pill, .required-pill { padding: 3px 7px; background: var(--surface-raised); color: #c8c8cc; font-family: var(--font-mono); font-size: 10px; }
.required-pill { background: rgba(143,143,145,.13); }
.location-pill { color: var(--faint); }
.field-row p, .section-note { max-width: 730px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.verification-note { margin-top: 18px; padding: 13px 15px; border-left: 2px solid #69696c; background: var(--surface); color: var(--muted); }
.verification-note strong { color: var(--text); font-family: var(--font-heading); font-size: 12px; font-weight: 600; }
.verification-note p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }
.response-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }

.code-column { min-width: 0; padding: 70px 24px 60px; background: rgba(14, 14, 16, .82); }
.sticky-panel { position: sticky; top: 24px; }
.code-panel { overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 16px 45px rgba(14, 14, 16, .2); }
.response-panel { margin-top: 22px; }
.code-toolbar, .response-toolbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.code-tab { align-self: stretch; padding: 0 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.code-tab.active { border-color: var(--accent); color: var(--accent); }
.code-toolbar-title, .response-toolbar-title { overflow: hidden; flex: 1; color: var(--muted); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.response-toolbar-title { color: var(--text); }
.icon-button { border: 0; padding: 3px; background: transparent; color: var(--faint); font-size: 15px; }
.icon-button:hover, .icon-button.copied { color: var(--text); }
.top-actions .icon-button { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: var(--surface); cursor: pointer; font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1; text-decoration: none; }
.top-actions .icon-button:hover { color: var(--bg); border-color: var(--accent); background: var(--accent); }
.top-actions .theme-toggle { margin-right: 8px; color: var(--accent); }
.code-block { overflow: auto; margin: 0; padding: 20px; color: #c8c8cc; font-family: var(--font-mono); font-size: 11px; line-height: 1.75; white-space: pre; tab-size: 2; }
.request-code { min-height: 210px; }
.response-code { max-height: 620px; }
.response-code.success { color: #c8c8cc; }
.response-code.error { color: #ffabab; }
.status { display: inline-block; min-width: 40px; padding: 3px 6px; background: rgba(143, 143, 145, .13); color: #c8c8cc; font-family: var(--font-mono); font-size: 10px; font-weight: 800; text-align: center; }
.status.success { background: var(--accent-soft); color: var(--accent); }
.status.error { color: #ffabab; }
.latency { color: var(--accent-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; }

.mobile-nav { display: none; }

@media (max-width: 1180px) { .reference-layout { grid-template-columns: 240px minmax(460px, 1fr) minmax(350px, 31vw); } .code-column { padding-inline: 18px; } .content-inner { padding-inline: 40px; } }
@media (max-width: 940px) { .topbar { grid-template-columns: 250px 1fr; padding-inline: 20px; } .top-actions { right: calc(20px - (100vw - 100%)); } .top-search { display: none; } .app-sections { margin-right: 0; } .reference-layout { display: block; } .sidebar { display: none; } .mobile-nav { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); } .mobile-nav label { color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; } .mobile-nav select { flex: 1; height: 30px; border: 1px solid var(--line); background: var(--bg); color: var(--text); } .code-column { padding: 36px 20px 60px; border-top: 1px solid var(--line); } .sticky-panel { position: static; } .request-code { min-height: 180px; } }
@media (max-width: 620px) { .topbar { height: 68px; grid-template-columns: 1fr auto; padding-inline: 14px; } .top-actions { top: 16px; right: calc(14px - (100vw - 100%)); } .brand-logo { width: 126px; } .app-sections, .top-actions .icon-button:not(.theme-toggle) { display: none; } .content-inner { padding: 34px 20px 60px; } .title-row { display: block; } .copy-page { margin-top: 20px; } .endpoint-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; } .endpoint-bar code { overflow: hidden; text-overflow: ellipsis; } .try-button { grid-column: 1 / -1; margin-left: 0; } .try-field-grid { grid-template-columns: 1fr; } .code-column { padding-inline: 14px; } }
