html[data-theme=dark]{color-scheme:dark;--bg:#0f1115;--card:#181b21;--border:#2e333c;--text:#e5e7eb;--muted:#9ca3af;--accent:#3b82f6;--accent-hover:#60a5fa;--green:#22c55e;--amber:#f59e0b;--danger:#f87171;--warn:#fbbf24;--olive:#a3e635}html[data-theme=dark] input,html[data-theme=dark] textarea{background:#1a1a1a}html[data-theme=dark] .notice-info{background:#0f1e32;color:#a7b7eb}html[data-theme=dark] .notice-ok{background:#133223;color:#bff8e8}html[data-theme=dark] .notice-err{background:#2e1111;color:#edafaf}html[data-theme=dark] .badge-open{background:#163d24}html[data-theme=dark] .badge-unopen{background:#202225}html[data-theme=dark] .badge-confirmed{background:#132b3b;color:#a8dcf9}html[data-theme=dark] .badge-reply{background:#4c4217;color:#f3c9af}html[data-theme=dark] .badge-reply:hover{background:#756424}html[data-theme=dark] .badge-reply-maybe{background:#352d0f;color:#f7d7a9}html[data-theme=dark] .badge-btn:hover{border-color:#337290}html[data-theme=dark] .badge-demo{background:#4c4217}html[data-theme=dark] .group-item.selected{background:#0f1e32;border-color:#26466d}html[data-theme=dark] .icon-btn:hover{background:#3a1313;color:#eca3a3}html[data-theme=dark] .btn-secondary{background:#1a1a1a}html[data-theme=dark] .chip{background:#0f1733;color:#a49fe1}html[data-theme=dark] .email-item-unread .email-subject.mention-subject,html[data-theme=dark] .mail-head .mail-title.mention-subject,html[data-theme=dark] .mention-subject,html[data-theme=dark] a.mail-link.mention-subject,html[data-theme=dark] a.mail-link.mention-subject:hover{color:#e99797}html[data-theme=dark] .badge-unsub{background:#3a1313;color:#eca3a3}html[data-theme=dark] select{background:#1a1a1a}html[data-theme=dark] .chip.chip-group,html[data-theme=dark] .group-item.category-colored{background:color-mix(in srgb,var(--gedge,var(--border)) 22%,var(--card))}html[data-theme=dark] .group-item.category-colored.selected{border-color:var(--gedge,#26466d)}html[data-theme=dark] .tl-sent{background:#14263f;color:#99aeec}html[data-theme=dark] .tl-received{background:#163d24;color:#b7efcc}html[data-theme=dark] .tl-event{background:#202225}html[data-theme=dark] .btn-link{background:#1a1a1a}html[data-theme=dark] .badge-click{background:#181235;color:#b799e8}html[data-theme=dark] .chip-removable button:hover{color:#eca3a3}html[data-theme=dark] .spam-btn:hover{background:#4c4217;color:#f3c9af}html[data-theme=dark] .input-warn{background:#352d0f}html[data-theme=dark] .notice-warn{background:#352d0f;color:#f3c9af}html[data-theme=dark] .chip-registered{background:#133223;color:#bff8e8}html[data-theme=dark] .btn-link.active{background:#14263f}html[data-theme=dark] .quick-btn{background:#1a1a1a}html[data-theme=dark] .quick-btn:hover{background:#0f1e32}html[data-theme=dark] .btn-readall{background:#132b3b;border-color:#337290;color:#b2dff7}html[data-theme=dark] .btn-readall:hover:not(:disabled){background:#1b4155}html[data-theme=dark] .btn-readall:disabled{background:#202225}html[data-theme=dark] .email-item-grouped,html[data-theme=dark] .group-badge,html[data-theme=dark] .group-tab-colored,html[data-theme=dark] .group-tab-colored.selected{background:color-mix(in srgb,var(--gedge,var(--border)) 22%,var(--card))}html[data-theme=dark] .steps kbd{background:#1a1a1a}html[data-theme=dark] .rule-spam{color:#eca3a3}html[data-theme=dark] .chip-unread,html[data-theme=dark] .read-btn:hover{background:#14263f;color:#99aeec}html[data-theme=dark] .chip-spam{background:#3a1313;color:#eca3a3}html[data-theme=dark] .chip-shared,html[data-theme=dark] .chip-shared-mark{background:#394919;color:#dcf1c1}html[data-theme=dark] .flag-btn:hover{color:#f7ca96}html[data-theme=dark] .flag-btn.on{color:#f4ce8c}html[data-theme=dark] .flag-toggle.on{background:#4c4217;color:#f3c9af}html[data-theme=dark] .attachment-preview iframe,html[data-theme=dark] .attachment-preview img{background:#1a1a1a}html[data-theme=dark] .group-item-clickable:hover{background:#0f1e32}html[data-theme=dark] .group-item-clickable.selected{background:#14263f}html[data-theme=dark] .group-tab.group-tab-empty:not(.selected){background:#202225;border-color:#3f4247}html[data-theme=dark] .group-tab.group-tab-empty:not(.selected):hover{background:#2a2c30}html[data-theme=dark] .notice-action{background:#1a1a1a}html[data-theme=dark] .nav .nav-compose.active{outline:2px solid #2e5785}html[data-theme=dark] .nav-action-btn{background:#1a1a1a}html[data-theme=dark] .nav-action-btn:hover:not(:disabled){background:#0f1e32}html[data-theme=dark] a.ai-cost-chip{color:var(--muted,#bbc2cc)}html[data-theme=dark] .help-btn{background:#1a1a1a}html[data-theme=dark] .help-btn.active,html[data-theme=dark] .help-btn:hover{background:#0f1e32}html[data-theme=dark] .bulk-conds,html[data-theme=dark] .bulk-filters{background:#171e24}html[data-theme=dark] .cond-group{background:#1a1a1a}html[data-theme=dark] .category-pick{background:color-mix(in srgb,var(--gedge,var(--border)) 22%,var(--card))}html[data-theme=dark] .history-list li{background:#1a1a1a}html[data-theme=dark] .history-list li.is-sent{border-left:4px solid #2e5785}html[data-theme=dark] .history-list li.is-recv{border-left:4px solid #3d8958}html[data-theme=dark] .history-list li.is-open,html[data-theme=dark] .target-preview{background:#171e24}html[data-theme=dark] table.contacts tr.row-picked td{background:#0f1e32}html[data-theme=dark] .chip.unsub-warn{background:#2e1111;color:#eca3a3;border:1px solid #682424}html[data-theme=dark] .unsub-warn-text{color:#eca3a3}html[data-theme=dark] .bulk-cat,html[data-theme=dark] .campaign-sample{background:#171e24}html[data-theme=dark] .chip-btn,html[data-theme=dark] .print-page{background:#1a1a1a}html[data-theme=dark] .help-index a:hover{background:#0f1e32}html[data-theme=dark] .email-item-selected{background:#0f1e32!important;border-color:#2e5785}html[data-theme=dark] .email-item-open{box-shadow:0 0 0 2px #223c5e}html[data-theme=dark] .row-menu-btn.active{background:#2a2c30}html[data-theme=dark] .row-menu-list{background:#1a1a1a}html[data-theme=dark] .row-menu-item:hover{background:#202225}html[data-theme=dark] .row-menu-danger{color:#eca3a3}html[data-theme=dark] .selection-bar{background:#0f1e32;border:1px solid #26466d}html[data-theme=dark] .selection-bar .icon-btn{background:#1a1a1a}html[data-theme=dark] .read-btn-unread{background:#0f1e32;border-color:#2e5785;color:#99aeec}html[data-theme=dark] .chip-sub{background:#130e2f;color:#c0a5ea;border-color:#2d2261}html[data-theme=dark] .new-group-form{background:#171e24}html[data-theme=dark] .new-group-scope .scope-btn{background:#1a1a1a}html[data-theme=dark] .routing-sync{background:#171e24}html[data-theme=dark] .routing-sync-diff{background:#352d0f}html[data-theme=dark] .toast .toast-action{background:#1a1a1a;color:#bff8e8}html[data-theme=dark] .toast-err .toast-action{color:#edafaf}html[data-theme=dark] .spam-rules-box{border:1px solid #682424;background:#2d0d0d}html[data-theme=dark] .special-rules li{border-top:1px dashed #682424}html[data-theme=dark] .ai-stats{background:#171e24}html[data-theme=dark] .rich-editor{background:#1a1a1a}html[data-theme=dark] .rich-toolbar{background:#171e24}html[data-theme=dark] .rt-btn:hover:not(:disabled){background:#242b34}html[data-theme=dark] .rt-btn.on{background:#14263f;border-color:#2e5785;color:#99aeec}html[data-theme=dark] .rt-select{background:#1a1a1a}html[data-theme=dark] .rt-mark-icon{background:#756b23}html[data-theme=dark] .rt-palette{background:#1a1a1a}html[data-theme=dark] .rt-none{background:#1b2229}html[data-theme=dark] .rt-none:hover{background:#242b34}html[data-theme=dark] .rich-subbar{background:#0f1e32}html[data-theme=dark] .campaign-sample iframe,html[data-theme=dark] .rich-subbar .rt-btn{background:#1a1a1a}html[data-theme=dark] .nav-outdated{color:#f3c9af;background:#352d0f}html[data-theme=dark] .rule-item-contact{background:#171e24}html[data-theme=dark] .templates-groups .tpl-group:hover{background:#1b2229}html[data-theme=dark] .templates-groups .tpl-group.on{background:#14263f;color:#99aeec}html[data-theme=dark] .tpl-preview{background:#1a1a1a}html[data-theme=dark] .rt-var:hover{background:#0f1e32}html[data-theme=dark] .rt-var code{background:#1b2229}html[data-theme=dark] .rt-var-example{color:#ccd4df}html[data-theme=dark] .rt-vars-sample{background:#171e24}html[data-theme=dark] .icon-btn.icon-btn-danger{color:#eca3a3}html[data-theme=dark] .icon-btn.icon-btn-danger:hover{color:#ebb8b8}html[data-theme=dark] .step-card{background:#0c162a}html[data-theme=dark] .step-status-active{background:#163d24;color:#c1eed2}html[data-theme=dark] .step-status-paused{background:#4c4217;color:#f3c9af}html[data-theme=dark] .step-status-ended{background:#242b34;color:#c6cdd7}html[data-theme=dark] .manual-report .manual-bad,html[data-theme=dark] .step-stat.warn .step-stat-label,html[data-theme=dark] .step-stat.warn .step-stat-num{color:#eca3a3}html[data-theme=dark] .head-field-mine{color:#dcf1c1}html[data-theme=dark] .step-inline-editor{background:var(--card,#1a1a1a)}html[data-theme=dark] .sender-cat{background:var(--chip-bg,#1d232b)}html[data-theme=dark] .sender-cat-mine{background:#111b3c;color:#b1ade3}html[data-theme=dark] .family-member,html[data-theme=dark] .tab-reorder{background:var(--card,#1a1a1a)}html[data-theme=dark] .adv-chip{background:#0f1733}html[data-theme=dark] .result-count b{color:var(--text,#e7e7e7)}html[data-theme=dark] .attach-drop.over{background:#0f1e32}html[data-theme=dark] .mailmag-table tr.mailmag-picked td{background:#132e1b}html[data-theme=dark] .bulk-events-row td,html[data-theme=dark] .bulk-row-clickable:hover td{background:#171e24}html[data-theme=dark] .mail-frame,html[data-theme=dark] .mail-frame-full,html[data-theme=dark] .send-preview-body,html[data-theme=dark] iframe{background:#fff!important;color-scheme:light}html[data-theme=dark] .history-html{background:#fff;color:#1a1d24;padding:10px 12px;border-radius:6px;color-scheme:light}html[data-theme=dark] .history-html a{color:#2563eb}html[data-theme=dark] .ProseMirror,html[data-theme=dark] .rich-content,html[data-theme=dark] .rich-html-preview,html[data-theme=dark] [contenteditable=true]{background:#fff;color:#1a1d24;color-scheme:light}html[data-theme=dark] img:not(.keep-bright){filter:brightness(.92)}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background-color:#11141a;color:var(--text);border-color:var(--border)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#6b7280}html[data-theme=dark] button:disabled{opacity:.5}