/* Tokens from the Kumo-based design system of the cabinet (Claude Design, colors_and_type.css). */
/* Fonts (brand/fonts.py): Inter for text and headlines, as on nim.video; Fira Code for code. One file per family: Latin, Cyrillic and ₽. */
@font-face{font-family:Inter;src:url(fonts/inter.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Fira Code";src:url(fonts/fira-code.woff2) format("woff2");font-weight:400 600;font-display:swap}
:root{
 color-scheme:light dark;
 --surface-canvas:oklch(98.75% 0 0);--surface-elevated:oklch(98% 0 0);--surface-base:#fff;--surface-contrast:oklch(8.5% 0 0);
 --line:oklch(14.5% 0 0 / .10);--hairline:oklch(93.5% 0 0);--focus-ring:oklch(15% 0 0);
 --fg-default:oklch(21% .006 285.885);--fg-strong:oklch(14.5% 0 0);--fg-subtle:oklch(50% 0 0);--fg-inactive:oklch(87% 0 0);--fg-inverse:oklch(97% 0 0);
 --success-fg:oklch(43.2% .095 166.913);--danger-fg:oklch(50.5% .19 27.5);--brand:#F48120;--own:color-mix(in oklch,#F48120 7%,var(--surface-base));
 --code-bg:oklch(16% 0 0);
 --font-sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --font-mono:"Fira Code",ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono","Courier New",monospace;
 --pad:64px;
 /* Side padding that grows past --max so content stops at --max on wide monitors while backgrounds stay full-bleed; % resolves per element at var() use. */
 --max:1312px;--gutter:max(var(--pad),calc((100% - var(--max)) / 2));
 --sun:none;--moon:inline-block;--shot-light:block;--shot-dark:none;
}
/* Dark: by the system unless the visitor picked light, or picked dark with the header button (theme.js). */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
 color-scheme:dark;
 --surface-canvas:oklch(10% 0 0);--surface-elevated:oklch(12% 0 0);--surface-base:oklch(17% 0 0);--surface-contrast:oklch(98.5% 0 0);
 --line:oklch(32% 0 0);--hairline:oklch(26.9% 0 0);--focus-ring:oklch(93.5% 0 0);
 --fg-default:oklch(97% 0 0);--fg-strong:oklch(98.5% 0 0);--fg-subtle:oklch(70.8% 0 0);--fg-inactive:oklch(36% 0 0);--fg-inverse:oklch(20.5% 0 0);
 --success-fg:oklch(78% .12 164.15);--danger-fg:oklch(70.4% .19 22.2);--code-bg:oklch(14% 0 0);
 --sun:inline-block;--moon:none;--shot-light:none;--shot-dark:block;
}}
:root[data-theme="dark"]{
 color-scheme:dark;
 --surface-canvas:oklch(10% 0 0);--surface-elevated:oklch(12% 0 0);--surface-base:oklch(17% 0 0);--surface-contrast:oklch(98.5% 0 0);
 --line:oklch(32% 0 0);--hairline:oklch(26.9% 0 0);--focus-ring:oklch(93.5% 0 0);
 --fg-default:oklch(97% 0 0);--fg-strong:oklch(98.5% 0 0);--fg-subtle:oklch(70.8% 0 0);--fg-inactive:oklch(36% 0 0);--fg-inverse:oklch(20.5% 0 0);
 --success-fg:oklch(78% .12 164.15);--danger-fg:oklch(70.4% .19 22.2);--code-bg:oklch(14% 0 0);
 --sun:inline-block;--moon:none;--shot-light:none;--shot-dark:block;
}
:root[data-theme="light"]{color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface-canvas);color:var(--fg-default);font-family:var(--font-sans);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--fg-strong)}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:4px}
h1,h2,h3,p,dl,dd,figure,ul{margin:0}
ul{padding:0;list-style:none}
svg{width:1em;height:1em;flex:none}
.hide{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.skip{position:absolute;left:16px;top:-48px;padding:8px 12px;border-radius:8px;background:var(--surface-contrast);color:var(--fg-inverse);z-index:10}
.skip:focus{top:12px}
.muted{color:var(--fg-subtle)}
.muted b{font-weight:600;color:var(--fg-strong)}
.grow{flex:1}

.btn{height:48px;padding:0 24px;display:inline-flex;align-items:center;gap:8px;border-radius:8px;background:var(--surface-contrast);color:var(--fg-inverse);font-size:16px;font-weight:600;white-space:nowrap}
.btn:hover{color:var(--fg-inverse);opacity:.88}
.btn-sm{height:40px;padding:0 18px;font-size:15px}
.btn-inverse{height:52px;padding:0 28px;background:var(--surface-base);color:var(--fg-strong)}
.btn-inverse:hover{color:var(--fg-strong)}
.card{border-radius:12px;background:var(--surface-base);box-shadow:0 0 0 1px var(--line)}

.nav{position:sticky;top:0;z-index:5;height:72px;padding:0 var(--gutter);display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line);background:color-mix(in oklch,var(--surface-canvas) 88%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px)}
.brand{font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--fg-strong)}
.brand{display:inline-flex;align-items:center;gap:10px}.mark{width:28px;height:28px;fill:var(--fg-strong)}.mark path{fill:var(--surface-canvas)}
.nav-links{display:flex;gap:28px;color:var(--fg-subtle)}
.nav-login{color:var(--fg-default)}
.theme-btn{width:40px;height:40px;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--fg-default);font-size:20px;cursor:pointer}
.theme-btn:hover{background:var(--hairline);color:var(--fg-strong)}
.theme-btn .i-sun{display:var(--sun)}.theme-btn .i-moon{display:var(--moon)}

