/* 东智慧达文档主题，沿用主站 indigo / cyan 品牌色。 */
:root {
  color-scheme: light;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --accent: #0891b2;
  --background: #f7f8ff;
  --surface: #ffffff;
  --surface-subtle: #eef0fa;
  --foreground: #17182b;
  --muted: #4b526b;
  --border: #dce0ee;
  --strong-border: #cbd1e2;
  --brand-soft: #e0e7ff;
  --brand-soft-text: #3730a3;
  --code-background: #f4f5fc;
  --warning-background: #fff9eb;
  --warning-border: #c98d14;
  --scrim: rgb(15 18 41 / 48%);
  --shadow: 0 20px 70px rgb(23 24 43 / 16%);
  --header-height: 76px;
  font-family: "Public Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #a5b4fc;
    --primary-hover: #c7d2fe;
    --accent: #67e8f9;
    --background: #101220;
    --surface: #171a2a;
    --surface-subtle: #20253d;
    --foreground: #f0f0fa;
    --muted: #b5bbd1;
    --border: #2e344d;
    --strong-border: #464e6c;
    --brand-soft: #292d54;
    --brand-soft-text: #c7d2fe;
    --code-background: #121523;
    --warning-background: #292315;
    --warning-border: #d7a440;
    --scrim: rgb(0 0 0 / 65%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #a5b4fc;
  --primary-hover: #c7d2fe;
  --accent: #67e8f9;
  --background: #101220;
  --surface: #171a2a;
  --surface-subtle: #20253d;
  --foreground: #f0f0fa;
  --muted: #b5bbd1;
  --border: #2e344d;
  --strong-border: #464e6c;
  --brand-soft: #292d54;
  --brand-soft-text: #c7d2fe;
  --code-background: #121523;
  --warning-background: #292315;
  --warning-border: #d7a440;
  --scrim: rgb(0 0 0 / 65%);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 26px); }
