:root{color-scheme:light}.theme-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:#e2a15b;border:0;border-radius:9px;min-width:40px;min-height:40px;padding:8px;cursor:pointer}.theme-button svg{width:22px;height:22px}.header-tools .theme-label{display:none}.theme-label{font-size:12px}.auth-screen{position:relative}.auth-theme{position:absolute;top:20px;right:20px;z-index:2}.auth-theme .theme-button{color:var(--brand);border:1px solid #e5deef;background:#faf9fc;min-height:44px;padding:8px 12px}.theme-button:hover{background:#ffffff12}
:root[data-theme="dark"]{color-scheme:dark;--ink:#eee8f5;--muted:#b0a5bd;--line:#3b3149;--paper:#1c162b;--canvas:#15101f;--accent:#2d2441;--brand-dark:#e4d9fa;--action:#35d489;--action-text:#092a18}
[data-theme="dark"] body{background:#0d0915;color:#eee8f5}
[data-theme="dark"] .mobile-portal.shell,[data-theme="dark"] .auth-screen,[data-theme="dark"] .auth-screen .auth-sheet,[data-theme="dark"] .login-form{background:#15101f;color:#eee8f5}
[data-theme="dark"] .app-header{background:#22135d}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] .student-welcome h1,[data-theme="dark"] .student-result-copy>strong{color:#f1eafa}
[data-theme="dark"] .portal-page-title h1,[data-theme="dark"] .auth-sheet h1,[data-theme="dark"] .login-form h1,[data-theme="dark"] .edulearn-brand,[data-theme="dark"] .login-form .brand{color:#d1bfff}
[data-theme="dark"] .app-header .edulearn-brand,[data-theme="dark"] .app-header .brand-green{color:white}
[data-theme="dark"] .brand-green{color:#61d9a3}
[data-theme="dark"] .header-panel,[data-theme="dark"] .panel,[data-theme="dark"] .result-card,[data-theme="dark"] .stat,[data-theme="dark"] .portal-screen .panel,[data-theme="dark"] .portal-screen .result-card{background:#1d172c;border-color:#3b3149;color:#e9e1f3;box-shadow:none}
[data-theme="dark"] .menu-item,[data-theme="dark"] .search-match,[data-theme="dark"] .back-link{background:transparent;color:#d4c1ff}
[data-theme="dark"] .menu-item.active{background:#35264c}
[data-theme="dark"] .search-match{border-color:#3b3149}
[data-theme="dark"] input,[data-theme="dark"] select{background:#231b33;border-color:#6c597f;color:#f1e8fa}
[data-theme="dark"] input::placeholder{color:#b2a2c0;opacity:1}
[data-theme="dark"] .header-search input{background:#2f2350;color:white}
[data-theme="dark"] .header-grid{background:#2f2350;color:#e6b46d}
[data-theme="dark"] .auth-field{border-color:#ba9eea;background:#20172f}
[data-theme="dark"] .auth-field input{background:transparent;color:#f1e8fa}
[data-theme="dark"] .auth-field>svg,[data-theme="dark"] .password-eye{color:#d0b6f7}
[data-theme="dark"] .auth-field:focus-within{outline-color:#6b478e}
[data-theme="dark"] .auth-theme .theme-button{background:#261b36;color:#e2c8ff;border-color:#59416d}
[data-theme="dark"] .auth-recovery button,[data-theme="dark"] .auth-footer,[data-theme="dark"] .auth-footer button,[data-theme="dark"] .auth-security,[data-theme="dark"] .student-section-heading button{color:#d5bffd}
[data-theme="dark"] .auth-security>span,[data-theme="dark"] .auth-footer p,[data-theme="dark"] .auth-security svg{color:#b8a5c9}
[data-theme="dark"] .auth-help,[data-theme="dark"] .info,[data-theme="dark"] .portal-screen .info,[data-theme="dark"] .extra-details,[data-theme="dark"] .student-extra-info .extra-details{background:#2b203d;color:#e8d9f8;border-color:#a285db}
[data-theme="dark"] .btn{background:#35d489;border-color:#35d489;color:#082717}
[data-theme="dark"] .btn:hover{background:#50e39d;border-color:#50e39d}
[data-theme="dark"] .btn.secondary{background:#281d39;border-color:#66517d;color:#e3ceff}
[data-theme="dark"] .btn.secondary:hover{background:#352348}
[data-theme="dark"] .btn.danger{color:#ffc2c2}
[data-theme="dark"] .student-result-row{background:transparent;border-color:#372b44}
[data-theme="dark"] .student-result-symbol{background:#34264c;color:#d4bfff}
[data-theme="dark"] .student-result-score>strong,[data-theme="dark"] .student-detail-score>strong,[data-theme="dark"] .student-means strong,[data-theme="dark"] .student-result-detail h2,[data-theme="dark"] .portal-screen .score,[data-theme="dark"] .evolution-summary strong{color:#d2baff}
[data-theme="dark"] .student-result-score>small,[data-theme="dark"] .student-detail-score>small,[data-theme="dark"] .student-row-arrow{color:#b7a4c8}
[data-theme="dark"] .student-welcome p,[data-theme="dark"] .student-welcome>span,[data-theme="dark"] .student-note-count,[data-theme="dark"] .student-result-copy>span,[data-theme="dark"] .student-result-copy>small,[data-theme="dark"] .student-privacy-note,[data-theme="dark"] .student-list-caption,[data-theme="dark"] .student-detail-subject,[data-theme="dark"] .student-detail-explanation,[data-theme="dark"] .student-detail-meta dt,[data-theme="dark"] .student-means small,[data-theme="dark"] .student-means>p,[data-theme="dark"] .student-empty p,[data-theme="dark"] .portal-footer{color:#b6a5c5}
[data-theme="dark"] .student-detail-meta,[data-theme="dark"] .student-detail-meta>div,[data-theme="dark"] .student-means>div{border-color:#3c2e49}
[data-theme="dark"] .student-detail-meta dd{color:#e4d7ef}
[data-theme="dark"] .student-no-grade,[data-theme="dark"] .student-detail-score .student-no-grade{color:#e3b5d2}
[data-theme="dark"] .student-absence{background:#34273a;color:#e1c6d2}
[data-theme="dark"] .student-published,[data-theme="dark"] .badge.published{background:#173b2c;color:#91e0b4}
[data-theme="dark"] .badge{background:#3a3048;color:#d3c4df}
[data-theme="dark"] .badge.review{background:#463419;color:#f1d087}
[data-theme="dark"] .portal-screen .evolution-summary,[data-theme="dark"] .evolution-summary{background:#2a203a}
[data-theme="dark"] .chart-label,[data-theme="dark"] .chart-missing{fill:#c6b5d5}
[data-theme="dark"] .chart-value{fill:#e2ceff}
[data-theme="dark"] .chart-line{stroke:#b99ae9}
[data-theme="dark"] .chart-point{fill:#40d48b;stroke:#291b3b}
[data-theme="dark"] .chart-grid{stroke:#51405f}
[data-theme="dark"] .selected-row,[data-theme="dark"] thead{background:#2e233d}
[data-theme="dark"] th,[data-theme="dark"] .portal-screen tbody th,[data-theme="dark"] td{color:#ded0ea;border-color:#43334e}
[data-theme="dark"] .subject-copy p,[data-theme="dark"] .subject-progress,[data-theme="dark"] .help,[data-theme="dark"] .muted,[data-theme="dark"] .eyebrow{color:#b8a6c9}
[data-theme="dark"] .error{background:#3d202b;border-color:#895264;color:#ffd0d8}
[data-theme="dark"] .secret{background:#3d301d;border-color:#806843;color:#f7e4bc}
[data-theme="dark"] .skip{background:#231831;color:white}
