html[data-theme="dark"]{color-scheme:dark;--blue:#5aa2ff;--dark:#dbeaff;--line:#344b68;--muted:#a9b8ca;--bg:#0b1422}
html[data-theme="dark"] body{background:linear-gradient(180deg,#0b1422,#101c2d);color:#eef4ff}
html[data-theme="dark"] .login{background:linear-gradient(145deg,#050c16,#0a3569)}
html[data-theme="dark"] :where(.login-card,.stat,.panel,.card){background:#162235;color:#eef4ff;border-color:#344b68;box-shadow:none}
html[data-theme="dark"] :where(input,select,textarea){background:#0f1b2b;color:#eef4ff;border-color:#415875}
html[data-theme="dark"] input:focus{outline:2px solid #5aa2ff;outline-offset:1px}
html[data-theme="dark"] header{background:#071f3f}
html[data-theme="dark"] .secondary{background:#1c2b40;color:#eaf2ff;border-color:#405673}
html[data-theme="dark"] nav button{background:#1c2b40;color:#c7d6e8}
html[data-theme="dark"] nav button.active{background:#2f81f7;color:#fff}
html[data-theme="dark"] .badge{background:#1b3554;color:#9cc8ff}
html[data-theme="dark"] dialog{background:#162235;color:#eef4ff}
html[data-theme="dark"] dialog::backdrop{background:#000b}
html[data-theme="dark"] .error{background:#451e27;color:#ffd7dc;border-color:#8f3e4f}
html[data-theme="dark"] .login-card :where(h1,p,label,strong){color:#eef4ff}
html[data-theme="dark"] header :where(strong,small,span){color:#fff}
html[data-theme="dark"] .welcome h1,html[data-theme="dark"] .card h3{color:#dbeaff}
html[data-theme="dark"] a{color:#8fc2ff}
html[data-theme="dark"] ::-webkit-scrollbar{width:12px;height:12px}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:#0b1422}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#425a76;border:3px solid #0b1422;border-radius:10px}
@media print{html[data-theme="dark"]{color-scheme:light;--dark:#07366f;--line:#d7e0eb;--muted:#64748b;--bg:#fff}html[data-theme="dark"] body,html[data-theme="dark"] :where(.panel,.card){background:#fff!important;color:#111!important}}
