:root{
  --theme-surface:#151b30;
  --theme-surface-soft:#11172a;
  --theme-surface-muted:#141a2d;
  --theme-text-secondary:#cbd3e5;
  --theme-text-tertiary:#9da8c2;
  --theme-link:#bdaaff;
  --theme-purple:#c4b5fd;
  --theme-cyan:#67e8f9;
  --theme-green:#86efac;
  --theme-red:#fda4af;
}

html{color-scheme:dark}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f3f5fa;
  --panel:rgba(255,255,255,.9);
  --panel-strong:#fff;
  --line:rgba(40,52,82,.16);
  --text:#172033;
  --muted:#58647b;
  --violet:#6941c6;
  --cyan:#087f8c;
  --green:#18794e;
  --red:#bd3150;
  --shadow:0 18px 48px rgba(40,51,79,.12);
  --focus-ring:0 0 0 3px rgba(8,127,140,.2);
  --theme-surface:#fff;
  --theme-surface-soft:#f7f8fc;
  --theme-surface-muted:#f0f3f9;
  --theme-text-secondary:#3f4b63;
  --theme-text-tertiary:#5d6980;
  --theme-link:#6038b5;
  --theme-purple:#6239b6;
  --theme-cyan:#076b76;
  --theme-green:#167248;
  --theme-red:#b42342;
}

