@media screen {
/* Local light/dark/system preference; independent from the ten account palettes.
 * Exact-selector color overrides below are generated by tools/build_dark_css.py.
 * No inverse filters, image recoloring, layout substitutions, or business state. */
:root{--cm-bg:#f4f6fa;--cm-surface:#fff;--cm-surface-raised:#f1f4f9;--cm-surface-muted:#eef1f6;--cm-text:#20283f;--cm-muted:#57657b;--cm-border:#8796ac;--cm-accent:#4059e8;--cm-on-accent:#fff;--cm-focus:#4059e8;--cm-danger:#ac292f;--cm-success:#116949;--cm-warning:#875000;--cm-soft:#eef1ff}
html[data-color-mode="light"]{color-scheme:light}
html[data-color-mode="light"][data-theme]{--cm-accent:var(--blue);--cm-soft:var(--soft)}
html[data-color-mode="dark"]{color-scheme:dark;--cm-bg:#101722;--cm-surface:#182231;--cm-surface-raised:#233246;--cm-surface-muted:#1e2b3d;--cm-text:#eef3fa;--cm-muted:#b4c2d5;--cm-border:#71829a;--cm-accent:#a8baff;--cm-on-accent:#101722;--cm-focus:#b5c5ff;--cm-danger:#ffb3b8;--cm-success:#80e0b1;--cm-warning:#ffd08a;--cm-soft:#243149;--bg:var(--cm-bg)!important;--ink:var(--cm-text)!important;--muted:var(--cm-muted)!important;--line:var(--cm-border)!important;--soft:var(--cm-soft)!important;--blue:var(--cm-accent)!important;--blue-dark:var(--cm-focus)!important;--green:#80e0b1;--orange:#ffd08a;--purple:#d2b6ff;--shadow:0 8px 28px #0004;--panel:var(--cm-surface);--text:var(--cm-text);--border:var(--cm-border);--primary:var(--cm-accent);background:var(--cm-bg);color:var(--cm-text)}
html[data-color-mode="dark"][data-theme="jade"]{--cm-accent:#80e0b1;--cm-focus:#a4f0cd;--cm-soft:#173b32}
html[data-color-mode="dark"][data-theme="violet"]{--cm-accent:#d2b6ff;--cm-focus:#e3d1ff;--cm-soft:#342744}
html[data-color-mode="dark"][data-theme="teal"]{--cm-accent:#7cdae4;--cm-focus:#a1edf3;--cm-soft:#173940}
html[data-color-mode="dark"][data-theme="amber"]{--cm-accent:#f4ce82;--cm-focus:#ffe2ae;--cm-soft:#3d301c}
html[data-color-mode="dark"][data-theme="coral"]{--cm-accent:#ffb6a6;--cm-focus:#ffd1c6;--cm-soft:#442c2a}
html[data-color-mode="dark"][data-theme="rose"]{--cm-accent:#f7afd1;--cm-focus:#ffd0e5;--cm-soft:#40263a}
html[data-color-mode="dark"][data-theme="indigo"]{--cm-accent:#a9c6ff;--cm-focus:#cadbff;--cm-soft:#24364b}
html[data-color-mode="dark"][data-theme="graphite"]{--cm-accent:#c1cad6;--cm-focus:#e1e7ef;--cm-soft:#2d3441}
html[data-color-mode="dark"][data-theme="sand"]{--cm-accent:#dfbfa4;--cm-focus:#f7dcc4;--cm-soft:#3b3028}


/* Reviewed source: styles.css (color-only, exact selectors). */
html[data-color-mode="dark"] .sidebar{background:#20304b;color:var(--cm-text)}
html[data-color-mode="dark"] .brand small{color:var(--cm-muted)}
html[data-color-mode="dark"] .nav-item{color:var(--cm-muted)}
html[data-color-mode="dark"] .nav-item:hover,html[data-color-mode="dark"] .nav-item.active{background:#223149;color:var(--cm-text)}
html[data-color-mode="dark"] .nav-icon{color:var(--cm-muted)}
html[data-color-mode="dark"] .nav-item.active .nav-icon{color:#95b4f3}
html[data-color-mode="dark"] .nav-count{background:#233248;color:var(--cm-muted)}
html[data-color-mode="dark"] .sync-card{background:#21304a}
html[data-color-mode="dark"] .live-dot{box-shadow:0 0 0 5px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .sync-card small{color:var(--cm-muted)}
html[data-color-mode="dark"] .user{border-top:1px solid #4d6899}
html[data-color-mode="dark"] .user>span{background:var(--cm-surface-muted);color:#a3bae6}
html[data-color-mode="dark"] .user small{color:var(--cm-muted)}
html[data-color-mode="dark"] .user button{color:var(--cm-muted)}
html[data-color-mode="dark"] .topbar{background:var(--cm-surface)}
html[data-color-mode="dark"] .global-search,html[data-color-mode="dark"] .search-box{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .icon-button{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .primary-button{color:var(--cm-on-accent);box-shadow:0 6px 14px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .secondary-button{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .notice-bar{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .notice-bar strong{color:#aac0df}
html[data-color-mode="dark"] .notice-bar time{color:#aac0df}
html[data-color-mode="dark"] .stat-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .stat-icon.blue{background:var(--cm-surface)}
html[data-color-mode="dark"] .stat-icon.green{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .stat-icon.orange{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .stat-icon.purple{background:var(--cm-surface)}
html[data-color-mode="dark"] .trend{color:var(--cm-muted)}
html[data-color-mode="dark"] .panel{background:var(--cm-surface)}
html[data-color-mode="dark"] .panel-head{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .legend-item span:nth-child(2){color:var(--cm-muted)}
html[data-color-mode="dark"] .bar-track{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .soft-tag{background:var(--cm-surface)}
html[data-color-mode="dark"] .arrival-item{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .arrival-item time{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .search-box{background:var(--cm-surface)}
html[data-color-mode="dark"] .filter-group select,html[data-color-mode="dark"] .form-grid select{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] thead{background:var(--cm-surface)}
html[data-color-mode="dark"] th{color:var(--cm-muted)}
html[data-color-mode="dark"] td{border-top:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .person-cell strong{color:var(--cm-text)}
html[data-color-mode="dark"] .person-cell small{color:var(--cm-muted)}
html[data-color-mode="dark"] .status-on{color:#9aefd4;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .status-pending{color:#edc89c;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .status-arrange{color:#b3a6e3;background:var(--cm-surface)}
html[data-color-mode="dark"] .status-off{color:var(--cm-muted);background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .empty-state{color:var(--cm-muted)}
html[data-color-mode="dark"] .empty-state strong{color:var(--cm-muted)}
html[data-color-mode="dark"] .project-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .project-status span{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .project-status .on{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .log-item:not(:last-child):before{border-left:1px solid var(--cm-border)}
html[data-color-mode="dark"] .overlay{background:rgba(5,11,22,0.42)}
html[data-color-mode="dark"] .drawer{background:var(--cm-surface);box-shadow:-15px 0 40px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .close-button{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .cost-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .cost-grid small{color:var(--cm-muted)}
html[data-color-mode="dark"] .status-control>label{color:var(--cm-muted)}
html[data-color-mode="dark"] .status-option{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .modal{background:var(--cm-surface);box-shadow:0 25px 70px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .form-grid label{color:var(--cm-muted)}
html[data-color-mode="dark"] .form-grid input,html[data-color-mode="dark"] .form-grid select{background:var(--cm-surface)}
html[data-color-mode="dark"] .toast{background:#20304b;color:var(--cm-text)}
@media(max-width:780px){
html[data-color-mode="dark"] .mobile-card-meta{background:var(--cm-surface)}
html[data-color-mode="dark"] .mobile-card-meta small{color:var(--cm-muted)}
}
html[data-color-mode="dark"] .alert-count{background:#462e25;color:#f3b695}
html[data-color-mode="dark"] .finance-strip button{background:var(--cm-surface)}
html[data-color-mode="dark"] .finance-strip button:hover{border-color:var(--cm-border)}
html[data-color-mode="dark"] .finance-icon{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .finance-icon.loan{background:#3d2d1a;color:#f3c595}
html[data-color-mode="dark"] .finance-icon.money{background:var(--cm-surface)}
html[data-color-mode="dark"] .finance-icon.warn{background:var(--cm-surface);color:#e99fa5}
html[data-color-mode="dark"] .loan-stats article{background:var(--cm-surface)}
html[data-color-mode="dark"] .loan-stats .danger-stat{border-color:var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .privacy-chip,html[data-color-mode="dark"] .permission-note{color:#e8d5a1;background:var(--cm-surface-muted);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] #loanFilter{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .training-badge.yes{background:var(--cm-surface-muted);color:#9beed4}
html[data-color-mode="dark"] .training-badge.no{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .loan-badge.yes{background:var(--cm-surface-muted);color:#f2c896}
html[data-color-mode="dark"] .loan-badge.no{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .due-badge.due{background:var(--cm-surface);color:#e4a5a9}
html[data-color-mode="dark"] .due-badge.ok{background:var(--cm-surface);color:#a2b9e7}
html[data-color-mode="dark"] .account-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .account-avatar{background:var(--cm-surface)}
html[data-color-mode="dark"] .full-access{background:var(--cm-surface-muted);color:#9beed4}
html[data-color-mode="dark"] .account-permissions span,html[data-color-mode="dark"] .permission-tags span{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .permission-shield{background:var(--cm-surface)}
html[data-color-mode="dark"] .form-section-title{color:var(--cm-text)}
html[data-color-mode="dark"] .loan-detail{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .loan-detail>span{color:#e8c8a1}
html[data-color-mode="dark"] .owner-block{background:var(--cm-surface)}
html[data-color-mode="dark"] .owner-block span{color:var(--cm-muted)}
html[data-color-mode="dark"] .owner-block strong{color:#9eb8eb}
html[data-color-mode="dark"] .owner-block small{color:#aabedf}
html[data-color-mode="dark"] .field-muted{color:var(--cm-muted)}
html[data-color-mode="dark"] .benefit-fieldset legend{color:var(--cm-muted)}
html[data-color-mode="dark"] .benefit-options label{background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .benefit-chips span{background:var(--cm-surface);color:#a4bbe5}
html[data-color-mode="dark"] .factory-cell strong{color:var(--cm-text)}
html[data-color-mode="dark"] .emergency-card{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .emergency-card>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .emergency-phone{color:var(--cm-muted)}
html[data-color-mode="dark"] .month-picker input{background:var(--cm-surface)}
html[data-color-mode="dark"] .hours-stats article:nth-child(4){background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .hours-value{color:var(--cm-text)}
html[data-color-mode="dark"] .hours-value.overtime{color:#efc69a}
html[data-color-mode="dark"] .hours-missing{color:var(--cm-muted)}
html[data-color-mode="dark"] .hours-person{background:var(--cm-surface)}
html[data-color-mode="dark"] .hours-preview{background:var(--cm-surface)}
html[data-color-mode="dark"] .hours-preview span{color:var(--cm-muted)}
html[data-color-mode="dark"] .project-factories i{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .drawer-section-label{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-summary-card{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-summary-top span{color:var(--cm-muted)}
html[data-color-mode="dark"] .contact-private{color:#dfaaaf;background:var(--cm-surface)}
html[data-color-mode="dark"] .upload-box{border:1px dashed var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .upload-box>span{color:var(--cm-text)}
html[data-color-mode="dark"] .upload-note{color:var(--cm-muted);background:var(--cm-surface)}
html[data-color-mode="dark"] .document-item.missing{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .order-apply-summary p{color:var(--cm-muted)}
html[data-color-mode="dark"] .order-apply-summary p b{color:var(--cm-text)}
html[data-color-mode="dark"] .portal-link{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .tenant-actions select{background:var(--cm-surface)}
html[data-color-mode="dark"] .tenant-context{background:linear-gradient(90deg,var(--cm-surface),var(--cm-surface));border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .tenant-shield{background:#202f4b;color:var(--cm-text)}
html[data-color-mode="dark"] .tenant-isolated{color:#9dbcec;background:var(--cm-surface)}
html[data-color-mode="dark"] .tenant-warning{background:var(--cm-surface);color:#aac0df}
html[data-color-mode="dark"] .form-grid textarea{background:var(--cm-surface)}
html[data-color-mode="dark"] .form-grid input[readonly]{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .assignment-card>div{background:var(--cm-surface)}
html[data-color-mode="dark"] .assignment-card .portal-access-state strong{color:#a4e5d2}
html[data-color-mode="dark"] .order-stats article{background:var(--cm-surface)}
html[data-color-mode="dark"] .market-note{color:#a5bde3;background:var(--cm-surface)}
html[data-color-mode="dark"] .order-badge.open,html[data-color-mode="dark"] .funding-badge.review{background:var(--cm-surface-muted);color:#9cedd5}
html[data-color-mode="dark"] .order-badge.matched,html[data-color-mode="dark"] .funding-badge.approved{background:var(--cm-surface);color:#a2b9e7}
html[data-color-mode="dark"] .order-badge.closed,html[data-color-mode="dark"] .funding-badge.rejected{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .order-benefits span{color:#aabfdf;background:var(--cm-surface)}
html[data-color-mode="dark"] .order-actions button{background:var(--cm-surface);color:#a5bde3}
html[data-color-mode="dark"] .order-actions .take-order{color:var(--cm-on-accent)}
html[data-color-mode="dark"] .order-apply-summary{background:var(--cm-surface)}
html[data-color-mode="dark"] .application-item button{color:var(--cm-on-accent)}
html[data-color-mode="dark"] .application-item button:disabled{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .order-transition button{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .finance-compliance{background:var(--cm-surface-muted);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .finance-compliance>span{background:#4b3e20;color:var(--cm-text)}
html[data-color-mode="dark"] .finance-compliance p{color:#dfd0aa}
html[data-color-mode="dark"] .funding-stats article:last-child{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .consent-check{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .labor-funding-note{color:#dfd2aa;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .funding-progress-fields{background:var(--cm-surface)}
html[data-color-mode="dark"] .funding-amount{color:#a2b9e7}
html[data-color-mode="dark"] .lifecycle-pipeline button{background:var(--cm-surface)}
html[data-color-mode="dark"] .lifecycle-pipeline button:not(:last-child):after{color:var(--cm-muted)}
html[data-color-mode="dark"] .lifecycle-pipeline button:hover{border-color:var(--cm-border)}
html[data-color-mode="dark"] .lifecycle-pipeline span{color:#aabfdf}
html[data-color-mode="dark"] .student-stats article{background:var(--cm-surface)}
html[data-color-mode="dark"] .stage-badge{background:var(--cm-surface);color:#a2b9e7}
html[data-color-mode="dark"] #accountingView input,html[data-color-mode="dark"] #accountingView select,html[data-color-mode="dark"] #mediaView input,html[data-color-mode="dark"] #mediaView select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] #accountingView th,html[data-color-mode="dark"] #accountingView td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] #insightsView input,html[data-color-mode="dark"] #insightsView select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .chat-messages{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .chat-message{background:var(--cm-surface)}
html[data-color-mode="dark"] .chat-message.finance{border-left:3px solid #395aac}
html[data-color-mode="dark"] .chat-message.employee{border-left:3px solid #39ac95}
html[data-color-mode="dark"] .chat-message.system{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .chat-message small{color:var(--cm-muted)}
html[data-color-mode="dark"] .chat-compose textarea{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .chat-compose button{background:#202c4b;color:var(--cm-text)}
html[data-color-mode="dark"] .chat-suggestion{background:var(--cm-surface);border:1px solid var(--cm-border);color:#aabfdf}
html[data-color-mode="dark"] .chat-status{color:#a7e2d4}
html[data-color-mode="dark"] #globalManufacturingView select,html[data-color-mode="dark"] #globalManufacturingView input{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] #globalManufacturingView td,html[data-color-mode="dark"] #globalManufacturingView th{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .smart-shortcuts{border:1px solid var(--cm-border);background:linear-gradient(115deg,var(--cm-surface),var(--cm-surface))}
html[data-color-mode="dark"] .smart-shortcuts small{color:var(--cm-muted)}
html[data-color-mode="dark"] .shortcut-edit{color:#a5bae4}
html[data-color-mode="dark"] .shortcut-items button{background:var(--cm-surface);color:#aabedf;border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .shortcut-items button.pinned{color:#9eb9eb;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .shortcut-message{color:#e0aba8}
html[data-color-mode="dark"] .shortcut-items button:hover{border-color:var(--cm-border)}
html[data-color-mode="dark"] .student-followup-panel input,html[data-color-mode="dark"] .student-followup-panel select{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .followup-item{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .followup-item small{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-dialog .import-preview th,html[data-color-mode="dark"] .intel-dialog .import-preview td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] #dailyReportsView [data-teaching-warning]{color:#f3c995}
html[data-color-mode="dark"] .course-registration-dialog{background:var(--cm-surface);box-shadow:0 20px 70px rgba(0,0,0,0.224)}
html[data-color-mode="dark"] .course-registration-dialog::backdrop{background:rgba(5,11,22,0.48)}
html[data-color-mode="dark"] .course-registration-dialog input,html[data-color-mode="dark"] .course-registration-dialog select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .course-registration-dialog [data-course-error]{color:#e2aba7}
html[data-color-mode="dark"] .course-registration-dialog .intel-actions{background:var(--cm-surface)}
html[data-color-mode="dark"] .teaching-progress-panel .course-consult-roster>li{border-bottom:1px solid var(--border,var(--cm-border))}

/* Reviewed source: intelligence.css (color-only, exact selectors). */
html[data-color-mode="dark"] .intel-head p{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-notice{background:var(--cm-surface);border-left:3px solid #395fac;color:#aabfdf}
html[data-color-mode="dark"] .intel-warning{background:var(--cm-surface-muted);border-color:#ac8039;color:#ebcd9e}
html[data-color-mode="dark"] .intel-stat{background:var(--cm-surface)}
html[data-color-mode="dark"] .intel-stat span{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-filters input,html[data-color-mode="dark"] .intel-filters select,html[data-color-mode="dark"] .intel-dialog input,html[data-color-mode="dark"] .intel-dialog select,html[data-color-mode="dark"] .intel-dialog textarea{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .intel-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .intel-meta{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-tag{background:var(--cm-surface);color:#a2bce7}
html[data-color-mode="dark"] .intel-tag.gray{color:var(--cm-muted);background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .intel-tag.warn{color:#f3cd95;background:#3d2f1a}
html[data-color-mode="dark"] .intel-tag.good{color:#9aefcc;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .intel-card summary{color:#9ebdeb}
html[data-color-mode="dark"] .intel-boundary{color:var(--cm-text)}
html[data-color-mode="dark"] .intel-source{color:#9db9ec}
html[data-color-mode="dark"] .intel-source:hover{color:#9bb7ed}
html[data-color-mode="dark"] .intel-followup{background:var(--cm-surface)}
html[data-color-mode="dark"] .intel-empty{color:var(--cm-muted);background:var(--cm-surface);border:1px dashed var(--cm-border)}
html[data-color-mode="dark"] .intel-monitor{background:#20324b;color:var(--cm-text)}
html[data-color-mode="dark"] .intel-monitor p{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-error{color:#e9a0a0;background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .intel-dialog{border:1px solid var(--cm-border);box-shadow:0 25px 80px rgba(0,0,0,0.216)}
html[data-color-mode="dark"] .intel-dialog::backdrop{background:rgba(5,11,22,0.4)}
html[data-color-mode="dark"] .intelligence-view :focus-visible,html[data-color-mode="dark"] .intel-dialog :focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .intel-count{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-readonly{color:#efbd9a}
html[data-color-mode="dark"] .intel-overdue{color:#e7a3a1!important}
html[data-color-mode="dark"] .intel-run{background:var(--cm-surface)}

/* Reviewed source: workspace.css (color-only, exact selectors). */
html[data-color-mode="dark"] body{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .sidebar{background:var(--cm-surface)}
html[data-color-mode="dark"] .side-nav>.nav-item[data-view=workspace]{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .nav-item.active{background:var(--cm-surface-muted);color:#a6e3d8}
html[data-color-mode="dark"] .work-nav-group>summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .topbar{background:rgba(24,34,49,0.9294)}
html[data-color-mode="dark"] .primary-button{background:#204b44}
html[data-color-mode="dark"] .primary-button:hover{background:#204b44}
html[data-color-mode="dark"] .work-eyebrow{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-hero p{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-metrics button{background:var(--cm-surface)}
html[data-color-mode="dark"] .work-metrics button:first-child{background:#204b44;color:var(--cm-text);border-color:#40a696}
html[data-color-mode="dark"] .work-panel{background:var(--cm-surface)}
html[data-color-mode="dark"] .work-heading p{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-action,html[data-color-mode="dark"] .work-route{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .work-action:hover,html[data-color-mode="dark"] .work-route:hover{border-color:var(--cm-border);background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .work-action span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-filters input,html[data-color-mode="dark"] .work-filters select,html[data-color-mode="dark"] #workAlertFilter{background:var(--cm-surface)}
html[data-color-mode="dark"] .work-muted{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-task{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-task-top small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-task p,html[data-color-mode="dark"] .work-alert p{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-badge{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .work-badge.urgent{background:#3d2b1a;color:#e9c0a0}
html[data-color-mode="dark"] .work-alert{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-route span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-route small{color:#aadfd7}
html[data-color-mode="dark"] .work-search-row{border-bottom:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .work-search-row span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-search-record{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-search-record small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-search-record button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aadfd7}
html[data-color-mode="dark"] .work-history{border-left:2px solid var(--cm-border)}
html[data-color-mode="dark"] .sidebar .brand strong,html[data-color-mode="dark"] .sidebar .user strong{color:var(--cm-text)}
html[data-color-mode="dark"] .sidebar .nav-item{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar .nav-item.active{color:#a4e5d1}
html[data-color-mode="dark"] .workflow-navigation{background:var(--cm-surface)}
html[data-color-mode="dark"] .workflow-navigation button{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .workflow-navigation button.active{background:#204b44;color:var(--cm-text)}
html[data-color-mode="dark"] .workflow-navigation p{color:var(--cm-muted)}

/* Reviewed source: product-design.css (color-only, exact selectors). */
html[data-color-mode="dark"] button:focus-visible,html[data-color-mode="dark"] a:focus-visible,html[data-color-mode="dark"] summary:focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .sidebar{background:#222c49;color:var(--cm-text)}
html[data-color-mode="dark"] .brand-mark{box-shadow:0 5px 20px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .sidebar .brand strong{color:var(--cm-text)}
html[data-color-mode="dark"] .brand small{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar .nav-item{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar .nav-item:hover{color:var(--cm-text);background:#252e46}
html[data-color-mode="dark"] .sidebar .nav-item.active,html[data-color-mode="dark"] .side-nav>.nav-item[data-view=workspace].active{background:#20264b;color:var(--cm-text);box-shadow:0 5px 15px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .work-nav-group>summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .nav-count{background:rgba(24,34,49,0.0706);color:var(--cm-muted)}
html[data-color-mode="dark"] .nav-item.active .nav-count{background:rgba(24,34,49,0.1412);color:var(--cm-text)}
html[data-color-mode="dark"] .nav-launcher{color:var(--cm-muted);background:#232d48;border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .nav-launcher:after{color:var(--cm-muted)}
html[data-color-mode="dark"] .sync-card strong{color:var(--cm-muted)}
html[data-color-mode="dark"] .sync-card small{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar .user{border-color:var(--cm-border)}
html[data-color-mode="dark"] .sidebar .user strong{color:var(--cm-text)}
html[data-color-mode="dark"] .user button{color:var(--cm-muted)}
html[data-color-mode="dark"] .user>span{background:#262f45;color:var(--cm-text)}
html[data-color-mode="dark"] .topbar{background:rgba(24,34,49,0.9294)}
html[data-color-mode="dark"] .global-search{background:var(--cm-surface)}
html[data-color-mode="dark"] .primary-button:hover{box-shadow:0 4px 12px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .secondary-button{border-color:var(--cm-border);color:var(--cm-text);background:var(--cm-surface)}
html[data-color-mode="dark"] .secondary-button:hover{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .page-context{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-hero{background:var(--cm-surface-muted);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-hero:after{border:50px solid var(--cm-border)}
html[data-color-mode="dark"] .work-eyebrow{color:#aab4df}
html[data-color-mode="dark"] .work-hero h2{color:#a6b3e3}
html[data-color-mode="dark"] .work-hero p{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-hero .secondary-button{background:rgba(24,34,49,0.5608);border-color:var(--cm-border);color:#aab6df}
html[data-color-mode="dark"] .work-metrics button,html[data-color-mode="dark"] .work-metrics button:first-child{background:var(--cm-surface)}
html[data-color-mode="dark"] .work-metrics button:hover{border-color:var(--cm-border);box-shadow:0 5px 18px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .work-metrics span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-metrics small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-metrics button:nth-child(3) strong{color:#dfb5aa}
html[data-color-mode="dark"] .work-heading p{color:var(--cm-muted)}
html[data-color-mode="dark"] .business-lane{background:var(--cm-surface)}
html[data-color-mode="dark"] .lane-top{color:var(--cm-muted)}
html[data-color-mode="dark"] .lane-top span:first-child{color:#a0abe9}
html[data-color-mode="dark"] .business-lane:nth-child(2) .lane-top span:first-child{color:#a0e8dd}
html[data-color-mode="dark"] .business-lane:nth-child(3) .lane-top span:first-child{color:#caaadf}
html[data-color-mode="dark"] .business-lane p{color:var(--cm-muted)}
html[data-color-mode="dark"] .business-lane button{background:var(--cm-surface);color:#aab9df}
html[data-color-mode="dark"] .business-lane button:hover{background:var(--cm-surface-muted);color:#a2abe7}
html[data-color-mode="dark"] .business-lane button span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-more-actions summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-action,html[data-color-mode="dark"] .work-route{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .work-action:hover,html[data-color-mode="dark"] .work-route:hover{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .work-action span,html[data-color-mode="dark"] .work-route span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-home #workspaceView>.smart-shortcuts{background:var(--cm-surface)}
html[data-color-mode="dark"] .shortcut-items button{background:var(--cm-surface)!important;color:#aabadf!important}
html[data-color-mode="dark"] .work-task p,html[data-color-mode="dark"] .work-alert p,html[data-color-mode="dark"] .work-muted{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-badge{background:var(--cm-surface);color:#aab6df}
html[data-color-mode="dark"] .work-filters input,html[data-color-mode="dark"] .work-filters select,html[data-color-mode="dark"] #workAlertFilter{border-color:var(--cm-border)}
html[data-color-mode="dark"] .work-search-row{color:var(--cm-text)}
html[data-color-mode="dark"] .work-search-row:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] thead{background:var(--cm-surface)}
html[data-color-mode="dark"] th{color:var(--cm-muted)}
html[data-color-mode="dark"] td{color:var(--cm-text);border-color:var(--cm-border)}
html[data-color-mode="dark"] tbody tr:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] .intel-notice,html[data-color-mode="dark"] .notice-bar{background:var(--cm-surface);border-color:var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .workflow-navigation,html[data-color-mode="dark"] .training-navigation{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .workflow-navigation button,html[data-color-mode="dark"] .training-navigation button{color:var(--cm-muted)}
html[data-color-mode="dark"] .workflow-navigation button.active,html[data-color-mode="dark"] .training-navigation button.active{background:var(--cm-surface-muted);color:#a2aee7}
html[data-color-mode="dark"] .workflow-navigation p{color:var(--cm-muted)}
html[data-color-mode="dark"] .tenant-context{background:var(--cm-surface)}
html[data-color-mode="dark"] .intel-dialog{border:1px solid var(--cm-border);box-shadow:0 24px 90px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .intel-dialog::backdrop{background:rgba(5,11,22,0.3765)}
html[data-color-mode="dark"] .intel-dialog label,html[data-color-mode="dark"] .form-grid label{color:var(--cm-muted)}
html[data-color-mode="dark"] .intel-dialog input,html[data-color-mode="dark"] .intel-dialog select,html[data-color-mode="dark"] .intel-dialog textarea,html[data-color-mode="dark"] .form-grid input,html[data-color-mode="dark"] .form-grid select{border:1px solid var(--cm-border)}
@media(max-width:900px){
html[data-color-mode="dark"] .sidebar{box-shadow:12px 0 40px rgba(0,0,0,0.191)}
html[data-color-mode="dark"] .mobile-menu{color:var(--cm-muted)}
}
html[data-color-mode="dark"] .student-followup-panel input,html[data-color-mode="dark"] .student-followup-panel select{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .finance-navigation{border-bottom:1px solid var(--cm-border)!important}
html[data-color-mode="dark"] .finance-navigation button{color:var(--cm-muted)!important}
html[data-color-mode="dark"] .finance-navigation button.active{background:var(--cm-surface-muted)!important;color:#a2aee7!important}
html[data-color-mode="dark"] #dispatchView .dispatch-status-select{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aab8df}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel th{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel .roster-pending td{background:var(--cm-surface)}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] th:nth-last-child(3),html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] td:nth-last-child(3){background:var(--cm-surface);box-shadow:-4px 0 8px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] th:nth-last-child(2),html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] td:nth-last-child(2){background:var(--cm-surface)}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-filter]{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-mode button,html[data-color-mode="dark"] .daily-types button,html[data-color-mode="dark"] .daily-periods button{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-mode button.active{color:#a1ace8;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .daily-types button{background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-types button.active{background:#20274b;color:var(--cm-text);border-color:var(--cm-border)}
html[data-color-mode="dark"] .daily-entry-head p,html[data-color-mode="dark"] .daily-results-head p{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-entry label,html[data-color-mode="dark"] .daily-report-filters label{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-entry input,html[data-color-mode="dark"] .daily-entry textarea,html[data-color-mode="dark"] .daily-report-filters input,html[data-color-mode="dark"] .daily-report-filters select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-entry-status{background:var(--cm-surface);color:#aab8df}
html[data-color-mode="dark"] .daily-meta{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .daily-meta span{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-number span{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-form-footer p{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-periods{background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-periods button.active{background:var(--cm-surface);color:#9facea;box-shadow:0 2px 8px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .daily-report-controls [data-range]{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-kpis article{background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-kpis article>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-kpis small{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-results th{background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-results th:first-child,html[data-color-mode="dark"] .daily-results td:first-child{background:var(--cm-surface);box-shadow:2px 0 7px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .daily-results th:first-child{background:var(--cm-surface)}
html[data-color-mode="dark"] .daily-total td{background:var(--cm-surface)!important;color:#aab6df}
html[data-color-mode="dark"] .daily-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-rules{color:var(--cm-muted)}
html[data-color-mode="dark"] .daily-rules summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar-toggle{background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar-toggle:hover{background:var(--cm-surface);color:#95a3f3}
html[data-color-mode="dark"] .sidebar-toggle:focus-visible{outline:2px solid var(--cm-border)}
html[data-color-mode="dark"] .daily-form-toolbar{background:var(--soft,var(--cm-surface));box-shadow:0 4px 14px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .daily-clerk{border:1px solid var(--line,var(--cm-border));background:var(--soft,var(--cm-surface))}
html[data-color-mode="dark"] .daily-clerk-note{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .daily-clerk-values>div{background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .daily-clerk-values dt{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] #dailyReportsView .daily-help{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] #dailyReportsView .daily-help>div{background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] #dailyReportsView .daily-help>summary:focus-visible{outline:2px solid var(--blue,var(--cm-border))}
html[data-color-mode="dark"] .daily-month-dialog{border:1px solid var(--cm-border);background:var(--panel-bg,var(--cm-surface))}
html[data-color-mode="dark"] .daily-month-dialog::backdrop{background:rgba(5,11,22,0.4)}
html[data-color-mode="dark"] .daily-month-dialog input,html[data-color-mode="dark"] .daily-month-dialog textarea{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .daily-month-dialog [data-month-message]{color:#dfaab5}
html[data-color-mode="dark"] .daily-month-dialog section{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .daily-month-badge{background:var(--cm-surface-muted);color:#c5aadf}

/* Reviewed source: themes.css (color-only, exact selectors). */
html[data-color-mode="dark"][data-theme] .sidebar .brand-mark,html[data-color-mode="dark"][data-theme] .sidebar .nav-item.active,html[data-color-mode="dark"][data-theme] .side-nav>.nav-item[data-view=workspace].active,html[data-color-mode="dark"][data-theme] .primary-button,html[data-color-mode="dark"][data-theme] .daily-types button.active{color:var(--cm-on-accent)}
html[data-color-mode="dark"][data-theme] .sidebar .nav-item:hover{background:color-mix(in srgb,var(--theme-sidebar) 78%,var(--cm-surface))}
html[data-color-mode="dark"][data-theme] .sidebar .nav-launcher{background:color-mix(in srgb,var(--theme-sidebar) 85%,var(--cm-surface));border-color:var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"][data-theme] .sidebar .work-nav-group>summary{color:var(--cm-muted)}
html[data-color-mode="dark"][data-theme] .sidebar .nav-item{color:var(--cm-muted)}
html[data-color-mode="dark"] .sidebar .user .theme-open{color:var(--cm-muted)}
html[data-color-mode="dark"] .theme-open{background:var(--cm-surface)}
html[data-color-mode="dark"] .theme-dialog{background:var(--cm-surface);color:var(--cm-text);box-shadow:0 24px 90px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .theme-dialog::backdrop{background:rgba(5,11,22,0.3608)}
html[data-color-mode="dark"] .theme-heading p{color:var(--cm-muted)}
html[data-color-mode="dark"] .theme-heading button{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .theme-grid button{border:2px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .theme-footer span{color:var(--cm-muted)}
html[data-color-mode="dark"] .theme-footer button{color:var(--cm-on-accent)}
html[data-color-mode="dark"][data-theme] .welcome-card{color:var(--cm-text)}
html[data-color-mode="dark"][data-theme] .welcome-card p,html[data-color-mode="dark"][data-theme] .welcome-card .eyebrow{color:var(--cm-muted)}

/* Reviewed source: messenger-modern.css (color-only, exact selectors). */
html[data-color-mode="dark"] .company-chat-button.company-pet-button,html[data-color-mode="dark"][data-theme] .company-chat-button.company-pet-button{border:2px solid var(--cm-border);background:var(--soft,var(--cm-surface));color:var(--ink,var(--cm-text));box-shadow:0 4px 18px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .pet-unread{border:2px solid var(--cm-border);background:#4b2026;color:var(--cm-text)}
html[data-color-mode="dark"] .company-pet-switch{border:1px solid var(--line,var(--cm-border));background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .company-pet-button .pet-photo{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .company-chat.company-chat{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text);box-shadow:0 16px 60px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .company-chat button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aac1df}
html[data-color-mode="dark"] .company-chat input,html[data-color-mode="dark"] .company-chat textarea{border:1px solid var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] .company-chat .company-chat-header{border-bottom:1px solid var(--cm-border);background:linear-gradient(110deg,var(--soft,var(--cm-surface)),var(--cm-surface))}
html[data-color-mode="dark"] .chat-brand-dot{background:#204b3b;box-shadow:0 0 0 3px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .company-chat .company-chat-header h2{color:var(--cm-text)}
html[data-color-mode="dark"] .company-chat .chat-window-actions button{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .chat-window-actions button:hover{background:var(--cm-surface-muted);color:#aabedf}
html[data-color-mode="dark"] .company-chat-toolbar{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .company-chat .chat-create-actions button{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .company-chat .chat-create-actions .new-small-space{background:var(--soft,var(--cm-surface));color:var(--blue,#96a4f2)}
html[data-color-mode="dark"] .company-chat .company-chat-tools{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .company-chat-status{border-bottom:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .company-conversations{background:var(--cm-surface);border-right:1px solid var(--cm-border)}
html[data-color-mode="dark"] .company-chat .room-search{background:var(--cm-surface);border-color:var(--cm-border)}
html[data-color-mode="dark"] .company-chat .room-tabs button{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .room-tabs button.active{background:var(--soft,var(--cm-surface-muted));color:var(--blue,#96a4f2)}
html[data-color-mode="dark"] .company-chat .company-chat-rooms .conversation-item:hover{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .company-chat .company-chat-rooms .conversation-item.active{background:var(--soft,var(--cm-surface-muted))}
html[data-color-mode="dark"] .conversation-avatar{background:#1a273d;color:#aabedf}
html[data-color-mode="dark"] .conversation-copy strong{color:var(--cm-text)}
html[data-color-mode="dark"] .conversation-copy small{color:var(--cm-muted)}
html[data-color-mode="dark"] .conversation-meta time{color:var(--cm-muted)}
html[data-color-mode="dark"] .conversation-meta b{background:#4b2026;color:var(--cm-text)}
html[data-color-mode="dark"] .rooms-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-room-heading{border-bottom:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .room-title{color:var(--cm-text)}
html[data-color-mode="dark"] .room-members{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .company-chat-messages{background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat .company-message{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat .company-message.mine{background:var(--soft,var(--cm-surface-muted))}
html[data-color-mode="dark"] .company-chat .company-message small{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .company-message p{color:var(--cm-text)}
html[data-color-mode="dark"] .company-chat .company-message a{color:var(--blue,#96a4f2)}
html[data-color-mode="dark"] .message-receipt{color:var(--cm-muted)}
html[data-color-mode="dark"] .chat-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .chat-empty>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .chat-empty strong{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .company-composer{border-top:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat .composer-tools button{color:var(--cm-muted)}
html[data-color-mode="dark"] .composer-tools>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .company-composer textarea{background:var(--cm-surface)}
html[data-color-mode="dark"] .composer-send span{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .composer-send button,html[data-color-mode="dark"][data-theme] .company-chat .composer-send button{background:var(--blue,#20274b);color:var(--cm-on-accent)}
html[data-color-mode="dark"] .company-chat .attachment-status{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .emoji-tray{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .company-chat-picker{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text);box-shadow:0 18px 70px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .company-chat-picker::backdrop{background:rgba(5,11,22,0.3333)}
html[data-color-mode="dark"] .company-chat-picker p{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat-picker input:not([type=checkbox]){border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .company-chat-picker button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aac0df}
html[data-color-mode="dark"] .company-chat-picker .cancel{background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat-picker .candidates{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat-picker .candidates label{background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat-picker .create{background:var(--blue,#20274b);color:var(--cm-on-accent)}
html[data-color-mode="dark"] .company-chat-picker .error{color:#dfaab4}
html[data-color-mode="dark"] .company-pet-dialog{border:1px solid var(--line,var(--cm-border));background:var(--cm-surface);color:var(--cm-text);box-shadow:0 24px 80px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .company-pet-dialog::backdrop{background:rgba(5,11,22,0.3608)}
html[data-color-mode="dark"] .company-pet-dialog p{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-pet-dialog [data-close]{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .company-pet-grid button{border:2px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .company-pet-grid button[aria-pressed=true]{border-color:var(--blue,var(--cm-border));background:var(--soft,var(--cm-surface));color:var(--blue,#96a4f2)}
html[data-color-mode="dark"] .company-pet-dialog .pet-status{color:var(--blue,#96a4f2)}
html[data-color-mode="dark"] .pet-photo-tools{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .pet-photo-tools p{color:var(--cm-muted)}
html[data-color-mode="dark"] .pet-photo-tools button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aabedf}
html[data-color-mode="dark"] .company-pet-grid button:focus-visible,html[data-color-mode="dark"] .company-chat button:focus-visible,html[data-color-mode="dark"] .company-chat input:focus-visible,html[data-color-mode="dark"] .company-chat textarea:focus-visible,html[data-color-mode="dark"] .company-chat-picker button:focus-visible,html[data-color-mode="dark"] .company-pet-switch:focus-visible,html[data-color-mode="dark"] .company-chat-button:focus-visible{outline:2px solid var(--blue,var(--cm-border))}
html[data-color-mode="dark"] .company-chat select{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aac1df}
html[data-color-mode="dark"] .company-chat .self-presence{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .presence-filter-control{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .conversation-presence{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .conversation-presence[data-status=online]{color:#a5e4cc}
html[data-color-mode="dark"] .company-chat .conversation-presence[data-status=busy]{color:#e8c7a0}
html[data-color-mode="dark"] .company-chat .conversation-presence[data-status=away]{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .room-presence-summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .room-presence-details{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat .presence-details-note{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .chat-brand-dot[data-status=unknown]{background:var(--cm-surface-raised);box-shadow:0 0 0 3px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .company-chat .employee-notice-card{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .company-chat .employee-notice-card small{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-chat .employee-notice-limits{color:var(--cm-muted)}

/* Reviewed source: workflow-layout.css (color-only, exact selectors). */
html[data-color-mode="dark"] .clean-view .intel-head p{color:var(--cm-muted)}
html[data-color-mode="dark"] .clean-view input:not([type=checkbox]):not([type=radio]),html[data-color-mode="dark"] .clean-view select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .clean-view .intel-actions>button:not(.primary-button){background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .clean-view table th{color:var(--cm-muted);background:var(--cm-surface)}
html[data-color-mode="dark"] .clean-view table td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .clean-view table tbody tr:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] .clean-view .table-scroll{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .compact-help{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .compact-menu>summary{background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .compact-menu>summary:after{color:var(--cm-muted)}
html[data-color-mode="dark"] .compact-menu[open]>summary{border-color:var(--blue,var(--cm-border));color:var(--blue,#95a0f3)}
html[data-color-mode="dark"] .compact-menu-body{background:var(--cm-surface);border:1px solid var(--cm-border);box-shadow:0 12px 35px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .clean-view .compact-menu-body button{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .clean-view .compact-menu-body button:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] .compact-menu-body label{color:var(--cm-muted)}
html[data-color-mode="dark"] .compact-filter{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .compact-filter-state{color:var(--cm-muted)}
html[data-color-mode="dark"] .traffic-clean .resume-status{color:var(--cm-muted)}
html[data-color-mode="dark"] .clean-view>.intel-head{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .clean-view .compact-info-strip>.compact-help>summary:focus-visible{outline:2px solid var(--blue,var(--cm-border))}
html[data-color-mode="dark"] .clean-view .compact-info-strip>.compact-help[open]{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .clean-view .compact-data-status{color:var(--cm-muted)}
html[data-color-mode="dark"] .clean-view .compact-data-status.compact-data-warning{color:#e9a0a0}

/* Reviewed source: client-shell.css (color-only, exact selectors). */
html[data-color-mode="dark"] body.client-shell{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .client-shell #sidebar{background:var(--cm-surface-raised)!important;border-right:1px solid var(--cm-border)}
html[data-color-mode="dark"] .client-rail-bottom{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .client-icon{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-icon:hover,html[data-color-mode="dark"] .client-icon[aria-expanded=true]{color:var(--cm-text);background:var(--cm-surface-raised)}
html[data-color-mode="dark"] .client-icon.active{color:var(--cm-text);background:var(--cm-surface-raised)}
html[data-color-mode="dark"] .client-icon.active[data-client-home]{background:var(--cm-surface-raised)}
html[data-color-mode="dark"] .client-icon:focus-visible{outline:2px solid var(--cm-border)}
html[data-color-mode="dark"] .client-icon.client-account{background:var(--blue,#20274b);color:var(--cm-on-accent)}
html[data-color-mode="dark"] .client-connection{background:#204b3c}
html[data-color-mode="dark"] .client-connection.offline{background:#4b3b20}
html[data-color-mode="dark"] .client-tooltip{background:var(--cm-surface-raised);color:var(--cm-text);box-shadow:0 4px 20px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-flyout{background:var(--cm-surface);color:var(--cm-text);border:1px solid var(--cm-border);box-shadow:0 12px 45px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-flyout-close{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-flyout-close:hover{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .client-menu-item{color:var(--cm-text)}
html[data-color-mode="dark"] .client-menu-item svg{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-menu-item:hover,html[data-color-mode="dark"] .client-menu-item.active{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .client-flyout p{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-shell .topbar{background:var(--cm-surface)}
html[data-color-mode="dark"] .client-shell .topbar h1{color:var(--cm-text)}
html[data-color-mode="dark"] .client-shell .topbar .primary-button{background:var(--cm-surface);color:var(--cm-text);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .client-shell .topbar .icon-button{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-tabs{border-bottom:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .client-tab.active{color:var(--cm-text)}
html[data-color-mode="dark"] .client-tab>button{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-tab.active>button{color:var(--cm-text)}
html[data-color-mode="dark"] .client-tab-close:hover{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .client-shell .panel,html[data-color-mode="dark"] .client-shell .intel-card{background:var(--cm-surface)}
html[data-color-mode="dark"] .client-greeting>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-greeting h2{color:var(--cm-text)}
html[data-color-mode="dark"] .client-composer{background:var(--cm-surface);border:1px solid var(--cm-border);box-shadow:0 4px 22px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-composer:focus-within{border-color:var(--cm-border);box-shadow:0 5px 24px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-composer textarea{color:var(--cm-text)}
html[data-color-mode="dark"] .client-composer textarea::placeholder{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-add{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .client-composer-tools>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-composer-tools kbd{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-submit{background:var(--cm-surface-raised);color:var(--cm-text)}
html[data-color-mode="dark"] .client-submit:hover{background:var(--cm-surface-raised)}
html[data-color-mode="dark"] .client-suggestions .client-menu-item{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .client-suggestions .client-menu-item:hover{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .client-recent h3{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-recent .client-menu-item{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .client-today{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .client-today>summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-heading>div>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-report,html[data-color-mode="dark"] .client-summary-refresh{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-periods{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .client-summary-periods button{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-periods button[aria-pressed="true"]{background:var(--cm-surface);color:var(--cm-text);box-shadow:0 1px 4px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-work-summary button:focus-visible{outline:2px solid #704e97}
html[data-color-mode="dark"] .client-summary-range{color:var(--cm-text)}
html[data-color-mode="dark"] .client-summary-status,html[data-color-mode="dark"] .client-summary-note{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-card{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .client-summary-card h3{color:var(--cm-text)}
html[data-color-mode="dark"] .client-summary-meta{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-card dt{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-card dd{color:var(--cm-text)}
html[data-color-mode="dark"] .client-summary-picker>summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-popover{background:var(--cm-surface);border:1px solid var(--cm-border);box-shadow:0 8px 20px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .client-summary-default{background:var(--cm-surface);border-top:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-picker>summary:focus-visible,html[data-color-mode="dark"] .client-summary-options input:focus-visible{outline:2px solid #704e97}
html[data-color-mode="dark"] .client-summary-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-date-controls label{color:var(--cm-muted)}
html[data-color-mode="dark"] .client-summary-date{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .client-summary-date:focus-visible{outline:2px solid #704e97}
html[data-color-mode="dark"] .client-summary-today{color:var(--cm-muted)}

/* Reviewed source: password-ui.css (color-only, exact selectors). */
html[data-color-mode="dark"] .password-dialog{color:var(--cm-text);background:var(--cm-surface);box-shadow:0 24px 90px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .password-dialog::backdrop{background:rgba(5,11,22,0.4392)}
html[data-color-mode="dark"] .password-dialog label{color:var(--cm-muted)}
html[data-color-mode="dark"] .password-dialog input{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .password-dialog button,html[data-color-mode="dark"] .password-link{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aabfdf}
html[data-color-mode="dark"] .password-dialog [type=submit]{background:#202e4b;color:var(--cm-text);border-color:#395fac}
html[data-color-mode="dark"] .password-error{color:#e7a2ae}
html[data-color-mode="dark"] .password-sms-status{color:var(--cm-muted)}

/* Reviewed source: modal-close.css (color-only, exact selectors). */
html[data-color-mode="dark"] .gele-close-bar{background:var(--gele-dialog-background,var(--cm-surface));border-bottom:1px solid var(--line,var(--cm-border))}
html[data-color-mode="dark"] .gele-close-header{background:var(--gele-dialog-background,var(--cm-surface))}
html[data-color-mode="dark"] .gele-close-bar>.gele-close-control,html[data-color-mode="dark"] .gele-close-header>.gele-close-control{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aabfdf}
html[data-color-mode="dark"] .gele-close-bar>.gele-close-control:hover,html[data-color-mode="dark"] .gele-close-header>.gele-close-control:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] .gele-close-bar>.gele-close-control:focus-visible,html[data-color-mode="dark"] .gele-close-header>.gele-close-control:focus-visible{outline:3px solid #395fac}
html[data-color-mode="dark"] dialog.space-dialog .space-fields>fieldset[data-routing]{border:1px solid var(--line,var(--cm-border))}
html[data-color-mode="dark"] .modal .form-grid :is(input,select,textarea):focus-visible,html[data-color-mode="dark"] dialog:is(.intel-dialog,.flow-dialog,.sales-dialog,.agreement-dialog,.daily-month-dialog,.course-registration-dialog,.space-dialog,.pa-dialog,.work-reports-dialog,.interview-table-dialog) form :is(input,select,textarea,button):focus-visible{outline:3px solid var(--blue,#395fac)}
html[data-color-mode="dark"] .trial-attendance form.trial-form :is(input:not([type="checkbox"]),select){border:1px solid var(--line,var(--cm-border))}

/* Reviewed source: project-applications.css (color-only, exact selectors). */
html[data-color-mode="dark"] .pa-panel{background:var(--cm-surface)}
html[data-color-mode="dark"] .pa-button{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-button:hover{background:var(--cm-surface-muted);border-color:var(--cm-border)}
html[data-color-mode="dark"] .pa-button.pa-primary{background:var(--cm-surface-raised);border-color:var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-button.pa-primary:hover{background:var(--cm-surface-raised)}
html[data-color-mode="dark"] .pa-button:focus-visible,html[data-color-mode="dark"] .pa-dialog input:focus-visible,html[data-color-mode="dark"] .pa-dialog select:focus-visible,html[data-color-mode="dark"] .pa-dialog textarea:focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .pa-project{background:var(--cm-surface)}
html[data-color-mode="dark"] .pa-jobs{color:var(--cm-text)}
html[data-color-mode="dark"] .pa-badge{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-empty{border:1px dashed var(--cm-border)}
html[data-color-mode="dark"] .pa-status{color:var(--cm-text)}
html[data-color-mode="dark"] .pa-error{border:1px solid var(--cm-border);background:var(--cm-surface);color:#eb9d9d}
html[data-color-mode="dark"] .pa-dialog{border:1px solid var(--cm-border);background:var(--cm-surface);box-shadow:0 24px 100px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .pa-dialog::backdrop{background:rgba(5,11,22,0.502)}
html[data-color-mode="dark"] .pa-field input,html[data-color-mode="dark"] .pa-field select,html[data-color-mode="dark"] .pa-field textarea{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-field input[readonly]{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-field input[type="file"]::file-selector-button{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-filter select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .pa-filter select:focus-visible{outline:3px solid var(--cm-border)}

/* Reviewed source: company-context.css (color-only, exact selectors). */
html[data-color-mode="dark"] .company-selector select,html[data-color-mode="dark"] .company-switch select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .company-selector small{color:var(--cm-muted)}
html[data-color-mode="dark"] .company-expired{background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] .company-expired a{background:#20314b;color:var(--cm-text)}
html[data-color-mode="dark"] .registration-company{background:var(--cm-surface);border:1px solid var(--cm-border);color:#9fb2ea}

/* Reviewed source: personnel-detail.css (color-only, exact selectors). */
html[data-color-mode="dark"] .personnel-detail-dialog{border:1px solid var(--cm-border);color:var(--cm-text);background:var(--surface,var(--cm-surface))}
html[data-color-mode="dark"] .personnel-detail-dialog::backdrop{background:rgba(5,11,22,0.4667)}
html[data-color-mode="dark"] .personnel-detail-section{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .personnel-detail-section input:not([type=checkbox]),html[data-color-mode="dark"] .personnel-detail-section select{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .personnel-warning,html[data-color-mode="dark"] [data-section-result],html[data-color-mode="dark"] [data-bind-result]{color:#efc99a}
html[data-color-mode="dark"] [data-result]{color:#a7e2c2}

/* Reviewed source: agreement.css (color-only, exact selectors). */
html[data-color-mode="dark"] .agreement-heading p,html[data-color-mode="dark"] .agreement-help{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-filters input,html[data-color-mode="dark"] .agreement-filters select{border:1px solid var(--border,var(--cm-border));background:var(--surface,var(--cm-surface))}
html[data-color-mode="dark"] .agreement-panel [data-ag-status]{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-table{border:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .agreement-table th,html[data-color-mode="dark"] .agreement-table td{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .agreement-table th{background:var(--surface-soft,var(--cm-surface))}
html[data-color-mode="dark"] .agreement-table small,html[data-color-mode="dark"] .agreement-versions small{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-excerpt{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-empty{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-audit li span{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-dialog{border:1px solid var(--border,var(--cm-border));background:var(--surface,var(--cm-surface));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .agreement-dialog::backdrop{background:rgba(5,11,22,0.48)}
html[data-color-mode="dark"] .agreement-dialog-actions{border-top:1px solid var(--border,var(--cm-border));background:var(--surface,var(--cm-surface))}
html[data-color-mode="dark"] .agreement-dialog input,html[data-color-mode="dark"] .agreement-dialog textarea{border:1px solid var(--border,var(--cm-border));background:var(--surface,var(--cm-surface))}
html[data-color-mode="dark"] .agreement-error{color:#e7a7a2}
html[data-color-mode="dark"] .agreement-detail-meta{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-badge{background:var(--surface-soft,var(--cm-surface-muted));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .agreement-versions article{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .agreement-versions details{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .agreement-format-help{color:var(--muted,var(--cm-muted))}

/* Reviewed source: appointment.css (color-only, exact selectors). */
html[data-color-mode="dark"] .appointment-panel{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .appointment-home{border-left:4px solid var(--primary,#6b3da9)}
html[data-color-mode="dark"] .appointment-heading p,html[data-color-mode="dark"] .appointment-hint{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-panel [data-appointment-status]{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-list li{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .appointment-text-link{color:var(--primary,#c1a6e3)!important}
html[data-color-mode="dark"] .appointment-empty{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-state{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-tabs button{border:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .appointment-tabs button[aria-pressed="true"]{color:var(--primary,#c1a6e3);background:var(--soft,var(--cm-surface-muted));border-color:var(--primary,#6d39ac)}
html[data-color-mode="dark"] .appointment-dialog{border:1px solid var(--border,var(--cm-border));color:var(--text,var(--cm-text));background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .appointment-dialog::backdrop{background:rgba(5,11,22,0.45)}
html[data-color-mode="dark"] .appointment-dialog input,html[data-color-mode="dark"] .appointment-dialog select{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .appointment-dialog [data-appointment-error]{color:var(--danger,#e7a2b1)}
html[data-color-mode="dark"] .appointment-cancel{color:var(--danger,#e7a2b1)}
html[data-color-mode="dark"] .appointment-panel button:focus-visible,html[data-color-mode="dark"] .appointment-dialog :is(button,input,select):focus-visible{outline:3px solid var(--primary,#6b3da9)}
html[data-color-mode="dark"] .appointment-legacy-note summary{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-legacy-note textarea{background:var(--soft,var(--cm-surface))}
html[data-color-mode="dark"] .appointment-list-footer{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-ranking{border-left:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .appointment-rank-tabs button{border:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .appointment-rank-tabs button[aria-pressed="true"]{background:var(--soft,var(--cm-surface-muted));color:var(--primary,#c1a6e3);border-color:var(--primary,#6d39ac)}
html[data-color-mode="dark"] .appointment-rank-row{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .appointment-rank-number{color:var(--primary,#c1a6e3)}
html[data-color-mode="dark"] .appointment-rank-name small{color:var(--muted,var(--cm-muted))}
@media(max-width:760px){
html[data-color-mode="dark"] .appointment-ranking{border-top:1px solid var(--border,var(--cm-border))}
}
html[data-color-mode="dark"] .appointment-period-label{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-broadcast-tools select,html[data-color-mode="dark"] .appointment-broadcast-tools input{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .appointment-custom-range label{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-panel [data-appointment-management-pending]{color:var(--danger,#e7a2b1)}
html[data-color-mode="dark"] .appointment-row-action{border:1px solid var(--border,var(--cm-border));color:var(--primary,#c1a6e3)}
html[data-color-mode="dark"] .appointment-row-action.appointment-delete{color:var(--danger,#e7a2b1)}
html[data-color-mode="dark"] .appointment-dialog input[readonly]{background:var(--soft,var(--cm-surface));color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-existing summary{color:var(--primary,#c1a6e3)}
html[data-color-mode="dark"] .appointment-record-phone{color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .appointment-record-meta{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-record-status{color:var(--primary,#c1a6e3)}
html[data-color-mode="dark"] .appointment-record-clerk{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .appointment-period-controls .appointment-period-label{color:var(--cm-muted,var(--muted,var(--cm-muted)))}
html[data-color-mode="dark"] .appointment-broadcast-tools .appointment-period-choices button{border:1px solid var(--cm-border,var(--border,var(--cm-border)));background:var(--cm-surface,var(--panel,var(--cm-surface)));color:var(--cm-text,var(--text,var(--cm-text)))}
html[data-color-mode="dark"] .appointment-broadcast-tools .appointment-period-choices button[aria-pressed="true"]{background:var(--cm-accent,var(--primary,#34204b));border-color:var(--cm-accent,var(--primary,#6d39ac));color:var(--cm-on-accent,var(--cm-text))}
html[data-color-mode="dark"] .appointment-period-choices button:focus-visible{outline:3px solid var(--cm-focus,var(--primary,#6b3da9))}

/* Reviewed source: finance-roster.css (color-only, exact selectors). */
html[data-color-mode="dark"] #financeRosterPanel .roster-filters label{color:var(--cm-muted)}
html[data-color-mode="dark"] #dispatchView #financeRosterPanel .roster-filters [data-filter],html[data-color-mode="dark"] #financeRosterPanel .roster-filters [data-filter]{background:var(--cm-surface);border:1px solid var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] #financeRosterPanel .roster-more > summary{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-extra-filters{background:var(--cm-surface);border:1px solid var(--cm-border);box-shadow:0 14px 35px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] #financeRosterPanel [data-summary]{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-feedback{color:#aac2df}
html[data-color-mode="dark"] #financeRosterPanel .roster-table-scroll{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] #financeRosterPanel th,html[data-color-mode="dark"] #financeRosterPanel td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] #financeRosterPanel th{color:var(--cm-muted);background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel td{color:var(--cm-text);background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel [data-table] thead th,html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] thead th{background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel [data-table] :is(th,td).roster-row-action,html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] :is(th,td).roster-row-action{box-shadow:-5px 0 10px rgba(0,0,0,0.18);background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel [data-table] thead .roster-row-action,html[data-color-mode="dark"] #dispatchView #financeRosterPanel [data-table] thead .roster-row-action{background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel .roster-pending td,html[data-color-mode="dark"] #dispatchView #financeRosterPanel .roster-pending td{background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel tbody tr:hover td{background:var(--cm-surface)}
html[data-color-mode="dark"] #financeRosterPanel [data-column="sourceNo"]{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-note-edit-label{color:#a7c0e1}
html[data-color-mode="dark"] #financeRosterPanel [data-column="name"] .roster-cell-text{color:var(--cm-text)}
html[data-color-mode="dark"] #financeRosterPanel .roster-cell-secondary{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .dispatch-status-select,html[data-color-mode="dark"] #dispatchView #financeRosterPanel .dispatch-status-select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-removed{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-table-footer > p{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel [data-page]{color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-help{border-top:1px solid var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] #financeRosterPanel .roster-batch-bar{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] #financeRosterPanel .roster-danger{color:#e7a4a1;border-color:var(--cm-border)}
html[data-color-mode="dark"] #financeRosterPanel :focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-form-intro{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-edit-dialog legend{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-field-unit{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-profit{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-field-help{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-form-more{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-form-more summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-edit-dialog .roster-modal-footer{background:var(--cm-surface);border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] #accountingView .finance-navigation{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] #accountingView .finance-navigation button{color:var(--cm-muted)}
html[data-color-mode="dark"] #accountingView .finance-navigation button.active{background:#204b44;color:var(--cm-text)}
html[data-color-mode="dark"] #accountingView .finance-navigation p{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-paste{border:1px dashed var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-detail-dialog .roster-history{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .roster-history .roster-history-heading h3{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-history .roster-history-heading > span{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-meta{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-history .roster-history-actor small{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-meta time{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-action{color:#a9c1e0}
html[data-color-mode="dark"] .roster-history .roster-history-legacy{color:#dfc9aa}
html[data-color-mode="dark"] .roster-history [data-history-details] > summary{color:#a7c0e1}
html[data-color-mode="dark"] .roster-history .roster-history-entry{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .roster-history .roster-history-changes dt{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-changes dt small{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-before{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-after{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-history .roster-history-before:empty::before,html[data-color-mode="dark"] .roster-history .roster-history-after:empty::before{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-arrow{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-notice,html[data-color-mode="dark"] .roster-history .roster-history-missing,html[data-color-mode="dark"] .roster-history .roster-history-placeholder,html[data-color-mode="dark"] .roster-history [data-history-page-status]{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-history .roster-history-error{color:#e2aaa7}
html[data-color-mode="dark"] .roster-detail-dialog [name]:disabled{color:var(--cm-muted);background:var(--cm-surface)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-notice,html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-status{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-result{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-result h3{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-counts strong{color:var(--cm-text)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-warning{color:#eace9f}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-blocked{color:#e2aaa7}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-changes li{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-changes li > span{color:var(--cm-muted)}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-result summary{color:#a7c0e1}
html[data-color-mode="dark"] .roster-restore-dialog .roster-restore-confirm{color:var(--cm-muted)}

/* Reviewed source: flow.css (color-only, exact selectors). */
html[data-color-mode="dark"] .flow-home,html[data-color-mode="dark"] .flow-report{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .flow-caption,html[data-color-mode="dark"] .flow-note,html[data-color-mode="dark"] .flow-source{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .flow-toolbar button[aria-pressed=true]{background:#32204b;color:var(--cm-text)}
html[data-color-mode="dark"] .flow-link{color:#c0aadf}
html[data-color-mode="dark"] .flow-card{border:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .flow-card dt{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .flow-dialog{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface));color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .flow-dialog::backdrop{background:rgba(5,11,22,0.4667)}
html[data-color-mode="dark"] .flow-form-grid input,html[data-color-mode="dark"] .flow-form-grid select,html[data-color-mode="dark"] .flow-form-grid textarea,html[data-color-mode="dark"] .flow-toolbar input,html[data-color-mode="dark"] .flow-toolbar select{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .flow-detail>div{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .flow-detail dt{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .flow-table-scroll th,html[data-color-mode="dark"] .flow-table-scroll td{border-bottom:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .flow-table-scroll th{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .flow-empty{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .flow-message{color:#e6cca2}
html[data-color-mode="dark"] .flow-home button:focus-visible,html[data-color-mode="dark"] .flow-report button:focus-visible,html[data-color-mode="dark"] .flow-dialog button:focus-visible,html[data-color-mode="dark"] .flow-dialog input:focus-visible,html[data-color-mode="dark"] .flow-dialog select:focus-visible,html[data-color-mode="dark"] .flow-dialog textarea:focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .qr-intake-row{border:1px solid var(--border,var(--cm-border))}
html[data-color-mode="dark"] .qr-intake-person span{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .qr-intake-fields input:not([type=checkbox]),html[data-color-mode="dark"] .qr-intake-fields select,html[data-color-mode="dark"] .qr-intake-fields textarea{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .qr-intake-empty{color:var(--muted,var(--cm-muted))}

/* Reviewed source: interview-table.css (color-only, exact selectors). */
html[data-color-mode="dark"] .interview-table-panel{background:var(--panel-bg,var(--cm-surface));border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-caption{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-table-scroll{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-scroll:focus-visible{outline:2px solid var(--blue,#395fac)}
html[data-color-mode="dark"] .interview-table-scroll th,html[data-color-mode="dark"] .interview-table-scroll td{border-right:1px solid var(--cm-border);border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-panel .interview-table-scroll th{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .interview-table-scroll th.interview-name-cell,html[data-color-mode="dark"] .interview-table-scroll td.interview-name-cell{box-shadow:2px 0 4px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .interview-table-scroll td.interview-name-cell{background:var(--panel-bg,var(--cm-surface))}
html[data-color-mode="dark"] .interview-feedback-details summary:focus-visible,html[data-color-mode="dark"] .interview-feedback-history summary:focus-visible{outline:2px solid var(--blue,#395fac)}
html[data-color-mode="dark"] .interview-feedback-details[open]>.interview-feedback-text{border-top:1px solid #4f6a97}
html[data-color-mode="dark"] .interview-feedback-history>div{border-left:2px solid #4f6a97}
html[data-color-mode="dark"] .interview-table-scroll .mark-trial{background:#3d391a}
html[data-color-mode="dark"] .interview-table-scroll .mark-afternoon{background:#1a2a3d}
html[data-color-mode="dark"] .interview-table-scroll .mark-followup{background:#3d1a23}
html[data-color-mode="dark"] .interview-table-scroll .mark-rejected{background:#3d1a1a}
html[data-color-mode="dark"] .interview-table-dialog{border:1px solid var(--cm-border);color:var(--ink,var(--cm-text));background:var(--panel-bg,var(--cm-surface))}
html[data-color-mode="dark"] .interview-table-dialog::backdrop{background:rgba(5,11,22,0.5333)}
html[data-color-mode="dark"] .interview-table-grid label{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-table-grid input,html[data-color-mode="dark"] .interview-table-grid select,html[data-color-mode="dark"] .interview-table-grid textarea{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--ink,var(--cm-text))}
html[data-color-mode="dark"] .interview-table-grid input:focus-visible,html[data-color-mode="dark"] .interview-table-grid select:focus-visible,html[data-color-mode="dark"] .interview-table-grid textarea:focus-visible{outline:2px solid var(--blue,#395fac)}
html[data-color-mode="dark"] .interview-table-grid input[readonly],html[data-color-mode="dark"] .interview-table-grid select:disabled{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-table-dialog .interview-table-toolbar{background:var(--panel-bg,var(--cm-surface));border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-none,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-none{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-red,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-red{background:#3d1a1a;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-orange,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-orange{background:#3d2e1a;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-yellow,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-yellow{background:#3d391a;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-green,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-green{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-blue,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-blue{background:#1a2a3d;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-purple,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-purple{background:#291a3d;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-pink,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-pink{background:#3d1a23;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-panel .feedback-color-gray,html[data-color-mode="dark"] .interview-table-dialog .feedback-color-gray{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-dialog .mark-trial{background:#3d391a;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-dialog .mark-afternoon{background:#1a2a3d;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-dialog .mark-followup{background:#3d1a23;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-dialog .mark-rejected{background:#3d1a1a;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-color-picker{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-color-option{border:2px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-color-option[aria-pressed="true"]{border-color:#4f6a97;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.8)}
html[data-color-mode="dark"] .interview-color-option:focus-visible{outline:3px solid #3965ac}
html[data-color-mode="dark"] .interview-claim-queue{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .interview-claim-queue p{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-claim-row{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-registration-fields{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-registration-fields p{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-qr-dialog{border:1px solid var(--cm-border);color:#a6c3e2}
html[data-color-mode="dark"] .interview-qr-dialog::backdrop{background:rgba(5,11,22,0.5333)}
html[data-color-mode="dark"] .interview-qr-dialog canvas{background:var(--cm-surface)}
html[data-color-mode="dark"] .interview-table-panel button.interview-purge-action,html[data-color-mode="dark"] .interview-table-dialog button.interview-purge-action{color:#e8a0a0;background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-reassign-dialog input.interview-purge-confirmation{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-more>summary{border:1px solid var(--cm-border);background:var(--panel-bg,var(--cm-surface));color:var(--cm-text)}
html[data-color-mode="dark"] .interview-table-more[open]>summary{border-color:var(--blue,#395fac)}
html[data-color-mode="dark"] .interview-table-more-menu{border:1px solid var(--cm-border);background:var(--panel-bg,var(--cm-surface));box-shadow:0 8px 28px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .interview-batch-actions{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-table-more>summary:focus-visible,html[data-color-mode="dark"] .interview-compact-open:focus-visible,html[data-color-mode="dark"] .interview-compact-pick:focus-within{outline:2px solid var(--blue,#395fac)}
html[data-color-mode="dark"] .interview-detail-field{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-detail-field dt{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-detail-actions small{color:var(--cm-muted)}
@media(max-width:900px){
html[data-color-mode="dark"] .interview-mobile-select-all{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-compact-list{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-compact-row{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .interview-table-panel button.interview-compact-open{color:var(--ink,var(--cm-text))}
html[data-color-mode="dark"] .interview-table-panel button.interview-compact-open:hover{background:var(--cm-surface)}
html[data-color-mode="dark"] .interview-compact-position{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-compact-link{color:var(--blue,#96b4f3)}
html[data-color-mode="dark"] .interview-compact-meta{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-compact-badges{color:var(--cm-muted)}
html[data-color-mode="dark"] .interview-compact-list .mark-trial{background:#3d391a}
html[data-color-mode="dark"] .interview-compact-list .mark-afternoon{background:#1a2a3d}
html[data-color-mode="dark"] .interview-compact-list .mark-followup{background:#3d1a23}
html[data-color-mode="dark"] .interview-compact-list .mark-rejected{background:#3d1a1a}
}

/* Reviewed source: learning.css (color-only, exact selectors). */
html[data-color-mode="dark"] .learning-filters{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-filters input,html[data-color-mode="dark"] .learning-filters select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .learning-filters span{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-list{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-row{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-file{background:var(--cm-surface-muted);color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-content p{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-content small{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-state{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-actions a,html[data-color-mode="dark"] .learning-actions button{color:var(--cm-text);background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-actions a:hover,html[data-color-mode="dark"] .learning-actions button:hover{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .learning-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-dialog{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-dialog-head button{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .learning-dialog label{color:var(--cm-text)}
html[data-color-mode="dark"] .learning-dialog input,html[data-color-mode="dark"] .learning-dialog select,html[data-color-mode="dark"] .learning-dialog textarea{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .learning-dialog p{color:var(--cm-muted)}
html[data-color-mode="dark"] .learning-dialog .intel-error{color:#dfaaaa}
html[data-color-mode="dark"] .learning-dialog::backdrop{background:rgba(5,11,22,0.3333)}
html[data-color-mode="dark"] .staff-service-actions span,html[data-color-mode="dark"] .staff-service-actions small,html[data-color-mode="dark"] .staff-service-actions p{color:var(--cm-muted)}
html[data-color-mode="dark"] .staff-service-table{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .staff-service-table button{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .staff-service-dialog .staff-service-footer{background:var(--gele-dialog-background,var(--cm-surface));border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-preview-dialog{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .learning-preview-dialog::backdrop{background:rgba(5,11,22,0.4667)}
html[data-color-mode="dark"] .learning-preview-body p{color:var(--cm-muted)}

/* Reviewed source: personnel-history.css (color-only, exact selectors). */
html[data-color-mode="dark"] .ph-notice{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aacadf}
html[data-color-mode="dark"] .ph-help{color:var(--cm-muted)}
html[data-color-mode="dark"] .ph-table{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ph-table th,html[data-color-mode="dark"] .ph-table td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ph-table thead th{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .ph-table .ph-group th{background:var(--cm-surface-muted);color:var(--cm-text)}
html[data-color-mode="dark"] .ph-table tr.ph-unknown td{background:#3d351a}
html[data-color-mode="dark"] .ph-table tr.ph-invalid td{background:var(--cm-surface)}
html[data-color-mode="dark"] .ph-table tr.ph-excluded td{color:var(--cm-muted)}
html[data-color-mode="dark"] .ph-table tr.ph-excluded .ph-error{color:#e9a59f}
html[data-color-mode="dark"] .ph-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .ph-error{color:#e9a59f}
html[data-color-mode="dark"] .ph-warning{color:#f3d795}
html[data-color-mode="dark"] .ph-dialog{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .ph-dialog::backdrop{background:rgba(5,11,22,0.48)}
html[data-color-mode="dark"] .ph-local-badge{background:var(--cm-surface-muted);color:#aadfc5}
html[data-color-mode="dark"] .ph-dialog fieldset{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ph-map-sheet{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ph-dialog select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .ph-review{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .ph-dialog-actions{border-top:1px solid var(--cm-border);background:var(--cm-surface)}

/* Reviewed source: prejob-training.css (color-only, exact selectors). */
html[data-color-mode="dark"] .prejob-root{color:var(--text,var(--cm-text))}
html[data-color-mode="dark"] .prejob-panel{border:1px solid var(--border,var(--cm-border));background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .prejob-heading p,html[data-color-mode="dark"] .prejob-detail-heading p{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .prejob-status{color:#a7c5e1}
html[data-color-mode="dark"] .prejob-note{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .prejob-root select{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .prejob-root button:focus-visible,html[data-color-mode="dark"] .prejob-root select:focus-visible,html[data-color-mode="dark"] .prejob-root summary:focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-root .primary-button,html[data-color-mode="dark"] .prejob-root .secondary-button{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-root .primary-button{color:var(--cm-text);background:#20364b;border-color:#3973ac}
html[data-color-mode="dark"] .prejob-root .secondary-button{color:#a9c4e0;background:var(--cm-surface)}
html[data-color-mode="dark"] .prejob-record{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aac4df}
html[data-color-mode="dark"] .prejob-record.is-selected{border-color:#3f71a7;background:var(--cm-surface-muted);box-shadow:inset 3px 0 rgba(0,0,0,0.8)}
html[data-color-mode="dark"] .prejob-count{color:#aadfd0}
html[data-color-mode="dark"] .prejob-detail{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-detail-heading>strong{color:#aadfd0}
html[data-color-mode="dark"] .prejob-day{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .prejob-day.is-learned{background:var(--cm-surface-muted);border-color:var(--cm-border);color:#a9e0c3}
html[data-color-mode="dark"] .prejob-history{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-history summary{color:#aac5df}
html[data-color-mode="dark"] .prejob-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .prejob-conflict,html[data-color-mode="dark"] .prejob-recovery{background:var(--cm-surface-muted);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-list-hint{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .prejob-record>span:nth-child(2){color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] dialog.prejob-progress-dialog{border:1px solid var(--cm-border);background:var(--panel,var(--cm-surface));color:var(--text,var(--cm-text));box-shadow:0 20px 70px rgba(0,0,0,0.224)}
html[data-color-mode="dark"] .prejob-progress-dialog::backdrop{background:rgba(5,11,22,0.48)}
html[data-color-mode="dark"] .prejob-dialog-heading{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-dialog-footer{border-top:1px solid var(--cm-border);background:var(--panel,var(--cm-surface))}
html[data-color-mode="dark"] .prejob-roster-tabs button[aria-pressed="true"]{background:var(--cm-surface-muted);border-color:#4472a2;color:#9bc4ee}
html[data-color-mode="dark"] .prejob-table-scroll{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-roster th{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .prejob-roster th,html[data-color-mode="dark"] .prejob-roster td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .prejob-roster th button{color:#a9c3e0}
html[data-color-mode="dark"] .prejob-roster .prejob-record{color:#9bc7ee}
html[data-color-mode="dark"] .prejob-day-entry{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .prejob-attendance button,html[data-color-mode="dark"] .prejob-attendance span{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .prejob-attendance .is-marked{background:#3d301a;border-color:#ac8339;color:#efd19a}
html[data-color-mode="dark"] .prejob-help>p{color:var(--muted,var(--cm-muted))}
html[data-color-mode="dark"] .prejob-manual-form{border:1px solid var(--border-color, var(--cm-border))}

/* Reviewed source: registered-user-management.css (color-only, exact selectors). */
html[data-color-mode="dark"] .ru-filters,html[data-color-mode="dark"] .ru-action,html[data-color-mode="dark"] .ru-results{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .ru-table th,html[data-color-mode="dark"] .ru-table td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .registered-users button,html[data-color-mode="dark"] .ru-dialog button{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .registered-users input,html[data-color-mode="dark"] .registered-users select,html[data-color-mode="dark"] .registered-users textarea{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ru-dialog{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .ru-dialog::backdrop{background:rgba(5,11,22,0.4)}
html[data-color-mode="dark"] .registered-users [role=status]{color:#eab09e}
html[data-color-mode="dark"] .employee-notices article{border-bottom:1px solid var(--cm-border)}

/* Reviewed source: sales-learning.css (color-only, exact selectors). */
html[data-color-mode="dark"] .sales-learning{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-learning .case-card{border:1px solid var(--cm-border);background:var(--surface,var(--cm-surface))}
html[data-color-mode="dark"] .case-dialog{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .case-dialog .case-file{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .case-dialog .case-private{border:1px dashed var(--cm-border)}
html[data-color-mode="dark"] .case-dialog .case-warning{background:#3d331a}
html[data-color-mode="dark"] .case-dialog [data-review-confirm]{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-learning .case-card small{color:var(--cm-muted)}

/* Reviewed source: sales.css (color-only, exact selectors). */
html[data-color-mode="dark"] .sales-home{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-heading h3{color:var(--cm-text)}
html[data-color-mode="dark"] .sales-caption,html[data-color-mode="dark"] .sales-note{color:var(--cm-muted)}
html[data-color-mode="dark"] .sales-note{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .sales-kpi{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .sales-kpi>span{color:var(--cm-muted)}
html[data-color-mode="dark"] .sales-kpi>strong,html[data-color-mode="dark"] .sales-number{color:var(--cm-text)}
html[data-color-mode="dark"] .sales-number,html[data-color-mode="dark"] .sales-link{color:#caaadf}
html[data-color-mode="dark"] .sales-number{color:var(--cm-text)}
html[data-color-mode="dark"] .sales-report{background:var(--cm-surface);border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-filters label,html[data-color-mode="dark"] .sales-form-grid label{color:var(--cm-muted)}
html[data-color-mode="dark"] .sales-filters input,html[data-color-mode="dark"] .sales-filters select,html[data-color-mode="dark"] .sales-form-grid input,html[data-color-mode="dark"] .sales-form-grid select,html[data-color-mode="dark"] .sales-form-grid textarea,html[data-color-mode="dark"] .sales-dialog>form>label textarea{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .sales-tabs button[aria-pressed="true"]{background:var(--cm-surface-muted);border-color:var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] .sales-period-summary{color:var(--cm-text)}
html[data-color-mode="dark"] .sales-table th{background:var(--cm-surface)}
html[data-color-mode="dark"] .sales-empty{border:1px dashed var(--cm-border);color:var(--cm-muted)}
html[data-color-mode="dark"] .sales-message{color:#e9c2a0}
html[data-color-mode="dark"] .sales-dialog{border:1px solid var(--cm-border);box-shadow:0 18px 70px rgba(0,0,0,0.18);color:var(--cm-text)}
html[data-color-mode="dark"] .sales-dialog::backdrop{background:rgba(5,11,22,0.3961)}
html[data-color-mode="dark"] .sales-dialog .sales-heading{background:var(--cm-surface)}
html[data-color-mode="dark"] .sales-detail>div{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-detail dt{color:var(--cm-muted)}
html[data-color-mode="dark"] .sales-dialog button:focus-visible,html[data-color-mode="dark"] .sales-report button:focus-visible,html[data-color-mode="dark"] .sales-home button:focus-visible{outline:2px solid var(--cm-border)}
html[data-color-mode="dark"] .sales-dialog input:focus-visible,html[data-color-mode="dark"] .sales-dialog select:focus-visible,html[data-color-mode="dark"] .sales-dialog textarea:focus-visible{outline:2px solid var(--cm-border)}

/* Reviewed source: small-space.css (color-only, exact selectors). */
html[data-color-mode="dark"] .space-tabs{background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .space-tabs button{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-tabs button.active{background:var(--cm-surface);color:var(--theme-accent,#95a0f3);box-shadow:0 2px 8px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .space-summary>div{background:var(--cm-surface);border:1px solid var(--line,var(--cm-border))}
html[data-color-mode="dark"] .space-summary small{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-banner{background:linear-gradient(120deg,var(--cm-surface-muted),var(--cm-surface-muted))}
html[data-color-mode="dark"] .space-banner p{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-pane button,html[data-color-mode="dark"] .space-form button,html[data-color-mode="dark"] .space-register-link,html[data-color-mode="dark"] .space-panel button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aabedf}
html[data-color-mode="dark"] .space-pane .space-actions button,html[data-color-mode="dark"] .space-form [type=submit],html[data-color-mode="dark"] .space-job button{background:var(--theme-accent,#20254b);color:var(--cm-text)}
html[data-color-mode="dark"] .space-heading p,html[data-color-mode="dark"] .space-empty{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-row{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .space-row p{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-row small{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-status{background:var(--cm-surface);color:#aab5df}
html[data-color-mode="dark"] .space-job{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .space-job p{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-identity span{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-identity strong{color:#aac1df}
html[data-color-mode="dark"] .space-form label{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-form input,html[data-color-mode="dark"] .space-form select,html[data-color-mode="dark"] .space-panel input,html[data-color-mode="dark"] .space-panel select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .space-dialog{box-shadow:0 24px 90px rgba(0,0,0,0.18);color:var(--cm-text)}
html[data-color-mode="dark"] .space-dialog::backdrop{background:rgba(5,11,22,0.4392)}
html[data-color-mode="dark"] .space-error{color:#e2a6ae}
html[data-color-mode="dark"] .space-panel td,html[data-color-mode="dark"] .space-panel th{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .space-panel .space-notice{background:var(--cm-surface);color:#aabfdf}
html[data-color-mode="dark"] .space-detail dt{color:var(--cm-muted)}
html[data-color-mode="dark"] body:has(#spaceRegister) .portal-header{background:var(--cm-surface)}
html[data-color-mode="dark"] .space-pane .section-card>p{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-finance-chat{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .receiving-fields{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])){background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .portal-header{background:var(--cm-surface)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .portal-brand{color:var(--cm-text)}
html[data-color-mode="dark"] body.space-access-page #loginView .login-copy h1{color:var(--cm-text)}
html[data-color-mode="dark"] body.space-access-page #loginView .login-copy p{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView .login-card-head p{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView .login-card label{color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .login-card input:not([type=checkbox]):not([type=hidden]){border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .login-card input::placeholder{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView .login-card input:focus{border-color:var(--cm-border);box-shadow:0 0 0 2px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] #loginView .login-button{border:1px solid var(--cm-border);background:var(--cm-surface-raised);color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .login-button:hover:not(:disabled){background:var(--cm-surface-raised);border-color:var(--cm-border)}
html[data-color-mode="dark"] #loginView #sendSms,html[data-color-mode="dark"] #loginView [data-register-sms]{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] #loginView #sendSms:hover:not(:disabled),html[data-color-mode="dark"] #loginView [data-register-sms]:hover:not(:disabled){background:var(--cm-surface)}
html[data-color-mode="dark"] #loginView .password-sms-status{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView .password-link,html[data-color-mode="dark"] #loginView .space-register-link,html[data-color-mode="dark"] #loginView [data-back-login]{color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .password-link:hover,html[data-color-mode="dark"] #loginView .space-register-link:hover,html[data-color-mode="dark"] #loginView [data-back-login]:hover{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .space-register-link{color:var(--cm-text)}
html[data-color-mode="dark"] #loginView .login-help{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView #spaceRegister>.eyebrow{color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView #spaceRegister>h2{color:var(--cm-text)}
html[data-color-mode="dark"] #loginView #spaceRegister>p:not([role=status]){color:var(--cm-muted)}
html[data-color-mode="dark"] #loginView #spaceRegister .space-check{color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden]))>footer{color:var(--cm-muted)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog{border:1px solid var(--cm-border);color:var(--cm-text);box-shadow:0 24px 90px rgba(0,0,0,0.18);background:var(--cm-surface)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog::backdrop{background:rgba(5,11,22,0.2706)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog p{color:var(--cm-muted)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog label{color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog input{border:1px solid var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog button{border-color:var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog button:hover:not(:disabled){background:var(--cm-surface)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog [type=submit]{background:var(--cm-surface-raised);border-color:var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog [type=submit]:hover:not(:disabled){background:var(--cm-surface-raised)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog .password-error{color:#e7a2ae}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) .password-dialog .gele-close-bar{border-color:var(--cm-border)}
html[data-color-mode="dark"] body:has(#loginView:not([hidden])) :is(button,a,input):focus-visible{outline:2px solid var(--cm-border)}
html[data-color-mode="dark"] .space-interview-entry{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .space-interview-entry p{color:var(--cm-muted)}
html[data-color-mode="dark"] .space-interview-entry button,html[data-color-mode="dark"] .space-interview-link{border:1px solid var(--cm-border);color:#9fc4ea;background:var(--cm-surface)}
html[data-color-mode="dark"] .space-interview-link{background:#20354b;color:var(--cm-text)}
html[data-color-mode="dark"] .interview-qr-dialog{border:1px solid var(--cm-border);color:#a6c3e2}
html[data-color-mode="dark"] .interview-qr-dialog::backdrop{background:rgba(5,11,22,0.5333)}
html[data-color-mode="dark"] .interview-qr-dialog canvas{background:var(--cm-surface)}
html[data-color-mode="dark"] .interview-qr-actions button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#9fc4ea}

/* Reviewed source: social.css (color-only, exact selectors). */
html[data-color-mode="dark"] .social-dialog{border:1px solid var(--cm-border);color:#a7c9e2;background:var(--cm-surface);box-shadow:0 24px 80px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .social-dialog::backdrop{background:rgba(5,11,22,0.4)}
html[data-color-mode="dark"] .social-dialog button{border:1px solid var(--cm-border);background:#203f4b;color:var(--cm-text)}
html[data-color-mode="dark"] .social-dialog button:focus-visible,html[data-color-mode="dark"] .social-dialog input:focus-visible,html[data-color-mode="dark"] .social-dialog textarea:focus-visible{outline:3px solid var(--cm-border)}
html[data-color-mode="dark"] .social-dialog .social-secondary{background:var(--cm-surface);color:#a8cce1}
html[data-color-mode="dark"] .social-dialog .social-tabs button{background:var(--cm-surface);color:#aac5df}
html[data-color-mode="dark"] .social-dialog .social-tabs button[aria-pressed=true]{background:#203e4b;color:var(--cm-text)}
html[data-color-mode="dark"] .social-dialog .social-audience,html[data-color-mode="dark"] .social-dialog .social-consent{color:var(--cm-muted)}
html[data-color-mode="dark"] .social-dialog .social-status,html[data-color-mode="dark"] .social-dialog .social-error{color:#e6ada3}
html[data-color-mode="dark"] .social-dialog .social-card,html[data-color-mode="dark"] .social-dialog .social-compose,html[data-color-mode="dark"] .social-dialog .social-profile-form{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .social-dialog .social-initial{background:var(--cm-surface-muted);color:#a4d3e5}
html[data-color-mode="dark"] .social-dialog .social-identity time{color:var(--cm-muted)}
html[data-color-mode="dark"] .social-dialog textarea,html[data-color-mode="dark"] .social-dialog input{border:1px solid var(--cm-border);background:var(--cm-surface);color:#a6c9e3}
html[data-color-mode="dark"] .social-dialog .social-comments{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .social-dialog .social-comment{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .social-dialog .social-confirm{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .social-dialog .social-empty{color:var(--cm-muted)}

/* Reviewed source: trial-attendance.css (color-only, exact selectors). */
html[data-color-mode="dark"] .trial-toolbar [aria-pressed=true]{outline:2px solid var(--accent,var(--cm-border))}
html[data-color-mode="dark"] .trial-form{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .trial-dialog{border:1px solid var(--cm-border);box-shadow:0 18px 60px rgba(0,0,0,0.18);background:var(--panel-bg,var(--cm-surface))}
html[data-color-mode="dark"] .trial-dialog::backdrop{background:rgba(5,11,22,0.4)}

/* Reviewed source: work-reports.css (color-only, exact selectors). */
html[data-color-mode="dark"] .work-reports-muted,html[data-color-mode="dark"] .work-reports-empty,html[data-color-mode="dark"] .work-reports-summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-error{color:#e4a4af}
html[data-color-mode="dark"] .work-reports-panel button,html[data-color-mode="dark"] .work-reports-dialog button,html[data-color-mode="dark"] .work-reports-self-project button{border:1px solid var(--cm-border);background:var(--cm-surface);color:#aabfdf}
html[data-color-mode="dark"] .work-reports-panel .work-reports-primary,html[data-color-mode="dark"] .work-reports-dialog .work-reports-primary,html[data-color-mode="dark"] .work-reports-dialog .primary-button{background:var(--theme-accent,#20254b);color:var(--cm-text)}
html[data-color-mode="dark"] .work-reports-self-project{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-self-project small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-row{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-row p{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-row small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-status{color:#aabadf;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .work-reports-status.is-accounted{color:#a6e3ce;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .work-reports-status.is-returned{color:#ebb89e;background:#3d2c1a}
html[data-color-mode="dark"] .work-reports-status.is-pending{color:#aabadf;background:var(--cm-surface-muted)}
html[data-color-mode="dark"] .work-reports-dialog{background:var(--cm-surface);color:var(--cm-text);box-shadow:0 24px 90px rgba(0,0,0,0.18)}
html[data-color-mode="dark"] .work-reports-dialog::backdrop{background:rgba(5,11,22,0.4392)}
html[data-color-mode="dark"] .work-reports-form label{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-form input:not([type=checkbox]),html[data-color-mode="dark"] .work-reports-form select,html[data-color-mode="dark"] .work-reports-form textarea{border:1px solid var(--cm-border);background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .work-reports-form input[readonly]{background:var(--cm-surface);color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-shift{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-total{color:#aabcdf}
html[data-color-mode="dark"] .work-reports-warning{border:1px solid var(--cm-border);background:var(--cm-surface-muted);color:#ebca9e}
html[data-color-mode="dark"] .work-reports-preview{background:var(--cm-surface);color:#aabddf}
html[data-color-mode="dark"] .work-reports-detail dt{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-history{border-top:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-history summary{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-filters input,html[data-color-mode="dark"] .work-reports-filters select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .work-reports-table th,html[data-color-mode="dark"] .work-reports-table td{border-bottom:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-table th{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-table td small{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-summary>strong{color:#aabfdf}
html[data-color-mode="dark"] .work-reports-period label{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-period input,html[data-color-mode="dark"] .work-reports-period select{border:1px solid var(--cm-border);background:var(--cm-surface)}
html[data-color-mode="dark"] .work-reports-total-main span{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-total-main strong{color:#aabfdf}
html[data-color-mode="dark"] .work-reports-total-detail{color:var(--cm-muted)}
html[data-color-mode="dark"] .work-reports-review{border:1px solid var(--cm-border)}
html[data-color-mode="dark"] .work-reports-review legend{color:var(--cm-muted)}
/* Shared controls: native select provides keyboard and platform accessibility. */
html .color-mode-control{display:flex;align-items:center;gap:7px;position:relative;max-width:100%;color:var(--cm-text);font:inherit}
html .color-mode-control>label{display:block;flex:none;font-size:12px;white-space:nowrap;color:var(--cm-muted);margin:0}
html .color-mode-control>select{width:auto;min-width:112px;min-height:44px;max-width:100%;padding:8px 28px 8px 10px;border:1px solid var(--cm-border);border-radius:9px;background:var(--cm-surface);color:var(--cm-text);font:inherit;font-size:13px;cursor:pointer;margin:0;opacity:1}
html .color-mode-control>select:hover{background:var(--cm-surface-raised)}
html .color-mode-control>select:focus-visible{outline:3px solid var(--cm-focus);outline-offset:3px}
html .color-mode-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html .company-expired .color-mode-control{justify-content:center;margin:24px auto 0}
html[data-color-mode="dark"] body{background:var(--cm-bg);color:var(--cm-text)}
html[data-color-mode="dark"] :is(input,select,textarea){color-scheme:dark;color:var(--cm-text);background-color:var(--cm-surface);border-color:var(--cm-border);accent-color:var(--cm-accent)}
html[data-color-mode="dark"] :is(input,textarea)::placeholder{color:var(--cm-muted);opacity:1}
html[data-color-mode="dark"] :is(input,select,textarea):disabled{color:var(--cm-muted);background-color:var(--cm-surface-muted);opacity:1;cursor:not-allowed}
html[data-color-mode="dark"] :is(input,textarea):read-only{background-color:var(--cm-surface-muted)}
html[data-color-mode="dark"] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--cm-focus);outline-offset:3px}
html[data-color-mode="dark"] dialog{background:var(--cm-surface);color:var(--cm-text);border-color:var(--cm-border)}
html[data-color-mode="dark"] dialog::backdrop{background:#050b16b8}
html[data-color-mode="dark"] :is(.primary-button,.theme-footer button,.company-chat-button,.daily-types button.active,.portal-brand>span),html[data-color-mode="dark"][data-theme] :is(.primary-button,.daily-types button.active),html[data-color-mode="dark"] .sidebar .nav-item.active,html[data-color-mode="dark"] .side-nav>.nav-item[data-view=workspace].active{background:var(--cm-accent);border-color:var(--cm-accent);color:var(--cm-on-accent)}
html[data-color-mode="dark"] :is(.primary-button,.theme-footer button,.company-chat-button):hover,html[data-color-mode="dark"][data-theme] .primary-button:hover{background:var(--cm-focus);color:var(--cm-on-accent)}
html[data-color-mode="dark"] .sidebar .nav-item.active :is(span,.nav-icon,.nav-count){color:var(--cm-on-accent)}
html[data-color-mode="dark"] .theme-grid button{background:var(--cm-surface);border-color:var(--cm-border);color:var(--cm-text)}
html[data-color-mode="dark"] .theme-grid button[aria-pressed=true]{border-color:var(--cm-accent);color:var(--cm-accent)}
html[data-color-mode="dark"] .theme-preview{color-scheme:light}
html[data-color-mode="dark"] .theme-preview em{background:#fff;border-color:#e5e8ef}
html[data-color-mode="dark"] :is(th,td){border-color:var(--cm-border)}
html[data-color-mode="dark"] #financeTemplatesPanel [data-table] thead tr[style]{background:var(--cm-surface-raised)!important}
html[data-color-mode="dark"] .donut:before{background:var(--cm-surface)}
html[data-color-mode="dark"] .donut{color:var(--cm-text)}
html[data-color-mode="dark"] :is(.status-on,.green-text){color:var(--cm-success)}
html[data-color-mode="dark"] :is(.status-pending,.tenant-warning){color:var(--cm-warning)}
html[data-color-mode="dark"] :is(.danger,.error,.error-text,.form-error){color:var(--cm-danger)}
html[data-color-mode="dark"] .company-expired{background:var(--cm-surface);color:var(--cm-text)}
html[data-color-mode="dark"] .company-expired a{color:var(--cm-accent)}
@media(max-width:650px){html .color-mode-control{gap:5px}html .color-mode-control>label{font-size:11px}html .color-mode-control>select{min-width:100px;padding-left:8px;font-size:12px}html body[data-color-page="admin"] .top-actions{gap:6px}}
/* All visual overrides are screen-only; original print styles remain intact. */

html[data-color-mode="dark"][data-theme] :is(.sidebar,.welcome-card){background:var(--theme-sidebar)}
html[data-color-mode="dark"] .interview-qr-dialog canvas{background:#fff}

}
@media print{[data-color-mode-control],.color-mode-control{display:none!important}}
