/* Dark mode, generated by tools/make-dark-css.py from site.css and design-system.css. Do not edit by hand:
 * change the generator (or the hand-written part at its end) and run it again. */
:root[data-theme="dark"]{color-scheme:dark}
/* from site.css */
:root[data-theme="dark"]{--ink:#e6ebf3;--muted:#9aa6ba;--line:#2a3447;--paper:#161d2b;--canvas:#0f1522;--navy:#2c3f6b;--navy2:#34507e;--green-dark:#5fcf9f;--green-pale:#15302a;--blue-pale:#1b2140;--amber-pale:#33270f;--red-pale:#341a1d;--shadow:0 14px 40px rgba(0,0,0,.35)}
:root[data-theme="dark"] .auth-page{background:#1c1f24}
:root[data-theme="dark"] .auth-shell{background:#121721;box-shadow:0 28px 90px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .auth-story{background:linear-gradient(148deg,#1e3354 0%,#24395b 72%,#1b3452 100%)}
:root[data-theme="dark"] .light-eyebrow{color:#8bd3b5}
:root[data-theme="dark"] .story-copy p{color:#a6b3c6}
:root[data-theme="dark"] .art-window{background:#181b20;box-shadow:0 20px 55px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .art-top{border-bottom:1px solid #303136}
:root[data-theme="dark"] .art-top i{background:#292b30}
:root[data-theme="dark"] .art-top span{color:#a1a8b6}
:root[data-theme="dark"] .muted-task{background:#191a24}
:root[data-theme="dark"] .art-icon{background:#1b2923;color:#9bdec7}
:root[data-theme="dark"] .art-icon.lavender{background:#12142b;color:#938ec7}
:root[data-theme="dark"] .art-task small{color:#9fa5b3}
:root[data-theme="dark"] .art-check{color:#93d5bc}
:root[data-theme="dark"] .art-dot{background:#2c2a4e}
:root[data-theme="dark"] .art-line{background:#202328}
:root[data-theme="dark"] .art-caption{color:#a0a6b3}
:root[data-theme="dark"] .orb-two{background:rgba(51,49,81,0.24)}
:root[data-theme="dark"] .story-foot{color:#9fa9b7}
:root[data-theme="dark"] .form-stack input,:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .review-form textarea{border:1px solid #30343b;background:#121721}
:root[data-theme="dark"] .form-stack input:focus,:root[data-theme="dark"] .field input:focus,:root[data-theme="dark"] .field textarea:focus,:root[data-theme="dark"] .review-form textarea:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#a5acb8}
:root[data-theme="dark"] .button-primary{box-shadow:0 5px 14px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .button-primary:hover{box-shadow:0 8px 18px rgba(0,0,0,0.4)}
:root[data-theme="dark"] .button-secondary{background:#1a1d25;color:#b2bcd1;border:1px solid #2e3239}
:root[data-theme="dark"] .button-secondary:hover{background:#1d2028}
:root[data-theme="dark"] .auth-switch{color:#9da3af}
:root[data-theme="dark"] .auth-switch a{color:#a0dec8}
:root[data-theme="dark"] .auth-note{border-top:1px solid #2d3137;color:#a2a8b4}
:root[data-theme="dark"] .lock-icon{color:#9cc1b3}
:root[data-theme="dark"] .auth-footer{color:#a5abb7}
:root[data-theme="dark"] .auth-footer span,:root[data-theme="dark"] .app-footer span{color:#92c6b2}
:root[data-theme="dark"] .notice{background:#191e25;color:#aab5c6;border:1px solid #2e3339}
:root[data-theme="dark"] .notice.success{color:#a7dcc9;border-color:#2e4238}
:root[data-theme="dark"] .notice.error{color:#cd979c;border-color:#422828}
:root[data-theme="dark"] .back-link{color:#9ba1af}
:root[data-theme="dark"] .back-link:hover{color:#a1ddc8}
:root[data-theme="dark"] .closed-panel{background:#181b21;border:1px solid #2e3037}
:root[data-theme="dark"] .closed-icon{color:#9ea4b2}
:root[data-theme="dark"] .closed-panel p{color:#9da4b1}
:root[data-theme="dark"] .field-hint{color:#a1a8b6}
:root[data-theme="dark"] .register-card{background:#181b20;box-shadow:0 20px 55px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .register-spark{color:#93d3bc}
:root[data-theme="dark"] .register-card small{color:#9fa6b3}
:root[data-theme="dark"] .register-progress{background:#1f2327}
:root[data-theme="dark"] .register-card>span:last-child{color:#a2a8b5}
:root[data-theme="dark"] .orb-three{background:rgba(53,73,88,0.16)}
:root[data-theme="dark"] .app-page{background:#1b1c21}
:root[data-theme="dark"] .topbar{background:#121721;border-bottom:1px solid #2e3037}
:root[data-theme="dark"] .teacher-pill{color:#9c99c3;background:#12102b}
:root[data-theme="dark"] .student-pill{color:#a1decb;background:#1b2923}
:root[data-theme="dark"] .user-chip{color:#b0b7c7}
:root[data-theme="dark"] .avatar{background:#1c2a23;color:#a0dfc9}
:root[data-theme="dark"] .teacher-avatar{background:#12112d;color:#918ebc}
:root[data-theme="dark"] .logout-button{color:#a0a6b2}
:root[data-theme="dark"] .logout-button:hover{color:#c5868c}
:root[data-theme="dark"] .stat-card{background:#121721;border:1px solid #2e3037;box-shadow:0 4px 14px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .indigo-icon{color:#908ec4;background:#12102b}
:root[data-theme="dark"] .green-icon{color:#9cd6c1;background:#1b2923}
:root[data-theme="dark"] .amber-icon{color:#d4b486;background:#302412}
:root[data-theme="dark"] .stat-card small{color:#a0a6b2}
:root[data-theme="dark"] .stat-card strong{color:#bcc7dc}
:root[data-theme="dark"] .panel{background:#121721;border:1px solid #2e3138}
:root[data-theme="dark"] .section-kicker{color:#9bdcc4}
:root[data-theme="dark"] .status-open{color:#a2ddc8;background:#1c2a22}
:root[data-theme="dark"] .status-closed{color:#cfb69a;background:#2f2312}
:root[data-theme="dark"] .status-neutral{color:#a5abb8;background:#1c1f24}
:root[data-theme="dark"] .status-revision{color:#dfb992;background:#322513}
:root[data-theme="dark"] .panel-footnote{color:#a0a6b3}
:root[data-theme="dark"] .info-dot{color:#a3aab6;border:1px solid #383c42}
:root[data-theme="dark"] .text-button{color:#c69993}
:root[data-theme="dark"] .panel-step{border:1px solid #2e3138;color:#a2a8b5}
:root[data-theme="dark"] .assignment-form .field input,:root[data-theme="dark"] .assignment-form .field textarea{background:#171b1f}
:root[data-theme="dark"] .type-option span{border:1px solid #30333a;background:#121721;color:#9ba2af}
:root[data-theme="dark"] .type-option input:checked+span{background:#192720;color:#a3dec8;box-shadow:0 0 0 2px rgba(0,0,0,0.225)}
:root[data-theme="dark"] .input-suffix{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .input-suffix span{border-right:1px solid #30343b;color:#9fa6b2}
:root[data-theme="dark"] .form-actions small{color:#a2a8b5}
:root[data-theme="dark"] .count-pill{background:#1d2026;color:#9aa0ad}
:root[data-theme="dark"] .teacher-assignment-card{background:#121721;border:1px solid #2e3137}
:root[data-theme="dark"] .assignment-symbol{background:#11152c;color:#908dc6}
:root[data-theme="dark"] .assignment-card-main p{color:#9da4b0}
:root[data-theme="dark"] .meta-row{color:#a2a8b5}
:root[data-theme="dark"] .meta-row b{color:#a5acba}
:root[data-theme="dark"] .empty-state{background:#121721;border:1px dashed #32353c;color:#9ea6b3}
:root[data-theme="dark"] .empty-icon{background:#181a25;color:#9391c2}
:root[data-theme="dark"] .empty-state h3{color:#b7c0d3}
:root[data-theme="dark"] .app-footer{color:#a5acb7;border-top:1px solid #303238}
:root[data-theme="dark"] .student-hero{background:linear-gradient(112deg,#1b2822,#171b28 77%);border:1px solid #303b36}
:root[data-theme="dark"] .student-hero p{color:#9aa2b0}
:root[data-theme="dark"] .hero-mark{background:rgba(18,23,33,0.64);color:#9bc8b6}
:root[data-theme="dark"] .hero-mark b{background:#5b492c}
:root[data-theme="dark"] .student-assignment-card{background:#121721;border:1px solid #2f3238;box-shadow:0 5px 18px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .student-symbol{background:#1b2822;color:#9cd3bf}
:root[data-theme="dark"] .student-card-title .teacher-name{color:#a0a6b3}
:root[data-theme="dark"] .teacher-name b{color:#aab2c1}
:root[data-theme="dark"] .deadline-chip{background:#1c1e22;color:#9da4b1}
:root[data-theme="dark"] .deadline-active{background:#1a261f;color:#a3d3be}
:root[data-theme="dark"] .assignment-description{color:#a3a9b7}
:root[data-theme="dark"] .allowed-row{border-top:1px solid #2d2f35;border-bottom:1px solid #2d2f35}
:root[data-theme="dark"] .allowed-row>span,:root[data-theme="dark"] .allowed-row>small{color:#a0a6b3}
:root[data-theme="dark"] .allowed-row>small b{color:#a9b0be}
:root[data-theme="dark"] .file-chips span{color:#a3aab8;background:#1a1d25}
:root[data-theme="dark"] .history-heading{color:#a4abb9}
:root[data-theme="dark"] .history-heading span:last-child{color:#a4aab5}
:root[data-theme="dark"] .version-row{border-bottom:1px solid #2d2f34}
:root[data-theme="dark"] .version-number{background:#181a25;color:#9292b8}
:root[data-theme="dark"] .version-info a{color:#b6c1d3}
:root[data-theme="dark"] .version-info a:hover{color:#a1ddc8}
:root[data-theme="dark"] .version-info small{color:#a4aab5}
:root[data-theme="dark"] .mini-status{color:#dabb95;background:#302412}
:root[data-theme="dark"] .mini-status.reviewed{color:#a2dbc9;background:#1b2821}
:root[data-theme="dark"] .mini-status.waiting{color:#99a2b0;background:#1c1f24}
:root[data-theme="dark"] .feedback-note{background:#171922;border-right:2px solid #3e3c51}
:root[data-theme="dark"] .feedback-note span,:root[data-theme="dark"] .saved-feedback span{color:#9896b9}
:root[data-theme="dark"] .feedback-note p,:root[data-theme="dark"] .saved-feedback p{color:#a5acba}
:root[data-theme="dark"] .upload-picker{background:#1b1f1d;border:1px dashed #38433d}
:root[data-theme="dark"] .upload-icon{background:#1c2a23;color:#a0d4c1}
:root[data-theme="dark"] .upload-picker b{color:#acb4c3}
:root[data-theme="dark"] .upload-picker small{color:#a4aab5}
:root[data-theme="dark"] .picker-action{color:#a1ddc9}
:root[data-theme="dark"] .closed-hint{background:#1b1d20;color:#a0a6b2}
:root[data-theme="dark"] .closed-hint>span:first-child{color:#9ca4b2}
:root[data-theme="dark"] .detail-hero{background:#121721;border:1px solid #2e3138}
:root[data-theme="dark"] .detail-hero p{color:#99a1ae}
:root[data-theme="dark"] .submission-progress{color:#a0a6b3}
:root[data-theme="dark"] .submission-progress strong{color:#b9c6dc}
:root[data-theme="dark"] .submission-progress>i{background:#202327}
:root[data-theme="dark"] .review-student-card{background:#121721;border:1px solid #2e3138}
:root[data-theme="dark"] .review-student-head{border-bottom:1px solid #2d2f35}
:root[data-theme="dark"] .student-avatar{background:#1d2723;color:#a0d7c1}
:root[data-theme="dark"] .review-student-head small{color:#a2a8b5}
:root[data-theme="dark"] .teacher-version{border-bottom:1px solid #2e2f34}
:root[data-theme="dark"] .saved-feedback{background:#181a22;border-right:2px solid #424053}
:root[data-theme="dark"] .review-form{background:#191c1f;border:1px solid #2e3236}
:root[data-theme="dark"] .review-form textarea{background:#121721}
:root[data-theme="dark"] .toggle-box{border:1px solid #3a3d44;background:#121721}
:root[data-theme="dark"] .revision-toggle b{color:#acb4c3}
:root[data-theme="dark"] .revision-toggle small{color:#a2a8b5}
:root[data-theme="dark"] .no-submission{color:#a2a8b5}
@media(max-width:560px) {
  :root[data-theme="dark"] .auth-page{background:#121721}
}
:root[data-theme="dark"] .status-badge.status-revision{color:#f7c198;background:#372b15;box-shadow:0 2px 9px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .status-badge.status-updated{color:#9ecde8;background:#12242f;border:1px solid #355160;box-shadow:0 2px 9px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .revision-callout{background:#2f2412;color:#f7c9a1}
:root[data-theme="dark"] .revision-callout strong{color:#f7c89d}
:root[data-theme="dark"] .revision-callout p{color:#e0bea0}
:root[data-theme="dark"] .mini-status.revision-requested{background:#413119;color:#f7c59b;box-shadow:0 2px 7px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .assignment-tabs{background:#1e2227}
:root[data-theme="dark"] .assignment-tab{color:#a3a9b6}
:root[data-theme="dark"] .assignment-tab[aria-pressed="true"]{background:#121721;border-color:#2f3339;color:#b9c4d9;box-shadow:0 2px 7px rgba(0,0,0,0.175)}
:root[data-theme="dark"] .tab-count{background:#1d2025;color:#a5adbb}
:root[data-theme="dark"] .revision-empty-icon{background:#342714;color:#e7b482}
:root[data-theme="dark"] .grade-form{background:#181b21;border:1px solid #2e3037}
:root[data-theme="dark"] .grade-form>label{color:#acb4c3}
:root[data-theme="dark"] .grade-form select{border:1px solid #31363c;background:#121721;color:#b7c0d3}
:root[data-theme="dark"] .grade-saved{background:#1b2922;color:#a5dcc7}
:root[data-theme="dark"] .student-grade{border:1px solid #364d41;background:#19271f;color:#a6dcc7}
:root[data-theme="dark"] .student-grade>small{color:#a6c2b6}
:root[data-theme="dark"] .course-card{background:#161a21;border:1px solid #2e3239}
:root[data-theme="dark"] .course-card-heading h3{color:#b7c2d5}
:root[data-theme="dark"] .course-card-heading p{color:#a0a7b4}
:root[data-theme="dark"] .course-students-form legend{color:#a9b1c0}
:root[data-theme="dark"] .student-picker{border:1px solid #2f3339;background:#121721}
:root[data-theme="dark"] .student-picker input{accent-color:#9acfba}
:root[data-theme="dark"] .student-picker span{color:#b0b9ca}
:root[data-theme="dark"] .student-picker small{color:#a4aab5}
:root[data-theme="dark"] .status-badge.status-graded{color:#b4dad0;background:#1c2922;border:1px solid #374b3f}
:root[data-theme="dark"] .grade-lock-hint{background:#1a271f;color:#a9d6c5}
:root[data-theme="dark"] .grade-letter{background:#1b1e26;color:#aeb8cb}
:root[data-theme="dark"] .grade-stat-p .grade-letter{background:#1b2922;color:#a3dec7}
:root[data-theme="dark"] .grade-stat-m .grade-letter{background:#10122b;color:#9191ba}
:root[data-theme="dark"] .grade-stat-d .grade-letter{background:#322713;color:#e7c38e}
:root[data-theme="dark"] .grade-stat-pending .grade-letter{background:#1c1f24;color:#9ba2b0}
:root[data-theme="dark"] .course-roster li{border:1px solid #2f3339;background:#121721}
:root[data-theme="dark"] .course-roster li span{color:#b0b9ca}
:root[data-theme="dark"] .course-roster li small{color:#a3aab5}
:root[data-theme="dark"] .course-roster-empty{color:#a2a8b5}
:root[data-theme="dark"] .course-students-dialog{border:1px solid #31353c;background:#121721;color:#b6c1d5;box-shadow:0 24px 80px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .course-students-dialog::backdrop{background:rgba(39,57,88,0.48)}
:root[data-theme="dark"] .course-dialog-heading{border-bottom:1px solid #2d3137}
:root[data-theme="dark"] .course-dialog-heading h3{color:#b9c4d9}
:root[data-theme="dark"] .course-dialog-heading p{color:#9da4b1}
:root[data-theme="dark"] .dialog-close{border:1px solid #2f3339;background:#191b20;color:#a3a9b7}
:root[data-theme="dark"] .course-students-form legend{color:#a9b1c0}
:root[data-theme="dark"] .course-dialog-actions{background:#121721}
:root[data-theme="dark"] .school-grade-card{background:#141822;border:1px solid #2e323a}
:root[data-theme="dark"] .school-grade-heading h3{color:#b8c3d8}
:root[data-theme="dark"] .subject-create-form{background:#121721;border:1px solid #2d3137}
:root[data-theme="dark"] .subject-create-form input,:root[data-theme="dark"] .subject-create-form select,:root[data-theme="dark"] .legacy-course-row select{border:1px solid #30343b;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .subject-card{background:#121721}
:root[data-theme="dark"] .subject-card .course-card-heading h4{color:#b6c1d4}
:root[data-theme="dark"] .term-card{background:#181a22;border:1px solid #2f3139}
:root[data-theme="dark"] .term-card-heading h4{color:#b7c0d2}
:root[data-theme="dark"] .term-card-heading p{color:#a0a7b3}
:root[data-theme="dark"] .term-subject-chip{border:1px solid #313c36;background:#121721;color:#b2c3ba}
:root[data-theme="dark"] .term-empty-subjects,:root[data-theme="dark"] .term-no-available-subjects{color:#a2a8b5}
:root[data-theme="dark"] .term-add-subject-label{color:#a5acb8}
:root[data-theme="dark"] .term-add-subject-button{border:1px solid #343d37;background:#121721;color:#aacfbd}
:root[data-theme="dark"] .term-add-subject-button:hover{border-color:#3d5345;background:#1a261e}
:root[data-theme="dark"] .term-add-subject-button>span:first-child{color:#98d9bb}
:root[data-theme="dark"] .term-completion-actions{border-top:1px solid #2f3339}
:root[data-theme="dark"] .term-completion-actions p{color:#a2abb6}
:root[data-theme="dark"] .term-completion-actions p b{color:#b1bccd}
:root[data-theme="dark"] .legacy-courses{background:#2c2211;border:1px solid #453c2d}
:root[data-theme="dark"] .legacy-courses h3{color:#dac6ab}
:root[data-theme="dark"] .legacy-courses>p{color:#beb2a0}
:root[data-theme="dark"] .legacy-course-row{border-top:1px solid #423a2d}
:root[data-theme="dark"] .legacy-course-row>strong{color:#a9b1c0}
:root[data-theme="dark"] .completion-stat{border:1px solid #2f3339;background:#121721}
:root[data-theme="dark"] .completion-stat small{color:#9aa2b0}
:root[data-theme="dark"] .completion-stat strong{color:#b9c4d9}
:root[data-theme="dark"] .completion-total{color:#a4aab5}
:root[data-theme="dark"] .completed-count{background:#17241b;border-color:#2f3f35}
:root[data-theme="dark"] .completed-count .completion-icon{background:#1c2c21;color:#9fdac0}
:root[data-theme="dark"] .pending-count{background:#2b2110;border-color:#433b2c}
:root[data-theme="dark"] .pending-count .completion-icon{background:#352914;color:#dcbf92}
:root[data-theme="dark"] .grade-breakdown{border:1px solid #2e3138;background:#141822}
:root[data-theme="dark"] .grade-breakdown-heading h2{color:#b4bed0}
:root[data-theme="dark"] .review-student-card.student-is-graded{border-color:#34463b;background:#18231b}
:root[data-theme="dark"] .review-student-summary:hover{background:rgba(26,34,39,0.55)}
:root[data-theme="dark"] .student-is-graded>.review-student-summary:hover{background:#1a271f}
:root[data-theme="dark"] .compact-student-info strong{color:#b6c1d3}
:root[data-theme="dark"] .compact-student-info small{color:#a2a8b5}
:root[data-theme="dark"] .compact-grade{border:1px solid #35473b;background:#1b2920;color:#a8d4bf}
:root[data-theme="dark"] .summary-chevron{background:#1c1f24;color:#a0a7b3}
:root[data-theme="dark"] .student-expanded-details{border-top:1px solid #2e3236}
:root[data-theme="dark"] .student-is-graded .student-expanded-details{border-color:#2f3c34}
:root[data-theme="dark"] .review-controls-hint{color:#9ba3b0}
:root[data-theme="dark"] .evaluation-edit-dialog .evaluation-feedback{border:1px solid #31353c;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .evaluation-edit-dialog .evaluation-feedback:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .evaluation-no-submission{background:#1a1b21;color:#9ba3b0}
:root[data-theme="dark"] .revision-request-note{border:1px solid #314139;background:#18251d;color:#abd0bd}
:root[data-theme="dark"] .evaluation-edit-dialog .button-revision-request{border:1px solid #4f412e;background:#2e2111;color:#e4c099}
:root[data-theme="dark"] .evaluation-edit-dialog .button-revision-request:hover{background:#352514}
:root[data-theme="dark"] .admin-pill{color:#938fb8;background:#181727;border:1px solid #2b2841}
:root[data-theme="dark"] .admin-avatar{background:#19162a;color:#9d9ac0}
:root[data-theme="dark"] .admin-year-mark{border:1px solid #2f3f36;background:#18251d;color:#a8d4c0}
:root[data-theme="dark"] .admin-info-note{border:1px solid #2c303c;background:#151823;color:#a5acba}
:root[data-theme="dark"] .admin-info-note>span{background:#181a29;color:#9191b8}
:root[data-theme="dark"] .admin-info-note b{color:#b0bbcd}
:root[data-theme="dark"] .admin-main-tabs{border:1px solid #2f3239;background:#181b21}
:root[data-theme="dark"] .admin-tab{color:#a5adba}
:root[data-theme="dark"] .admin-tab>span:first-child{background:#121721;color:#9ba1b0;box-shadow:0 2px 6px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .admin-tab b{color:#afb7c5}
:root[data-theme="dark"] .admin-tab small{color:#a2a8b6}
:root[data-theme="dark"] .admin-tab:hover{background:#121721}
:root[data-theme="dark"] .admin-tab.is-active{border-color:#313e36;background:#121721;box-shadow:0 4px 13px rgba(0,0,0,0.15)}
:root[data-theme="dark"] .admin-tab.is-active>span:first-child{background:#1c2821;color:#a4d6be}
:root[data-theme="dark"] .admin-tab.is-active b{color:#a9d9c2}
:root[data-theme="dark"] .admin-context-note{border:1px solid #2f3c34;background:#18231b;color:#aabab0}
:root[data-theme="dark"] .admin-context-note>span{color:#a5d5be}
:root[data-theme="dark"] .admin-tab-panel{border:1px solid #2f3239;background:#121721;box-shadow:0 6px 22px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .admin-section-heading h2{color:#b8c3d6}
:root[data-theme="dark"] .admin-section-heading p{color:#9ca4b1}
:root[data-theme="dark"] .grade-tab{border:1px solid #2f3239;background:#161a21;color:#a5acba}
:root[data-theme="dark"] .grade-tab-mark{background:#1c1e25;color:#a3a8b6}
:root[data-theme="dark"] .grade-tab>span:nth-child(2){color:#afb7c5}
:root[data-theme="dark"] .grade-tab small{color:#a4abb6}
:root[data-theme="dark"] .grade-tab:hover{border-color:#38423c;background:#121721}
:root[data-theme="dark"] .grade-tab.is-active{border-color:#3a4c41;background:#19241c;box-shadow:0 3px 10px rgba(0,0,0,0.15)}
:root[data-theme="dark"] .grade-tab.is-active .grade-tab-mark{background:#1f2d24;color:#a4d9c0}
:root[data-theme="dark"] .grade-tab.is-active>span:nth-child(2){color:#a9d8c1}
:root[data-theme="dark"] .grade-tab-panel{border:1px solid #2d3137;background:#18181d}
:root[data-theme="dark"] .grade-panel-heading h3{color:#b7c1d3}
:root[data-theme="dark"] .grade-panel-heading p{color:#9fa6b2}
:root[data-theme="dark"] .admin-create-course,:root[data-theme="dark"] .admin-terms-section{border:1px solid #2e3338;background:#121721}
:root[data-theme="dark"] .admin-subheading h4{color:#b6c0d0}
:root[data-theme="dark"] .admin-subheading p{color:#a1a7b3}
:root[data-theme="dark"] .admin-inline-icon{background:#1c2821;color:#a1d1b8}
:root[data-theme="dark"] .admin-course-card{border:1px solid #2f333a;background:#121721}
:root[data-theme="dark"] .admin-course-icon{background:#181926;color:#9392b8}
:root[data-theme="dark"] .admin-course-title h4{color:#b6c0d4}
:root[data-theme="dark"] .admin-course-title p{color:#a0a6b2}
:root[data-theme="dark"] .admin-label{color:#9fa6b2}
:root[data-theme="dark"] .admin-course-teacher-form{border:1px solid #2d3137;background:#161a21}
:root[data-theme="dark"] .admin-course-teacher-form>label{color:#a5acb8}
:root[data-theme="dark"] .admin-course-teacher-form select{border:1px solid #30343b;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .admin-course-teacher-form small{color:#cab99b}
:root[data-theme="dark"] .admin-empty-card{border:1px dashed #31363c;background:#121721;color:#a0a6b2}
:root[data-theme="dark"] .admin-empty-card>span{background:#1b1e24;color:#9ba2b0}
:root[data-theme="dark"] .admin-term-card{border:1px solid #2f3339;background:#171a21}
:root[data-theme="dark"] .registration-summary{border:1px solid #303932;background:#18211b}
:root[data-theme="dark"] .registration-summary-icon{background:#1d2921;color:#a4d5bc}
:root[data-theme="dark"] .registration-summary b{color:#b2c1cd}
:root[data-theme="dark"] .registration-summary small{color:#a1aab1}
:root[data-theme="dark"] .admin-teacher-row{border:1px solid #2e3338;background:#171b1f}
:root[data-theme="dark"] .admin-teacher-row>div b{color:#b2bbcb}
:root[data-theme="dark"] .admin-teacher-row>div small{color:#a2a8b5}
:root[data-theme="dark"] .admin-empty-teachers{color:#a1a7b3}
:root[data-theme="dark"] .teacher-password-reset input{border:1px solid #30343b;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .student-import-panel{border:1px solid #2e3339;background:#121721}
:root[data-theme="dark"] .student-import-actions h3{color:#b6c1d3}
:root[data-theme="dark"] .student-import-actions p{color:#9fa6b3}
:root[data-theme="dark"] .student-import-note{background:#171d24;color:#9ba3b0}
:root[data-theme="dark"] .student-import-note b{color:#acb5c3}
:root[data-theme="dark"] .student-import-form input[type=file]{border:1px solid #30343b;background:#121721;color:#abb4c2}
:root[data-theme="dark"] .student-roster-grade{border:1px solid #2f3239;background:#121721}
:root[data-theme="dark"] .student-roster-scroll{border:1px solid #2d3137}
:root[data-theme="dark"] .student-roster-table th{background:#191c23;color:#a5adba}
:root[data-theme="dark"] .student-roster-table td{border-top:1px solid #2c2f36;color:#acb4c3}
:root[data-theme="dark"] .form-stack select{border:1px solid #30343b;background:#121721}
:root[data-theme="dark"] .form-stack select:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .admin-edit-dialog{border:1px solid #31353c;background:#121721;color:#b6c1d5;box-shadow:0 24px 80px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .admin-edit-dialog::backdrop{background:rgba(39,57,88,0.48)}
:root[data-theme="dark"] .admin-edit-form .field label{color:#aab1be}
:root[data-theme="dark"] .admin-edit-form .field input,:root[data-theme="dark"] .admin-edit-form .field select{border:1px solid #31353c;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .admin-edit-form .field input:focus,:root[data-theme="dark"] .admin-edit-form .field select:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .admin-edit-form .field-hint{color:#a0a8b4}
:root[data-theme="dark"] .student-account-open{color:#b1bccd}
:root[data-theme="dark"] .student-account-open span{color:#a9d4c5}
:root[data-theme="dark"] .student-account-open small{color:#a3aab6}
:root[data-theme="dark"] .teacher-navbar{background:rgba(18,23,33,0.97);border-bottom:1px solid #2f3239;box-shadow:0 5px 16px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .teacher-navbar button{color:#a5adba}
:root[data-theme="dark"] .teacher-navbar button>span{color:#9ad2bb}
:root[data-theme="dark"] .teacher-navbar button:hover,:root[data-theme="dark"] .teacher-navbar button.is-active{border-color:#2f3f36;background:#18251e;color:#a7ddc3}
:root[data-theme="dark"] .teacher-navbar button.is-active{box-shadow:inset 0 -2px 0 rgba(0,0,0,0.55)}
:root[data-theme="dark"] .grade-warning-popup{border:1px solid #594c31;background:#121721;box-shadow:0 28px 90px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .grade-warning-popup::backdrop{background:rgba(38,58,90,0.58)}
:root[data-theme="dark"] .grade-warning-icon{background:#352914;color:#efc186}
:root[data-theme="dark"] .grade-warning-close{background:#1b1e22;color:#9ba2b0}
:root[data-theme="dark"] .grade-warning-close:hover{background:#1e2227;color:#b6c1d3}
:root[data-theme="dark"] .grade-warning-kicker{color:#e8c28f}
:root[data-theme="dark"] .grade-warning-popup h2{color:#bbc8dd}
:root[data-theme="dark"] .grade-warning-popup p{color:#a5acb9}
:root[data-theme="dark"] .button.button-danger{box-shadow:0 3px 9px rgba(0,0,0,0.35)}
:root[data-theme="dark"] .button.button-danger:disabled{border-color:#393b3f;background:#2b2d30;color:#9ca2ab}
:root[data-theme="dark"] .student-admin-action-card{border:1px solid #333935;background:#121721}
:root[data-theme="dark"] .student-admin-action-card h3{color:#b7c1d2}
:root[data-theme="dark"] .student-admin-action-card p{color:#9da4b2}
:root[data-theme="dark"] .student-admin-danger-card{border-color:#422e2f;background:#270f0f}
:root[data-theme="dark"] .student-admin-danger-card .section-kicker{color:#ca9298}
:root[data-theme="dark"] .student-delete-all-dialog .course-dialog-heading p{color:#c5a7ab}
:root[data-theme="dark"] .bulk-delete-form .field input{border:1px solid #4d3638;background:#121721;color:#b9c1d0}
:root[data-theme="dark"] .bulk-delete-form .field input:focus{outline:2px solid #563537}
:root[data-theme="dark"] .teacher-delete-dialog .field select{border:1px solid #30343b;background:#121721;color:#b7c0d3}
:root[data-theme="dark"] .teacher-delete-blocked{background:#2f2312;color:#e5c49f}
:root[data-theme="dark"] .term-subject-remove:hover{border-color:#4f2f2f;background:#291010;color:#cc9494}
:root[data-theme="dark"] .term-subject-remove>span:last-child{color:#b79494}
:root[data-theme="dark"] .admin-assignment-management{border:1px solid #2f333a;background:#121721}
:root[data-theme="dark"] .admin-assignment-management .admin-subheading h3{color:#b6c0d0}
:root[data-theme="dark"] .admin-assignment-management .admin-subheading p{color:#a1a7b3}
:root[data-theme="dark"] .admin-assignment-list{border:1px solid #2d3137}
:root[data-theme="dark"] .admin-assignment-row{border-top:1px solid #2d3137}
:root[data-theme="dark"] .admin-assignment-info>b{color:#b6c0d0}
:root[data-theme="dark"] .admin-assignment-info>span{color:#a8c8ba}
:root[data-theme="dark"] .admin-assignment-info>small{color:#a0a7b3}
:root[data-theme="dark"] .teacher-last-delete-consent{border:1px solid #452d2d;background:#290f0f;color:#cea1a1}
:root[data-theme="dark"] .teacher-last-delete-consent input{accent-color:#c38585}
:root[data-theme="dark"] .grade-tab{background:#121721;box-shadow:0 3px 10px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .grade-tab.is-active{border-color:#3e5245;background:linear-gradient(135deg,#18261c,#121721);box-shadow:0 6px 16px rgba(0,0,0,0.225)}
:root[data-theme="dark"] .grade-tab-panel{border-color:#333935;background:linear-gradient(180deg,#171f17 0,#121721 190px);box-shadow:0 8px 24px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .grade-panel-heading{border-bottom:1px solid #313731}
:root[data-theme="dark"] .admin-create-course,:root[data-theme="dark"] .admin-terms-section{border-color:#323934;box-shadow:0 4px 14px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .admin-create-course{background:linear-gradient(135deg,#18231b,#121721 72%)}
:root[data-theme="dark"] .admin-course-card{border-color:#343a36;background:linear-gradient(110deg,#121721 0,#121721 70%,#171f1b 100%);box-shadow:0 5px 16px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .admin-course-card::before{background:linear-gradient(180deg,#59ad7e,#2f4737)}
:root[data-theme="dark"] .admin-course-card:hover{border-color:#39443c;box-shadow:0 9px 22px rgba(0,0,0,0.2)}
:root[data-theme="dark"] .admin-course-head{border-bottom:1px solid #303531}
:root[data-theme="dark"] .admin-course-icon{border:1px solid #2f3f35;background:linear-gradient(145deg,#1b291f,#18221a);color:#a5d5bc}
:root[data-theme="dark"] .admin-course-teacher-form{border-color:#313732;background:#1b1f1d}
:root[data-theme="dark"] .admin-course-terms .term-subject-chip{border-color:#334037;background:#18231a;color:#aad4be}
:root[data-theme="dark"] .admin-course-roster{border-top:1px dashed #253045}
:root[data-theme="dark"] .admin-course-roster li{border-color:#242e42;background:#1a1d1a}
:root[data-theme="dark"] .admin-course-card>.course-roster-empty{background:#1b1f1d}
:root[data-theme="dark"] .admin-terms-section{background:#191f1c}
:root[data-theme="dark"] .admin-terms-section>.admin-subheading{border-bottom:1px solid #303531}
:root[data-theme="dark"] .admin-term-card{border-color:#343a36;background:#121721;box-shadow:0 4px 13px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .admin-term-card .term-card-heading{border-bottom:1px solid #303531}
:root[data-theme="dark"] .admin-term-card .term-subject-chip{background:#19221b;color:#aad0bb}
:root[data-theme="dark"] .admin-empty-card{background:#171b1f}
:root[data-theme="dark"] .student-roster-grade{border-color:#343936;background:linear-gradient(180deg,#171f17,#121721 100px);box-shadow:0 5px 16px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .student-roster-grade .admin-subheading{border-bottom:1px solid #313733}
:root[data-theme="dark"] .student-roster-grade .admin-subheading p{border:1px solid #313c34;background:#18251b;color:#a7cdb7}
:root[data-theme="dark"] .student-roster-scroll{border-color:#253045}
:root[data-theme="dark"] .student-roster-table th{background:#1c231d;color:#b3c2b9}
:root[data-theme="dark"] .student-roster-table td{border-top-color:#303531}
:root[data-theme="dark"] .student-roster-table tbody tr:nth-child(even){background:#1a1d1a}
:root[data-theme="dark"] .student-roster-table tbody tr:hover{background:#19231c}
:root[data-theme="dark"] .student-roster-table .national-id-cell{color:#b0bbc9}
:root[data-theme="dark"] .student-roster-grade>.course-roster-empty{border:1px dashed #343b36;background:#1b1f1b}
:root[data-theme="dark"] .password-reset-panel{border:1px solid #2c3440;background:#0f1628;color:#b6c1d5}
:root[data-theme="dark"] .password-reset-panel summary{color:#81a7e6}
:root[data-theme="dark"] .password-reset-panel>p{color:#a0aab9}
:root[data-theme="dark"] .student-password-admin-form{border-top:1px solid #2d333b}
:root[data-theme="dark"] .admin-teacher-load-panel{border:1px solid #2f333a;background:#121721}
:root[data-theme="dark"] .admin-teacher-load-panel .admin-subheading h4{color:#b6c0d0}
:root[data-theme="dark"] .admin-teacher-load-panel .admin-subheading p{color:#a1a7b3}
:root[data-theme="dark"] .teacher-load-scroll{border:1px solid #2d333a}
:root[data-theme="dark"] .teacher-load-table th,:root[data-theme="dark"] .teacher-load-table td{border-bottom:1px solid #2d3137}
:root[data-theme="dark"] .teacher-load-table thead th{background:#191d22;color:#a6adb9}
:root[data-theme="dark"] .teacher-load-table tbody th{background:#171b1f;color:#b6c0d0}
:root[data-theme="dark"] .teacher-load-grade{color:#a9b2c0}
:root[data-theme="dark"] .teacher-load-subjects li{border:1px solid #323f37;background:#18251b;color:#accebb}
:root[data-theme="dark"] .teacher-load-empty{color:#a6acb5}
:root[data-theme="dark"] .teacher-load-no-teachers,:root[data-theme="dark"] .teacher-load-no-terms{color:#9ea6b2}
:root[data-theme="dark"] .teacher-load-no-terms{border:1px dashed #31363c;background:#161a21}
:root[data-theme="dark"] .course-roster-auto-note{border:1px solid #323f37;background:#18251b;color:#accebb}
:root[data-theme="dark"] .assignment-reopen-control{border:1px solid #343e38;background:#18221c}
:root[data-theme="dark"] .assignment-reopen-control form small{color:#a9b3ac}
:root[data-theme="dark"] .assignment-term-lock{border-color:#4a3e2d;background:#2a2010;color:#cfbba0}
:root[data-theme="dark"] .teacher-assignment-edit-dialog .assignment-edit-form .field textarea{border:1px solid #31353c;background:#121721;color:#b6c0d2}
:root[data-theme="dark"] .teacher-assignment-edit-dialog .assignment-edit-form .field textarea:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .field select{border:1px solid #30343b;background:#121721}
:root[data-theme="dark"] .field select:focus{box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .assessment-kind{color:#edcd97;background:#332913;border-color:#4f452e}
:root[data-theme="dark"] .homework-kind{color:#a8b3c4;background:#171d29;border-color:#2c3440}
:root[data-theme="dark"] .assignment-card-insights{border-inline-start:1px solid #2d3137}
:root[data-theme="dark"] .assignment-submission-stat small{color:#a0a6b3}
:root[data-theme="dark"] .assignment-submission-stat strong{color:#b6c1d3}
:root[data-theme="dark"] .assignment-submission-stat strong i{color:#a7adb8}
:root[data-theme="dark"] .assignment-submission-meter{background:#1e2125}
:root[data-theme="dark"] .assignment-submission-meter span{background:linear-gradient(90deg,#335546,#3f9d78)}
:root[data-theme="dark"] .assignment-grade-summary>span{background:#1b1c21;color:#99a2b0}
:root[data-theme="dark"] .assignment-grade-summary strong{color:#b6c1d2}
:root[data-theme="dark"] .assignment-grade-p b{color:#a3d7c0}
:root[data-theme="dark"] .assignment-grade-m b{color:#dfc08c}
:root[data-theme="dark"] .assignment-grade-d b{color:#948dc5}
@media(max-width:900px) {
  :root[data-theme="dark"] .assignment-card-insights{border-top:1px solid #2d3137}
}
:root[data-theme="dark"] .assignments-section .assignment-card-actions{border-top:1px solid #2d3137}
@media(max-width:900px) {
  :root[data-theme="dark"] .assignments-section .assignment-card-insights{border-top:1px solid #2d3137}
}
:root[data-theme="dark"] .assignment-material-manager,:root[data-theme="dark"] .assignment-materials{background:#121721;border:1px solid #2e323a;box-shadow:0 8px 24px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .materials-heading{color:#b7c3d7}
:root[data-theme="dark"] .materials-heading>span{background:#1b2621;color:#9fdec8}
:root[data-theme="dark"] .materials-heading small{color:#9fa6b3}
:root[data-theme="dark"] .assignment-material-upload input[type=file]{border:1px dashed #343a43;background:#151c22;color:#a7b0be}
:root[data-theme="dark"] .assignment-material-upload textarea{border:1px solid #30343b;background:#121721}
:root[data-theme="dark"] .assignment-material-upload .field small{color:#a1a8b6}
:root[data-theme="dark"] .materials-empty{color:#a0a6b3}
:root[data-theme="dark"] .assignment-material{border:1px solid #2d3137;background:#141822}
:root[data-theme="dark"] .material-file-icon{background:#11172c;color:#8b92bd}
:root[data-theme="dark"] .material-download b{color:#89a3d7}
:root[data-theme="dark"] .material-download small{color:#a1a8b6}
:root[data-theme="dark"] .material-teacher-comment{background:#1b241f;color:#b3bfb9}
:root[data-theme="dark"] .material-teacher-comment span{color:#a4d2c0}
:root[data-theme="dark"] .support-quote{border:1px solid #343d3d;background:linear-gradient(110deg,#19241f,#101529);box-shadow:0 8px 24px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .support-quote-mark{color:#92baaa}
:root[data-theme="dark"] .support-quote-kicker{color:#a6d2c3}
:root[data-theme="dark"] .support-quote-copy p{color:#b6c1d3}
:root[data-theme="dark"] .support-quote-copy small{color:#a0a8b3}
:root[data-theme="dark"] .support-quote-actions button{border:1px solid #343c3d;background:rgba(18,23,33,0.78);color:#a8b4c4}
:root[data-theme="dark"] .support-quote-actions button:hover{background:#121721}
:root[data-theme="dark"] .support-quote-actions .support-quote-dismiss{color:#9fa7b3}
:root[data-theme="dark"] .teacher-account-overview article{border:1px solid #2f3439;background:#191e20}
:root[data-theme="dark"] .teacher-account-overview small{color:#9fa7b2}
:root[data-theme="dark"] .teacher-account-overview b{color:#b6c0d2}
:root[data-theme="dark"] .teacher-account-course,:root[data-theme="dark"] .teacher-account-assignment{border:1px solid #2f3439;background:#121721}
:root[data-theme="dark"] .teacher-account-course b,:root[data-theme="dark"] .teacher-account-assignment b{color:#b4bdcd}
:root[data-theme="dark"] .teacher-account-course small,:root[data-theme="dark"] .teacher-account-assignment small{color:#a0a7b2}
:root[data-theme="dark"] .teacher-account-terms span{background:#1b261f;color:#a8c7b4}
:root[data-theme="dark"] .teacher-account-empty{border:1px dashed #31353c;color:#a0a7b2}
:root[data-theme="dark"] .student-password-panel{background:#121721;border:1px solid #2f333a;box-shadow:0 18px 45px rgba(0,0,0,0.175)}
:root[data-theme="dark"] a.logout-button{border:1px solid #303339;color:#adb4c0}
:root[data-theme="dark"] .submission-history{border:1px solid #303339;background:#141822}
:root[data-theme="dark"] .submission-history .history-heading{border-bottom:1px solid #2e3338;color:#b2bbca}
:root[data-theme="dark"] .submission-timeline{border-inline-start:2px solid #30343a}
:root[data-theme="dark"] .submission-commit{border-bottom:1px solid #2d3137}
:root[data-theme="dark"] .submission-commit::before{border:2px solid #1e2738;background:#40424a;box-shadow:0 0 0 1px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .submission-commit:first-child::before{box-shadow:0 0 0 1px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .submission-commit .version-number{border:1px solid #31353b;background:#121721;color:#aab2c0}
:root[data-theme="dark"] .submission-commit:first-child .version-number{border-color:#354a40;background:#18271f;color:#a8e1c8}
:root[data-theme="dark"] .password-visibility-toggle{color:#a5aebc}
:root[data-theme="dark"] .password-visibility-toggle:hover,:root[data-theme="dark"] .password-visibility-toggle:focus-visible{background:#1a2025;color:#b4c4dd}
:root[data-theme="dark"] .student-bulk-reset-button{border-color:#4c4132;background:#2c2111;color:#e4c49c}
:root[data-theme="dark"] .assignment-material-create input[type=file]{border:1px solid #31373f;background:#121721}
:root[data-theme="dark"] .assignment-material-create textarea{border:1px solid #31373f;background:#121721}
:root[data-theme="dark"] .feedback-image-picker input[type=file]{border:1px solid #31373f;background:#121721}
:root[data-theme="dark"] .feedback-image-picker small{color:var(--muted,#9da3b0)}
:root[data-theme="dark"] .feedback-image-picker[data-error]::after{color:#d08e96}
:root[data-theme="dark"] .feedback-image-preview img,:root[data-theme="dark"] .student-feedback-images img,:root[data-theme="dark"] .teacher-feedback-images img{border:1px solid #31373f}
:root[data-theme="dark"] .feedback-image-preview figcaption,:root[data-theme="dark"] .student-feedback-images>span,:root[data-theme="dark"] .teacher-feedback-images>span{color:var(--muted,#9da3b0)}
:root[data-theme="dark"] .assignment-existing-materials{border:1px solid #2f363f;background:#171c21}
:root[data-theme="dark"] .existing-assignment-material{border:1px solid #2f343b;background:#121721}
:root[data-theme="dark"] .existing-assignment-material>a{color:var(--ink,#becbe4)}
:root[data-theme="dark"] .existing-assignment-material>small{color:var(--muted,#9da3b0)}
:root[data-theme="dark"] .existing-assignment-material>label{color:#d0959d}
:root[data-theme="dark"] .material-image-preview img{border:1px solid #2f353c;background:#121721}
:root[data-theme="dark"] .assignment-instruction-editor[data-error]::after{color:#d08e96}
:root[data-theme="dark"] .assignment-instruction-editor{border:1px dashed #31373f;background:rgba(22,27,35,0.7)}
:root[data-theme="dark"] .assignment-instructions{border:1px solid #2f363f;background:#121721}
:root[data-theme="dark"] .pasted-image-remove{border:1px solid #473033;background:#291012;color:#d6929b}
:root[data-theme="dark"] .existing-material-thumb{border:1px solid #2f353c;background:#121721}
:root[data-theme="dark"] .instruction-attachment-input{border:1px dashed #353c45;background:#121721;color:#abb4c3}
:root[data-theme="dark"] .feedback-image-preview video,:root[data-theme="dark"] .existing-material-thumb,:root[data-theme="dark"] .material-video-preview{border:1px solid #2f353c;background:#404040}
:root[data-theme="dark"] .assignment-instruction-editor.is-dragging{background:#182720}
:root[data-theme="dark"] .assignment-instruction-editor.is-dragging::before{background:rgba(21,38,30,0.95);color:#a8dcc7}
:root[data-theme="dark"] .student-upload-dropzone.is-dragging{background:#182720}
:root[data-theme="dark"] .student-upload-dropzone.is-dragging::before{background:rgba(21,38,30,0.95);color:#a8dcc7}
:root[data-theme="dark"] .student-upload-dropzone[data-error]::after{color:#d08e96}
:root[data-theme="dark"] .student-upload-dropzone [data-student-upload-name]:not(:empty){color:#a8dcc7}
:root[data-theme="dark"] .mini-status.late{color:#cd979c;border:1px solid #482d2f}
:root[data-theme="dark"] .status-badge.status-late{color:#cd979c;border:1px solid #482d2f}
:root[data-theme="dark"] .topbar-link{background:#1a1d25;color:#b2bcd1}
:root[data-theme="dark"] .notification-list button{background:#161a21;color:#aab5c6}
:root[data-theme="dark"] .notification-list li.unread button{border-color:#242a47}
:root[data-theme="dark"] .notification-list li.unread .notification-dot{background:#2e3560}
:root[data-theme="dark"] .grade-table td{border-bottom:1px solid #2c2f36}
:root[data-theme="dark"] .report-grade{color:#a6dcc7}
@media print {
  :root[data-theme="dark"] body{background:#121721}
}
:root[data-theme="dark"] .feedback-draft-note{background:#2f2612;color:#eaca9b}
:root[data-theme="dark"] .feedback-draft-discard{color:#e2a18c}
:root[data-theme="dark"] .review-edit-toggle{border:1px solid #30343d;background:#121721;color:#8c96d1}
:root[data-theme="dark"] .review-edit[open]>.review-edit-toggle{background:#11152c;border-color:#2a304a}
@media(hover:hover) {
  :root[data-theme="dark"] .review-edit-toggle:hover{background:#10142a}
}
:root[data-theme="dark"] .student-extension small{color:#9da3af}
:root[data-theme="dark"] .extension-state{color:#acddcb}
:root[data-theme="dark"] .status-badge.status-extension{color:#acddcb;background:#1b2c23}
:root[data-theme="dark"] .feedback-copy{border:1px solid #2b3146;background:#121721;color:#8c96d1}
:root[data-theme="dark"] .feedback-copy.is-copied{border-color:#3b5649;background:#1a2921;color:#a5e1c9}
:root[data-theme="dark"] .feedback-note-revision .feedback-copy{border-color:#594a31;color:#f7c596}
:root[data-theme="dark"] .feedback-more{border:1px dashed #2e3349;background:rgba(18,23,33,0.7);color:#8c96d1}
:root[data-theme="dark"] .feedback-note-revision .feedback-more{border-color:#594a31;color:#f7c596}
:root[data-theme="dark"] .email-current{border:1px solid #2f4539;background:#17261e}
:root[data-theme="dark"] .email-current small{color:#a9b1be}
:root[data-theme="dark"] .email-banner{border:1px solid #282c44;background:#101429}
:root[data-theme="dark"] .email-banner p{color:#a8b0d4}
:root[data-theme="dark"] .student-email-cell .email-address{color:#bec8da}
:root[data-theme="dark"] .student-email-cell .email-none{color:#a3aab6}
:root[data-theme="dark"] .row-action{border:1px solid #30343d;background:#121721;color:#b6c0d4}
:root[data-theme="dark"] .row-action-danger{border-color:#482e30;color:#d28e95}
@media(hover:hover) {
  :root[data-theme="dark"] .row-action:hover{background:#191c24;border-color:#363a44}
  :root[data-theme="dark"] .row-action-danger:hover{background:#291415;border-color:#533639}
}
@media(max-width:640px) {
  :root[data-theme="dark"] .student-roster-table tbody tr{border:1px solid #343936;background:#121721}
  :root[data-theme="dark"] .student-roster-table tbody tr:nth-child(even),:root[data-theme="dark"] .student-roster-table tbody tr:hover{background:#121721}
  :root[data-theme="dark"] .student-roster-table td:nth-child(5){border-top:1px solid #2d3236}
  :root[data-theme="dark"] .student-roster-table .national-id-cell::before{color:#9da3af}
  :root[data-theme="dark"] .student-roster-table .student-email-cell::before{color:#9da3af}
}
:root[data-theme="dark"] .edit-hint{color:#a3a9b7}
:root[data-theme="dark"] .status-badge.status-changed{color:#f7c596;background:#332613;border:1px solid #5b4a2f}
:root[data-theme="dark"] .version-delete{border:1px solid #482e30;background:#121721;color:#d28e95}
@media(hover:hover) {
  :root[data-theme="dark"] .version-delete:hover{background:#291415}
}
:root[data-theme="dark"] .file-row{border:1px solid #2f343b;background:#121721}
:root[data-theme="dark"] .file-row .file-name{color:#bec8da}
:root[data-theme="dark"] .file-action{border:1px solid #30343d;background:#121721;color:#b6c0d4}
:root[data-theme="dark"] .file-action-danger{border-color:#482e30;color:#d28e95}
:root[data-theme="dark"] .file-add-button{border:1px dashed #333a4d;background:#0f1529;color:#8c96d1}
@media(hover:hover) {
  :root[data-theme="dark"] .file-action:hover{background:#191c24}
  :root[data-theme="dark"] .file-action-danger:hover{background:#291415}
  :root[data-theme="dark"] .file-add-button:hover{background:#11152c}
}
:root[data-theme="dark"] .account-tabs{background:var(--canvas,#1b1c21)}
:root[data-theme="dark"] .account-tabs a{border:1px solid #30343d;background:#121721;color:#b6c0d4}
:root[data-theme="dark"] .account-section{border:1px solid #303339;background:#121721;box-shadow:0 4px 14px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .account-icon{background:#11152c;color:#8c96d1}
:root[data-theme="dark"] .passkey-row{border:1px solid #2f343b}
:root[data-theme="dark"] .passkey-info small{color:#9da3af}
:root[data-theme="dark"] .passkey-add-row input{border:1px solid #30343b}
:root[data-theme="dark"] .passkey-or{color:#a4aab5}
:root[data-theme="dark"] .passkey-or::before,:root[data-theme="dark"] .passkey-or::after{background:#202328}
:root[data-theme="dark"] .topbar .notif .notif-panel{background:#121721}
:root[data-theme="dark"] .saved-feedback-time{color:#9ca3b0}
:root[data-theme="dark"] .review-filter{border:1px solid #2f343b;background:#121721}
:root[data-theme="dark"] .review-search{border:1px solid #30353d;background:#171c21;color:#9ca3b0}
:root[data-theme="dark"] .review-search:focus-within{border-color:#373d5d;background:#121721;box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .review-search input{color:#bec9dc}
:root[data-theme="dark"] .review-chip{border:1px solid #2f353d;background:#121721;color:#afb8c7}
:root[data-theme="dark"] .review-chip b{background:#1c2025;color:#afb8c7}
:root[data-theme="dark"] .review-filter-empty{color:#9ca3b0}
:root[data-theme="dark"] .assignment-card-actions .button-danger{background:#121721;color:#d5908e;border:1px solid #4a302e}
:root[data-theme="dark"] .assignment-card-actions .button-danger:hover{background:#291514;border-color:#583b38}
@media (max-width:640px) {
  :root[data-theme="dark"] .teacher-load-table tbody tr{border:1px solid #2f343b;background:#121721}
  :root[data-theme="dark"] .teacher-load-table td{border-top:1px dashed #2e3239}
  :root[data-theme="dark"] .teacher-load-table td.teacher-load-grade{color:#9ca3b0}
  :root[data-theme="dark"] .teacher-load-table td[data-label]::before{color:#a6d2c3}
}
:root[data-theme="dark"] .admin-account-link{border:1px solid #2e333d;background:#121721;color:#96a0d8}
:root[data-theme="dark"] .admin-account-link:hover{border-color:#313654;background:#0f1228}
:root[data-theme="dark"] .admin-account-link b{color:#bec9dc}
:root[data-theme="dark"] .admin-account-link small{color:#9ca3b0}
:root[data-theme="dark"] .admin-account-link-icon{background:#11152c}
:root[data-theme="dark"] .admin-assignment-row .button-danger{background:#121721;color:#d5908e;border:1px solid #4a302e}
:root[data-theme="dark"] .admin-assignment-row .button-danger:hover{background:#291514;border-color:#583b38}
:root[data-theme="dark"] .admin-teacher-row .button-danger{background:#121721;color:#d5908e;border:1px solid #4a302e}
:root[data-theme="dark"] .admin-teacher-row .button-danger:hover{background:#291514;border-color:#583b38}
:root[data-theme="dark"] .theme-toggle{border:1px solid #2f343c;background:#121721;color:#b1bbd0}
:root[data-theme="dark"] .theme-toggle:hover{border-color:#343a4d}
:root[data-theme="dark"] .theme-toggle-floating{box-shadow:0 6px 18px rgba(0,0,0,0.375)}
:root[data-theme="dark"] .app-install{border:1px solid #2c323f;background:linear-gradient(110deg,#101429,#19241f)}
:root[data-theme="dark"] .app-install-copy b{color:#bec9dc}
:root[data-theme="dark"] .app-install-copy small{color:#a3a9b7}
:root[data-theme="dark"] .app-install-close{color:#9ca3b0}
:root[data-theme="dark"] .app-install-steps{color:#b5bece}
:root[data-theme="dark"] .app-install-done{color:#a5e1cc}
:root[data-theme="dark"] .notif-device-hint{color:#aab1be}
:root[data-theme="dark"] .theme-choice-label{color:#aab1be}
:root[data-theme="dark"] .theme-choice button{border:1px solid #30353d;background:#121721;color:#b5bece}
:root[data-theme="dark"] .theme-choice button small{color:#a0a8b3}
:root[data-theme="dark"] .file-preview-button{border:1px solid #2c3243;background:#10142a;color:#96a0d8}
:root[data-theme="dark"] .file-preview-button:hover{background:#12162f;border-color:#323752}
:root[data-theme="dark"] .file-viewer{background:#121721;box-shadow:0 30px 80px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .file-viewer::backdrop{background:rgba(36,55,92,0.55)}
:root[data-theme="dark"] .file-viewer-head{border-bottom:1px solid #303339}
:root[data-theme="dark"] .file-viewer-title{color:#bec9dc}
:root[data-theme="dark"] .file-viewer-close{background:#1c1f24;color:#b5bece}
:root[data-theme="dark"] .file-viewer-frame{background:#1e2024}
:root[data-theme="dark"] .verification-row{border:1px solid #2f343b;background:#121721}
:root[data-theme="dark"] .verification-row:hover{border-color:#32384f;box-shadow:0 8px 22px rgba(0,0,0,0.2)}
:root[data-theme="dark"] .verification-row-main b{color:#bec9dc}
:root[data-theme="dark"] .verification-row-main small{color:#9ca3b0}
:root[data-theme="dark"] .verification-arrow{color:#a0a8b3}
:root[data-theme="dark"] .iv-total{color:#9ca3b0}
:root[data-theme="dark"] .iv-waiting{background:#1c2025;color:#afb8c7}
:root[data-theme="dark"] .iv-agreed{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .iv-changes{background:#312312;color:#ebbb8d}
:root[data-theme="dark"] .iv-outdated{background:#1c1529;color:#a291c9}
:root[data-theme="dark"] .iv-suggested{background:#11152c;color:#96a0d8}
:root[data-theme="dark"] .verify-card{border:1px solid #2f343b;background:#121721}
:root[data-theme="dark"] .verify-card[data-iv-state="agreed"]{border-color:#364a41}
:root[data-theme="dark"] .verify-card[data-iv-state="changes"]{border-color:#594830}
:root[data-theme="dark"] .verify-card-name b{color:#bec9dc}
:root[data-theme="dark"] .verify-card-name small{color:#9ca3b0}
:root[data-theme="dark"] .verify-label{color:#a6d2c3}
:root[data-theme="dark"] .verify-feedback p{background:#161b23;color:#b8c1d3}
:root[data-theme="dark"] .verify-current.is-agreed{background:#182720;color:#ace1ce}
:root[data-theme="dark"] .verify-current.is-changes{background:#2d2111;color:#edc49a}
:root[data-theme="dark"] .verify-current p{color:#b8c1d3}
:root[data-theme="dark"] .verify-history{color:#afb8c7}
:root[data-theme="dark"] .verify-form{border-top:1px dashed #2f343b}
:root[data-theme="dark"] .verify-form legend{color:#bec9dc}
:root[data-theme="dark"] .verify-choice{border:1px solid #30353d;background:#121721}
:root[data-theme="dark"] .verify-choice:has(input:checked){background:#182720;color:#ace1ce}
:root[data-theme="dark"] .verify-choice-changes:has(input:checked){background:#2d2111;color:#edc49a}
:root[data-theme="dark"] .verify-note-label{color:#afb8c7}
:root[data-theme="dark"] .verify-note-label small{color:#a0a8b3}
:root[data-theme="dark"] .verify-form textarea{border:1px solid #30353d}
:root[data-theme="dark"] .iv-result.is-agreed{background:#182720;color:#ace1ce}
:root[data-theme="dark"] .iv-result.is-changes{background:#2d2111;color:#edc49a}
:root[data-theme="dark"] .iv-result.is-outdated{background:#1b1428;color:#a999cf}
:root[data-theme="dark"] .iv-result p{color:#b8c1d3}
:root[data-theme="dark"] .status-badge.iv-badge-agreed{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .status-badge.iv-badge-changes{background:#312312;color:#ebbb8d}
:root[data-theme="dark"] .sample-meter.is-short{background:#312312;color:#ebbb8d}
:root[data-theme="dark"] .sample-meter.is-ok{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .sample-option{border:1px solid #2f343c;background:#121721}
:root[data-theme="dark"] .sample-option:has(input:checked){background:#10142a}
:root[data-theme="dark"] .sample-option input[type=checkbox]{accent-color:#96a0d8}
:root[data-theme="dark"] .sample-name{color:#bec9dc}
:root[data-theme="dark"] .iv-short{background:#312312;color:#ebbb8d}
:root[data-theme="dark"] .iv-sampled{background:#11152c;color:#96a0d8}
:root[data-theme="dark"] .admin-course-verifier-form small{color:#9ca3b0}
:root[data-theme="dark"] .grade-remove-button{background:#121721;color:#d5908e;border:1px solid #4a302e}
:root[data-theme="dark"] .grade-remove-button:hover{background:#291514;border-color:#583b38}
:root[data-theme="dark"] .topbar-link[aria-current="page"]{background:#11152c;color:#96a0d8;border-color:#2a304a}
@media (max-width:760px) {
  :root[data-theme="dark"] .nav-toggle{border:1px solid #2f343c;background:#121721}
  :root[data-theme="dark"] .topbar.is-menu-open .nav-menu{background:#121721;border-bottom:1px solid #303339;box-shadow:0 18px 40px rgba(0,0,0,0.4)}
  :root[data-theme="dark"] .nav-menu-who{border-bottom:1px solid #2d3036}
  :root[data-theme="dark"] .nav-menu-who b{color:#bec9dc}
  :root[data-theme="dark"] .nav-menu-who small{color:#9ca3b0}
  :root[data-theme="dark"] .nav-menu-link{border:1px solid #303339;background:#121721;color:#bec9dc}
  :root[data-theme="dark"] .nav-menu-link[aria-current="page"]{background:#11152c;border-color:#2a304a;color:#96a0d8}
  :root[data-theme="dark"] .nav-menu-logout .logout-button{border:1px solid #452d2f;background:#290f0f;color:#d5908e}
}
:root[data-theme="dark"] .sample-share li{border:1px solid #2f343c;background:#121721;color:#afb8c7}
:root[data-theme="dark"] .sample-share .grade-m b{background:#33365a}
:root[data-theme="dark"] .sample-share strong{color:#bec9dc}
:root[data-theme="dark"] .grade-section-tabs{border:1px solid #2f343b;background:#181b21}
:root[data-theme="dark"] .grade-section-tab{color:#afb8c7}
:root[data-theme="dark"] .grade-section-tab b{background:#1f2228;color:#afb8c7}
:root[data-theme="dark"] .grade-section-tab.is-active,:root[data-theme="dark"] .grade-section-tab[aria-selected="true"]{background:#121721;color:#96a0d8;box-shadow:0 2px 8px rgba(0,0,0,0.25)}
:root[data-theme="dark"] .grade-section-tab[aria-selected="true"] b{background:#11152c;color:#96a0d8}
:root[data-theme="dark"] .course-verifier-note{color:#96a0d8}
:root[data-theme="dark"] .admin-course-actions .button-danger{background:#121721;color:#d5908e;border:1px solid #4a302e}
:root[data-theme="dark"] .admin-course-actions .button-danger:hover{background:#291514;border-color:#583b38}
:root[data-theme="dark"] .brand-name b{color:#7b75dd}
:root[data-theme="dark"] .brand-light .brand-name b{color:#8294ed}
:root[data-theme="dark"] .announcement-form select,:root[data-theme="dark"] .announcement-form input[type=url],:root[data-theme="dark"] .announcement-form input:not([type]){border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .announcement-form textarea{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .announcement-card{background:#121721;border:1px solid #2e3138;box-shadow:0 5px 18px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .announcement-card:target{border-color:#283158;box-shadow:0 0 0 3px rgba(0,0,0,0.375)}
:root[data-theme="dark"] .announcement-heading small{color:#9ea6b3}
:root[data-theme="dark"] .announcement-body{color:#b5bece}
:root[data-theme="dark"] .announcement-video{background:#25335b}
:root[data-theme="dark"] .announcement-player video{background:#25335b}
:root[data-theme="dark"] .announcement-player figcaption,:root[data-theme="dark"] .announcement-sound figcaption{color:#a5abb7}
:root[data-theme="dark"] .announcement-player figcaption a{color:#7b75dd}
:root[data-theme="dark"] .announcement-sound{border:1px solid #2e3138}
:root[data-theme="dark"] .announcement-image{border:1px solid #2e3138;background:#181a22}
:root[data-theme="dark"] .announcement-files li{border:1px solid #2e3138;background:#161a21}
:root[data-theme="dark"] .announcement-files a{color:#b6c1d3}
:root[data-theme="dark"] .announcement-files a:hover{color:#7b75dd}
:root[data-theme="dark"] .announcement-files small{color:#a4aab5}
:root[data-theme="dark"] .voice-button{border:1px solid #2a2c43;background:#10122a;color:#9693d2}
:root[data-theme="dark"] .voice-button:hover{background:#11132e}
:root[data-theme="dark"] .voice-button.is-listening{background:#2d1414;border-color:#512d2d;color:#df8b8b}
:root[data-theme="dark"] .voice-lang{border:1px solid #30343b;background:#121721;color:#b0b7c7}
:root[data-theme="dark"] .voice-status{color:#9ea6b3}
:root[data-theme="dark"] .announcement-edited{color:#dabb95}
:root[data-theme="dark"] .announcement-edit{border-top:1px solid #2d3036}
:root[data-theme="dark"] .announcement-edit>summary{color:#7b75dd}
:root[data-theme="dark"] .announcement-file-choices{border:1px solid #2e3138}
:root[data-theme="dark"] .announcement-file-choices legend{color:#adb4bf}
:root[data-theme="dark"] .composer-step{border:1px solid #2e313a;background:#121721}
:root[data-theme="dark"] .composer-step:focus-within{border-color:#282a4b;box-shadow:0 0 0 4px rgba(0,0,0,0.175)}
:root[data-theme="dark"] .composer-step.has-error{border-color:#4f2e2e;box-shadow:0 0 0 4px rgba(0,0,0,0.15)}
:root[data-theme="dark"] .composer-step legend{color:#bcbae6}
:root[data-theme="dark"] .step-mark{background:#11142c;color:#7b75dd}
:root[data-theme="dark"] .composer-step.has-error .step-mark{background:#2f1515;color:#df8b8b}
:root[data-theme="dark"] .step-summary{color:#a5e1cc}
:root[data-theme="dark"] .composer-layout .field>label,:root[data-theme="dark"] .composer-layout .field-label{color:#b7c0d3}
:root[data-theme="dark"] .char-count{color:#a4aab5}
:root[data-theme="dark"] .char-count.is-near{color:#df8b8b}
:root[data-theme="dark"] .composer-layout select,:root[data-theme="dark"] .composer-layout input[type=text],:root[data-theme="dark"] .composer-layout input[type=datetime-local]{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .segmented span{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .segmented b{color:#b7c0d3}
:root[data-theme="dark"] .segmented small{color:#9ea6b3}
:root[data-theme="dark"] .segmented input:checked+span{background:#10122a;box-shadow:inset 0 0 0 1px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .segmented input:checked+span b{color:#9693d2}
:root[data-theme="dark"] .quick-pick{border:1px solid #2e313e;background:#121721;color:#b0b7c7}
:root[data-theme="dark"] .quick-pick:hover{border-color:#283158;color:#9693d2;background:#0f1229}
:root[data-theme="dark"] .quick-pick.is-active{background:#2c2963}
:root[data-theme="dark"] .quick-pick-quiet{color:#9ea6b3}
:root[data-theme="dark"] .composer-note{color:#a5e1cc}
:root[data-theme="dark"] .composer-note.is-error{color:#df8b8b}
:root[data-theme="dark"] .composer-remembered{color:#adb4bf}
:root[data-theme="dark"] .field-error{color:#df8b8b}
:root[data-theme="dark"] .composer-preview{background:#171925;border:1px solid #2c2f3d}
:root[data-theme="dark"] .preview-caption{color:#9693d2}
:root[data-theme="dark"] .preview-card{box-shadow:0 10px 30px rgba(0,0,0,0.2)}
:root[data-theme="dark"] .preview-card .assignment-description.is-placeholder{color:#a5acb8}
:root[data-theme="dark"] .preview-card .file-chips:empty:before{color:#a5acb8}
:root[data-theme="dark"] .composer-checklist li{color:#a5abb7}
:root[data-theme="dark"] .composer-checklist li:before{border:2px solid #373a43;background:#121721}
:root[data-theme="dark"] .composer-checklist li.is-done{color:#c5ddd6}
:root[data-theme="dark"] .composer-publish.is-ready{background:#2c2963;box-shadow:0 8px 22px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .composer-publish-note{color:#a5abb7}
:root[data-theme="dark"] .password-visibility-toggle{background:#10122a;color:#9693d2}
:root[data-theme="dark"] .password-visibility-toggle[aria-pressed=true]{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .drop-zone{border:2px dashed #2f3245;background:#0f1427;color:#8a8fc0}
:root[data-theme="dark"] .drop-zone:hover,:root[data-theme="dark"] .announcement-drop.is-dragging .drop-zone{background:#10122b;color:#9693d2}
:root[data-theme="dark"] .upload-progress{background:#222060;box-shadow:0 18px 50px rgba(0,0,0,0.55)}
:root[data-theme="dark"] .unit-block{border:1px solid #2e313a;background:#121721}
:root[data-theme="dark"] .criterion-edit textarea{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .band-P .criterion-code{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .band-M .criterion-code{background:#11142c;color:#9693d2}
:root[data-theme="dark"] .band-D .criterion-code{background:#332613;color:#edc593}
:root[data-theme="dark"] .criteria-check{border:1px solid #2e313a;background:#0f1527}
:root[data-theme="dark"] .criteria-check legend{color:#b7c0d3}
:root[data-theme="dark"] .criteria-check label{color:#b0b7c7}
:root[data-theme="dark"] .criteria-check input{accent-color:#86ebc9}
:root[data-theme="dark"] .criteria-check .band-P b{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .criteria-check .band-M b{background:#11142c;color:#9693d2}
:root[data-theme="dark"] .criteria-check .band-D b{background:#332613;color:#edc593}
:root[data-theme="dark"] .criteria-check label:has(input:checked) span{color:#bcbae6}
:root[data-theme="dark"] .criteria-result{color:#a5e1cc}
:root[data-theme="dark"] .criteria-result.is-short{color:#df8b8b}
:root[data-theme="dark"] .criteria-map{background:#121721;border:1px solid #2e3138;box-shadow:0 5px 18px rgba(0,0,0,0.12)}
:root[data-theme="dark"] .map-head small{color:#9ea6b3}
:root[data-theme="dark"] .map-grade{background:#1b1c24;color:#9ea6b3}
:root[data-theme="dark"] .map-grade.grade-p{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .map-grade.grade-m{background:#11142c;color:#9693d2}
:root[data-theme="dark"] .map-grade.grade-d{background:#332613;color:#edc593}
:root[data-theme="dark"] .map-progress{color:#a5abb7}
:root[data-theme="dark"] .map-progress i{background:#1d1f25}
:root[data-theme="dark"] .map-progress i b{background:linear-gradient(90deg,#10B981,#2c2963)}
:root[data-theme="dark"] .map-col h4{color:#adb4bf}
:root[data-theme="dark"] .map-col li{border:1px dashed #33363f;background:#161a21;color:#a4aab6}
:root[data-theme="dark"] .map-col li.is-met{color:#bcbae6}
:root[data-theme="dark"] .band-P li.is-met{background:#1b2923;border-color:#3b564b;box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .band-M li.is-met{background:#11142c;border-color:#272b51;box-shadow:0 0 0 3px rgba(0,0,0,0.3)}
:root[data-theme="dark"] .band-D li.is-met{background:#312512;border-color:#604d31;box-shadow:0 0 0 3px rgba(0,0,0,0.4)}
:root[data-theme="dark"] .band-P li.is-met b{color:#a5e1cc}
:root[data-theme="dark"] .band-M li.is-met b{color:#9693d2}
:root[data-theme="dark"] .band-D li.is-met b{color:#edc593}
:root[data-theme="dark"] .map-next{background:#2c2111;color:#e9c99b}
:root[data-theme="dark"] .map-next.is-done{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .aims-criteria{border:1px solid #2e323c;background:#0f1427}
:root[data-theme="dark"] .aims-criteria-head{color:#bcbae6}
:root[data-theme="dark"] .aims-criteria-head span{color:#a5abb7}
:root[data-theme="dark"] .aims-criteria-empty{color:#a5abb7}
:root[data-theme="dark"] .aims-criteria-list li{background:#121721;border:1px solid #2c3038;color:#b2bcd1}
:root[data-theme="dark"] .aims-criteria-list li.band-P b{background:#1b2923;color:#a5e1cc}
:root[data-theme="dark"] .aims-criteria-list li.band-M b{background:#11142c;color:#9693d2}
:root[data-theme="dark"] .aims-criteria-list li.band-D b{background:#312613;color:#f6cc90}
:root[data-theme="dark"] .met-version{color:var(--met,#b0b7c7);background:var(--met-bg,#1e2024)}
:root[data-theme="dark"] .met-legend{color:#a5abb7}
:root[data-theme="dark"] .version-criteria{background:#0f1427;border:1px solid #2c3038}
:root[data-theme="dark"] .version-criteria-title{color:#b2bcd1}
:root[data-theme="dark"] .remember-me{border:1px solid #30343b;background:#171b1f}
:root[data-theme="dark"] .remember-me input{accent-color:#7b75dd}
:root[data-theme="dark"] .remember-me b{color:#bcbae6}
:root[data-theme="dark"] .remember-me small{color:#a5abb7}
/* from design-system.css */
@media (max-width: 640px) {
  :root[data-theme="dark"] .grade-table tr{border-bottom:1px solid #2c3137}
}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="dark"] .notification-list button:hover{border-color:#353a43;background:#191c24}
  :root[data-theme="dark"] .topbar-link:hover{background:#1e2229}
}
:root[data-theme="dark"] .submission-history .feedback-note,:root[data-theme="dark"] .feedback-note{border:1px solid #282c44;background:#101429}
:root[data-theme="dark"] .feedback-note-icon{color:#7b88d4}
:root[data-theme="dark"] .feedback-note-head strong{color:#96a0d8}
:root[data-theme="dark"] .submission-history .feedback-note.feedback-note-revision,:root[data-theme="dark"] .feedback-note.feedback-note-revision{border-color:#574830;background:#2d2311}
:root[data-theme="dark"] .feedback-note-revision .feedback-note-icon{color:#eab17f}
:root[data-theme="dark"] .feedback-note-revision .feedback-note-head strong{color:#f7c596}
:root[data-theme="dark"] .teacher-version .saved-feedback{border:1px solid #2e323e;background:#151724}
:root[data-theme="dark"] .teacher-version .saved-feedback span{color:#969cc9}
:root[data-theme="dark"] .teacher-version .saved-feedback.feedback-note-revision{background:#2b2110}
:root[data-theme="dark"] .feedback-image-preview figure.preview-file{background:#121721}
:root[data-theme="dark"] .preview-file-icon{color:#8c96d1}
:root[data-theme="dark"] .notif-bell{background:#1d1f25}
:root[data-theme="dark"] .notif-bell[aria-expanded="true"]{background:#121830;color:#8c96d1}
:root[data-theme="dark"] .notif-badge{border:2px solid #1e2738}
:root[data-theme="dark"] .notif-panel{background:#121721;box-shadow:0 12px 28px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2)}
:root[data-theme="dark"] .notif-read-all{color:#687ced}
:root[data-theme="dark"] .notif-tabs button[aria-selected="true"]{background:#12162f;color:#8c96d1}
:root[data-theme="dark"] .notif-text{color:#bbc1ce}
:root[data-theme="dark"] .notif-item.is-unread .notif-time{color:#687ced}
:root[data-theme="dark"] .notif-item.is-unread .notif-dot{background:#1f2a69}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="dark"] .notif-bell:hover{background:#21232a}
  :root[data-theme="dark"] .notif-item:hover{background:#1b1e23}
  :root[data-theme="dark"] .notif-read-all:hover,:root[data-theme="dark"] .notif-tabs button:hover{background:#1b1e23}
}
:root[data-theme="dark"] .notif-item:active{background:#1e2127}
:root[data-theme="dark"] .review-student-card.notification-target{outline:3px solid #293160}
:root[data-theme="dark"] .error-code{color:#aab4c6}
:root[data-theme="dark"] .receipt-link{color:#8c96d1}
:root[data-theme="dark"] .receipt-head{border-bottom:1px dashed #343940}
:root[data-theme="dark"] .receipt-status.is-on-time{color:#aadfcc}
:root[data-theme="dark"] .receipt-status.is-late{color:#d1999f}
:root[data-theme="dark"] .receipt-foot{border-top:1px dashed #343940}
:root[data-theme="dark"] .receipt-search input{border:1px solid #31353c}
@media print {
  :root[data-theme="dark"] .receipt-page{background:#121721}
}
:root[data-theme="dark"] .notif-avatar.is-system{background:#121721;border:1px solid var(--line, #2f333b)}
:root[data-theme="dark"] .notif-foot{border-top:1px solid var(--line, #2f333b)}
:root[data-theme="dark"] .notif-device-toggle{background:#12162f;color:#8c96d1}
:root[data-theme="dark"] .notif-device-toggle.is-on{background:#1b1e23;color:var(--muted, #afb4be)}
/* Hand-written dark-mode rules, appended to the generated ones by tools/make-dark-css.py. */
:root[data-theme="dark"] body{background:#0f1522;color:#e6ebf3}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=file]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background-color:#111827;color:#e6ebf3;border-color:#323d52}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#6f7b90}
:root[data-theme="dark"] dialog{background:#161d2b;color:#e6ebf3}
:root[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.6)}
:root[data-theme="dark"] .topbar{background:#121a29;border-color:#232d40}
:root[data-theme="dark"] .notice.success{background:#15302a;color:#9fe0c3;border-color:#245043}
:root[data-theme="dark"] .notice.error{background:#341a1d;color:#f3b4ba;border-color:#5a2b31}
:root[data-theme="dark"] .notice.warning{background:#33270f;color:#f0cf8f;border-color:#5a4520}
:root[data-theme="dark"] a:not(.button):not([class*="chip"]):not([class*="badge"]){color:inherit}
:root[data-theme="dark"] .brand-logo{box-shadow:0 0 0 1px #2a3447}
:root[data-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#2c3648;border-radius:10px}
:root[data-theme="dark"] ::-webkit-scrollbar-track{background:transparent}
:root[data-theme="dark"] .theme-toggle{background:#1b2333;border-color:#2e384c;color:#ffd77a}
:root[data-theme="dark"] .file-viewer-frame{background:#fff}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{-webkit-text-fill-color:#e6ebf3;caret-color:#e6ebf3}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{-webkit-text-fill-color:#6f7b90}
:root[data-theme="dark"] input:-webkit-autofill{-webkit-text-fill-color:#e6ebf3;box-shadow:0 0 0 1000px #111827 inset}

/* BTEC Submit: the brand name stays a light indigo on the dark top bar. */
:root[data-theme="dark"] .brand-name b,:root[data-theme="dark"] .brand-light .brand-name b{color:#A5B4FC}

/* Version colours on dark backgrounds. */
:root[data-theme="dark"] .met-v1{--met:#6fd3a8;--met-bg:#12291f}
:root[data-theme="dark"] .met-v2{--met:#8db8ff;--met-bg:#132238}
:root[data-theme="dark"] .met-v3{--met:#c2a6ff;--met-bg:#221a38}
:root[data-theme="dark"] .met-v4{--met:#f3b26b;--met-bg:#2f2112}
:root[data-theme="dark"] .met-v5{--met:#f59cc4;--met-bg:#33162a}
:root[data-theme="dark"] .version-criteria,:root[data-theme="dark"] .aims-criteria{background:#151a26;border-color:#2a3142}
:root[data-theme="dark"] .aims-criteria-list li{background:#1b2130;border-color:#2a3142;color:#c9d0dc}

