:root {
  --bg: #fff; --bg-alt: #f6f6f7; --bg-hover: #ececf0; --text: #3c3c43;
  --text-strong: #242428; --text-soft: #67676c; --border: #e2e2e3; --divider: #e9e9ec;
  --brand: #3451b2; --brand-soft: #e9edfa; --code-bg: #f6f6f7; --code-text: #4760ab;
  --info-bg: #f1f4fc; --shadow: 0 16px 64px #2020292b; --header-height: 64px;
  --sidebar-width: 272px; color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  --bg: #1b1b1f; --bg-alt: #161618; --bg-hover: #2c2c32; --text: #d0d0d6;
  --text-strong: #eeeef0; --text-soft: #a2a2ac; --border: #3c3c43; --divider: #2e2e32;
  --brand: #a8b1ff; --brand-soft: #292e47; --code-bg: #161618; --code-text: #a8b1ff;
  --info-bg: #252a3b; --shadow: 0 16px 64px #0008; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.75; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: var(--brand); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, pre:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 3px; }
button:disabled { cursor: default; }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 6px 16px; z-index: 150; background: var(--brand); color: var(--bg); border-radius: 4px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { height: var(--header-height); position: fixed; inset: 0 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--divider); z-index: 40; }
.brand { color: var(--text-strong); display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; font-size: 16px; font-weight: 750; background: var(--text-strong); color: var(--bg); border-radius: 7px; }
.brand-subtitle { margin-left: 8px; font-weight: 550; font-size: 14px; letter-spacing: 0; }
.search-trigger { display: flex; align-items: center; gap: 9px; padding: 7px 9px 7px 12px; border: 1px solid transparent; background: var(--bg-alt); color: var(--text-soft); border-radius: 7px; font-size: 12px; height: 36px; }
.search-trigger:hover { border-color: var(--brand); }
.search-trigger svg { width: 16px; height: 16px; }
kbd { font-family: inherit; font-size: 11px; font-weight: 500; line-height: 20px; padding: 0 5px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.search-trigger kbd { margin-left: 18px; }
.top-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 13px; font-weight: 500; white-space: nowrap; }
.top-links a { color: var(--text-strong); }
.top-links a:hover, .top-links .selected { color: var(--brand); }
.external-link { display: inline-flex; align-items: center; gap: 2px; }
.external-link svg { width: 12px; height: 12px; color: var(--text-soft); }
.header-divider { width: 1px; height: 20px; background: var(--border); }
.theme-toggle { padding: 0; width: 42px; height: 24px; display: flex; align-items: center; border: 1px solid var(--border); background: var(--bg-alt); border-radius: 20px; position: relative; }
.theme-toggle svg { width: 20px; height: 20px; padding: 3px; position: absolute; left: 1px; background: var(--bg); border-radius: 50%; box-shadow: 0 1px 2px #0001; transition: left .2s; }
.theme-toggle svg + svg { opacity: 0; }
[data-theme="dark"] .theme-toggle svg { left: 19px; opacity: 0; }
[data-theme="dark"] .theme-toggle svg + svg { opacity: 1; }
.sidebar { position: fixed; top: var(--header-height); bottom: 0; left: 0; width: var(--sidebar-width); padding: 28px 24px 32px 32px; background: var(--bg-alt); overflow-y: auto; z-index: 30; display: flex; flex-direction: column; }
.sidebar-edition { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 11px; margin-bottom: 26px; }
.sidebar-edition span:first-child { font-size: 10px; font-weight: 650; letter-spacing: .7px; border: 1px solid var(--border); padding: 0 6px; border-radius: 4px; line-height: 21px; }
.sidebar-group + .sidebar-group { border-top: 1px solid var(--border); padding-top: 17px; margin-top: 20px; }
.sidebar-group h2 { font-size: 14px; color: var(--text-strong); font-weight: 650; margin: 0 0 8px; }
.sidebar-group a { display: block; padding: 6px 10px; margin: 0 -10px; line-height: 1.6; font-size: 13px; color: var(--text-soft); border-radius: 5px; transition: color .15s, background .15s; }
.sidebar-group a:hover { color: var(--text-strong); background: var(--bg-hover); }
.sidebar-group a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.sidebar-bottom { padding-top: 34px; margin-top: auto; font-size: 11px; color: var(--text-soft); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.status-dot { width: 5px; height: 5px; background: var(--text-soft); border-radius: 50%; }
.offline-label { width: 100%; padding-left: 12px; font-size: 10px; opacity: .8; }
.doc-layout { display: flex; gap: 56px; max-width: 1216px; margin: var(--header-height) auto 0; margin-left: var(--sidebar-width); padding: 38px 48px 0; }
main { flex: 1; min-width: 0; max-width: 740px; padding-bottom: 24px; scroll-margin-top: 96px; }
.breadcrumb { display: flex; gap: 10px; color: var(--text-soft); font-size: 11px; margin-bottom: 22px; }
.breadcrumb span { opacity: .5; }
.doc { font-size: 15px; line-height: 1.9; overflow-wrap: break-word; }
.doc h1, .doc h2, .doc h3 { position: relative; font-weight: 650; color: var(--text-strong); scroll-margin-top: 96px; letter-spacing: -.4px; }
.doc h1 { font-size: 30px; line-height: 1.4; margin: 0 0 22px; }
.doc h2 { font-size: 22px; line-height: 1.5; margin: 44px 0 18px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 17px; line-height: 1.5; margin: 28px 0 14px; }
.doc p { margin: 16px 0; }
.doc h1 + p { color: var(--text-soft); font-size: 16px; line-height: 1.85; margin-bottom: 26px; }
.doc strong { font-weight: 650; color: var(--text-strong); }
.doc a:not(.heading-anchor):not(.guide-card):not(.download-card) { text-underline-offset: 3px; }
.doc p a, .doc li a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.doc a:hover { text-decoration: underline; }
.heading-anchor { position: absolute; left: -24px; padding-right: 8px; font-size: .9em; font-weight: 500; opacity: 0; top: 26px; }
h3 .heading-anchor { top: 0; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.doc code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .86em; background: var(--code-bg); color: var(--code-text); padding: 3px 5px; border-radius: 4px; font-weight: 500; overflow-wrap: anywhere; }
.doc ul, .doc ol { padding-left: 23px; margin: 16px 0; }
.doc li + li { margin-top: 8px; }
.callout { background: var(--info-bg); border: 1px solid transparent; border-radius: 7px; padding: 16px 19px; margin: 24px 0; font-size: 13px; line-height: 1.85; }
.callout.note { background: var(--bg-alt); }
.callout .callout-title { margin: 0 0 6px; font-size: 13px; color: var(--text-strong); font-weight: 650; }
.callout p { margin: 0; }
.callout code { background: color-mix(in srgb, var(--border) 50%, transparent); }
.table-scroll { overflow-x: auto; margin: 22px 0; scrollbar-width: thin; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.75; text-align: left; }
.doc th { font-weight: 650; color: var(--text-strong); background: var(--bg-alt); white-space: nowrap; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 14px; min-width: 110px; }
.doc td:first-child { min-width: 175px; }
.doc tr:nth-child(even) { background: color-mix(in srgb, var(--bg-alt) 55%, var(--bg)); }
.code-block { background: var(--code-bg); margin: 20px 0; border: 1px solid var(--divider); border-radius: 8px; overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 0 20px; font-size: 10px; letter-spacing: .6px; color: var(--text-soft); height: 35px; }
.copy-code { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 7px; font-size: 11px; border: 1px solid transparent; background: transparent; border-radius: 5px; color: var(--text-soft); letter-spacing: 0; }
.copy-code svg { width: 12px; height: 12px; }
.copy-code:hover { background: var(--bg-hover); color: var(--text-strong); border-color: var(--border); }
.copy-code.copied { color: var(--brand); }
.doc pre { margin: 0; padding: 12px 20px 21px; overflow-x: auto; scrollbar-width: thin; line-height: 1.8; }
.doc pre code { display: block; padding: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 400; overflow-wrap: normal; }
.hljs-keyword, .hljs-literal { color: #8959a8; }
.hljs-string { color: #32754c; }
.hljs-number { color: #a15c09; }
.hljs-attr, .hljs-title { color: #315ab7; }
.hljs-comment { color: #73797d; font-style: italic; }
.hljs-built_in, .hljs-type { color: #9a5332; }
[data-theme="dark"] .hljs-keyword, [data-theme="dark"] .hljs-literal { color: #c4a1e4; }
[data-theme="dark"] .hljs-string { color: #a4c69a; }
[data-theme="dark"] .hljs-number { color: #d4ad76; }
[data-theme="dark"] .hljs-attr, [data-theme="dark"] .hljs-title { color: #9bb5f3; }
[data-theme="dark"] .hljs-comment { color: #92929a; }
[data-theme="dark"] .hljs-built_in, [data-theme="dark"] .hljs-type { color: #e5b293; }
.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.guide-card { display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text-soft); gap: 8px; font-size: 13px; line-height: 1.8; transition: border-color .15s, background .15s; }
.doc .guide-card:hover { border-color: var(--brand); background: var(--bg-alt); text-decoration: none; }
.card-label { font-size: 10px; letter-spacing: .4px; }
.guide-card strong { font-size: 15px; }
.guide-card strong span { color: var(--brand); }
.download-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 8px; margin: 24px 0; }
.doc .download-card:hover { border-color: var(--brand); background: var(--bg-alt); text-decoration: none; }
.download-icon { display: grid; place-items: center; width: 38px; height: 42px; background: var(--brand-soft); color: var(--brand); border-radius: 7px; font-size: 22px; }
.download-card strong { display: block; font-size: 15px; margin-bottom: 1px; }
.download-card span span { display: block; font-size: 12px; color: var(--text-soft); }
.download-type { margin-left: auto; font-size: 10px; color: var(--text-soft); letter-spacing: .8px; }
.link-list { margin: 24px 0; border: 1px solid var(--border); border-radius: 6px; }
.link-list a { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 13px; }
.link-list a + a { border-top: 1px solid var(--border); }
.outline { width: 192px; flex: 0 0 192px; align-self: flex-start; position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; padding-top: 0; font-size: 12px; scrollbar-width: thin; }
.outline nav { border-left: 1px solid var(--border); padding-left: 16px; }
.outline p { color: var(--text-strong); font-size: 12px; font-weight: 600; margin: 0 0 12px; }
.toc-link { display: block; padding: 4px 0; line-height: 1.6; color: var(--text-soft); position: relative; }
.toc-link:hover, .toc-link.active { color: var(--brand); }
.outline .toc-link.active:before { content: ''; height: 15px; width: 2px; position: absolute; left: -17px; top: 6px; border-radius: 2px; background: var(--brand); }
.toc-link.depth-3 { padding-left: 12px; font-size: 11px; }
.outline-top { display: block; color: var(--text-soft); margin: 22px 0 0 17px; font-size: 11px; }
.doc-meta { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: 11px; }
.doc-meta a { display: inline-flex; align-items: center; gap: 2px; }
.doc-meta svg { height: 12px; width: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager-link { display: block; border: 1px solid var(--border); border-radius: 7px; padding: 12px 16px; line-height: 1.65; }
.pager-link:hover { border-color: var(--brand); }
.pager-link span { color: var(--text-soft); font-size: 11px; display: block; }
.pager-link strong { font-size: 13px; font-weight: 500; }
.pager-link.next { text-align: right; }
.doc-footer { display: flex; gap: 16px; justify-content: space-between; color: var(--text-soft); font-size: 10px; padding-top: 32px; opacity: .85; }
.search-dialog { border: 1px solid var(--border); padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 100px); border-radius: 10px; background: var(--bg); color: var(--text); box-shadow: var(--shadow); margin: 12vh auto auto; }
.search-dialog::backdrop { background: #15151b80; backdrop-filter: blur(4px); }
.search-box { padding: 14px; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border: 2px solid var(--brand); border-radius: 7px; }
.search-input-row > svg { color: var(--brand); }
.search-input-row input { min-width: 0; flex: 1; border: none; color: var(--text-strong); outline: none; background: transparent; height: 28px; font-size: 15px; }
.search-input-row input:focus-visible { outline: none; }
.search-input-row input::-webkit-search-cancel-button { display: none; }
.search-close { background: transparent; border: none; padding: 2px; display: flex; color: var(--text-soft); }
.search-summary { font-size: 12px; color: var(--text-soft); margin: 15px 4px 12px; }
.search-results { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow-y: auto; }
.search-results li + li { margin-top: 6px; }
.search-results a { display: block; padding: 12px 14px; border: 1px solid var(--divider); border-radius: 6px; color: var(--text); font-size: 12px; line-height: 1.7; }
.search-results a:hover, .search-results a[data-selected="true"] { background: var(--brand-soft); border-color: var(--brand); }
.search-results a > span { display: block; }
.search-results .search-page { color: var(--text-soft); font-size: 10px; margin-bottom: 3px; }
.search-results .search-heading { font-size: 14px; font-weight: 600; color: var(--text-strong); margin-bottom: 5px; }
.search-results mark { background: color-mix(in srgb, var(--brand) 17%, transparent); color: var(--brand); border-radius: 2px; }
.search-hints { display: flex; gap: 14px; font-size: 10px; color: var(--text-soft); padding: 14px 2px 0; align-items: center; }
.search-hints kbd { font-size: 9px; line-height: 16px; padding: 0 3px; margin-right: 3px; }
.search-local { margin-left: auto; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; background: var(--text-strong); color: var(--bg); padding: 8px 18px; font-size: 13px; border-radius: 7px; z-index: 100; box-shadow: var(--shadow); transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.mobilebar { display: none; }
.no-script { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-alt); border-top: 1px solid var(--border); padding: 8px 20px; text-align: center; font-size: 12px; }
.authoring-bar { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 16px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-alt); font-size: 12px; }
.authoring-bar strong { display: block; color: var(--text-strong); font-size: 12px; }
.authoring-hint { color: var(--text-soft); }
.edit-mode-button, .edit-actions button { border: 1px solid var(--border); background: var(--bg); border-radius: 5px; padding: 5px 12px; white-space: nowrap; font-size: 12px; }
.edit-mode-button { flex-shrink: 0; color: var(--text-soft); }
.edit-mode-button[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.editor-login { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--bg); box-shadow: var(--shadow); }
.editor-login::backdrop { background: #1116; }
.editor-login h2 { font-size: 20px; line-height: 1.4; margin: 0 0 8px; color: var(--text-strong); }
.editor-login p { font-size: 13px; color: var(--text-soft); margin: 8px 0 18px; }
.editor-login label { display: block; font-size: 12px; margin-bottom: 6px; }
.editor-login input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: var(--bg-alt); color: var(--text-strong); }
.editor-login .editor-login-status { min-height: 20px; margin: 10px 0; color: var(--brand); }
.editor-login .edit-actions { justify-content: flex-end; }
.editable-doc [data-edit-block]:not([data-edit-readonly]) { cursor: text; outline: 1px solid transparent; outline-offset: 6px; border-radius: 3px; }
.editable-doc [data-edit-block]:not([data-edit-readonly]):hover, .editable-doc [data-edit-block]:focus-visible { outline-color: var(--brand); }
.doc .edit-saved { background: var(--brand-soft); }
.inline-editor { min-width: 0; padding: 16px; margin: 20px 0; border: 1px solid var(--brand); border-radius: 8px; background: var(--bg-alt); scroll-margin-top: 140px; }
.inline-editor label { display: block; font-weight: 600; font-size: 13px; color: var(--text-strong); }
.edit-help { display: block; color: var(--text-soft); font-size: 11px; margin: 2px 0 10px; }
.inline-editor textarea { display: block; width: 100%; min-height: 120px; max-height: 65vh; resize: vertical; border: 1px solid var(--border); border-radius: 5px; padding: 12px; background: var(--bg); color: var(--text-strong); font: 14px/1.8 "SFMono-Regular", Consolas, "Microsoft YaHei", monospace; tab-size: 2; }
.inline-editor textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.edit-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.edit-status { flex: 1 1 180px; font-size: 11px; color: var(--text-soft); overflow-wrap: anywhere; }
.edit-actions .edit-save { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.edit-actions button:disabled { opacity: .55; }
@media (min-width: 1600px) {
  :root { --sidebar-width: calc(272px + (100vw - 1600px) / 2); }
  .sidebar { padding-left: calc(32px + (100vw - 1600px) / 2); }
  .topbar { padding-left: calc(32px + (100vw - 1600px) / 2); padding-right: calc(32px + (100vw - 1600px) / 2); }
}
@media (max-width: 1279px) {
  .doc-layout { gap: 32px; padding: 36px 40px 0; }
  .outline { display: none; }
  main { max-width: 780px; margin: 0 auto; }
  .topbar { gap: 18px; }
  .top-links { gap: 18px; }
  .search-trigger kbd { margin-left: 4px; }
}
@media (max-width: 1050px) {
  .top-links .external-link { display: none; }
  .brand-subtitle { font-size: 13px; }
}
@media (max-width: 959px) {
  .topbar { padding: 0 24px; gap: 18px; }
  .brand { margin-right: auto; }
  .brand-subtitle { font-size: 14px; }
  .top-links { display: none; }
  .header-divider { display: none; }
  .search-trigger { margin-left: auto; }
  .sidebar { top: 108px; width: 284px; transform: translateX(-100%); transition: transform .2s; border-right: 1px solid var(--border); visibility: hidden; }
  body[data-nav="open"] .sidebar { transform: none; visibility: visible; }
  body[data-nav="open"] { overflow: hidden; }
  .sidebar-backdrop { position: fixed; inset: 108px 0 0; border: none; background: #18181d60; z-index: 29; }
  .mobilebar { display: flex; position: fixed; top: var(--header-height); left: 0; right: 0; height: 44px; border-bottom: 1px solid var(--divider); background: var(--bg); padding: 0 24px; align-items: center; justify-content: space-between; z-index: 35; }
  .sidebar-toggle { display: flex; align-items: center; gap: 7px; padding: 0; font-size: 12px; border: none; background: transparent; color: var(--text-soft); }
  .sidebar-toggle svg { height: 15px; width: 15px; }
  .mobile-outline { font-size: 12px; color: var(--text-soft); }
  .mobile-outline summary { cursor: pointer; list-style: none; }
  .mobile-outline summary::-webkit-details-marker { display: none; }
  .mobile-outline summary span { margin-left: 4px; }
  .mobile-outline nav { position: absolute; top: 43px; right: 24px; left: 24px; max-height: 65vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 0 0 8px 8px; padding: 18px 24px; background: var(--bg); box-shadow: var(--shadow); }
  .mobile-outline .toc-link { padding: 5px 0; }
  .mobile-outline .depth-3 { padding-left: 12px; }
  .doc-layout { margin: 108px 0 0; padding: 32px 40px 0; }
  main { width: 100%; max-width: 704px; scroll-margin-top: 128px; }
  .doc h2, .doc h3 { scroll-margin-top: 128px; }
  .breadcrumb { margin-bottom: 20px; }
}
@media (max-width: 599px) {
  .topbar { padding: 0 20px; gap: 14px; }
  .brand-subtitle { font-size: 12px; margin-left: 6px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-mark { width: 25px; height: 25px; font-size: 14px; }
  .search-trigger { padding: 4px; background: transparent; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger svg { width: 19px; height: 19px; }
  .theme-toggle { width: 36px; height: 22px; }
  .theme-toggle svg { width: 18px; height: 18px; }
  [data-theme="dark"] .theme-toggle svg { left: 15px; }
  .mobilebar { padding: 0 22px; }
  .doc-layout { padding: 28px 24px 0; }
  .doc { font-size: 14px; }
  .doc h1 { font-size: 26px; margin-bottom: 20px; }
  .doc h1 + p { font-size: 15px; }
  .doc h2 { margin-top: 34px; padding-top: 22px; font-size: 20px; }
  .doc h3 { font-size: 16px; }
  .heading-anchor { left: -16px; font-size: 14px; top: 26px; }
  h3 .heading-anchor { top: 2px; }
  .guide-cards { grid-template-columns: 1fr; }
  .doc pre { padding: 12px 16px 18px; }
  .code-toolbar { padding-left: 16px; }
  .callout { padding: 14px 16px; }
  .download-card { padding: 16px; gap: 12px; }
  .download-card span span { font-size: 10px; }
  .download-type { display: none; }
  .doc-meta { flex-wrap: wrap; gap: 8px; }
  .pager { gap: 10px; }
  .pager-link { padding: 10px 12px; }
  .pager-link strong { font-size: 12px; }
  .doc-footer { display: block; line-height: 1.9; }
  .doc-footer span { display: block; }
  .search-dialog { margin-top: 24px; max-height: calc(100dvh - 48px); }
  .search-results { max-height: calc(100dvh - 240px); }
  .search-hints { gap: 8px; }
  .authoring-bar { padding: 10px 12px; gap: 10px; }
  .authoring-hint { display: block; font-size: 11px; }
  .edit-mode-button { padding: 4px 7px; font-size: 11px; }
  .topbar:has(.edit-mode-button:not([hidden])) { gap: 9px; }
  .topbar:has(.edit-mode-button:not([hidden])) .brand-subtitle { display: none; }
  .inline-editor { padding: 12px; }
  .edit-status { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --text: #222; --text-strong: #000; --text-soft: #444; --code-bg: #f6f6f7; --border: #ddd; --brand: #23428f; }
  .topbar, .sidebar, .mobilebar, .outline, .copy-code, .pager, .doc-meta, .heading-anchor, .skip-link, .search-dialog, .authoring-bar, .editor-login { display: none !important; }
  .doc-layout { margin: 0; padding: 0; max-width: none; }
  main { max-width: none; }
  .code-block, .callout, .guide-card { break-inside: avoid; }
  .doc pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .doc-footer { border-top: 1px solid #ddd; margin-top: 24px; }
}
