@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2?v=ac7fadd5c5dc377d") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #191a1c;
  --header: rgba(25, 26, 28, .88);
  --surface: #202124;
  --surface-raised: #27282b;
  --surface-hover: #2d2e32;
  --text: #f7f7f8;
  --body-text: #d3d4d6;
  --muted: #9a9ca1;
  --border: #36373b;
  --border-soft: #2c2d30;
  --accent: #5da7ff;
  --accent-strong: #82bbff;
  --accent-soft: rgba(75, 157, 255, .14);
  --danger: #ff7d82;
  --warning: #f6c766;
  --success: #67d99b;
  --shadow: 0 18px 55px rgba(0, 0, 0, .35);
  --header-height: 64px;
  --sidebar-width: 320px;
  --content-width: 753px;
  --article-width: 1025px;
  --prose-width: 768px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --header: rgba(255, 255, 255, .9);
  --surface: #f6f7f8;
  --surface-raised: #fff;
  --surface-hover: #eef0f3;
  --text: #18191b;
  --body-text: #34363a;
  --muted: #6f7278;
  --border: #dfe1e5;
  --border-soft: #eceef1;
  --accent: #156fd1;
  --accent-strong: #0e5db3;
  --accent-soft: rgba(21, 111, 209, .1);
  --danger: #c9434a;
  --warning: #a76b00;
  --success: #147a46;
  --shadow: 0 18px 55px rgba(30, 35, 45, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.625; }
body.drawer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-strong); text-decoration-thickness: .075em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 200; top: -5rem; left: 1rem; padding: .65rem .9rem; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; }
.skip-link:focus { top: .75rem; }

.topbar { position: sticky; top: 0; z-index: 80; height: var(--header-height); display: grid; grid-template-columns: minmax(240px, 320px) minmax(280px, 512px) 1fr; align-items: center; gap: 32px; padding: 0 24px 0 32px; border-bottom: 1px solid var(--border-soft); background: var(--header); backdrop-filter: blur(16px) saturate(150%); }
.topbar-left, .topbar-actions { display: flex; align-items: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand > img { width: 31px; height: 31px; border-radius: 7px; object-fit: contain; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.icon-button img, .tool-button img, .search-trigger img, .search-box > img { width: 18px; height: 18px; filter: var(--icon-filter, none); }
.menu-button, .mobile-search-button { display: none; }
.mobile-more-picker { display: none; position: relative; }
.search-trigger { justify-self: center; width: min(100%, 512px); height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.search-trigger:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--accent)); background: var(--surface-raised); }
.search-trigger span:not(.command-key) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--bg); font-size: 12px; line-height: 22px; box-shadow: 0 1px 0 var(--border); }
.topbar-actions { justify-content: flex-end; gap: 8px; }
.social-picker { position: relative; }
.social-button { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.social-button:hover, .social-button[aria-expanded="true"] { background: var(--surface); color: var(--text); }
.social-button > img { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .16s ease; }
.social-button[aria-expanded="true"] > img { transform: rotate(-90deg); }
.social-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; width: 164px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow); }
.social-dropdown a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 7px; color: var(--body-text); font-size: 14px; text-decoration: none; }
.social-dropdown a:hover, .social-dropdown a:focus-visible { background: var(--accent-soft); color: var(--text); }
.social-dropdown a img { width: 17px; height: 17px; object-fit: contain; filter: grayscale(1) contrast(.8); opacity: .82; }
:root[data-theme="dark"] .social-dropdown a img { filter: grayscale(1) brightness(1.8); }
.access-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 8px; background: #1677e8; color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.access-button:hover { background: #2486f7; }
.theme-picker { position: relative; }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; width: 148px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow); }
.theme-menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--body-text); font-size: 14px; cursor: pointer; }
.theme-menu button:hover, .theme-menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--text); }
.theme-menu img { width: 16px; height: 16px; }

.layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: calc(100vh - var(--header-height)); }
.sidebar { position: sticky; top: var(--header-height); align-self: start; height: calc(100vh - var(--header-height)); overflow: auto; overscroll-behavior: contain; padding: 24px 20px 40px 32px; border-right: 1px solid var(--border-soft); background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.drawer-head { display: none; height: 56px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border-soft); }
.docs-navigation ul { list-style: none; margin: 0; padding: 0; }
.nav-primary { padding-bottom: 18px !important; margin-bottom: 12px !important; border-bottom: 1px solid var(--border-soft); }
.nav-item a, .nav-branch-row > a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 9px; border-radius: 7px; color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; }
.nav-primary .nav-item a { min-height: 40px; }
.nav-item a:hover, .nav-branch-row > a:hover { background: var(--surface); color: var(--text); }
.nav-item a[aria-current="page"], .nav-branch-row > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 590; }
.nav-item a > img { width: 17px; height: 17px; opacity: .76; }
.nav-item a[aria-current="page"] > img { opacity: 1; }
.nav-group { margin-top: 12px; }
.nav-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 5px 7px; border-radius: 7px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--surface); color: var(--text); }
.nav-group > summary > span { display: flex; align-items: center; gap: 9px; }
.nav-group > summary img { width: 16px; height: 16px; }
.nav-group > summary .group-chevron { width: 13px; height: 13px; transition: transform .16s ease; }
.nav-group[open] > summary .group-chevron { transform: rotate(90deg); }
.nav-group > ul { margin-top: 3px; }
.nav-branch-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; }
.nav-branch-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.nav-branch-toggle:hover { background: var(--surface); }
.nav-branch-toggle img { width: 12px; height: 12px; transition: transform .16s ease; }
.nav-branch-toggle[aria-expanded="true"] img { transform: rotate(90deg); }
.nav-branch > ul { margin: 2px 0 5px 12px; padding-left: 10px; border-left: 1px solid var(--border); }
.nav-item.depth-1 a { min-height: 32px; font-size: 13px; }
.sidebar-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.sidebar-foot a { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; text-decoration: none; }
.sidebar-foot img { width: 16px; }

.content { width: 100%; min-width: 0; }
.content-inner { width: min(100%, calc(var(--article-width) + 64px)); margin-left: 16px; padding: 20.5px 32px 64px; }
.page-home .content-inner { width: min(100%, calc(var(--content-width) + 64px)); padding-top: 32px; }
.breadcrumbs { display: flex; align-items: center; gap: 5px; min-height: 28px; margin-bottom: 15px; color: var(--muted); font-size: 13px; line-height: 18px; }
.breadcrumbs img { width: 12px; height: 12px; flex: 0 0 auto; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-tools { display: flex; justify-content: flex-end; gap: 7px; min-height: 34px; margin-bottom: -34px; transform: translateY(-2px); }
.tool-button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 18px; text-decoration: none; cursor: pointer; }
.tool-button:hover { background: var(--surface-hover); color: var(--text); }
.tool-button img { width: 14px; height: 14px; }

