/* Classic cyanotype workspace. Fixture artwork and chosen floor finishes retain their colors. */
:root[data-theme=dark]{--ink:#f5f9ff;--muted:#c8dcf3;--teal:#8bdfff;--lime:#8bdfff;--line:#ffffff36;--surface:#164b84;--surface-raised:#205b97;--canvas-bg:#215ba0;--active-bg:#087fcb;--glass:rgba(22,69,122,.97);--glass-line:#d6ecff55;--float-shadow:0 6px 22px #072d592b}
:root[data-theme=dark] body,:root[data-theme=dark] .workspace,:root[data-theme=dark] .editor{background:var(--canvas-bg)}
:root[data-theme=dark] .canvas-wrap{background-color:var(--canvas-bg);background-image:repeating-linear-gradient(17deg,#ffffff03 0 1px,transparent 1px 4px),repeating-linear-gradient(103deg,#062b5803 0 1px,transparent 1px 5px)}
:root[data-theme=dark] .topbar,:root[data-theme=dark] .adaptive-dock{background:#194f8b}
:root[data-theme=dark] :is(.catalog,.inspector-drawer,.inspector,dialog,.canvas-toolbar,.adaptive-view-panel,.wall-navigation){background-color:var(--surface);color:var(--ink)}
:root[data-theme=dark] :is(input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){background:#15457a;color:var(--ink);border-color:#d6ecff55}
:root[data-theme=dark] :is(.part-card,.export-option,.info-card,.group-box,.access-side-card,.library-tabs){background:var(--surface-raised);border-color:var(--line)}
:root[data-theme=dark] :is(.overview-stat,.overview-grid,.dimension-note,.unit-hint,.local-note,.object-type,.catalog-meta,.save-status,.supplier-catalog-status,.field,.eyebrow){color:var(--muted)}
:root[data-theme=dark] :is(.overview-stat strong,.overview-grid strong,.info-card strong,.part-card strong){color:var(--ink)}
:root[data-theme=dark] :is(.categories button.active,.library-tabs button.active,.step.active,.toggle.active,.workspace-modes button.active,.level-tabs button.active,.adaptive-dock>button.active,.adaptive-dock>button[aria-expanded=true]){background:#087fcb;color:#fff;border-color:#e7f4ff}
:root[data-theme=dark] #exportBtn{background:#078bda;color:white}
:root[data-theme=dark] #plan>.room-floor{fill:#2462a5!important;stroke:#edf6ff!important}
:root[data-theme=dark] .summary-stat{color:var(--muted)}
:root[data-theme=dark] .summary-stat strong{color:var(--ink)}
:root[data-theme=dark] #floorGrid path{stroke:#ffffff24}
:root[data-theme=dark] #footGrid path{stroke:#e3f2ff59}
:root[data-theme=dark] #fiveFootGrid path{stroke:#f0f8ff8c}
:root[data-theme=dark] #plan>text,:root[data-theme=dark] #plan text[paint-order=stroke]{fill:#fff;stroke:#215ba0}
:root[data-theme=dark] #plan>g[stroke="#a4b39a"]{stroke:#edf6ff}
:root[data-theme=dark] #plan>g.auto-gap-arrow text{fill:#fff}
:root[data-theme=dark] #plan>g.auto-gap-arrow path{stroke:#e5f7ff}
:root[data-theme=dark] #outlineSvg,:root[data-theme=dark] #elevationSvg{background:#215ba0;color:#f5f9ff}
:root[data-theme=dark] #outlineSnapStatus{background:#16457ae6;color:white}
:root[data-theme=dark] #scaleRuler text{fill:#fff}
:root[data-theme=dark] #scaleRuler path{stroke:#ddecff}

/* Decorative paper stays behind the calibrated floor grid. */
:root[data-theme=dark] .canvas-wrap{background-image:linear-gradient(#092c6080,#092c6080),url("assets/workspace-blueprint.jpg");background-size:cover;background-position:center;background-repeat:no-repeat}
