/* 自动生成：python3 tools/gen_dark_css.py（不要手改，改生成脚本） */
html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #b77dff; --brand-strong: #cfa6ff; --brand-soft: rgba(158, 60, 248, .24); --brand-wash: #1d1729;
  --ink: #ece6f5; --ink-soft: #a89cb8; --line: #2e2640;
  --t1: #ece6f5; --t2: #bdb2cd; --t3: #8b809d;
  --surface: #17121f; --page: #0f0b15; --hairline: rgba(255, 255, 255, .08);
  --danger: #ff8a9b; --danger-bg: rgba(255, 90, 110, .13); --success: #6ee7a8; --success-bg: rgba(52, 211, 153, .13);
  --warn: #f5c46b; --warn-bg: rgba(245, 158, 11, .13); --neutral-bg: #221b2d;
  --shadow-sm: 0 0 0 .5px rgba(255, 255, 255, .06), 0 1px 3px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-hover: 0 0 0 .5px rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .35);
  --shadow-pop: 0 0 0 .5px rgba(255, 255, 255, .1), 0 24px 70px rgba(0, 0, 0, .6);
  --ring: 0 0 0 3px rgba(183, 125, 255, .28);
  --ctl-line: rgba(255, 255, 255, .13); --ctl-line-hover: rgba(255, 255, 255, .26); --ctl-bg-hover: #221a2e;
}
html[data-theme="dark"] body { background: var(--page); color: var(--t1); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: var(--surface); color: var(--t1); border-color: var(--ctl-line); }
html[data-theme="dark"] ::placeholder { color: #6f6582; }
html[data-theme="dark"] .cx-shell { --cx-b: rgba(255,255,255,.08); --cx-bm: rgba(255,255,255,.14); --cx-el: #1f1929; --cx-t1: #ece6f5; --cx-t2: #bdb2cd; --cx-t3: #8b809d; }
html[data-theme="dark"] img.qr-img, html[data-theme="dark"] .qr-img { background: #fff; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a3150; }

/* ---- 以下由脚本从 console.css / style.css 扫出的写死浅色生成 ---- */
html[data-theme="dark"] .topbar { background: var(--surface); }
html[data-theme="dark"] .seg-ctrl button.active { background: var(--surface); }
html[data-theme="dark"] .switch .track::after { background: var(--surface); }
html[data-theme="dark"] .preview-frame { background: var(--surface); }
html[data-theme="dark"] .data-table th { background: color-mix(in srgb, #fbf9fd 12%, var(--surface)); }
html[data-theme="dark"] .diff { background: color-mix(in srgb, #fbf9fd 12%, var(--surface)); }
html[data-theme="dark"] .side .nav-item.active .count { background: var(--surface); }
html[data-theme="dark"] .tab.active { background: var(--surface); }
html[data-theme="dark"] .submit-bar { background: var(--surface); }
html[data-theme="dark"] .md th, html[data-theme="dark"] .md-table th { background: color-mix(in srgb, #fbf9fd 12%, var(--surface)); }
html[data-theme="dark"] .todo-panel { background: linear-gradient(180deg, color-mix(in srgb, #fffdf7 12%, var(--surface)) 0%, var(--surface) 60%); }
html[data-theme="dark"] .todo-panel > .row input { background: var(--surface); }
html[data-theme="dark"] .acc-item.accepted { background: color-mix(in srgb, var(--success-bg) 45%, var(--surface)); }
html[data-theme="dark"] .acc-item.rejected { background: color-mix(in srgb, var(--danger-bg) 55%, var(--surface)); }
html[data-theme="dark"] .chip.lc-prod_verify { background: color-mix(in srgb, #e6f0ff 12%, var(--surface)); color: color-mix(in srgb, #1d4ed8 55%, #ffffff); }
html[data-theme="dark"] .art-card { background: var(--surface); }
html[data-theme="dark"] .trail-item { background: var(--surface); }
html[data-theme="dark"] .kpi { background: var(--surface); }
html[data-theme="dark"] .q-files { background: var(--surface); }
html[data-theme="dark"] .qa-row.pass td { background: color-mix(in srgb, var(--success-bg) 40%, var(--surface)); }
html[data-theme="dark"] .qa-row.fail td { background: color-mix(in srgb, var(--danger-bg) 50%, var(--surface)); }
html[data-theme="dark"] .chip.ai { background: color-mix(in srgb, #e8f1ff 12%, var(--surface)); color: color-mix(in srgb, #1d4ed8 55%, #ffffff); border: 1px solid var(--line); }
html[data-theme="dark"] .ai-reason { border-left: 2px solid var(--line); }
html[data-theme="dark"] .merge-run .merge-chip:not(.ready):not(.error):not(.analyzing):not(.waiting_product) { background: color-mix(in srgb, #ede9fe 12%, var(--surface)); color: color-mix(in srgb, #6d28d9 55%, #ffffff); }
html[data-theme="dark"] .res-row:hover { background: color-mix(in srgb, #fdfbff 12%, var(--surface)); }
html[data-theme="dark"] .modal-foot { background: color-mix(in srgb, #fcfaff 12%, var(--surface)); }
html[data-theme="dark"] .art-card.qr .qr-img { background: var(--surface); }
html[data-theme="dark"] .skill-score th.sk-ops { background: color-mix(in srgb, #fbf9fd 12%, var(--surface)); }
html[data-theme="dark"] .skill-score tr.row-evaluating td { background: color-mix(in srgb, #f7efff 12%, var(--surface)); }
html[data-theme="dark"] .vh-item:hover { background: color-mix(in srgb, #fdfbff 12%, var(--surface)); }
html[data-theme="dark"] .vh-body { background: var(--surface); }
html[data-theme="dark"] .diff-view .dl.add { background: color-mix(in srgb, #e9f7ef 12%, var(--surface)); color: color-mix(in srgb, #14532d 55%, #ffffff); }
html[data-theme="dark"] .diff-view .dl.rem { background: color-mix(in srgb, #fdecee 12%, var(--surface)); color: color-mix(in srgb, #8f1d2c 55%, #ffffff); }
html[data-theme="dark"] .lo-item.on { background: color-mix(in srgb, #fcf8ff 12%, var(--surface)); }
html[data-theme="dark"] .lo-tag.sys { color: color-mix(in srgb, #1d4ed8 55%, #ffffff); background: color-mix(in srgb, #e8efff 12%, var(--surface)); }
html[data-theme="dark"] .lo-item.on .lo-view { background: color-mix(in srgb, #fcf8ff 12%, var(--surface)); }
html[data-theme="dark"] .ed-desc { background: color-mix(in srgb, #fdfbff 12%, var(--surface)); }
html[data-theme="dark"] .cx-shell { background: var(--surface); }
html[data-theme="dark"] .cx-proj select { background: var(--surface); }
html[data-theme="dark"] .cx-nav-i { color: var(--t2); }
html[data-theme="dark"] .cx-nav-i.on { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] .cx-row.on { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] .cx-head { background: radial-gradient(circle at 0% 0%, color-mix(in srgb, #F5F3FF 12%, var(--surface)) 0, transparent 30%), radial-gradient(circle at 100% 0%, color-mix(in srgb, #EFF6FF 12%, var(--surface)) 0, transparent 26%), var(--surface); }
html[data-theme="dark"] .cx-face { background: linear-gradient(135deg,color-mix(in srgb, #EEF2FF 12%, var(--surface)),color-mix(in srgb, #FDF2F8 12%, var(--surface))); color: color-mix(in srgb, #6D28D9 55%, #ffffff); }
html[data-theme="dark"] .cx-face-dot { border: 2px solid var(--line); }
html[data-theme="dark"] .cx-live-t { color: color-mix(in srgb, #B45309 55%, #ffffff); }
html[data-theme="dark"] .cx-btn { background: var(--surface); }
html[data-theme="dark"] .cx-btn:hover { border-color: var(--line); }
html[data-theme="dark"] .cx-btn.danger:hover { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .cx-kind.ans { color: color-mix(in srgb, #047857 55%, #ffffff); background: color-mix(in srgb, #ECFDF5 12%, var(--surface)); }
html[data-theme="dark"] .cx-kind.ask { color: color-mix(in srgb, #1D4ED8 55%, #ffffff); background: color-mix(in srgb, #EEF4FF 12%, var(--surface)); }
html[data-theme="dark"] .cx-kind.draft { color: color-mix(in srgb, #6D28D9 55%, #ffffff); background: color-mix(in srgb, #F3F0FF 12%, var(--surface)); }
html[data-theme="dark"] .cx-kind.prog { color: color-mix(in srgb, #0E7490 55%, #ffffff); background: color-mix(in srgb, #ECFEFF 12%, var(--surface)); }
html[data-theme="dark"] .cx-kind.err { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .cx-bubble { background: color-mix(in srgb, #F2F3F5 12%, var(--surface)); }
html[data-theme="dark"] .cx-bubble.human { background: color-mix(in srgb, #E1EAFF 12%, var(--surface)); }
html[data-theme="dark"] .cx-bubble.error { color: color-mix(in srgb, #B91C1C 55%, #ffffff); }
html[data-theme="dark"] .cx-bubble.deliver { background: var(--surface); }
html[data-theme="dark"] .cx-md code { color: color-mix(in srgb, #1D4ED8 55%, #ffffff); }
html[data-theme="dark"] .cx-actions { background: var(--surface); }
html[data-theme="dark"] .cx-actions button { background: var(--surface); }
html[data-theme="dark"] .cx-typing { background: color-mix(in srgb, #F2F3F5 12%, var(--surface)); }
html[data-theme="dark"] .cx-draft-flow { color: color-mix(in srgb, #6D28D9 55%, #ffffff); }
html[data-theme="dark"] .cx-plan { background: var(--surface); }
html[data-theme="dark"] .cx-plan-n.ok { color: color-mix(in srgb, #10B981 55%, #ffffff); }
html[data-theme="dark"] .cx-side { background: color-mix(in srgb, #FBFBFD 12%, var(--surface)); }
html[data-theme="dark"] .cx-side-h { background: var(--surface); }
html[data-theme="dark"] .cx-composer-wrap { background: var(--surface); }
html[data-theme="dark"] .cx-hero-box { background: var(--surface); }
html[data-theme="dark"] .cx-hero-box:focus-within { border-color: var(--line); }
html[data-theme="dark"] .cx-try { color: color-mix(in srgb, #6D28D9 55%, #ffffff); }
html[data-theme="dark"] .cx-tool.static { color: color-mix(in srgb, #4F46E5 55%, #ffffff); }
html[data-theme="dark"] .cx-kbd kbd { background: var(--surface); }
html[data-theme="dark"] .cx-card { background: var(--surface); }
html[data-theme="dark"] .cx-card-band.b0 { background: linear-gradient(135deg,color-mix(in srgb, #E0E7FF 12%, var(--surface)),color-mix(in srgb, #EDE9FE 12%, var(--surface))); }
html[data-theme="dark"] .cx-card-band.b1 { background: linear-gradient(135deg,color-mix(in srgb, #FCE7F3 12%, var(--surface)),color-mix(in srgb, #EDE9FE 12%, var(--surface))); }
html[data-theme="dark"] .cx-card-band.b2 { background: linear-gradient(135deg,color-mix(in srgb, #DCFCE7 12%, var(--surface)),color-mix(in srgb, #E0F2FE 12%, var(--surface))); }
html[data-theme="dark"] .cx-card-band.b3 { background: linear-gradient(135deg,color-mix(in srgb, #FEF3C7 12%, var(--surface)),color-mix(in srgb, #FFE4E6 12%, var(--surface))); }
html[data-theme="dark"] .cx-alt-chip { background: var(--surface); }
html[data-theme="dark"] .cx-status-line b { color: color-mix(in srgb, #0E7490 55%, #ffffff); }
html[data-theme="dark"] .ip { background: color-mix(in srgb, #fdfbff 12%, var(--surface)); }
html[data-theme="dark"] .cx-ask-h b { color: color-mix(in srgb, #6D28D9 55%, #ffffff); }
html[data-theme="dark"] .cx-ask.soft .cx-ask-h b { color: color-mix(in srgb, #047857 55%, #ffffff); }
html[data-theme="dark"] .cx-q { background: var(--surface); }
html[data-theme="dark"] .cx-q-sev { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .cx-q-opt:hover { border-color: var(--line); }
html[data-theme="dark"] .cx-q-opt i { color: color-mix(in srgb, #047857 55%, #ffffff); background: color-mix(in srgb, #ECFDF5 12%, var(--surface)); }
html[data-theme="dark"] .cx-q-other, html[data-theme="dark"] .cx-q-text { background: var(--surface); }
html[data-theme="dark"] .cx-pick { color: color-mix(in srgb, #2563EB 55%, #ffffff) !important; }
html[data-theme="dark"] .cx-menu { background: var(--surface); }
html[data-theme="dark"] .cx-menu button { color: color-mix(in srgb, #111827 55%, #ffffff); }
html[data-theme="dark"] .cx-menu button span { color: var(--t2); }
html[data-theme="dark"] .cx-menu button:hover { background: color-mix(in srgb, #F3F4F6 12%, var(--surface)); }
html[data-theme="dark"] .cx-menu button.on { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] .cx-row-p { color: var(--t2); background: color-mix(in srgb, #F3F4F6 12%, var(--surface)); }
html[data-theme="dark"] .cx-row.on .cx-row-p { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] .cx-proj-sel { background: var(--surface); color: var(--t1); }
html[data-theme="dark"] .cx-more:hover { color: var(--t1); }
html[data-theme="dark"] .cx-ctx { background: var(--surface); }
html[data-theme="dark"] .cx-ctx button { color: color-mix(in srgb, #111827 55%, #ffffff); }
html[data-theme="dark"] .cx-ctx button:hover { background: color-mix(in srgb, #F3F4F6 12%, var(--surface)); }
html[data-theme="dark"] .cx-ctx button.danger { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .seg-ctrl.mode-switch { background: color-mix(in srgb, #F4F5F9 12%, var(--surface)); }
html[data-theme="dark"] .seg-ctrl.mode-switch button { color: var(--t2); }
html[data-theme="dark"] .seg-ctrl.mode-switch button:hover:not(.active) { color: var(--t1); background: color-mix(in srgb, var(--surface) 70%, transparent); }
html[data-theme="dark"] .lang-switch { background: color-mix(in srgb, #F4F5F9 12%, var(--surface)); }
html[data-theme="dark"] .lang-switch button { color: var(--t2); }
html[data-theme="dark"] .lang-switch button:hover:not(.on) { color: var(--t1); background: color-mix(in srgb, var(--surface) 70%, transparent); }
html[data-theme="dark"] .pkg-tag.jk { background: color-mix(in srgb, #e8efff 12%, var(--surface)); color: color-mix(in srgb, #1d4ed8 55%, #ffffff); }
html[data-theme="dark"] .cx-menu-h { color: color-mix(in srgb, #111827 55%, #ffffff); }
html[data-theme="dark"] .cx-mi span { color: var(--t2); }
html[data-theme="dark"] .cx-ck { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] .cx-menu .cx-menu-list button.on .cx-mi b { color: color-mix(in srgb, #2563EB 55%, #ffffff); }
html[data-theme="dark"] body > .cx-menu .cx-menu-q { background: color-mix(in srgb, #F7F7FA 12%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239CA3AF' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center !important; }
html[data-theme="dark"] body > .cx-menu .cx-menu-q:focus { background-color: var(--surface) !important; }
html[data-theme="dark"] body > .cx-menu .cx-menu-list button:hover { background: color-mix(in srgb, #F4F2F8 12%, var(--surface)); }
html[data-theme="dark"] .pv-tag { background: var(--neutral-bg, color-mix(in srgb, #f1f0f4 12%, var(--surface))); }
html[data-theme="dark"] .cx-ver-warn { color: color-mix(in srgb, #b45309 55%, #ffffff); }
html[data-theme="dark"] .dl-q > summary:hover { background: color-mix(in srgb, #fcfaff 12%, var(--surface)); }
html[data-theme="dark"] .dc-kind-tag.dev { background: color-mix(in srgb, #e0f2fe 12%, var(--surface)); color: color-mix(in srgb, #0369a1 55%, #ffffff); }
html[data-theme="dark"] .dc-kind-tag.sop { background: color-mix(in srgb, #f1f5f9 12%, var(--surface)); color: var(--t2); }
html[data-theme="dark"] .dc-p > summary:hover { background: color-mix(in srgb, #fcfaff 12%, var(--surface)); }
html[data-theme="dark"] .dc-ev { background: color-mix(in srgb, #fcfbfe 12%, var(--surface)); }
html[data-theme="dark"] .cm-bubble { background: color-mix(in srgb, #EEF0F6 12%, var(--surface)); color: var(--cx-t1, color-mix(in srgb, #111827 55%, #ffffff)); }
html[data-theme="dark"] .cm-proc > summary:hover { color: var(--cx-t1, color-mix(in srgb, #111827 55%, #ffffff)); }
html[data-theme="dark"] .cm-proc.live, html[data-theme="dark"] .cm-proc.live > summary { color: color-mix(in srgb, #7C3AED 55%, #ffffff); }
html[data-theme="dark"] .cm-steps { border-left: 2px solid var(--line); color: var(--cx-t2, var(--t2)); }
html[data-theme="dark"] .cm-tag.draft { background: color-mix(in srgb, #FEF3C7 12%, var(--surface)); color: color-mix(in srgb, #92400E 55%, #ffffff); }
html[data-theme="dark"] .cm-tag.ask { background: color-mix(in srgb, #EDE9FE 12%, var(--surface)); color: color-mix(in srgb, #6D28D9 55%, #ffffff); }
html[data-theme="dark"] .cm-ai > .cx-md { color: var(--cx-t1, color-mix(in srgb, #111827 55%, #ffffff)); }
html[data-theme="dark"] .cm-ai > .cx-md th, html[data-theme="dark"] .cm-ai > .cx-md td { border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .cm-ai > .cx-md blockquote { border-left: 3px solid var(--line); color: var(--cx-t2, var(--t2)); }
html[data-theme="dark"] .cm-err { background: color-mix(in srgb, #FEF2F2 12%, var(--surface)); color: color-mix(in srgb, #B91C1C 55%, #ffffff); }
html[data-theme="dark"] .cm-ib:hover { background: color-mix(in srgb, #F1F2F5 12%, var(--surface)); color: var(--cx-t1, color-mix(in srgb, #111827 55%, #ffffff)); }
html[data-theme="dark"] .cm-ib.on { color: color-mix(in srgb, #10B981 55%, #ffffff); }
html[data-theme="dark"] .cm-tb { color: var(--cx-t2, var(--t2)); }
html[data-theme="dark"] .cm-tb:hover { background: color-mix(in srgb, #F3F4F6 12%, var(--surface)); color: var(--cx-t1, color-mix(in srgb, #111827 55%, #ffffff)); }
html[data-theme="dark"] .cm-sq { background: var(--surface); }
html[data-theme="dark"] .cm-pop { background: var(--surface); }
html[data-theme="dark"] .cm-pop-h { color: var(--t1); }
html[data-theme="dark"] .cm-pi { color: color-mix(in srgb, #111827 55%, #ffffff); }
html[data-theme="dark"] .cm-pi.on, html[data-theme="dark"] .cm-pi:hover { background: color-mix(in srgb, #F4F2F8 12%, var(--surface)); }
html[data-theme="dark"] .cm-pi-ic { background: color-mix(in srgb, #F3F4F6 12%, var(--surface)); color: var(--t2); }
html[data-theme="dark"] .cm-pi em { color: color-mix(in srgb, #10B981 55%, #ffffff); }
html[data-theme="dark"] .pp-quote { background: color-mix(in srgb, #F5F5F8 12%, var(--surface)); color: var(--t1); border-left: 3px solid var(--line); }
html[data-theme="dark"] .pp-item { color: color-mix(in srgb, #111827 55%, #ffffff); }
html[data-theme="dark"] .pp-item:hover, html[data-theme="dark"] .pp-item:focus { background: color-mix(in srgb, #F4F2F8 12%, var(--surface)); }
html[data-theme="dark"] .pp-item.cand { border-color: var(--line); background: color-mix(in srgb, #FAF7FF 12%, var(--surface)); }
html[data-theme="dark"] .pp-item em { color: color-mix(in srgb, #7C3AED 55%, #ffffff); }
html[data-theme="dark"] .workspace.mode-chat .module { background: var(--surface); }
html[data-theme="dark"] .cx-head { background: var(--surface); }
html[data-theme="dark"] .cx-composer-wrap { background: linear-gradient(to top, var(--surface) 70%, rgba(255,255,255,0)); }
html[data-theme="dark"] .cm-steps li.cur { color: color-mix(in srgb, #7C3AED 55%, #ffffff); }
html[data-theme="dark"] .cm-steps li.think { color: var(--t2); }
html[data-theme="dark"] .cm-think { background: color-mix(in srgb, #F9FAFB 12%, var(--surface)); color: var(--t2); }
html[data-theme="dark"] .cm-steps li.say { color: var(--t2); }
html[data-theme="dark"] .cx-pull { background: var(--surface); color: var(--t2); }
html[data-theme="dark"] .cx-pull:hover { color: color-mix(in srgb, #7C3AED 55%, #ffffff); }
html[data-theme="dark"] .cm-art { background: var(--surface); }
html[data-theme="dark"] .cm-art-ic { background: linear-gradient(135deg,color-mix(in srgb, #EEF2FF 12%, var(--surface)),color-mix(in srgb, #F5F3FF 12%, var(--surface))); }
html[data-theme="dark"] .cm-ab { background: var(--surface); color: var(--t1) !important; }
html[data-theme="dark"] .cm-ab:hover { color: color-mix(in srgb, #7C3AED 55%, #ffffff) !important; }
html[data-theme="dark"] .cm-art-f { background: var(--surface); }
html[data-theme="dark"] .dv-prompt { background: color-mix(in srgb, #fcfbfe 12%, var(--surface)); }
html[data-theme="dark"] .dv-story { background: var(--surface); }
html[data-theme="dark"] .dv-it.guard { color: color-mix(in srgb, #B45309 55%, #ffffff); }
html[data-theme="dark"] .dv-it.ins { background: color-mix(in srgb, #FFF7ED 12%, var(--surface)); }
html[data-theme="dark"] .dv-it.ins b { color: color-mix(in srgb, #C2410C 55%, #ffffff); }
html[data-theme="dark"] .dv-it.live { color: color-mix(in srgb, #7C3AED 55%, #ffffff); }
html[data-theme="dark"] .dv-steer { background: var(--surface); }
html[data-theme="dark"] .cm-tb.cm-perm[data-mode="full"] { color: color-mix(in srgb, #C2410C 55%, #ffffff); background: color-mix(in srgb, #FFF7ED 12%, var(--surface)); }
html[data-theme="dark"] .cm-tb.cm-perm[data-mode="full"]:hover { background: color-mix(in srgb, #FFEDD5 12%, var(--surface)); }
html[data-theme="dark"] .cm-pi.perm-full b, html[data-theme="dark"] .cm-pi.perm-full span, html[data-theme="dark"] .cm-pi.perm-full .cm-pi-ic { color: color-mix(in srgb, #C2410C 55%, #ffffff); }
html[data-theme="dark"] .cx-status-line svg { color: color-mix(in srgb, #059669 55%, #ffffff); }
html[data-theme="dark"] .cm-ap { border: 1px solid var(--line); background: var(--neutral-bg); }
html[data-theme="dark"] .cm-ap.pending { background: color-mix(in srgb, #FFFBEB 12%, var(--surface)); }
html[data-theme="dark"] .cm-ap-h svg { color: color-mix(in srgb, #B45309 55%, #ffffff); }
html[data-theme="dark"] .cm-ap-h > span { color: var(--t2); }
html[data-theme="dark"] .cm-ap-st { color: var(--t2); }
html[data-theme="dark"] .cm-ap-st.ok { color: color-mix(in srgb, #059669 55%, #ffffff); }
html[data-theme="dark"] .cm-ap-st.no { color: color-mix(in srgb, #B91C1C 55%, #ffffff); }
html[data-theme="dark"] .cm-ap-ic { background: var(--surface); border: 1px solid var(--line); }
html[data-theme="dark"] .cm-ap code { background: var(--surface); border: 1px solid var(--line); color: var(--t1); }
html[data-theme="dark"] .cm-ap em { color: color-mix(in srgb, #B45309 55%, #ffffff); }
html[data-theme="dark"] .err-card { background: color-mix(in srgb, #FEF2F2 12%, var(--surface)); border: 1px solid var(--line); color: color-mix(in srgb, #7F1D1D 55%, #ffffff); }
html[data-theme="dark"] .err-card-m > b { color: color-mix(in srgb, #991B1B 55%, #ffffff); }
html[data-theme="dark"] .err-card-m p { color: color-mix(in srgb, #7F1D1D 55%, #ffffff); }
html[data-theme="dark"] .err-card summary { color: color-mix(in srgb, #B91C1C 55%, #ffffff); }
html[data-theme="dark"] .err-card code { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--t2); }
html[data-theme="dark"] .err-card[data-kind="quota"], html[data-theme="dark"] .err-card[data-kind="busy"], html[data-theme="dark"] .err-card[data-kind="timeout"] { background: color-mix(in srgb, #FFFBEB 12%, var(--surface)); color: color-mix(in srgb, #78350F 55%, #ffffff); }
html[data-theme="dark"] .err-card[data-kind="quota"] .err-card-m > b, html[data-theme="dark"] .err-card[data-kind="busy"] .err-card-m > b, html[data-theme="dark"] .err-card[data-kind="timeout"] .err-card-m > b, html[data-theme="dark"] .err-card[data-kind="quota"] p, html[data-theme="dark"] .err-card[data-kind="busy"] p, html[data-theme="dark"] .err-card[data-kind="timeout"] p { color: color-mix(in srgb, #78350F 55%, #ffffff); }
html[data-theme="dark"] .dr-toggle { background: var(--surface); }
html[data-theme="dark"] .dr-stage { background: var(--surface); }
html[data-theme="dark"] .dr-pop { background: var(--surface); }
html[data-theme="dark"] .dr-item { background: color-mix(in srgb, #fdfbff 12%, var(--surface)); }
html[data-theme="dark"] .dr-item.done { background: var(--surface); }
html[data-theme="dark"] .dr-seg { background: var(--surface); }
html[data-theme="dark"] .dr-help-btn { background: var(--surface); }
html[data-theme="dark"] .dr-help { background: var(--surface); }
html[data-theme="dark"] .dr-help kbd { background: color-mix(in srgb, #f5f2fa 12%, var(--surface)); border: 1px solid var(--line); }
html[data-theme="dark"] .dr-nav button { border: 1px solid var(--line); background: color-mix(in srgb, #f5f0fc 12%, var(--surface)); color: color-mix(in srgb, #3b1d63 55%, #ffffff); }
html[data-theme="dark"] .more-menu { background: var(--surface, var(--surface)); }
html[data-theme="dark"] .more-menu button span { color: var(--t2); }
html[data-theme="dark"] .more-menu button.danger { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .qa-msg.ai { background: var(--surface); }
html[data-theme="dark"] .qa-confirm { background: color-mix(in srgb, #fffdf7 12%, var(--surface)); }
html[data-theme="dark"] .dv-conn { color: var(--muted, var(--t2)); }
html[data-theme="dark"] .dv-conn.off { color: color-mix(in srgb, #DC2626 55%, #ffffff); }
html[data-theme="dark"] .tag-chip { background: var(--brand-wash, color-mix(in srgb, #F3EEFF 12%, var(--surface))); color: var(--brand, color-mix(in srgb, #7C3AED 55%, #ffffff)); }
html[data-theme="dark"] .tag-add { border: 1px dashed var(--line, var(--line)); color: var(--muted, var(--t2)); }
html[data-theme="dark"] .tag-add:hover { color: var(--brand, color-mix(in srgb, #7C3AED 55%, #ffffff)); }
html[data-theme="dark"] .more-menu .more-sep { color: var(--muted, var(--t2)); }
html[data-theme="dark"] .more-menu button.on { color: var(--brand, color-mix(in srgb, #7C3AED 55%, #ffffff)); }
html[data-theme="dark"] .engine-codex { color: color-mix(in srgb, #0E7490 55%, #ffffff); }
html[data-theme="dark"] .qa-pchip { background: var(--surface); }
html[data-theme="dark"] .qa-thumb img { background: var(--surface); }
html[data-theme="dark"] .cx-jump { background: var(--surface); }
html[data-theme="dark"] .cm-imgs { background: var(--neutral-bg); }
html[data-theme="dark"] .st-tile { background: var(--card, var(--surface)); }
html[data-theme="dark"] .st-gnav:hover { background: var(--ctl-bg-hover, color-mix(in srgb, #faf7fd 12%, var(--surface))); }
html[data-theme="dark"] .st-switch span::before { background: var(--surface); }
html[data-theme="dark"] .st-savebar { background: var(--card, var(--surface)); }
html[data-theme="dark"] .rel-done { background: var(--surface, var(--surface)); }
html[data-theme="dark"] .rc-pop { background: var(--surface); }