.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:42px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:var(--text);
  font:700 12px var(--font-ui,Inter,system-ui,sans-serif);
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
.theme-toggle:hover{border-color:rgba(167,139,250,.45);background:rgba(139,92,246,.12)}
.theme-toggle:active{transform:scale(.97)}
.theme-toggle:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.theme-toggle-icon{display:grid;place-items:center;width:24px;height:24px;color:#f2c96d}
.theme-toggle-icon svg{grid-area:1/1;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-icon-dark,.theme-label-dark{display:none}
.theme-toggle.is-compact{width:42px;height:42px;padding:0}
.theme-toggle.is-compact .theme-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mobile-header-actions{display:flex;align-items:center;gap:4px}
.sidebar-theme-toggle{width:100%;justify-content:flex-start;margin-bottom:8px}
.auth-theme-toggle{position:fixed;z-index:40;top:20px;right:22px;background:rgba(21,27,48,.84);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}

html[data-theme="light"] .theme-icon-light,
html[data-theme="light"] .theme-label-light{display:none}
html[data-theme="light"] .theme-icon-dark,
html[data-theme="light"] .theme-label-dark{display:block}
html[data-theme="light"] .theme-toggle{background:rgba(255,255,255,.72);color:var(--text)}
html[data-theme="light"] .theme-toggle:hover{background:#fff;border-color:rgba(105,65,198,.42)}
html[data-theme="light"] .theme-toggle-icon{color:#4d5b78}
html[data-theme="light"] .eyebrow{color:#6941c6!important}
html[data-theme="light"] .login-brand h1 em{color:#6941c6}
html[data-theme="light"] .field label span{color:#6941c6}
html[data-theme="light"] .field-related-action{color:var(--theme-link)}
html[data-theme="light"] .field-related-action:hover{color:#402278}
html[data-theme="light"] .course-schedule-list strong{color:var(--text)}
html[data-theme="light"] .course-schedule-list svg{stroke:var(--theme-cyan)}
html[data-theme="light"] .form-context-note{background:#e7f5f7}
html[data-theme="light"] .form-context-note strong{color:var(--theme-cyan)}
html[data-theme="light"] .form-context-note span{color:var(--theme-text-secondary)}

html[data-theme="light"] body{
  background:radial-gradient(circle at 82% 0%,#e8e4fb 0,transparent 34%),linear-gradient(145deg,#f8f9fd,#eef2f8 68%,#f7f3fb);
  color:var(--text);
}
html[data-theme="light"] .ambient{opacity:.08}
html[data-theme="light"] .ambient-one{background:#7656d8}
html[data-theme="light"] .ambient-two{background:#18a6b5}
html[data-theme="light"] .glass{background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,253,.88));border-color:var(--line);box-shadow:var(--shadow)}

html[data-theme="light"] :is(.brand,.sidebar nav a,.nav-logout,.button,.quick-action,.course-row,.timeline a){color:var(--text)}
html[data-theme="light"] :is(.page-head p,.metric small,.course-row small,.quick-action small,.timeline small,.empty,.sticky-actions span,.login-brand>span,.login-brand p,.login-card>p:not(.eyebrow)){color:var(--muted)}
html[data-theme="light"] .timeline-action{color:var(--theme-link)}
html[data-theme="light"] .sidebar-link.is-active{color:#3e267e;background:rgba(105,65,198,.09);border-color:rgba(105,65,198,.2)}
html[data-theme="light"] .sidebar-link::before{background:linear-gradient(100deg,rgba(105,65,198,.12),rgba(8,127,140,.04))}
html[data-theme="light"] .nav-icon{border-color:rgba(40,52,82,.12);background:rgba(255,255,255,.72);box-shadow:0 7px 18px rgba(42,51,76,.08)}
html[data-theme="light"] .sidebar-link:hover .nav-icon{background:#fff;box-shadow:0 8px 20px rgba(42,51,76,.12)}
html[data-theme="light"] .sidebar-link.is-active .nav-icon{background:rgba(105,65,198,.12);border-color:rgba(105,65,198,.22)}
html[data-theme="light"] .sidebar-link.is-active .nav-icon::after{border-color:#fff;background:#6941c6}
html[data-theme="light"] .nav-icon-home{color:#6842b8}
html[data-theme="light"] .nav-icon-courses{color:#087985}
html[data-theme="light"] .nav-icon-create{color:#167248}
html[data-theme="light"] .nav-icon-settings{color:#8b650d}
html[data-theme="light"] .user-card{border-top-color:var(--line)}
html[data-theme="light"] .avatar{background:rgba(8,127,140,.1);color:#08717d}
html[data-theme="light"] .nav-logout:hover{color:#a8203e;background:rgba(189,49,80,.08)}

html[data-theme="light"] .button{background:rgba(255,255,255,.72);border-color:var(--line)}
html[data-theme="light"] .button:hover:not(:disabled){background:#fff;border-color:rgba(105,65,198,.35)}
html[data-theme="light"] .button.primary{background:linear-gradient(135deg,#7650d2,#5b32b4);border-color:#6941c6;color:#fff;box-shadow:0 10px 26px rgba(91,50,180,.2)}
html[data-theme="light"] .button.danger{background:#fff1f3;border-color:#e6a5b3;color:#a8203e}
html[data-theme="light"] .pill{background:rgba(105,65,198,.1);color:#5d35ae}
html[data-theme="light"] .pill.success{background:#e7f7ee;color:#146c44}
html[data-theme="light"] .pill.neutral{background:#e9edf4;color:#47546b}
html[data-theme="light"] .pill.warning{background:#fff2c7;color:#765406}
html[data-theme="light"] .course-modality-badge.is-presential{background:#eef1f6;border-color:#cbd2de;color:#445168}
html[data-theme="light"] .course-modality-badge.is-semipresential{background:#e3f5f7;border-color:#a5dadd;color:#075e68}
html[data-theme="light"] .identity-conflict{background:#fff8e8;border-color:#e1c46f}
html[data-theme="light"] .identity-conflict-kicker,
html[data-theme="light"] .identity-comparison strong{color:#765406}
html[data-theme="light"] .identity-conflict h2,
html[data-theme="light"] .identity-comparison span,
html[data-theme="light"] .import-conflict-choice label{color:var(--text)}
html[data-theme="light"] .identity-conflict>div>p:last-child,
html[data-theme="light"] .identity-conflict-help,
html[data-theme="light"] .identity-comparison small,
html[data-theme="light"] .conflict-fields{color:var(--theme-text-secondary)}
html[data-theme="light"] .identity-comparison article{background:#fff}
html[data-theme="light"] .has-identity-conflict{background:#fffaf0}
html[data-theme="light"] :is(.condition-libre,.condition-recursa){background:#fdecef;color:#a8203e}
html[data-theme="light"] .condition-regular{background:#e3f5f7;color:#08717d}
html[data-theme="light"] .condition-promocionado{background:#e7f7ee;color:#146c44}

html[data-theme="light"] :is(.field input,.field select,.field textarea,.data-table input,.login-card input,.tracking-search input,.attendance-search input){background:#fff;border-color:rgba(40,52,82,.2);color:var(--text)}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#778299;opacity:1}
html[data-theme="light"] :is(.field input,.field select,.field textarea,.data-table input,.login-card input):disabled{background:#e9edf3;color:#687389}
html[data-theme="light"] .field select.academic-select{background-color:#fff;border-color:rgba(105,65,198,.3);color:var(--text);color-scheme:light}
html[data-theme="light"] .field select.academic-select:hover:not(:disabled){background-color:#faf9fe;border-color:rgba(105,65,198,.55)}
html[data-theme="light"] .field select.academic-select :is(option,optgroup){background:#fff;color:var(--text)}
html[data-theme="light"] .field select.academic-select option:checked{background:#6941c6;color:#fff}
html[data-theme="light"] .field select.academic-select:disabled{background:#e9edf3;border-color:var(--line);color:#687389}
html[data-theme="light"] .field .course-rule-locked{background:#e8f6f7;border-color:#a8dadd;color:#165d64}
html[data-theme="light"] .field input[type="file"]::file-selector-button{background:#eee9fb;color:#54319d}
html[data-theme="light"] .errorlist{color:#a8203e}

html[data-theme="light"] :is(.course-row,.timeline a,.settings-list>a){border-color:var(--line)}
html[data-theme="light"] :is(.course-row,.timeline a,.settings-list>a):hover{background:rgba(105,65,198,.045)}
html[data-theme="light"] .agenda-subject-summary{background:rgba(255,255,255,.7);border-color:var(--line)}
html[data-theme="light"] :is(.agenda-subject-summary>header,.agenda-summary-row,.agenda-date-group,.agenda-event-row,.agenda-results>header){border-color:var(--line)}
html[data-theme="light"] :is(.agenda-summary-row,.agenda-event-row){color:var(--text)}
html[data-theme="light"] :is(.agenda-summary-row,.agenda-event-row):hover{background:rgba(105,65,198,.045)}
html[data-theme="light"] :is(.agenda-subject-summary>header small,.agenda-summary-copy small,.agenda-page-head>div>p:last-child,.agenda-page-total,.agenda-results>header>span,.agenda-event-main small,.agenda-pagination>span,.agenda-empty p){color:var(--theme-text-secondary)}
html[data-theme="light"] :is(.agenda-subject-summary>header>span,.agenda-page-total strong){color:var(--theme-cyan)}
html[data-theme="light"] :is(.agenda-summary-row time,.agenda-date-group h3 time){background:#eee9fb}
html[data-theme="light"] :is(.agenda-summary-row time span,.agenda-date-group h3 span){color:#6239b6}
html[data-theme="light"] .agenda-summary-action{color:var(--theme-link)}
html[data-theme="light"] .agenda-summary-date-empty{background:#eef1f6;color:#667188}
html[data-theme="light"] .agenda-filter-grid label{color:#536078}
html[data-theme="light"] .agenda-filter-grid select{background-color:#fff;border-color:rgba(40,52,82,.2);color:var(--text);color-scheme:light}
html[data-theme="light"] .agenda-filter-shell>summary small{color:var(--theme-text-secondary)}
html[data-theme="light"] .agenda-filter-shell[open]>summary{border-color:var(--line)}
html[data-theme="light"] .panel-head a{color:var(--theme-link)}
html[data-theme="light"] .quick-action:hover{background:linear-gradient(145deg,#fff,#f2effb);border-color:rgba(105,65,198,.28);box-shadow:0 14px 32px rgba(52,45,87,.11)}
html[data-theme="light"] .quick-action-icon{background:rgba(105,65,198,.1);color:#6239b6}
html[data-theme="light"] .data-table th{background:#f0f3f8;color:#59657c}
html[data-theme="light"] .data-table td{border-color:var(--line)}
html[data-theme="light"] .data-table tbody tr:hover{background:#f8f6fd}
html[data-theme="light"] .data-table a{color:var(--theme-link)}
html[data-theme="light"] .grade-table th{background:#e9edf5;color:#566278}
html[data-theme="light"] .grade-table th small{color:#4f5b72}
html[data-theme="light"] .grade-table .sticky-col{background:#f5f7fb}
html[data-theme="light"] .grade-table td{border-color:var(--line)}
html[data-theme="light"] .grade-table input{background:#fff;color:var(--text)}
html[data-theme="light"] .grade-equivalent{color:#08717d}
html[data-theme="light"] .grade-equivalent.is-historical{color:#805d08}
html[data-theme="light"] .historical-clear{color:#59657c}
html[data-theme="light"] .sticky-actions{background:rgba(255,255,255,.96);border-top:1px solid var(--line)}
html[data-theme="light"] .attendance-options span{color:#536078}
html[data-theme="light"] .message{background:#fff;color:var(--text);box-shadow:var(--shadow)}

html[data-theme="light"] :is(.password-toggle:hover,.password-toggle:focus-visible){background:#edf0f6;color:var(--text)}
html[data-theme="light"] :is(.auth-help-link,.back-link a,.form-reference a,.auth-back-link){color:var(--theme-link)}
html[data-theme="light"] :is(.auth-help-link:hover,.back-link a:hover,.form-reference a:hover,.auth-back-link:hover){color:#402278}
html[data-theme="light"] .login-credit{color:#536078!important}
html[data-theme="light"] .login-credit strong{color:#4f2d91}
html[data-theme="light"] .auth-result-note{background:#f4f6fa}
html[data-theme="light"] .closed-notice{background:#eef1f6;border-color:var(--line)}
html[data-theme="light"] .import-guide{background:#f5f1fd}
html[data-theme="light"] .column-chips span{background:#e4f4f6;color:#086d77}
html[data-theme="light"] .column-chips .optional{background:#e9edf3;color:#4c5970}
html[data-theme="light"] .course-profile-guide{background:linear-gradient(135deg,#eaf8f9,#f2edfc);border-color:#a9dfe3}
html[data-theme="light"] .course-profile-kicker{color:#08717d}
html[data-theme="light"] :is(.course-profile-guide>div>p:last-child,.course-profile-note){color:#445168}
html[data-theme="light"] .course-profile-guide dl{background:var(--line);border-color:var(--line)}
html[data-theme="light"] .course-profile-guide dl>div{background:#fff}
html[data-theme="light"] .course-profile-guide dt{color:#59657c}
html[data-theme="light"] .course-profile-guide dd{color:var(--text)}

html[data-theme="light"] .responsive-table .responsive-row{background:rgba(255,255,255,.75)}
html[data-theme="light"] .responsive-table .responsive-row:hover{background:#faf9fe}
html[data-theme="light"] .grade-scale-dialog::backdrop{background:rgba(29,35,52,.56)}
html[data-theme="light"] .grade-scale-surface{background:linear-gradient(145deg,#fff,#f4f6fb)}
html[data-theme="light"] :is(.grade-scale-head p:last-child,.grade-scale-scroll-hint,.grade-scale-note){color:#4d5970}
html[data-theme="light"] .dialog-close{background:#eef1f6;color:#344057}
html[data-theme="light"] .dialog-close:hover{background:#e3e7ef;color:#172033}
html[data-theme="light"] .grade-scale-table th{background:#edf1f6;color:#536078}
html[data-theme="light"] .grade-scale-table td{border-color:var(--line)}
html[data-theme="light"] .grade-scale-table td:nth-child(2){color:var(--text)}
html[data-theme="light"] .grade-scale-note strong{color:var(--text)}
html[data-theme="light"] .schedule-switcher{background:#edf0f5}
html[data-theme="light"] .schedule-switcher button{color:#536078}
html[data-theme="light"] .schedule-switcher button:hover{background:#e2e6ee;color:var(--text)}
html[data-theme="light"] .schedule-switcher button.is-active{background:#fff;color:#5731a2;box-shadow:0 5px 14px rgba(52,45,87,.1)}
html[data-theme="light"] .schedule-day{background:rgba(255,255,255,.7)}
html[data-theme="light"] :is(.schedule-slot span,.schedule-note,.virtual-subject summary small,.schedule-table th){color:#536078}
html[data-theme="light"] :is(.schedule-slot,.schedule-table th,.schedule-table td){border-color:var(--line)}
html[data-theme="light"] :is(.schedule-slot time,.schedule-table td:last-child){color:#08717d}
html[data-theme="light"] .session-kind{background:#eee9fb;color:#6038b5}
html[data-theme="light"] .session-kind.is-tutoria{background:#e3f5f7;color:#08717d}
html[data-theme="light"] .details-indicator{color:#6239b6}
html[data-theme="light"] :is(.scale-status.is-failed,.scale-status.is-repeat){color:var(--theme-red)}
html[data-theme="light"] .scale-status.is-approved{color:var(--theme-cyan)}
html[data-theme="light"] .scale-status.is-promoted{color:var(--theme-green)}

html[data-theme="light"] :is(.tracking-section-head>div>p:last-child,.tracking-trajectory-copy small,.tracking-trajectory-item span,.tracking-overview-heading small,.tracking-panel-heading small,.tracking-panel-heading>span,.tracking-empty p,.tracking-no-results p,#tracking-results-count){color:var(--theme-text-tertiary)}
html[data-theme="light"] .partial-results-head{border-color:var(--line)}
html[data-theme="light"] .partial-selector{background:#f5f7fb;border-color:var(--line)}
html[data-theme="light"] .partial-selector button{background:#fff;color:var(--text)}
html[data-theme="light"] .partial-selector button small{color:var(--theme-text-tertiary)}
html[data-theme="light"] .partial-selector button.is-active{background:#eee9fb;color:#5630a2;box-shadow:0 8px 20px rgba(40,51,79,.08)}
html[data-theme="light"] .partial-results-current strong{color:var(--text)}
html[data-theme="light"] .partial-results-current small{color:var(--theme-text-tertiary)}
html[data-theme="light"] .partial-results-current>span{color:var(--theme-purple)}
html[data-theme="light"] .partial-results-filters button{background:#f5f7fb;color:var(--theme-text-tertiary)}
html[data-theme="light"] .partial-results-filters button strong{color:var(--text)}
html[data-theme="light"] .partial-results-filters button:hover{color:var(--text)}
html[data-theme="light"] .partial-results-filters button.is-active{background:#eee9fb;color:#5630a2;box-shadow:0 8px 20px rgba(40,51,79,.08)}
html[data-theme="light"] :is(.partial-results-visible-count,.partial-result-grade small,.partial-results-empty p){color:var(--theme-text-tertiary)}
html[data-theme="light"] .partial-result-row{background:#fff}
html[data-theme="light"] :is(.partial-result-name,.partial-result-grade strong){color:var(--text)}
html[data-theme="light"] .partial-result-status.is-approved{background:#e7f7ee;color:var(--theme-green)}
html[data-theme="light"] .partial-result-status.is-failed{background:#fdecef;color:var(--theme-red)}
html[data-theme="light"] .partial-result-status.is-absent{background:#eef1f6;color:#4d5970}
html[data-theme="light"] .tracking-trajectory-copy{background:rgba(105,65,198,.07)}
html[data-theme="light"] :is(.tracking-trajectory-copy>span,.tracking-trajectory-item,.tracking-overview-facts dd,.tracking-academic-facts dd){color:var(--text)}
html[data-theme="light"] .tracking-trajectory-item:hover{background:rgba(105,65,198,.05)}
html[data-theme="light"] .tracking-trajectory-item.is-promotion strong{color:var(--theme-green)}
html[data-theme="light"] .tracking-trajectory-item.is-regularity strong{color:var(--theme-cyan)}
html[data-theme="light"] .tracking-trajectory-item.is-risk strong{color:var(--theme-red)}
html[data-theme="light"] .tracking-trajectory-item.is-pending strong{color:#526078}
html[data-theme="light"] :is(.tracking-overview-icon.is-attendance,.tracking-count.is-regularity){color:var(--theme-cyan)}
html[data-theme="light"] :is(.tracking-overview-icon.is-grade,.student-tracking-identity>span,.student-tracking-toggle){color:var(--theme-purple)}
html[data-theme="light"] :is(.tracking-overview-icon.is-alert,.tracking-count.is-risk){color:var(--theme-red)}
html[data-theme="light"] .tracking-count.is-promotion{color:var(--theme-green)}
html[data-theme="light"] :is(.tracking-overview-facts dt,.tracking-academic-facts dt){color:#566278}
html[data-theme="light"] .tracking-group-alerts li{color:#344057}
html[data-theme="light"] .tracking-positive-state{color:var(--theme-green)}
html[data-theme="light"] .tracking-overview-primary progress,
html[data-theme="light"] .tracking-overview-primary progress::-webkit-progress-bar{background:#dfe5ee}
html[data-theme="light"] .tracking-overview-primary progress::-webkit-progress-value,
html[data-theme="light"] .tracking-overview-primary progress::-moz-progress-bar{background:#087f8c}
html[data-theme="light"] .tracking-evaluation-table th{background:#edf1f6;color:#536078}
html[data-theme="light"] .tracking-evaluation-table td{border-color:var(--line);color:#3f4b63}
html[data-theme="light"] .tracking-evaluation-table td:first-child{color:var(--text)}
html[data-theme="light"] .tracking-search span{color:#3f4b63}
html[data-theme="light"] .tracking-filter-buttons button{color:#4d5970}
html[data-theme="light"] .tracking-filter-buttons button:hover{color:var(--text)}
html[data-theme="light"] .tracking-filter-buttons button.is-active{background:#eee9fb;color:#4c298f;border-color:#9f86d9}
html[data-theme="light"] .student-tracking-card>summary:hover{background:#faf9fe}
html[data-theme="light"] .student-tracking-card[open]>summary{background:#f5f1fd}
html[data-theme="light"] :is(.student-tracking-identity small,.student-tracking-status small,.student-tracking-snapshot dt,.tracking-criterion p,.student-attendance-detail dt,.student-evaluation-heading small,.tracking-evaluation-item>div:first-child small,.tracking-evaluation-item>p){color:var(--theme-text-tertiary)}
html[data-theme="light"] .student-tracking-snapshot>div{background:#f1f4f9}
html[data-theme="light"] :is(.student-tracking-snapshot dd,.tracking-criterion>b,.student-attendance-detail dd){color:var(--text)}
html[data-theme="light"] .student-tracking-toggle{background:#f1edfb;border-color:#bda9e4}
html[data-theme="light"] .student-tracking-card[open] .student-tracking-toggle{background:#e8e0fa;color:#4f2d91;border-color:#9579ce}
html[data-theme="light"] .tracking-status.is-promotion{color:var(--theme-green)}
html[data-theme="light"] .tracking-status.is-regularity{color:var(--theme-cyan)}
html[data-theme="light"] .tracking-status.is-risk{color:var(--theme-red)}
html[data-theme="light"] .tracking-status.is-in_progress{color:#4d5970}
html[data-theme="light"] .tracking-provisional-note{background:#eaf6f7;color:#275d63}
html[data-theme="light"] .student-data-action span{color:var(--theme-text-tertiary)}
html[data-theme="light"] .tracking-criterion strong{color:#3f4b63}
html[data-theme="light"] :is(.student-attendance-detail dl>div,.tracking-evaluation-item,.student-alerts,.student-next-action){background:#f5f7fb}
html[data-theme="light"] :is(.student-alerts>strong,.student-next-action>span){color:#3f4b63}
html[data-theme="light"] .student-alerts ul{color:#344057}
html[data-theme="light"] .student-alerts p{color:var(--theme-green)}
html[data-theme="light"] .tracking-evaluation-item.is-promotion .tracking-evaluation-result span{color:var(--theme-green)}
html[data-theme="light"] .tracking-evaluation-item.is-regularity .tracking-evaluation-result span{color:var(--theme-cyan)}
html[data-theme="light"] .tracking-evaluation-item.is-risk .tracking-evaluation-result span{color:var(--theme-red)}
html[data-theme="light"] :is(.tracking-evaluation-item.is-pending,.tracking-evaluation-item.is-future) .tracking-evaluation-result span{color:#4d5970}

html[data-theme="light"] .class-status.is-planificada{background:#e3f5f7;color:var(--theme-cyan)}
html[data-theme="light"] .class-status.is-dictada{background:#e7f7ee;color:var(--theme-green)}
html[data-theme="light"] .class-status.is-cancelada{background:#fdecef;color:var(--theme-red)}
html[data-theme="light"] .attendance-load-state.is-complete{background:#e7f7ee;color:var(--theme-green)}
html[data-theme="light"] .attendance-load-state.is-partial{background:#fff7df;color:#805d08}
html[data-theme="light"] .attendance-load-state.is-missing{background:#fdecef;color:var(--theme-red)}
html[data-theme="light"] :is(.attendance-load-state.is-cancelled,.attendance-load-state.is-no-roster){background:#eef1f6;color:#4d5970}
html[data-theme="light"] .class-mode-notice{background:#eef1f6;color:var(--text)}
html[data-theme="light"] .class-mode-notice span{color:var(--theme-text-tertiary)}
html[data-theme="light"] .class-mode-notice.is-warning{background:#fff7df;color:#805d08}
html[data-theme="light"] :is(.class-plan-main>span,.class-section-head span,.class-context-section header>span){color:var(--theme-purple)}
html[data-theme="light"] :is(.class-plan-main p,.class-section-head>small,.class-evaluation-list article>div small,.class-context-empty,.class-mode-actions p span,.class-empty p){color:var(--theme-text-tertiary)}
html[data-theme="light"] .class-progress>div{background:#fff}
html[data-theme="light"] .class-progress dt{color:#59657c}
html[data-theme="light"] .class-progress dd{color:var(--text)}
html[data-theme="light"] .class-form-errors{background:#fdecef;color:var(--theme-red);border-color:#e6a5b3}
html[data-theme="light"] .class-attendance .attendance-row{box-shadow:0 10px 26px rgba(40,51,79,.09)}
html[data-theme="light"] .attendance-toolbar{background:#f5f7fb}
html[data-theme="light"] .attendance-search span{color:#3f4b63}
html[data-theme="light"] .attendance-toolbar p{color:var(--theme-text-tertiary)}
html[data-theme="light"] .attendance-no-results span{color:var(--theme-text-tertiary)}
html[data-theme="light"] .class-evaluation-list time{background:#eee9fb;color:var(--theme-purple)}
html[data-theme="light"] .class-priority-list p{color:var(--theme-text-secondary)}
html[data-theme="light"] .class-context-empty.is-positive{color:var(--theme-green)}
html[data-theme="light"] .class-context-section>a{color:var(--theme-link)}
html[data-theme="light"] .class-mode-actions{background:rgba(255,255,255,.97)}
html[data-theme="light"] .attendance-scope{background:#e7f7ee;color:var(--theme-green)}
html[data-theme="light"] .attendance-scope.is-record-only{background:#e3f5f7;color:var(--theme-cyan)}
html[data-theme="light"] .class-teaching-plan{background:rgba(255,255,255,.72)}
html[data-theme="light"] :is(.teaching-materials>header span,.theme-book>header span){color:var(--theme-purple)}
html[data-theme="light"] .teaching-materials>header>strong{background:#eee9fb;color:#5630a2}
html[data-theme="light"] .theme-book>header>a{color:var(--theme-link)}
html[data-theme="light"] :is(.teaching-material-list li>div small,.teaching-material-empty p,.teaching-material-upload>small,.teaching-material-readonly,.theme-book dt,.theme-book dl small){color:var(--theme-text-tertiary)}
html[data-theme="light"] .teaching-material-list li>a{color:var(--theme-cyan)}
html[data-theme="light"] .material-type{background:#fdecef;color:var(--theme-red)}
html[data-theme="light"] .material-type.is-html{background:#e3f5f7;color:var(--theme-cyan)}
html[data-theme="light"] .material-upload-label{color:var(--theme-text-secondary)}
html[data-theme="light"] .material-file-picker{background:#f5f7fb}
html[data-theme="light"] .material-picker-action{background:#eee9fb;color:#5630a2}
html[data-theme="light"] .material-picker-name{color:var(--theme-text-tertiary)}
html[data-theme="light"] .theme-book dd{color:var(--text)}
html[data-theme="light"] .theme-book>footer span{color:var(--theme-green)}
html[data-theme="light"] .teaching-view-switch{background:#f5f7fb}
html[data-theme="light"] .teaching-view-switch button:hover{color:var(--text)}
html[data-theme="light"] .teaching-view-switch button.is-active{background:#eee9fb;color:#5630a2}
html[data-theme="light"] .teaching-itinerary-overview>div span{color:#536078}
html[data-theme="light"] .teaching-itinerary-filters button{background:#fff;color:#536078}
html[data-theme="light"] .teaching-itinerary-filters button:hover{color:var(--text)}
html[data-theme="light"] .teaching-itinerary-filters button.is-active{background:#eee9fb;color:#5630a2}
html[data-theme="light"] :is(.teaching-itinerary-entry,.teaching-itinerary-empty){background:rgba(255,255,255,.82)}
html[data-theme="light"] .teaching-itinerary-entry>summary:hover{background:#f8f9fc}
html[data-theme="light"] :is(.teaching-itinerary-title p,.teaching-itinerary-readiness span,.teaching-itinerary-detail>footer>p,.teaching-itinerary-empty p){color:var(--theme-text-tertiary)}
html[data-theme="light"] .teaching-itinerary-detail p{color:#475569}
html[data-theme="light"] :is(.class-teaching-context p,.class-teaching-outcome p,.class-teaching-sequence p,.ppii-rule-summary>p,.ppii-assessment-row>footer,.ppii-assessment-actions span){color:#475569}
html[data-theme="light"] .ppii-rule-summary li strong{color:#172033}
html[data-theme="light"] .ppii-assessment-actions{background:rgba(248,250,252,.97)}
html[data-theme="light"] :is(.project-group-summary,.project-group-row,.group-correction-row,.group-followup-row){background:rgba(255,255,255,.82)}
html[data-theme="light"] :is(.project-group-summary p,.project-groups-head p,.group-correction-head p,.project-group-row>p,.group-followup-row>header small,.group-followup-readonly p,.project-group-feedback p){color:#475569}
html[data-theme="light"] .project-group-activity>header a{color:#5630a2}
html[data-theme="light"] :is(.group-correction-actions){background:rgba(248,250,252,.97)}

html[data-theme="light"] .settings-list>a:hover strong{color:#5630a2}
html[data-theme="light"] .technical-note a{color:var(--theme-link)}
html[data-theme="light"] .technical-icon{background:#eee9fb;color:#6038b5}
html[data-theme="light"] .audit-table code{color:#4d5970}
html[data-theme="light"] .rule-title>span{background:#eee9fb;color:#6038b5}
html[data-theme="light"] .rule-card dt{color:#6239b6}
html[data-theme="light"] .rule-card dd{color:#344057}

html[data-theme="light"] .app-footer{border-top-color:var(--line)}
html[data-theme="light"] .footer-mark{background:#eee9fb;color:#6038b5;border-color:#c9b9e9}
html[data-theme="light"] .footer-brand strong{color:var(--text)}
html[data-theme="light"] .footer-brand div>span{color:#536078}
html[data-theme="light"] .footer-signature p{color:#455168}
html[data-theme="light"] .footer-signature strong{color:var(--text)}
html[data-theme="light"] .footer-private{color:#146c44}
html[data-theme="light"] .footer-legal span{color:#344057}
html[data-theme="light"] .footer-legal small{color:#58647b}

@media(max-width:760px){
  .auth-theme-toggle{top:12px;right:12px}
  .auth-theme-toggle .theme-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

@media(prefers-reduced-motion:reduce){
  .theme-toggle{transition:none}
  .theme-toggle:active{transform:none}
}

@media(prefers-reduced-transparency:reduce){
  .auth-theme-toggle{backdrop-filter:none;-webkit-backdrop-filter:none}
  html[data-theme="light"] .glass{background:#fff}
}
