/* Leader Avto Test — tungi rejim (html[data-theme=dark]) */
.theme-btn{width:40px;height:40px;border-radius:11px;border:1px solid var(--slate-200);background:var(--surface,#fff);color:var(--slate-600);display:grid;place-items:center;cursor:pointer;flex-shrink:0;transition:.18s}
.theme-btn:hover{border-color:var(--blue);color:var(--blue)}
.i-sun,[data-theme=dark] .i-moon{display:none}
[data-theme=dark] .i-sun{display:block}
.theme-item{display:none!important}
.auth-top{gap:8px;align-items:center}
@media (max-width:420px){.header-right>.theme-btn{display:none}.theme-item{display:flex!important}}

html[data-theme=dark]{
  color-scheme:dark;--surface:#121c30;--surface-2:#18243c;
  --slate-50:#162238;--slate-100:#0b1220;--slate-200:#24324d;--slate-300:#33476b;--slate-400:#7488a8;
  --slate-500:#94a7c4;--slate-600:#b3c2d8;--slate-700:#c9d5e6;--slate-800:#e2e8f0;--slate-900:#f1f5f9;
  --navy:#eaf1ff;--green-l:rgba(34,197,94,.16);--red-l:rgba(239,68,68,.16);--green-d:#4ade80;--red-d:#f87171;
  --shadow:0 10px 30px -14px rgba(0,0,0,.6);--shadow-lg:0 24px 60px -20px rgba(0,0,0,.75);
}
[data-theme=dark] body,[data-theme=dark] body.auth-body,[data-theme=dark] .auth-main{background:var(--slate-100)}
[data-theme=dark] :is(.module-card:not(.feat),.lang-btn,.lang-menu,.btn-back,.sec-block,.mode-card,.chip:not(.active),.attempt-row,.q-card,.ans,.q-image-box,.q-nav,.dot-btn,.nav-btns button:not(.finish),.quiz-quit,.result-card,.modal-card,.main-nav,.input,.select,.btn:not(.btn-primary):not(.btn-amber),.user-btn,.user-drop,.form-card,.stat,.card,.pager a,.p-modal-card,.mk-empty,.mk-item,.mk-tabs,.mk-pager,.dc-dev-ic,.auth-card){background:var(--surface)}
[data-theme=dark] :is(.site-header,.p-top){background:rgba(15,24,42,.86);border-color:var(--slate-200)}
[data-theme=dark] :is(.sec-head,.tbl tbody tr:hover,.row:hover,a.row:hover,.rstat){background:var(--surface-2)}
[data-theme=dark] .btn-danger{background:transparent;border-color:rgba(239,68,68,.4);color:#f87171}
[data-theme=dark] .btn-danger:hover{background:var(--red);color:#fff}
[data-theme=dark] :is(.ic-blue,.s-blue,.b-blue,.lang-menu a.active,.main-nav a.active,.topic-row .t-go,.ans.sel,.confirm-ans,.mode-card.c-blue .badge){background:rgba(59,130,246,.16);color:#93c5fd}
[data-theme=dark] .ans:hover:not(.locked){background:rgba(59,130,246,.08)}
[data-theme=dark] :is(.ic-amber,.s-amber,.b-amber,.alert-warn,.dc-device,.dc-ic){background:rgba(245,158,11,.14);color:#fbbf24;border-color:rgba(245,158,11,.35)}
[data-theme=dark] :is(.ic-cyan,.s-cyan,.mode-card.c-cyan .badge){background:rgba(14,165,233,.16);color:#7dd3fc}
[data-theme=dark] .alert-error{border-color:rgba(239,68,68,.35)}
[data-theme=dark] .alert-success{border-color:rgba(34,197,94,.35)}
[data-theme=dark] .main-nav a.nav-exam:hover{background:rgba(245,158,11,.12)}
[data-theme=dark] .mk-item:hover{border-color:var(--slate-300)}
[data-theme=dark] .soc-mini{background:rgba(14,165,233,.12);border-color:rgba(14,165,233,.3)}
[data-theme=dark] .dc-device dd{color:var(--slate-800)}
[data-theme=dark] .hero{background:radial-gradient(1200px 500px at 80% -10%,rgba(14,165,233,.22),transparent),linear-gradient(135deg,#0a1628,#0d1d38 55%,#11294d)}
[data-theme=dark] .site-footer{background:#070e1b}
[data-theme=dark] :is(.p-side,.auth-side){background:linear-gradient(180deg,#0a1628,#070f1d)}
[data-theme=dark] :is(.mk-banner,.cred-card){background:linear-gradient(135deg,#0d1d38,#13315c)}
[data-theme=dark] :is(.quiz-timer:not(.warn),.toast,.mk-tabs a.active,.chart .tip){background:#2a3b5c}
[data-theme=dark] .avatar.navy{background:linear-gradient(135deg,#1e3a8a,#3b5bdb)}
[data-theme=dark] .q-image-box img{background:#fff}
[data-theme=dark] .tbl .mono,[data-theme=dark] .tbl .who .login{background:var(--slate-100)}
@media (min-width:600px) and (max-width:900px){[data-theme=dark] body.auth-body{background:linear-gradient(140deg,#0a1628,#13315c)}}
