/* Shared theme controls and explicit dark surfaces for all product pages. */
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #dfe4ef;border-radius:7px;background:#fff;color:#556582;font:21px/1 system-ui,sans-serif;cursor:pointer;vertical-align:middle}
.theme-toggle:hover{background:#edf2ff;color:#3155f5}.theme-toggle:focus-visible{outline:3px solid #91a7ff;outline-offset:3px}
.auth-top .lang-select{margin-left:auto}.auth-top{gap:12px}
html[data-theme=dark]{--blue:#7e9aff;--ink:#e7edf8;--muted:#a6b3c9;--line:#2c374a;--border:#2c374a;--bg:#111827;--surface:#0d131f;background:#0d131f;color-scheme:dark}
html[data-theme=dark] body{background:#0d131f;color:#e7edf8}
html[data-theme=dark] :is(header,.topbar,.sidebar,.auth-main,aside){background:#101725;border-color:#2c374a}
html[data-theme=dark] :is(.brand,footer .brand,header>a:first-child){color:#f0f4ff}
html[data-theme=dark] :is(.ai,.brand>span:last-child){color:#98a7c0}
html[data-theme=dark] :is(.mark,.primary,.btn.primary){background:#4969ed;color:#fff;border-color:#4969ed}
html[data-theme=dark] :is(.primary:hover,.btn.primary:hover){background:#5a79f4}
html[data-theme=dark] :is(.theme-toggle,.secondary,.nav-cta,.btn,.lang-select,input,select,textarea){background:#192335;border-color:#344159;color:#d7e2f7}
html[data-theme=dark] :is(.theme-toggle:hover,.secondary:hover,.btn:hover){background:#24324a}
html[data-theme=dark] .btn.primary{background:#4969ed;color:#fff}
html[data-theme=dark] :is(.panel,.metric,.model-card,.model-grid article,.billing,.space-chip,dialog){background:#141d2d;border-color:#2c374a;color:#e7edf8;box-shadow:none}
html[data-theme=dark] :is(h1,h2,h3,h4,.page-heading h1,.panel-title h2,.model-card h2,.auth-form h1){color:#edf2fd}
html[data-theme=dark] :is(.blue,.eyebrow,.text-button,.auth-link>a,a:hover,.feature-icon){color:#8ba5ff}
html[data-theme=dark] :is(.hero-copy>p,.section-head>p,.feature-grid p,.model-grid p,.developer-copy>p,.pricing-section>div>p,.faq p,.billing>p,.footnote,.soon,.closing-note,.hero-notes,.relay small,.diagram-caption,.diagram-bottom,.model-family,.provider-strip,.sdk-labels,.section p){color:#a6b3c9}
html[data-theme=dark] :is(nav,footer,footer>span,footer small,.provider-strip strong){color:#b7c4d9}
html[data-theme=dark] :is(.models-section,.pricing-section){background:#101827;border-color:#2c374a}
html[data-theme=dark] :is(.feature-grid article,.provider-strip,.model-family,.diagram-bottom,.billing-row,.faq details,footer,.intro,section){border-color:#2c374a}
html[data-theme=dark] :is(.feature-icon,.mini-code,.sdk-labels span,.tag,.formula,.developer-copy li>span){background:#192743;border-color:#304166;color:#b5c7ff}
html[data-theme=dark] :is(.mini-code span,.model-grid p,.developer-copy li p,.billing-row span+span){color:#a6b3c9}
html[data-theme=dark] .mini-code b{color:#9bb4ff}
html[data-theme=dark] .hero-grid{opacity:.15}
html[data-theme=dark] :is(.node .provider,.hub){background:#172235;border-color:#354569;box-shadow:0 12px 40px #0002}
html[data-theme=dark] .node{color:#b0c0dc}
html[data-theme=dark] .hub-label{color:#b3c6ff}
html[data-theme=dark] .wires g:first-child{stroke:#35466c}
html[data-theme=dark] .wires circle{stroke:#293a5d}
html[data-theme=dark] .mini-chart{border-color:#35466c}
html[data-theme=dark] .mini-chart i{background:#344d86}
html[data-theme=dark] .mini-chart i:nth-child(3n){background:#5671b4}
html[data-theme=dark] .mini-chart i:nth-last-child(2){background:#7e9aff}
html[data-theme=dark] .closing{background:radial-gradient(ellipse at 50% 120%,#263964,transparent 70%),#141d30;border-color:#304166}
html[data-theme=dark] .code-panel{background:#0c1220;border-color:#30405a;box-shadow:none}
html[data-theme=dark] :is(.sidebar nav a,.sidebar-bottom>a,.sidebar-bottom>button,.topbar>div>span,.page-heading p,.metric>span,.metric small,.panel-title>span,.panel-title>a,.chart-column>span,.chart-column small,.quickstart p,.quickstart>a,.table-note,.demo-banner,.fineprint,.auth-form .fineprint,.auth-form>p,.space-chip small,.user-card small,.console-footer,.model-card>p,.model-card>code,.model-card dt,.model-card dd,.response-stats,.request-ref,.profile-meta>div,dialog p,.auth-top){color:#a7b6d1}
html[data-theme=dark] .sidebar nav a:hover{background:#19243a}
html[data-theme=dark] .sidebar nav a.selected{background:#233459;color:#b0c4ff}
html[data-theme=dark] :is(.space-icon,.avatar,.top-avatar,.badge.adminRole){background:#263757;color:#b3c7ff}
html[data-theme=dark] :is(.demo-banner,.quickstart){background:#182743;border-color:#304466}
html[data-theme=dark] .quickstart h2{color:#edf2fd}
html[data-theme=dark] .chart{background:repeating-linear-gradient(to top,transparent 0,transparent 42px,#202d43 42px,#202d43 43px)}
html[data-theme=dark] .bar-track{border-color:#405683}
html[data-theme=dark] :is(th,tr:first-child){background:#182236;border-color:#2c374a;color:#afbdd4}
html[data-theme=dark] td{border-color:#253247;color:#bdc9de}
html[data-theme=dark] td b{color:#d8e4f7}
html[data-theme=dark] .row-id{color:#98a9c5}
html[data-theme=dark] .badge{background:#283348;color:#b7c5dd}
html[data-theme=dark] :is(.badge.active,.badge.simulated){background:#183c35;color:#a0dcc7}
html[data-theme=dark] :is(.badge.disabled,.badge.revoked,.badge.suspended){background:#442936;color:#f0abb5}
html[data-theme=dark] :is(.danger,.form-error,#demo-error){color:#f0a4b2}
html[data-theme=dark] .positive{color:#93d8c1}
html[data-theme=dark] .muted{color:#a4b3cc}
html[data-theme=dark] :is(input:disabled,.secret){background:#101827;color:#a4b3cc;border-color:#2c374a}
html[data-theme=dark] :is(input::placeholder,textarea::placeholder){color:#8799b7}
html[data-theme=dark] :is(.response-empty,.empty p,.empty h3,.loading){color:#a8b7d2}
html[data-theme=dark] .response-text{color:#c8d5eb}
html[data-theme=dark] :is(.code-footer,.code-toolbar,.response-stats,.profile-meta>div,.user-card,.console-footer){border-color:#2c374a}
html[data-theme=dark] .balance-card{background:linear-gradient(110deg,#2442aa,#3c5ad0)}
html[data-theme=dark] .balance-card p{color:#d6e1ff}
html[data-theme=dark] .auth{background:#101725}
html[data-theme=dark] .auth-aside{background:radial-gradient(ellipse at 70% 50%,#25385e,transparent 70%),#141f33;border-color:#30405c}
html[data-theme=dark] :is(.auth-aside p,.auth-aside small){color:#a7b8d4}
html[data-theme=dark] .auth-nodes span{background:#1d2d48;border-color:#3a4d70;color:#c0cfe8}
html[data-theme=dark] .auth-nodes b{background:#4969ed}
html[data-theme=dark] dialog::backdrop{background:#030713bd}
html[data-theme=dark] :is(.table-wrap,table){background:#141d2d;border-color:#2c374a}
html[data-theme=dark] :is(main>section p,main>section li,aside a,.intro p){color:#b0bfd6}
html[data-theme=dark] main>section code{background:#26334d;color:#c8d8fa}
html[data-theme=dark] pre{background:#0b1220;color:#c8d8fa}
html[data-theme=dark] pre code{background:transparent}
html[data-theme=dark] .skip{background:#1b2942;color:white}
@media(max-width:1050px){header{column-gap:12px}}
@media(max-width:720px){
  body>header{flex-wrap:wrap;height:auto;min-height:74px;padding-top:14px;padding-bottom:14px;row-gap:10px;column-gap:7px}
  body>header .brand{margin-right:auto}
  body>header #home-language{margin-left:0;max-width:65px}
  body>header .theme-toggle{flex-basis:30px;width:30px;height:30px;font-size:19px}
  body>header .nav-cta{font-size:10px;padding:8px 6px}
  html[data-theme=dark] nav.open{background:#101725;border-color:#2c374a}
  .topbar>div{gap:9px}.topbar .theme-toggle{width:31px;height:31px;flex-basis:31px}
}

html[data-theme=dark] #home-language{background:#192335;border-color:#344159;color:#d7e2f7}
@media(max-width:720px){body>header nav{top:100%}}
