:root {
    color-scheme: light;
    --ink:#172b3a; --paper:#f3f6f8; --card:#fff; --line:#dde5eb;
    --muted:#617381; --in:#00866a; --out:#c2432d; --blue:#276ca8;
    --surface:#edf2f5; --surface-hover:#e8eef2; --topbar:#12263f; --action:#17364a;
    --accent-soft:#e7f3f7; --success-soft:#e1f5ee; --warning-soft:#fff2d2; --danger-soft:#fde8e4;
    --success-text:#066548; --warning-text:#78500e; --danger-text:#a33526;
    --chat-bg:#edf2ee; --chat-border:var(--line); --chat-text:var(--ink); --chat-muted:var(--muted);
    --chat-primary:#00866a; --chat-primary-dark:#006e57; --chat-my-bubble:#d8f5e5;
    --chat-other-bubble:var(--card); --chat-system-bubble:var(--warning-soft); --chat-unread:#00866a;
    --shadow:0 6px 24px rgba(15,35,50,.06); --nav-height:74px;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --ink:#e3edf3; --paper:#0b141b; --card:#15212b; --line:#2b3d49;
    --muted:#a0b3c1; --in:#19bc98; --out:#e97764; --blue:#83baff;
    --surface:#1d2c37; --surface-hover:#253947; --topbar:#111e28; --action:#28576e;
    --accent-soft:#173441; --success-soft:#123e34; --warning-soft:#3a2e17; --danger-soft:#422820;
    --success-text:#8ce5c1; --warning-text:#f9d487; --danger-text:#ffb3a2;
    --chat-bg:#0c1a20; --chat-primary:#19bc98; --chat-primary-dark:#10a385;
    --chat-my-bubble:#125541; --chat-other-bubble:#1b2c37;
    --shadow:0 8px 26px rgba(0,0,0,.16);
}
html { background:var(--paper); accent-color:var(--in); }
body { background:var(--paper); color:var(--ink); }
.topbar { background:var(--topbar); }
.btn:not(.primary):not(.danger):not(.warn):not(.ghost) { background:var(--action); color:#fff; }
.btn.ghost { background:var(--card); color:var(--ink); }
input,select,textarea,dialog,.sheet { background:var(--card); color:var(--ink); border-color:var(--line); }
input::placeholder,textarea::placeholder { color:var(--muted); opacity:.85; }
input[type="checkbox"],input[type="radio"] { width:1.1em; min-height:0; padding:0; }
.badge.in,.badge.done,.alert.ok { background:var(--success-soft); color:var(--success-text); }
.badge.pending,.badge.warn,.warnbox { background:var(--warning-soft); color:var(--warning-text); }
.badge.out,.badge.rejected,.badge.late,.alert.err { background:var(--danger-soft); color:var(--danger-text); }
.badge.progress { background:var(--accent-soft); color:var(--blue); }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:6px 10px; border:1px solid rgba(255,255,255,.25); border-radius:10px; color:#fff; background:rgba(255,255,255,.08); font:inherit; font-size:12px; cursor:pointer; }
.theme-toggle svg { width:19px; height:19px; }
.theme-toggle:hover { background:rgba(255,255,255,.16); }
.theme-toggle:focus-visible { outline:3px solid #93c5fd; }
.nav,.nav.admin-nav { background:var(--card); border-color:var(--line); }
.nav a.on { background:var(--accent-soft); color:var(--in); box-shadow:none; }
.breadcrumb-bar,.notif-popup,.notif-popup-header,.notif-popup-footer { background:var(--card); color:var(--ink); border-color:var(--line); }
.chat-sidebar,.chat-main-head,.chat-composer,.chat-members-panel,.chat-modal,.chat-modal-head,.chat-modal-foot,.chat-context-menu,.cw-panel,.cw-header,.cw-composer,.cw-camera-dialog,.cw-context-menu { background:var(--card); color:var(--ink); border-color:var(--line); }
.chat-messages,.cw-messages { background-color:var(--chat-bg); background-image:radial-gradient(var(--line) .65px,transparent .65px); background-size:19px 19px; }
.chat-sidebar h1,.chat-main-title strong,.chat-item-line1 strong,.cw-header strong,.cw-item-title { color:var(--ink); }
.chat-msg.mine .chat-msg-bubble,.cw-msg.mine .cw-msg-bubble { background:var(--chat-my-bubble); color:var(--ink); border:1px solid color-mix(in srgb,var(--in) 12%,transparent); }
.chat-msg.other .chat-msg-bubble,.cw-msg:not(.mine):not(.system) .cw-msg-bubble { background:var(--chat-other-bubble); color:var(--ink); }
.chat-msg.mine .chat-msg-content,.chat-msg.mine .chat-msg-footer,.chat-msg.mine .chat-voice,.cw-msg.mine .cw-msg-foot { color:var(--ink); }
.chat-tick,.cw-tick { color:var(--muted); opacity:.9; }
.chat-tick.is-read,.cw-tick.is-read { color:#33a8e5; opacity:1; }
.chat-item.active,.chat-item:hover,.cw-item:hover { background:var(--accent-soft); }
.chat-search,.chat-search input,.chat-field input,.chat-composer textarea,.cw-composer textarea,.chat-reply-bar,.cw-reply-bar { background:var(--surface); color:var(--ink); border-color:var(--line); }
.chat-icon-btn,.chat-back-btn,.chat-attach-btn,.chat-voice-btn,.chat-quick-btn,.cw-icon-btn,.cw-attach-btn { color:var(--muted); background:var(--surface); border-color:var(--line); }
.chat-send-btn,.cw-send-btn { background:var(--in); color:#fff; }
.chat-filter-tabs button { background:transparent; color:var(--muted); }
.chat-filter-tabs button.active { color:var(--in); border-color:var(--in); background:var(--accent-soft); }
.chat-msg-meta,.chat-item-line2,.chat-main-title small,.cw-msg-foot,.cw-subtitle,.chat-msg-footer { color:var(--muted); }
.chat-context-menu-item,.cw-context-menu-item { color:var(--ink); }
.chat-context-menu-item:hover,.cw-context-menu-item:hover { background:var(--surface-hover); }
.chat-reply-preview,.cw-reply-preview { background:rgba(100,130,140,.12); border-inline-start-color:var(--in); color:var(--ink); }
.chat-reply-preview strong,.cw-reply-preview strong { color:var(--in); }
.chat-retry { background:none; color:var(--danger-text); border:0; padding:2px; font:inherit; font-size:12px; cursor:pointer; text-decoration:underline; }
.is-sending { opacity:.65; }
.is-typing { color:var(--in) !important; }
.chat-date-divider span,.cw-date-divider span,.chat-loading-top { background:var(--card) !important; color:var(--muted) !important; }
.maintenance-card { max-width:900px; margin-inline:auto; }
.migration-list code { white-space:normal; overflow-wrap:anywhere; font-size:12px; }

/* ═══════════════════════════════════════════════════════════
   ⚡ DARK MODE FIX — إصلاح النصوص والـ badges بألوان ثابتة
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. نصوص رمادية داكنة (#666, #999, #64748b) ─── */
html[data-theme="dark"] [style*="color:#666"],
html[data-theme="dark"] [style*="color: #666"],
html[data-theme="dark"] [style*="color:#666666"],
html[data-theme="dark"] [style*="color:#999"],
html[data-theme="dark"] [style*="color: #999"],
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color:#94a3b8"] {
    color: var(--muted) !important;
}

/* ─── 2. أخضر داكن → أخضر فاتح ─── */
html[data-theme="dark"] [style*="color:#047857"],
html[data-theme="dark"] [style*="color:#059669"],
html[data-theme="dark"] [style*="color:#0E8F6F"],
html[data-theme="dark"] [style*="color:#0e8f6f"],
html[data-theme="dark"] [style*="color:#10b981"],
html[data-theme="dark"] [style*="color:#065f46"],
html[data-theme="dark"] [style*="color:#0a6b52"],
html[data-theme="dark"] [style*="color:#166534"] {
    color: #6ee7b7 !important;
}

/* ─── 3. أمبر/برتقالي/بني داكن → أصفر فاتح ─── */
html[data-theme="dark"] [style*="color:#b45309"],
html[data-theme="dark"] [style*="color:#92400e"],
html[data-theme="dark"] [style*="color:#a16207"],
html[data-theme="dark"] [style*="color:#765500"],
html[data-theme="dark"] [style*="color:#B7791F"],
html[data-theme="dark"] [style*="color:#b7791f"],
html[data-theme="dark"] [style*="color:#8b3f00"],
html[data-theme="dark"] [style*="color:#78350f"],
html[data-theme="dark"] [style*="color:#ca8a04"] {
    color: #fcd34d !important;
}

/* ─── 4. أحمر داكن → أحمر فاتح ─── */
html[data-theme="dark"] [style*="color:#b91c1c"],
html[data-theme="dark"] [style*="color:#dc2626"],
html[data-theme="dark"] [style*="color:#C2432D"],
html[data-theme="dark"] [style*="color:#c2432d"],
html[data-theme="dark"] [style*="color:#9a3220"],
html[data-theme="dark"] [style*="color:#7f1d1d"],
html[data-theme="dark"] [style*="color:#991b1b"],
html[data-theme="dark"] [style*="color:#ef4444"] {
    color: #fca5a5 !important;
}

/* ─── 5. أزرق داكن → أزرق فاتح ─── */
html[data-theme="dark"] [style*="color:#1e40af"],
html[data-theme="dark"] [style*="color:#1d4ed8"],
html[data-theme="dark"] [style*="color:#2563eb"],
html[data-theme="dark"] [style*="color:#2B5FAE"],
html[data-theme="dark"] [style*="color:#2b5fae"],
html[data-theme="dark"] [style*="color:#1F4A8A"],
html[data-theme="dark"] [style*="color:#3b82f6"],
html[data-theme="dark"] [style*="color:#1e3a8a"],
html[data-theme="dark"] [style*="color:#1e3a5f"] {
    color: #93c5fd !important;
}

/* ─── 6. بنفسجي داكن → بنفسجي فاتح ─── */
html[data-theme="dark"] [style*="color:#5b21b6"],
html[data-theme="dark"] [style*="color:#6d28d9"],
html[data-theme="dark"] [style*="color:#7c3aed"],
html[data-theme="dark"] [style*="color:#4338ca"],
html[data-theme="dark"] [style*="color:#3730a3"] {
    color: #c4b5fd !important;
}

/* ─── 7. وردي داكن → وردي فاتح ─── */
html[data-theme="dark"] [style*="color:#9d174d"],
html[data-theme="dark"] [style*="color:#be185d"],
html[data-theme="dark"] [style*="color:#db2777"] {
    color: #f9a8d4 !important;
}

/* ─── 8. سماوي داكن → سماوي فاتح ─── */
html[data-theme="dark"] [style*="color:#155e75"],
html[data-theme="dark"] [style*="color:#0e7490"],
html[data-theme="dark"] [style*="color:#0891b2"] {
    color: #67e8f9 !important;
}

/* ─── 9. أسود/داكن جدًا على خلفية غامقة → نص عادي ─── */
html[data-theme="dark"] [style*="color:#000"],
html[data-theme="dark"] [style*="color:#111"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color:#20242a"] {
    color: var(--ink) !important;
}

/* ═══════════════════════════════════════════════════════════
   10. Badges بخلفيات فاتحة ثابتة (mc-zone في admin_clients)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] .mc-zone.mc-zone-green,
html[data-theme="dark"] .mc-zone-badge.mc-zone-green {
    background: #065f46 !important;
    color: #a7f3d0 !important;
}
html[data-theme="dark"] .mc-zone.mc-zone-yellow,
html[data-theme="dark"] .mc-zone-badge.mc-zone-yellow {
    background: #78350f !important;
    color: #fde68a !important;
}
html[data-theme="dark"] .mc-zone.mc-zone-red,
html[data-theme="dark"] .mc-zone-badge.mc-zone-red {
    background: #7f1d1d !important;
    color: #fecaca !important;
}
html[data-theme="dark"] .mc-zone.mc-zone-black,
html[data-theme="dark"] .mc-zone-badge.mc-zone-black {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .mc-zone.mc-zone-gray {
    background: var(--line) !important;
    color: var(--muted) !important;
}

/* ─── 11. Type badges (gross/net) في admin_payroll ─── */
html[data-theme="dark"] .type-badge.type-gross {
    background: #1e3a8a !important;
    color: #bfdbfe !important;
}
html[data-theme="dark"] .type-badge.type-net {
    background: #065f46 !important;
    color: #a7f3d0 !important;
}

/* ─── 12. gap-level indicators في admin_performance ─── */
html[data-theme="dark"] .gap-level-green {
    background: #065f46 !important;
    color: #a7f3d0 !important;
}
html[data-theme="dark"] .gap-level-yellow {
    background: #78350f !important;
    color: #fde68a !important;
}
html[data-theme="dark"] .gap-level-orange {
    background: #7c2d12 !important;
    color: #fed7aa !important;
}
html[data-theme="dark"] .gap-level-red {
    background: #7f1d1d !important;
    color: #fecaca !important;
}
html[data-theme="dark"] .gap-level-black {
    background: #020617 !important;
    color: #f1f5f9 !important;
}

/* ─── 13. KPI cards الفاتحة في admin_payroll ─── */
html[data-theme="dark"] .payroll-kpi.kpi-net,
html[data-theme="dark"] .payroll-kpi.kpi-ded,
html[data-theme="dark"] .payroll-kpi.kpi-ot {
    background: var(--card) !important;
    border-color: var(--line) !important;
}

/* ─── 14. Role badges (admin_users / admin_user_roles / admin_edit_users) ─── */
html[data-theme="dark"] .role-badge.role-superadmin,
html[data-theme="dark"] .ur-badge.role-superadmin,
html[data-theme="dark"] .aeu-badge.role-superadmin { 
    background: #92400e !important; color: #fde68a !important; 
}
html[data-theme="dark"] .role-badge.role-admin,
html[data-theme="dark"] .ur-badge.role-admin,
html[data-theme="dark"] .aeu-badge.role-admin { 
    background: #1e40af !important; color: #bfdbfe !important; 
}
html[data-theme="dark"] .role-badge.role-technician,
html[data-theme="dark"] .ur-badge.role-technician,
html[data-theme="dark"] .aeu-badge.role-technician { 
    background: #155e75 !important; color: #a5f3fc !important; 
}
html[data-theme="dark"] .role-badge.role-supervisor,
html[data-theme="dark"] .ur-badge.role-supervisor,
html[data-theme="dark"] .aeu-badge.role-supervisor { 
    background: #065f46 !important; color: #a7f3d0 !important; 
}
html[data-theme="dark"] .role-badge.role-dispatcher,
html[data-theme="dark"] .ur-badge.role-dispatcher,
html[data-theme="dark"] .aeu-badge.role-dispatcher { 
    background: #5b21b6 !important; color: #ddd6fe !important; 
}
html[data-theme="dark"] .role-badge.role-accountant,
html[data-theme="dark"] .ur-badge.role-accountant,
html[data-theme="dark"] .aeu-badge.role-accountant { 
    background: #9d174d !important; color: #fbcfe8 !important; 
}
html[data-theme="dark"] .role-badge.role-viewer,
html[data-theme="dark"] .ur-badge.role-viewer,
html[data-theme="dark"] .aeu-badge.role-viewer { 
    background: #334155 !important; color: #cbd5e1 !important; 
}

/* ─── 15. KPI في admin.php (حضور اليوم، مهام مكتملة...) ─── */
html[data-theme="dark"] [data-live-section="dashboard-kpis"] .card h3 {
    color: var(--muted) !important;
}
html[data-theme="dark"] [data-live-section="dashboard-kpis"] .card p {
    color: var(--in) !important;
}

/* ─── 16. صناديق warnbox و alert والـ banners ─── */
html[data-theme="dark"] .warnbox {
    background: var(--warning-soft) !important;
    color: var(--warning-text) !important;
    border-color: #78350f !important;
}
html[data-theme="dark"] .role-success {
    background: var(--success-soft) !important;
    border-color: #065f46 !important;
}
html[data-theme="dark"] .role-success h2 {
    color: var(--success-text) !important;
}
html[data-theme="dark"] .role-success p,
html[data-theme="dark"] .role-success ul,
html[data-theme="dark"] .role-success li {
    color: var(--success-text) !important;
}

/* ─── 17. Badge "محمي" وشارات الحالة في admin_edit_users ─── */
html[data-theme="dark"] .aeu-badge.status-active { 
    background: #065f46 !important; color: #a7f3d0 !important; 
}
html[data-theme="dark"] .aeu-badge.status-inactive { 
    background: #7f1d1d !important; color: #fecaca !important; 
}
html[data-theme="dark"] .aeu-badge.status-locked { 
    background: #78350f !important; color: #fde68a !important; 
}

/* ─── 18. حالة الدور في admin_user_roles ─── */
html[data-theme="dark"] .ur-role-chip.is-checked {
    background: var(--accent-soft) !important;
    border-color: var(--in) !important;
}

/* ─── 19. rowe-badge و cat-badge في admin_tasks ─── */
html[data-theme="dark"] .rowe-badge {
    background: #6d28d9 !important; color: #ede9fe !important;
}
html[data-theme="dark"] .cat-badge.cat-it {
    background: #1e3a8a !important; color: #bfdbfe !important;
}
html[data-theme="dark"] .cat-badge.cat-ups {
    background: #78350f !important; color: #fde68a !important;
}
html[data-theme="dark"] .cat-badge.cat-printer {
    background: #3730a3 !important; color: #e0e7ff !important;
}
html[data-theme="dark"] .cat-badge.cat-uncategorized {
    background: var(--line) !important; color: var(--muted) !important;
}

/* ─── 20. money-mini في admin_tasks ─── */
html[data-theme="dark"] .money-mini.ok { background: #065f46 !important; color: #a7f3d0 !important; }
html[data-theme="dark"] .money-mini.warn { background: #78350f !important; color: #fde68a !important; }
html[data-theme="dark"] .money-mini.danger { background: #7f1d1d !important; color: #fecaca !important; }
html[data-theme="dark"] .money-mini.pending { background: var(--line) !important; color: var(--muted) !important; }

/* ═══════════════════════════════════════════════════════════
   21. Safety net — أي span أو small فيه style بخلفية فاتحة
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] span[style*="background:#f"],
html[data-theme="dark"] span[style*="background: #f"],
html[data-theme="dark"] span[style*="background:#e"],
html[data-theme="dark"] span[style*="background: #e"],
html[data-theme="dark"] span[style*="background:#d"],
html[data-theme="dark"] span[style*="background: #d"],
html[data-theme="dark"] span[style*="background:white"],
html[data-theme="dark"] span[style*="background: white"],
html[data-theme="dark"] span[style*="background-color:#f"],
html[data-theme="dark"] span[style*="background-color:#e"] {
    color: #0f172a !important;
    font-weight: 700;
}

/* ─── 22. خلايا الجداول الفاتحة (background:#f5f8fb...) ─── */
html[data-theme="dark"] .task-reference-photo-panel {
    background: var(--surface) !important;
    border-color: var(--line) !important;
}

/* ─── 23. صفوف مخصصة (admin_tasks: tasks-compact) ─── */
html[data-theme="dark"] .tasks-compact tbody tr.task-main-row:hover {
    background: var(--surface-hover) !important;
}

/* ─── 24. خلفيات الـ inline في admin_performance (pause analysis) ─── */
html[data-theme="dark"] [style*="background:#fff1b8"],
html[data-theme="dark"] [style*="background: #fff1b8"] {
    background: #78350f !important;
    color: #fde68a !important;
}
html[data-theme="dark"] [style*="background:#ffdbb5"],
html[data-theme="dark"] [style*="background: #ffdbb5"] {
    background: #7c2d12 !important;
    color: #fed7aa !important;
}
html[data-theme="dark"] [style*="background:#f9ded8"],
html[data-theme="dark"] [style*="background: #f9ded8"] {
    background: #7f1d1d !important;
    color: #fecaca !important;
}
html[data-theme="dark"] [style*="background:#d8f2ea"],
html[data-theme="dark"] [style*="background: #d8f2ea"] {
    background: #065f46 !important;
    color: #a7f3d0 !important;
}

/* ═══════════════════════════════════════════════════════════
   Print + Reduced Motion (تبقى في الآخر)
   ═══════════════════════════════════════════════════════════ */
@media print {
    :root,html[data-theme="dark"] { --ink:#111;--paper:#fff;--card:#fff;--line:#bbb;--muted:#333;--surface:#eee; }
    .topbar,.nav,.cw-root,.theme-toggle { display:none !important; }
    body { padding:0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

.chat-file-link { display:block; padding:12px; border-radius:10px; background:var(--surface); color:var(--ink); overflow-wrap:anywhere; text-decoration:none; }

/* ═══════════════════════════════════════════════════════════
   ⚡ DARK MODE FIX V2 — إصلاح نهائي للـ badges والـ alerts
   ═══════════════════════════════════════════════════════════ */

/* ─── .badge الأساسي في الدارك ─── */
html[data-theme="dark"] .badge {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border-color: var(--line) !important;
}

/* ─── .badge.ok (اللي كان ناقص) + in + done ─── */
html[data-theme="dark"] .badge.ok,
html[data-theme="dark"] .badge.in,
html[data-theme="dark"] .badge.done {
    background: var(--success-soft) !important;
    color: var(--success-text) !important;
    border-color: #065f46 !important;
}

/* ─── .badge.pending + warn ─── */
html[data-theme="dark"] .badge.pending,
html[data-theme="dark"] .badge.warn {
    background: var(--warning-soft) !important;
    color: var(--warning-text) !important;
    border-color: #78350f !important;
}

/* ─── .badge.out + rejected + late ─── */
html[data-theme="dark"] .badge.out,
html[data-theme="dark"] .badge.rejected,
html[data-theme="dark"] .badge.late {
    background: var(--danger-soft) !important;
    color: var(--danger-text) !important;
    border-color: #7f1d1d !important;
}

/* ─── .badge.progress ─── */
html[data-theme="dark"] .badge.progress {
    background: var(--accent-soft) !important;
    color: var(--blue) !important;
    border-color: #1e3a8a !important;
}

/* ─── .badge.info ─── */
html[data-theme="dark"] .badge.info {
    background: var(--accent-soft) !important;
    color: var(--blue) !important;
    border-color: #1e3a8a !important;
}

/* ─── .badge.paused (بنفسجي) ─── */
html[data-theme="dark"] .badge.paused {
    background: #3b1e5e !important;
    color: #ddd6fe !important;
    border-color: #5b21b6 !important;
}

/* ═══════════════════════════════════════════════════════════
   Alerts (تنبيهات عامة)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] .alert {
    color: var(--ink) !important;
}
html[data-theme="dark"] .alert.ok {
    background: var(--success-soft) !important;
    color: var(--success-text) !important;
}
html[data-theme="dark"] .alert.err {
    background: var(--danger-soft) !important;
    color: var(--danger-text) !important;
}
html[data-theme="dark"] .alert.info {
    background: var(--accent-soft) !important;
    color: var(--blue) !important;
}

/* ═══════════════════════════════════════════════════════════
   Safety Net — أي عنصر بـ background فاتح ثابت في inline style
   (زي style="background:#f5f8fb" أو style="background:#e1f5ee")
   ═══════════════════════════════════════════════════════════ */
html[data-theme="dark"] [style*="background:#f5f8fb"],
html[data-theme="dark"] [style*="background: #f5f8fb"],
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background: #fafafa"],
html[data-theme="dark"] [style*="background:#f3f8ff"],
html[data-theme="dark"] [style*="background: #f3f8ff"],
html[data-theme="dark"] [style*="background:#eff6ff"],
html[data-theme="dark"] [style*="background: #eff6ff"],
html[data-theme="dark"] [style*="background:#f0f7ff"],
html[data-theme="dark"] [style*="background: #f0f7ff"],
html[data-theme="dark"] [style*="background:#f0fdf4"],
html[data-theme="dark"] [style*="background: #f0fdf4"] {
    background: var(--surface) !important;
    color: var(--ink) !important;
}