
/* ═══════════ 深色主题覆盖 ═══════════ */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#080d14;--card:#0f1722;--ink:#e7eef8;--muted:#7d8ea6;--line:rgba(120,160,220,.14);--accent:#38d9ff;--soft:rgba(56,217,255,.12);
  --ok:#2ee6a8;--bad:#ff5c72;--warn:#f5b942;
}
:root[data-theme="dark"] body{background:#080d14;color:#e7eef8}
:root[data-theme="dark"] .rail{background:#0b121b;border-right:1px solid rgba(120,160,220,.12)}
:root[data-theme="dark"] .nav a{color:#93a1b3}
:root[data-theme="dark"] .nav a:hover{background:#111c28;color:#fff}
:root[data-theme="dark"] .nav a.on{background:rgba(56,217,255,.12);color:#7fe7ff;box-shadow:inset 2px 0 0 #38d9ff}
:root[data-theme="dark"] .brand b{color:#fff}
:root[data-theme="dark"] .brand small,:root[data-theme="dark"] .rail .out{color:#61707f}
:root[data-theme="dark"] .top,:root[data-theme="dark"] .main{background:transparent}
:root[data-theme="dark"] .top{border-bottom:1px solid rgba(120,160,220,.12)}
:root[data-theme="dark"] .top h1{color:#e7eef8}
:root[data-theme="dark"] .crumb{color:#7d8ea6}
:root[data-theme="dark"] .card{background:#0f1722;border-color:rgba(120,160,220,.14);box-shadow:0 1px 2px rgba(0,0,0,.4),0 18px 50px -30px rgba(0,0,0,.9)}
:root[data-theme="dark"] .card h3{color:#8fa2b8}
:root[data-theme="dark"] .muted{color:#7d8ea6}
:root[data-theme="dark"] a{color:#7fe7ff}
:root[data-theme="dark"] table th{color:#7d8ea6;border-color:rgba(120,160,220,.12)}
:root[data-theme="dark"] table td{border-color:rgba(120,160,220,.08)}
:root[data-theme="dark"] tr:hover td{background:rgba(56,217,255,.04)}
:root[data-theme="dark"] .tag{background:rgba(56,217,255,.12);color:#8fe9ff}
:root[data-theme="dark"] .btn{background:#121c28;border-color:rgba(120,160,220,.18);color:#c9d6e6}
:root[data-theme="dark"] .btn:hover{border-color:#38d9ff;color:#7fe7ff}
:root[data-theme="dark"] .btn.pri{background:linear-gradient(180deg,#2f8dff,#1f6fe0);border-color:#3b82f6;color:#fff}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#0b121b;border-color:rgba(120,160,220,.18);color:#e7eef8}
:root[data-theme="dark"] input:focus,:root[data-theme="dark"] select:focus,:root[data-theme="dark"] textarea:focus{border-color:#38d9ff;box-shadow:0 0 0 3px rgba(56,217,255,.14)}
:root[data-theme="dark"] .bar{background:rgba(120,160,220,.14)}
:root[data-theme="dark"] pre{background:#050a12;color:#cfe3f5}
:root[data-theme="dark"] .flash.ok{background:rgba(46,230,168,.12);color:#5ff0c0}
:root[data-theme="dark"] .flash.bad{background:rgba(255,92,114,.12);color:#ff8a9a}
:root[data-theme="dark"] .msgs{background:#0b121b;border-color:rgba(120,160,220,.14)}
:root[data-theme="dark"] .msg .av{background:#121c28;color:#9fb0c4}
:root[data-theme="dark"] .bub{background:#121c28;border-color:rgba(120,160,220,.14);color:#e7eef8}
:root[data-theme="dark"] .msg.u .bub{background:#1f6fe0;border-color:#2f8dff}
:root[data-theme="dark"] .chip{background:#0f1722;border-color:rgba(120,160,220,.16);color:#a9b8cb}
:root[data-theme="dark"] .tool{border-color:rgba(120,160,220,.16);background:#0b121b}
:root[data-theme="dark"] .tool .th{border-color:rgba(120,160,220,.12);color:#7d8ea6}
:root[data-theme="dark"] .actioncard{background:rgba(56,217,255,.06);border-color:rgba(56,217,255,.25)}
:root[data-theme="dark"] .preview{background:#0f1722;border-color:rgba(120,160,220,.14)}
:root[data-theme="dark"] .pv-top,:root[data-theme="dark"] .pv-foot{border-color:rgba(120,160,220,.12)}
:root[data-theme="dark"] .pv-url{background:#0b121b;border-color:rgba(120,160,220,.16);color:#7d8ea6}
:root[data-theme="dark"] .pv-url b{color:#c9d6e6}
:root[data-theme="dark"] .pv-body{background:#0b121b}
:root[data-theme="dark"] .rail-open{background:#0f1722;border-color:rgba(120,160,220,.16);color:#7d8ea6}
:root[data-theme="dark"] .snav a{color:#8fa2b8}
:root[data-theme="dark"] .kpi .num,:root[data-theme="dark"] .num{color:#eaf3ff}
:root[data-theme="dark"] .pill{background:#0f1722;border-color:rgba(120,160,220,.16);color:#a9b8cb}
:root[data-theme="dark"] .tabs a{color:#7d8ea6}
:root[data-theme="dark"] .tabs a.on{color:#7fe7ff}
:root[data-theme="dark"] .chatpage{border-color:rgba(120,160,220,.14);background:#0b121b}
:root[data-theme="dark"] .chatside{background:#0b121b;border-color:rgba(120,160,220,.12)}
:root[data-theme="dark"] .thread{color:#c9d6e6}
:root[data-theme="dark"] .thread:hover{background:#121c28}
:root[data-theme="dark"] .thread.on{background:rgba(56,217,255,.12)}
:root[data-theme="dark"] .thread .av{background:#121c28;color:#9fb0c4}
:root[data-theme="dark"] .chathead{border-color:rgba(120,160,220,.12)}
:root[data-theme="dark"] .chatbody{background:#0b121b}
:root[data-theme="dark"] .composer2{background:#0b121b;border-color:rgba(120,160,220,.12)}
:root[data-theme="dark"] .chart-tip{background:#050a12;color:#dff6ff;border:1px solid rgba(56,217,255,.3)}
