:root{--bg:#f4f6f9;--panel:#f9fafc;--surface:#e9edf3;--surface2:#f6f8fb;--paper:#ffffff;--rule:#dde3ea;--ruleStrong:#c5ceda;--text:#0b1622;--text2:#344256;--muted:#5a6778;--faint:#5f6c7d;--accent:#0033a0;--accentSoft:rgba(26,79,216,0.075);--accentLine:rgba(0,51,160,0.26);--accentInk:#00277d;--onAccent:#ffffff;--accent2:#0b1622;--accent2Soft:rgba(11,22,34,0.06);--pos:#0a7553;--neg:#b4232f;--warn:#875800;--posSoft:rgba(10,117,83,0.10);--negSoft:rgba(180,35,47,0.09);--warnSoft:rgba(135,88,0,0.11);--accent-fill:#0033a0;--accent-fill-hover:#1a4fd8;--on-accent-fill:#ffffff;--accent-tint:#eef3fd;--accent-tint-2:#d8e2f9;--signal:#1a4fd8;--focus:#0033a0;--ink-fill:#0b1622;--ink-fill-hover:#1f2d40;--on-ink-fill:#ffffff;--glass:color-mix(in srgb, #f4f6f9 86%, transparent);--hover:color-mix(in srgb, #0b1622 5%, transparent);--shadow-lg:0 1px 2px hsl(211 51% 9% / 0.05), 0 18px 40px -20px hsl(211 51% 9% / 0.24);--shadow-xl:0 2px 6px hsl(211 51% 9% / 0.06), 0 32px 72px -28px hsl(211 51% 9% / 0.34);--floor-line:rgba(11,22,34,0.055);--floor-glow:rgba(26,79,216,0.07);--link:#0033a0;--link-line:rgba(0,51,160,0.32);--scrim:rgba(11,22,34,0.34);--icon-filter:none;--code-bg:#0c0f15;--code-head:#121720;--code-rule:rgba(160,178,204,0.16);--code-fg:#c9d1dc;--code-dim:#7d8795;--code-str:#eceff3;--code-key:#8db0ff;--code-kw:#6f9bff;--code-fn:#d5dbe4;--code-tab:#a1abb8;--code-tab-on:#eceff3;--code-accent:#4580ff;--code-hover:rgba(160,178,204,0.10);--code-ok:#41c995;color-scheme:light;}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bg:#080a0f;--panel:#0c0f15;--surface:#181e2a;--surface2:#0f131b;--paper:#121720;--rule:rgba(160,178,204,0.12);--ruleStrong:rgba(160,178,204,0.22);--text:#eceff3;--text2:#a1abb8;--muted:#8c96a4;--faint:#7d8795;--accent:#4580ff;--accentSoft:rgba(69,128,255,0.14);--accentLine:rgba(69,128,255,0.40);--accentInk:#8db0ff;--onAccent:#05070b;--accent2:#d5dbe4;--accent2Soft:rgba(160,178,204,0.14);--pos:#41c995;--neg:#f4737d;--warn:#e0b04f;--posSoft:rgba(65,201,149,0.13);--negSoft:rgba(244,115,125,0.13);--warnSoft:rgba(224,176,79,0.13);--accent-fill:#2b5ce6;--accent-fill-hover:#3a6cf4;--on-accent-fill:#ffffff;--accent-tint:color-mix(in srgb, #4580ff 13%, #121720);--accent-tint-2:color-mix(in srgb, #4580ff 26%, #121720);--signal:#8db0ff;--focus:#8db0ff;--ink-fill:#eceff3;--ink-fill-hover:#ffffff;--on-ink-fill:#080a0f;--glass:color-mix(in srgb, #080a0f 80%, transparent);--hover:color-mix(in srgb, #eceff3 6%, transparent);--shadow-lg:0 1px 2px hsl(222 40% 2% / 0.4), 0 22px 48px -20px hsl(222 40% 2% / 0.8);--shadow-xl:0 2px 6px hsl(222 40% 2% / 0.45), 0 36px 84px -28px hsl(222 40% 2% / 0.9);--floor-line:rgba(160,178,204,0.08);--floor-glow:rgba(60,120,255,0.12);--link:#8db0ff;--link-line:rgba(141,176,255,0.4);--scrim:rgba(0,0,0,0.6);--icon-filter:invert(1) brightness(0.92);color-scheme:dark;}}
:root[data-theme="dark"]{--bg:#080a0f;--panel:#0c0f15;--surface:#181e2a;--surface2:#0f131b;--paper:#121720;--rule:rgba(160,178,204,0.12);--ruleStrong:rgba(160,178,204,0.22);--text:#eceff3;--text2:#a1abb8;--muted:#8c96a4;--faint:#7d8795;--accent:#4580ff;--accentSoft:rgba(69,128,255,0.14);--accentLine:rgba(69,128,255,0.40);--accentInk:#8db0ff;--onAccent:#05070b;--accent2:#d5dbe4;--accent2Soft:rgba(160,178,204,0.14);--pos:#41c995;--neg:#f4737d;--warn:#e0b04f;--posSoft:rgba(65,201,149,0.13);--negSoft:rgba(244,115,125,0.13);--warnSoft:rgba(224,176,79,0.13);--accent-fill:#2b5ce6;--accent-fill-hover:#3a6cf4;--on-accent-fill:#ffffff;--accent-tint:color-mix(in srgb, #4580ff 13%, #121720);--accent-tint-2:color-mix(in srgb, #4580ff 26%, #121720);--signal:#8db0ff;--focus:#8db0ff;--ink-fill:#eceff3;--ink-fill-hover:#ffffff;--on-ink-fill:#080a0f;--glass:color-mix(in srgb, #080a0f 80%, transparent);--hover:color-mix(in srgb, #eceff3 6%, transparent);--shadow-lg:0 1px 2px hsl(222 40% 2% / 0.4), 0 22px 48px -20px hsl(222 40% 2% / 0.8);--shadow-xl:0 2px 6px hsl(222 40% 2% / 0.45), 0 36px 84px -28px hsl(222 40% 2% / 0.9);--floor-line:rgba(160,178,204,0.08);--floor-glow:rgba(60,120,255,0.12);--link:#8db0ff;--link-line:rgba(141,176,255,0.4);--scrim:rgba(0,0,0,0.6);--icon-filter:invert(1) brightness(0.92);color-scheme:dark;}
:root {
--font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--r-xs: 2px;
--r-lg: 4px;
--r-xl: 6px;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--dur-1: 120ms;
--dur-2: 180ms;
--dur-3: 260ms;
--topbar-h: 60px;
--nav-w: 272px;
--toc-w: 220px;
--content-w: 760px;
--gutter: clamp(16px, 4vw, 48px);
--ls-display: -0.02em;
--ls-title: -0.012em;
}
*, *::before, *::after { box-sizing: border-box; }
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
background: var(--paper);
}
body {
margin: 0;
min-height: 100vh;
background: var(--paper);
color: var(--text);
font: 400 15px/1.75 var(--font-sans);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
overflow-x: clip;
}
body[data-nav-open] { overflow: hidden; }
a { color: var(--link); }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
code, kbd, pre, samp { font-family: var(--font-mono); }
::selection { background: var(--accent-tint-2); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }
.icon { flex: none; }
.sr-only {
position: absolute !important;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0);
white-space: nowrap; border: 0;
}
.skip-link {
position: fixed; left: 12px; top: 10px; z-index: 100;
padding: 8px 14px;
border-radius: var(--r-xs);
background: var(--accent-fill); color: var(--on-accent-fill);
font-size: 14px; font-weight: 600; text-decoration: none;
transform: translateY(-160%);
transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }
kbd {
display: inline-flex; align-items: center; justify-content: center;
min-width: 20px; height: 20px; padding: 0 5px;
border: 1px solid var(--ruleStrong); border-bottom-width: 2px; border-radius: var(--r-xs);
background: var(--paper); color: var(--text2);
font: 500 11.5px/1 var(--font-mono);
}
.button {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 38px; padding: 0 16px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs);
background: var(--paper); color: var(--text);
font: 500 14px/1 var(--font-sans); text-decoration: none; cursor: pointer;
transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.button:hover { border-color: var(--text); }
.button--primary { border-color: transparent; background: var(--accent-fill); color: var(--on-accent-fill); }
.button--primary:hover { border-color: transparent; background: var(--accent-fill-hover); }
.icon-btn {
display: inline-grid; place-items: center; flex: none;
width: 36px; height: 36px; padding: 0;
border: 1px solid transparent; border-radius: var(--r-xs);
background: transparent; color: var(--text2); cursor: pointer;
transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
@media (max-width: 760px), (pointer: coarse) {
.icon-btn { width: 40px; height: 40px; }
.button { min-height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
.topbar {
position: sticky; top: 0; z-index: 40;
display: flex; align-items: center; gap: 20px;
height: var(--topbar-h); padding: 0 20px 0 24px;
background: var(--glass);
-webkit-backdrop-filter: saturate(1.5) blur(14px);
backdrop-filter: saturate(1.5) blur(14px);
border-bottom: 1px solid var(--rule);
}
.nav-toggle { display: none; margin-left: -8px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; transition: transform 560ms var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.mark-k { fill: var(--text); }
.mark-a { fill: var(--accent); }
.brand__name { font: 650 16px/1 var(--font-sans); letter-spacing: 0.005em; }
.brand__docs { display: inline-flex; align-items: center; gap: 10px; color: var(--text2); font: 500 15px/1 var(--font-sans); }
.brand__docs::before { content: ""; width: 1px; height: 16px; background: var(--ruleStrong); }
.brand:focus-visible { outline-offset: 4px; }
.topnav { display: flex; align-self: stretch; gap: 4px; margin-left: 12px; }
.topnav__link {
display: inline-flex; align-items: center; padding: 0 10px;
color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none;
box-shadow: inset 0 -2px 0 transparent;
transition: color var(--dur-1), box-shadow var(--dur-2);
}
.topnav__link:hover { color: var(--text); }
.topnav__link[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger {
display: inline-flex; align-items: center; gap: 8px;
width: 248px; height: 36px; padding: 0 6px 0 11px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs);
background: var(--paper); color: var(--muted); cursor: pointer;
font: 400 13.5px/1 var(--font-sans);
transition: border-color var(--dur-1), color var(--dur-1);
}
.search-trigger:hover { border-color: var(--text); color: var(--text2); }
.search-trigger__text { flex: 1; text-align: left; }
.search-trigger__kbd { height: 22px; border-bottom-width: 1px; background: var(--surface2); color: var(--muted); }
.console-link {
display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none;
}
.console-link:hover { background: var(--hover); color: var(--text); }
.theme-toggle__sun { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__moon { display: none; }
.theme-toggle[aria-pressed="true"] .theme-toggle__sun { display: block; }
html:not(.js) .theme-toggle, html:not(.js) .search-trigger { display: none; }
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.main { min-width: 0; display: flex; flex-direction: column; }
.main:focus { outline: none; }
.main__grid {
flex: 1;
display: grid; grid-template-columns: minmax(0, var(--content-w)) var(--toc-w);
justify-content: center; column-gap: clamp(32px, 4vw, 64px);
width: 100%; padding: 36px var(--gutter) 72px;
}
.shell[data-layout="wide"] .main__grid { grid-template-columns: minmax(0, 1120px); }
.article { min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.crumbs a { color: var(--text2); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs__sep { color: var(--faint); }
.article-head { margin-bottom: 32px; }
.article-head__title { margin: 0; font: 600 clamp(27px, 2.6vw, 34px)/1.25 var(--font-sans); letter-spacing: var(--ls-display); overflow-wrap: anywhere; }
.article-head__badge { margin-left: 12px; vertical-align: 0.32em; }
.article-head__lead { max-width: 680px; margin: 12px 0 0; color: var(--text2); font-size: 16.5px; line-height: 1.75; }
.shell[data-layout="home"] .main__grid { grid-template-columns: minmax(0, 1fr); padding: 0 0 72px; }
.shell[data-layout="home"] .article > :not(.article-head) { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }
.shell[data-layout="home"] .prose > :is(p, ul, ol, blockquote) { max-width: 780px; }
.shell[data-layout="home"] .article-head {
position: relative; isolation: isolate;
margin: 0 0 40px; padding: 64px max(var(--gutter), calc((100% - 1040px) / 2)) 44px;
border-bottom: 1px solid var(--rule);
}
.shell[data-layout="home"] .article-head::before {
content: ""; position: absolute; inset: 0; z-index: -1;
background:
radial-gradient(ellipse 60% 80% at 100% 0%, var(--floor-glow), transparent 70%),
repeating-linear-gradient(30deg, var(--floor-line) 0 1px, transparent 1px 32px),
repeating-linear-gradient(150deg, var(--floor-line) 0 1px, transparent 1px 32px);
-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.shell[data-layout="home"] .article-head__title { font-size: clamp(30px, 3.4vw, 42px); }
.shell[data-layout="home"] .article-head__lead { font-size: 17.5px; }
.toc { position: sticky; top: calc(var(--topbar-h) + 36px); align-self: start; max-height: calc(100vh - var(--topbar-h) - 72px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.toc__title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.toc__list, .toc-inline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc__item a {
position: relative; display: block; padding: 4px 0 4px 16px;
color: var(--muted); font-size: 13px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere;
transition: color var(--dur-1);
}
.toc__item[data-level="3"] a { padding-left: 30px; font-size: 12.5px; }
.toc__item a::before {
content: ""; position: absolute; left: 3px; top: calc(4px + 0.75em - 3px);
width: 6px; height: 6px; transform: rotate(45deg) scale(0.4);
background: var(--faint); opacity: 0; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2), background-color var(--dur-2);
}
.toc__item[data-level="3"] a::before { left: 17px; }
.toc__item a:hover { color: var(--text); }
.toc__item a[aria-current] { color: var(--accentInk); font-weight: 500; }
.toc__item a[aria-current]::before { opacity: 1; transform: rotate(45deg); background: var(--accent); }
.toc__top { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; text-decoration: none; }
.toc__top:hover { color: var(--text); }
.toc-inline { margin: -12px 0 28px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface2); }
.toc-inline > summary {
display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none;
}
.toc-inline > summary::-webkit-details-marker { display: none; }
.toc-inline__chevron { margin-left: auto; color: var(--faint); transition: transform var(--dur-2) var(--ease-out); }
.toc-inline[open] .toc-inline__chevron { transform: rotate(180deg); }
.toc-inline__list { padding: 4px 8px 10px; border-top: 1px solid var(--rule); }
.toc-inline .toc__item a { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); }
.pager__link {
display: grid; gap: 4px; align-content: start; padding: 14px 16px;
border: 1px solid var(--rule); border-radius: var(--r-lg); color: var(--text); text-decoration: none;
transition: border-color var(--dur-1);
}
.pager__link--next { text-align: right; justify-items: end; }
.pager__link:hover { border-color: var(--accentLine); }
.pager__link:hover .pager__title { color: var(--link); }
.pager__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.pager__title { font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--rule); background: var(--panel); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px; max-width: 1180px; margin: 0 auto; padding: 40px var(--gutter) 32px; }
.brand--footer .brand__name { font-size: 15px; }
.brand--footer .brand__docs { font-size: 14px; }
.footer__text { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer__api { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer__api code { color: var(--text2); font-size: 12px; overflow-wrap: anywhere; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__title { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a, .footer__base a { color: var(--text2); font-size: 13.5px; text-decoration: none; }
.footer__col a:hover, .footer__base a:hover { color: var(--text); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12.5px; }
.footer__base a { font-size: 12.5px; }
@media (max-width: 1199.98px) {
.main__grid { grid-template-columns: minmax(0, var(--content-w)); }
.toc { display: none; }
.topnav { display: none; }
}
@media (min-width: 1200px) { .toc-inline { display: none; } }
@media (max-width: 1023.98px) { .search-trigger { width: 196px; } }
@media (max-width: 879.98px) {
.topbar { gap: 8px; padding: 0 10px 0 16px; }
.nav-toggle { display: inline-grid; }
.console-link { display: none; }
.search-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--text2); }
.search-trigger:hover { background: var(--hover); border-color: transparent; }
.search-trigger__text, .search-trigger__kbd { display: none; }
.main__grid { padding-top: 24px; }
.footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
.pager { grid-template-columns: 1fr; }
.pager__spacer { display: none; }
.footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-head__lead { font-size: 15.5px; }
.shell[data-layout="home"] .article-head { padding-top: 40px; padding-bottom: 32px; }
}
@media (max-width: 479.98px) {
.brand__name { display: none; }
.brand__docs::before { display: none; }
.brand__docs { color: var(--text); font-weight: 600; }
}
.sidebar {
position: sticky; top: var(--topbar-h); z-index: 20;
height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
overflow-y: auto; overscroll-behavior: contain;
scrollbar-width: thin; scrollbar-color: var(--ruleStrong) transparent;
background: var(--panel); border-right: 1px solid var(--rule);
}
.sidebar__inner { padding: 22px 14px 32px; }
.nav-section { margin-top: 24px; }
.nav-list--home + .nav-section, .sidebar__inner > .nav-section:first-child { margin-top: 18px; }
.sidebar__inner > .nav-section:first-child { margin-top: 0; }
.nav-section__title {
display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 10px;
color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.6; white-space: nowrap;
}
.nav-section__title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.nav-link {
display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere;
transition: background-color var(--dur-1), color var(--dur-1);
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--accent-tint); color: var(--accentInk); font-weight: 600; }
.nav-link__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nav-link__badge {
flex: none; padding: 1px 5px; border: 1px solid var(--accentLine); border-radius: var(--r-xs);
color: var(--accentInk); font-size: 10.5px; font-weight: 600; line-height: 1.4;
}
.nav-link__badge--method { font-family: var(--font-mono); letter-spacing: 0.04em; }
.nav-group > summary {
display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 14px; line-height: 1.4;
cursor: pointer; list-style: none; user-select: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--hover); color: var(--text); }
.nav-group__chevron { color: var(--faint); transition: transform var(--dur-2) var(--ease-out); }
.nav-group[open] > summary .nav-group__chevron { transform: rotate(90deg); }
.nav-group__count { margin-left: auto; color: var(--faint); font: 500 11.5px/1 var(--font-mono); }
.nav-group > .nav-list { padding: 2px 0 6px 20px; }
.nav-group > .nav-list .nav-link { min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; }
.sidebar__foot { display: grid; gap: 2px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sidebar__ext {
display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px;
border-radius: var(--r-xs); color: var(--text2); font-size: 13.5px; text-decoration: none;
}
.sidebar__ext:hover { background: var(--hover); color: var(--text); }
.sidebar__ext .icon { color: var(--muted); }
.nav-scrim { display: none; }
@media (max-width: 879.98px) {
.shell { grid-template-columns: minmax(0, 1fr); }
.sidebar {
position: fixed; top: var(--topbar-h); bottom: 0; left: 0; z-index: 60;
width: min(88vw, 340px); height: auto;
border-right: 1px solid var(--ruleStrong); box-shadow: var(--shadow-xl);
transform: translateX(-104%); visibility: hidden;
transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
body[data-nav-open] .sidebar { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease-out); }
.nav-scrim { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 55; background: var(--scrim); animation: docs-fade var(--dur-3) var(--ease-out); }
.nav-scrim[hidden] { display: none; }
.nav-link, .nav-group > summary, .sidebar__ext { min-height: 40px; }
.nav-group > .nav-list .nav-link { min-height: 38px; }
html:not(.js) .sidebar { position: static; width: auto; transform: none; visibility: visible; box-shadow: none; border-right: 0; border-bottom: 1px solid var(--rule); }
html:not(.js) .nav-toggle { display: none; }
}
@media (pointer: coarse) { .nav-link { min-height: 40px; } }
@keyframes docs-fade { from { opacity: 0; } to { opacity: 1; } }
.prose { color: var(--text); font-size: 15px; line-height: 1.8; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 16px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose [id] { scroll-margin-top: calc(var(--topbar-h) + 24px); }
.prose h2, .prose h3, .prose h4 { position: relative; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.prose h2 { margin: 52px 0 14px; font-size: 22px; line-height: 1.4; letter-spacing: var(--ls-title); }
.prose h3 { margin: 36px 0 10px; font-size: 17.5px; line-height: 1.45; letter-spacing: var(--ls-title); }
.prose h4 { margin: 28px 0 8px; font-size: 15px; line-height: 1.5; }
.prose h2 + h3 { margin-top: 20px; }
.prose h2 code, .prose h3 code, .prose h4 code { font-size: 0.86em; }
.heading-anchor {
margin-left: 8px; padding: 0 2px; color: var(--faint); font-weight: 500; text-decoration: none;
opacity: 0; transition: opacity var(--dur-1), color var(--dur-1);
}
.prose :is(h2, h3, h4):hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.heading-anchor:hover { color: var(--link); }
@media (hover: none) { .heading-anchor { display: none; } }
.prose a:not(.card):not(.button):not(.model-card):not(.heading-anchor) {
color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
text-decoration-color: var(--link-line); text-underline-offset: 3px;
transition: text-decoration-color var(--dur-1);
}
.prose a:not(.card):not(.button):not(.model-card):not(.heading-anchor):hover { text-decoration-color: currentColor; }
.prose a.ext::after {
content: ""; display: inline-block; width: 0.72em; height: 0.72em; margin-left: 0.18em; vertical-align: 0.02em;
background: currentColor; opacity: 0.7;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose :not(pre) > code {
padding: 0.12em 0.38em; border: 1px solid var(--rule); border-radius: var(--r-xs);
background: var(--surface2); color: var(--text); font-size: 0.86em; line-height: 1.5;
overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.prose a code { color: inherit; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.5em; }
.prose li { margin: 6px 0; }
.prose li > p { margin-bottom: 8px; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose ul:not([class]):not(:has(> li > input[type="checkbox"])) { list-style: none; padding-left: 1.25em; }
.prose ul:not([class]):not(:has(> li > input[type="checkbox"])) > li { position: relative; }
.prose ul:not([class]):not(:has(> li > input[type="checkbox"])) > li::before {
content: ""; position: absolute; left: -1.05em; top: 0.72em;
width: 5px; height: 5px; transform: rotate(45deg); background: var(--muted);
}
.prose ol:not([class]) > li::marker { color: var(--muted); font: 500 0.92em var(--font-mono); }
.prose ul:has(> li > input[type="checkbox"]) { list-style: none; padding-left: 0.2em; }
.prose input[type="checkbox"] { margin: 0 8px 0 0; accent-color: var(--accent-fill); vertical-align: -1px; }
.prose blockquote {
margin: 20px 0; padding: 12px 16px;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface2); color: var(--text2);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { height: 1px; margin: 40px 0; border: 0; background: var(--rule); }
.prose img { border: 1px solid var(--rule); border-radius: var(--r-lg); }
.prose figure { margin: 24px 0; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.prose details:not(.toc-inline) { margin: 16px 0; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.prose details:not(.toc-inline) > summary { padding: 10px 0; font-weight: 500; cursor: pointer; }
.prose details[open]:not(.toc-inline) > summary { border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.prose .lead, .prose > p.lead { color: var(--text2); font-size: 16.5px; line-height: 1.8; }
.prose .muted { color: var(--muted); }
.table-wrap {
position: relative; margin: 20px 0 24px; overflow-x: auto; overscroll-behavior-x: contain;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper);
scrollbar-width: thin; scrollbar-color: var(--ruleStrong) transparent;
}
.table-wrap:focus-visible { outline-offset: -2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.table-wrap th {
padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--rule);
color: var(--text2); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap;
}
.table-wrap td { padding: 11px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--accentSoft) 55%, transparent); }
.table-wrap [data-align="right"] { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap [data-align="center"] { text-align: center; }
.table-wrap td:first-child code { white-space: nowrap; }
.prose .table-wrap code { font-size: 0.86em; overflow-wrap: normal; word-break: normal; }
.table-wrap tr:has(> :nth-child(4)) > :is(td, th) { min-width: 7.5em; }
.table-wrap tr:has(> :nth-child(4)) > :is(td, th):first-child { min-width: 0; }
.table-wrap td > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
.table-wrap table:has(tr > :nth-child(3)) { min-width: 600px; }
.table-wrap table:has(tr > :nth-child(5)) { min-width: 760px; }
}
@media (max-width: 560px) {
.prose { font-size: 15px; line-height: 1.78; }
.prose h2 { margin-top: 44px; font-size: 20px; }
.prose h3 { font-size: 17px; }
.table-wrap { margin-left: 0; margin-right: 0; }
.table-wrap table { font-size: 13.5px; }
.table-wrap th, .table-wrap td { padding: 9px 12px; }
}
.code-block {
margin: 20px 0 24px; overflow: hidden;
border: 1px solid var(--code-rule); border-radius: var(--r-lg);
background: var(--code-bg); color: var(--code-fg);
color-scheme: dark;
}
.code-head {
display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 0 6px 0 14px;
background: var(--code-head); border-bottom: 1px solid var(--code-rule);
}
.code-title { flex: 1; min-width: 0; overflow: hidden; color: var(--code-tab); font: 500 12.5px/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.code-tabs { display: flex; flex: 1; min-width: 0; gap: 2px; margin-left: -6px; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
position: relative; flex: none; height: 42px; padding: 0 10px;
border: 0; background: none; color: var(--code-tab); cursor: pointer;
font: 500 13px/1 var(--font-sans); white-space: nowrap;
transition: color var(--dur-1);
}
.code-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--code-accent); transform: scaleX(0); transition: transform var(--dur-2) var(--ease-out); }
.code-tab:hover { color: var(--code-tab-on); }
.code-tab[aria-selected="true"] { color: var(--code-tab-on); }
.code-tab[aria-selected="true"]::after { transform: scaleX(1); }
.code-tab:focus-visible { outline: 2px solid var(--code-key); outline-offset: -4px; }
.code-copy {
display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; margin-left: auto; padding: 0 9px;
border: 1px solid transparent; border-radius: var(--r-xs); background: none; color: var(--code-tab); cursor: pointer;
font: 500 12.5px/1 var(--font-sans);
transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1);
}
.code-copy:hover { color: var(--code-tab-on); background: var(--code-hover); border-color: var(--code-rule); }
.code-copy:focus-visible { outline: 2px solid var(--code-key); outline-offset: 0; }
.code-copy__done { display: none; }
.code-copy.is-copied { color: var(--code-ok); }
.code-copy.is-copied .code-copy__idle { display: none; }
.code-copy.is-copied .code-copy__done { display: block; }
.code-panel[hidden] { display: none; }
.code-body {
position: relative; margin: 0; padding: 16px 18px 18px; max-height: 640px; overflow: auto;
color: var(--code-fg); font: 13px/1.72 var(--font-mono); tab-size: 2;
scrollbar-width: thin; scrollbar-color: var(--code-rule) transparent;
}
.code-body:focus-visible { outline: 2px solid var(--code-key); outline-offset: -2px; border-radius: 0; }
.code-body code { display: block; width: max-content; min-width: 100%; font: inherit; }
.t-com { color: var(--code-dim); font-style: italic; }
.t-url { color: var(--code-str); text-decoration: underline; text-decoration-color: var(--code-dim); text-underline-offset: 3px; }
.t-key, .t-flag, .t-var { color: var(--code-key); }
.t-str { color: var(--code-str); }
.t-lit { color: var(--code-kw); }
.t-kw { color: var(--code-kw); font-weight: 600; }
.t-fn { color: var(--code-fn); }
.t-punc { color: var(--code-dim); }
.callout .code-block, li .code-block { margin: 12px 0; }
@media (max-width: 560px) {
.code-block { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
.callout .code-block, li .code-block, .table-wrap .code-block { margin-left: 0; margin-right: 0; border: 1px solid var(--code-rule); border-radius: var(--r-lg); }
.code-copy__label { display: none; }
.code-copy { width: 40px; height: 40px; justify-content: center; padding: 0; }
.code-tab { height: 44px; }
.code-body { padding: 14px 16px 16px; font-size: 12.5px; }
}
.callout {
--c-line: var(--ruleStrong); --c-bg: var(--surface2); --c-ink: var(--text2);
display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
margin: 20px 0 24px; padding: 14px 18px 14px 14px;
border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-bg);
font-size: 14.5px; line-height: 1.75;
}
.callout[data-kind="tip"] { --c-line: var(--accentLine); --c-bg: var(--accent-tint); --c-ink: var(--accentInk); }
.callout[data-kind="warning"] { --c-line: color-mix(in srgb, var(--warn) 36%, transparent); --c-bg: var(--warnSoft); --c-ink: var(--warn); }
.callout[data-kind="danger"] { --c-line: color-mix(in srgb, var(--neg) 34%, transparent); --c-bg: var(--negSoft); --c-ink: var(--neg); }
.callout__icon { margin-top: 3px; color: var(--c-ink); }
.callout__title { margin: 0 0 4px !important; color: var(--c-ink); font-weight: 600; }
.callout__content { min-width: 0; }
.callout__content > :last-child { margin-bottom: 0; }
.callout__content p { margin-bottom: 8px; }
.callout__content :not(pre) > code { background: color-mix(in srgb, var(--paper) 70%, transparent); }
.badge {
--b-line: var(--accentLine); --b-bg: var(--accent-tint); --b-ink: var(--accentInk);
display: inline-flex; align-items: center; height: 22px; padding: 0 7px;
border: 1px solid var(--b-line); border-radius: var(--r-xs); background: var(--b-bg); color: var(--b-ink);
font: 600 12px/1 var(--font-sans); letter-spacing: 0.02em; white-space: nowrap; vertical-align: middle;
}
.badge[data-tone="muted"] { --b-line: var(--ruleStrong); --b-bg: var(--surface2); --b-ink: var(--muted); }
.badge[data-tone="ink"] { --b-line: var(--text); --b-bg: transparent; --b-ink: var(--text); }
.badge[data-tone="pos"] { --b-line: color-mix(in srgb, var(--pos) 36%, transparent); --b-bg: var(--posSoft); --b-ink: var(--pos); }
.badge[data-tone="warn"] { --b-line: color-mix(in srgb, var(--warn) 36%, transparent); --b-bg: var(--warnSoft); --b-ink: var(--warn); }
.badge[data-tone="neg"] { --b-line: color-mix(in srgb, var(--neg) 34%, transparent); --b-bg: var(--negSoft); --b-ink: var(--neg); }
.http {
display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 22px; padding: 0 6px;
border: 1px solid var(--accentLine); border-radius: var(--r-xs); background: var(--accent-tint); color: var(--accentInk);
font: 700 11px/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; vertical-align: middle; white-space: nowrap;
}
.http.post { border-color: transparent; background: var(--accent-fill); color: var(--on-accent-fill); }
.http.put, .http.patch { border-color: var(--text); background: transparent; color: var(--text); }
.http.delete { border-color: color-mix(in srgb, var(--neg) 40%, transparent); background: var(--negSoft); color: var(--neg); }
.http.ws { border-color: transparent; background: var(--ink-fill); color: var(--on-ink-fill); }
.prose h2 .http, .prose h3 .http { margin-right: 6px; vertical-align: 0.14em; }
.prose .endpoint, .endpoint {
display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
margin: 16px 0 24px; padding: 11px 14px;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface2);
}
.endpoint code { padding: 0 !important; border: 0 !important; background: none !important; color: var(--text); font-size: 14px !important; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 12px; margin: 24px 0 32px; }
.card {
position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0;
padding: 18px 44px 18px 18px; border: 1px solid var(--rule); border-radius: var(--r-lg);
background: var(--paper); color: var(--text); text-decoration: none;
transition: border-color var(--dur-1);
}
.card::before {
content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--accent);
transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
.card:hover, .card:focus-visible { border-color: var(--ruleStrong); }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: var(--r-xs); background: var(--accent-tint); color: var(--accentInk); }
.card__title { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.card__text { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.card__arrow { position: absolute; top: 20px; right: 16px; color: var(--faint); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1); }
.card:hover .card__arrow { transform: translateX(3px); color: var(--accent); }
ol.steps { list-style: none; counter-reset: step; margin: 24px 0 28px; padding: 0; }
ol.steps > li { position: relative; margin: 0; padding: 0 0 26px 48px; counter-increment: step; }
ol.steps > li::before {
content: counter(step); position: absolute; left: 0; top: 0;
display: grid; place-items: center; width: 30px; height: 30px;
border: 1px solid var(--accentLine); border-radius: var(--r-xs); background: var(--accent-tint);
color: var(--accentInk); font: 600 13px/1 var(--font-mono);
}
ol.steps > li::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 8px; width: 1px; background: var(--rule); }
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li:last-child::after { display: none; }
ol.steps > li > strong:first-child { display: block; padding-top: 3px; font-size: 15.5px; }
.chip {
display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--paper);
color: var(--text2); font: 500 13px/1.2 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none;
transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accentLine); background: var(--accent-tint); color: var(--accentInk); }
.chip__count { color: var(--muted); font: 500 11.5px/1 var(--font-mono); }
.chip[aria-pressed="true"] .chip__count { color: var(--accentInk); }
.chip .model-icon { --icon-size: 16px; width: 16px; height: 16px; }
.input, .select, .filter-bar input[type="search"], .filter-bar select {
min-height: 38px; padding: 0 12px; border: 1px solid var(--ruleStrong); border-radius: var(--r-xs);
background: var(--paper); color: var(--text); font: 400 14px/1.2 var(--font-sans);
}
.input:focus, .select:focus, .filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; }
.filter-bar input[type="search"] { flex: 1 1 240px; min-width: 0; }
.filter-bar__group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar__label { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; }
[data-filter-empty] { padding: 40px 16px; border: 1px dashed var(--ruleStrong); border-radius: var(--r-lg); color: var(--muted); text-align: center; }
img.model-icon { flex: none; object-fit: contain; }
img.model-icon[data-mono] { filter: var(--icon-filter); }
.model-icon--monogram {
display: inline-grid; place-items: center; flex: none;
width: var(--icon-size, 32px); height: var(--icon-size, 32px);
border: 1px solid var(--ruleStrong); border-radius: var(--r-xs); background: var(--surface2);
color: var(--text2); font: 600 calc(var(--icon-size, 32px) * 0.38)/1 var(--font-sans); letter-spacing: 0;
}
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 20px 0; }
.model-card {
position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px;
border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); color: var(--text); text-decoration: none;
transition: border-color var(--dur-1);
}
.model-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.model-card:hover { border-color: var(--ruleStrong); }
.model-card:hover::before, .model-card:focus-visible::before { transform: scaleX(1); }
.model-card[hidden] { display: none; }
.model-card__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.model-card__name { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.model-card__id { color: var(--muted); font: 12px/1.45 var(--font-mono); overflow-wrap: anywhere; }
.model-card__text { display: -webkit-box; overflow: hidden; color: var(--text2); font-size: 13.5px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.model-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.model-card__price { color: var(--text2); font: 12.5px/1.5 var(--font-mono); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--rule); border-radius: var(--r-xs); color: var(--text2); font-size: 12px; white-space: nowrap; }
.tag[data-tone="accent"] { border-color: var(--accentLine); color: var(--accentInk); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px !important; }
@media (max-width: 760px), (pointer: coarse) {
.chip { min-height: 40px; }
.input, .select, .filter-bar input[type="search"], .filter-bar select { min-height: 40px; font-size: 16px; }
}
.search {
width: min(680px, calc(100vw - 32px)); max-width: none; max-height: min(640px, calc(100vh - 120px));
margin: 76px auto auto; padding: 0; overflow: hidden;
border: 1px solid var(--ruleStrong); border-radius: var(--r-xl);
background: var(--paper); color: var(--text); box-shadow: var(--shadow-xl);
}
.search[open] { display: flex; animation: docs-rise var(--dur-3) var(--ease-out); }
.search::backdrop { background: var(--scrim); }
.search__panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.search__bar { display: flex; align-items: center; gap: 10px; flex: none; height: 58px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--rule); }
.search__icon { color: var(--muted); }
.search__input {
flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none;
color: var(--text); font: 400 16px/1 var(--font-sans);
}
.search__input::placeholder { color: var(--faint); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__close {
display: inline-grid; place-items: center; flex: none; min-width: 40px; height: 40px; padding: 0 4px;
border: 0; border-radius: var(--r-xs); background: none; cursor: pointer;
}
.search__close-text { display: none; color: var(--accentInk); font: 500 15px/1 var(--font-sans); }
.search__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.search__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.search__results:empty { display: none; }
.search__link {
display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-xs);
color: var(--text); text-decoration: none;
}
.search__result[aria-selected="true"] .search__link { background: var(--accent-tint); }
.search__meta { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; }
.search__title { font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.search__result[aria-selected="true"] .search__title { color: var(--accentInk); }
.search__heading { color: var(--text2); font-size: 13px; overflow-wrap: anywhere; }
.search__excerpt { display: -webkit-box; overflow: hidden; color: var(--text2); font-size: 13px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search__excerpt mark { padding: 0 1px; border-radius: 1px; background: var(--accent-tint-2); color: var(--text); }
.search__status { margin: 0; padding: 32px 16px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.search__status[hidden] { display: none; }
.search__foot { display: flex; flex: none; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--rule); background: var(--surface2); color: var(--muted); font-size: 12px; }
.search__foot span { display: inline-flex; align-items: center; gap: 4px; }
.search__foot kbd { min-width: 18px; height: 18px; font-size: 11px; }
@keyframes docs-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
.search { width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
.search__bar { height: 60px; padding-left: 16px; padding-right: 6px; }
.search__close { padding: 0 10px; }
.search__close-key { display: none; }
.search__close-text { display: inline; }
.search__foot { display: none; }
.search__link { padding: 12px; }
}
@media print {
.topbar, .sidebar, .nav-scrim, .toc, .toc-inline, .pager, .footer, .search, .skip-link, .heading-anchor, .code-copy { display: none !important; }
.shell, .main__grid { display: block; padding: 0; }
body { background: Canvas; color: CanvasText; font-size: 11pt; }
.code-block { border: 1px solid GrayText; }
.code-body { max-height: none; overflow: visible; white-space: pre-wrap; }
.code-body code { width: auto; }
.code-panel[hidden] { display: block; }
.prose a.ext::after { display: none; }
}
