/* NEOT: monochrome, square geometry, orange interaction accents. */
:root, :root[data-neo-theme]{--bg:#fff!important;--paper:#fff;--panel:#f5f5f5!important;--surface:#fff;--ink:#111!important;--muted:#626262!important;--subtle:#626262;--line:#d8d8d8!important;--accent:#ff7547!important;--signal:#c34216;--signal-soft:#fff0e9;--mint:#111!important;--blue:#626262!important;--art:#f5f5f5!important;--soft:#ededed;--inverse:#fff;--neot-orange:#ff7547;color-scheme:light}
:root[data-neo-theme=dark]{--bg:#111!important;--paper:#111;--panel:#1b1b1b!important;--surface:#161616;--ink:#f4f3ef!important;--muted:#aaa!important;--subtle:#aaa;--line:#393939!important;--signal:#ff7547;--signal-soft:#322019;--mint:#f4f3ef!important;--blue:#aaa!important;--art:#1b1b1b!important;--soft:#282828;--inverse:#111;color-scheme:dark}
html,body{background:var(--bg)!important;color:var(--ink)}
body::before{background:none!important}
body{font-family:Inter,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif}
html body :is(button,input,textarea,select,.button,.primary-button,.nav-action,.panel,.secondary-product,.model-card,.model-stage,.tag,.topic-tags a,.language-options,.neo-menu-panel,.neo-dock,.neo-theme-icon,.neo-account-panel,.neo-menu>summary,.architecture,.detail-panel,.detail-layer-picker button,.moe-router-detail,.moe-expert-detail,.moe-compute-node,.moe-input-node,.moe-output-node,.snapshot-card,.snapshot-plot,.notice,.contact-confirmation,.learning-art,.buyback-grid article){border-radius:0!important;box-shadow:none!important}
html body :is(.header,.model-header){border-bottom:1px solid var(--line)}
html body :is(.wordmark,.brand){color:var(--ink)}
html body :is(h1,h2,h3){color:var(--ink);font-weight:650}
html body :is(.eyebrow,.kicker,.model-stage,.arch-top,.overview-heading){font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:var(--muted)}
html body :is(.intro,.hero-description,.description,.model-description){font-size:16px;line-height:1.85;color:var(--muted)}
html body :is(.button,.primary-button,.primary,.admin-primary){border:1px solid var(--ink);background:var(--ink);color:var(--inverse);font-size:14px;font-weight:600;text-decoration:none;transition:background .16s,color .16s,border-color .16s}
html body :is(.button,.primary-button,.primary,.admin-primary):hover{background:var(--neot-orange);border-color:var(--neot-orange);color:#111;opacity:1}
html body :is(.nav-action,.header-repo,.model-access,.detail-toggle,.arch-toggle,.snapshot-controls button){background:transparent;border:1px solid var(--line);color:var(--ink);font-size:14px}
html body :is(.text-link,.email,.model-download,.collection-link){color:var(--ink);text-decoration-color:var(--neot-orange);text-underline-offset:5px}
html body :is(.text-link,.model-download,.collection-link):hover{text-decoration:underline}
html body :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--neot-orange)!important;outline-offset:4px}
html body :is(.journey,.principles,.stat-band,.secondary-product,.model-stage,.snapshot-card){background:var(--panel);border-color:var(--line);color:var(--ink)}
html body :is(.main-art,.architecture,.detail-panel,.moe-router-detail,.moe-expert-detail,.moe-input-node,.moe-output-node,.moe-compute-node,.snapshot-plot){background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important}
html body .main-art::before{background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:40px 40px;opacity:.3}
html body .main-art>svg{filter:none}
html body :is(.section-head,.section-heading,.detail-toolbar){border-color:var(--line)}
html body :is(.section-head h2,.section-heading h2){border-left:3px solid var(--neot-orange);padding-left:16px}
html body .accent{background:none;color:var(--ink);-webkit-text-fill-color:var(--ink)}
html body :is(.brand-dot,.tiny-cross){color:var(--neot-orange)}
html body .status{border-radius:0;box-shadow:none}
html body span.status:empty,html body .status::before{background:var(--neot-orange);border-color:var(--neot-orange);border-radius:0;box-shadow:none}
html body :is(.model-stage,.tag){border:1px solid var(--line);color:var(--muted)}
html body :is(.architecture .attention-block,.architecture .decoder-block,.overview-operation,.backbone-layer,.moe-score){background:var(--panel);border-color:var(--line);border-radius:0}
html body :is(.detail-layer-picker button,.moe-example-controls button){background:var(--panel);border-color:var(--line);color:var(--ink)}
html body :is(.detail-layer-picker button,.moe-example-controls button)[aria-pressed=true]{background:var(--ink);color:var(--inverse);border-color:var(--neot-orange);box-shadow:inset 0 -3px var(--neot-orange)!important}
html body :is(.moe-score-bar,.progress-layer){border-radius:0;background:var(--line)}
html body :is(.moe-score.selected .moe-score-bar,.progress-layer.is-current){background:var(--neot-orange)}
html body :is(.moe-route-result strong,.moe-route-result b,.moe-selected-names,.moe-weight-value,.detail-note a){color:var(--signal)}
html body .detail-node rect{fill:var(--surface);stroke:var(--line);rx:0}
html body .detail-node text{fill:var(--ink)}
html body .detail-node.detail-active rect{fill:var(--signal-soft);stroke:var(--neot-orange);filter:none}
html body .detail-node.detail-active text{fill:var(--signal)}
html body .detail-wire.detail-active{stroke:var(--neot-orange)}
html body footer{border-color:var(--line);color:var(--muted)}
html[data-neo-theme=dark] .brand-symbol{background-image:url('/neot-logo-dark.svg?v=02b-clear-20261127')!important}
@media(prefers-color-scheme:dark){html:not([data-neo-theme]){--bg:#111!important;--paper:#111;--panel:#1b1b1b!important;--surface:#161616;--ink:#f4f3ef!important;--muted:#aaa!important;--subtle:#aaa;--line:#393939!important;--signal:#ff7547;--signal-soft:#322019;--inverse:#111;color-scheme:dark}html:not([data-neo-theme]) .brand-symbol{background-image:url('/neot-logo-dark.svg?v=02b-clear-20261127')!important}}
@media(max-width:720px){html body :is(.section-head h2,.section-heading h2){padding-left:12px}html body :is(.intro,.hero-description,.description,.model-description){font-size:16px}}
@media(prefers-reduced-motion:reduce){html body :is(.button,.primary-button,.primary,.admin-primary){transition:none}}
/* Header uses the unpadded symbol, rather than an app icon canvas. */
html body :is(.header,.model-header) .brand-symbol{--brand-size:40px;width:40px;height:40px;background-image:url('/neot-mark.svg?v=3')!important}
html body .lab-link .brand-symbol{--brand-size:32px;width:32px;height:32px;background-image:url('/neot-mark.svg?v=3')!important}
html[data-neo-compact] body .header .brand,html body .header .brand{gap:14px!important;align-items:center}



html body .lab-link{display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:600}
html[data-neo-theme=dark] body :is(.header,.model-header,.lab-link) .brand-symbol{background-image:url('/neot-mark-dark.svg?v=3')!important}
@media(prefers-color-scheme:dark){html:not([data-neo-theme]) body :is(.header,.model-header,.lab-link) .brand-symbol{background-image:url('/neot-mark-dark.svg?v=3')!important}}
@media(max-width:720px){html body :is(.header,.model-header) .brand-symbol{--brand-size:34px;width:34px;height:34px}html[data-neo-compact] body .header .brand,html body .header .brand{gap:10px!important}html body .lab-link .brand-symbol{width:28px;height:28px}}
/* Model diagrams retain their structure and active-state meaning in both themes. */
html body .model-header{background:var(--bg);color:var(--ink)}
html body :is(.model-header .lab-link,.model-header .training-link,.model-header .language-menu){color:var(--ink)}
html body :is(.backbone-group,.overview-end,.overview-operation,.backbone-layer,.backbone-group-heading>span:last-child,.moe-score,.moe-product-node){background:var(--panel)!important;color:var(--ink)!important;border-color:var(--line)!important;border-radius:0!important;box-shadow:none!important}
html body :is(.backbone-group-heading,.backbone-layer-heading,.backbone-expert-note,.backbone-tied-note,.backbone-group-footnote,.backbone-state span,.overview-heading,.overview-footer,.overview-status,.moe-expert-input,.moe-bypass,.detail-stage,.detail-sub,.snapshot-caption,.snapshot-footnote){color:var(--muted)!important}
html body :is(.architecture,.detail-panel,.moe-router-detail,.moe-expert-detail) :is(strong,h3,h4){color:var(--ink)}
html body :is(.overview-active,.overview-end.overview-active,.backbone-layer.overview-active){border-color:var(--neot-orange)!important}
html body .backbone-connector{background:var(--line)}
html body .backbone-connector::after{border-top-color:var(--line)}
html body .backbone-return path{stroke:var(--muted)}
@media(max-width:720px){html body .model-header{height:auto;min-height:76px;padding-block:16px;gap:14px;flex-wrap:wrap}html body .model-header .header-actions{width:100%;justify-content:space-between;gap:12px;flex-wrap:wrap}html body .model-header .lab-link{white-space:nowrap}}
