/* Scoped dark surface palette, generated from studio4.css. */
:where(html[data-portal-theme="dark"]) body{color:var(--studio-ink);background:radial-gradient(ellipse at 80% 0%,#1c2536 0,transparent 45%),#1f2630;}
:where(html[data-portal-theme="dark"]) header{background:#21222cf5;border-bottom:1px solid var(--studio-line);}
:where(html[data-portal-theme="dark"]) header nav a[aria-current=page]{background:#1c2636;color:#a8c3ec;}
:where(html[data-portal-theme="dark"]) .hero{background:linear-gradient(115deg,#142d53,#245fa4 66%,#087e83)!important;}
:where(html[data-portal-theme="dark"]) .hero:after{background:radial-gradient(circle at 85% 12%,#64f4dc39 0,transparent 35%),linear-gradient(125deg,transparent 70%,#ffffff12 70%);}
:where(html[data-portal-theme="dark"]) .panel,:where(html[data-portal-theme="dark"]) .labcard,:where(html[data-portal-theme="dark"]) .tile{border-color:var(--studio-line)!important;}
:where(html[data-portal-theme="dark"]) .commandbar .dm-inline,:where(html[data-portal-theme="dark"]) .dm-inline{background:#1c2736;color:#aac5eb;border:1px solid #384f75;}
:where(html[data-portal-theme="dark"]) .commandbar .dm-inline:hover,:where(html[data-portal-theme="dark"]) .dm-inline:hover{background:#1d2838;}
:where(html[data-portal-theme="dark"]) .command-help{background:#1b2635;border:1px solid #385275;}
:where(html[data-portal-theme="dark"]) .studio-tile{background:#21222c;border:1px solid var(--studio-line);color:inherit;}
:where(html[data-portal-theme="dark"]) .studio-tile small{color:#a1bce8;}
:where(html[data-portal-theme="dark"]) .studio-tile p{color:#bbc7d6;}
:where(html[data-portal-theme="dark"]) .studio-tile span{color:#a1bce8;}
:where(html[data-portal-theme="dark"]) .liveboard{background:#101f36;color:#f1f7ff;}
:where(html[data-portal-theme="dark"]) .liveboard h3{color:white;}
:where(html[data-portal-theme="dark"]) .liveboard .smallnote,:where(html[data-portal-theme="dark"]) .liveboard small{color:#b6cbe3;}
:where(html[data-portal-theme="dark"]) .liveboard label{color:#d6e5f7;}
:where(html[data-portal-theme="dark"]) .flow-node{background:#1c3553;border:1px solid #456383;}
:where(html[data-portal-theme="dark"]) .flow-node:not(:last-child):after{color:#91c9ee;}
:where(html[data-portal-theme="dark"]) .flow-node.hot{background:#086d77;}
:where(html[data-portal-theme="dark"]) .flow-node.bad{background:#8b3929;}
:where(html[data-portal-theme="dark"]) .live-kpis>div{background:#203955;}
:where(html[data-portal-theme="dark"]) .live-chart{background:#172c46;}
:where(html[data-portal-theme="dark"]) .liveboard pre{color:#c5f7e5;background:#0d192b;}
:where(html[data-portal-theme="dark"]) .liveboard .live-status{color:#96e6cf;}
:where(html[data-portal-theme="dark"]) .liveboard .live-status.bad{color:#ffc0a5;}
:where(html[data-portal-theme="dark"]) .lab-telemetry>div{background:#1d2734;border:1px solid #385575;}
:where(html[data-portal-theme="dark"]) .lab-telemetry small{color:#b7c6d5;}
:where(html[data-portal-theme="dark"]) .step-guide{border-left:3px solid #385075;background:#1b2434;}
:where(html[data-portal-theme="dark"]) .lab-dm{border:1px solid #385275;background:linear-gradient(100deg,#1b2635,#1f312d);}
:where(html[data-portal-theme="dark"]) .service-links a{background:#1b2434;}
:where(html[data-portal-theme="dark"]) .studio-progress{background:#232a32;}
:where(html[data-portal-theme="dark"]) .studio-progress i{background:linear-gradient(90deg,#326bdb,#0ca692);}
:where(html[data-portal-theme="dark"]) .studio-live-state{color:#b7c8db;}
:where(html[data-portal-theme="dark"]) .source .command-help{color:var(--studio-ink);}
:where(html[data-portal-theme="dark"]) .setup-tiles>div{background:var(--paper,#21222c);border:1px solid #3f566e;}
:where(html[data-portal-theme="dark"]) .setup-links a{border:1px solid #3f566e;}
:where(html[data-portal-theme="dark"]) body[data-page=setup] details{border:1px solid #3f566e;}