:root[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e4e6de;--muted:#a1a69c;--paper:#202421;--accent:#d28b6d;--line:#383e39;
  background:#171a18;color:var(--ink)
}
:root[data-theme="dark"] body{background:#171a18;color:var(--ink)}
:root[data-theme="dark"] header,:root[data-theme="dark"] aside,:root[data-theme="dark"] .aside-bottom{background:#202421;color:var(--ink)}
:root[data-theme="dark"] .stage{background:radial-gradient(ellipse at 52% 40%,#30352f 0%,#252a26 90%)}
:root[data-theme="dark"] .brand,:root[data-theme="dark"] h1,:root[data-theme="dark"] h2,:root[data-theme="dark"] .section-title,:root[data-theme="dark"] .item-info strong,:root[data-theme="dark"] .finish-card strong,:root[data-theme="dark"] .lighting-card strong{color:#e4e6de}
:root[data-theme="dark"] .room-name,:root[data-theme="dark"] .eyebrow,:root[data-theme="dark"] .tabs button,:root[data-theme="dark"] .collection-label,:root[data-theme="dark"] .section-note,:root[data-theme="dark"] .item-info small,:root[data-theme="dark"] .window-card small,:root[data-theme="dark"] .placement-wall-label,:root[data-theme="dark"] .catalog-menus label,:root[data-theme="dark"] .lighting-card small,:root[data-theme="dark"] .range-labels,:root[data-theme="dark"] .stage-bottom,:root[data-theme="dark"] .gallery-heading p,:root[data-theme="dark"] .gallery-message,:root[data-theme="dark"] .personal-gallery-message,:root[data-theme="dark"] .gallery-card-info,:root[data-theme="dark"] .personal-asset-info small{color:#a6ada3}
:root[data-theme="dark"] .item-card,:root[data-theme="dark"] .finish-card,:root[data-theme="dark"] .lighting-card,:root[data-theme="dark"] .gallery-card,:root[data-theme="dark"] .personal-asset-card{background:#272c28;border-color:#3b423c}
:root[data-theme="dark"] .item-image,:root[data-theme="dark"] .finish-sample,:root[data-theme="dark"] .window-sample,:root[data-theme="dark"] .personal-asset-preview{background-color:#303630}
:root[data-theme="dark"] .categories button,:root[data-theme="dark"] .gallery-header-button,:root[data-theme="dark"] .personal-gallery-tabs button,:root[data-theme="dark"] .gallery-card-actions button,:root[data-theme="dark"] .personal-asset-actions button{background:#303730;color:#c3c9bf;border-color:#424a43}
:root[data-theme="dark"] .categories button.active,:root[data-theme="dark"] .personal-gallery-tabs button[aria-pressed="true"]{background:#4e5b4e;border-color:#4e5b4e;color:#fff}
:root[data-theme="dark"] .gallery-header-button:hover,:root[data-theme="dark"] .categories button:hover,:root[data-theme="dark"] .personal-gallery-tabs button:hover{color:#f0a887}
:root[data-theme="dark"] .view-controls{background:#202421e8;border-color:#444b45;box-shadow:0 2px 12px #0004}
:root[data-theme="dark"] .view-controls i{background:#4b524b}
:root[data-theme="dark"] .view-controls button[aria-pressed="true"],:root[data-theme="dark"] .view-controls #plan-toggle[aria-pressed="true"],:root[data-theme="dark"] .view-controls #toggle-walls[aria-pressed="true"]{background:#687664;color:#fff}
:root[data-theme="dark"] #selection-bar{background:#252a26f5;border-color:#454c45;color:#e4e6de;box-shadow:0 8px 32px #0006}
:root[data-theme="dark"] #selection-bar button:hover{background:#383e38}
:root[data-theme="dark"] #selection-bar input,:root[data-theme="dark"] select,:root[data-theme="dark"] .placement-wall-label select,:root[data-theme="dark"] #architecture-wall,:root[data-theme="dark"] .catalog-menus select{background:#292e2a;color:#e4e6de;border-color:#454c45}
:root[data-theme="dark"] .texture-upload,:root[data-theme="dark"] .add-wall-button{background:#2d342e;color:#c7d0c2;border-color:#485349}
:root[data-theme="dark"] .add-wall-button:hover{background:#39443a}
:root[data-theme="dark"] .finish-card.active,:root[data-theme="dark"] .lighting-card.active{background:#343b33;border-color:#c78363}
:root[data-theme="dark"] .finish-card.active:after{background:#292e29}
:root[data-theme="dark"] .item-add{background:#282d28dd;color:#d1d7cc;border-color:#4b534b}
:root[data-theme="dark"] .view-card img{background:#303630}
:root[data-theme="dark"] #room-gallery,:root[data-theme="dark"] #personal-gallery{background:#202421;color:#e4e6de;border-color:#414840}
:root[data-theme="dark"] .gallery-preview{background:#292e2a}
:root[data-theme="dark"] .gallery-preview img{background:#292e2a}
:root[data-theme="dark"] .gallery-card-actions button,:root[data-theme="dark"] .personal-asset-actions button{color:#d2d9ce}
:root[data-theme="dark"] .gallery-card-actions .gallery-delete,:root[data-theme="dark"] .personal-asset-actions .personal-asset-remove{background:#49332e;color:#e7a18a}
:root[data-theme="dark"] .personal-gallery-tabs{border-color:#383e39}
:root[data-theme="dark"] .gallery-close:hover{background:#303630}
:root[data-theme="dark"] .floor-plan{background:#1d211e}
:root[data-theme="dark"] .plan-room{fill:#272d28}
:root[data-theme="dark"] .plan-outline{stroke:#98a392}
:root[data-theme="dark"] .plan-dimensions{stroke:#737d71}
:root[data-theme="dark"] .plan-dimensions text{fill:#c1c9bc;stroke:#1d211e}
:root[data-theme="dark"] .plan-area{fill:#aeb8a8}
:root[data-theme="dark"] .plan-toolbar,:root[data-theme="dark"] .plan-footnote,:root[data-theme="dark"] .plan-legend{color:#d5d9cf;background:#242a25ed;border-color:#414840}
:root[data-theme="dark"] .plan-toolbar-title strong,:root[data-theme="dark"] .plan-toolbar-title small{color:#b9c2b5}
:root[data-theme="dark"] .plan-status{background:#354334;color:#d2dfc9}
:root[data-theme="dark"] .plan-status.has-issues{background:#48372c;color:#edba8c}
:root[data-theme="dark"] .opening-underlay{stroke:#272d28}
:root[data-theme="dark"] .plan-item rect{fill:#83947a55;stroke:#a1b096}
:root[data-theme="dark"] .plan-item:hover rect,:root[data-theme="dark"] .plan-item.plan-selected rect{fill:#9aaa8678;stroke:#d2dfc8}
:root[data-theme="dark"] .measure-guide{background:#202421e8;color:#e4e6de;border-color:#424940}
:root[data-theme="dark"] .measure-guide small,:root[data-theme="dark"] .measure-guide span{color:#a8afa4}
:root[data-theme="dark"] .room-switch,:root[data-theme="dark"] .level-switch{background:#202421ed;border-color:#444b45}
:root[data-theme="dark"] .room-switch button,:root[data-theme="dark"] .level-switch button{background:transparent;color:#d4d9d0;border-color:#414840}
:root[data-theme="dark"] .room-switch button[aria-pressed="true"],:root[data-theme="dark"] .level-switch button[aria-pressed="true"]{background:#4b584a;color:#fff}
:root[data-theme="dark"] .theme-toggle{color:#e4d29c}
:root[data-theme="dark"] .theme-toggle:hover{color:#f4bd83}
:root[data-theme="dark"] input[type="color"]{background:#292e2a;border-color:#454c45}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#4a514a}
:root[data-theme="dark"] ::-webkit-scrollbar-track{background:transparent}
@media(max-width:720px){:root[data-theme="dark"] aside{border-top-color:#383e39}}
