/* NeuralEcho Studio: titanium, forest and fluorescent mint. Screen-only tokens protect print. */
@media screen {
    :root[data-theme="light"] {
        color-scheme: light;
        --theme-color-scheme: light;
        --theme-canvas: #d0dbd2;
        --theme-surface: #e6ede3;
        --theme-surface-translucent: rgba(240, 243, 232, .94);
        --theme-surface-raised: #f4f6ed;
        --theme-inset: #bbd0bf;
        --theme-inset-translucent: rgba(147, 181, 155, .2);
        --theme-ink: #16392e;
        --theme-muted: #486657;
        --theme-faint: #587264;
        --theme-line: rgba(22, 57, 46, .17);
        --theme-line-strong: rgba(22, 57, 46, .32);
        --theme-accent-ink: #006f50;
        --theme-accent-soft: rgba(0, 158, 103, .13);
        --theme-accent-line: rgba(0, 120, 76, .4);
        --theme-red-ink: #b9364b;
        --theme-red-soft: #f8e5e5;
        --theme-red-line: #d6a4ad;
        --theme-amber-ink: #956016;
        --theme-amber-soft: #f7edd8;
        --theme-amber-line: #d9bc88;
        --theme-blue-ink: #246a8a;
        --theme-blue-soft: #e0edf1;
        --theme-blue-line: #9ebbc8;
        --theme-purple-ink: #75558c;
        --theme-purple-soft: #eee5f2;
        --theme-purple-line: #c6b0d0;
        --theme-shadow: rgba(27, 62, 40, .16);
        --theme-glow: rgba(0, 143, 108, .12);
        --theme-overlay: rgba(20, 42, 35, .28);
        scrollbar-color: #7c9b85 #d0dbd2;
    }
    [data-theme-slot] { display: none !important; }
    button.ne-theme-toggle {
        display: grid;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 32px;
        height: 32px;
        min-width: 32px;
        width: 32px;
        padding: 0;
        border: 1px solid var(--theme-line-strong, rgba(255, 255, 255, .21));
        border-radius: 50%;
        background: var(--theme-surface-translucent, rgba(10, 19, 20, .8));
        color: var(--theme-ink, #e5f3ed);
        font: 500 12px/1.2 "PingFang SC", "Microsoft YaHei UI", sans-serif;
        white-space: nowrap;
        cursor: pointer;
        box-shadow: 0 3px 14px var(--theme-shadow, rgba(0, 0, 0, .28));
        backdrop-filter: blur(12px);
        transition: background-color 160ms, border-color 160ms, color 160ms;
    }
    button.ne-theme-toggle:hover {
        border-color: var(--theme-accent-ink, #00ffd1);
        background: var(--theme-accent-soft, rgba(0, 255, 209, .1));
        color: var(--theme-accent-ink, #00ffd1);
    }
    button.ne-theme-toggle:focus-visible { outline: 2px solid var(--theme-accent-ink, #00ffd1); outline-offset: 3px; }
    button.ne-theme-toggle svg { display: block; width: 16px; height: 16px; }
    button.ne-theme-floating { position: fixed; inset: auto auto calc(18px + env(safe-area-inset-bottom, 0px)) max(var(--ne-theme-left, 16px), calc(12px + env(safe-area-inset-left, 0px))); z-index: 1050; }
    .campaign-header .header-inner { gap: 14px; }
    :root[data-theme="light"] :is(.official-logo, .footer-logo img, .navbar .logo img, img[src*="logo-nav.png"], a[aria-label="NeuralEcho 员工门户首页"] img) { filter: brightness(0) saturate(100%); opacity: .9; }
    :root[data-theme="light"] :is(.topbar, .sidebar, .auth-card) { box-shadow: none; }
    :root[data-theme="light"] :is(input, textarea, select) { accent-color: #00856a; }
    :root[data-theme="light"] :is(input, textarea)::placeholder { color: #5d766a; }
    :root[data-theme="light"] :is(.hr-shell::before, [class*="storyBackdrop"]) { opacity: .2; }
    :root[data-theme="light"] .finance-shell::before { background-image: linear-gradient(rgba(34, 76, 59, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 76, 59, .035) 1px, transparent 1px); }
    :root[data-theme="light"] :is(.neural-hero-backdrop, .neural-hero-canvas) { opacity: .34; }
    :root[data-theme="light"] :is(.neural-hero-scene, .data-aero-scene, .home-aurora-scene) { background-color: #d0dbd2; }
    :root[data-theme="light"] .data-aero-scene::after { background: rgba(208, 219, 210, .76); }
    :root[data-theme="light"] .neural-stage-page:not(.index-page) {
        --stage-reading-veil: linear-gradient(105deg, rgba(219, 229, 216, .96), rgba(219, 229, 216, .88) 45%, rgba(185, 205, 189, .8));
    }
    :root[data-theme="light"] .neural-stage-page:not(.index-page):not(.data-page) > section:not(.hero),
    :root[data-theme="light"] .technology-page .support-main > section { background: rgba(214, 225, 211, .72); }
    :root[data-theme="light"] .technology-page .support-main > section:nth-of-type(even) { background: rgba(214, 225, 211, .4); }
    :root[data-theme="light"] .index-page .home-aurora-scene { background: #d7e2d5 url('/images/backgrounds/ghost-fibers-light.svg') center / cover no-repeat; }
    :root[data-theme="light"] .index-page #hero::before { background: transparent; box-shadow: none; }
    :root[data-theme="light"] #home-aurora { background: transparent; }
    :root[data-theme="light"] #home-aurora[data-state="still"] { opacity: 0; }
    :root[data-theme="light"] #home-aurora[data-state="ready"] { opacity: 1; }
    :root[data-theme="light"] .dream-background canvas { opacity: .3; }
    :root[data-theme="light"] .glide-select__chevron { color: var(--theme-muted); }
    :root[data-theme="light"] .core-tech-image { filter: brightness(.42) saturate(1.5); }
    :root[data-theme="light"] .social-link img { filter: brightness(0); opacity: .65; }
    .download-video-stage, .downloads-video-modal video { background: #030608; color-scheme: dark; }
    :root[data-theme="light"] .dream-stepper {
        --stepper-frame: var(--theme-surface-translucent) !important;
        --stepper-frame-edge: var(--theme-accent-line) !important;
        --stepper-frame-highlight: rgba(255, 255, 255, .5) !important;
        --stepper-frame-shadow: 0 14px 44px rgba(30, 65, 52, .08) !important;
        --stepper-tile: var(--theme-surface) !important;
        --stepper-tile-edge: var(--theme-line) !important;
        --stepper-tile-shadow: none !important;
        --stepper-well: var(--theme-accent-soft) !important;
        --stepper-track: var(--theme-line) !important;
        --stepper-ring: var(--theme-accent-line) !important;
        --stepper-solid-ink: #05291e !important;
    }
    #menu-toggle::before { display: none; }
    #menu-toggle svg { display: block; }
    #menu-toggle .ne-menu-close { display: none; }
    #menu-toggle[aria-expanded="true"] .ne-menu-open { display: none; }
    #menu-toggle[aria-expanded="true"] .ne-menu-close { display: block; }
    :root[data-theme="light"] #menu-toggle { color: var(--theme-ink) !important; }
    :root[data-theme="light"] .home-aurora-veil { background: radial-gradient(ellipse 44% 25% at 50% 46%, rgba(225, 235, 217, .94), rgba(225, 235, 217, .64) 65%, transparent), linear-gradient(180deg, rgba(225, 235, 217, .18), transparent 75%, rgba(176, 199, 176, .38)); }
    :root[data-theme="light"] .index-page .brand-film-play { background: #00ffd1; color: #0c3124; box-shadow: 0 8px 24px rgba(0, 150, 100, .17); }
    :root[data-theme="light"] :is(.hero-title, .hero-subtitle, .neural-hero-title, .neural-hero-subtitle, .neural-hero-statement) { text-shadow: none; }
    :root[data-theme="light"] .cms-preview { background: #d0dbd2 !important; }
    /* A dark forest frame gives the light working canvas a deliberate boundary. */
    :root[data-theme="light"] .sidebar,
    :root[data-theme="light"] [class*="loginStory"],
    :root[data-theme="light"] [class*="profileHero"],
    :root[data-theme="light"] footer:has(.footer-top) {
        --theme-ink: #f0f6e9;
        --theme-muted: #bed1bd;
        --theme-faint: #a9c3ae;
        --theme-accent-ink: #00ffd1;
        --theme-accent-soft: rgba(0, 255, 209, .12);
        --theme-accent-line: rgba(0, 255, 209, .36);
        --theme-surface: #1e4b3a;
        --theme-surface-translucent: rgba(30, 75, 58, .94);
        --theme-inset-translucent: rgba(214, 239, 204, .08);
        --theme-line: rgba(215, 239, 203, .15);
        --theme-line-strong: rgba(215, 239, 203, .26);
        --text: #f0f6e9;
        --ink: #f0f6e9;
        --muted: #bed1bd;
        --portal-ink: #f0f6e9;
        --portal-muted: #bed1bd;
        --text-color: #f0f6e9;
        --line: rgba(215, 239, 203, .15);
        color: #f0f6e9;
        background: #153c2e;
    }
    :root[data-theme="light"] .sidebar { border-right-color: #244d37; }
    :root[data-theme="light"] :is(.sidebar, [class*="loginStory"], footer:has(.footer-top)) img[src*="logo"] { filter: none !important; opacity: 1; }
    :root[data-theme="light"] .sidebar :is(.nav-button, .nav-item) { color: #c6d8c2; }
    :root[data-theme="light"] .sidebar :is(.nav-button, .nav-item):hover { background: #24513c; color: #f4f7e9; }
    :root[data-theme="light"] .sidebar :is(.nav-button.active, .nav-item.active) { color: #082b1d; background: #00ffd1; border-color: #00ffd1; box-shadow: none; }
    :root[data-theme="light"] .sidebar :is(.nav-button.active, .nav-item.active) :is(.nav-icon, .nav-label) { color: #082b1d; background: transparent; border-color: rgba(8, 43, 29, .2); }
    :root[data-theme="light"] :is(.topbar, .navbar:not(.scrolled)) { background: rgba(228, 235, 222, .96); border-bottom-color: rgba(22, 57, 46, .19); }
    :root[data-theme="light"] :is(.panel, .metric-card, .analytics-panel, .analytics-metric, .resource-metric, .editor-card, .account-card, .datasets-settings-panel, .support-settings-panel) { box-shadow: 0 2px 2px rgba(27, 62, 40, .025), 0 10px 24px -18px rgba(27, 62, 40, .26); }
    :root[data-theme="light"] :is(.metric-grid, .analytics-summary) > :is(.metric-card, .analytics-metric):first-child,
    :root[data-theme="light"] .resource-metric:is([data-resource-metric="downloads"], [data-resource-metric="datasetDetailViews"]) {
        --theme-ink: #eff6e9;
        --theme-muted: #c0d4bc;
        --theme-faint: #b1c9b1;
        --theme-accent-ink: #00ffd1;
        --ink: #eff6e9;
        --text: #eff6e9;
        --muted: #c0d4bc;
        color: #eff6e9;
        background: #1c4b35;
        border-color: #1c4b35;
    }
    :root[data-theme="light"] :is(.metric-grid, .analytics-summary) > :is(.metric-card, .analytics-metric):first-child strong { color: #00ffd1; }
    :root[data-theme="light"] :is(.metric-grid, .analytics-summary) > :is(.metric-card, .analytics-metric):first-child :is(.metric-symbol, i) { color: #00ffd1; }
    :root[data-theme="light"] :is(.panel-head, .panel-heading, .analytics-panel-heading) { border-bottom-color: rgba(22, 57, 46, .17); }
    :root[data-theme="light"] .sidebar .social-link img { filter: none; }
    :root[data-theme="light"] footer:has(.footer-top) .social-link img { filter: none; opacity: .85; }
    :root[data-theme="light"] footer:has(.footer-top) .view-more { color: #082b1d; background: #00ffd1; border-color: #00ffd1; }
    :root[data-theme="light"] :is(.rich-editor, .cms-content) th { background: #d1e1cc; }
    :root[data-theme="light"] ::selection { background: #00ffd1; color: #082a20; }
    @media (max-width: 720px) {
        button.ne-theme-toggle { width: 40px; height: 40px; }
        button.ne-theme-floating { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    }
    @media (prefers-reduced-motion: reduce) { button.ne-theme-toggle { transition: none; } }
}
@media print { .ne-theme-toggle, [data-theme-slot] { display: none !important; } }
