/* Dark mode (generated from style.css + overrides) */
html[data-theme=dark] .bt small{color:var(--mut)!important}html[data-theme=dark] .grp{color:var(--ink)!important}html[data-theme=dark] .wn small{color:var(--mut)!important}html[data-theme=dark] .gh{color:var(--ink)!important}html[data-theme=dark] label{color:var(--ink)!important}html[data-theme=dark] input,html[data-theme=dark] select{background:var(--card)!important}html[data-theme=dark] .btn2{background:#243049!important;color:var(--ink)!important}html[data-theme=dark] .btn2:hover{background:#243049!important}html[data-theme=dark] .err{background:#402828!important;color:#fa7d7d!important}html[data-theme=dark] .note{background:#28402f!important;color:#7dfaac!important;border:1px solid #516e68!important}html[data-theme=dark] .stat{background:var(--card)!important}html[data-theme=dark] .tile{background:var(--card)!important}html[data-theme=dark] .ti{background:#243049!important}html[data-theme=dark] .tw{background:var(--card)!important}html[data-theme=dark] th,html[data-theme=dark] td{border-bottom:1px solid var(--line)!important}html[data-theme=dark] th{background:#1a2237!important}html[data-theme=dark] tr:hover>td{background:#1a2237!important}html[data-theme=dark] .th{background:#243049!important}html[data-theme=dark] .bad{background:#402828!important;color:#fa7d7d!important}html[data-theme=dark] .warn{background:#403714!important;color:#faac7d!important}html[data-theme=dark] .ok{background:#26402f!important;color:#7dfaac!important}html[data-theme=dark] .pg a{background:var(--card)!important}html[data-theme=dark] .sec-row{border-top:1px solid var(--line)!important}html[data-theme=dark] .ed{background:#1a2237!important}html[data-theme=dark] .chip{background:#243049!important;color:#857dfa!important}html[data-theme=dark] .chip i{color:#7d80fa!important}html[data-theme=dark] .chip button{color:#fa7d7d!important}html[data-theme=dark] .chip button:hover{color:#fa7d7d!important}html[data-theme=dark] .dd{background:#1a2237!important}html[data-theme=dark] .mbox{background:var(--card)!important}html[data-theme=dark] .sb nav a.wl .dot{background:var(--card)!important;color:#fa7d7d!important}html[data-theme=dark] .alertbar{background:repeating-linear-gradient(-45deg,#402828,#402828 14px,#402828 14px,#402828 28px)!important;color:#fa7d7d!important}html[data-theme=dark] .alertbar .ic{color:#fa7d7d!important}html[data-theme=dark] .alertbar:hover{background:#402828!important}html[data-theme=dark] .verdict.yes{background:#26402f!important;color:#7dfaac!important}html[data-theme=dark] .verdict.none{background:#243049!important;color:var(--ink)!important}html[data-theme=dark] .nat th{background:#402828!important;color:#fa7d7d!important}html[data-theme=dark] .n{background:var(--card)!important}html[data-theme=dark] .n.unread{background:#1a2237!important}html[data-theme=dark] .n span{color:var(--ink)!important}html[data-theme=dark] code{background:#243049!important}html[data-theme=dark] .oimg{background:#243049!important}html[data-theme=dark] .bd{background:#243049!important;color:#817dfa!important}html[data-theme=dark] .bd.olive{background:#334018!important;color:#c3fa7d!important}html[data-theme=dark] .dt{color:var(--ink)!important}html[data-theme=dark] .kc span{background:var(--card)!important;color:var(--ink)!important}html[data-theme=dark] .kc input:checked+span{background:#243049!important;color:#817dfa!important}html[data-theme=dark] .sc{background:var(--card)!important}html[data-theme=dark] .sc:hover{background:#1a2237!important}html[data-theme=dark] .sc img,html[data-theme=dark] .sc .sci{background:#243049!important}html[data-theme=dark] img.logo{background:var(--card)!important}html[data-theme=dark] .pg1{background:var(--card)!important}html[data-theme=dark] .pg1 img{background:#243049!important}html[data-theme=dark] .ok2{background:#26402f!important;color:#7dfaac!important}html[data-theme=dark] .bad2{background:#402828!important;color:#fa7d7d!important}html[data-theme=dark] .warn2{background:#403714!important;color:#faac7d!important}html[data-theme=dark] .log2{color:var(--ink)!important}html[data-theme=dark] .nx button:hover{background:#402828!important;color:#fa7d7d!important}html[data-theme=dark] .dupw{background:#403b28!important;color:#faaa7d!important}html[data-theme=dark] .pbar{background:#243049!important}html[data-theme=dark] .ptxt{color:var(--ink)!important}html[data-theme=dark] .stat.live{background:linear-gradient(180deg,#28402f,var(--card))!important}html[data-theme=dark] .live-card{background:linear-gradient(135deg,#28402f,var(--card))!important;border-color:#516e68!important}html[data-theme=dark] .chips-on{color:var(--ink)!important}html[data-theme=dark] .ochip{background:#26402f!important;color:#7dfaac!important}html[data-theme=dark] .devrow{border-top:1px solid var(--line)!important}html[data-theme=dark] .gcard{background:linear-gradient(135deg,#284034,#1e402f)!important}html[data-theme=dark] .gcard .sc{background:var(--card)!important}html[data-theme=dark] .zc{border-top:1px solid var(--line)!important}html[data-theme=dark] body{background:#243049!important}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{border:1.5px solid var(--line)!important;background:var(--card)!important}html[data-theme=dark] .sheet-user .su small{color:var(--mut)!important}@media(max-width:900px){html[data-theme=dark] body.app-body{background:#243049!important}html[data-theme=dark] .tb-title b{color:#7da2fa!important}html[data-theme=dark] .tb-title small{color:var(--mut)!important}html[data-theme=dark] .tb-ic{background:var(--card)!important;color:var(--ink)!important}html[data-theme=dark] .tabbar a,html[data-theme=dark] .tabbar button{color:var(--mut)!important}html[data-theme=dark] .tabbar a.on{background:#243049!important}html[data-theme=dark] .tabbar a[href="restricted.php"]:not(.on) svg{color:#fa7d7d!important}html[data-theme=dark] .sheet{background:var(--card)!important}html[data-theme=dark] .sheet-grid a{background:#243049!important;color:var(--ink)!important}html[data-theme=dark] .sheet-grid a.on{background:#243049!important}html[data-theme=dark] table.lst tr{background:var(--card)!important}html[data-theme=dark] table.lst td.c-up{color:var(--mut)!important}}html[data-theme=dark] .seg{background:#243049!important}html[data-theme=dark] .seg button{color:var(--ink)!important}html[data-theme=dark] .seg button.on{background:var(--card)!important}
html[data-theme=dark] [style*="background:#eef1f7"]{background:#243049!important}
html[data-theme=dark] [style*="background:#f1f5f9"]{background:#243049!important}
html[data-theme=dark] [style*="background:#fff"]{background:var(--card)!important}
html[data-theme=dark] [style*="border:4px solid #e0e7ff"]{border:4px solid #60677a!important}
html[data-theme=dark] [style*="color:#166534"]{color:#7dfaac!important}
html[data-theme=dark] [style*="color:#334155"]{color:var(--ink)!important}
html[data-theme=dark] [style*="color:#64748b"]{color:var(--mut)!important}
html[data-theme=dark] [style*="color:#92400e"]{color:#faac7d!important}
html[data-theme=dark] [style*="color:#991b1b"]{color:#fa7d7d!important}
html[data-theme=dark] [style*="color:#b45309"]{color:#fab37d!important}

html[data-theme=dark]{color-scheme:dark;--bg:#0a0f1d;--card:#141b2d;--ink:#e8ecf6;--mut:#93a0b8;--line:#25304a;--pri:#818cf8;--pri2:#6366f1;--sb:#070b16;--ok:#34d399;--bad:#f87171;--warn:#fbbf24}
html[data-theme=dark] body,html[data-theme=dark] body.app-body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] a{color:#a5b4fc}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f1525!important;color:var(--ink)!important;border-color:#2a3550!important}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#64748b}
html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{border-color:#818cf8!important;box-shadow:0 0 0 4px rgba(129,140,248,.18)}
html[data-theme=dark] .card,html[data-theme=dark] .tile,html[data-theme=dark] .stat,html[data-theme=dark] .sc,html[data-theme=dark] .qa-i,html[data-theme=dark] .tw,html[data-theme=dark] table.lst tr{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.28)}
html[data-theme=dark] .qa-i.red{background:linear-gradient(135deg,#b91c1c,#ea580c);color:#fff}
html[data-theme=dark] .stat.live{background:linear-gradient(180deg,#0d2a22,var(--card))}
html[data-theme=dark] table th{background:#1a2237!important;color:#a9b4cb!important}
html[data-theme=dark] table td,html[data-theme=dark] table th{border-color:var(--line)!important}
html[data-theme=dark] .topbar{background:rgba(10,15,29,.84);border-bottom-color:rgba(255,255,255,.06)}
html[data-theme=dark] .tb-title b{color:var(--ink)}
html[data-theme=dark] .tb-ic{background:#1a2238;color:#e8ecf6;box-shadow:0 1px 2px rgba(0,0,0,.4)}
html[data-theme=dark] .tbd{box-shadow:0 0 0 2px #141b2d}
html[data-theme=dark] .tabbar{background:rgba(20,27,45,.92);box-shadow:0 10px 34px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.06)}
html[data-theme=dark] .tabbar a,html[data-theme=dark] .tabbar button{color:#93a0b8}
html[data-theme=dark] .tabbar a.on{background:#232d4d;color:#a5b4fc}
html[data-theme=dark] .sheet{background:#121a2c;box-shadow:0 -10px 40px rgba(0,0,0,.6)}
html[data-theme=dark] .sheet-grid a{background:#1a2238;color:#e8ecf6}
html[data-theme=dark] .sheet-grid a svg,html[data-theme=dark] .qa-i svg{color:#a5b4fc}
html[data-theme=dark] .sheet-grid a.on{background:#232d4d}
html[data-theme=dark] .sheet-grid a.wl,html[data-theme=dark] .sheet-grid a.gl{color:#fff}
html[data-theme=dark] .sheet-grid a.wl svg,html[data-theme=dark] .sheet-grid a.gl svg{color:#fff}
html[data-theme=dark] .sheet-user .su small,html[data-theme=dark] .tb-title small{color:#93a0b8}
html[data-theme=dark] .grab{background:#33405f}
html[data-theme=dark] .seg{background:#1a2238}
html[data-theme=dark] .seg button{color:#93a0b8;background:transparent}
html[data-theme=dark] .seg button.on{background:#2a3558;color:#c7d2fe;box-shadow:none}
html[data-theme=dark] .modal .mbox,html[data-theme=dark] .mbox{background:var(--card);color:var(--ink)}
html[data-theme=dark] .ti{background:#232d4d;color:#a5b4fc}
html[data-theme=dark] .empty{color:#93a0b8}
html[data-theme=dark] footer{color:#64748b}
html[data-theme=dark] hr{border-color:var(--line)}
html[data-theme=dark] img.th,html[data-theme=dark] .th{background:#1a2237}
html[data-theme=dark] body.guest main.narrow .card{background:rgba(20,27,45,.94)}
html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#33405f}
html[data-theme=dark] .bsw.sheetb{background:#1a2238;color:#e8ecf6}
html[data-theme=dark] .bsw.sheetb select{background:#0f1525!important;color:#e8ecf6!important;border-color:#2a3550!important}
