.editor-theme-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none}
.editor-theme-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-eh-theme="dark"]{color-scheme:dark;--bg:#10171e;--panel:#17212b;--ink:#e6edf3;--muted:#adbac6;--line:#354452;--green-dark:#85c863;--brand-blue:#c1d9ed;--brand-blue-dark:#d5e5f2;--brand-blue-soft:#233544;--red:#f18b8b;--shadow:0 16px 42px #0006}
html[data-eh-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-eh-theme="dark"] :is(.topbar,.toolbar,.subtoolbar,.plan-wrap,.quote-panel,.catalog-panel,.product-card,.selected-item,.room-group,.layer-controls label,.mobile-bottom-nav,.mobile-plan-controls,.mobile-tools-header,.account-form,.server-card,.server-panel,.admin-integration-card,.admin-product-row,.cad-import-progress){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] :is(.field,input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#111b24;color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] input::placeholder,html[data-eh-theme="dark"] textarea::placeholder{color:#92a4b3}
html[data-eh-theme="dark"] .button.secondary{background:#283745;color:var(--ink)}
html[data-eh-theme="dark"] .button.secondary:hover{background:#35495b}
html[data-eh-theme="dark"] :is(.tool-mode,.tab-button,.toolbar summary){background:#283745;color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] .button.danger{background:#442b31;color:#ffb3b3}
html[data-eh-theme="dark"] #exportSelect{background:var(--green);color:#14260c;border-color:transparent}
html[data-eh-theme="dark"] #accountDialog.account-view,html[data-eh-theme="dark"] #accountDialog.account-view .account-form{background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] :is(.eh-help-panel,.eh-help-welcome){background:#1b2732;color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] .eh-help-message{background:#273744;color:var(--ink)}
html[data-eh-theme="dark"] .eh-help-message.user{background:#30452d;color:#e1eddc}
html[data-eh-theme="dark"] :is(.eh-help-note,.eh-help-footer-links a,.eh-help-ticket-open,.eh-help-header button){color:#b3c7d7}
html[data-eh-theme="dark"] .button.active-tool,html[data-eh-theme="dark"] .tool-mode.active{background:#30452d;color:#d7edcf}
html[data-eh-theme="dark"] :is(.product-title,.product-name,.panel h2,.panel h3,.quote-panel h2,.quote-panel h3,.mobile-plan-controls output,.mobile-nav-button){color:var(--ink)}
html[data-eh-theme="dark"] :is(.product-meta,.muted,.label,.note,.fineprint,.room-area){color:var(--muted)}
html[data-eh-theme="dark"] :is(.tool-hint,.room-group[open] summary,.server-message,.selected-details,.layer-controls label){background:#1e2c37;color:var(--muted);border-color:var(--line)}
html[data-eh-theme="dark"] .drop-zone{background:linear-gradient(90deg,#8fa5b00d 1px,transparent 1px),linear-gradient(#8fa5b00d 1px,transparent 1px),#111922;background-size:28px 28px;border-color:#465b6c}
html[data-eh-theme="dark"] .drop-zone.has-plan{background:#111922}
/* Only vector CAD underlays change palette; photos and PDF backgrounds retain their colours. */
html[data-eh-theme="dark"] #planImage[data-cad-plan="true"]{filter:invert(1) hue-rotate(180deg) brightness(1.8)}
html[data-eh-theme="dark"] #markerLayer .technical-device-box{background:#192631;color:#e2ebf2;border-color:#8da4b7}
html[data-eh-theme="dark"] #markerLayer .technical-device-notes{border-color:#496171}
html[data-eh-theme="dark"] #markerLayer .technical-device-leader path{stroke:#c3d4df}
html[data-eh-theme="dark"] #markerLayer .technical-device-anchor{color:#c3d4df}
html[data-eh-theme="dark"] #scaleLayer .dimension-label{color:#b6c6d2}
html[data-eh-theme="dark"] #scaleLayer .mount-dimension-svg line[stroke="#17485b"]{stroke:#a4b6c4}
html[data-eh-theme="dark"] #scaleLayer .dimension-point{background:#bfd1df;border-color:#192631}
html[data-eh-theme="dark"] :is(.room-plan-label,.scale-label,.marker-label){background:#192631;color:#e3edf3;border-color:#567083}
html[data-eh-theme="dark"] dialog{background:#1b2732;color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
html[data-eh-theme="dark"] dialog::backdrop{background:#03080bb0}
html[data-eh-theme="dark"] :is(.eh-message-dialog,.offer-section-dialog,.pdf-crop-dialog,.modal-form,.account-form){background:#1b2732;color:var(--ink)}
html[data-eh-theme="dark"] :is(.offer-variant-card,.offer-section-tile,.offer-scope-line){background:#22323d;color:var(--ink);border-color:var(--line)}
/* Editor surfaces: keep cards, choices and sticky dialog actions in the same dark palette. */
html[data-eh-theme="dark"] :is(.marker-inline-details,.choice-card,.product-preview-facts div,.product-preview-specs dd,.tutorial-grid article,.whats-new-list article,.offer-settings-panel,.device-placement-bar){background:#22323d;color:var(--ink);border-color:#435565}
html[data-eh-theme="dark"] :is(.choice-card strong,.product-preview-facts strong,.product-preview-specs dt,.product-preview-specs dd,.offer-settings-panel summary){color:var(--ink)}
html[data-eh-theme="dark"] :is(.choice-card small,.product-preview-description,.product-preview-facts span,.device-placement-bar span,.tutorial-grid p,.whats-new-list p){color:#bdccd8}
html[data-eh-theme="dark"] .choice-card:has(input:checked){background:#304b2e;border-color:#89cf5a;box-shadow:0 0 0 1px #89cf5a inset}
html[data-eh-theme="dark"] .choice-card:has(input:checked) strong{color:#eff9e9}
html[data-eh-theme="dark"] .product-preview-specs dt{background:#293c48;border-color:#435565}
html[data-eh-theme="dark"] .product-preview-specs dd{border-color:#435565}
html[data-eh-theme="dark"] .product-preview-image-wrap{background:#22323d;border-color:#435565}
html[data-eh-theme="dark"] :is(.room-summary,.room-list-item.room-expanded .room-summary){background:#22323d;color:var(--ink);border-color:#435565}
html[data-eh-theme="dark"] .room-list-item.selected-item-active .room-summary{background:#304b2e;color:#eff9e9}
html[data-eh-theme="dark"] .project-drawing-choice label{background:#22323d;color:var(--ink);border-color:#435565}
html[data-eh-theme="dark"] .project-drawing-choice label:has(input:checked){background:#304b2e;color:#eff9e9;border-color:#89cf5a}
html[data-eh-theme="dark"] .project-drawing-choice small{color:#bdccd8}
html[data-eh-theme="dark"] dialog>.modal-form>.dialog-actions,
html[data-eh-theme="dark"] dialog>.account-form>.dialog-actions,
html[data-eh-theme="dark"] .bulk-marker-dialog>.dialog-actions,
html[data-eh-theme="dark"] dialog .eh-message-actions{background:#1b2732;color:var(--ink);border-color:#435565;box-shadow:0 -8px 18px #0002}
html[data-eh-theme="dark"] :is(.button.active-tool,.tool-mode.active,.device-placement-bar .button.active,.plan-tools .button[aria-pressed="true"],.plan-tools .button.active){background:#548c32;color:#fff;border-color:#9be070;box-shadow:0 0 0 2px #9be070 inset}
html[data-eh-theme="dark"] :is(.plan-tools .button.secondary,.tool-mode):not(:disabled):hover{background:#385932;color:#f1f8ec;border-color:#91ca70}
html[data-eh-theme="dark"] :is(.plan-tools .button,.tool-mode):focus-visible{outline:2px solid #b8e39c;outline-offset:3px}
html[data-eh-theme="dark"] #markerLayer :is(.device-leaders,.technical-device-leader) path{stroke:#b3e1f2;stroke-width:2px;filter:drop-shadow(0 0 1px #07131c)}
html[data-eh-theme="dark"] #markerLayer :is(.device-anchor,.technical-device-anchor){color:#ccebf8;font-size:22px;font-weight:800;text-shadow:-1px -1px 0 #07131c,1px -1px 0 #07131c,-1px 1px 0 #07131c,1px 1px 0 #07131c}
/* Editor-only surfaces: do not recolour exported documents or device artwork. */
@media screen{
html[data-eh-theme="dark"] .project-wizard{background:linear-gradient(135deg,#22323d,#263c30);border-color:#526c48;box-shadow:0 6px 18px #0002}
html[data-eh-theme="dark"] .project-wizard-copy strong{color:#eff9e9}
html[data-eh-theme="dark"] .project-wizard-copy p{color:#bdccd8}
html[data-eh-theme="dark"] .project-wizard .button.ghost{color:#d1dfc9}
html[data-eh-theme="dark"] .project-wizard .button.ghost:hover{background:#354b33;color:#fff}
html[data-eh-theme="dark"] .circuit-peer-list{background:#111b24;color:var(--ink);border-color:#435565;scrollbar-color:#657b8d #17212b}
html[data-eh-theme="dark"] .circuit-peer-list label{color:#e6edf3;padding:4px;border-radius:4px}
html[data-eh-theme="dark"] .circuit-peer-list label:hover{background:#283745}
html[data-eh-theme="dark"] .circuit-peer-list label:has(input:checked){background:#304b2e;color:#eff9e9}
html[data-eh-theme="dark"] .circuit-peer-list input{accent-color:#85c863}
html[data-eh-theme="dark"] .circuit-peer-list .note{color:#bdccd8}
html[data-eh-theme="dark"] :is(.workspace-view-options,.workspace-view-option,.protection-panel,.cabinet-layer-controls label,.cabinet-order-button,.din-drag-handle,.finance-config,.cable-estimate-settings,.cable-estimate-settings summary){background:#22323d;color:var(--ink);border-color:#435565}
html[data-eh-theme="dark"] .workspace-view-option:is(:hover,:focus-visible){background:#35495b;color:#fff}
html[data-eh-theme="dark"] .workspace-view-option.active{background:#304b2e;color:#eff9e9}
html[data-eh-theme="dark"] .workspace-view-option:focus-visible{outline:2px solid #9be070;outline-offset:-2px}
html[data-eh-theme="dark"] .catalog-toggle-icon{background:#283745;border-color:#435565}
html[data-eh-theme="dark"] .catalog-toggle-icon::before{color:var(--ink)}
html[data-eh-theme="dark"] #cabinetView .cabinet-board{background:#10171e}
html[data-eh-theme="dark"] #cabinetView .cabinet-shell{background:#17212b;border-color:#435565}
html[data-eh-theme="dark"] #cabinetView .rail-slots{background:repeating-linear-gradient(90deg,#1e2c37 0,#1e2c37 calc(100% / var(--slots) - 1px),#435565 calc(100% / var(--slots) - 1px),#435565 calc(100% / var(--slots)))}
html[data-eh-theme="dark"] #estimateView #estimateWorkScopeEditor{background:#22323d;color:var(--ink);border-color:#435565}
html[data-eh-theme="dark"] .estimate-totals>span{background:#22323d;color:#bdccd8}
html[data-eh-theme="dark"] .estimate-totals strong{color:#eff6fb}
html[data-eh-theme="dark"] .estimate-table thead{background:#293c48;color:#e6edf3}
html[data-eh-theme="dark"] .estimate-category th{background:#30452d;color:#e4f3dd}
html[data-eh-theme="dark"] .estimate-table :is(td,th){border-color:#435565}
html[data-eh-theme="dark"] :is(.estimate-head p,.estimate-table small,.finance-help,.finance-config p,.finance-device-rate small,.finance-device-rate details summary,.finance-empty,#estimateSaveStatus){color:#bdccd8}
html[data-eh-theme="dark"] .finance-config fieldset{border-color:#435565}
html[data-eh-theme="dark"] #estimateView .finance-section-name:is(:hover,:focus){background:#22323d;color:#eff9e9;border-color:#89cf5a}
html[data-eh-theme="dark"] :is(.finance-drop-target,.finance-row-drop){background:#304b2e}
html[data-eh-theme="dark"] .finance-validation{background:#44371f;color:#ffe2a8}
html[data-eh-theme="dark"] .eh-help-ticket:not([hidden]){display:grid;gap:12px;margin-top:12px;padding-top:16px;border-top:1px solid #435565}
html[data-eh-theme="dark"] .eh-help-ticket>label{display:grid;gap:6px;font-size:13px;color:#e6edf3;min-width:0}
html[data-eh-theme="dark"] .eh-help-ticket input{min-width:0;max-width:100%;padding:9px;border:1px solid #435565;border-radius:8px;font:inherit;box-sizing:border-box}
html[data-eh-theme="dark"] .eh-help-ticket textarea{font:inherit;border-color:#435565}
html[data-eh-theme="dark"] .eh-help-ticket button,
html[data-eh-theme="dark"] .eh-help-ticket input::file-selector-button{padding:10px 14px;border:1px solid #435565;border-radius:8px;background:#283745;color:#e6edf3;font:inherit;cursor:pointer}
html[data-eh-theme="dark"] .eh-help-ticket input::file-selector-button{margin-right:8px}
html[data-eh-theme="dark"] .eh-help-ticket .eh-ticket-send{background:#6dc13b;color:#14260c;border-color:#6dc13b;font-weight:700}
html[data-eh-theme="dark"] .eh-help-ticket button:not(:disabled):hover{filter:brightness(1.15)}
html[data-eh-theme="dark"] .eh-help-ticket :is(input,textarea,button):focus-visible{outline:2px solid #9be070;outline-offset:2px}
}
@media screen {
html[data-eh-theme="dark"] .eh-message-card{background:#1b2732;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .eh-message-dialog h2{color:#e6edf3}
html[data-eh-theme="dark"] :is(.eh-message-brand,.eh-message-text){color:#bdccd8}
html[data-eh-theme="dark"] .eh-message-card .legal-consent{color:#bdccd8}
html[data-eh-theme="dark"] body.app-booting #appStartup{background:#10171e;color:#e6edf3}
html[data-eh-theme="dark"] #appStartup span{color:#bdccd8}
html[data-eh-theme="dark"] :is(.workspace,.plan-wrap):fullscreen{background:#10171e;color:#e6edf3}
html[data-eh-theme="dark"] :is(.product-lookup-preview,.recorder-retention-card,.recorder-disk-counts label){background:#22323d;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .product-lookup-preview a{color:#9cda7b}
html[data-eh-theme="dark"] .product-lookup-preview img{color:#17212b}
html[data-eh-theme="dark"] .recorder-retention-card small{color:#bdccd8}
html[data-eh-theme="dark"] .recorder-retention-card span{color:#9cda7b}
html[data-eh-theme="dark"] .recorder-disk-counts label:has(input:checked){background:#304b2e;color:#eff9e9;border-color:#85c863}
html[data-eh-theme="dark"] .rack-space-warning{background:#3c3321;color:#ffe3a4;border-color:#8a7044}
html[data-eh-theme="dark"] .cabinet-phase-tool>summary{background:#283745;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] :is(.rack-head h3,.rack-head-stats strong){color:#e6edf3}
html[data-eh-theme="dark"] :is(.rack-eyebrow,.rack-head-stats span){color:#bdccd8}
html[data-eh-theme="dark"] .icon-button[aria-label]::after{background:#22323d;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .rack-device{background:linear-gradient(#35434c,#23313a);color:#e6edf3;border-color:#596d7a;box-shadow:inset 0 1px #6a7e8c,inset 0 -2px #17212b}
html[data-eh-theme="dark"] .rack-face-organizer{color:#bdccd8;border-color:#657b8d}
html[data-eh-theme="dark"] .rack-item-editor.selected{background:#263c30;color:#e6edf3}
html[data-eh-theme="dark"] .electrical-placement-ghost{background:#263c30;color:#e6edf3}
html[data-eh-theme="dark"] .socket-frame-section{background:#22323d;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .socket-frame-section :is(.label,.note){color:#bdccd8}
html[data-eh-theme="dark"] .socket-frame-section .socket-frame-visual{background:linear-gradient(135deg,#34454f,#25343e);border-color:#657b8d;box-shadow:inset 0 1px #6a7e8c,0 2px 5px #0004}
html[data-eh-theme="dark"] .socket-frame-section .socket-frame-slot{background:linear-gradient(135deg,#354751,#263640);color:#e6edf3;border-color:#596f7e}
html[data-eh-theme="dark"] .socket-frame-section .socket-frame-insert{background:linear-gradient(135deg,#2c3f49,#1b2b34);border-color:#596f7e;box-shadow:inset 0 0 0 2px #354a56}
html[data-eh-theme="dark"] .socket-frame-section .socket-round{background:radial-gradient(circle,#263a46,#182831 70%);border-color:#8095a3;box-shadow:inset 0 1px 3px #0006}
html[data-eh-theme="dark"] .socket-frame-section .socket-round::before,html[data-eh-theme="dark"] .socket-frame-section .socket-round::after,html[data-eh-theme="dark"] .socket-frame-section .socket-round b{background:#c6d8e2}
html[data-eh-theme="dark"] .socket-frame-section .socket-tv{background:radial-gradient(circle,#b7cbd7 0 3px,#263a46 4px 8px,#182831 9px);border-color:#8095a3}
html[data-eh-theme="dark"] :is(.rack-patch-assignments,.catalog-empty-state){background:#22323d;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] :is(.rack-patch-assignments summary,.rack-patch-port-row b,.catalog-empty-state strong){color:#e6edf3}
html[data-eh-theme="dark"] :is(.rack-patch-port-row,.rack-patch-assignments label){color:#bdccd8;border-color:#435565}
html[data-eh-theme="dark"] .rack-patch-port-row.drop-target{background:#304b2e;color:#eff9e9;outline-color:#85c863}
html[data-eh-theme="dark"] .catalog-empty-state span{color:#bdccd8}
html[data-eh-theme="dark"] dialog.wiring-settings-dialog,
html[data-eh-theme="dark"] dialog.cable-config-page.wiring-settings-dialog{background:#1b2732;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .cable-config-page :is(h1,h2,h3,strong,label){color:#e6edf3}
html[data-eh-theme="dark"] .cable-config-page :is(.cable-config-lengths,[role="status"]){background:#22323d;color:#bdccd8;border-color:#435565}
html[data-eh-theme="dark"] .cable-config-table th{background:#293c48;color:#e6edf3}
html[data-eh-theme="dark"] .cable-config-table :is(th,td){border-color:#435565}
html[data-eh-theme="dark"] .cable-config-table small{color:#bdccd8}
html[data-eh-theme="dark"] .cable-config-page .cable-config-warning{color:#ffd18a}
}
/* Generated documents retain their print palette. */
.project-pdf-sheet,.offer-export-host{color-scheme:light;--panel:#fff;--bg:#fff;--ink:#182017;--muted:#667064;--line:#dfe6dc;--brand-blue:#0b3658;--brand-blue-dark:#08283f;--brand-blue-soft:#eaf2f8;--red:#c74343}
@media(max-width:760px){.theme-button-label{display:none}.topbar .editor-theme-button{width:36px;min-width:36px;padding:6px;min-height:36px}.editor-theme-button svg{width:20px;height:20px}}
@media print{html[data-eh-theme="dark"]{color-scheme:light;--bg:white;--panel:white;--ink:#182017;--muted:#667064;--line:#dfe6dc}html[data-eh-theme="dark"] #planImage[data-cad-plan="true"]{filter:none}html[data-eh-theme="dark"] #markerLayer :is(.device-leaders,.technical-device-leader) path{stroke:#173f50;stroke-width:1.2px;filter:none}html[data-eh-theme="dark"] #markerLayer :is(.device-anchor,.technical-device-anchor){color:#173f50;font-size:15px;font-weight:700;text-shadow:none}#editorThemeButton{display:none}}

.account-appearance{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink)}
.account-appearance h3{margin:0 0 12px}
.account-appearance .field{max-width:300px}
.account-appearance .note{margin-top:10px}
#accountDialog.account-local-preferences :is(.account-view-tabs,.account-grid,.account-actions,.account-license,#accountGoogleStatus){display:none}
@media print{#accountAppearance{display:none}}

#toolModeTabs .tool-mode{display:inline-flex;align-items:center;justify-content:center;gap:7px}#toolModeTabs .tool-mode-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* Project list and sharing panels use the same dark palette as the editor. */
@media screen{
html[data-eh-theme="dark"] :is(.server-project-row,.server-share-panel,.server-member-row){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] .server-share-panel{background:#1e2c37}
html[data-eh-theme="dark"] .server-member-row{background:#111b24}
html[data-eh-theme="dark"] :is(.server-project-row strong,.server-share-panel h3,.server-share-panel label,.server-member-row>span){color:var(--ink)}
html[data-eh-theme="dark"] :is(.server-project-row small,.server-member-row small,#serverShareStatus){color:var(--muted)}
html[data-eh-theme="dark"] .server-project-work-time{color:var(--green-dark)!important}
}

@media screen{
html[data-eh-theme="dark"] select option,
html[data-eh-theme="dark"] select optgroup{background:var(--panel);color:var(--ink)}
html[data-eh-theme="dark"] select option:disabled{color:var(--muted)}
}

@media screen{html[data-eh-theme="dark"] .bus-room-row{background:#22323d;color:var(--ink);border-color:var(--line)}html[data-eh-theme="dark"] .bus-room-row :is(strong,span){color:var(--ink)}html[data-eh-theme="dark"] .bus-room-row small{color:var(--muted)}}

/* Administrative cards, user details and status badges follow the selected theme. */
@media screen{
html[data-eh-theme="dark"] #adminDialog.admin-view{background:var(--bg);color:var(--ink)}
html[data-eh-theme="dark"] :is(.admin-stat-card,.subscription-stat-grid .admin-stat-card,.admin-user-row,.admin-user-details,.backup-row){background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] .admin-stat-card{background:#22323d}
html[data-eh-theme="dark"] .admin-stat-card>strong{color:var(--ink)}
html[data-eh-theme="dark"] .admin-stat-card :is(span,small){color:var(--muted)}
html[data-eh-theme="dark"] .admin-user-summary{color:var(--ink)}
html[data-eh-theme="dark"] .admin-user-summary:hover{background:#283745}
html[data-eh-theme="dark"] .admin-user-summary::after{color:var(--muted)}
html[data-eh-theme="dark"] .admin-user-row :is(strong,.admin-user-company){color:var(--ink)}
html[data-eh-theme="dark"] .admin-user-row small{color:var(--muted)}
html[data-eh-theme="dark"] .admin-account-status.active{background:#263e2b;color:#b0e395}
html[data-eh-theme="dark"] .admin-account-status.trial{background:#44391f;color:#ffda8a}
html[data-eh-theme="dark"] .admin-account-status.inactive{background:#442b31;color:#ffb3b3}
html[data-eh-theme="dark"] .admin-panel .error{color:var(--red)}
}

.account-view .account-form .dialog-actions{background:var(--panel);color:var(--ink);border-color:var(--line)}

/* Wiring filters and mobile layer sheet use the editor palette. */
.cable-view-actions .button.secondary.active{background:#71be35;color:#15280e;border-color:#91d960;box-shadow:inset 0 0 0 1px #91d960}
html[data-eh-theme="dark"] .cable-view-actions .button.secondary.active{background:#36572a;color:#f0f9eb;border-color:#85c863;box-shadow:inset 0 0 0 1px #85c863}
html[data-eh-theme="dark"] .cable-view-actions .button.secondary.active:hover{background:#426c32}
html[data-eh-theme="dark"] body.mobile-layers-open .quote-panel .panel-head,
html[data-eh-theme="dark"] .advanced-layer-controls,
html[data-eh-theme="dark"] .advanced-layer-controls summary{background:#22323f;color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] body.mobile-layers-open .mobile-panel-close{background:#283745;color:var(--ink);border-color:var(--line)}
html[data-eh-theme="dark"] .advanced-layer-body{background:var(--panel)}

/* Keep editor utility panels dark; exported document surfaces stay unchanged. */
@media screen {
html[data-eh-theme="dark"] :is(.quote-panel>.panel-head,.mobile-tools-header,.rack-capacity-card,.rack-router-note,.session-recovery-card){background:#22323d;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .rack-capacity-card.shortage{background:#3c3321;color:#ffe3a4;border-color:#8a7044}
html[data-eh-theme="dark"] .rack-capacity-card header span{color:#a4da85}
html[data-eh-theme="dark"] .rack-capacity-card.shortage header span,html[data-eh-theme="dark"] .rack-check-issues{color:#ffe3a4}
html[data-eh-theme="dark"] .rack-capacity-number small{color:#bdccd8}
html[data-eh-theme="dark"] .rack-capacity-track{background:#354452}
html[data-eh-theme="dark"] dialog>.dialog-actions{background:#1b2732;color:#e6edf3;border-color:#435565}
html[data-eh-theme="dark"] .finance-rules-body :is(select,input[type="number"]){background:#111b24;color:#e6edf3;border-color:#435565}
@media(max-width:760px){html[data-eh-theme="dark"] dialog[open]:not(.eh-message-dialog)::backdrop{background:#10171e}}
}
