/* Explicit theme takes precedence over the old startup-only workspace palette. */
[data-theme=dark] body.rs-workspace-ui,body.rs-workspace-ui[data-theme=dark]{--rs-ui-accent:#82e0d4;--rs-ui-line:#3d4b63;--rs-ui-muted:#bdc9dc;--rs-ui-surface:#192437;--rs-ui-field:#121d2f;--rs-ui-ink:#f1f5ff;--rs-ui-soft:#24354a;background-color:#0d1626!important;background-image:radial-gradient(ellipse at top left,#16343b,transparent 55%)!important;color:var(--rs-ui-ink)}
[data-theme=light] body.rs-workspace-ui,body.rs-workspace-ui[data-theme=light]{--rs-ui-accent:#197b76;--rs-ui-line:#dce6ec;--rs-ui-muted:#59717f;--rs-ui-surface:#fff;--rs-ui-field:#fff;--rs-ui-ink:#193344;--rs-ui-soft:#f2faf8;background-color:#f6f8fb!important;background-image:radial-gradient(ellipse at top left,#e8f6f2,transparent 55%)!important;color:var(--rs-ui-ink)}
[data-theme=dark] .rs-workspace-ui main :is(.panel,.tool-panel,.workspace-panel,.control-panel,.result-panel,.workspace-card,.form-card) :is(h2,h3,label,legend){color:var(--rs-ui-ink)}
[data-theme=dark] .rs-workspace-ui main :is(input,textarea)::placeholder{color:var(--rs-ui-muted);opacity:1}
[data-theme=dark] :is(.rs-btn--secondary,.rs-legacy-cta){color:#f1f5ff!important;background:#323e59!important;border-color:#687896!important}
[data-theme=dark] :is(.rs-header,.site-header) :is(.brand,.brand strong,.header-nav a){color:#e0e8f5!important}
[data-theme=dark] .rs-workspace-ui main :is(.button,button,.btn):disabled{opacity:1!important;color:#b8c6d9!important;background-color:#263248!important;border-color:#3d4b63!important;box-shadow:none!important}
[data-theme=dark] .rs-workspace-ui main :is(.button.primary,button.primary,.btn-primary):disabled{background:#263d40!important;color:#b8c9ce!important}

[data-theme=dark] .rs-btn--primary{background:#6051e8!important;color:#fff!important;border-color:#8f82ff!important}
[data-theme=dark] .rs-btn--primary:hover{background:#493bc0!important}
[data-theme=dark] .rs-site code,[data-theme=dark] .lcm-formula{color:#f2b6d5;background:#192437}
[data-theme=dark] .rs-force-light figcaption{color:#48546b!important}
[data-theme=dark] :is(.rel-tools,[data-rs-related-tools]){background:#192437!important;color:#e0e8f5!important;border-color:#3d4b63!important}[data-theme=dark] :is(.rel-tools,[data-rs-related-tools]) a{color:#bedcff!important}[data-theme=dark] :is(a,button){transition-property:background-color,border-color,transform,box-shadow!important}
