/* One shared geometry for home, models, docs and about, independent of page CSS. */
html{scroll-padding-top:96px;scrollbar-gutter:stable}
/* Base shell geometry must exist before any lazy page stylesheet arrives. */
body{margin:0;background:var(--ui-canvas);color:var(--ui-ink);font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif}
header.public-header{--public-header-background:var(--ui-paper);box-sizing:border-box;position:sticky;top:0;z-index:40;display:block;width:100%;max-width:none;height:80px;min-height:80px;margin:0;padding:0;background:var(--public-header-background);border:0;border-bottom:1px solid var(--ui-border);font:13px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:normal;color:var(--ui-ink)}
html[data-theme="dark"] header.public-header{--public-header-background:#090909}
.public-header .public-header-inner{box-sizing:border-box;display:grid;grid-template-columns:150px minmax(0,1fr) 178px;align-items:center;gap:24px;width:min(1440px,calc(100% - 64px));height:100%;margin:0 auto;padding:0}
.public-header .brand{display:inline-flex;align-items:center;justify-self:start;gap:9px;margin:0;padding:0;color:var(--ui-ink);font:650 22px/1.2 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap}
.public-header .brand-symbol{display:block;width:28px;height:28px;flex-shrink:0;color:var(--ui-brand)}
.public-header .public-nav{display:flex;align-items:center;justify-content:center;justify-self:center;gap:21px;position:static;width:auto;height:auto;margin:0;padding:0;border:0;background:none;border-radius:0;font:500 13px/1.5 'Segoe UI','Microsoft YaHei',sans-serif}
.public-header .public-nav>a{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;margin:0;padding:0 1px;border:0;border-radius:0;background:none;color:var(--ui-muted);font:500 13px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none;transition:color .16s}
.public-header .public-nav>a:hover,.public-header .public-nav>a.active{color:var(--ui-brand)}
.public-header .public-nav>a.active:after{position:absolute;left:1px;right:1px;bottom:0;height:2px;border-radius:2px;background:var(--ui-brand);content:''}
.public-header .public-external-icon{display:inline-block;width:11px;height:11px;flex-shrink:0;opacity:.8}
.public-header .public-header-actions{display:flex;align-items:center;justify-content:flex-end;justify-self:end;gap:10px;min-width:0;margin:0;padding:0}
.public-header .header-console-link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:36px;height:36px;margin:0;padding:7px 12px;border:1px solid var(--ui-brand);border-radius:6px;background:var(--ui-brand);color:var(--ui-paper);font:500 12px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;white-space:nowrap;text-decoration:none}
.public-header .header-console-link:hover{filter:brightness(.96)}
.public-header .theme-toggle{box-sizing:border-box;gap:7px;height:36px;min-height:36px;margin:0;padding:7px 10px;line-height:1.5;font-size:12px;transform:none}
.public-header .public-menu-button{box-sizing:border-box;display:none;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:7px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-paper);color:var(--ui-ink);cursor:pointer;transform:none}
.public-header .public-menu-button .icon{width:19px;height:19px}
.public-header :is(a,button):focus-visible{outline:2px solid var(--ui-brand);outline-offset:4px}
.docs-page-tools{display:none}
@media(min-width:961px){.market-filters{top:98px;max-height:calc(100dvh - 116px)}}
@media(max-width:1100px){.public-header .public-header-inner{grid-template-columns:minmax(0,1fr) auto;gap:16px;width:calc(100% - 48px)}.public-header .public-menu-button{display:inline-flex}.public-header .public-nav{box-sizing:border-box;display:none;position:absolute;top:79px;left:0;right:0;z-index:41;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:stretch;gap:9px;width:100%;height:auto;padding:18px 24px 20px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;background:var(--public-header-background)}.public-header .public-nav.open{display:grid}.public-header .public-nav>a{justify-content:flex-start;min-height:42px;padding:10px 12px;border-radius:6px;font-size:13px}.public-header .public-nav>a.active{background:var(--ui-accent-soft)}.public-header .public-nav>a.active:after{left:12px;right:12px;bottom:4px}}
@media(max-width:960px){.docs-page-tools{display:flex;align-items:center;gap:12px;margin:0 0 15px}.docs-page-tools #docs-menu{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:36px;padding:7px 11px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-paper);color:var(--ui-ink);font-size:12px}.docs-page-tools #docs-menu .icon{width:16px;height:16px}}
@media(max-width:600px){html{scroll-padding-top:88px}header.public-header{height:72px;min-height:72px}.public-header .public-header-inner{width:calc(100% - 32px);gap:10px}.public-header .brand{font-size:21px;gap:8px}.public-header .brand-symbol{width:26px;height:26px}.public-header .public-header-actions{gap:8px}.public-header .theme-toggle{width:36px;min-width:36px;padding:7px}.public-header .theme-toggle>span{display:none}.public-header .header-console-link{gap:8px;padding:7px 10px}.public-header .public-nav{top:71px;grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:8px}.public-header .public-nav>a{font-size:14px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.public-header *{transition:none!important;scroll-behavior:auto!important}}

/* Compact theme-colored halo around the brand mark only. */
.public-header .brand-symbol{filter:drop-shadow(0 0 3px color-mix(in srgb,var(--ui-brand) 34%,transparent))}

@media(min-width:1101px){.public-header .public-nav{max-width:100%;overflow-x:auto;justify-content:safe center}.public-header .public-nav>a{flex-shrink:0}}
