.das-theme-toggle {
    display:inline-grid; place-items:center; flex:none; width:36px; height:36px;
    padding:0; border:1px solid currentColor; border-radius:50%;
    color:inherit; background:transparent; cursor:pointer;
}
.das-theme-toggle .das-icon { display:block; width:17px; height:17px; }
.das-theme-sun { display:none; }
html[data-theme="dark"] { color-scheme:dark; }
html[data-theme="dark"] .das-theme-moon { display:none; }
html[data-theme="dark"] .das-theme-sun { display:block; }
.das-theme-toggle:hover { background:#737c8e18; }
.ref-account > div .das-theme-labeled { display:flex; align-items:center; gap:8px; height:auto; }

.kz-home .das-theme-toggle { margin-inline:-5px; border-color:#9cbebb; }
.kz-mobile-controls { display:none; }
@media(max-width:860px) {
    .kz-mobile-controls { display:flex; align-items:center; gap:10px; }
    .kz-mobile-controls .das-theme-toggle { margin:0; }
}
@media(max-width:650px) {
    .ref-student-top .das-theme-toggle { width:30px; height:30px; }
}
@media(max-width:410px) {
    .ref-public-actions .das-theme-toggle { width:28px; height:28px; }
}

html[data-theme="dark"] .kz-home {
    --kz-paper:#122426; --kz-ink:#e4f2ef; --kz-dark:#bff4ed;
    --kz-accent:#64d7ce; --kz-mint:#294649; background:var(--kz-paper);
}
html[data-theme="dark"] .kz-intro-desc,
html[data-theme="dark"] .kz-stats span,
html[data-theme="dark"] .kz-partners-desc { color:#c1d4d1; }
html[data-theme="dark"] .kz-button { background:#237671; color:#fff; }
html[data-theme="dark"] .kz-button-subtle,
html[data-theme="dark"] .kz-preview { background:#294649; color:#ddf8f4; }
html[data-theme="dark"] .kz-button:hover { background:#296c69; }
html[data-theme="dark"] .kz-languages a[aria-current] { background:#365e61; color:#eefcf8; }
html[data-theme="dark"] .kz-brand-template:not(.kz-brand-footer) img { filter:brightness(0) invert(91%) sepia(26%) saturate(360%) hue-rotate(108deg); }
html[data-theme="dark"] .kz-congress { background:#0a3539; border:1px solid #2a4a50; }
html[data-theme="dark"] .kz-news { background:linear-gradient(110deg,#202b39,#1a2934); color:#eff6fb; }
html[data-theme="dark"] .kz-news-card { background:#223442; border-color:#3b5161; color:#eff6fb; }
html[data-theme="dark"] :is(.kz-news-head a,.kz-news-card small) { color:#b5d8fa; }
html[data-theme="dark"] .kz-news-tag { background:#3a5278; color:#deefff; }
html[data-theme="dark"] .kz-partner { background:#30474b; color:#e6f9f4; }
html[data-theme="dark"] .kz-partner small { color:#c6dedc; }
html[data-theme="dark"] .kz-partner img { mix-blend-mode:normal; border-radius:6px; }
html[data-theme="dark"] .kz-mobile-menu > :is(summary,div) { background:#243d40; border-color:#49696d; color:#e8f9f6; }
html[data-theme="dark"] .kz-mobile-menu > div > a:hover { background:#365a5e; }

html[data-theme="dark"] .ref-student-top { color:#eef0ff; background:#191d33; }
html[data-theme="dark"] .ref-search { background:#262b45; color:#e0e5ff; border-color:#444d70; }
html[data-theme="dark"] .ref-student-top .ref-bell { border-color:#313b59; }
html[data-theme="dark"] .ref-student-top .ref-mobile-menu { border-color:#444d70; }
html[data-theme="dark"] .ref-dashboard {
    --ref-ink:#f3f4ff; --ref-line:#39425f; --ref-paper:#1b2034; --ref-purple-text:#bba9ff;
    --text:var(--ref-ink); --surface:var(--ref-paper); --surface-2:#2c3450;
    background:radial-gradient(ellipse at 78% 5%,#202744,transparent 56%),#111629;
}
html[data-theme="dark"] .ref-dashboard .ref-panel { background:linear-gradient(125deg,#222842,#191f35); }
html[data-theme="dark"] .ref-dashboard :is(.ref-card-heading,.ref-profile-data,.ref-profile-data > div,.ref-campus-info summary,.ref-campus-info > a,.ref-schedule-list > div,.ref-schedule-list time,.ref-announcement-list > div) { border-color:#384260; }
html[data-theme="dark"] .ref-dashboard :is(.ref-student-kpi small,.ref-feature-copy p,.ref-feature-copy > small,.ref-feature-meta,.ref-schedule-list small,.ref-announcement-list small) { color:#c1c8e7; }
html[data-theme="dark"] .ref-dashboard :is(.ref-student-kpi > span,.ref-feature-copy .ref-tag,.ref-profile-data .ref-tag,.ref-announcement-icon) { background:#342c5e; color:#d5c7ff; }
html[data-theme="dark"] .ref-dashboard :is(.ref-card-heading h2 .das-icon,.ref-student-actions .das-icon,.ref-profile-top h2 .das-icon,.ref-profile-top > a .das-icon) { color:#baaaff; }
html[data-theme="dark"] .ref-dashboard .ref-tab-list { background:#2c3351; }
html[data-theme="dark"] .ref-dashboard .ref-tab-list button:not([aria-selected="true"]) { color:#d9def6; }
html[data-theme="dark"] .ref-dashboard .ref-student-actions a:hover { background:#332954; }
html[data-theme="dark"] .ref-dashboard .ref-profile-progress progress::-webkit-progress-bar { background:#343d5e; }
