/* One palette for public pages, account pages, and hosted tools. */
:root[data-neo-theme]{--bg:#fafafa!important;--panel:#f1f1f1!important;--surface:#fff;--ink:#202020!important;--muted:#686868!important;--line:#dedede!important;--accent:#333!important;--mint:#202020!important;--blue:#606060!important;--art:#ededed!important;--soft:#e8e8e8;--inverse:#fafafa;--neo-bg:var(--bg);--neo-panel:var(--panel);--neo-ink:var(--ink);--neo-muted:var(--muted);--neo-line:var(--line);--danger:#a82b32;--danger-bg:#fff0f0;--success:#356544;--success-bg:#edf5ef}
:root[data-neo-theme=dark]{--bg:#101010!important;--panel:#1b1b1b!important;--surface:#151515;--ink:#ededed!important;--muted:#aaa!important;--line:#363636!important;--accent:#d4d4d4!important;--mint:#ededed!important;--blue:#bbb!important;--art:#222!important;--soft:#2b2b2b;--inverse:#101010;--danger:#ff9ba1;--danger-bg:#351b20;--success:#9ec9aa;--success-bg:#1b2d22}
html[data-neo-theme],html[data-neo-theme] body{background:var(--bg);color:var(--ink);color-scheme:inherit}
html[data-neo-theme] .scroll-header,html[data-neo-theme] .scroll-header::before{background:var(--bg)}
html[data-neo-theme] .wordmark,html[data-neo-theme] .wordmark-lab,html[data-neo-theme] nav,html[data-neo-theme] .hero h1,html[data-neo-theme] .intelligence-title,html[data-neo-theme] .models-feature h2,html[data-neo-theme] .model-facts strong{color:var(--ink)}
html[data-neo-theme] .eyebrow,html[data-neo-theme] .hero-english,html[data-neo-theme] .hero-note,html[data-neo-theme] .tiny-cross,html[data-neo-theme] .vision-label>span,html[data-neo-theme] .purpose-step small,html[data-neo-theme] .num,html[data-neo-theme] .capability-terms,html[data-neo-theme] .model-description,html[data-neo-theme] .model-lead,html[data-neo-theme] .model-facts span,html[data-neo-theme] .model-facts p,html[data-neo-theme] .contact-caption,html[data-neo-theme] .company-location,html[data-neo-theme] .contact-social>span,html[data-neo-theme] footer>span,html[data-neo-theme] footer small,html[data-neo-theme] .knowledge p,html[data-neo-theme] .knowledge-date,html[data-neo-theme] .works-schedule{color:var(--muted)}
html[data-neo-theme] .button,html[data-neo-theme] .primary,html[data-neo-theme] .admin-primary,html[data-neo-theme] .skip{background:var(--ink);color:var(--inverse);border-color:var(--ink)}
html[data-neo-theme] .button:hover,html[data-neo-theme] .primary:hover,html[data-neo-theme] .admin-primary:hover{background:var(--ink);color:var(--inverse);opacity:.85}
html[data-neo-theme] .nav-action{background:transparent;color:var(--ink);border-color:var(--line)}
html[data-neo-theme] .nav-action:hover{background:var(--ink);color:var(--inverse)}
html[data-neo-theme] .text-link,html[data-neo-theme] .email,html[data-neo-theme] .contact-social-icons a,html[data-neo-theme] footer .footer-social a{color:var(--ink);border-color:var(--line)}
html[data-neo-theme] .journey,html[data-neo-theme] .principles{background:var(--panel)}
html[data-neo-theme] .hero .hero-collage{filter:none;mix-blend-mode:multiply}
html[data-neo-theme=dark] .hero .hero-collage{filter:invert(1);mix-blend-mode:screen}
html[data-neo-theme=dark] .purpose-logo,html[data-neo-theme=dark] .header .brand img{filter:invert(1)}
html[data-neo-theme] .main-art{background:radial-gradient(ellipse at 50% 35%,var(--surface),var(--art))}
html[data-neo-theme] .language-menu,html[data-neo-theme] .language-menu summary,html[data-neo-theme] .language-menu .language-options .language-switch{color:var(--ink)}
html[data-neo-theme] .language-options{background:var(--surface);border-color:var(--line)}
html[data-neo-theme] .language-options .language-switch:hover{background:var(--panel)}
html[data-neo-theme] .panel{background:var(--surface)}
html[data-neo-theme] .badge,html[data-neo-theme] .avatar{background:var(--soft);color:var(--ink)}
html[data-neo-theme] .notice,html[data-neo-theme] .admin-notice{background:var(--panel);color:var(--ink)}
html[data-neo-theme] .notice.error,html[data-neo-theme] .offline,html[data-neo-theme] .admin-notice.error{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}
html[data-neo-theme] .danger{color:var(--danger)}
html[data-neo-theme] .form-row input,html[data-neo-theme] .form-row textarea,html[data-neo-theme] .form-row select,html[data-neo-theme] .admin-shell input,html[data-neo-theme] .admin-shell textarea,html[data-neo-theme] .admin-shell select{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-neo-theme] .inbox-layout,html[data-neo-theme] .inbox-item,html[data-neo-theme] .inbox-pagination button,html[data-neo-theme] .contact-confirmation{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-neo-theme] .inbox-item:hover,html[data-neo-theme] .inbox-item.selected,html[data-neo-theme] .reply-entry,html[data-neo-theme] .admin-badge,html[data-neo-theme] .mail-connection-status{background:var(--panel)}
html[data-neo-theme] .admin-secondary,html[data-neo-theme] .contact-confirmation button{color:var(--ink);border-color:var(--line)}
html[data-neo-theme] .admin-muted,html[data-neo-theme] .inbox-sender,html[data-neo-theme] .inbox-preview,html[data-neo-theme] .inbox-date,html[data-neo-theme] .empty-detail,html[data-neo-theme] .message-meta dt,html[data-neo-theme] .admin-footer{color:var(--muted)}
html[data-neo-theme] .neo-assistant{color:var(--ink)}
html[data-neo-theme] .neo-assistant section{background:var(--surface);border-color:var(--line)}
html[data-neo-theme] .neo-assistant-toggle{background:var(--ink);color:var(--inverse);border-color:var(--line)}
/* Shared navigation and accessible theme control. */
.neo-controls{display:inline-flex;align-items:center;gap:14px;font:12px/1.5 Inter,"Helvetica Neue",Arial,sans-serif;color:var(--ink);letter-spacing:0;flex-shrink:0}
.neo-controls *{box-sizing:border-box}.neo-controls a{color:var(--ink);text-decoration:none}.neo-controls a:hover{text-decoration:underline}
.neo-menu{position:relative;margin:0;padding:0;border:0;color:var(--ink)}
.neo-menu>summary{list-style:none;min-height:42px;display:flex;align-items:center;cursor:pointer;gap:5px;font:inherit;color:var(--ink)}
.neo-menu>summary::-webkit-details-marker{display:none}.neo-menu>summary:after{content:'⌄';color:var(--muted)}
.neo-menu-panel{position:absolute;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 40px #0002;padding:14px;z-index:120}
.neo-menu-panel section+section{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.neo-menu-panel strong{display:block;font:10px/1.5 ui-monospace,monospace;letter-spacing:.6px;color:var(--muted);padding:4px 10px}
.neo-menu-panel a{display:block!important;font:13px/1.6 Inter,Arial,sans-serif!important;padding:9px 10px;min-height:38px;white-space:normal!important}
.neo-menu-panel a:hover,.neo-menu-panel a[aria-current=page]{background:var(--panel);text-decoration:none}
.neo-theme-label{display:block;margin:0;font:inherit}.neo-theme-select{display:block;width:auto;max-width:115px;min-height:36px;margin:0;border:1px solid var(--line);border-radius:4px;padding:6px 5px;color:var(--ink);background:var(--surface);font:inherit;cursor:pointer}
.neo-controls :focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.neo-dock{position:fixed;right:18px;bottom:18px;z-index:120;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:4px 10px;box-shadow:0 4px 18px #0002}
.neo-dock .neo-menu-panel{top:auto;bottom:calc(100% + 10px)}
.workspace-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 36px}
.workspace-tools .panel{padding:24px}.workspace-tools h2{font-size:20px}.workspace-tools p{font-size:13px}.workspace-tools a.text-link{display:inline-block;margin-top:8px}.workspace-tools .eyebrow{margin-bottom:12px}
.header nav{flex-wrap:wrap}.header .brand{flex-shrink:0}
html[data-neo-theme] body:has(.neo-controls) .header{gap:18px}
@media(max-width:1180px){.header nav{gap:18px}.header .nav-tools{gap:14px}.header nav>a:not(.nav-action){display:none!important}}
@media(max-width:720px){.neo-controls{gap:10px;font-size:11px}.neo-theme-select{max-width:100px;min-height:34px}.header .nav-tools{gap:10px}.header .nav-tools>.language-menu{display:none}.header .nav-tools .nav-action{padding:8px 10px;font-size:11px}.header:has(.neo-controls){height:auto!important;min-height:84px!important;flex-wrap:wrap;padding-block:14px;gap:10px!important}.header:has(.neo-controls) nav{width:auto;flex:1;justify-content:flex-end;gap:12px}.header .wordmark,.header .wordmark-lab{font-size:20px}.header .brand-symbol{--brand-size:30px}.header .neo-menu-panel{position:fixed;top:76px;right:16px;left:auto;max-height:65vh}.workspace-tools{grid-template-columns:1fr}.neo-dock{bottom:10px;right:10px;gap:10px}.neo-dock .neo-menu-panel{position:absolute;top:auto;bottom:calc(100% + 10px);right:0}.header nav form{margin:0}body:has(.neo-dock){padding-bottom:65px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Strata and model monitoring use the same palette, retaining semantic chart colors. */
:root[data-neo-theme]{--st-bg:var(--bg)!important;--st-surface:var(--surface)!important;--st-surface-2:var(--panel)!important;--st-line:var(--line)!important;--st-line-soft:var(--line)!important;--st-ink:var(--ink)!important;--st-ink-soft:var(--ink)!important;--st-ink-muted:var(--muted)!important;--st-icon:var(--ink)!important;--st-accent:var(--ink)!important;--st-accent-hover:var(--muted)!important;--st-accent-ink:var(--inverse)!important;--st-accent-tint:var(--soft)!important;--st-accent-text:var(--ink)!important;--st-focus:var(--ink)!important}
html[data-neo-theme] .bar{background:var(--soft)}
/* Training UI: native theme handles components; branding uses shared tokens. */
html[data-neo-theme] #root{background:var(--bg)!important;color:var(--ink)}
html[data-neo-theme] aside:has([data-neoteric-brand]){background:var(--surface)!important}
html[data-neo-theme] nav a[aria-current=page]{color:var(--ink)!important;background:var(--panel)!important}
html[data-neo-theme] nav a:hover{color:var(--ink)!important;background:var(--panel)!important}
html[data-neo-theme] .ag-theme-balham{--ag-background-color:var(--bg)!important;--ag-foreground-color:var(--ink)!important;--ag-header-background-color:var(--panel)!important;--ag-header-foreground-color:var(--muted)!important;--ag-border-color:var(--line)!important;--ag-odd-row-background-color:var(--surface)!important;--ag-row-hover-color:var(--soft)!important;--ag-selected-row-background-color:var(--soft)!important}
html[data-neo-theme] .ag-theme-balham .ag-root-wrapper,html[data-neo-theme] .ag-theme-balham .ag-body-viewport,html[data-neo-theme] .ag-theme-balham .ag-center-cols-viewport,html[data-neo-theme] .ag-theme-balham .ag-body-horizontal-scroll{background:var(--bg)!important;border-color:var(--line)!important}
html[data-neo-theme] .ag-theme-balham .ag-header,html[data-neo-theme] .ag-theme-balham .ag-header-cell,html[data-neo-theme] .ag-theme-balham .ag-header-group-cell{background:var(--panel)!important;color:var(--muted)!important;border-color:var(--line)!important}
html[data-neo-theme] .ag-theme-balham .ag-row,html[data-neo-theme] .ag-theme-balham .ag-row-odd{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-neo-theme] .ag-theme-balham .ag-row-hover,html[data-neo-theme] .ag-theme-balham .ag-row-selected{background:var(--soft)!important}
html[data-neo-theme] .ag-theme-balham .ag-cell,html[data-neo-theme] .ag-theme-balham .ag-cell a{color:var(--ink)!important;border-color:var(--line)!important}

/* Harness token adapter, on every native theme scope. */
html[data-neo-theme],html[data-neo-theme] body,html[data-neo-theme] [data-ds-dark-theme],html[data-neo-theme] [data-ds-light-theme]{
--dsw-alias-bg-base:var(--bg)!important;
--dsw-alias-bg-layer-1:var(--panel)!important;
--dsw-alias-bg-layer-2:var(--panel)!important;
--dsw-alias-bg-layer-3:var(--panel)!important;
--dsw-alias-bg-layer-4:var(--panel)!important;
--dsw-specific-sidebar-fill:var(--bg)!important;
--dsw-specific-input-major:var(--panel)!important;
--dsw-specific-menu:var(--panel)!important;
--dsw-menu-surface-fill:var(--panel)!important;
--dsw-alias-label-primary:var(--ink)!important;
--dsw-alias-label-secondary:var(--muted)!important;
--dsw-alias-label-tertiary:var(--muted)!important;
--dsw-alias-label-caption:var(--muted)!important;
--dsw-alias-label-dimmed:var(--muted)!important;
--dsw-alias-label-primary-foreground:var(--inverse)!important;
--dsw-alias-border-l1:var(--line)!important;
--dsw-alias-border-l2:var(--line)!important;
--dsw-alias-border-l3:var(--line)!important;
--dsw-alias-border-l4:var(--line)!important;
--dsw-alias-brand-primary:var(--ink)!important;
--dsw-alias-state-business-primary:var(--ink)!important;
--dsw-alias-link:var(--ink)!important;
--dsw-alias-button-primary-fill:var(--ink)!important;
--dsw-alias-button-primary-hover:var(--soft)!important;
--dsw-alias-interactive-bg-hover:var(--soft)!important;
--dsw-alias-interactive-bg-active:var(--soft)!important;
--dsw-alias-button-tool-bar-fill:var(--panel)!important;
--dsw-alias-button-tool-bar-hover:var(--soft)!important;
--dsw-alias-markdown-code-block:var(--panel)!important;
--dsw-alias-markdown-code-block-banner:var(--panel)!important;
--dsw-alias-markdown-inline-code:var(--panel)!important;
--dsw-alias-scrollbar-bg-l2:var(--panel)!important;
--dsw-alias-scrollbar-hover-l2:var(--soft)!important;
--dsw-focus-ring-color:var(--ink)!important;
--dsw-alias-button-elevated-fill:var(--panel)!important;
--dsw-alias-button-floating-hover:var(--soft)!important;
--dsw-alias-label-primary-inverted:var(--inverse)!important;
--dsw-static-deepseek-400:var(--ink)!important;
--dsw-static-deepseek-450:var(--ink)!important;
--dsw-static-deepseek-500:var(--ink)!important;
--dsw-specific-bubble:var(--panel)!important;
--dsw-specific-selector:var(--panel)!important;
--dsw-alias-bg-module-platform:var(--panel)!important;
--dsw-alias-label-primary-bluish:var(--ink)!important;
--dsw-alias-label-primary-dimmed:var(--muted)!important;
--dsw-alias-label-deep-diving:var(--muted)!important;
--dsw-alias-label-deep-diving-shimmer:var(--muted)!important;
--dsw-alias-label-shimmer:var(--ink)!important;
--dsw-alias-interactive-bg-hover-solid:var(--soft)!important;
--dsw-alias-state-business-tertiary:var(--panel)!important;
--dsw-alias-button-floating-fill:var(--panel)!important;
--dsw-alias-button-info-hover:var(--soft)!important;
--dsw-alias-turn-trigger-bg:var(--panel)!important;
--dsw-alias-turn-trigger-bg-hover:var(--soft)!important;
--dsw-alias-separator-primary:var(--line)!important;
}
html[data-neo-theme] [class*="_brandName"]::after{content:"NeoteriCloud AI";color:var(--ink)}
html[data-neo-theme] [class*="_brandMark"],html[data-neo-theme] svg[viewBox="0 0 23.16 17.04"]{background:var(--ink)!important}
html[data-neo-theme] [class*="_newSession"]{color:var(--ink)}
html[data-neo-theme] button[aria-label="发送消息"]:not(:disabled),html[data-neo-theme] button[aria-label="Send message"]:not(:disabled){background:var(--ink)!important;color:var(--inverse)!important}
html[data-neo-theme] button[aria-label="发送消息"]:disabled,html[data-neo-theme] button[aria-label="Send message"]:disabled{background:var(--soft)!important;color:var(--muted)!important}
/* Legacy presentation sheets contain literal light-mode text colors. */
html[data-neo-theme] .header nav>a,html[data-neo-theme] .header .nav-action,html[data-neo-theme] .hero-actions>a:not(.button),html[data-neo-theme] .text-link,html[data-neo-theme] .contact-action>a,html[data-neo-theme] .knowledge-links a,html[data-neo-theme] .discovery-links a{color:var(--ink)}
html[data-neo-theme] .header .nav-action:hover{color:var(--inverse)}
html[data-neo-theme] .principles .wrap,html[data-neo-theme] .art-label,html[data-neo-theme] .art-footer,html[data-neo-theme] .hero-art figcaption,html[data-neo-theme] .hero-visual figcaption,html[data-neo-theme] .learning-hero figcaption,html[data-neo-theme] .contact-caption,html[data-neo-theme] footer .admin-entry,html[data-neo-theme] .steps span,html[data-neo-theme] .purpose-index{color:var(--muted)}

/* Compact public masthead: primary links plus one menu for secondary controls. */
html[data-neo-compact] .header{height:72px!important;min-height:72px!important;padding-block:0!important;flex-wrap:nowrap!important;gap:24px!important}
html[data-neo-compact] .header .brand{gap:10px!important;white-space:nowrap}
html[data-neo-compact] .header .wordmark{display:flex!important;align-items:baseline!important;gap:4px!important;font-size:23px!important;line-height:1.1!important}
html[data-neo-compact] .header .wordmark-lab{font:inherit!important;letter-spacing:inherit!important;padding:0!important;border:0!important}
html[data-neo-compact] .header .brand-symbol{--brand-size:30px}
html[data-neo-compact] .header nav{display:flex;width:auto!important;flex:0 1 auto;gap:28px!important;flex-wrap:nowrap!important;align-items:center}
html[data-neo-compact] .header nav>a{display:inline-flex!important;font-size:12px}
html[data-neo-compact] .header .nav-tools{gap:0!important;margin:0!important}
html[data-neo-compact] .header .neo-controls{gap:0}
html[data-neo-compact] .header .neo-menu>summary{width:36px;height:36px;min-height:36px;justify-content:center;border-radius:4px}
html[data-neo-compact] .header .neo-menu>summary:hover{background:var(--panel)}
html[data-neo-compact] .header .neo-menu>summary:after{display:none}
html[data-neo-compact] .header .neo-menu-panel{top:calc(100% + 12px);width:260px}
html[data-neo-compact] .neo-menu-panel .neo-theme-label{padding:6px 10px}
html[data-neo-compact] .neo-menu-panel .neo-theme-select{width:100%;max-width:none}
@media(max-width:720px){
 html[data-neo-compact] .header{height:64px!important;min-height:64px!important;gap:16px!important}
 html[data-neo-compact] .header .wordmark{font-size:20px!important}
 html[data-neo-compact] .header .brand-symbol{--brand-size:26px}
 html[data-neo-compact] .header nav{gap:12px!important;flex:0 1 auto!important}
 html[data-neo-compact] .header nav>a:not(.neo-contact){display:none!important}
 html[data-neo-compact] .header nav>a.neo-contact{font-size:11px}
 html[data-neo-compact] .header .neo-menu-panel{position:absolute;right:0;top:calc(100% + 8px);max-height:calc(100dvh - 90px)}
}

.neo-account-panel {position:fixed;z-index:1000;width:240px;padding:14px;background:var(--surface,#171717);color:var(--ink,#eee);border:1px solid var(--line,#444);box-shadow:0 8px 32px #0004;max-height:70vh;overflow:auto;}
.neo-account-panel[hidden] {display:none;}
.neo-account-panel strong,.neo-account-panel small {display:block;padding:4px 10px;}
.neo-account-panel small {color:var(--muted,#aaa);margin-bottom:10px;}
.neo-account-panel a,.neo-account-panel button {display:block;padding:10px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;text-decoration:none;cursor:pointer;box-sizing:border-box;}
.neo-account-panel a:hover,.neo-account-panel button:hover {background:var(--panel,#292929);}

/* One compact appearance control; readable navigation across both sites. */
.neo-theme-label.neo-theme-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;padding:0;margin:0;cursor:pointer;border-radius:4px;}
.neo-theme-icon>span{display:flex;align-items:center;justify-content:center;pointer-events:none;}
.neo-theme-label.neo-theme-icon>.neo-theme-select{position:absolute;inset:0;width:32px!important;height:32px!important;min-height:32px!important;max-width:32px!important;margin:0;padding:0;opacity:0;cursor:pointer;}
.neo-theme-icon:hover{background:var(--soft,#ddd3);}
.neo-theme-icon:focus-within{outline:2px solid var(--ink);outline-offset:2px;}
html[data-neo-compact] .header nav>a,html[data-neo-compact] .header nav>a.neo-contact{font-size:14px!important;line-height:1.5;}
.neo-controls{font-size:14px;}
.neo-menu-panel a{font-size:14px!important;}

html[data-neo-site=cloud] .header .wordmark{gap:0!important;}
html[data-neo-site=cloud] .header .wordmark-lab{margin-left:0!important;padding-left:0!important;}
