/* Egressydle 3.10 – accessible dark-mode control and full page palette */
.theme-switcher{position:fixed;right:clamp(12px,2vw,28px);bottom:clamp(12px,2vw,24px);z-index:99;display:flex;align-items:center;gap:11px;background:#ffffff;border:1px solid #c1d9f1;border-radius:100px;padding:11px 14px;box-shadow:0 8px 28px #153e6a33;color:#143e68;font-size:13px;font-weight:700}
.theme-switcher input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.theme-switcher .theme-track{position:relative;width:44px;height:25px;background:#adc7df;border-radius:100px;transition:background .18s;flex-shrink:0}
.theme-switcher .theme-track:after{content:'';position:absolute;left:4px;top:4px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #163f6d66;transition:transform .18s}
.theme-switcher input:checked + .theme-track{background:#349dff}
.theme-switcher input:checked + .theme-track:after{transform:translateX(19px)}
.theme-switcher:has(input:focus-visible){outline:3px solid #40a5ff;outline-offset:3px}
.rank-year-picker{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:16px}
.rank-year-picker label{display:flex;align-items:center}
.rank-year-picker select{width:auto;min-width:145px;min-height:40px;padding:8px 12px}
.rank-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:19px}
.rank-period{scroll-margin-top:32px;margin:18px 0 37px}
.rank-period>.section-heading{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:9px;align-items:center}
.annual-boards{grid-template-columns:1fr}
.annual-table{min-width:770px}.annual-table .month-points{text-align:right;font-variant-numeric:tabular-nums;font-size:12px}.annual-table .year-total{color:#0b63b9;font-weight:800;background:#edf7ff}
html[data-theme="dark"]{color-scheme:dark;--bg:#0c1728;--bg2:#142a42;--panel:#14273b;--edge:#32516d;--txt:#eff7ff;--muted:#a5bdd4;--blue:#5ba8ff;--blue2:#5ba8ff}
html[data-theme="dark"] body{background:radial-gradient(ellipse 80% 500px at 8% -8%,#173b61 0%,transparent 73%),linear-gradient(160deg,#0b1829,#10233a 60%,#0a1729)!important;color:#eaf5ff!important}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .card-link{background:#152a40!important;color:#eaf5ff!important;border-color:#385975!important;box-shadow:0 9px 30px #0004!important}
html[data-theme="dark"] .brand{background:#f3f9ff;padding:5px 9px;border-radius:10px}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] strong,html[data-theme="dark"] label,html[data-theme="dark"] .panel>h2,html[data-theme="dark"] .panel h2,html[data-theme="dark"] .card-link h2{color:#f1f8ff!important}
html[data-theme="dark"] p,html[data-theme="dark"] .subtitle,html[data-theme="dark"] .mini,html[data-theme="dark"] small,html[data-theme="dark"] .auth-card p,html[data-theme="dark"] th,html[data-theme="dark"] td small{color:#bad0e6!important}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] a:not(.btn){color:#89c6ff}
html[data-theme="dark"] .nav>a,html[data-theme="dark"] .nav .link-btn,html[data-theme="dark"] .nav-submenu>summary{color:#d2e8ff!important}
html[data-theme="dark"] .site-footer{border-color:#31516b;color:#aec6dd}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .topic-row input,html[data-theme="dark"] .topic-row select{background:#0c2034!important;color:#ecf7ff!important;border-color:#416685!important}
html[data-theme="dark"] input:disabled,html[data-theme="dark"] select:disabled{background:#23384a!important;color:#91adc4!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#95b2cb!important}
html[data-theme="dark"] .small-btn,html[data-theme="dark"] .muted-btn,html[data-theme="dark"] .btn-outline{background:#203f5d!important;color:#d4edff!important;border-color:#4b779c!important}
html[data-theme="dark"] .small-btn:hover,html[data-theme="dark"] .btn-outline:hover{background:#285174!important}
html[data-theme="dark"] .card-link span,html[data-theme="dark"] .card-icon{color:#7abbfb!important}
html[data-theme="dark"] .count,html[data-theme="dark"] .state,html[data-theme="dark"] .status-label.grey{background:#28435b;color:#d9eeff;border-color:#426883}
html[data-theme="dark"] .flash,html[data-theme="dark"] .alert-info,html[data-theme="dark"] .hint-panel,html[data-theme="dark"] .hint-box{background:#203f5d!important;color:#d9efff!important;border-color:#5689b3!important}
html[data-theme="dark"] .feature-grid span,html[data-theme="dark"] .admin-nav-tile,html[data-theme="dark"] .option-field,html[data-theme="dark"] .question-entry,html[data-theme="dark"] .sector-card,html[data-theme="dark"] .ui-edit-entry,html[data-theme="dark"] .topic-row,html[data-theme="dark"] .topics-highlight .topic-row{background:#1b334b!important;color:#e7f4ff!important;border-color:#42627f!important}
html[data-theme="dark"] .admin-nav-tile:hover,html[data-theme="dark"] .admin-nav-tile.active{background:#234768!important}
html[data-theme="dark"] .admin-nav-tile strong,html[data-theme="dark"] .question-entry h3,html[data-theme="dark"] .sector-card strong,html[data-theme="dark"] .ui-edit-entry summary,html[data-theme="dark"] .question-entry strong,html[data-theme="dark"] .topic-row strong{color:#e6f4ff!important}
html[data-theme="dark"] .question-header small,html[data-theme="dark"] .question-entry small,html[data-theme="dark"] .topic-row small,html[data-theme="dark"] .ui-edit-entry summary small{color:#abc7e0!important}
html[data-theme="dark"] .topic-sector-panel,html[data-theme="dark"] .topics-highlight .topic-sector-panel{background:#142b42!important;color:#eaf6ff!important;border-color:#3a5f7d!important}
html[data-theme="dark"] .topic-sector-panel>summary,html[data-theme="dark"] .topics-highlight .topic-sector-panel>summary{background:#234969!important;color:#e8f5ff!important}
html[data-theme="dark"] .topic-sector-panel>summary:hover,html[data-theme="dark"] .topic-sector-panel[open]>summary{background:#315e85!important;color:#fff!important}
html[data-theme="dark"] .topic-sector-panel>.topic-row-list{background:#0e2237!important}
html[data-theme="dark"] .nav-submenu[open] div{background:#18344e!important;border-color:#406b8a!important}
html[data-theme="dark"] .nav-submenu[open] div a{color:#e3f4ff!important}
html[data-theme="dark"] .nav-submenu[open] div a:hover{background:#295776!important}
html[data-theme="dark"] th,html[data-theme="dark"] td{border-color:#385773!important;color:#e2f2ff}
html[data-theme="dark"] .leaderboard-panel .my-rank,html[data-theme="dark"] .annual-table .year-total{background:#234963!important;color:#bfe4ff!important}
html[data-theme="dark"] .game-stats>div,html[data-theme="dark"] .guess-tile,html[data-theme="dark"] .osztv-choice,html[data-theme="dark"] .quiz-option{background:#193752!important;border-color:#487195!important;color:#f0f9ff!important}
html[data-theme="dark"] .guess-tile.good{background:#187943!important;border-color:#187943!important}
html[data-theme="dark"] .guess-tile.near{background:#9a7719!important;border-color:#9a7719!important}
html[data-theme="dark"] .guess-tile.bad{background:#465260!important;border-color:#465260!important}
html[data-theme="dark"] .quiz-option:hover,html[data-theme="dark"] .osztv-choice:hover{background:#28577b!important}
html[data-theme="dark"] .game-stats strong{color:#eef7ff!important}
html[data-theme="dark"] .exam-fill-question,html[data-theme="dark"] .exam-bank-choices,html[data-theme="dark"] .exam-answer-choice,html[data-theme="dark"] .career-event,html[data-theme="dark"] .forum-topic,html[data-theme="dark"] .forum-post{background:#1b344c!important;color:#eaf6ff!important;border-color:#436985!important}
html[data-theme="dark"] .career-event h3,html[data-theme="dark"] .forum-topic strong,html[data-theme="dark"] .forum-post p,html[data-theme="dark"] .exam-fill-question legend{color:#eaf6ff!important}
html[data-theme="dark"] .career-event details,html[data-theme="dark"] .career-subnav a,html[data-theme="dark"] .exam-key code{background:#183852!important;color:#d8efff!important;border-color:#426b8d!important}
html[data-theme="dark"] .forum-post-meta,html[data-theme="dark"] .forum-topic small{color:#a4c4de!important}
html[data-theme="dark"] .auth-card .separator span{background:#152a40!important;color:#eaf6ff!important}
html[data-theme="dark"] .theme-switcher{background:#142d46;color:#d7eeff;border-color:#4c7698;box-shadow:0 10px 32px #0008}
@media(max-width:720px){.theme-switcher{bottom:10px;right:10px;padding:9px 12px}.rank-period{margin:15px 0 25px}.annual-table{min-width:760px}}
@media(prefers-reduced-motion:reduce){.theme-switcher .theme-track,.theme-switcher .theme-track:after{transition:none}}
