.api-docs-page { background: #f7f9fc; }
.api-docs-hero { padding: 86px 0 64px; color: #fff; background: linear-gradient(135deg, #0e2f55 0%, #164d83 58%, #1975ad 100%); }
.api-docs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); align-items: center; gap: 46px; }
.api-docs-eyebrow { display: inline-flex; margin-bottom: 14px; color: #8edaff; font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.api-docs-hero h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.03; }
.api-docs-hero p { max-width: 720px; margin: 22px 0 0; color: #dbeeff; font-size: 1.08rem; line-height: 1.75; }
.api-docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.api-docs-actions .btn { text-decoration: none; }
.api-docs-actions .is-light { color: #123b66; background: #fff; }
.api-docs-actions .is-outline { border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.api-docs-base { padding: 25px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(5,25,47,.35); box-shadow: 0 24px 60px rgba(2,17,32,.22); }
.api-docs-base span { display: block; color: #91c7ee; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.api-docs-base code { display: block; margin-top: 10px; overflow-wrap: anywhere; color: #fff; font-size: .95rem; }
.api-docs-main { padding: 64px 0 90px; }
.api-docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 34px; }
.api-docs-nav { position: sticky; top: calc(var(--site-header-height) + 22px); display: grid; min-width: 0; max-height: calc(100vh - var(--site-header-height) - 44px); overflow-y: auto; padding: 18px; border: 1px solid #dae3ed; border-radius: 16px; background: #fff; box-shadow: 0 10px 25px rgba(17,50,82,.05); }
.api-docs-nav strong { margin: 3px 10px 10px; color: #122f4c; }
.api-docs-nav a { padding: 9px 10px; border-radius: 8px; color: #5a6b7d; text-decoration: none; font-size: .9rem; }
.api-docs-nav a:hover { color: #0e5da5; background: #edf6fd; }
.api-docs-content { display: grid; min-width: 0; gap: 26px; }
.api-docs-section { min-width: 0; scroll-margin-top: 25px; padding: 30px; border: 1px solid #dae3ed; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(17,50,82,.055); }
.api-docs-section h2 { margin: 0 0 12px; color: #112f4d; font-size: 1.55rem; }
.api-docs-section > p { margin: 0; color: #53677b; line-height: 1.7; }
.api-docs-note { margin-top: 18px; padding: 14px 16px; border-left: 4px solid #1680c2; border-radius: 0 10px 10px 0; color: #214c6d; background: #edf7fd; }
.api-docs-code { margin: 20px 0 0; overflow-x: auto; border-radius: 14px; color: #e9f5ff; background: #102a43; }
.api-docs-code pre { margin: 0; padding: 20px; font-size: .84rem; line-height: 1.65; }
.api-docs-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.api-docs-method { display: inline-flex; min-width: 48px; justify-content: center; border-radius: 7px; padding: 4px 7px; font-size: .72rem; font-weight: 900; }
.api-docs-method.is-get { color: #176145; background: #e5f7ef; }
.api-docs-method.is-post { color: #704f0a; background: #fff2d3; }
.api-docs-method.is-put { color: #284f93; background: #e8effc; }
.api-docs-route-index { scroll-margin-top: 25px; padding: 6px 4px 0; }
.api-docs-route-index h2 { margin: 0; color: #112f4d; font-size: 2rem; }
.api-docs-route-index p { max-width: 780px; margin: 10px 0 0; color: #5a6d80; line-height: 1.65; }
.api-docs-routes { display: grid; gap: 14px; }
.api-docs-route { min-width: 0; scroll-margin-top: 25px; overflow: hidden; border: 1px solid #dae3ed; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(17,50,82,.045); }
.api-docs-route > summary { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(0,1.2fr) 24px; align-items: center; gap: 22px; padding: 22px 24px; cursor: pointer; list-style: none; }
.api-docs-route > summary::-webkit-details-marker { display: none; }
.api-docs-route > summary:hover { background: #f7fbfe; }
.api-docs-route[open] > summary { border-bottom: 1px solid #e2e8ef; background: #f7fbfe; }
.api-docs-route-summary-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.api-docs-route-summary-main > code { overflow-wrap: anywhere; color: #143858; font-size: .86rem; font-weight: 800; }
.api-docs-route-summary-copy { display: grid; min-width: 0; gap: 4px; }
.api-docs-route-summary-copy strong { color: #143553; }
.api-docs-route-summary-copy small { color: #627589; font-size: .82rem; line-height: 1.45; }
.api-docs-route-chevron { width: 10px; height: 10px; border-right: 2px solid #315a7d; border-bottom: 2px solid #315a7d; transform: rotate(45deg); transition: transform .18s ease; }
.api-docs-route[open] .api-docs-route-chevron { transform: rotate(225deg); }
.api-docs-route-body { min-width: 0; padding: 8px 28px 30px; }
.api-docs-route h3 { margin: 28px 0 10px; color: #163a5b; font-size: 1.05rem; }
.api-docs-route h4 { margin: 18px 0 8px; color: #36556f; font-size: .92rem; }
.api-docs-route-body > p { color: #53677b; line-height: 1.7; }
/* Route schemas */
.api-docs-schema { margin-top: 16px; overflow: hidden; border: 1px solid #dbe4ed; border-radius: 14px; background: #fff; }
.api-docs-schema-toolbar, .api-docs-code-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.api-docs-schema-toolbar { padding: 9px 12px; border-bottom: 1px solid #e4ebf2; background: #f7f9fc; }
.api-docs-schema-toolbar button, .api-docs-code-toolbar button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 7px; color: #49647c; background: transparent; font: inherit; font-size: .69rem; font-weight: 750; cursor: pointer; }
.api-docs-schema-toolbar button:hover { color: #0d68a8; background: #edf6fd; }
.api-docs-schema-toolbar svg, .api-docs-code-toolbar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.api-docs-parameter-group + .api-docs-parameter-group { border-top: 1px solid #dbe4ed; }
.api-docs-parameter-group > h4 { margin: 0; padding: 11px 15px; color: #35536d; background: #eef3f8; font-size: .69rem; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.api-docs-tree-level { min-width: 0; }
.api-docs-tree-level .api-docs-tree-level { margin: 0 0 7px 21px; border-left: 1px solid #cfdae5; }
.api-docs-tree-node { position: relative; min-width: 0; border-top: 1px solid #e8edf3; }
.api-docs-tree-level > .api-docs-tree-node:first-child { border-top: 0; }
.api-docs-tree-node.has-children > summary, .api-docs-tree-row { display: grid; grid-template-columns: minmax(150px,1fr) auto auto; align-items: center; gap: 9px; min-height: 43px; padding: 8px 13px; }
.api-docs-tree-node.has-children > summary { position: relative; padding-left: 34px; cursor: pointer; list-style: none; }
.api-docs-tree-node.has-children > summary::-webkit-details-marker { display: none; }
.api-docs-tree-node.has-children > summary::before { position: absolute; left: 15px; width: 7px; height: 7px; border-right: 1.7px solid #55718a; border-bottom: 1.7px solid #55718a; content: ""; transform: rotate(-45deg); transition: transform .16s ease; }
.api-docs-tree-node.has-children[open] > summary::before { transform: rotate(45deg); }
.api-docs-tree-node.has-children > summary:hover { background: #f8fbfd; }
.api-docs-tree-name { min-width: 0; }
.api-docs-tree-name code { color: #153f62; font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; }
.api-docs-type { padding: 2px 7px; border-radius: 999px; color: #52697d; background: #edf2f6; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .64rem; }
.api-docs-requirement { padding: 3px 7px; border-radius: 999px; font-size: .61rem; font-weight: 850; letter-spacing: .02em; }
.api-docs-requirement.is-required { color: #8b3a15; background: #fff0e7; }
.api-docs-requirement.is-conditional { color: #72580b; background: #fff7d9; }
.api-docs-requirement.is-optional { color: #496175; background: #edf2f6; }
.api-docs-tree-info { padding: 0 13px 11px; }
.api-docs-tree-node.has-children > .api-docs-tree-info { padding-left: 34px; }
.api-docs-tree-info > p { margin: 0; color: #53687b; font-size: .75rem; line-height: 1.5; }
.api-docs-tree-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 7px; }
.api-docs-tree-meta span { display: grid; gap: 2px; min-width: 180px; }
.api-docs-tree-meta small { color: #8190a0; font-size: .59rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.api-docs-tree-meta code { color: #294c68; font-size: .69rem; overflow-wrap: anywhere; }
.api-docs-inline-values { margin-top: 9px; padding: 9px 11px; border-left: 3px solid #5da5d3; border-radius: 0 8px 8px 0; background: #f2f8fc; }
.api-docs-inline-values > strong { display: block; margin-bottom: 6px; color: #315675; font-size: .65rem; letter-spacing: .035em; text-transform: uppercase; }
.api-docs-inline-values ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.api-docs-inline-values li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 9px; color: #496174; font-size: .7rem; line-height: 1.4; }
.api-docs-inline-values li code { min-width: 32px; color: #0d659e; font-size: .69rem; font-weight: 850; }
.api-docs-value-key { padding: 1px 5px; border-radius: 4px; color: #5c6370; background: #e4edf4; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .62rem; }
.api-docs-values-unavailable { margin: 8px 0 0 !important; padding: 7px 9px; border-radius: 7px; color: #755c16 !important; background: #fff7db; font-size: .68rem !important; }

/* Request and response console */
.api-docs-console { margin-top: 24px; overflow: hidden; border: 1px solid #243e51; border-radius: 15px; color: #dce9f2; background: #102532; box-shadow: 0 14px 32px rgba(13,37,52,.13); }
.api-docs-console-head { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.1); background: #0c1e29; }
.api-docs-console-head > code { min-width: 0; color: #d5e5ef; font-size: .72rem; overflow-wrap: anywhere; }
.api-docs-console-tabs, .api-docs-language-tabs, .api-docs-response-statuses { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 12px 0; }
.api-docs-console-tabs button, .api-docs-language-tabs button, .api-docs-response-statuses button, .api-docs-error-picker button { border: 0; border-radius: 7px; color: #9eb2c1; background: transparent; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.api-docs-console-tabs button { padding: 8px 13px; }
.api-docs-language-tabs button, .api-docs-response-statuses button { padding: 6px 10px; }
.api-docs-console-tabs button[aria-selected="true"], .api-docs-language-tabs button[aria-selected="true"], .api-docs-response-statuses button[aria-selected="true"] { color: #fff; background: #245d7c; }
.api-docs-console-tabs button:hover, .api-docs-language-tabs button:hover, .api-docs-response-statuses button:hover, .api-docs-error-picker button:hover { color: #fff; }
.api-docs-console-body { padding: 4px 12px 13px; }
.api-docs-tab-panels > [hidden] { display: none !important; }
.api-docs-snippet, .api-docs-json-viewer { margin-top: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #0a1922; }
.api-docs-code-toolbar { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
.api-docs-code-toolbar button { color: #a8bdca; }
.api-docs-code-toolbar button:hover { color: #fff; background: rgba(255,255,255,.07); }
.api-docs-snippet pre, .api-docs-json-viewer pre { max-height: 520px; margin: 0; overflow: auto; padding: 14px; color: #dce9f2; font-size: .7rem; line-height: 1.55; white-space: pre; }
.api-docs-json-tree { max-height: 560px; overflow: auto; padding: 13px 15px; color: #cbd9e2; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .69rem; line-height: 1.55; }
.api-docs-json-branch { min-width: max-content; }
.api-docs-json-branch > summary { display: flex; align-items: baseline; gap: 3px; cursor: pointer; list-style: none; }
.api-docs-json-branch > summary::-webkit-details-marker { display: none; }
.api-docs-json-branch > summary::before { width: 10px; color: #6fa5c3; content: "+"; font-weight: 900; }
.api-docs-json-branch[open] > summary::before { content: "−"; }
.api-docs-json-branch > summary small { margin-left: 4px; color: #668093; font-size: .68rem; }
.api-docs-json-children { margin-left: 15px; padding-left: 10px; border-left: 1px solid #254252; }
.api-docs-json-line { min-width: max-content; padding-left: 10px; }
.api-docs-json-close { padding-left: 10px; }
.api-docs-json-tree .is-key { color: #7fc3ec; }
.api-docs-json-tree .is-string { color: #acd98d; }
.api-docs-json-tree .is-number { color: #f1c679; }
.api-docs-json-tree .is-boolean, .api-docs-json-tree .is-null { color: #d9a4e8; }
.api-docs-json-tree .is-punctuation { color: #e8f0f5; }
.api-docs-response-statuses button span { margin-right: 3px; color: #7f99aa; font-size: .58rem; }
.api-docs-response-caption, .api-docs-error-description { margin: 10px 3px 5px; color: #a9bdca; font-size: .72rem; line-height: 1.5; }
.api-docs-response-caption strong { color: #8ed3ad; }
.api-docs-error-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 10px 0 4px; }
.api-docs-error-picker > strong { margin-right: 5px; color: #a9bdca; font-size: .66rem; }
.api-docs-error-picker button { padding: 5px 8px; color: #d7a6ad; background: rgba(187,68,84,.1); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .62rem; }
.api-docs-error-picker button[aria-selected="true"] { color: #fff; background: #9a3e4d; }
@media (max-width: 900px) {
  .api-docs-hero-grid, .api-docs-layout { grid-template-columns: minmax(0, 1fr); }
  .api-docs-nav { position: static; max-height: none; grid-template-columns: repeat(2, 1fr); }
  .api-docs-nav strong { grid-column: 1 / -1; }
  .api-docs-route > summary { grid-template-columns: 1fr 24px; gap: 14px; }
  .api-docs-route-summary-copy { grid-column: 1 / -1; grid-row: 2; }
  .api-docs-route-chevron { grid-column: 2; grid-row: 1; }
}
@media (max-width: 620px) {
  .api-docs-hero { padding: 60px 0 48px; }
  .api-docs-main { padding: 40px 0 65px; }
  .api-docs-section { padding: 22px; }
  .api-docs-nav { grid-template-columns: 1fr; }
  .api-docs-route > summary { padding: 18px; }
  .api-docs-route-body { padding: 4px 18px 24px; }
  .api-docs-tree-node.has-children > summary, .api-docs-tree-row { grid-template-columns: minmax(120px,1fr) auto; }
  .api-docs-requirement { grid-column: 1 / -1; width: max-content; margin-top: -4px; }
  .api-docs-tree-meta { display: grid; }
  .api-docs-tree-meta span { min-width: 0; }
  .api-docs-tree-level .api-docs-tree-level { margin-left: 12px; }
  .api-docs-console-body { padding-inline: 8px; }
  .api-docs-console-tabs, .api-docs-language-tabs, .api-docs-response-statuses { padding-inline: 8px; }
  .api-docs-console {
    --api-docs-console-mobile-font-size: .58rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .api-docs-page .api-docs-console,
  .api-docs-page .api-docs-console :is(code, pre, button, span, strong, small, p, summary, div) {
    font-size: var(--api-docs-console-mobile-font-size);
  }
  .api-docs-schema-toolbar span, .api-docs-code-toolbar span { display: none; }
}