.document { width: 100%; color: var(--body-text); font-size: 16px; line-height: 1.625; }
.document > * { max-width: var(--prose-width); }
.document > h1, .document > figure, .document > table, .document > div[data-full-width="true"] { max-width: 100%; }
.document > :first-child { margin-top: 0; }
.document h1, .document h2, .document h3, .document h4 { position: relative; color: var(--text); letter-spacing: -.025em; scroll-margin-top: 88px; }
.document h1 { margin: 0 0 24px; font-size: 36px; line-height: 45px; letter-spacing: -.035em; font-weight: 700; }
.document h2 { margin: 71px 0 0; padding-bottom: 18.5px; font-size: 30px; line-height: 36px; font-weight: 600; }
.document h3 { margin: 20px 0 0; padding-bottom: 1px; font-size: 24px; line-height: 32px; font-weight: 600; }
.document h4 { margin: 25px 0 9px; font-size: 16px; line-height: 24px; font-weight: 680; }
.document p { margin: 0 0 16px; }
.document strong { color: var(--text); font-weight: 650; }
.document ul, .document ol { margin: 0 0 18px; padding-left: 24px; }
.document li { margin: 4px 0; padding-left: 3px; }
.document hr { margin: 36px 0; border: 0; border-top: 1px solid var(--border); }
.heading-anchor { position: absolute; left: -25px; top: .1em; display: grid; place-items: center; width: 22px; height: 1.4em; opacity: 0; }
.heading-anchor img { width: 14px; height: 14px; }
.document h2:hover .heading-anchor, .document h3:hover .heading-anchor, .document h4:hover .heading-anchor, .heading-anchor:focus { opacity: .72; }
.document figure { margin: 20px 0 28px; }
.document figure img { display: block; max-width: 100%; border: 0; border-radius: 8px; }
.document figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 20px; text-align: center; }
.document figcaption p { margin: 0; }
.document div[data-full-width="true"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.document div[data-full-width="true"] figure { margin: 0 0 20px; }
.document blockquote { margin: 20px 0; padding: 3px 0 3px 16px; border-left: 3px solid var(--border); color: var(--muted); }
.document blockquote p { margin: 0; }
.document details { margin: 10px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.document summary { padding: 13px 15px; color: var(--text); font-weight: 620; cursor: pointer; }
.document details > :not(summary) { margin-left: 15px; margin-right: 15px; }
.document pre { position: relative; overflow: auto; padding: 17px; border: 1px solid var(--border); border-radius: 8px; background: #111214; color: #e6e7e8; font-size: 13px; line-height: 1.6; }
:root[data-theme="light"] .document pre { background: #f6f7f9; color: #202124; }
.document code { padding: .12em .35em; border-radius: 4px; background: var(--surface); color: var(--accent-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.document pre code { padding: 0; background: transparent; color: inherit; }
.document table:not([data-view="cards"]) { display: block; width: 100%; overflow: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 8px; border-collapse: separate; border-spacing: 0; }
.document th, .document td { min-width: 150px; padding: 10px 13px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.document th { color: var(--text); background: var(--surface); font-size: 13px; }
.document tr:last-child td { border-bottom: 0; }
.document th:last-child, .document td:last-child { border-right: 0; }
.hint { position: relative; display: block; margin: 20px 0; padding: 14px 16px 14px 45px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--body-text); }
.hint::before { content: "i"; position: absolute; left: 15px; top: 14px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; font-family: Georgia, serif; }
.hint p:last-child { margin-bottom: 0; }
.hint-warning::before { content: "!"; background: var(--warning); color: #3b2b00; }
.hint-danger::before { content: "!"; background: var(--danger); }
.hint-success::before { content: "✓"; background: var(--success); }
.stepper { list-style: none; counter-reset: step; padding: 0 !important; }
.step { position: relative; margin: 0 !important; padding: 4px 0 28px 48px !important; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 3px; top: 3px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--text); font-size: 13px; font-weight: 700; }
.step::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 1px; background: var(--border); }
.step:last-child::after { display: none; }
.tabs { margin: 20px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tab-list { display: flex; gap: 2px; overflow-x: auto; padding: 5px 6px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.tab-list button { position: relative; min-height: 38px; padding: 7px 11px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tab-list button:hover { color: var(--text); }
.tab-list button[aria-selected="true"] { color: var(--text); }
.tab-list button[aria-selected="true"]::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tab { padding: 15px 17px 5px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 20px 0; }
.column { min-width: 0; }
.embed { margin: 18px 0; }
.button.primary, .embed a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 7px; background: #1677e8; color: #fff; font-weight: 650; text-decoration: none; }
.mark-primary, .mark-info, .mark-success, .mark-danger, .mark-warning, .mark-yellow, mark { padding: 0; background: transparent; color: var(--accent-strong); }
.mark-success { color: var(--success); }
.mark-danger { color: var(--danger); }
.mark-warning, .mark-yellow { color: var(--warning); }

.doc-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 32px; }
.doc-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--body-text); text-decoration: none; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.doc-card:hover { border-color: color-mix(in srgb, var(--border) 35%, var(--accent)); background: var(--surface-raised); transform: translateY(-2px); }
.doc-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: #111; }
.doc-card-cover img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.doc-card-copy { position: relative; display: flex; flex: 1; flex-direction: column; padding: 13px 34px 14px 14px; }
.doc-card-title h4, .doc-card-title { margin: 0 0 6px; color: var(--text); font-size: 15px; font-weight: 680; }
.doc-card-description, .doc-card-description mark { color: var(--muted); font-size: 13px; line-height: 20px; }
.doc-card-arrow { position: absolute; right: 13px; top: 12px; color: var(--muted); }
.doc-card-grid-large { grid-template-columns: 1fr; }
.doc-card-grid-large .doc-card-copy { min-height: 84px; }

.page-home .outline-button { display: none; }
.page-home .document h1 { margin-bottom: 20px; }
.page-home .document > figure:first-of-type { margin-top: 26.5px; margin-bottom: 20px; }
.page-home .document > figure:first-of-type img { width: 100%; height: 246.09px; border: 0; border-radius: 0; object-fit: fill; }
.page-home .document > h4 { margin: 0 0 40px; padding-right: 65px; font-size: 20px; line-height: 27.5px; letter-spacing: -.25px; font-weight: 600; }
.page-home .document > h4 ~ p { margin-top: 20px; margin-bottom: 20px; }
.page-home .doc-card-grid { width: calc(100% + 2px); max-width: calc(100% + 2px); margin-top: 49px; margin-left: -1px; }
.page-home .doc-card { border: 0; box-shadow: inset 0 0 0 1px var(--border); }
.page-home .doc-card-cover { border-bottom: 0; box-shadow: inset 0 -1px var(--border); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.pager > a { display: flex; min-height: 82px; flex-direction: column; justify-content: center; gap: 4px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; }
.pager > a:hover { border-color: var(--accent); background: var(--surface); }
.pager span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.pager img { width: 13px; }
.pager strong { font-size: 14px; font-weight: 620; }
.pager .next { align-items: flex-end; text-align: right; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 8px; }
.footer-logo { width: 22px; height: 22px; border-radius: 5px; }
.site-footer nav { display: flex; align-items: center; gap: 5px; }
.site-footer nav a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; }
.site-footer nav a:hover { background: var(--surface); }
.site-footer nav img { width: 17px; height: 17px; object-fit: contain; filter: grayscale(1) contrast(.8); opacity: .75; }
:root[data-theme="dark"] .site-footer nav img { filter: grayscale(1) brightness(1.8); }

.page-overlay { position: fixed; inset: var(--header-height) 0 0; z-index: 89; background: rgba(0, 0, 0, .48); backdrop-filter: blur(2px); }
.outline-drawer { position: fixed; z-index: 95; top: var(--header-height); right: 0; bottom: 0; width: min(390px, 92vw); overflow: auto; padding: 0 24px 32px; border-left: 1px solid var(--border); background: var(--bg); box-shadow: -20px 0 50px rgba(0,0,0,.25); transform: translateX(105%); transition: transform .2s ease; }
.outline-open .outline-drawer { transform: translateX(0); }
.outline-drawer .drawer-head { display: flex; margin: 0 -24px 20px; padding: 0 20px; }
.outline-list > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.outline-list ul { list-style: none; margin: 0; padding: 0; }
.outline-list a { display: block; padding: 6px 8px; border-left: 2px solid var(--border); color: var(--muted); font-size: 13px; line-height: 19px; text-decoration: none; }
.outline-list a:hover, .outline-list a.is-active { border-left-color: var(--accent); color: var(--text); }
.outline-depth-3 a { padding-left: 18px; }
.outline-depth-4 a { padding-left: 28px; font-size: 12px; }

.search-dialog { position: fixed; inset: 0; z-index: 150; padding: 76px 16px 16px; background: rgba(10, 11, 13, .58); backdrop-filter: blur(6px); }
.search-panel { width: min(100%, 560px); max-height: min(680px, calc(100vh - 100px)); display: flex; flex-direction: column; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow); }
.search-box { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 0 14px 0 17px; border-bottom: 1px solid var(--border); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-box input::placeholder { color: var(--muted); }
.search-close { min-width: 38px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 11px; cursor: pointer; }
.search-status { margin: 0; padding: 13px 16px 8px; color: var(--muted); font-size: 12px; }
.search-results { min-height: 110px; overflow: auto; padding: 4px 8px 10px; }
.search-result { display: block; padding: 10px 11px; border-radius: 8px; color: var(--body-text); text-decoration: none; }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--accent-soft); }
.search-result-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-result strong { color: var(--text); font-size: 14px; }
.search-result small { color: var(--muted); font-size: 11px; }
.search-result p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result mark { padding: 0 1px; border-radius: 2px; background: rgba(93, 167, 255, .23); color: inherit; }
.search-empty { padding: 28px 16px 36px; color: var(--muted); text-align: center; }
.search-help { display: flex; align-items: center; gap: 15px; padding: 9px 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.search-help span { display: flex; align-items: center; gap: 4px; }
.search-help kbd { min-width: 20px; padding: 1px 4px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); text-align: center; }

.not-found { width: min(100% - 32px, 560px); margin: 14vh auto; text-align: center; }
.not-found > img { width: 54px; height: 54px; border-radius: 12px; }
.not-found > p:first-of-type { color: var(--accent); font-weight: 700; letter-spacing: .12em; }
.not-found h1 { margin: 8px 0; font-size: 38px; }
.not-found .access-button { margin-top: 16px; }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: minmax(210px, 280px) minmax(220px, 440px) 1fr; gap: 18px; padding-left: 22px; }
  .layout { grid-template-columns: 280px minmax(0, 1fr); }
  .sidebar { padding-left: 22px; }
  .content-inner { margin-left: 0; }
  .social-picker { display: none; }
}

@media (max-width: 820px) {
  :root { --content-width: 100%; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 10px 0 8px; }
  .topbar-left { gap: 2px; }
  .brand { font-size: 14px; }
  .brand > img { width: 30px; height: 30px; }
  .menu-button, .mobile-search-button { display: inline-grid; }
  .mobile-more-picker { display: block; }
  .mobile-search-button { border: 1px solid var(--border); border-radius: 8px; }
  .search-trigger, .theme-picker, .access-button, .social-picker { display: none; }
  .topbar-actions { gap: 5px; }
  .mobile-more-menu { position: absolute; top: calc(100% + 8px); right: -45px; z-index: 110; width: 220px; max-height: calc(100vh - 80px); overflow: auto; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); box-shadow: var(--shadow); }
  .mobile-more-menu > p { margin: 6px 8px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-more-menu > p:not(:first-child) { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
  .mobile-theme-options, .mobile-social-links { display: grid; gap: 2px; }
  .mobile-theme-options button, .mobile-social-links a { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--body-text); font-size: 14px; text-decoration: none; cursor: pointer; }
  .mobile-theme-options button:hover, .mobile-theme-options button[aria-checked="true"], .mobile-social-links a:hover { background: var(--accent-soft); color: var(--text); }
  .mobile-theme-options img, .mobile-social-links img { width: 17px; height: 17px; object-fit: contain; }
  :root[data-theme="dark"] .mobile-social-links img { filter: grayscale(1) brightness(1.8); }
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 95; top: var(--header-height); bottom: 0; left: 0; width: 287px; height: auto; padding: 0 14px 32px; border-right: 1px solid var(--border); background: var(--bg); box-shadow: 20px 0 50px rgba(0,0,0,.25); transform: translateX(-105%); transition: transform .2s ease; }
  .nav-open .sidebar { transform: translateX(0); }
  .sidebar .drawer-head { position: sticky; top: 0; z-index: 1; display: flex; margin: 0 -14px 14px; background: var(--bg); }
  .content-inner { position: relative; width: 100%; padding: 20px 16px 48px; }
  .page-home .content-inner { width: 100%; padding-top: 20px; }
  .breadcrumbs { margin-bottom: 13px; font-size: 12px; }
  .page-tools { min-height: 32px; margin-bottom: 14px; transform: none; }
  .tool-button { padding: 5px 8px; }
  body:not(.page-home) .breadcrumbs { display: block; height: 27px; min-height: 27px; max-width: 160px; overflow: hidden; font-size: 11px; font-weight: 650; line-height: 13.5px; text-transform: uppercase; transform: translateY(14px); }
  body:not(.page-home) .breadcrumbs > :last-child, body:not(.page-home) .breadcrumbs > :nth-last-child(2) { display: none; }
  body:not(.page-home) .breadcrumbs > img { display: none; }
  body:not(.page-home) .breadcrumbs a, body:not(.page-home) .breadcrumbs span { display: block; overflow: hidden; line-height: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
  body:not(.page-home) .page-tools { position: absolute; top: 24px; right: 16px; width: auto; min-height: 32px; margin: 0; }
  body:not(.page-home) .page-tools > .tool-button:first-child { width: 120px; justify-content: center; }
  body:not(.page-home) .page-tools > .outline-button { width: 40px; justify-content: center; padding: 0; font-size: 0; }
  body:not(.page-home) .document { padding-top: 32px; }
  .document h1 { max-width: none; margin-bottom: 20.5px; font-size: 30px; line-height: 37.5px; }
  .document h2 { margin-top: 67.5px; padding-bottom: 0; font-size: 23px; line-height: 31px; }
  .document h3 { margin-top: 32px; padding-bottom: 0; font-size: 19px; line-height: 27px; }
  body:not(.page-home) .document > figure { margin-top: 22.5px; margin-bottom: 8.5px; }
  body:not(.page-home) .document > figure + .hint { margin-top: 8.5px; }
  .page-home .document h2 { margin-top: 36px; }
  .page-home .document h3 { margin-top: 28px; }
  .page-home .page-tools { justify-content: flex-end; margin-bottom: 7.5px; }
  .page-home .document h1 { margin-bottom: 24px; }
  .page-home .document > figure:first-of-type { margin-top: 20px; margin-bottom: 20px; }
  .page-home .document > figure:first-of-type img { height: auto; object-fit: contain; }
  .page-home .document > h4 { height: 108px; min-height: 108px; margin-bottom: 40px; padding-right: 0; font-size: 18px; line-height: 28px; font-weight: 600; }
  .page-home .document > h4 + p + p { margin-top: 40px; margin-bottom: 18px; }
  .page-home .doc-card-grid { width: 100%; max-width: 100%; margin-top: 19px; margin-left: 0; }
  .heading-anchor { display: none; }
  .doc-card-grid { grid-template-columns: 1fr; }
  .doc-card { flex-direction: row; min-height: 116px; }
  .doc-card-cover { width: 39%; flex: 0 0 auto; aspect-ratio: auto; border: 0; border-right: 1px solid var(--border); }
  .doc-card-grid-large .doc-card { min-height: 80px; }
  .pager { grid-template-columns: 1fr; }
  .pager > span:empty { display: none; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .search-dialog { padding: var(--header-height) 0 0; }
  .search-panel { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .search-help { display: none; }
}

@media (max-width: 460px) {
  .brand span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumbs { overflow: hidden; }
  .page-tools { justify-content: flex-start; }
  .document div[data-full-width="true"], .columns { grid-template-columns: 1fr; }
  .doc-card { flex-direction: column; }
  .doc-card-cover { width: 100%; aspect-ratio: 16 / 8; border-right: 0; border-bottom: 1px solid var(--border); }
  .search-result-top { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
