[data-theme-toggle]{background:#fff;color:#164d43;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font:inherit;font-weight:650;min-height:44px;cursor:pointer}
.auth-utility{flex-wrap:wrap}.workspace-tools [data-theme-toggle]{font-size:14px}
:root[data-theme="dark"]{color-scheme:dark;--green:#89d8b6;--green-2:#59be95;--green-soft:#1e4236;--bg:#101816;--card:#1b2923;--surface:#1b2923;--ink:#edf6ef;--text:#edf6ef;--muted:#b6cabd;--line:#40584b;--danger:#ffaaa3;--warning:#f1c377;--success:#91ddb0;--shadow:0 12px 36px #0004;--accent:#a9cb6c}
[data-theme="dark"] body{background:var(--bg);color:var(--text)}
[data-theme="dark"] :is(.auth-shell,.app-shell,.content){background:var(--bg);color:var(--text)}
[data-theme="dark"] :is(.auth-card,.auth-body,.card,.topbar,.side-nav,.mobile-nav,.ops-metric,.ops-hub-card,.workspace-help,.quick-start-card,.status-table,.table-wrap,.ops-dialog,.modal-card,.smart-select-menu,.smart-select-option,.list-item,.empty,.ux-dialog){background:var(--card);color:var(--text);border-color:var(--line)}
[data-theme="dark"] :is(.topbar,.side-nav,.mobile-nav,.ops-dialog,.ops-dialog header,.ops-dialog footer,.ux-dialog header,.ux-dialog footer,.ops-row,.ux-list-row,.list-item){border-color:var(--line)}
[data-theme="dark"] :is(.topbar .icon-btn,.password-wrap button,.btn-neutral,.auth-tab,.auth-tabs,.quick-step,.linked-sale-card,.work-table-card,.info-box,.metric,.banner,.ux-notice,.ux-reminder,.workspace-help,.smart-select-option:hover,.ops-hub-icon){background:#263a30;color:var(--text);border-color:var(--line)}
[data-theme="dark"] :is(input,select,textarea){background:#14231d;color:var(--text);border-color:#628371}
[data-theme="dark"] :is(input,select,textarea)::placeholder{color:#a9bbaf}
[data-theme="dark"] input[readonly]{background:#263a30;color:var(--muted)}
[data-theme="dark"] :is(.field label,.ops-hub-title,.ops-hub-copy strong,.page-head h2,.card h3,.ops-metric strong,.topbar-title strong){color:var(--text)}
[data-theme="dark"] :is(.ops-row small,.ops-hub-copy small,.ops-hub-arrow,.ops-asof,.page-head p,.field-hint,.card-subtitle,.topbar-title small,.ux-list-row small){color:var(--muted)}
[data-theme="dark"] .ops-metric span{color:var(--muted)}
[data-theme="dark"] :is(.btn-primary,#saleBtn){background:#238163;color:#fff}
[data-theme="dark"] :is(.btn-secondary,.nav-btn.active,.auth-tab.active,.mobile-sales-tabs button[aria-pressed="true"]){background:#285443;color:#eaffef;border-color:#4d9173}
[data-theme="dark"] :is(.btn-neutral,.topbar .icon-btn){background:#34483a;color:var(--text)}
[data-theme="dark"] .btn-danger{background:#4a2928;color:#ffd0ca}
[data-theme="dark"] :is(.nav-btn,.auth-tab){color:var(--muted)}
[data-theme="dark"] :is(.nav-btn.active,.auth-tab.active){color:#eaffef}
[data-theme="dark"] :is(table,.status-table table,td){background:var(--card);color:var(--text);border-color:var(--line)}
[data-theme="dark"] :is(.simple-details,.simple-details>summary,.status-table tr){background:var(--card);color:var(--text);border-color:var(--line)}
[data-theme="dark"] th{background:#293d32;color:#e0f2e5;border-color:var(--line)}
[data-theme="dark"] .status-table tr[data-sale-row]:hover td{background:#263a30}
[data-theme="dark"] :is(.ops-notice,.badge.warn){background:#453820;color:#ffe2a2;border-color:#897044}
[data-theme="dark"] :is(.badge.up,.badge.info,.badge.flat,.badge.down){background:#293d32;color:var(--text)}
[data-theme="dark"] :is(.ops-metric:first-child,.quick-start-card,.ux-notice,#ux-payment-summary,.ux-reminder,.mobile-history-help){background:#23392d;color:var(--text);border-color:var(--line)}
[data-theme="dark"] :is(.ops-hub-card:hover,.smart-select-option.active){background:#2a4738;color:var(--text)}
[data-theme="dark"] :is(.ops-dialog footer,.ux-dialog footer,#page-sales .mobile-sale-save-bar){background:#1b2923;color:var(--text);border-color:var(--line)}
[data-theme="dark"] :is(#page-sales .mobile-sales-tabs,.auth-tabs){background:#263a30;border-color:var(--line)}
[data-theme="dark"] :is(.modal,.preview-modal){color:var(--text)}
[data-theme="dark"] :is(.preview-card,.preview-actions,.preview-scroll){background:#1b2923;color:var(--text)}
[data-theme="dark"] :is(.preview-paper,.print-document,.print-page,.document-body){background:#fff;color:#172018}
[data-theme="dark"] :is([data-text-size],[data-theme-toggle]){background:#263a30;color:#d9f4e3;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-weight:650;min-height:44px}
[data-theme="dark"] .auth-brand{background:#174b3d}
[data-theme="dark"] .auth-utility a{color:#b6e6ca}
[data-theme="dark"] :is(.form-error,#ux-error){color:#ffaaa3}
@media print{:root[data-theme="dark"]{color-scheme:light;--bg:#fff;--card:#fff;--text:#172018;--muted:#59625b;--line:#d9e2dd}[data-theme="dark"] :is(.print-document,.print-page,.document-body){background:#fff!important;color:#172018!important}}
