/* Lumen: тёмная тема для «жёстких» цветов style.css.
 * Файл сгенерирован скриптом scripts/gen-lumen-dark.js из public/style.css — не редактируйте вручную;
 * правки в тёмной теме для отдельных экранов делайте в lumen.css. */
:where(:root[data-theme="dark"]) body{background:var(--pop)}
:where(:root[data-theme="dark"]) .sidebar{background:var(--pop)}
:where(:root[data-theme="dark"]) .api-status{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .status-indicator{background:var(--gray-400)}
:where(:root[data-theme="dark"]) .status-ok .status-indicator{background:var(--success)}
:where(:root[data-theme="dark"]) .status-error .status-indicator{background:var(--danger)}
:where(:root[data-theme="dark"]) .content-header{background:var(--pop)}
:where(:root[data-theme="dark"]) .readonly-banner{background:color-mix(in srgb,#fef3c7 17%,var(--pop));color:color-mix(in srgb,#92400e 42%,#fff);border-bottom:1px solid color-mix(in srgb,#fcd34d 38%,var(--pop))}
:where(:root[data-theme="dark"]) .btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .btn-primary{background:var(--primary)}
:where(:root[data-theme="dark"]) .btn-primary:hover{background:var(--primary-dark)}
:where(:root[data-theme="dark"]) .btn-secondary{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn-secondary:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .btn-danger{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn-danger:hover{background:var(--danger)}
:where(:root[data-theme="dark"]) .btn-info{background:#0369a1}
:where(:root[data-theme="dark"]) .btn-info:hover{background:#075985}
:where(:root[data-theme="dark"]) .btn-icon-only{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn-icon-only:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .btn-icon-only.btn-delete:hover{background:var(--danger-light)}
:where(:root[data-theme="dark"]) .btn-icon-only.btn-edit:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .btn-outline{background:transparent}
:where(:root[data-theme="dark"]) .btn-outline:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .btn-outline.btn-delete:hover{background:var(--danger-light)}
:where(:root[data-theme="dark"]) table{background:var(--pop)}
:where(:root[data-theme="dark"]) .form-group input,:where(:root[data-theme="dark"]) .form-group select,:where(:root[data-theme="dark"]) .form-group textarea{background:var(--pop)}
:where(:root[data-theme="dark"]) .form-info{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .teacher-select{background:var(--pop)}
:where(:root[data-theme="dark"]) .pending-badge{background:var(--warning)}
:where(:root[data-theme="dark"]) .load-subgroup{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .subject-summary{border-top:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .teacher-row:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-toggle-text{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .select-level-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .select-level-btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .select-level-btn.active{background:var(--primary)}
:where(:root[data-theme="dark"]) .vanga-extra-input{border:1px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .mass-assign-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .mass-assign-btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .mass-assign-btn.active{background:var(--primary)}
:where(:root[data-theme="dark"]) .modal-overlay{background:rgba(0, 0, 0, 0.5)}
:where(:root[data-theme="dark"]) .modal-container{background:var(--pop)}
:where(:root[data-theme="dark"]) .mass-level-group{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .mass-class-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .mass-class-btn:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .mass-class-btn.selected{background:var(--primary);color:var(--on-brand, #fff)}
:where(:root[data-theme="dark"]) .subject-tag{background:var(--primary-light);border:1px solid rgba(67, 97, 238, 0.2)}
:where(:root[data-theme="dark"]) .modal-close{background:none}
:where(:root[data-theme="dark"]) .modal-footer{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .toast{background:var(--pop)}
:where(:root[data-theme="dark"]) .toast-close{background:transparent}
:where(:root[data-theme="dark"]) .toast-center{background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-bar-btn{border:1px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-btn:hover{background:var(--gray-100);border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-btn.active{background:#c2410c;border-color:#c2410c}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-btn.active:hover{background:#ea580c}
:where(:root[data-theme="dark"]) .filter-bar-btn.reset-btn{background:var(--pop);border-color:var(--danger)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-group-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-group-btn:hover{background:var(--gray-100);border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-group-btn.active{background:#c2410c;border-color:#c2410c}
:where(:root[data-theme="dark"]) .filter-bar-btn.filter-group-btn.active:hover{background:#ea580c}
:where(:root[data-theme="dark"]) .filter-bar-select{border:1px solid var(--gray-300);background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-bar-select:hover{border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .filter-bar-btn.reset-btn:hover{background:var(--danger)}
:where(:root[data-theme="dark"]) .filter-group input[type="text"],:where(:root[data-theme="dark"]) .filter-group select{background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-section{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .filter-section:nth-child(even){background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-option-btn{border:1px solid var(--gray-300);background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-option-btn:hover{border-color:var(--primary);background:var(--primary-light)}
:where(:root[data-theme="dark"]) .filter-option-btn.selected{background:var(--success-dark);color:white;border-color:var(--success-dark)}
:where(:root[data-theme="dark"]) .filter-option-btn.selected:hover{background:#065f46;border-color:#065f46}
:where(:root[data-theme="dark"]) .toggle-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .toggle-btn.active{background:var(--primary)}
:where(:root[data-theme="dark"]) .toggle-btn:hover:not(.active){background:var(--gray-100)}
:where(:root[data-theme="dark"]) .vacant-badge{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff);border:1px solid color-mix(in srgb,#ffeeba 38%,var(--pop))}
:where(:root[data-theme="dark"]) .cabinet-line{background:var(--pop)}
:where(:root[data-theme="dark"]) .card-vacant{border-left:3px solid color-mix(in srgb,#ffc107 38%,var(--pop))}
:where(:root[data-theme="dark"]) .vacant-row{color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .vacant-separator{color:var(--danger);border-top:1px dashed var(--danger)}
:where(:root[data-theme="dark"]) .summary-building{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-level-header{border-bottom:2px solid var(--primary-light)}
:where(:root[data-theme="dark"]) .homeroom-shift-block{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .curriculum-card{background:var(--pop);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .curriculum-card-header{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-bottom:2px solid color-mix(in srgb,#b8c5e0 38%,var(--pop))}
:where(:root[data-theme="dark"]) .curriculum-card-header:hover{background:color-mix(in srgb,var(--ink) 11%,var(--pop))}
:where(:root[data-theme="dark"]) .stat-badge{background:var(--pop);border:1px solid var(--line)}
:where(:root[data-theme="dark"]) .stat-badge:hover{background:var(--pop)}
:where(:root[data-theme="dark"]) .stat-value{color:var(--gray-800)}
:where(:root[data-theme="dark"]) .stat-label{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .curriculum-card-body{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-legend{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-actions{border-bottom:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .empty-state{background:var(--pop)}
:where(:root[data-theme="dark"]) .empty-subjects{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .btn-ghost{background:transparent}
:where(:root[data-theme="dark"]) .btn-ghost:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .btn-ghost-danger:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) #class-name:focus{background-color:var(--pop)}
:where(:root[data-theme="dark"]) .duplicate-error.error{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop));color:var(--danger)}
:where(:root[data-theme="dark"]) .duplicate-error.warning{background-color:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .btn-primary:disabled:hover{background:var(--primary)}
:where(:root[data-theme="dark"]) .form-group input.duplicate-input{background-color:var(--pop)}
:where(:root[data-theme="dark"]) .split-badge{color:var(--warning)}
:where(:root[data-theme="dark"]) .split-yes{color:var(--success)}
:where(:root[data-theme="dark"]) .split-no{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .total-hours-badge{color:var(--primary-dark)}
:where(:root[data-theme="dark"]) .hours-badge{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .subjects-table tbody tr:hover td{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .curriculum-summary{background:var(--gray-50);border-left:4px solid var(--primary)}
:where(:root[data-theme="dark"]) .curriculum-grand-total{background:var(--pop);border-left:4px solid var(--primary)}
:where(:root[data-theme="dark"]) .vanga-class-row{background:var(--pop);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .vanga-tag-continued{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff);border:1px solid color-mix(in srgb,#c3e6cb 38%,var(--pop))}
:where(:root[data-theme="dark"]) .vanga-tag-dropped{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff);border:1px solid color-mix(in srgb,#ffe69c 38%,var(--pop))}
:where(:root[data-theme="dark"]) .vanga-tag-unassigned{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,var(--ink) 88%,var(--pop));border:1px solid var(--line)}
:where(:root[data-theme="dark"]) .vanga-cp-summary{border-left:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .vanga-cp-col{border-left:1px solid var(--gray-200);color:var(--gray-600)}
:where(:root[data-theme="dark"]) .vanga-cp-col strong{color:color-mix(in srgb,#7c3aed 42%,#fff)}
:where(:root[data-theme="dark"]) .vanga-arrow{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .vanga-cur{color:var(--ink)}
:where(:root[data-theme="dark"]) .vanga-cur strong{color:var(--ink)}
:where(:root[data-theme="dark"]) .summary-value.highlight{background:rgba(255, 255, 255, 0.2)}
:where(:root[data-theme="dark"]) .homeroom-stats .stat-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .homeroom-student-stats{background:var(--pop)}
:where(:root[data-theme="dark"]) .homeroom-student-toggle{background:none}
:where(:root[data-theme="dark"]) .homeroom-student-toggle:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .subject-assign-stats .stat-sub{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .load-cell-unassigned{color:var(--warning-dark)}
:where(:root[data-theme="dark"]) .hw-card{background:var(--pop, var(--pop))}
:where(:root[data-theme="dark"]) .hw-card--none{background:var(--pop, var(--pop))}
:where(:root[data-theme="dark"]) .hw-card--1{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .hw-card--2{background:color-mix(in srgb,#fff3cd 17%,var(--pop))}
:where(:root[data-theme="dark"]) .hw-card--3plus{background:color-mix(in srgb,#f8d7da 17%,var(--pop))}
:where(:root[data-theme="dark"]) .hw-card .hw-card-footer{background:var(--pop)}
:where(:root[data-theme="dark"]) .homeroom-legend{background:var(--pop)}
:where(:root[data-theme="dark"]) .legend-color.gray{background-color:var(--pop)}
:where(:root[data-theme="dark"]) .legend-color.green{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .legend-color.blue{background-color:color-mix(in srgb,#cce5ff 17%,var(--pop))}
:where(:root[data-theme="dark"]) .legend-color.orange{background-color:color-mix(in srgb,#ffe5b4 17%,var(--pop))}
:where(:root[data-theme="dark"]) .legend-color-none{background:var(--gray-400)}
:where(:root[data-theme="dark"]) .legend-color-green{background:var(--success)}
:where(:root[data-theme="dark"]) .legend-color-orange{background:var(--warning)}
:where(:root[data-theme="dark"]) .legend-color-red{background:var(--danger)}
:where(:root[data-theme="dark"]) .subject-group{border:1px solid var(--gray-200);border-left:4px solid var(--primary)}
:where(:root[data-theme="dark"]) .subject-group--kelective{border-left-color:color-mix(in srgb,#f59e0b 38%,var(--pop))}
:where(:root[data-theme="dark"]) .subject-group--elective{border-left-color:#10b981}
:where(:root[data-theme="dark"]) .subject-group--extracurricular{border-left-color:#8b5cf6}
:where(:root[data-theme="dark"]) .subject-group-title{background:var(--gray-50);border-bottom:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .subject-section{background:var(--pop)}
:where(:root[data-theme="dark"]) .subject-header{border-bottom:2px solid var(--primary-light)}
:where(:root[data-theme="dark"]) .level-title{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .class-card{background:var(--gray-100);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .class-card.status-none{background:var(--gray-200);border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .class-card.status-partial{background:color-mix(in srgb,#fff3cd 17%,var(--pop));border-color:color-mix(in srgb,#ffc107 38%,var(--pop))}
:where(:root[data-theme="dark"]) .class-card.status-full{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:#28a745}
:where(:root[data-theme="dark"]) .class-card.status-split-2{background:color-mix(in srgb,#cce5ff 17%,var(--pop));border-color:#007bff}
:where(:root[data-theme="dark"]) .class-card.status-split-3plus{background:color-mix(in srgb,#f8d7da 17%,var(--pop));border-color:#dc3545}
:where(:root[data-theme="dark"]) .hours-progress-bar{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .hours-progress-fill{background:var(--primary)}
:where(:root[data-theme="dark"]) .hours-progress-fill.over{background:var(--danger)}
:where(:root[data-theme="dark"]) .group-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .group-btn.active{background:var(--success)}
:where(:root[data-theme="dark"]) .assignment-row-top select{background:var(--pop)}
:where(:root[data-theme="dark"]) .hours-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .hours-btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .vacant-toggle-label{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .vacant-slider{background:var(--gray-300)}
:where(:root[data-theme="dark"]) .vacant-slider::after{background:var(--pop)}
:where(:root[data-theme="dark"]) .vacant-toggle-label input:checked + .vacant-slider{background:var(--warning)}
:where(:root[data-theme="dark"]) .btn-delete-text{background:none}
:where(:root[data-theme="dark"]) .btn-delete-text:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .subject-stats{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .stat-item{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .analysis-filters{background:var(--pop)}
:where(:root[data-theme="dark"]) .analysis-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .analysis-card-header{background:linear-gradient(135deg, #667eea 0%, #764ba2 100%)}
:where(:root[data-theme="dark"]) .analysis-level{background:var(--pop)}
:where(:root[data-theme="dark"]) .level-header{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .class-assign-card{background:var(--pop);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .class-assign-card:hover{border-color:var(--primary-light)}
:where(:root[data-theme="dark"]) .class-assign-header{background:linear-gradient(135deg, #667eea 0%, #764ba2 100%)}
:where(:root[data-theme="dark"]) .class-assign-total{background:rgba(255, 255, 255, 0.2)}
:where(:root[data-theme="dark"]) .subject-group-title{border-left:4px solid var(--primary)}
:where(:root[data-theme="dark"]) .class-assign-subject-card{background:var(--gray-100);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .class-assign-subject-card.status-unassigned{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:color-mix(in srgb,#fecaca 38%,var(--pop))}
:where(:root[data-theme="dark"]) .class-assign-subject-card.status-partial{background:color-mix(in srgb,#fff3cd 17%,var(--pop));border-color:color-mix(in srgb,#ffe69c 38%,var(--pop))}
:where(:root[data-theme="dark"]) .class-assign-subject-card.status-assigned{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:color-mix(in srgb,#c3e6cb 38%,var(--pop))}
:where(:root[data-theme="dark"]) .hours-note{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .subject-area-card{background:var(--pop);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .subject-area-card-header{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-bottom:2px solid color-mix(in srgb,#b8c5e0 38%,var(--pop))}
:where(:root[data-theme="dark"]) .subject-area-card-header:hover{background:color-mix(in srgb,var(--ink) 11%,var(--pop))}
:where(:root[data-theme="dark"]) .subject-area-card-body{background:var(--pop)}
:where(:root[data-theme="dark"]) .subject-area-actions{border-bottom:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .area-description{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .empty-detail{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .area-tile{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .area-tile:hover{background:var(--pop)}
:where(:root[data-theme="dark"]) .subject-type-badge{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .split-yes{background:color-mix(in srgb,#d1fae5 17%,var(--pop));color:color-mix(in srgb,#065f46 42%,#fff)}
:where(:root[data-theme="dark"]) .split-no{background:var(--gray-200);color:var(--gray-600)}
:where(:root[data-theme="dark"]) .summary-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .workload-filters{background:var(--pop)}
:where(:root[data-theme="dark"]) .workload-teacher-card,:where(:root[data-theme="dark"]) .workload-class-card,:where(:root[data-theme="dark"]) .workload-subject-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .workload-teacher-header,:where(:root[data-theme="dark"]) .workload-class-header,:where(:root[data-theme="dark"]) .workload-subject-header{background:linear-gradient(135deg, #667eea 0%, #764ba2 100%)}
:where(:root[data-theme="dark"]) .workload-total-hours{background:rgba(255, 255, 255, 0.2)}
:where(:root[data-theme="dark"]) .workload-subject-item{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .workload-subject-type{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .workload-class-item{background:var(--pop)}
:where(:root[data-theme="dark"]) .workload-class-item:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .workload-teacher-in-class,:where(:root[data-theme="dark"]) .workload-teacher-in-subject{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .workload-teacher-header{background:none}
:where(:root[data-theme="dark"]) .workload-empty{background:var(--pop)}
:where(:root[data-theme="dark"]) .report-table{background:var(--pop)}
:where(:root[data-theme="dark"]) .remaining-cell{background:linear-gradient(135deg, color-mix(in srgb,var(--ink) 6%,var(--pop)) 50%, var(--pop) 50%);border:1px solid var(--line)}
:where(:root[data-theme="dark"]) .remaining-cell.cell-full{background:var(--pop)}
:where(:root[data-theme="dark"]) .remaining-cell.cell-gray{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .remaining-cell.cell-gray .cell-remaining,:where(:root[data-theme="dark"]) .remaining-cell.cell-gray .cell-total{color:color-mix(in srgb,var(--ink) 88%,var(--pop))}
:where(:root[data-theme="dark"]) .cell-remaining{color:var(--ink);background:var(--pop)}
:where(:root[data-theme="dark"]) .cell-total{color:var(--ink);background:var(--pop)}
:where(:root[data-theme="dark"]) .subject-total,:where(:root[data-theme="dark"]) .level-total,:where(:root[data-theme="dark"]) .grand-total,:where(:root[data-theme="dark"]) .group-level-total,:where(:root[data-theme="dark"]) .group-total-sum{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .total-remaining{color:color-mix(in srgb,#aa0000 42%,#fff)}
:where(:root[data-theme="dark"]) .total-max{color:color-mix(in srgb,#00aa00 42%,#fff)}
:where(:root[data-theme="dark"]) .level-remaining{color:color-mix(in srgb,#aa0000 42%,#fff)}
:where(:root[data-theme="dark"]) .level-max{color:color-mix(in srgb,#00aa00 42%,#fff)}
:where(:root[data-theme="dark"]) .grand-remaining{color:color-mix(in srgb,#aa0000 42%,#fff)}
:where(:root[data-theme="dark"]) .grand-max{color:var(--success-dark)}
:where(:root[data-theme="dark"]) .grand-percent{color:var(--primary-dark)}
:where(:root[data-theme="dark"]) .group-total{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .group-percent{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .area-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .area-btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .area-btn.selected{background:var(--success);color:var(--on-brand, #fff)}
:where(:root[data-theme="dark"]) .area-btn.selected:hover{background:#0f9e6a}
:where(:root[data-theme="dark"]) .mass-class-btn{background:var(--pop)}
:where(:root[data-theme="dark"]) .mass-class-btn.selected{background:var(--success);color:var(--on-brand, #fff)}
:where(:root[data-theme="dark"]) .teacher-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-card.gray{background-color:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-card.green{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-card.blue{background-color:color-mix(in srgb,#cce5ff 17%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-card.orange{background-color:color-mix(in srgb,#ffe5b4 17%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-badge{background:rgba(0,0,0,0.05)}
:where(:root[data-theme="dark"]) .matrix-note{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .teacher-areas-table.vertical-headers{background:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-areas-table.vertical-headers .teacher-col{background:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-cell:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .teacher-cell.gray{background-color:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-cell.green{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-cell.blue{background-color:color-mix(in srgb,#cce5ff 17%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-cell.orange{background-color:color-mix(in srgb,#ffe5b4 17%,var(--pop))}
:where(:root[data-theme="dark"]) .matrix-cell.member{color:color-mix(in srgb,#28a745 42%,#fff);background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .matrix-cell.non-member{color:color-mix(in srgb,#dc3545 42%,#fff);background-color:var(--pop)}
:where(:root[data-theme="dark"]) .error-state{background:var(--pop)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card{background:var(--pop);border-left:4px solid var(--primary)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card-warning{border-left-color:var(--warning)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card-danger{border-left-color:var(--danger)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card-success{border-left-color:var(--success)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card-info{border-left-color:var(--primary)}
:where(:root[data-theme="dark"]) .transition-stats .stat-number{color:var(--gray-900)}
:where(:root[data-theme="dark"]) .transition-stats .stat-label{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .stat-progress{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .stat-progress-fill{background:var(--success)}
:where(:root[data-theme="dark"]) .transition-section{background:var(--pop)}
:where(:root[data-theme="dark"]) .transition-section-desc{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .transition-section-body{border-top:1px solid var(--gray-100)}
:where(:root[data-theme="dark"]) .transition-tag{background:var(--gray-100);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .row-new-subject td{background:var(--pop)}
:where(:root[data-theme="dark"]) .row-out-of-range td{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .badge-success{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-warning{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-info{background:color-mix(in srgb,#d1ecf1 17%,var(--pop));color:color-mix(in srgb,#0c5460 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-danger{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .transition-teacher-select{border:1px solid var(--gray-300);background:var(--pop)}
:where(:root[data-theme="dark"]) .transition-teacher-select:focus{border-color:var(--primary)}
:where(:root[data-theme="dark"]) .transition-execute-bar{background:var(--pop);border:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .transition-execute-info{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .btn-success{background:var(--success-dark)}
:where(:root[data-theme="dark"]) .btn-success:hover{background:#047857}
:where(:root[data-theme="dark"]) .transition-stage{background:var(--gray-100);color:var(--gray-600)}
:where(:root[data-theme="dark"]) .transition-stage.stage-completed{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .transition-stage.stage-in_progress{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .transition-stage.stage-error{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .transition-result-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .transition-ignore-bar{background:var(--pop);border:1px solid var(--line)}
:where(:root[data-theme="dark"]) .transition-ignore-label{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .transition-stats .stat-card-ignored{border-left-color:#8b8cf7}
:where(:root[data-theme="dark"]) .badge-ignored{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#5a5abf 42%,#fff)}
:where(:root[data-theme="dark"]) .row-ignored td{background:var(--pop)}
:where(:root[data-theme="dark"]) .row-auto td{background:var(--pop)}
:where(:root[data-theme="dark"]) .row-force-reset td{background:var(--pop)}
:where(:root[data-theme="dark"]) .badge-force-reset{background:var(--danger);color:var(--on-brand, #fff)}
:where(:root[data-theme="dark"]) .rollback-banner{background:var(--pop);border:1px solid color-mix(in srgb,#ffe082 38%,var(--pop))}
:where(:root[data-theme="dark"]) .compare-row-new td{background:var(--pop)}
:where(:root[data-theme="dark"]) .compare-row-removed td{background:var(--pop)}
:where(:root[data-theme="dark"]) .compare-row-teacher td{background:var(--pop)}
:where(:root[data-theme="dark"]) .compare-row-hours td{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .compare-row-both td{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .audit-section{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .audit-stat-total{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .audit-stat-full{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .audit-stat-short{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .audit-stat-none{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .audit-group-header{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .audit-row-short td{background:var(--pop)}
:where(:root[data-theme="dark"]) .audit-row-none td{background:var(--pop)}
:where(:root[data-theme="dark"]) .audit-bar{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .btn-fill{background:var(--primary)}
:where(:root[data-theme="dark"]) .btn-fill.btn-success{background:var(--success)}
:where(:root[data-theme="dark"]) .btn-fill-all{background:var(--primary)}
:where(:root[data-theme="dark"]) .audit-filters{background:var(--pop)}
:where(:root[data-theme="dark"]) .audit-filter-select,:where(:root[data-theme="dark"]) .audit-filter-input{background:var(--pop)}
:where(:root[data-theme="dark"]) .bulk-add-form{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .bulk-add-row select{background:var(--pop)}
:where(:root[data-theme="dark"]) .bulk-letter-cb{background:var(--pop)}
:where(:root[data-theme="dark"]) .bulk-letter-cb:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .parallel-matrix-table .matrix-class-name{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .matrix-sticky{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .parallel-matrix-table tbody .matrix-sticky{background:var(--pop)}
:where(:root[data-theme="dark"]) .parallel-matrix-table tbody tr:hover .matrix-sticky{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .parallel-matrix-table td.cell-available{background:var(--gray-100);color:var(--gray-600)}
:where(:root[data-theme="dark"]) .parallel-matrix-table .level-group-header.has-selections td{background:color-mix(in srgb,#fff3cd 17%,var(--pop)) !important;color:color-mix(in srgb,#856404 42%,#fff) !important}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.free{background:var(--gray-200);color:var(--text-muted);border:2px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.partial{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff);border:2px solid color-mix(in srgb,#ffe69c 38%,var(--pop))}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.assigned{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff);border:2px solid color-mix(in srgb,#c3e6cb 38%,var(--pop))}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.selected.partial{background:var(--primary);color:var(--on-brand, #fff);border-color:var(--primary)}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.selected.free{background:var(--primary);color:var(--on-brand, #fff);border-color:var(--primary)}
:where(:root[data-theme="dark"]) .parallel-matrix-table .status-marker.selected.assigned{background:var(--success);color:var(--on-brand, #fff);border-color:var(--success)}
:where(:root[data-theme="dark"]) .teacher-apply-panel{background:var(--pop)}
:where(:root[data-theme="dark"]) .teacher-apply-btn-active{background:var(--danger) !important}
:where(:root[data-theme="dark"]) .stat-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .vanga-input-panel{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-card-id{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-legend .legend-color.gray{background:var(--pop)}
:where(:root[data-theme="dark"]) .curriculum-legend .legend-color.green{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .curriculum-legend .legend-color.orange{background:color-mix(in srgb,#ffe5b4 17%,var(--pop))}
:where(:root[data-theme="dark"]) .curriculum-card.curriculum-card--none,:where(:root[data-theme="dark"]) .curriculum-card.curriculum-card--assigned,:where(:root[data-theme="dark"]) .curriculum-card.curriculum-card--deleted{border:1px solid rgba(0,0,0,0.05)}
:where(:root[data-theme="dark"]) .vanga-input-label{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .curriculum-grand-title{border-bottom:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-item.pending-remove .unload-card{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .unload-item.pending-transfer .unload-card{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .unload-card{background:var(--gray-100);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-card.status-full{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:color-mix(in srgb,#c3e6cb 38%,var(--pop))}
:where(:root[data-theme="dark"]) .unload-card.status-none{background:var(--gray-200);border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .btn-unload-remove,:where(:root[data-theme="dark"]) .btn-unload-transfer{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn-unload-remove:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .btn-unload-transfer:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .btn-unload-remove.active{background:var(--danger)}
:where(:root[data-theme="dark"]) .unload-level-section{border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-level-header{background:linear-gradient(135deg, #667eea 0%, #764ba2 100%)}
:where(:root[data-theme="dark"]) .btn-unload-level-remove,:where(:root[data-theme="dark"]) .btn-unload-level-transfer{background:rgba(255,255,255,0.2)}
:where(:root[data-theme="dark"]) .btn-unload-level-remove:hover{background:rgba(239,68,68,0.6)}
:where(:root[data-theme="dark"]) .btn-unload-level-transfer:hover{background:rgba(255,255,255,0.3)}
:where(:root[data-theme="dark"]) .unload-subject-group{border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-subject-header{background:var(--gray-50);border-bottom:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-subject-header .btn-unload-subject-remove,:where(:root[data-theme="dark"]) .unload-subject-header .btn-unload-subject-transfer{background:var(--pop)}
:where(:root[data-theme="dark"]) .unload-subject-header .btn-unload-subject-remove:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .unload-subject-header .btn-unload-subject-transfer:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .unload-entry-item{border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .unload-entry-item:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .unload-entry-item.pending-remove{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:var(--danger)}
:where(:root[data-theme="dark"]) .unload-entry-item.pending-transfer{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:var(--primary)}
:where(:root[data-theme="dark"]) .btn-entry-remove,:where(:root[data-theme="dark"]) .btn-entry-transfer{background:var(--pop)}
:where(:root[data-theme="dark"]) .btn-entry-remove:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .btn-entry-transfer:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .unload-search-input{border:1px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .unload-search-input:focus{border-color:var(--primary)}
:where(:root[data-theme="dark"]) .unload-sticky-footer{background:var(--pop);border-top:2px solid var(--primary)}
:where(:root[data-theme="dark"]) .tarification-exclude-panel{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .tarification-toolbar{background:var(--pop)}
:where(:root[data-theme="dark"]) .copy-label{color:var(--muted)}
:where(:root[data-theme="dark"]) .tarification-table th{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .tarification-table .level-header{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .stat-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .stat-icon-teachers{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#4361ee 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-icon-classes{background:color-mix(in srgb,#fef3c7 17%,var(--pop));color:color-mix(in srgb,#d97706 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-icon-subjects{background:color-mix(in srgb,#d1fae5 17%,var(--pop));color:color-mix(in srgb,#059669 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-icon-assignments{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#7c3aed 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-icon-buildings{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#db2777 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-icon-history{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#0284c7 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-value{color:var(--gray-900)}
:where(:root[data-theme="dark"]) .stat-label{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .stat-sub{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .dashboard-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .load-th{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .load-group{background:var(--pop)}
:where(:root[data-theme="dark"]) .load-group-btn{background:var(--gray-50);color:var(--gray-800)}
:where(:root[data-theme="dark"]) .load-group-btn:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .load-chevron{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .load-edu-btn{background:var(--pop);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .load-edu-btn:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .load-subgroup-btn{background:var(--pop);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .load-subgroup-btn:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .load-row{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .load-row:nth-child(even){background:var(--gray-50)}
:where(:root[data-theme="dark"]) .load-row:hover{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .load-cell--bold{color:var(--gray-800)}
:where(:root[data-theme="dark"]) .load-cell--students-header{color:color-mix(in srgb,#7c3aed 42%,#fff)}
:where(:root[data-theme="dark"]) .load-cell-vacant{color:color-mix(in srgb,#b45309 42%,#fff)}
:where(:root[data-theme="dark"]) .load-cell-remaining{color:var(--primary)}
:where(:root[data-theme="dark"]) .load-total{color:var(--primary)}
:where(:root[data-theme="dark"]) .test-suite-name{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .test-suite-count{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .test-summary{color:var(--primary)}
:where(:root[data-theme="dark"]) .snapshot-card-header{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .snapshot-card-header:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .snapshot-summary{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .stab{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .stab:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .stab.active{background:var(--primary)}
:where(:root[data-theme="dark"]) .stab-filter{background:var(--pop)}
:where(:root[data-theme="dark"]) .snapshot-compare-bar{background:var(--primary-light, color-mix(in srgb,var(--ink) 6%,var(--pop)))}
:where(:root[data-theme="dark"]) .diff-added td{background:color-mix(in srgb,var(--ink) 6%,var(--pop)) !important}
:where(:root[data-theme="dark"]) .diff-removed td{background:color-mix(in srgb,#f8d7da 17%,var(--pop)) !important}
:where(:root[data-theme="dark"]) .diff-changed td{background:color-mix(in srgb,#fff3cd 17%,var(--pop)) !important}
:where(:root[data-theme="dark"]) .lr-summary{background:var(--pop)}
:where(:root[data-theme="dark"]) .lr-teacher-header{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .lr-teacher-header:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .lr-teacher-stats{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .lr-expand-icon{color:var(--text-muted)}
:where(:root[data-theme="dark"]) .lr-badge-success{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .lr-badge-warning{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .lr-badge-danger{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .lr-blocked-report{background:var(--pop)}
:where(:root[data-theme="dark"]) .stat-success .stat-value{color:color-mix(in srgb,#28a745 42%,#fff)}
:where(:root[data-theme="dark"]) .stat-warning .stat-value{color:color-mix(in srgb,#dc3545 42%,#fff)}
:where(:root[data-theme="dark"]) .lr-teacher-tag{background:var(--gray-100);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .lr-block-reason{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .lr-return-all-summary{background:var(--primary-light);color:var(--primary)}
:where(:root[data-theme="dark"]) .lr-return-all-teacher{color:var(--gray-800)}
:where(:root[data-theme="dark"]) .lr-return-all-parallel{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .staffing-selector{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-teacher-select{border:1px solid var(--gray-300);background:var(--var(--pop));color:var(--gray-900)}
:where(:root[data-theme="dark"]) .staffing-teacher-select:focus{border-color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-filters{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-edit-bar{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-toggle-label{color:var(--gray-700)}
:where(:root[data-theme="dark"]) .staffing-toggle-label.active{color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-toggle-switch{background:var(--gray-300)}
:where(:root[data-theme="dark"]) .staffing-toggle-switch::after{background:var(--pop)}
:where(:root[data-theme="dark"]) .staffing-toggle-label.active .staffing-toggle-switch{background:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-selection-count{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .staffing-section{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-section-title{background:var(--gray-50);border-bottom:1px solid var(--gray-200);color:var(--gray-800)}
:where(:root[data-theme="dark"]) .staffing-level-block{border-bottom:1px solid var(--gray-100)}
:where(:root[data-theme="dark"]) .staffing-level-block:last-child{border-bottom:none}
:where(:root[data-theme="dark"]) .staffing-level-header:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-level-toggle{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .staffing-level-title{color:var(--gray-800)}
:where(:root[data-theme="dark"]) .staffing-level-count{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .staffing-level-body{background:linear-gradient(to right, transparent 97%, var(--gray-100)) local,
        linear-gradient(to right, var(--var(--pop)), transparent) 0 0 / 20px 100% local,
        linear-gradient(to right, transparent, var(--gray-100)) 100% 0 / 40px 100% scroll}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card{background:var(--var(--pop));border:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card:hover{border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card.status-none{background:var(--var(--pop));border-color:var(--gray-300)}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card.status-partial{background:color-mix(in srgb,#fef9c3 17%,var(--pop));border-color:color-mix(in srgb,#eab308 38%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card.status-full{background:color-mix(in srgb,#dcfce7 17%,var(--pop));border-color:color-mix(in srgb,#22c55e 38%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-workload-grid .card-class .card-meta-badge{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card.card-vacant{border-color:var(--danger)}
:where(:root[data-theme="dark"]) .staffing-matrix-subject{border-right:2px solid var(--gray-300);border-bottom:1px solid var(--gray-200);color:var(--gray-900);background:var(--var(--pop))}
:where(:root[data-theme="dark"]) .staffing-matrix tbody tr:hover .staffing-matrix-subject{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-cell{border:1px solid var(--gray-200);background:var(--var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell.disabled{color:var(--text-muted);background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-cell[data-key]:not(.disabled):hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell-workload{background:var(--gray-50);border-color:var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-cell-workload.taken{color:var(--gray-800);background:color-mix(in srgb,#dcfce7 17%,var(--pop));border-color:color-mix(in srgb,#86efac 38%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell[data-key]:not(.disabled):not(.staffing-cell-workload){background:var(--pop);border:2px solid color-mix(in srgb,#bbf7d0 38%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell[data-key]:not(.disabled):not(.staffing-cell-workload):hover{background:color-mix(in srgb,#dcfce7 17%,var(--pop));border-color:color-mix(in srgb,#86efac 38%,var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell.selected:not(.disabled){background:#1d4ed8;border:2px solid #1e3a8a;color:var(--ink)}
:where(:root[data-theme="dark"]) .staffing-cell.selected:not(.disabled):hover{background:#1e40af}
:where(:root[data-theme="dark"]) .staffing-cell.selected:not(.disabled) .staffing-cell-single{color:var(--ink)}
:where(:root[data-theme="dark"]) .staffing-cell.selected:not(.disabled) .staffing-cell-info{color:color-mix(in srgb,#1e293b 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail:not(.disabled){background:color-mix(in srgb,var(--ink) 6%,var(--pop));border:2px dashed #f87171}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail[data-key]:not(.disabled):hover{background:color-mix(in srgb,#fecaca 17%,var(--pop));border-color:#ef4444}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail.selected:not(.disabled){background:#dc2626;border:2px solid #b91c1c;color:var(--ink)}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail.selected:not(.disabled):hover{background:#b91c1c}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail.selected:not(.disabled) .staffing-cell-single{color:var(--ink)}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail.selected:not(.disabled) .staffing-cell-info{color:color-mix(in srgb,#1e293b 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-cell.split.selected:not(.disabled) .staffing-cell-halves{border-color:#1e3a8a}
:where(:root[data-theme="dark"]) .staffing-cell.vacant-avail.split.selected:not(.disabled) .staffing-cell-halves{border-color:#b91c1c}
:where(:root[data-theme="dark"]) .staffing-cell.cell-taken{background:var(--gray-50);border:1px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .staffing-cell.cell-taken:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-cell.cell-taken-vacant{border-left:4px solid var(--danger)}
:where(:root[data-theme="dark"]) .staffing-cell.cell-taken .cell-teacher-row{color:var(--gray-700);background:var(--var(--pop))}
:where(:root[data-theme="dark"]) .staffing-cell.cell-taken .cell-teacher-hours{color:var(--gray-900)}
:where(:root[data-theme="dark"]) .staffing-cell-info{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .staffing-cell-single{color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-cell-halves{border:2px solid var(--gray-300);background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-half{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .staffing-half.clickable:hover{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-half.selected{background:#1d4ed8;color:var(--ink)}
:where(:root[data-theme="dark"]) .staffing-half.selected:hover{background:#1e40af}
:where(:root[data-theme="dark"]) .staffing-half.half-taken{background:color-mix(in srgb,#dcfce7 17%,var(--pop));color:color-mix(in srgb,#166534 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-half.half-empty{background:var(--gray-50);color:var(--text-muted)}
:where(:root[data-theme="dark"]) .staffing-half-divider{background:var(--gray-300)}
:where(:root[data-theme="dark"]) .staffing-cell.split.selected .staffing-cell-halves{border-color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-teacher-info-name{color:var(--gray-900)}
:where(:root[data-theme="dark"]) .staffing-teacher-info-details{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .staffing-dashboard-divider{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-dashboard{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-dash-label{color:var(--gray-500)}
:where(:root[data-theme="dark"]) .staffing-dash-value{color:var(--gray-800)}
:where(:root[data-theme="dark"]) .staffing-dash-stat.editing-stat .staffing-dash-value{color:var(--primary)}
:where(:root[data-theme="dark"]) .staffing-dash-stat.total-stat .staffing-dash-value{color:color-mix(in srgb,#059669 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-dash-stat.over-limit .staffing-dash-label{color:var(--danger)}
:where(:root[data-theme="dark"]) .staffing-dash-stat.over-limit .staffing-dash-value{color:var(--danger)}
:where(:root[data-theme="dark"]) .staffing-dashboard-vacant{color:color-mix(in srgb,#b45309 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-excess-bar{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-excess-fill{background:var(--gray-500)}
:where(:root[data-theme="dark"]) .staffing-dashboard-excess.excess-warn .staffing-excess-fill{background:#eab308}
:where(:root[data-theme="dark"]) .staffing-dashboard-excess.excess-warn .staffing-excess-text{color:color-mix(in srgb,#a16207 42%,#fff)}
:where(:root[data-theme="dark"]) .staffing-dashboard-excess.excess-high .staffing-excess-fill{background:var(--danger)}
:where(:root[data-theme="dark"]) .staffing-dashboard-excess.excess-high .staffing-excess-text{color:var(--danger)}
:where(:root[data-theme="dark"]) .staffing-assignment-item{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .staffing-assignment-item:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .staffing-assignment-item.readonly{background:var(--var(--pop));border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .staffing-vacant-checkbox{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .staffing-workload-grid .subject-class-card[data-class-id]:hover{border-color:var(--primary)}
:where(:root[data-theme="dark"]) .analysis-summary{background:var(--pop)}
:where(:root[data-theme="dark"]) .analysis-summary .stat-card{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .analysis-summary .stat-value{color:var(--primary)}
:where(:root[data-theme="dark"]) .analysis-summary .stat-label{color:var(--gray-600)}
:where(:root[data-theme="dark"]) .timeline-container{background:var(--pop)}
:where(:root[data-theme="dark"]) .timeline-date-header{border-bottom:2px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .timeline-item{background:var(--gray-50);border-left:4px solid transparent}
:where(:root[data-theme="dark"]) .timeline-item.action-create{border-left-color:#28a745}
:where(:root[data-theme="dark"]) .timeline-item.action-update{border-left-color:color-mix(in srgb,#ffc107 38%,var(--pop))}
:where(:root[data-theme="dark"]) .timeline-item.action-delete{border-left-color:#dc3545}
:where(:root[data-theme="dark"]) .diff.positive{color:color-mix(in srgb,#28a745 42%,#fff)}
:where(:root[data-theme="dark"]) .diff.negative{color:color-mix(in srgb,#dc3545 42%,#fff)}
:where(:root[data-theme="dark"]) .summary-table-container{background:var(--pop)}
:where(:root[data-theme="dark"]) .action-badge.action-create{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .action-badge.action-update{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .action-badge.action-delete{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .summary-table .positive{color:color-mix(in srgb,#28a745 42%,#fff)}
:where(:root[data-theme="dark"]) .summary-table .negative{color:color-mix(in srgb,#dc3545 42%,#fff)}
:where(:root[data-theme="dark"]) .teacher-section{background:var(--pop)}
:where(:root[data-theme="dark"]) .total-hours{color:var(--primary-dark)}
:where(:root[data-theme="dark"]) .teacher-classes .subject-class-card{background:var(--gray-100);border:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .teacher-classes .subject-class-card.status-none{background:var(--pop);border-color:var(--gray-400)}
:where(:root[data-theme="dark"]) .teacher-classes .subject-class-card.status-partial{background:color-mix(in srgb,#fff3cd 17%,var(--pop));border-color:color-mix(in srgb,#ffc107 38%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-classes .subject-class-card.status-full{background:color-mix(in srgb,var(--ink) 6%,var(--pop));border-color:#28a745}
:where(:root[data-theme="dark"]) .teacher-section.teacher-load-low{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-section.teacher-load-normal{background-color:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-section.teacher-load-high{background-color:color-mix(in srgb,#fff3cd 17%,var(--pop))}
:where(:root[data-theme="dark"]) .teacher-section.teacher-load-very-high{background-color:color-mix(in srgb,#e0d4fc 17%,var(--pop))}
:where(:root[data-theme="dark"]) .status-работает{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#155724 42%,#fff)}
:where(:root[data-theme="dark"]) .status-декрет{background:color-mix(in srgb,#cce5ff 17%,var(--pop));color:color-mix(in srgb,#004085 42%,#fff)}
:where(:root[data-theme="dark"]) .status-больничный{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .status-уволен{background:color-mix(in srgb,#f8d7da 17%,var(--pop));color:color-mix(in srgb,#721c24 42%,#fff)}
:where(:root[data-theme="dark"]) .status-студент{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#5a3d7a 42%,#fff)}
:where(:root[data-theme="dark"]) .status-проект{background:color-mix(in srgb,#d1ecf1 17%,var(--pop));color:color-mix(in srgb,#0c5460 42%,#fff)}
:where(:root[data-theme="dark"]) .universal-report .report-filters{background:var(--pop)}
:where(:root[data-theme="dark"]) .universal-report .report-stats{background:linear-gradient(135deg, color-mix(in srgb,var(--ink) 6%,var(--pop)) 0%, color-mix(in srgb,var(--ink) 6%,var(--pop)) 100%)}
:where(:root[data-theme="dark"]) .universal-report .report-table-container{background:var(--pop)}
:where(:root[data-theme="dark"]) .universal-report .report-table .homeroom-row{background-color:color-mix(in srgb,#fff3cd 17%,var(--pop))}
:where(:root[data-theme="dark"]) .universal-report .report-table .homeroom-row:hover td{background-color:color-mix(in srgb,#ffe69c 17%,var(--pop))}
:where(:root[data-theme="dark"]) .universal-report .badge-homeroom{background:var(--warning);color:var(--on-brand, #fff)}
:where(:root[data-theme="dark"]) .universal-report .empty-state{background:var(--pop)}
:where(:root[data-theme="dark"]) .universal-report .error-state{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .admin-table{background:var(--pop)}
:where(:root[data-theme="dark"]) .badge-admin{background:var(--primary-light);color:var(--primary-dark)}
:where(:root[data-theme="dark"]) .badge-manager{background:color-mix(in srgb,#fff3cd 17%,var(--pop));color:color-mix(in srgb,#856404 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-user{background:color-mix(in srgb,#d1fae5 17%,var(--pop));color:color-mix(in srgb,#065f46 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-readonly{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#475569 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-local{background:color-mix(in srgb,#dbeafe 17%,var(--pop));color:color-mix(in srgb,#1e40af 42%,#fff)}
:where(:root[data-theme="dark"]) .badge-ldap{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#5b21b6 42%,#fff)}
:where(:root[data-theme="dark"]) .admin-page{background:linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%) fixed}
:where(:root[data-theme="dark"]) .admin-page .content-header{background:var(--pop)}
:where(:root[data-theme="dark"]) .admin-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .action-btn{border:none;background:transparent;color:var(--text-muted)}
:where(:root[data-theme="dark"]) .action-btn:hover{background:var(--gray-100);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .action-btn.edit:hover{background:var(--primary-light);color:var(--primary)}
:where(:root[data-theme="dark"]) .action-btn.delete:hover{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:var(--danger)}
:where(:root[data-theme="dark"]) .api-status-bar{background:rgba(255, 255, 255, 0.1);border:1px solid rgba(255, 255, 255, 0.12);color:rgba(255, 255, 255, 0.8)}
:where(:root[data-theme="dark"]) .api-status-bar.status-ok .status-text{color:color-mix(in srgb,#166534 42%,#fff)}
:where(:root[data-theme="dark"]) .admin-page.admin-light{background:var(--light)}
:where(:root[data-theme="dark"]) .admin-page.admin-light .content-header{background:var(--pop)}
:where(:root[data-theme="dark"]) .admin-page.admin-light .api-status-bar{background:var(--pop);border-color:color-mix(in srgb,#bbf7d0 38%,var(--pop));color:color-mix(in srgb,#166534 42%,#fff)}
:where(:root[data-theme="dark"]) .admin-page.admin-light .api-status-bar .status-indicator{background:var(--success)}
:where(:root[data-theme="dark"]) .admin-stat-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .admin-stat-card .stat-icon-admins{color:var(--primary)}
:where(:root[data-theme="dark"]) .admin-stat-card .stat-icon-users{color:var(--success-dark)}
:where(:root[data-theme="dark"]) .admin-stat-card .stat-icon-managers{color:var(--warning-dark)}
:where(:root[data-theme="dark"]) .admin-stat-card .stat-icon-requests{color:var(--danger-dark)}
:where(:root[data-theme="dark"]) .admin-tabs{background:var(--pop)}
:where(:root[data-theme="dark"]) .admin-tab{background:transparent}
:where(:root[data-theme="dark"]) .admin-tab:hover{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .admin-tab.active{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .admin-tab.active::after{background:var(--primary)}
:where(:root[data-theme="dark"]) .admin-tab-badge{background:var(--danger)}
:where(:root[data-theme="dark"]) .admin-tab-panel{background:var(--pop)}
:where(:root[data-theme="dark"]) .admin-filter{background:var(--pop)}
:where(:root[data-theme="dark"]) .badge-self{background:var(--primary-light);color:var(--primary-dark)}
:where(:root[data-theme="dark"]) .action-btn.reset-pwd:hover{background:var(--warning-dark);color:white}
:where(:root[data-theme="dark"]) .audit-action{background:var(--gray-100);color:var(--gray-700)}
:where(:root[data-theme="dark"]) .subject-area-title{border-bottom:1px solid var(--gray-200)}
:where(:root[data-theme="dark"]) .subject-tile label{background:var(--pop)}
:where(:root[data-theme="dark"]) .subject-tile input:checked + label::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='var(--pop)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")}
:where(:root[data-theme="dark"]) .lc-dash-item{background:var(--pop)}
:where(:root[data-theme="dark"]) .lc-teacher-card{background:var(--pop)}
:where(:root[data-theme="dark"]) .lc-teacher-header{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .lc-stat-excess{background:color-mix(in srgb,var(--ink) 6%,var(--pop))}
:where(:root[data-theme="dark"]) .lc-stat-count{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .lc-subject-item:hover{background:var(--gray-50)}
:where(:root[data-theme="dark"]) .lc-subject-item.lc-excluded{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .lc-class-name{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .lc-excess-badge{background:var(--danger)}
:where(:root[data-theme="dark"]) .lc-toggle-btn{background:none}
:where(:root[data-theme="dark"]) .lc-toggle-btn:hover{background:var(--gray-200)}
:where(:root[data-theme="dark"]) .multi-select-trigger{background:var(--pop)}
:where(:root[data-theme="dark"]) .multi-select-panel{background:var(--pop)}
:where(:root[data-theme="dark"]) .card-section{border:1px solid var(--border, var(--line))}
:where(:root[data-theme="dark"]) .exp-readonly{background:var(--bg-soft, color-mix(in srgb,var(--ink) 6%,var(--pop)))}
:where(:root[data-theme="dark"]) .period-row{border:1px dashed var(--border, var(--line))}
:where(:root[data-theme="dark"]) .doc-upload{border-top:1px dashed var(--border, var(--line))}
:where(:root[data-theme="dark"]) #teacher-card-modal .teacher-avatar{background:var(--primary-light)}
:where(:root[data-theme="dark"]) #teacher-card-modal .card-section{border:1px solid var(--gray-200);background:var(--pop)}
:where(:root[data-theme="dark"]) #teacher-card-modal .card-section-head{border-bottom:1px solid var(--gray-100)}
:where(:root[data-theme="dark"]) #teacher-card-modal .exp-readonly{background:var(--primary-light)}
:where(:root[data-theme="dark"]) #teacher-card-modal .seg-option:has(input:checked){background:var(--pop)}
:where(:root[data-theme="dark"]) #teacher-card-modal .period-row{border:1px solid var(--gray-200);background:var(--pop)}
:where(:root[data-theme="dark"]) #teacher-card-modal .period-row:hover{border-color:var(--gray-300)}
:where(:root[data-theme="dark"]) #teacher-card-modal .period-head{background:var(--gray-50);border-bottom:1px solid var(--gray-100)}
:where(:root[data-theme="dark"]) #teacher-card-modal .period-del{border:none;background:transparent}
:where(:root[data-theme="dark"]) #teacher-card-modal .period-del:hover{background:var(--danger-light)}
:where(:root[data-theme="dark"]) #teacher-card-modal .doc-type-order_category{background:var(--primary-light)}
:where(:root[data-theme="dark"]) #teacher-card-modal .doc-type-category_cert{background:var(--pop)}
:where(:root[data-theme="dark"]) #teacher-card-modal .doc-type-other{background:var(--gray-100)}
:where(:root[data-theme="dark"]) #teacher-card-modal .doc-upload{border:1.5px dashed var(--gray-300);background:var(--gray-50)}
:where(:root[data-theme="dark"]) #teacher-card-modal .doc-upload-icon{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .extra-chips-row{background:var(--pop)}
:where(:root[data-theme="dark"]) .extra-subject-chip{background:var(--primary-light)}
:where(:root[data-theme="dark"]) .extra-subject-chip.selected{background:var(--primary);color:#fff}
:where(:root[data-theme="dark"]) .template-file-preview{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .template-report-block{background:var(--gray-100)}
:where(:root[data-theme="dark"]) .template-report-table{background:var(--pop)}
:where(:root[data-theme="dark"]) .year-select-label{color:var(--gray-500, color-mix(in srgb,#6b7280 42%,#fff))}
:where(:root[data-theme="dark"]) .year-select select{border:1px solid var(--border, var(--line));background:var(--bg-card, var(--pop))}
:where(:root[data-theme="dark"]) .form-error{background:color-mix(in srgb,var(--ink) 6%,var(--pop));color:color-mix(in srgb,#b91c1c 42%,#fff)}
:where(:root[data-theme="dark"]) .demo-banner{background:color-mix(in srgb,#facc15 17%,var(--pop));color:color-mix(in srgb,#422006 42%,#fff)}
:where(:root[data-theme="dark"]) .load-date-field{color:var(--muted, color-mix(in srgb,#64748b 42%,#fff))}
:where(:root[data-theme="dark"]) .load-date-field input[type="date"]{border:1px solid var(--line, var(--line));background:var(--pop, var(--pop))}
:where(:root[data-theme="dark"]) .test-badge{background:var(--soft, color-mix(in srgb,var(--ink) 6%,var(--pop)));color:var(--muted, color-mix(in srgb,#475569 42%,#fff))}
:where(:root[data-theme="dark"]) .test-badge.test-pass{background:var(--success-light, color-mix(in srgb,#dcfce7 17%,var(--pop)));color:var(--success-dark, color-mix(in srgb,#166534 42%,#fff))}
:where(:root[data-theme="dark"]) .test-badge.test-fail{background:var(--danger-light, color-mix(in srgb,var(--ink) 6%,var(--pop)));color:var(--danger-dark, color-mix(in srgb,#991b1b 42%,#fff))}
:where(:root[data-theme="dark"]) .hw-card-footer .class-count,:where(:root[data-theme="dark"]) .hw-card-footer .hw-card-pill{background:var(--pop)}
:where(:root[data-theme="dark"]) .filter-multi-trigger{border:1px solid var(--gray-300);background:var(--pop, var(--pop)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center}
:where(:root[data-theme="dark"]) .filter-multi-trigger:hover{border-color:var(--primary, #4f46e5)}
:where(:root[data-theme="dark"]) .filter-multi-trigger.is-active{border-color:var(--primary, #4f46e5)}
:where(:root[data-theme="dark"]) .filter-multi-panel{background:var(--pop, var(--pop));border:1px solid var(--gray-300)}
:where(:root[data-theme="dark"]) .multi-option:hover{background:var(--gray-100, color-mix(in srgb,var(--ink) 6%,var(--pop)))}
:where(:root[data-theme="dark"]) .filter-multi-footer{border-top:1px solid var(--gray-200, var(--line))}
:where(:root[data-theme="dark"]) .form-hint-warn{color:var(--warn)}
:where(:root[data-theme="dark"]) .form-hint-err{color:var(--err)}
:where(:root[data-theme="dark"]) .extra-row{background:color-mix(in srgb,#f8d7da 17%,var(--pop))}
