/* Scoped dark surface palette, generated from style.css. */
:where(html[data-portal-theme="dark"]) body{background:var(--bg);color:var(--ink);}
:where(html[data-portal-theme="dark"]) a{color:#aef1ee;}
:where(html[data-portal-theme="dark"]) button,:where(html[data-portal-theme="dark"]) .primary{border:0;background:var(--teal);color:white;}
:where(html[data-portal-theme="dark"]) button:hover,:where(html[data-portal-theme="dark"]) .primary:hover{background:#086762;}
:where(html[data-portal-theme="dark"]) header{border-top:4px solid var(--accent);border-bottom:1px solid var(--line);background:#21222c;}
:where(html[data-portal-theme="dark"]) .brand{color:var(--ink);}
:where(html[data-portal-theme="dark"]) .brand small{color:var(--muted);}
:where(html[data-portal-theme="dark"]) .logo{background:#102e47;color:#a3f1e2;}
:where(html[data-portal-theme="dark"]) nav a{color:#bdcbd9;}
:where(html[data-portal-theme="dark"]) .hero{background:radial-gradient(ellipse at 100% 20%,#107b78 0%,transparent 55%),linear-gradient(125deg,#10283f,#174a5d);color:white;}
:where(html[data-portal-theme="dark"]) .hero .eyebrow{color:#87e4d7;}
:where(html[data-portal-theme="dark"]) .hero p{color:#d7e7ed;}
:where(html[data-portal-theme="dark"]) .eyebrow{color:var(--teal);}
:where(html[data-portal-theme="dark"]) .panel{background:#21222c;border:1px solid var(--line);}
:where(html[data-portal-theme="dark"]) .pipeline div{background:#222f2f;border:1px solid #436a66;}
:where(html[data-portal-theme="dark"]) .pipeline small{color:var(--muted);}
:where(html[data-portal-theme="dark"]) .pipeline i{color:var(--teal);}
:where(html[data-portal-theme="dark"]) .metrics div{border:1px solid var(--line);background:#21222c;}
:where(html[data-portal-theme="dark"]) .metrics span{color:var(--muted);}
:where(html[data-portal-theme="dark"]) .filters input,:where(html[data-portal-theme="dark"]) .filters select,:where(html[data-portal-theme="dark"]) .sim input:not([type=range]),:where(html[data-portal-theme="dark"]) .sim select{border:1px solid #435c6a;background:#21222c;color:var(--ink);}
:where(html[data-portal-theme="dark"]) .labcard{background:#21222c;border:1px solid var(--line);color:var(--ink);}
:where(html[data-portal-theme="dark"]) .labcard:hover{border-color:var(--accent);}
:where(html[data-portal-theme="dark"]) .labcard p{color:var(--muted);}
:where(html[data-portal-theme="dark"]) .labcard .cardfoot{color:var(--teal);border-top:1px solid var(--line);}
:where(html[data-portal-theme="dark"]) .notice{border-left:4px solid #d9a246;background:#352b1b;}
:where(html[data-portal-theme="dark"]) .labnav a{border:1px solid var(--line);background:#21222c;}
:where(html[data-portal-theme="dark"]) .pill{color:#bddcd8;background:#22312e;}
:where(html[data-portal-theme="dark"]) .muted{color:var(--muted);}
:where(html[data-portal-theme="dark"]) .step{border-top:1px solid var(--line);}
:where(html[data-portal-theme="dark"]) .stepnum{background:#22312f;color:var(--teal);}
:where(html[data-portal-theme="dark"]) .command{background:#10273e;color:#deebf7;}
:where(html[data-portal-theme="dark"]) .commandbar{background:#1b3953;color:#c5d8e5;}
:where(html[data-portal-theme="dark"]) .commandbar button{background:#2b5169;}
:where(html[data-portal-theme="dark"]) .command code{background:none;color:inherit;}
:where(html[data-portal-theme="dark"]) code{background:#222b2f;}
:where(html[data-portal-theme="dark"]) .expected{color:#beded8;background:#21302b;}
:where(html[data-portal-theme="dark"]) .check{color:#b9c6d3;}
:where(html[data-portal-theme="dark"]) .source{border:1px solid var(--line);}
:where(html[data-portal-theme="dark"]) .sim{border:1px solid #43636b;background:#202c2f;}
:where(html[data-portal-theme="dark"]) .device{border:1px solid #466768;background:#21222c;}
:where(html[data-portal-theme="dark"]) .device .symbol{color:#adf1ef;}
:where(html[data-portal-theme="dark"]) .wire{background:#2a2b35;}
:where(html[data-portal-theme="dark"]) .wire:after{border-left:9px solid #456169;border-top:6px solid transparent;border-bottom:6px solid transparent;}
:where(html[data-portal-theme="dark"]) .packet{background:#10a998;}
:where(html[data-portal-theme="dark"]) .led{border:3px solid #445e69;background:#272830;}
:where(html[data-portal-theme="dark"]) .led.on{background:#21ce80;border-color:#15ac66;}
:where(html[data-portal-theme="dark"]) .secondary{background:#21222c;color:var(--ink);border:1px solid #445e69;}
:where(html[data-portal-theme="dark"]) .secondary:hover{background:#232430;color:var(--ink);}
:where(html[data-portal-theme="dark"]) .simlog{background:#10273e;color:#a5e6cf;}
:where(html[data-portal-theme="dark"]) .oled{background:#10273e;color:#a7e8f8;}
:where(html[data-portal-theme="dark"]) .simchart{background:#21222c;border:1px solid var(--line);}
:where(html[data-portal-theme="dark"]) .pinmap{background:#20594e;}
:where(html[data-portal-theme="dark"]) .pinmap button{background:#24252e;color:#bdd9e7;}
:where(html[data-portal-theme="dark"]) .pinmap button.selected{background:#403721;}
:where(html[data-portal-theme="dark"]) .smallnote{color:var(--muted);}
:where(html[data-portal-theme="dark"]) footer{border-top:1px solid var(--line);background:#21222c;color:var(--muted);}