
:root{color-scheme:light dark}
#dia-theme-control{position:fixed;right:16px;bottom:16px;z-index:99999;font:600 13px/1.3 system-ui,-apple-system,Segoe UI,sans-serif}
#dia-theme-control button,#dia-theme-control select{font:inherit}
#dia-theme-toggle{border:1px solid rgba(148,163,184,.45);border-radius:999px;padding:10px 14px;background:#0f172a;color:#f8fafc;box-shadow:0 8px 28px rgba(0,0,0,.22);cursor:pointer}
#dia-theme-panel{display:none;margin-top:8px;padding:12px;border-radius:14px;background:#fff;color:#0f172a;border:1px solid #cbd5e1;box-shadow:0 12px 32px rgba(0,0,0,.2);min-width:190px}
#dia-theme-panel[aria-hidden="false"]{display:block}
#dia-theme-panel label{display:block;font-size:11px;color:#64748b;margin-bottom:6px}
#dia-theme-choice{width:100%;padding:9px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;color:#0f172a}
html[data-dia-theme="light"]{color-scheme:light}
html[data-dia-theme="dark"]{color-scheme:dark}
html[data-dia-theme="light"] body{background:#f1f5f9!important;color:#0f172a!important}
html[data-dia-theme="dark"] body{background:#070b14!important;color:#e2e8f0!important}
html[data-dia-theme="light"] .hud-card,
html[data-dia-theme="light"] .hud-card.p-7,
html[data-dia-theme="light"] .hud-card.p-5{background:rgba(255,255,255,.94)!important;border-color:#dbe3ee!important;color:#0f172a!important;box-shadow:0 2px 10px rgba(15,23,42,.05)}
html[data-dia-theme="light"] .hud-input{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}
html[data-dia-theme="light"] .text-white{color:#0f172a!important}
html[data-dia-theme="light"] .text-slate-100,
html[data-dia-theme="light"] .text-slate-200,
html[data-dia-theme="light"] .text-slate-300{color:#334155!important}
html[data-dia-theme="light"] .bg-slate-900,
html[data-dia-theme="light"] .bg-slate-800,
html[data-dia-theme="light"] .bg-\[\#070b14\],
html[data-dia-theme="light"] .bg-\[\#0b1220\]{background-color:#fff!important}
html[data-dia-theme="light"] .border-slate-700,
html[data-dia-theme="light"] .border-slate-800{border-color:#cbd5e1!important}
html[data-dia-theme="dark"] .bg-white{background-color:#111827!important;color:#e5e7eb!important}
html[data-dia-theme="dark"] .bg-slate-50,
html[data-dia-theme="dark"] .bg-gray-50{background-color:#0b1220!important;color:#e2e8f0!important}
html[data-dia-theme="dark"] .text-gray-900,
html[data-dia-theme="dark"] .text-slate-900{color:#f8fafc!important}
html[data-dia-theme="dark"] .text-gray-700,
html[data-dia-theme="dark"] .text-gray-600,
html[data-dia-theme="dark"] .text-slate-700,
html[data-dia-theme="dark"] .text-slate-600{color:#cbd5e1!important}
html[data-dia-theme="dark"] .border-gray-100,
html[data-dia-theme="dark"] .border-gray-200,
html[data-dia-theme="dark"] .border-slate-200{border-color:#334155!important}
@media(max-width:640px){#dia-theme-control{right:10px;bottom:10px}#dia-theme-toggle{padding:9px 12px}}