.hero{padding:120px var(--gutter) 112px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:72px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:32px}
h1{font-size:64px;line-height:66px;font-weight:700;letter-spacing:-.045em;color:var(--fg-strong);text-wrap:balance}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips li{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 16px 0 8px;border-radius:999px;background:var(--surface-base);box-shadow:0 0 0 1px var(--line);font-size:16px;font-weight:600;color:var(--fg-strong)}
.chip-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:17px}
.chip-gpt{background:#0D0D0D;box-shadow:0 0 0 1px var(--line)}.chip-claude{background:#D97757}.chip-gemini{background:#4285F4}.chip-deepseek{background:#4D6BFE}
.lead{font-size:18px;line-height:28px;color:var(--fg-subtle);text-wrap:pretty}
.hero-lead{font-size:20px;line-height:30px}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.facts{display:flex;flex-wrap:wrap;gap:10px 28px}
.facts>span{display:inline-flex;align-items:center;gap:8px}
.facts svg{font-size:18px;color:var(--fg-strong)}

.price-card{overflow:hidden;box-shadow:0 0 0 1px var(--line),0 12px 32px -16px oklch(0% 0 0 / .18);font-variant-numeric:tabular-nums}
.price-head{padding:20px 24px 16px;display:flex;align-items:baseline;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}
.price-head h2{font-size:17px;font-weight:600;color:var(--fg-strong)}
.price-head span{font-size:13px;color:var(--fg-subtle);white-space:nowrap}
#hero-prices li,.price-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;height:60px;padding:0 24px;border-bottom:1px solid var(--hairline)}
#hero-prices li.own,.price-list li.own{background:var(--own)}
.m-name{display:flex;flex-direction:column;min-width:0}
.m-name b{font-size:16px;font-weight:600;color:var(--fg-strong)}
.m-name span{font-size:13px;color:var(--fg-subtle)}
.m-cost{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;color:var(--fg-strong);white-space:nowrap}
.best{width:7px;height:7px;border-radius:50%;background:var(--brand);flex:none}
.price-all{height:52px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:500;color:var(--fg-strong)}

.sec{padding:112px var(--gutter);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:48px}
.sec-alt{background:var(--surface-elevated)}
.sec-head{display:flex;flex-direction:column;gap:16px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-subtle)}
h2{font-size:40px;line-height:46px;font-weight:700;letter-spacing:-.03em;color:var(--fg-strong);text-wrap:balance}

