.theme-toggle{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;background:none;border:1px solid currentColor;border-radius:0;color:inherit;font:11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;opacity:.85}
.theme-toggle:hover{opacity:1}
.theme-toggle i{display:block;width:10px;height:10px;border-radius:50%;border:1px solid currentColor;background:linear-gradient(90deg,currentColor 50%,transparent 50%)}
@media(max-width:1000px){.theme-toggle{margin-left:auto}}

[data-theme="dark"]{
  color-scheme:dark;
  --field-paper:#0d1522;
  --field-ink:#ebe8e0;
  --brand-ink:#ebe8e0;
  --field-muted:#a9b3c2;
  --field-line:#2c3849;
  --brand-surface:#152033;
  --brand-link:#8fb0ff;
  --field-accent:#8fb0ff;
  --hr-color:#2c3849;
}
[data-theme="dark"] body{background:var(--field-paper);color:var(--field-ink)}


[data-theme="dark"] .scientific-methods,
[data-theme="dark"] .lab-collaboration{background:#060b13;--field-ink:#ebe8e0;--field-muted:#b4bdcb;--field-accent:#9fbaff}
[data-theme="dark"] .skip-link{background:var(--brand-blue);color:#fff}


[data-theme="dark"] body:not(.lab-home) .field-header{background:var(--field-paper);border-bottom-color:var(--field-line)}
[data-theme="dark"] body:not(.lab-home) .field-menu-button:hover,
[data-theme="dark"] body:not(.lab-home) .field-menu-button[aria-expanded="true"],
[data-theme="dark"] body:not(.lab-home) .field-nav a:hover{background:#ffffff12}


[data-theme="dark"] .page-contact{background-color:var(--brand-surface)}
[data-theme="dark"] .brief-form input,[data-theme="dark"] .brief-form textarea,[data-theme="dark"] .brief-form select{background-color:var(--brand-surface)}
[data-theme="dark"] .chapter-track{background-color:var(--brand-surface)}
[data-theme="dark"] .hardware-criteria thead{background-color:var(--brand-surface)}
[data-theme="dark"] .protocol{background-color:var(--brand-surface)}
[data-theme="dark"] .editorial-figure img{background-color:var(--brand-surface)}
[data-theme="dark"] .training-page #choose-the-support-your-team-needs{background-color:var(--brand-surface)}
[data-theme="dark"] .node-description-image img{background-color:var(--brand-surface)}
[data-theme="dark"] .node-image-output .node-description-image img{background-color:var(--brand-surface)}
[data-theme="dark"] .node-live-desk{background-color:var(--brand-surface)}
[data-theme="dark"] .node-desk-roster>.is-current{background-color:var(--brand-surface)}
[data-theme="dark"] .clinical-evidence{background-color:var(--brand-surface)}
[data-theme="dark"] .team-portrait.has-photo{background-color:var(--brand-surface)}
[data-theme="dark"] .hub-system-product figcaption,[data-theme="dark"] .training-task-figure figcaption{color:var(--field-muted)}
[data-theme="dark"] .node-description-image figcaption>span:last-child{color:var(--field-muted)}
[data-theme="dark"] .node-live-desk{color:var(--field-ink)}
[data-theme="dark"] .desk-stop{color:var(--field-muted)}
[data-theme="dark"] .node-desk-masthead>div>span{color:var(--field-muted)}
[data-theme="dark"] .node-desk-demo{color:var(--field-muted)}
[data-theme="dark"] .node-desk-roster>p{color:var(--field-muted)}
[data-theme="dark"] .node-desk-roster>span{color:var(--field-muted)}
[data-theme="dark"] .node-desk-roster b{color:var(--field-muted)}
[data-theme="dark"] .node-desk-roster>.is-current{color:var(--field-muted)}
[data-theme="dark"] .node-desk-roster small{color:var(--field-muted)}
[data-theme="dark"] .node-desk-section{color:var(--field-muted)}
[data-theme="dark"] .node-desk-trace div>span{color:var(--field-muted)}
[data-theme="dark"] .node-trace-tag{color:var(--field-muted)}
[data-theme="dark"] .node-desk-event{color:var(--field-muted)}
[data-theme="dark"] .node-desk-event b{color:var(--field-muted)}
[data-theme="dark"] .node-desk-modules p{color:var(--field-muted)}
[data-theme="dark"] .node-desk-modules div>span{color:var(--field-muted)}
[data-theme="dark"] .node-desk-note{color:var(--field-muted)}
[data-theme="dark"] .team-initials{color:var(--field-muted)}
[data-theme="dark"] .body-marker{color:var(--field-muted)}
[data-theme="dark"] .scene-intro p{color:var(--field-muted)}
[data-theme="dark"] .signal-panel h3 span{color:var(--field-muted)}
[data-theme="dark"] .signal-panel p{color:var(--field-muted)}
[data-theme="dark"] .signal-panel a{color:var(--field-muted)}
[data-theme="dark"] .trace-axis-note{color:var(--field-muted)}
[data-theme="dark"] .field-footer{border-color:var(--field-line)}
[data-theme="dark"] .page-contact{border-color:var(--field-line)}
[data-theme="dark"] .home-research-photo figcaption{border-color:var(--field-line)}
[data-theme="dark"] .node-route>a{border-color:var(--field-line)}