body { margin: 0; color: var(--foreground); background: var(--background); font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
button { color: inherit; }
button, a { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.25vw, 43px); font-weight: 750; letter-spacing: -.04em; margin-bottom: 20px; }
h2 { font-size: 27px; letter-spacing: -.025em; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 18px; font-weight: 650; margin: 32px 0 12px; }
p { margin-bottom: 18px; }
strong { font-weight: 650; }
svg { display: block; flex-shrink: 0; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 10px 20px; background: var(--surface); border: 2px solid var(--primary); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; z-index: 20; top: 0; height: var(--header-height); background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1536px; height: 100%; padding: 0 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--foreground); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--foreground); }
.brand img { width: 38px; height: 38px; border-radius: 11px; background: #ffffff; }
.brand-name { font-size: 19px; font-weight: 720; letter-spacing: .03em; display: flex; align-items: center; gap: 16px; }
.brand-label { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .02em; border-left: 1px solid var(--strong-border); padding-left: 16px; }
.header-actions { display: flex; gap: 16px; align-items: center; }
.search-trigger { min-width: 218px; min-height: 42px; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--strong-border); border-radius: 8px; color: var(--muted); background: var(--background); font-size: 13px; }
.search-trigger:hover { border-color: var(--primary); }
kbd { border: 1px solid var(--strong-border); border-radius: 4px; font-family: inherit; font-size: 11px; padding: 0 5px; color: var(--muted); line-height: 1.8; }
.search-trigger kbd { margin-left: auto; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--surface-subtle); color: var(--foreground); }
.theme-moon { display: none; }
:root.is-dark .theme-moon { display: block; }
:root.is-dark .theme-sun { display: none; }
.console-link { text-decoration: none; color: var(--foreground); font-size: 13px; font-weight: 550; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.documentation-layout { max-width: 1536px; margin: auto; padding: 0 40px; display: grid; grid-template-columns: 212px minmax(0, 840px) 176px; column-gap: 48px; align-items: start; }
.sidebar { position: sticky; top: var(--header-height); padding: 30px 0; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; scrollbar-width: thin; }
.chapter-navigation summary { display: none; }
.chapter-navigation nav { display: flex; flex-direction: column; }
.nav-heading { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; margin: 23px 0 9px 12px; }
.nav-heading:first-child { margin-top: 0; }
.chapter-navigation nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 12px; min-height: 39px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13px; }
.chapter-navigation nav a:hover { background: var(--surface-subtle); color: var(--foreground); }
.chapter-navigation nav a[aria-current] { background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 650; }
.nav-number { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; opacity: .75; }
.chapter-navigation nav a[aria-current] .nav-number { color: var(--brand-soft-text); opacity: 1; }
.sidebar-bottom { display: flex; gap: 12px; align-items: center; font-size: 11px; line-height: 1.7; text-decoration: none; margin: 29px 12px 0; padding-top: 19px; border-top: 1px solid var(--border); color: var(--muted); }
.sidebar-bottom span:last-child { margin-left: auto; font-size: 15px; }
.main-content { padding: 38px 0 0; min-width: 0; }
.document-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 29px; }
.meta-divider { color: var(--strong-border); }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .15em; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.eyebrow-line { background: var(--accent); width: 22px; height: 2px; }
.lead { font-size: 16px; line-height: 1.95; color: var(--muted); max-width: 640px; margin-bottom: 27px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.model-coverage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--accent); }
.coverage-label { margin: 0; font-size: 12px; font-weight: 650; color: var(--foreground); }
.coverage-families { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-wrap: pretty; }
.featured-models { margin-top: 36px; }
.featured-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.featured-heading .eyebrow { font-size: 10px; margin: 0 0 7px; }
.introduction .featured-heading h2 { font-size: 22px; margin: 0; }
.featured-heading > a { font-size: 12px; flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; text-decoration: none; }
.featured-intro { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 20px; }
.featured-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.featured-card { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--border); border-top: 2px solid var(--primary); border-radius: 9px; background: var(--surface); }
.featured-card-media { grid-column: span 3; border-top-color: var(--accent); }
.featured-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.featured-category { color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.featured-card-media .featured-category { color: var(--muted); }
.featured-index { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--muted); font-size: 10px; }
.featured-card h3 { margin: 0 0 11px; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.featured-card > p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 15px; }
.featured-model-id { display: flex; align-items: center; gap: 8px; justify-content: space-between; border: 1px solid var(--border); border-radius: 5px; background: var(--background); padding: 3px 4px 3px 9px; margin-bottom: 9px; }
.featured-model-id code { color: var(--foreground); background: transparent; padding: 0; font-size: 12px; line-height: 1.7; }
.featured-model-id button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 4px 7px; background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--primary); font-size: 12px; }
.featured-model-id button:hover { background: var(--surface-subtle); border-color: var(--strong-border); }
.featured-card .featured-alternative { font-size: 12px; line-height: 1.8; margin: 0 0 12px; }
.featured-alternative code { background: transparent; padding: 0; font-size: inherit; }
.featured-card-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--border); }
.featured-card-links a { font-size: 12px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.featured-card-links a:last-child { color: var(--muted); font-weight: 500; }
.featured-card-links a:hover { color: var(--primary); text-decoration: underline; }
.featured-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 15px 0 0; }
.more-models { margin-top: 24px; border: 1px solid var(--strong-border); border-radius: 9px; background: var(--surface); scroll-margin-top: calc(var(--header-height) + 24px); }
.more-models > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 15px 20px; list-style: none; border-radius: 8px; }
.more-models > summary::-webkit-details-marker { display: none; }
.more-models > summary:hover { background: var(--surface-subtle); }
.more-models > summary strong { display: block; font-size: 15px; }
.more-model-hint { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.more-model-total { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); font-size: 12px; white-space: nowrap; }
.more-model-hint-open { display: none; }
.more-models[open] > summary { border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.more-models[open] .more-model-hint-closed { display: none; }
.more-models[open] .more-model-hint-open { display: block; }
.more-models[open] .more-model-total svg { transform: rotate(180deg); }
.more-model-content { padding: 0 18px 18px; }
.more-model-content .catalog-controls { margin-top: 18px; }
.more-model-content .small-note { margin-bottom: 12px; }
.expanded-model-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; list-style: none; margin: 14px 0 0; padding: 6px; }
.expanded-model-list > li { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); }
.expanded-model-list > li[hidden] { display: none; }
.expanded-model-list code { font-size: 12px; overflow-wrap: anywhere; }
.expanded-model-list .copy-model { flex-shrink: 0; min-height: 44px; min-width: 44px; padding: 4px 7px; border: 1px solid var(--strong-border); border-radius: 5px; background: var(--surface); color: var(--primary); font-size: 12px; }
.expanded-model-list .copy-model:hover { background: var(--surface-subtle); border-color: var(--primary); }
.expanded-model-type { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.more-model-content input, .more-model-content select { min-height: 44px; min-width: 0; max-width: 100%; padding: 9px 12px; border: 1px solid var(--strong-border); border-radius: 6px; background: var(--surface); color: var(--foreground); font: inherit; font-size: 13px; }
.more-model-content label, .more-model-content [data-model-count] { color: var(--muted); font-size: 12px; }
.workflow-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 25px; }
.workflow-links a { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; font-size: 12px; text-decoration: none; }
.workflow-links a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; border-radius: 7px; padding: 9px 17px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.button-primary { background: #4338ca; color: #ffffff; }
.button-primary:hover { background: #3730a3; color: #ffffff; }
.button-secondary { background: var(--surface); border-color: var(--strong-border); color: var(--foreground); }
.button-secondary:hover { background: var(--surface-subtle); color: var(--foreground); }
.intro-rule { height: 1px; margin: 40px 0 32px; background: linear-gradient(90deg, var(--primary), var(--accent) 45%, var(--border) 85%); opacity: .5; }
.introduction h2 { font-size: 22px; margin-bottom: 15px; }
.document-section { scroll-margin-top: calc(var(--header-height) + 24px); padding: 46px 0 50px; border-bottom: 1px solid var(--border); }
.document-section.introduction { padding-top: 0; }
.section-kicker { color: var(--primary); font-size: 11px; font-weight: 650; letter-spacing: .1em; margin-bottom: 10px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.feature-card { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--foreground); text-decoration: none; }
.feature-card:hover { color: var(--foreground); border-color: var(--primary); }
.card-tag { display: block; color: var(--primary); font-size: 10px; font-weight: 600; letter-spacing: .1em; margin-bottom: 9px; }
.feature-card h3 { font-size: 15px; margin: 0 0 9px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.feature-card h3 span { font-size: 15px; color: var(--muted); font-weight: 400; }
.feature-card p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 17px 20px; margin: 25px 0 0; background: var(--surface); font-size: 13px; }
.callout .callout-title { color: var(--foreground); font-weight: 650; margin-bottom: 6px; line-height: 1.7; }
.callout p:last-child { color: var(--muted); margin-bottom: 0; }
.callout-warning { border-left-color: var(--warning-border); background: var(--warning-background); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 29px 0 20px; }
.steps li { counter-increment: step; display: flex; gap: 19px; position: relative; padding-bottom: 25px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 600; line-height: 31px; text-align: center; width: 33px; height: 33px; flex-shrink: 0; border: 1px solid var(--strong-border); border-radius: 50%; color: var(--primary); background: var(--surface); z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; width: 1px; top: 34px; bottom: 0; left: 16px; background: var(--border); }
.steps h3 { margin: 4px 0 8px; font-size: 16px; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.small-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 18px; }
.table-scroll, .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; margin: 23px 0; background: var(--surface); }
#model-catalog .table-scroll, #model-catalog .table-wrap { max-height: 560px; overflow: auto; scrollbar-width: thin; }
#model-catalog thead { position: sticky; top: 0; z-index: 1; }
#model-catalog th { box-shadow: 0 1px 0 var(--border); }
#model-catalog td:first-child { min-width: 225px; }
#model-catalog [data-copy-model] { min-height: 44px; min-width: 44px; padding: 4px 9px; font-size: 10px; border: 1px solid var(--strong-border); border-radius: 5px; color: var(--primary); background: var(--surface); white-space: nowrap; }
#model-catalog [data-copy-model]:hover { background: var(--surface-subtle); }
#model-catalog input, #model-catalog select { min-height: 44px; border: 1px solid var(--strong-border); border-radius: 6px; background: var(--surface); color: var(--foreground); padding: 9px 12px; font-size: 12px; min-width: 0; max-width: 100%; }
#model-catalog label { font-size: 11px; color: var(--muted); }
#model-count { font-size: 11px; color: var(--muted); }
.catalog-controls { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 12px; }
.catalog-controls label { display: flex; flex-direction: column; gap: 6px; }
.catalog-controls label:first-child { flex: 1 1 230px; }
.catalog-controls label:last-child { flex: 0 1 145px; }
.model-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model-id code { background: transparent; padding: 0; font-size: 11px; }
.caption { font-size: 11px; line-height: 1.85; color: var(--muted); }
:root:not(.js) .catalog-controls, :root:not(.js) .copy-model { display: none; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; line-height: 1.85; }
caption { text-align: left; padding: 12px 16px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); letter-spacing: .04em; }
th, td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 110px; }
th { background: var(--surface-subtle); font-weight: 650; color: var(--foreground); font-size: 11px; }
td { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.definition-card { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 20px; }
.definition-card h3 { margin: 0 0 10px; font-size: 16px; }
.definition-card p { margin-bottom: 0; font-size: 13px; color: var(--muted); }
.plain-list { padding-left: 23px; margin: 18px 0 22px; }
.plain-list li { padding-left: 4px; margin-bottom: 11px; }
.plain-list li::marker { color: var(--primary); font-weight: 600; }
.formula { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 21px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-subtle); font-size: 13px; line-height: 1.8; margin: 24px 0; }
.formula strong { color: var(--primary); }
code { font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace; font-size: .85em; background: var(--surface-subtle); padding: .16em .38em; border-radius: 4px; overflow-wrap: anywhere; }
.code-block { overflow: hidden; border: 1px solid var(--strong-border); border-radius: 8px; margin: 22px 0 30px; background: var(--code-background); }
.code-header { padding: 3px 7px 3px 16px; min-height: 46px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); gap: 16px; color: var(--muted); font-size: 11px; }
.copy-code { border: 1px solid transparent; border-radius: 5px; min-height: 36px; align-items: center; padding: 4px 10px; background: transparent; font-size: 11px; color: var(--muted); }
.copy-code:hover { background: var(--surface-subtle); color: var(--primary); border-color: var(--strong-border); }
pre { margin: 0; overflow-x: auto; padding: 21px 22px 24px; tab-size: 4; color: var(--foreground); font-size: 12px; line-height: 1.9; }
pre code { padding: 0; background: transparent; font-size: inherit; overflow-wrap: normal; }
.step-outcome { color: var(--muted); font-size: 13px; border-left: 2px solid var(--accent); padding-left: 13px; }
.step-outcome strong { color: var(--foreground); }
.steps .step-outcome { margin-top: 10px; }
.tutorial-details { margin: 18px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tutorial-details > summary { min-height: 48px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.tutorial-content { padding: 8px 16px 0; min-width: 0; }
.tutorial-content > p:last-child { margin-bottom: 18px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; margin: 8px 0; }
.page-outline { position: sticky; top: calc(var(--header-height) + 38px); padding-top: 0; font-size: 11px; max-height: calc(100dvh - var(--header-height) - 65px); overflow-y: auto; scrollbar-width: thin; }
.outline-title { color: var(--foreground); font-weight: 650; margin-bottom: 14px; letter-spacing: .03em; }
.page-outline nav { display: flex; flex-direction: column; border-left: 1px solid var(--border); gap: 4px; }
.page-outline nav a { font-size: 11px; padding: 5px 0 5px 13px; line-height: 1.65; color: var(--muted); text-decoration: none; }
.page-outline nav a:hover { color: var(--primary); }
.outline-help { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; color: var(--muted); line-height: 1.8; }
.outline-help > span { font-weight: 600; color: var(--foreground); }
.outline-help p { margin: 7px 0 10px; }
.outline-help a { text-decoration: none; }
.faq-list { margin: 25px 0; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; min-height: 65px; padding: 17px 2px; font-size: 14px; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; font-family: ui-monospace, monospace; color: var(--primary); font-size: 19px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 27px 18px 2px; color: var(--muted); font-size: 13px; }
.faq-list details > div p { margin-bottom: 0; }
.next-step { border: 1px solid var(--strong-border); border-radius: 9px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); margin-top: 36px; }
.next-step h3 { font-size: 18px; margin: 0 0 8px; }
.next-step p { font-size: 12px; margin: 0; color: var(--muted); }
.next-step .button { flex-shrink: 0; }
.document-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 0 35px; font-size: 11px; color: var(--muted); }
.document-footer a { color: var(--muted); text-decoration: none; }
.search-dialog { width: min(630px, calc(100% - 32px)); padding: 0; border: 1px solid var(--strong-border); border-radius: 12px; background: var(--surface); color: var(--foreground); box-shadow: var(--shadow); max-height: min(720px, 85dvh); margin-top: min(16dvh, 150px); }
.search-dialog::backdrop { background: var(--scrim); }
.search-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px 8px 22px; }
.search-dialog-header h2 { font-size: 16px; margin: 0; }
.search-field { padding: 0 22px; }
.search-field label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.search-field input { width: 100%; min-height: 46px; border: 1px solid var(--strong-border); border-radius: 6px; padding: 10px 12px; background: var(--background); color: var(--foreground); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); opacity: .8; }
.search-status { font-size: 12px; color: var(--muted); margin: 14px 22px; }
.search-results { max-height: 380px; overflow-y: auto; padding: 0 12px 12px; }
.search-result { display: block; padding: 13px 12px; border-radius: 6px; text-decoration: none; color: var(--foreground); }
.search-result:hover, .search-result:focus-visible { background: var(--surface-subtle); color: var(--foreground); }
.search-result strong { display: block; font-size: 14px; margin-bottom: 4px; }
.search-result span { display: block; color: var(--muted); font-size: 11px; line-height: 1.8; }
.search-result mark { background: var(--brand-soft); color: var(--brand-soft-text); padding: 0 1px; border-radius: 2px; }
.search-footer { display: flex; justify-content: space-between; gap: 16px; padding: 11px 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
/* Catalog additions can use these native document patterns. */
.catalog-summary, .catalog-note { font-size: 12px; color: var(--muted); }
.catalog-family { margin: 17px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.catalog-family > summary { min-height: 52px; padding: 14px 17px; font-size: 13px; font-weight: 600; }
.model-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 16px 18px; }
.model-list li { border: 1px solid var(--border); border-radius: 5px; padding: 5px 9px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; color: var(--muted); }
@media (min-width: 1101px) {
  .chapter-navigation:not([open]) > :not(summary) { display: block; }
  .chapter-navigation:not([open]) > nav { display: flex; }
}
@media (max-width: 1350px) {
  .documentation-layout { column-gap: 32px; grid-template-columns: 196px minmax(0, 1fr) 152px; padding: 0 30px; }
  .header-inner { padding: 0 30px; }
}
@media (max-width: 1100px) {
  .documentation-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .page-outline { display: none; }
  .search-trigger { min-width: 180px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-column: auto; }
  .featured-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 761px) {
  .chapter-navigation:not([open]) > :not(summary) { display: block; }
  .chapter-navigation:not([open]) > nav { display: flex; }
}
@media (max-width: 760px) {
  :root { --header-height: 66px; }
  body { font-size: 14px; }
  .header-inner { padding: 0 20px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .brand-name { font-size: 16px; gap: 9px; }
  .brand-label { font-size: 10px; padding-left: 9px; }
  .header-actions { gap: 4px; }
  .console-link { display: flex; width: 44px; height: 44px; justify-content: center; font-size: 0; }
  .console-link span { font-size: 18px; }
  .search-trigger { padding: 0; width: 40px; min-width: 40px; height: 44px; border: 0; background: transparent; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .documentation-layout { display: block; padding: 0 24px; }
  .sidebar { position: static; padding: 0; max-height: none; overflow: visible; border-bottom: 1px solid var(--border); margin: 0 -24px; }
  .chapter-navigation summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; min-height: 48px; font-size: 12px; color: var(--muted); list-style: none; background: var(--background); }
  .chapter-navigation summary::-webkit-details-marker { display: none; }
  .chapter-navigation[open] summary svg { transform: rotate(180deg); }
  .chapter-navigation nav { padding: 8px 16px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; border-top: 1px solid var(--border); }
  .nav-heading { grid-column: 1 / -1; margin-top: 15px; margin-bottom: 5px; }
  .nav-heading:first-child { margin-top: 10px; }
  .chapter-navigation nav a { min-height: 42px; padding: 8px 12px; font-size: 12px; }
  .sidebar-bottom { display: none; }
  .main-content { padding-top: 27px; }
  .document-meta { font-size: 11px; margin-bottom: 28px; }
  h1 { font-size: 31px; margin-bottom: 16px; }
  h2 { font-size: 25px; }
  h3 { font-size: 17px; }
  .lead { font-size: 14px; }
  .featured-models { margin-top: 31px; }
  .featured-heading { display: block; margin-bottom: 16px; }
  .introduction .featured-heading h2 { font-size: 20px; }
  .featured-heading > a { display: inline-flex; gap: 6px; margin-top: 9px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-card, .featured-card:last-child { grid-column: auto; padding: 20px; }
  .featured-card h3 { font-size: 24px; }
  .featured-card > p { font-size: 14px; }
  .more-models > summary { padding: 14px 16px; gap: 12px; }
  .more-model-content { padding: 0 10px 14px; }
  .expanded-model-list { grid-template-columns: minmax(0, 1fr); max-height: 440px; }
  .more-model-content .catalog-controls label:last-child { flex-basis: 100%; }
  .workflow-links { gap: 7px 18px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 10px; }
  .button { font-size: 12px; padding: 9px 14px; gap: 12px; }
  .intro-rule { margin: 34px 0 28px; }
  .introduction h2 { font-size: 20px; }
  .document-section { padding: 36px 0 39px; }
  .feature-grid { gap: 10px; }
  .feature-card { padding: 16px; }
  .feature-card h3 { font-size: 13px; gap: 8px; line-height: 1.65; }
  .feature-card p { font-size: 11px; }
  .definition-grid { gap: 11px; }
  .definition-card { padding: 17px; }
  .callout { padding: 15px 17px; font-size: 12px; }
  .steps { margin-top: 25px; }
  .steps li { gap: 15px; }
  .steps h3 { font-size: 15px; }
  .steps p { font-size: 13px; }
  table { font-size: 11px; }
  th, td { padding: 11px 13px; min-width: 95px; }
  pre { padding: 16px; font-size: 11px; }
  .code-header { padding-left: 14px; }
  .formula { padding: 18px 15px; gap: 10px; font-size: 12px; }
  .next-step { padding: 22px; display: block; }
  .next-step .button { margin-top: 20px; }
  .faq-list summary { font-size: 13px; gap: 17px; }
  .search-dialog { margin-top: 25px; max-height: calc(100dvh - 50px); }
}
@media (max-width: 390px) {
  .brand-label { display: none; }
  .documentation-layout { padding: 0 20px; }
  .sidebar { margin-left: -20px; margin-right: -20px; }
  .feature-grid, .definition-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 17px; }
  .feature-card h3 { font-size: 14px; }
  .chapter-navigation nav { column-gap: 0; }
  .chapter-navigation nav a { gap: 8px; }
  .formula { justify-content: flex-start; }
  .search-footer > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; --foreground: #17182b; --muted: #42475b; --background: #ffffff; --surface: #ffffff; --surface-subtle: #f2f3f8; --border: #cbd1e2; --strong-border: #cbd1e2; --primary: #3730a3; --code-background: #f2f3f8; --brand-soft: #e0e7ff; --brand-soft-text: #3730a3; --warning-background: #fff9eb; }
  body { font-size: 10pt; background: #ffffff; }
  .site-header, .sidebar, .page-outline, .document-meta, .hero-actions, .document-footer, .copy-code, .search-dialog, .next-step, .skip-link, #expanded-model-catalog { display: none !important; }
  .js .js-only, .catalog-controls, [data-model-count] { display: none !important; }
  .documentation-layout { display: block; padding: 0; max-width: none; }
  .main-content { padding: 0; }
  .document-section { padding: 22px 0; }
  .introduction { padding-top: 0; }
  h1 { font-size: 26pt; }
  h2 { font-size: 18pt; break-after: avoid; }
  h3 { font-size: 12pt; break-after: avoid; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .table-scroll, .table-wrap, #model-catalog .table-scroll, #model-catalog .table-wrap { overflow: visible; max-height: none; }
  #model-catalog thead { position: static; }
  #model-catalog [data-copy-model], .featured-model-id button, #model-catalog input, #model-catalog select { display: none !important; }
  .feature-card, .featured-card, .callout, .definition-card, .code-block, tr { break-inside: avoid; }
  .faq-list details:not([open]) > :not(summary), .catalog-family:not([open]) > :not(summary) { display: block; }
  .faq-list details { content-visibility: visible; }
  details::details-content { content-visibility: visible; display: block; }
  a { text-decoration: none; }
  .lead { font-size: 12pt; }
  .section-kicker { font-size: 8pt; }
}