.status{font-variant-numeric:tabular-nums}
.stats{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;border-bottom:1px solid var(--line)}
.stats>div{padding:32px;display:flex;flex-direction:column;gap:8px}
.stats>div+div{border-left:1px solid var(--line)}
.stats b{font-size:56px;line-height:60px;font-weight:700;letter-spacing:-.04em;color:var(--fg-strong)}
.stats span{color:var(--fg-subtle)}
.status-row,.status-axis{display:grid;grid-template-columns:200px minmax(0,1fr) 88px;gap:24px;align-items:center;padding:18px 32px}
.status-row{border-bottom:1px solid var(--hairline)}
.status-name{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--fg-strong)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--fg-inactive);flex:none}
.dot.ok{background:var(--success-fg)}.dot.bad{background:var(--brand)}
.bars{display:flex;gap:2px;height:28px}
.bars span{flex:1;border-radius:2px;background:var(--fg-inactive)}
.bars .ok{background:var(--success-fg)}.bars .bad{background:var(--brand)}
.status-pct{text-align:right;font-weight:600;color:var(--fg-strong)}
.status-axis{padding:12px 32px 16px;font-size:13px;color:var(--fg-subtle)}
.axis{display:flex;justify-content:space-between}

.models{display:flex;flex-direction:column;gap:16px}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tabs button{height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-base);color:var(--fg-default);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.tabs button[aria-pressed="true"]{border-color:var(--fg-strong);background:var(--surface-contrast);color:var(--fg-inverse)}
.tabs button span{font-size:12px;opacity:.6}
.table-wrap{overflow:auto}
.price-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.price-table th{height:44px;padding:0 8px;font-size:13px;font-weight:400;color:var(--fg-subtle);text-align:left;border-bottom:1px solid var(--line)}
.price-table td{height:60px;padding:8px;border-bottom:1px solid var(--hairline);color:var(--fg-default)}
.price-table th:first-child,.price-table td:first-child{padding-left:24px}
.price-table th:last-child,.price-table td:last-child{padding-right:24px}
.price-table .num{text-align:right;white-space:nowrap;width:120px}
.price-table td.num{color:var(--fg-strong)}
.price-table tr.own td{background:var(--own)}
.price-table tr.more{display:none}
.model-search{height:40px;max-width:360px;width:100%;padding:0 12px;border-radius:8px;border:1px solid var(--line);background:var(--surface-base);color:var(--fg-default);font:inherit;font-size:14px}
.more-btn{align-self:center;height:40px;padding:0 18px;border-radius:8px;border:1px solid var(--line);background:var(--surface-base);color:var(--fg-default);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.more-btn.is-hidden{display:none}
.price-table tbody tr:last-child td{border-bottom:0}
.price-table .c-dev{width:22%}
.alias{display:block;font-family:var(--font-mono);font-size:13px;color:var(--fg-subtle);overflow-wrap:break-word}
.price-table td b{font-weight:600;color:var(--fg-strong)}
.price-table .best{display:inline-block;margin-right:6px;vertical-align:middle}

.points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.point{display:flex;flex-direction:column;gap:8px}
.point h3{font-size:18px;line-height:24px;font-weight:600;color:var(--fg-strong)}
.point p{line-height:23px;color:var(--fg-subtle);text-wrap:pretty}
.shot img.shot-dark{display:var(--shot-dark)}
.shot img{display:var(--shot-light);width:100%;height:auto;border-radius:14px;box-shadow:0 24px 48px -20px oklch(0% 0 0 / .3),0 0 0 1px var(--line)}
.features{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 40px}
.features li{display:inline-flex;align-items:center;gap:8px}
.features svg{font-size:18px;color:var(--fg-strong)}

.split{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:72px;align-items:start}
.start-copy{display:flex;flex-direction:column;gap:40px}
.code{border-radius:12px;background:var(--code-bg);color:oklch(84% 0 0);overflow:hidden;box-shadow:0 0 0 1px oklch(100% 0 0 / .08)}
.code figcaption{height:44px;padding:0 20px;display:flex;align-items:center;border-bottom:1px solid oklch(100% 0 0 / .08);font-size:13px;color:oklch(70% 0 0)}
.code pre{margin:0;padding:20px 0;font-family:var(--font-mono);font-size:15px;line-height:26px;overflow:auto}
.code pre code,.snippet pre code{display:block;width:max-content;min-width:100%}
.code pre span{display:block;min-height:26px;padding:0 24px;white-space:pre}
.code .add{background:oklch(72% .17 150 / .14);color:oklch(88% .12 150)}
.code .del{background:oklch(65% .2 25 / .16);color:oklch(80% .12 25)}

.faq{border-bottom:1px solid var(--line)}
.faq>div{padding:22px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.faq dt{font-size:17px;font-weight:600;color:var(--fg-strong)}
.faq dd{line-height:23px;color:var(--fg-subtle);text-wrap:pretty}

.final{padding:112px var(--gutter);background:var(--surface-contrast);color:var(--fg-inverse);display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center}
.final>div{display:flex;flex-direction:column;align-items:center;gap:12px}
.final h2{font-size:48px;line-height:54px;letter-spacing:-.035em;color:var(--fg-inverse)}
.final p{font-size:18px;line-height:28px;opacity:.7}
.foot{padding:40px var(--gutter) 28px;display:flex;flex-direction:column;gap:24px;font-size:13px;color:var(--fg-subtle)}
.foot a{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:14px;color:var(--fg-default)}
.foot-links a{text-decoration:none}
.foot-legal{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:24px}
.foot-legal p{max-width:640px;line-height:20px}
.pay{display:flex;flex-wrap:wrap;gap:8px;max-width:420px}
.pay li{height:28px;padding:0 10px;display:inline-flex;align-items:center;border-radius:6px;box-shadow:0 0 0 1px var(--line);color:var(--fg-default);font-weight:500}
.faq dd a{color:var(--fg-strong);text-decoration:underline;text-underline-offset:3px}

/* Landing pages for search (scripts/seo.mjs): /codex, /openai-api, /claude-api, /models/*. */
.nav-links a[aria-current]{color:var(--fg-strong)}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--fg-subtle)}
.crumbs a:hover{color:var(--fg-strong)}
.hero-note{display:flex;flex-wrap:wrap;gap:8px 24px;color:var(--fg-subtle)}
.hero-note li{display:inline-flex;align-items:center;gap:8px}
.hero-note li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--success-fg)}
.price-list a.m-name:hover b,.price-table td a:hover b{text-decoration:underline;text-underline-offset:3px}
.steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;counter-reset:step}
.step{padding:28px;display:flex;flex-direction:column;gap:12px;counter-increment:step}
.step::before{content:counter(step);width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--surface-contrast);color:var(--fg-inverse);font-weight:700}
.step h3{font-size:18px;line-height:24px;font-weight:600;color:var(--fg-strong)}
.step p,.point p{line-height:23px;color:var(--fg-subtle);text-wrap:pretty}
.step code,.sec .lead code,.faq code{font:14px var(--font-mono);background:var(--hairline);padding:2px 6px;border-radius:4px;color:var(--fg-strong);overflow-wrap:anywhere}
.facts-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));font-variant-numeric:tabular-nums}
.facts-card>div{padding:24px;display:flex;flex-direction:column;gap:6px;min-width:0}
.facts-card>div+div{border-left:1px solid var(--line)}
.facts-card dt{font-size:14px;color:var(--fg-subtle)}
.facts-card dd{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.03em;color:var(--fg-strong)}
.calc{padding:24px 28px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 24px}
.calc p{color:var(--fg-subtle)}
.calc b{font-size:24px;font-weight:700;color:var(--fg-strong);font-variant-numeric:tabular-nums}
.related{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.related a{height:100%;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:600;color:var(--fg-strong)}
.related a:hover{box-shadow:0 0 0 1px var(--fg-subtle)}
.related a>span:first-child{display:flex;flex-direction:column;gap:4px}
.related small{font-size:13px;font-weight:400;color:var(--fg-subtle)}
@media (max-width:900px){.steps{grid-template-columns:1fr}.facts-card{grid-template-columns:repeat(2,minmax(0,1fr))}.facts-card>div:nth-child(3){border-left:0}.facts-card>div:nth-child(n+3){border-top:1px solid var(--line)}}
@media (max-width:720px){.step{padding:20px}.facts-card>div{padding:16px}.facts-card dd{font-size:22px;line-height:28px}.price-list li{padding:0 16px}}

/* Legal pages: the same header as the landing, one readable column. */
.doc{max-width:820px;padding:72px var(--pad) 0;margin:0 auto;box-sizing:content-box;line-height:1.6}
.doc h1{font-size:44px;line-height:48px;letter-spacing:-.035em;hyphens:auto;overflow-wrap:break-word}
.doc-meta{margin-top:16px;color:var(--fg-subtle);font-size:14px}
.doc h2{margin-top:48px;font-size:24px;line-height:30px;letter-spacing:-.02em}
.doc p,.doc ul,.doc ol,.doc dl,.doc table{margin-top:16px}
.doc ul{list-style:disc}
.doc ul,.doc ol{padding-left:24px}
.doc li+li{margin-top:8px}
.doc b{font-weight:600;color:var(--fg-strong)}
.doc a{color:var(--fg-strong);text-decoration:underline;text-decoration-color:var(--fg-subtle);text-underline-offset:3px}
.doc code{font:14px var(--font-mono);background:var(--hairline);padding:2px 6px;border-radius:4px}
.doc table{width:100%;border-collapse:collapse;font-size:15px}
.doc th,.doc td{border-bottom:1px solid var(--line);padding:10px 12px 10px 0;text-align:left;vertical-align:top}
.doc th{font-weight:500;color:var(--fg-subtle)}
.req{display:grid;grid-template-columns:max-content 1fr;gap:8px 24px}
.req dt{color:var(--fg-subtle)}
.req dd{margin:0}
.doc-foot{max-width:820px;margin:96px auto 0;padding:32px var(--pad) 28px;box-sizing:content-box;border-top:1px solid var(--line);font-size:13px;color:var(--fg-subtle)}
.doc-foot ul{display:flex;flex-wrap:wrap;gap:8px 24px;margin-bottom:24px;font-size:14px;color:var(--fg-default)}
.doc-foot [aria-current]{color:var(--fg-strong);text-decoration:underline;text-underline-offset:4px}

/* Docs page (Документация.dc.html): sidebar, sections of text beside a sticky code panel, search on ⌘K. */
.nav.nav-docs{height:60px;padding:0 24px;gap:24px;z-index:20}
html:has(.docs){scroll-padding-top:72px}
.nav-docs .brand{display:flex;align-items:center;gap:10px;font-size:17px}
.pill{height:22px;padding:0 8px;display:inline-flex;align-items:center;border-radius:999px;background:var(--hairline);font-size:12px;font-weight:600;letter-spacing:0;color:var(--fg-default)}
.nav-docs .nav-login{font-size:14px}
.nav-docs .btn-sm{height:36px;padding:0 14px;font-size:14px}
.nav-docs .theme-btn{width:36px;height:36px;font-size:18px}
kbd{height:22px;padding:0 6px;display:inline-flex;align-items:center;border-radius:4px;border:1px solid var(--line);font:12px var(--font-sans);color:var(--fg-subtle)}
.search-btn{flex:1;max-width:420px;height:36px;padding:0 10px 0 12px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface-base);color:var(--fg-subtle);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.search-btn:hover{border-color:var(--fg-subtle)}
.search-btn svg{font-size:16px}
.docs{display:grid;grid-template-columns:clamp(200px,18vw,248px) minmax(0,1fr);max-width:1480px;margin:0 auto}
.docs-nav{position:sticky;top:60px;height:calc(100vh - 60px);overflow:auto;padding:24px 16px 40px 24px;display:flex;flex-direction:column;gap:22px;border-right:1px solid var(--line)}
.docs-nav div{display:flex;flex-direction:column;gap:2px}
.docs-nav span{padding:0 10px 6px;font-size:12px;font-weight:600;color:var(--fg-subtle)}
.docs-nav a{height:32px;padding:0 10px;display:flex;align-items:center;flex:none;border-radius:6px;font-size:14px;color:var(--fg-default);white-space:nowrap}
.docs-nav a:hover{background:var(--hairline)}
.docs-nav a[aria-current]{background:var(--hairline);color:var(--fg-strong);font-weight:600}
.docs-main{min-width:0;padding:40px clamp(20px,4vw,48px) 120px}
.docs-head{display:flex;flex-direction:column;gap:16px;padding-bottom:40px;border-bottom:1px solid var(--line)}
.docs-head h1{font-size:40px;line-height:46px;letter-spacing:-.03em}
.docs-head .lead{max-width:640px;font-size:17px;line-height:27px}
.docs-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.base-url,.model-pick{height:40px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface-base);max-width:100%}
.base-url{padding:0 8px 0 14px;gap:12px;color:var(--fg-strong);font:inherit;cursor:pointer}
.base-url:hover{border-color:var(--fg-subtle)}
.base-url span,.model-pick span{font-size:12px;color:var(--fg-subtle);white-space:nowrap}
.base-url code{font:14px var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.base-url svg{font-size:16px;color:var(--fg-subtle)}
.model-pick{padding:0 4px 0 14px;gap:10px}
.model-pick:focus-within{outline:2px solid var(--focus-ring);outline-offset:3px}
.model-pick select{min-width:0;height:32px;border:0;outline:0;background:transparent;color:var(--fg-strong);font:14px var(--font-mono);cursor:pointer}
.model-pick option{background:var(--surface-base);color:var(--fg-strong)}
.api-sec{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:32px 48px;padding:48px 0;border-bottom:1px solid var(--hairline)}
.api-copy{display:flex;flex-direction:column;align-items:flex-start;gap:16px;min-width:0}
.api-group{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-subtle)}
.api-sec h2{font-size:26px;line-height:32px;letter-spacing:-.02em}
.api-copy p{line-height:24px;text-wrap:pretty;overflow-wrap:anywhere}
.api-copy p a{color:var(--fg-strong);text-decoration:underline;text-underline-offset:3px}
.endpoint{height:32px;padding:0 12px;display:inline-flex;align-items:center;gap:10px;border-radius:6px;background:var(--hairline);font:13px var(--font-mono);color:var(--fg-strong)}
.endpoint b{color:var(--success-fg)}
.params{align-self:stretch;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.params div{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--hairline);font-size:14px;line-height:21px}
.params dt{display:flex;flex-direction:column;gap:2px;min-width:0}
.params dt code{font:600 13px var(--font-mono);color:var(--fg-strong);overflow-wrap:anywhere}
.params dt span{font-size:12px;color:var(--fg-subtle);overflow-wrap:anywhere}
.params dt .req{color:var(--danger-fg)}
.params dd{text-wrap:pretty;overflow-wrap:anywhere}
.params dd code{font:13px var(--font-mono);color:var(--fg-strong);overflow-wrap:anywhere}
.snippet{position:sticky;top:84px;min-width:0;align-self:start;border-radius:10px;overflow:hidden;background:oklch(17% 0 0);box-shadow:0 0 0 1px oklch(100% 0 0 / .08)}
.snippet-bar{height:44px;padding:0 6px 0 8px;display:flex;align-items:center;gap:4px;border-bottom:1px solid oklch(100% 0 0 / .08)}
.snippet-tabs{flex:1;min-width:0;display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.snippet-tabs button,.snippet-tabs span{flex:none;height:30px;padding:0 10px;display:inline-flex;align-items:center;border:0;border-radius:6px;background:transparent;color:oklch(72% 0 0);font:inherit;font-size:13px;cursor:pointer}
.snippet-tabs span,.snippet-tabs [aria-pressed="true"]{background:oklch(28% 0 0);color:#fff;cursor:default}
.snippet-tabs button:hover{color:#fff}
.snippet-copy{flex:none;width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:oklch(72% 0 0);font-size:16px;cursor:pointer}
.snippet-copy:hover{background:oklch(100% 0 0 / .08);color:#fff}
.snippet :focus-visible{outline-color:oklch(93.5% 0 0)}
.snippet pre{margin:0;padding:16px 0;overflow:auto;font:13px/22px var(--font-mono);color:oklch(84% 0 0)}
.snippet pre span{display:block;min-height:22px;padding:0 20px;white-space:pre}
.snippet .add{background:oklch(72% .17 150 / .13);box-shadow:inset 3px 0 0 oklch(78% .17 150);color:oklch(95% 0 0)}
.snippet .com{color:oklch(66% 0 0)}
.search{position:fixed;inset:0;z-index:40;display:flex;justify-content:center;padding-top:120px;background:oklch(0% 0 0 / .4)}
.search-box{width:560px;max-width:calc(100% - 32px);align-self:flex-start;border-radius:12px;background:var(--surface-base);box-shadow:0 0 0 1px var(--line),0 24px 48px -12px oklch(0% 0 0 / .35);overflow:hidden}
.search-field{height:52px;padding:0 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.search-field svg{font-size:18px;color:var(--fg-subtle)}
.search-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--fg-strong);font:inherit;font-size:16px}
.search-field input::-webkit-search-cancel-button{display:none}
.search-list{max-height:360px;overflow:auto;padding:6px}
.search-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:8px}
.search-list a:hover,.search-list a:focus-visible{background:var(--hairline)}
.search-list b{font-size:14px;font-weight:600;color:var(--fg-strong)}
.search-list span{font-size:12px;color:var(--fg-subtle)}
.search-empty{padding:24px 12px;text-align:center;font-size:14px;color:var(--fg-subtle)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:50;height:40px;padding:0 16px;display:flex;align-items:center;gap:8px;border-radius:8px;background:var(--surface-contrast);color:var(--fg-inverse);font-size:14px;box-shadow:0 12px 32px -12px oklch(0% 0 0 / .35)}
.toast svg{font-size:16px}
/* Narrow: the sidebar becomes a strip of links under the header, the code panel stops being sticky. */
@media (max-width:900px){
 .docs{grid-template-columns:minmax(0,1fr)}
 .docs-nav{top:60px;z-index:10;height:auto;padding:8px 16px;flex-direction:row;gap:2px;overflow-x:auto;scrollbar-width:none;border-right:0;border-bottom:1px solid var(--line);background:var(--surface-canvas)}
 .docs-nav div{flex-direction:row}
 .docs-nav span{display:none}
 html:has(.docs){scroll-padding-top:120px}
 .snippet{position:static}
}
@media (max-width:720px){
 .nav.nav-docs{padding:0 16px;gap:12px}
 .search-btn{flex:none;width:36px;padding:0;justify-content:center}
 .search-btn span,.search-btn kbd{display:none}
 .docs-main{padding:32px 16px 80px}
 .docs-head{padding-bottom:32px}
 .docs-head h1{font-size:32px;line-height:38px}
 .api-sec{padding:40px 0;gap:24px}
 .params div{grid-template-columns:minmax(0,120px) minmax(0,1fr);gap:12px}
 .model-pick{width:100%}
 .model-pick select{flex:1;text-overflow:ellipsis}
 .search{padding-top:72px}
}
@media (max-width:480px){
 .pill,.nav-docs .nav-login,.base-url span{display:none}
}
@media (max-width:380px){
 .nav.nav-docs{gap:8px}
 .search-btn{display:none}
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 16px}
.err{padding:120px 16px;display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.btn-primary{color:var(--fg-inverse)}

@media (max-width:1100px){
 :root{--pad:40px}
 .hero{grid-template-columns:1fr;gap:56px;padding-top:80px}
 .nav{gap:28px}
}
@media (max-width:900px){.nav-links{display:none}}
@media (max-width:720px){
 :root{--pad:16px}
 body{font-size:15px}
 .nav{height:64px;gap:12px}
 .nav>*{flex:none}
 .nav>.grow{flex:1;margin-left:-12px}
 html{scroll-padding-top:76px}
 .brand{font-size:17px;gap:8px}
 .nav-login{font-size:15px}
 .btn-sm{padding:0 14px;font-size:14px}
 .theme-btn{width:36px;height:36px;font-size:18px}
 .hero{padding:48px var(--gutter) 64px;gap:40px}
 h1{font-size:40px;line-height:44px;letter-spacing:-.035em}
 h2{font-size:30px;line-height:36px}
 .sec{padding:72px var(--gutter);gap:32px}
 .price-head{flex-direction:column;gap:4px}
 #hero-prices li{padding:0 16px}
 .m-cost{font-size:16px}
 .stats{grid-auto-flow:row}
 .stats>div{padding:20px 20px}
 .stats>div+div{border-left:0;border-top:1px solid var(--line)}
 .stats b{font-size:40px;line-height:44px}
 .status-row,.status-axis{grid-template-columns:minmax(0,1fr) auto;padding:16px 20px;gap:12px 16px}
 .bars{grid-column:1 / -1;grid-row:2;gap:1px}
 .status-axis>span:first-child,.status-axis>span:last-child{display:none}
 .status-axis{grid-template-columns:1fr}
 .price-table .c-dev,.price-table .c-ctx{display:none}
 .price-table th:first-child,.price-table td:first-child{padding-left:16px}
 .price-table th:last-child,.price-table td:last-child{padding-right:16px}
 .price-table .num{width:auto}
 .points{grid-template-columns:1fr;gap:24px}
 .features{justify-content:flex-start;flex-direction:column}
 .split{grid-template-columns:1fr;gap:40px}
 .code pre{font-size:13px;line-height:22px}
 .code pre span{min-height:22px;padding:0 16px}
 .final{padding:80px var(--gutter)}
 .final h2{font-size:36px;line-height:42px}
 .doc{padding-top:40px}
 .doc h1{font-size:30px;line-height:34px}
 .doc h2{font-size:21px;line-height:27px}
 .doc table{display:block;overflow:auto}
 .req{grid-template-columns:1fr;gap:0}
 .req dd{margin-bottom:8px}
 .doc-foot{margin-top:64px}
}
@media (max-width:420px){
 .nav,.nav.nav-docs{gap:8px}
 .nav>.grow{margin-left:-8px}
 .btn-sm,.nav-docs .btn-sm{padding:0 12px}
}
@media (max-width:380px){
 .nav-login{display:none}
 .brand,.nav-docs .brand{font-size:16px;gap:6px}
 .mark{width:24px;height:24px}
 h1{font-size:34px;line-height:38px}
 .doc h1{font-size:26px;line-height:30px}
 .price-table td,.price-table th{padding-left:6px;padding-right:6px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
