:root[data-theme=dark]{color-scheme:dark;--ink:#f3f5fb;--muted:#8e9ab2;--line:#2b3347;--bg:#0c1019;--card:#171d2a;--accent:#7c6df2;--accent-soft:#282344;--green:#45d39b;--red:#ff6f7d;--shadow:0 18px 50px rgba(0,0,0,.32)}
[data-theme=dark] body{background:radial-gradient(circle at 76% -15%,#252047 0,transparent 32%),var(--bg);color:var(--ink)}
[data-theme=dark] .sidebar{background:linear-gradient(180deg,#111725,#0d121d);border-right:1px solid #252d40}[data-theme=dark] .brand-mark{background:linear-gradient(145deg,#917ffb,#6254d8);box-shadow:0 8px 22px rgba(108,87,225,.28)}[data-theme=dark] .nav-item:hover,[data-theme=dark] .nav-item.active{background:#242b3d}[data-theme=dark] .storage-note{background:#141b29;border-color:#283147}[data-theme=dark] .lang-toggle{border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.06)}[data-theme=dark] .lang-toggle:hover{background:rgba(255,255,255,.14)}
[data-theme=dark] .workspace{background:transparent}[data-theme=dark] .topbar h1{color:#fff}[data-theme=dark] .button.secondary{color:#c5ccdb;background:#181f2d;border-color:#313a4f}[data-theme=dark] .button.secondary:hover{background:#222a3b}[data-theme=dark] .button.primary{background:linear-gradient(135deg,#8777f5,#6859db);box-shadow:0 8px 22px rgba(105,88,220,.28)}
[data-theme=dark] .stats article,[data-theme=dark] .desk{background:rgba(23,29,42,.96);border-color:var(--line)}[data-theme=dark] .stats article{box-shadow:0 7px 24px rgba(0,0,0,.14)}[data-theme=dark] .stats strong{color:#fff}[data-theme=dark] .list-pane{border-color:var(--line)}[data-theme=dark] .toolbar{border-color:var(--line)}[data-theme=dark] .search,[data-theme=dark] .toolbar select{color:#d8deeb;background:#111722;border-color:#30394d}[data-theme=dark] .search input{color:#eef1f8}[data-theme=dark] .search input::placeholder{color:#68748c}[data-theme=dark] .bulk-bar{background:#292348}
[data-theme=dark] th,[data-theme=dark] td{border-color:#242c3e}[data-theme=dark] tbody tr:hover,[data-theme=dark] tbody tr.selected{background:#20263a}[data-theme=dark] .mini-avatar,[data-theme=dark] .avatar{color:#b7adff;background:#292447}[data-theme=dark] .badge{color:#b3bdd1;background:#293145}[data-theme=dark] .badge.sent,[data-theme=dark] .badge.done{color:#62dfac;background:#173b32}[data-theme=dark] .badge.error{color:#ff8892;background:#412229}[data-theme=dark] .chip{color:#b7c0d3;background:#252d40}[data-theme=dark] .detail-pane{background:#111722}[data-theme=dark] .detail-head{background:#1a2130;border-color:#30394d}[data-theme=dark] .field{color:#aab4c7}[data-theme=dark] .field input,[data-theme=dark] .field select,[data-theme=dark] .field textarea{color:#edf0f7;background:#111722;border-color:#313a4e}[data-theme=dark] .message-preview,[data-theme=dark] .history-item{color:#b9c2d4;background:#202738}[data-theme=dark] .action-button{color:#c9d0df;background:#1b2231;border-color:#343d52}[data-theme=dark] .primary-action{color:#fff;background:linear-gradient(135deg,#8272ef,#6557d7);border-color:transparent}[data-theme=dark] .history{border-color:var(--line)}[data-theme=dark] dialog{color:var(--ink);background:#181f2d}[data-theme=dark] dialog::backdrop{background:rgba(3,6,12,.76)}[data-theme=dark] .toast{background:#7768e8;color:#fff}
[data-theme=dark] .gesture-button{border-color:#343d52;color:#cbd2df;background:#1b2231}[data-theme=dark] .gesture-button:hover{filter:brightness(1.12)}[data-theme=dark] .exclude-button{color:#ff8d98;background:#321e27;border-color:#55303a}[data-theme=dark] .defer-button{color:#f1c66f;background:#30291d;border-color:#51432b}[data-theme=dark] .move-button{color:#b8afff;background:#272341;border-color:#423a69}[data-theme=dark] .shortcut-hint{color:#8e9ab2}
@media(max-width:1050px){[data-theme=dark] .detail-pane{background:#0f141f}[data-theme=dark] .mobile-detail-bar{background:rgba(15,20,31,.92);border-color:#293247}[data-theme=dark] .mobile-detail-bar button{color:#fff;background:#20283a;box-shadow:none}[data-theme=dark] .detail-head{background:linear-gradient(145deg,#1d2535,#171d2b);box-shadow:0 12px 32px rgba(0,0,0,.18)}[data-theme=dark] .action-grid{background:rgba(23,29,42,.94);border-color:#323b4f}[data-theme=dark] .gesture-guide{color:#939eb4;background:#171e2d}[data-theme=dark] .gesture-feedback{background:#7869e8;box-shadow:0 10px 30px rgba(0,0,0,.3)}}
