.auth-logo{display:block;width:clamp(92px,22vw,150px);aspect-ratio:1;object-fit:contain;border-radius:24px;background:#000;margin:0 0 20px;box-shadow:0 12px 30px rgba(0,0,0,.2)}
.amateur-disclaimer{display:grid;gap:5px;max-width:580px;margin-top:20px;padding:14px 16px;border:1px solid #d6b36b;border-radius:14px;background:#fff8df;color:#6b4300;font-size:12px;line-height:1.5}
.amateur-disclaimer b{font-size:13px}.amateur-disclaimer span{color:inherit}
.branding-settings{display:grid;gap:18px;margin-bottom:24px}.branding-settings h2{margin:5px 0 8px}.branding-editor{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:center}.branding-editor>img{display:block;width:150px;aspect-ratio:1;object-fit:contain;border-radius:22px;background:#000;border:1px solid var(--line)}.branding-editor label{display:grid;gap:8px;font-size:13px;font-weight:800}.branding-editor input{width:100%}
.theme-button{white-space:nowrap}
html[data-theme="dark"]{color-scheme:dark;--ink:#f6f2ee;--muted:#b9b0a9;--cream:#0b0b0c;--card:#171719;--line:#343035;--red:#ef6257;--red2:#ff6b61;--green:#45c98b;--amber:#f7b955;--shadow:0 12px 30px rgba(0,0,0,.28)}
html[data-theme="dark"] .topbar{background:rgba(11,11,12,.92)}
html[data-theme="dark"] .bottom-nav{background:rgba(17,17,19,.96)}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select,html[data-theme="dark"] input[type=file],html[data-theme="dark"] .cloud-settings-form input,html[data-theme="dark"] .cloud-settings-form textarea,html[data-theme="dark"] .auth-card input,html[data-theme="dark"] .admin-form input,html[data-theme="dark"] .admin-form select{background:#111113;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .secondary,html[data-theme="dark"] .cat-icon{background:#3a1c1b;color:#ffaca5}
html[data-theme="dark"] .answer .letter,html[data-theme="dark"] .feedback,html[data-theme="dark"] .progress,html[data-theme="dark"] .cloud-user-stats span,html[data-theme="dark"] .cloud-average-grid .stat,html[data-theme="dark"] .question-overview,html[data-theme="dark"] .preset-row{background:#242125}
html[data-theme="dark"] .answer.correct{background:#123125}html[data-theme="dark"] .answer.wrong,html[data-theme="dark"] .answer.picked{background:#3a1b1d}
html[data-theme="dark"] .quick.accent,html[data-theme="dark"] .hero{background:linear-gradient(145deg,#161116,#3d1718 65%,#70221f)}
html[data-theme="dark"] .rotation-card,html[data-theme="dark"] .guided-card,html[data-theme="dark"] .trainer-feedback,html[data-theme="dark"] .result-review-item{background:#1d1b1e!important}
html[data-theme="dark"] .network-status,html[data-theme="dark"] .smtp-status.success{background:#10281d;border-color:#285c42;color:#8ce0b5}
html[data-theme="dark"] .smtp-status.warning,html[data-theme="dark"] .amateur-disclaimer{background:#332a12;border-color:#826824;color:#f7d98b}
html[data-theme="dark"] .smtp-status.error,html[data-theme="dark"] .notice{background:#39191b;border-color:#8b3536;color:#ffc2bd}
html[data-theme="dark"] .cloud-user-role{background:#3a1c1b;color:#ffaca5}
html[data-theme="dark"] .cloud-average-grid .highlight{background:#4a2020;color:#ffc0ba}
html[data-theme="dark"] .status-chip.known{background:#123125;color:#8ce0b5}html[data-theme="dark"] .status-chip.review{background:#392e15;color:#f7d98b}html[data-theme="dark"] .status-chip.unknown{background:#3a1b1d;color:#ffc0ba}html[data-theme="dark"] .status-chip.unanswered{background:#29262a;color:#d1c8c2}
@media(max-width:650px){.branding-editor{grid-template-columns:1fr}.branding-editor>img{width:min(52vw,180px);margin:auto}.theme-button span{display:none}.auth-logo{margin-inline:auto}.amateur-disclaimer{text-align:left}}
html[data-theme="dark"] body,html[data-theme="dark"] .delivery-confirm-card,html[data-theme="dark"] .install-dialog{background:var(--cream);color:var(--ink)}
html[data-theme="dark"] .delivery-confirm-card,html[data-theme="dark"] .install-dialog,html[data-theme="dark"] .update-dialog{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .delivery-confirm-card p,html[data-theme="dark"] .install-lead{color:var(--muted)}
html[data-theme="dark"] .explanation-details{background:#201e21;border-color:#484148}
html[data-theme="dark"] .explanation-details>summary{background:#201e21;color:var(--ink)}
html[data-theme="dark"] .explanation-details[open]>summary{background:#2b272c;border-color:#484148}
html[data-theme="dark"] .explanation-details .explanation-copy{background:#171719;color:var(--ink)}
html[data-theme="dark"] .review-answer{background:#3a1b1d;color:var(--ink)}
html[data-theme="dark"] .review-answer.correct-text{background:#123125;color:var(--ink)}
html[data-theme="dark"] .review-explanation,html[data-theme="dark"] .score-formula,html[data-theme="dark"] .tablet-install-note{background:#242125;color:var(--ink);border-color:#494148}
html[data-theme="dark"] .review-tabs{background:var(--cream)}html[data-theme="dark"] .review-tabs a{background:#242125;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .review-response-time{background:#202b3c}
html[data-theme="dark"] .dashboard-answer-split .correct{background:#123125;color:#91e4b5}html[data-theme="dark"] .dashboard-answer-split .wrong{background:#3a1b1d;color:#ffaaa4}html[data-theme="dark"] .dashboard-answer-split .blank{background:#302d31;color:#d4cdd6}html[data-theme="dark"] .dashboard-bands i,html[data-theme="dark"] .admin-dashboard-bar i{background:#343036}
html[data-theme="dark"] .history-counts .correct{background:#153a2b;color:#8ee6b5}html[data-theme="dark"] .history-counts .wrong{background:#48201f;color:#ffaaa4}html[data-theme="dark"] .history-counts .blank{background:#302d31;color:#d4cdd6}
html[data-theme="dark"] .release-notes-list li{background:#242125;border-color:var(--line)}html[data-theme="dark"] .release-notes-list li:before{background:#153a2b;color:#8ee6b5}
html[data-theme="dark"] .mastery-summary{background:linear-gradient(135deg,#171719,#21191a)}html[data-theme="dark"] .mastery-pie::before{background:var(--card)}
html[data-theme="dark"] .preset-row.active{background:#10281d;border-color:#285c42}html[data-theme="dark"] .preset-active-badge{background:#123125;color:#8ce0b5}
html[data-theme="dark"] .deep-learning-card,html[data-theme="dark"] .deep-learning-result{background:linear-gradient(145deg,#151c29,#171719);border-color:#345686}
html[data-theme="dark"] .deep-learning-note{background:#17243a;color:#b7d0ff}html[data-theme="dark"] .deep-learning-progress{background:#242125;border-color:#3f536f}
html[data-theme="dark"] .mode-deep-badge{background:#17243a;color:#b7d0ff}
html[data-theme="dark"] .install-platform{background:#242125;border-color:var(--line)}html[data-theme="dark"] .install-platform.recommended{background:#17243a;border-color:#345686}
html[data-theme="dark"] .install-status.success{background:#10281d;border-color:#285c42;color:#8ce0b5}
html[data-theme="dark"] .question-dot{background:#29262a;color:#d1c8c2;border-color:#5e565e}html[data-theme="dark"] .question-dot.answered{background:#17243a;color:#b7d0ff;border-color:#4d75b7}html[data-theme="dark"] .question-dot.correct{background:#123125;color:#8ce0b5;border-color:#33875c}html[data-theme="dark"] .question-dot.wrong{background:#3a1b1d;color:#ffc0ba;border-color:#a64a4b}html[data-theme="dark"] .question-dot.blank{background:#302b2d;color:#d5ccc6;border-color:#6e6369}
html[data-theme="dark"] .settings-total,html[data-theme="dark"] .targeted-empty{background:#332a12;border-color:#826824;color:#f7d98b}
html[data-theme="dark"] .subject-mini-stats .known{background:#123125;color:#8ce0b5}html[data-theme="dark"] .subject-mini-stats .review{background:#392e15;color:#f7d98b}html[data-theme="dark"] .subject-mini-stats .unknown{background:#3a1b1d;color:#ffc0ba}html[data-theme="dark"] .subject-mini-stats .unanswered{background:#29262a;color:#d1c8c2}
html[data-theme="dark"] textarea,html[data-theme="dark"] input[type=file],html[data-theme="dark"] .port-control{background:#111113;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .version-badge,html[data-theme="dark"] .version-comparison span{background:#242426;color:var(--muted)}
html[data-theme="dark"] .update-source-card{background:var(--surface,#171719);border-color:var(--line)}
html[data-theme="dark"] .update-changelog pre{background:#111113;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .logic-topic-card-head>span,html[data-theme="dark"] .logic-distribution-total{background:#242125;color:var(--ink)}
html[data-theme="dark"] .logic-topic-mini .known{background:#123125;color:#8ce0b5}html[data-theme="dark"] .logic-topic-mini .review{background:#392e15;color:#f7d98b}html[data-theme="dark"] .logic-topic-mini .unknown{background:#3a1b1d;color:#ffc0ba}html[data-theme="dark"] .logic-topic-mini .unanswered{background:#29262a;color:#d1c8c2}
html[data-theme="dark"] .logic-distribution,html[data-theme="dark"] .active-logic-distribution{background:#151c29;border-color:#345686}html[data-theme="dark"] .logic-distribution.invalid{background:#332a12;border-color:#826824}
html[data-theme="dark"] .registration-approval-note,html[data-theme="dark"] .cloud-user-card.pending-approval{background:#332a12;border-color:#826824;color:#f7d98b}html[data-theme="dark"] .cloud-user-role.pending{background:#392e15;color:#f7d98b}
html[data-theme="dark"] .portal-operation-status{background:#10271b;border-color:#245d3a;color:#9be8b7}
html[data-theme="dark"] .portal-operation-status.downloading,html[data-theme="dark"] .portal-operation-status.backing-up,html[data-theme="dark"] .portal-operation-status.installing,html[data-theme="dark"] .portal-operation-status.restarting,html[data-theme="dark"] .portal-operation-status.stopping{background:#332711;border-color:#775b22;color:#f8d57d}
html[data-theme="dark"] .portal-operation-status.error{background:#351517;border-color:#7a2d31;color:#ffb4b8}
html[data-theme="dark"] .tutor-home-card,html[data-theme="dark"] .tutor-plan{background:linear-gradient(145deg,#151c29,#171719);border-color:#345686}html[data-theme="dark"] .tutor-transparent,html[data-theme="dark"] .tutor-strategy{background:#17243a;color:#b7d0ff}html[data-theme="dark"] .tutor-allocation span,html[data-theme="dark"] .tutor-track-stats span,html[data-theme="dark"] .tutor-method-grid span{background:#242125;border-color:var(--line)}html[data-theme="dark"] .tutor-priority-head>strong{background:#392e15;color:#f7d98b}html[data-theme="dark"] .tutor-priority-card.danger .tutor-priority-head>strong{background:#3a1b1d;color:#ffc0ba}html[data-theme="dark"] .tutor-method-grid b{background:#ef6257}
html[data-theme="dark"] .admin-dashboard-summary .cutoff{background:#30250b;color:#ffdc82;border-color:#775e19}html[data-theme="dark"] .admin-dashboard-summary .cutoff strong{color:#ffdc82}
html[data-theme="dark"] .dashboard-bands>div.clickable:hover,html[data-theme="dark"] .dashboard-bands>div.clickable:focus-visible{background:#242125}
html[data-theme="dark"] .dashboard-candidate-details,html[data-theme="dark"] .dashboard-candidate-details>summary{background:var(--card);color:var(--ink)}
html[data-theme="dark"] .dashboard-candidate-details[open]>summary,html[data-theme="dark"] .dashboard-candidate-attempt{background:#242125!important;color:var(--ink)}
html[data-theme="dark"] .user-privacy-note{background:#10281d;color:#a9e5bc;border-color:#285c42}
html[data-theme="dark"] .user-privacy-note .meta{color:#b9d9c5}
html[data-theme="dark"] .review-count{background:#29262a;color:var(--ink)}
