/* Documentation shares the Console's aurora and glass surface palette. */
@font-face { font-family:"IBM Plex Mono Docs"; src:url('/website/assets/fonts/ibm-plex-mono-latin.woff2') format('woff2'); font-weight:400; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"IBM Plex Mono Docs"; src:url('/website/assets/fonts/ibm-plex-mono-cyrillic.woff2') format('woff2'); font-weight:400; font-display:swap; unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
.docs-page {
  --bg:#010102;
  --docs-accent:#be8ef7;
  --docs-muted:#a1a7c0;
  --docs-text:#c0c4d7;
  --docs-line:rgba(205,215,255,.16);
  --docs-hover:rgba(171,107,255,.12);
  --glass-fill:linear-gradient(135deg,rgba(236,225,255,.09),rgba(236,225,255,.018)),rgba(15,13,22,.42);
  --glass-edge:rgba(224,211,255,.2);
  --glass-shadow:0 12px 36px rgba(3,5,16,.22),inset 0 1px 0 rgba(245,235,255,.12);
  --mono:"IBM Plex Mono Docs","SFMono-Regular",Consolas,monospace;
  position:relative; isolation:isolate; background:var(--bg); color:#f4f3f6;
  font-family:"Space Grotesk Docs",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.docs-page::before,.docs-page::after {
  display:block; content:""; position:fixed; z-index:-1; width:150vw; height:155vh;
  border-radius:50%; filter:blur(44px); opacity:.5; pointer-events:none; background-repeat:no-repeat; transform-origin:center;
}
.docs-page::before {
  inset:-62vh auto auto -15vw;
  background-image:radial-gradient(ellipse at center,transparent 25%,rgba(107,13,230,.24) 35%,rgba(147,37,255,.48) 45%,rgba(96,15,176,.2) 57%,transparent 70%);
  animation:docs-aurora-drift 22s ease-in-out -7s infinite;
}
.docs-page::after {
  inset:-40vh auto auto -64vw;
  background-image:radial-gradient(ellipse at center,transparent 28%,rgba(93,7,207,.2) 37%,rgba(129,24,237,.38) 47%,rgba(82,13,144,.14) 59%,transparent 71%);
  animation:docs-aurora-flow 28s ease-in-out -16s infinite;
}
.docs-page :is(.docs-sidebar,.docs-intro,.doc-section) {
  border:1px solid var(--glass-edge); background:var(--glass-fill); box-shadow:var(--glass-shadow);
  backdrop-filter:blur(24px) saturate(135%); -webkit-backdrop-filter:blur(24px) saturate(135%);
}
.docs-page .brand { gap:8px; font-size:20px; }
.docs-page :is(a,button,summary,pre):focus-visible { outline:2px solid var(--docs-accent); outline-offset:4px; }
.docs-page .button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:10px; min-height:44px; font-size:13px; padding:11px 15px; }
.docs-page .button svg { width:17px; height:17px; flex:none; }
.docs-page .primary { background:#8b3fd0; border-color:#bd7bff; color:#fff; box-shadow:inset 0 1px rgba(255,255,255,.09); }
.docs-page .primary:hover { background:#9d4edd; }
.docs-page .glass { color:#e4d8f3; border:1px solid var(--docs-line); background:rgba(24,20,33,.35); }
.docs-page .glass:hover { background:var(--docs-hover); }
.docs-page .docs-shell { width:min(1224px,calc(100% - 48px)); grid-template-columns:224px minmax(0,1fr); gap:28px; padding-top:116px; padding-bottom:64px; }
.docs-page .docs-sidebar { position:sticky; top:106px; max-height:calc(100svh - 124px); padding:18px 14px; border-radius:16px; scrollbar-width:none; }
.docs-page .docs-sidebar::-webkit-scrollbar { display:none; }
.docs-page .docs-home { gap:7px; font-size:12px; color:var(--docs-muted); margin:0 0 14px; min-height:32px; }
.docs-home svg { width:15px; height:15px; }
.docs-brand { display:flex; align-items:center; gap:10px; padding:4px 4px 24px; }
.docs-brand img { flex:none; object-fit:contain; }
.docs-page .docs-label { font-size:19px; letter-spacing:-.5px; line-height:1.3; margin:0; }
.docs-brand > div > span { color:var(--docs-muted); display:block; font-size:11px; margin-top:5px; }
.docs-page .docs-search-label { font-size:12px; color:var(--docs-text); }
.docs-page .docs-search-box { background:rgba(13,11,20,.35); border-color:var(--docs-line); color:var(--docs-muted); padding:0 10px; gap:8px; }
.docs-search-box > svg { width:16px; height:16px; flex:none; }
.docs-page .docs-search-box input { font-size:12px; }
.docs-page .docs-search-box input::placeholder { color:var(--docs-muted); }
.docs-page .docs-search-box:is(:hover,:focus-within) { border-color:var(--docs-line); box-shadow:none; }
.docs-page .docs-search-box:has(input:focus-visible) { border-color:#57515d; }
.docs-page :is(input,textarea,select):focus-visible { outline:1px solid #57515d; outline-offset:2px; box-shadow:none; }
.docs-page .docs-search-box input:focus-visible { outline:none; }
.docs-page .docs-search-status { min-height:0; font-size:12px; color:var(--docs-muted); margin:8px 0; }
.docs-search-status:empty { display:none; }
.docs-page .docs-search-results { background:rgba(25,18,38,.96); border-color:var(--docs-line); }
.docs-page .docs-sidebar nav { display:flex; flex-direction:column; flex-wrap:nowrap; border:0; margin:20px 0 16px; }
.docs-nav-group { padding:0; color:var(--docs-muted); font-size:10px; letter-spacing:.09em; margin:24px 9px 8px; line-height:1.5; }
.docs-nav-group:first-child { margin-top:0; }
.docs-page .docs-sidebar nav a { border:0; background:none; gap:10px; padding:10px 9px; font-size:12px; border-radius:9px; min-height:44px; color:var(--docs-text); }
.docs-sidebar nav a svg { width:17px; height:17px; flex:none; opacity:.85; }
.docs-sidebar nav a span { min-width:0; }
.docs-page .docs-sidebar nav a:hover { background:var(--docs-hover); color:#fff; }
.docs-page .docs-sidebar nav a.active { background:linear-gradient(110deg,rgba(162,79,255,.2),rgba(142,63,255,.05)); color:#f4f3f6; box-shadow:inset 2px 0 0 var(--docs-accent); }
.docs-console-link { display:flex; align-items:center; gap:9px; min-height:44px; border-top:1px solid var(--docs-line); padding:18px 9px 4px; color:var(--docs-text); font-size:12px; }
.docs-console-link svg { width:17px; height:17px; flex:none; }
.docs-console-link svg:last-child { margin-left:auto; width:14px; height:14px; color:var(--docs-muted); }
.docs-page .docs-content { max-width:none; min-width:0; }
.docs-breadcrumb { display:flex; align-items:center; gap:9px; color:var(--docs-muted); font-size:12px; margin:0 0 16px; }
.docs-breadcrumb svg { width:12px; height:12px; }
.docs-page .docs-intro { padding:32px; border-radius:18px; }
.docs-page .docs-intro .eyebrow { display:flex; align-items:center; gap:9px; font-size:11px; letter-spacing:.1em; color:#d4b3ff; margin:0 0 22px; }
.docs-intro .eyebrow svg { width:17px; height:17px; }
.docs-page .docs-intro h1 { font-size:clamp(32px,3.2vw,48px); font-weight:650; letter-spacing:-1.8px; line-height:1.13; margin:0; text-wrap:balance; }
.docs-page .docs-intro > p:last-of-type { font-size:15px; line-height:1.8; color:var(--docs-text); margin:20px 0 0; max-width:64ch; }
.docs-page .docs-intro-actions { margin-top:24px; gap:10px; }
.docs-intro-footer { display:flex; flex-wrap:wrap; align-items:center; gap:20px; border-top:1px solid var(--docs-line); margin-top:30px; padding-top:18px; color:var(--docs-muted); }
.docs-intro-footer > span { display:inline-flex; align-items:center; gap:7px; font-size:12px; }
.docs-intro-footer svg { width:16px; height:16px; color:var(--docs-accent); }
.docs-page .doc-section { border-radius:18px; padding:28px; margin-top:24px; scroll-margin-top:0; }
.docs-page .doc-section h2 { margin:0 0 20px; font-size:25px; line-height:1.3; letter-spacing:-.7px; text-wrap:balance; }
.docs-page .doc-section .doc-anchor { align-items:center; gap:11px; }
.doc-anchor > svg { width:22px; height:22px; flex:none; color:var(--docs-accent); }
.docs-page .doc-section h3 { font-size:18px; line-height:1.5; margin:28px 0 12px; }
.docs-page .doc-section p,.docs-page .doc-section li { color:var(--docs-text); font-size:15px; line-height:1.8; overflow-wrap:anywhere; }
.doc-section > p { max-width:70ch; }
.docs-page .doc-section .doc-note { font-size:13px; color:var(--docs-muted); }
.docs-page .doc-section a:not(.button,.doc-anchor,.docs-start-grid a,.docs-model-card) { color:#d4b3ff; }
.docs-page .docs-start-grid { gap:12px; }
.docs-page .doc-section .docs-start-grid a { display:block; border:1px solid var(--docs-line); background:rgba(25,19,37,.3); padding:18px; border-radius:12px; }
.docs-page .doc-section .docs-start-grid a:hover { background:var(--docs-hover); border-color:rgba(190,142,247,.5); }
.docs-start-top { display:flex; align-items:center; gap:10px; color:var(--docs-accent); }
.docs-start-top > svg { width:22px; height:22px; flex:none; }
.docs-start-top > svg:last-child { width:14px; height:14px; color:var(--docs-muted); margin-left:auto; }
.docs-page .docs-start-top > span { font:11px var(--mono); color:var(--docs-muted); padding:0; }
.docs-page .docs-start-grid h3 { font-size:14px; line-height:1.5; margin:18px 0 7px; }
.docs-page .docs-start-grid p { font-size:12px; line-height:1.7; margin:0; }
.docs-page .code-window { background:rgba(5,5,10,.5); border:1px solid var(--docs-line); border-radius:12px; }
.docs-page .code-toolbar { background:rgba(236,225,255,.035); border-color:var(--docs-line); color:var(--docs-muted); padding:6px 12px 6px 18px; }
.code-toolbar > span { display:flex; align-items:center; gap:8px; }
.code-toolbar > span svg { width:15px; height:15px; }
.docs-page .copy-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#d4b3ff; }
.copy-button svg { width:14px; height:14px; }
.docs-page .code-window pre { color:#ded5ed; line-height:1.9; font-size:12px; }
.docs-page .copy-button:hover { background:var(--docs-hover); border-color:var(--docs-line); }
.docs-page .endpoint { background:rgba(236,225,255,.035); border:1px solid var(--docs-line); border-radius:10px; }
.docs-page .endpoint > span { color:#d4b3ff; background:rgba(168,85,247,.12); border:1px solid rgba(190,142,247,.2); border-radius:5px; padding:4px 6px; }
.docs-page .doc-callout { border:1px solid rgba(190,142,247,.3); border-left:3px solid var(--docs-accent); background:rgba(162,79,255,.08); border-radius:10px; }
.docs-page .doc-callout p { color:#d4c8e5; font-size:14px; }
.docs-page .doc-table-wrap { border-color:var(--docs-line); background:rgba(8,8,15,.22); }
.docs-page th { background:rgba(236,225,255,.05); color:#eee5f8; }
.docs-page td { color:var(--docs-text); }
.docs-page th,.docs-page td { border-color:rgba(205,215,255,.09); }
.docs-page .docs-code-tabs button { color:var(--docs-text); }
.docs-page .docs-code-tabs button[aria-selected="true"] { color:#f4f3f6; background:var(--docs-hover); border-color:var(--docs-accent); }
.docs-page .docs-bonus-grid > div { background:rgba(162,79,255,.07); border-color:var(--docs-line); }
.docs-diagram { margin:24px 0; padding:20px; border:1px solid var(--docs-line); border-radius:14px; background:rgba(5,5,12,.3); }
.docs-diagram figcaption { display:flex; align-items:center; gap:8px; margin-bottom:22px; font-size:13px; color:#ece4f6; }
.docs-diagram figcaption > svg { width:17px; height:17px; color:var(--docs-accent); flex:none; }
.docs-diagram figcaption > small { font:10px var(--mono); color:var(--docs-muted); margin-left:auto; letter-spacing:.06em; }
.docs-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:0; padding:0; list-style:none; }
.docs-flow > li { position:relative; margin:0; border:1px solid var(--docs-line); border-radius:11px; padding:18px 14px; background:linear-gradient(145deg,rgba(190,142,247,.08),rgba(236,225,255,.015)); }
.docs-flow > li:not(:last-child)::after { content:""; position:absolute; width:26px; height:1px; right:-28px; top:43px; background:rgba(190,142,247,.65); }
.docs-flow > li:not(:last-child)::before { content:""; position:absolute; top:39px; right:-28px; border-left:5px solid var(--docs-accent); border-top:4px solid transparent; border-bottom:4px solid transparent; }
.docs-flow-icon { display:flex; align-items:center; height:30px; margin-bottom:14px; color:var(--docs-accent); }
.docs-flow-icon svg { width:26px; height:26px; }
.docs-flow-icon img { object-fit:contain; }
.docs-flow > li > strong { display:block; font-size:13px; line-height:1.5; color:#f4f3f6; }
.docs-page .docs-flow > li > p { margin:7px 0 0; font-size:12px; line-height:1.7; color:var(--docs-muted); }
.docs-page .docs-diagram .docs-diagram-caption { font-size:12px; line-height:1.7; color:var(--docs-muted); margin:18px 0 0; }
.docs-provider-logos { display:flex; flex-wrap:wrap; gap:10px; padding:4px 0 12px; }
.docs-provider-logos > span { display:inline-flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--docs-line); border-radius:10px; background:rgba(236,225,255,.03); }
.docs-provider-logos img { flex:none; object-fit:contain; }
.docs-provider-logos img[src$="/openai.svg"] { filter:brightness(0) invert(1); }
.docs-provider-logos strong { color:var(--docs-text); font-size:12px; font-weight:500; }
.docs-page .docs-on-page { top:128px; font-size:12px; }
.docs-page .docs-on-page > p { color:var(--docs-muted); font-size:10px; margin:0 0 16px; }
.docs-page .docs-on-page > a { min-height:34px; border-left:1px solid var(--docs-line); padding:6px 0 6px 12px; font-size:12px; line-height:1.45; color:var(--docs-muted); }
.docs-page .docs-on-page > a:hover,.docs-page .docs-on-page > a.active { border-color:var(--docs-accent); color:#e6d5ff; }
.docs-page .docs-rail-card { margin-top:24px; padding:18px 14px; border:1px solid var(--docs-line); border-radius:12px; background:var(--glass-fill); }
.docs-rail-card > img { display:block; object-fit:contain; margin-bottom:14px; }
.docs-page .docs-rail-card > span { font-size:13px; color:#ece4f6; }
.docs-page .docs-rail-card > p { color:var(--docs-muted); font-size:12px; }
.docs-page .docs-rail-card > a { font-size:12px; color:#d4b3ff; }
.docs-page .footer { width:min(1440px,calc(100% - 48px)); border-color:var(--docs-line); margin-top:0; color:var(--docs-muted); }
.docs-page .footer .brand { color:#f4f3f6; }
.docs-page .toast { background:rgba(29,20,43,.96); border-color:var(--glass-edge); color:#f4f3f6; }
@keyframes docs-aurora-drift {
  0%,100% { transform:translate3d(3%,1%,0) rotate(-8deg) scale(1,.9); opacity:.41; }
  50% { transform:translate3d(-4%,7%,0) rotate(5deg) scale(1.08,.98); opacity:.5; }
}
@keyframes docs-aurora-flow {
  0%,100% { transform:translate3d(-3%,-2%,0) rotate(7deg) scale(1.06,.92); opacity:.35; }
  50% { transform:translate3d(7%,5%,0) rotate(-5deg) scale(.98,1.04); opacity:.45; }
}
@media(max-width:1200px) {
  .docs-page .docs-shell { grid-template-columns:210px minmax(0,1fr); gap:24px; }
  .docs-page .docs-on-page { display:none; }
  .docs-page .doc-section { padding:24px; }
  .docs-flow { gap:20px; }
  .docs-flow > li:not(:last-child)::after { width:18px; right:-20px; }
  .docs-flow > li:not(:last-child)::before { right:-20px; }
}
@media(max-width:820px) {
  .docs-page .docs-shell { width:calc(100% - 32px); grid-template-columns:minmax(0,1fr); gap:24px; padding-top:96px; }
  .docs-page .docs-sidebar { position:static; max-height:none; overflow:visible; padding:16px; }
  .docs-brand,.docs-console-link { display:none; }
  .docs-page .docs-mobile-topics { display:block; border:0; border-top:1px solid var(--docs-line); border-radius:0; padding:0; margin:14px 0 0; background:none; }
  .docs-mobile-topics summary { gap:8px; color:var(--docs-text); }
  .docs-mobile-topics summary > svg { width:17px; height:17px; color:var(--docs-accent); }
  .docs-mobile-topics summary::after { margin-left:auto; }
  .docs-page .docs-mobile-topics nav { margin:16px 0 0; }
  .docs-page .docs-intro { padding:28px; }
  .docs-page .docs-intro h1 { font-size:40px; }
  .docs-page .doc-section { scroll-margin-top:0; }
  .docs-page .docs-breadcrumb { display:none; }
  .docs-page .footer { width:calc(100% - 32px); }
}
@media(max-width:600px) {
  .docs-page::before,.docs-page::after { width:230vw; height:145vh; filter:blur(32px); }
  .docs-page .docs-intro { padding:24px 20px; }
  .docs-page .docs-intro h1 { font-size:34px; letter-spacing:-1.2px; }
  .docs-page .doc-section { padding:24px 20px; }
  .docs-page .doc-section h2 { font-size:23px; }
  .docs-page .doc-section .doc-anchor { align-items:flex-start; gap:10px; }
  .doc-anchor > svg { margin-top:3px; width:20px; height:20px; }
  .docs-page .docs-start-grid { grid-template-columns:minmax(0,1fr); }
  .docs-page .doc-section .docs-start-grid a { padding:18px!important; }
  .docs-page .docs-start-grid h3 { font-size:16px; margin:12px 0 6px; }
  .docs-page .doc-section p,.docs-page .doc-section li { font-size:14px; }
  .docs-page .docs-start-grid p { font-size:13px; }
  .docs-intro-footer { gap:16px; }
  .docs-diagram { padding:16px; }
  .docs-diagram figcaption { align-items:flex-start; gap:7px; font-size:13px; }
  .docs-diagram figcaption > small { display:none; }
  .docs-flow { grid-template-columns:minmax(0,1fr); gap:24px; }
  .docs-flow > li { padding:16px; }
  .docs-flow-icon { margin-bottom:10px; }
  .docs-flow > li:not(:last-child)::after { width:1px; height:22px; right:auto; left:29px; top:auto; bottom:-24px; }
  .docs-flow > li:not(:last-child)::before { border:0; border-top:5px solid var(--docs-accent); border-left:4px solid transparent; border-right:4px solid transparent; left:26px; right:auto; top:auto; bottom:-24px; }
  .docs-page .docs-flow > li > p,.docs-page .docs-diagram .docs-diagram-caption { font-size:12px; }
  .docs-page .docs-flow > li > strong { font-size:14px; }
  .docs-provider-logos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .docs-provider-logos > span { padding:10px; gap:8px; }
  .docs-provider-logos img { width:20px; height:20px; }
  .docs-page .endpoint code { min-width:0; font-size:11px; }
  .docs-page .code-toolbar { padding-left:12px; }
  .docs-page .copy-button { padding:8px; }
  .docs-page .code-window pre { padding:16px; }
  .docs-page th,.docs-page td { padding:12px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .docs-page::before,.docs-page::after { animation:none; transform:none; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .docs-page { --glass-fill:rgba(18,14,25,.96); }
}

/* Touch controls, model cards and the two purpose-specific workflows. */
.docs-page :is(a,button,summary,input) { -webkit-tap-highlight-color:transparent; }
.docs-page :is(button,summary) { -webkit-user-select:none; user-select:none; }
.docs-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%); white-space:nowrap; border:0!important; }
.docs-actions { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.docs-page .button { max-width:100%; white-space:normal; text-align:center; }
.docs-page .docs-intro > .doc-note { font-size:12px; line-height:1.7; color:var(--docs-muted); }
.docs-motion-toggle,.docs-diagram-play { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 12px; border:1px solid var(--docs-line); border-radius:9px; background:rgba(190,142,247,.08); color:#e4d8f3; font-size:12px; line-height:1.4; flex-shrink:0; }
.docs-motion-toggle svg,.docs-diagram-play svg { width:16px; height:16px; flex:none; }
.docs-motion-toggle [data-motion-label] { color:var(--docs-accent); }
.docs-motion-toggle:disabled { opacity:.65; }
.docs-diagram-play:disabled { cursor:progress; }
.docs-diagram figcaption { justify-content:space-between; flex-wrap:wrap; gap:12px; }
.docs-diagram figcaption > strong { flex:1 1 160px; min-width:0; line-height:1.5; }
.docs-page[data-docs-motion-state="off"]::before,.docs-page[data-docs-motion-state="off"]::after { animation:none; }
.docs-page[data-docs-motion-state="off"] * { scroll-behavior:auto; }
html:has(.docs-page[data-docs-motion-state="off"]) { scroll-behavior:auto; }
.docs-page .doc-section { scroll-margin-top:106px; }

/* Agent work reads as a timeline, while the API shows a provider hub. */
#agent-workflow .docs-flow { grid-template-columns:minmax(0,1fr); gap:12px; }
#agent-workflow .docs-flow > li { display:grid; grid-template-columns:28px 30px minmax(0,1fr); gap:4px 12px; align-items:center; padding:12px 14px; border-color:transparent; background:none; }
#agent-workflow .docs-flow > li:not(:last-child)::after { width:1px; height:12px; left:28px; right:auto; top:auto; bottom:-13px; }
#agent-workflow .docs-flow > li::before { display:none; }
.docs-step-number { font:11px var(--mono); color:var(--docs-muted); }
#agent-workflow .docs-flow-icon { grid-column:2; grid-row:1 / 3; margin:0; }
#agent-workflow .docs-flow > li > strong { grid-column:3; }
.docs-page #agent-workflow .docs-flow > li > p { grid-column:3; margin:0; }
.docs-api-flow { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:24px; list-style:none; padding:0; margin:0; align-items:center; }
.docs-api-flow > li { position:relative; min-width:0; text-align:center; padding:18px 12px; border:1px solid var(--docs-line); border-radius:12px; background:rgba(236,225,255,.025); }
.docs-api-flow > li > :is(svg,img) { display:block; width:28px; height:28px; margin:0 auto 12px; color:var(--docs-accent); }
.docs-api-flow > li > strong { display:block; color:#f4f3f6; font-size:13px; line-height:1.5; }
.docs-page .docs-api-flow > li > p { font:11px/1.7 var(--mono); margin:8px 0 0; color:var(--docs-muted); }
.docs-api-flow > li:not(:last-child)::after { content:'→'; position:absolute; right:-22px; top:50%; transform:translateY(-50%); color:var(--docs-accent); }
.docs-api-flow .docs-api-hub { background:rgba(162,79,255,.1); border-color:rgba(190,142,247,.4); }
.docs-api-providers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--docs-line); }
.docs-api-providers > span { display:flex; flex-direction:column; align-items:center; gap:5px; font-size:10px; line-height:1.5; color:var(--docs-text); }
.docs-api-providers img { width:22px; height:22px; object-fit:contain; }
.docs-diagram :is(.docs-flow,.docs-api-flow) > li { transition:background .25s,border-color .25s,box-shadow .25s; }
.docs-diagram :is(.docs-flow,.docs-api-flow) > li.is-active { border-color:var(--docs-accent)!important; background:rgba(162,79,255,.17)!important; box-shadow:0 0 0 2px rgba(190,142,247,.1); }
.docs-diagram :is(.docs-flow,.docs-api-flow) > li.is-complete { border-color:rgba(190,142,247,.4)!important; }

.docs-model-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0 24px; }
.docs-page .doc-section a.docs-model-card { display:flex; flex-direction:column; min-width:0; padding:18px; border:1px solid var(--docs-line); border-radius:12px; background:rgba(25,19,37,.3); color:#f4f3f6; text-decoration:none; }
.docs-model-top { display:flex; align-items:center; gap:8px; margin-bottom:14px; color:var(--docs-muted); font-size:11px; line-height:1.5; }
.docs-model-top img { width:24px; height:24px; flex:none; object-fit:contain; }
.docs-model-monochrome { filter:brightness(0) invert(1); }
.docs-model-top > span { min-width:0; flex:1; }
.docs-model-top svg { width:15px; height:15px; flex:none; }
.docs-model-card > strong { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.docs-page .doc-section .docs-model-card > p { font-size:12px; line-height:1.7; margin:10px 0 18px; }
.docs-model-prices { display:flex; gap:24px; margin-top:auto; padding-top:14px; border-top:1px solid var(--docs-line); }
.docs-model-prices > span { display:flex; flex-direction:column; gap:4px; color:var(--docs-muted); font-size:11px; }
.docs-model-prices strong { font:500 16px/1.5 var(--mono); color:#e6d5ff; }
.docs-model-card > small { color:var(--docs-muted); font-size:10px; line-height:1.6; margin-top:8px; }
@media(hover:hover) { .docs-page .doc-section a.docs-model-card:hover { background:var(--docs-hover); border-color:rgba(190,142,247,.5); } }
@media(min-width:1100px) { .docs-model-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) { .docs-api-flow { grid-template-columns:minmax(0,1fr); gap:22px; } .docs-api-flow > li:not(:last-child)::after { content:'↓'; top:auto; bottom:-23px; right:50%; transform:translateX(50%); } .docs-api-providers { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:820px) {
  .docs-page .docs-shell { gap:16px; padding-top:88px; }
  .docs-page .docs-sidebar { position:relative; top:auto; z-index:16; display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; gap:0 8px; padding:8px; border-radius:12px; }
  .docs-page .docs-search-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .docs-page .docs-search-box { grid-column:1; grid-row:1; }
  .docs-page .docs-search-box input { font-size:16px; }
  .docs-page .docs-search-results,.docs-page .docs-search-status { grid-column:1 / -1; }
  .docs-page .docs-mobile-topics { grid-column:2; grid-row:1; margin:0; padding:0; border:0; }
  .docs-page .docs-mobile-topics summary { width:44px; height:44px; min-height:44px; padding:0; display:flex; justify-content:center; border-radius:9px; background:rgba(190,142,247,.08); border:1px solid var(--docs-line); list-style:none; }
  .docs-mobile-topics summary::-webkit-details-marker { display:none; }
  .docs-page .docs-mobile-topics summary::after { display:none; }
  .docs-page .docs-mobile-topics summary .docs-topics-icon { transform:none; color:var(--docs-text); }
  .docs-topics-icon { display:flex; flex-direction:column; gap:6px; }
  .docs-topics-icon i { display:block; width:20px; height:1px; background:currentColor; transition:transform .2s; }
  .docs-mobile-topics[open] .docs-topics-icon i:first-child { transform:translateY(3.5px) rotate(45deg); }
  .docs-mobile-topics[open] .docs-topics-icon i:last-child { transform:translateY(-3.5px) rotate(-45deg); }
  .docs-page .docs-mobile-topics nav { display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:4px; position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:15; margin:0; padding:12px; border:1px solid var(--glass-edge); border-radius:12px; background:#130e1f; max-height:calc(100svh - 170px); overflow-y:auto; box-shadow:var(--glass-shadow); }
  .docs-page .docs-mobile-topics nav a { width:100%; min-height:44px; font-size:13px; font-weight:500; border:0; margin:0; background:none; }
  .docs-page .docs-mobile-topics .docs-nav-group { padding:0; margin:10px 9px 4px; }
  .docs-page .docs-mobile-topics .docs-nav-group:first-child { margin-top:4px; }
  .docs-page .doc-section { scroll-margin-top:88px; }
}
@media(max-width:600px) {
  .docs-page .docs-shell { width:calc(100% - 24px); }
  .docs-page .docs-intro,.docs-page .doc-section { padding:20px 16px; border-radius:14px; }
  .docs-page .docs-intro h1 { font-size:30px; }
  .docs-page .docs-intro .eyebrow { margin-bottom:16px; }
  .docs-page .docs-intro-actions,.docs-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  .docs-page .docs-intro-actions .button,.docs-actions .button { width:100%; min-height:48px; }
  .docs-intro-footer { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; padding-top:16px; margin-top:20px; }
  .docs-intro-footer > span { min-height:36px; font-size:11px; }
  .docs-motion-toggle { justify-content:flex-start; font-size:11px; padding:8px; gap:6px; }
  .docs-page .doc-section h2 { font-size:21px; }
  .doc-anchor > span { display:none; }
  .docs-page .doc-section .docs-start-grid a { display:block; }
  .docs-page .docs-start-grid p { grid-column:auto; }
  .docs-diagram { padding:12px; margin:18px 0; }
  .docs-diagram-play { font-size:12px; }
  .docs-page .docs-bonus-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
  .docs-page .docs-bonus-grid strong { font-size:26px; overflow-wrap:anywhere; }
  .docs-page .docs-bonus-grid > div { padding:18px; }
  .docs-page .docs-code-tabs { padding:0; }
  .docs-page .docs-code-tabs button { flex:1 0 auto; font-size:11px; padding-inline:10px; }
}
@media(max-width:520px) { .docs-model-grid { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .docs-diagram :is(.docs-flow,.docs-api-flow) > li,.docs-topics-icon i { transition:none; } }
