/* Scoped dark surface palette, generated from motion5.css. */
:where(html[data-portal-theme="dark"]) body{background:radial-gradient(ellipse at 92% 0,#1c2336 0,transparent 42%),radial-gradient(ellipse at 0 28%,#1e3432 0,transparent 35%),var(--v5-paper);}
:where(html[data-portal-theme="dark"]) header{border-top:0;background:#21222cee;}
:where(html[data-portal-theme="dark"]) .logo{background:linear-gradient(145deg,#172d59,#3658d6);color:#fff;}
:where(html[data-portal-theme="dark"]) .logo:after{background:#23433e;}
:where(html[data-portal-theme="dark"]) header nav a:hover{background:#1b2235;color:#a9b5e5;}
:where(html[data-portal-theme="dark"]) header nav a[aria-current=page]{background:#1b2035;color:#a9b6e5;}
:where(html[data-portal-theme="dark"]) .motion-reading{background:#5067bb16;}
:where(html[data-portal-theme="dark"]) .motion-reading i{background:linear-gradient(90deg,#252a47,#0aa98c);}
:where(html[data-portal-theme="dark"]) .hero.motion-hero{background:radial-gradient(ellipse at 90% 20%,#254d91 0,transparent 58%),linear-gradient(120deg,#0b1830 0%,#142b54 60%,#123e55 100%)!important;}
:where(html[data-portal-theme="dark"]) .hero.motion-hero:after{border:0;}
:where(html[data-portal-theme="dark"]) .motion-copy p{color:#d9e7ff;}
:where(html[data-portal-theme="dark"]) .motion-copy .eyebrow{color:#9df4e3;}
:where(html[data-portal-theme="dark"]) .motion-copy .hero-actions .primary:not(.secondary){background:#1b352e;color:#b8edeb;}
:where(html[data-portal-theme="dark"]) .motion-copy .primary:not(.secondary):hover{background:#203e36;color:#bce2ea;}
:where(html[data-portal-theme="dark"]) .motion-copy .hero-actions .secondary{border-color:#b8d5ff55;background:#ffffff12;color:#fff;}
:where(html[data-portal-theme="dark"]) .motion-art figcaption{color:#b2c7e6;}
:where(html[data-portal-theme="dark"]) .motion-preferences{color:#bac5d7;}
:where(html[data-portal-theme="dark"]) .motion-toggle{background:#21222c;color:#b7c3de;border:1px solid #3e5370;}
:where(html[data-portal-theme="dark"]) .motion-toggle:hover{background:#1b2235;color:#b6c3e4;}
:where(html[data-portal-theme="dark"]) .motion-toggle[aria-pressed=false]{background:#23242e;color:#bdc8d7;}
:where(html[data-portal-theme="dark"]) .panel,:where(html[data-portal-theme="dark"]) .labcard,:where(html[data-portal-theme="dark"]) .tile{border-color:#3d5370!important;}
:where(html[data-portal-theme="dark"]) .sectionhead h2,:where(html[data-portal-theme="dark"]) .panel h2{color:#bdcfe8;}
:where(html[data-portal-theme="dark"]) .panel>.eyebrow,:where(html[data-portal-theme="dark"]) .sectionhead .eyebrow{color:#abb9dd;}
:where(html[data-portal-theme="dark"]) .studio-tile{border:1px solid #3e526f;background:linear-gradient(145deg,#21222c 30%,#1b2034);}
:where(html[data-portal-theme="dark"]) .studio-tile:after{background:var(--tile-tint,#1c2336);}
:where(html[data-portal-theme="dark"]) .studio-tile:hover,:where(html[data-portal-theme="dark"]) .studio-tile:focus-visible{border-color:#384975;}
:where(html[data-portal-theme="dark"]) .motion-tile-icon{color:var(--tile-color,#a0afe5);background:var(--tile-tint,#1b2135);}
:where(html[data-portal-theme="dark"]) .studio-tile h3{color:#bbcde8;}
:where(html[data-portal-theme="dark"]) .studio-tile small{color:var(--tile-color,#a0afe5);}
:where(html[data-portal-theme="dark"]) .labcard:before{background:linear-gradient(90deg,var(--tile-color,#3658d6),transparent);}
:where(html[data-portal-theme="dark"]) .labcard:hover{border-color:#384975!important;}
:where(html[data-portal-theme="dark"]) .labcard .cardfoot{color:#a8b7e3;}
:where(html[data-portal-theme="dark"]) .metrics>div{border-color:#3d5370;background:linear-gradient(160deg,#21222c,#1b2233);}
:where(html[data-portal-theme="dark"]) .metrics>div:after{background:linear-gradient(90deg,#252b45,#294544);}
:where(html[data-portal-theme="dark"]) .metrics strong{color:#b1c0e6;}
:where(html[data-portal-theme="dark"]) .motion-tracebox{background:#101e37;color:#f2f6ff;}
:where(html[data-portal-theme="dark"]) .motion-tracebox h3{color:#f3f7ff;}
:where(html[data-portal-theme="dark"]) .motion-tracebox .trace-description{color:#c3d5f2;}
:where(html[data-portal-theme="dark"]) .motion-tracebar button{background:#243956;border:1px solid #536b91;color:#e1ebff;}
:where(html[data-portal-theme="dark"]) .motion-tracebar button:not(:last-child):after{color:#9fbbed;}
:where(html[data-portal-theme="dark"]) .motion-tracebar button small{color:#b6c8e6;}
:where(html[data-portal-theme="dark"]) .motion-tracebar button[aria-pressed=true]{background:#1e615f;border-color:#387565;color:#fff;}
:where(html[data-portal-theme="dark"]) .motion-tracebar button[aria-pressed=true] small{color:#c7fff3;}
:where(html[data-portal-theme="dark"]) .motion-tracefooter p{color:#d1e1f6;}
:where(html[data-portal-theme="dark"]) .motion-tracefooter button{background:#344d7c;border:1px solid #6a87b5;color:white;}
:where(html[data-portal-theme="dark"]) .sim{background:linear-gradient(145deg,#1a2233,#1e2932);border-color:#3e546f;}
:where(html[data-portal-theme="dark"]) .stage{background:radial-gradient(ellipse at 75% 20%,#1f4b6b 0,transparent 65%),linear-gradient(120deg,#0b1830,#142d4b)!important;border:1px solid #344e74;}
:where(html[data-portal-theme="dark"]) .stage:before{background:linear-gradient(#b0d1ff0b 1px,transparent 1px),linear-gradient(90deg,#b0d1ff0b 1px,transparent 1px);}
:where(html[data-portal-theme="dark"]) .stage .device{background:linear-gradient(145deg,#ffffff12,#ffffff06);border:1px solid #8ba7cd44;}
:where(html[data-portal-theme="dark"]) .stage .device small{color:#bcd6f5;}
:where(html[data-portal-theme="dark"]) .stage .wire{background:#82a9d05c;}
:where(html[data-portal-theme="dark"]) .stage .wire:after{border-left-color:#386175;}
:where(html[data-portal-theme="dark"]) .stage .packet.go{background:#1e3b33;}
:where(html[data-portal-theme="dark"]) .stage .packet.go:before{background:linear-gradient(90deg,transparent,#23433c);}
:where(html[data-portal-theme="dark"]) .stage .motion-result{color:#85efe1;}
:where(html[data-portal-theme="dark"]) .stage .led.on:after{border:1px solid #387560;}
:where(html[data-portal-theme="dark"]) .sim-metric,:where(html[data-portal-theme="dark"]) .lab-telemetry>div{background:linear-gradient(135deg,#21222c,#1b2334);}
:where(html[data-portal-theme="dark"]) .liveboard{background:radial-gradient(ellipse at 90% 0,#213d66,transparent 60%),#101d32;}
:where(html[data-portal-theme="dark"]) .flow-node.hot:before{border:1px solid #387566;}
:where(html[data-portal-theme="dark"]) .simcontrols button:first-of-type{background:linear-gradient(135deg,#3658d6,#2549b0);}
:where(html[data-portal-theme="dark"]) .simcontrols button:first-of-type:hover{background:#2646a8;}
:where(html[data-portal-theme="dark"]) .simlog{border:1px solid #2b4266;background:#0e1c30;color:#b2f4e2;}
:where(html[data-portal-theme="dark"]) .commandbar{background:#1b304e;}
:where(html[data-portal-theme="dark"]) .stepnum{background:#1b2235;color:#acb8e0;}
:where(html[data-portal-theme="dark"]) .check:has(input:checked){color:#aef1e5;}
:where(html[data-portal-theme="dark"]) .labnav a.motion-current{background:#1b2235;color:#a9b6e5;border-color:#384a75;}
:where(html[data-portal-theme="dark"]) .tutor-launch{background:linear-gradient(135deg,#1b315b,#3658d6);}
:where(html[data-portal-theme="dark"]) .tutor-top{background:linear-gradient(135deg,#142649,#3658d6 80%,#167d83);}
@media print{:where(html[data-portal-theme="dark"]) .hero.motion-hero{background:#21222c!important;color:#c0d1e8;}
:where(html[data-portal-theme="dark"]) .motion-copy p,:where(html[data-portal-theme="dark"]) .motion-copy .eyebrow{color:#c0d1e8;}}