/* ==========================================================================
   Luxora dark theme  —  the ONE place dark colors live.

   Loaded after luxora.css. Active only on screen (printing always comes out
   light) and only when <html data-theme="dark"> (set before first paint by
   partials/_theme-init.blade.php, flipped by public/js/luxora-theme.js).

   1. Token block        every dark color, named once. Change a color HERE.
   2. Component rules    the few things the tokens cannot reach.
   3. Inline-style remap  views write colors straight into style="" (#fff,
                          #f8fafc, pastel badges ...). Inline styles beat any
                          stylesheet, so each known color is matched by an
                          attribute selector and pointed at a token with
                          !important. Hex and the rgb() spelling are both
                          matched, because a script that touches an element's
                          style rewrites its attribute as rgb(). To cover a
                          new color, add it to the matching rule below
                          (DarkModeTest fails when a view uses a neutral that
                          has no rule).
   ========================================================================== */

@media screen {

/* ---------- 1. Tokens ---------- */
html[data-theme="dark"] {
  color-scheme: dark;

  /* surfaces */
  --bg-main: #0B1220;
  --bg-card: #131C2E;
  --bg-surface: #131C2E;
  --bg-subtle: #182338;
  --bg-muted: #1E2A42;
  --bg-input: #0F1829;
  --bg-sidebar: #08101F;
  --bg-topbar: rgba(11, 18, 32, 0.72);
  --backdrop: rgba(2, 6, 14, 0.62);
  --theme-color: #0B1220;

  /* frosted glass: cards (no blur behind them), bars content scrolls under, the fallback */
  --glass-bg: rgba(19, 28, 46, 0.86);
  --glass-bg-strong: rgba(13, 20, 35, 0.72);
  --glass-bg-solid: #131C2E;
  --glass-border: rgba(148, 163, 184, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --glass-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 56px -16px rgba(0, 0, 0, 0.65);

  /* sidebar and phone dock: the dark frosted twin of the light glass ones */
  --sidebar-bg: rgba(13, 20, 35, 0.78);
  --sidebar-text: #C4CEDF;
  --sidebar-muted: #7A88A2;
  --sidebar-icon: #8B98B0;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(79, 131, 189, 0.2);
  --sidebar-active-text: #F1F5F9;
  --sidebar-border: rgba(148, 163, 184, 0.14);
  --statusbar: #08101F;

  /* lines */
  --border-color: #26344D;
  --border-light: #1E2A42;
  --border-strong: #33445F;

  /* text */
  --text-main: #E6EAF2;
  --text-dark: #E6EAF2;
  --text-strong: #F1F5F9;
  --text-secondary: #B4BED0;
  --text-muted: #8B98B0;
  --text-light: #6B7891;

  /* brand: navy lightens so it still reads on dark; buttons keep white text */
  --primary: #4F83BD;
  --primary-light: #6E9BD1;
  --primary-dark: #A9C8EC;
  --primary-bg: #1B2A44;
  --lux-navy: #7FA8D9;
  --accent-fill: #2F5F96;
  --gold: #D4A24A;
  --gold-light: #E0B766;
  --gold-dark: #E4B866;
  --gold-bg: #2E2412;

  /* status: fill, text on the fill, border */
  --success: #2FC08B;
  --success-bg: #12301F;
  --success-text: #6EE7B7;
  --success-border: #1F5A3A;
  --warning: #F5B02E;
  --warning-bg: #3A2C12;
  --warning-text: #FCD34D;
  --warning-border: #6B4E14;
  --danger: #F26B6B;
  --danger-bg: #3A1A20;
  --danger-text: #FCA5A5;
  --danger-border: #5B2630;
  --info: #5B9BF0;
  --info-bg: #14284A;
  --info-text: #93C5FD;
  --info-border: #274C7E;
  --violet-bg: #221F4A;
  --violet-text: #A5B4FC;
  --violet-border: #3B3A78;

  /* accent colors for text/icons sitting on a neutral surface */
  --accent-red: #F87171;
  --accent-amber: #FBBF24;
  --accent-green: #34D399;
  --accent-blue: #60A5FA;
  --accent-violet: #A5B4FC;

  /* elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.55), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

  /* a document canvas (template editor) stays paper */
  --paper-bg: #FFFFFF;
  --paper-text: #1A222E;

  /* charts */
  --chart-1: #7FA8D9;
  --chart-2: #D4A24A;
  --chart-3: #4DB6AC;
  --chart-4: #E57373;
  --chart-5: #5B9BD5;
  --chart-6: #E0B766;
  --chart-text: #8B98B0;
  --chart-grid: rgba(139, 152, 176, 0.14);

  /* pages with their own variable names (login) */
  --scaffold-bg: var(--bg-main);
  --card-bg: var(--bg-card);
  --text-primary: var(--text-main);
  --border-focus: var(--primary-light);
}

/* ---------- 2. Component rules ---------- */

/* Native pickers, selects, scrollbars follow color-scheme above. Placeholders: */
html[data-theme="dark"] ::placeholder { color: var(--text-light); }

/* Navy used as a fill under white text must not lighten with the navy text color */
html[data-theme="dark"] .page-help-head-icon,
html[data-theme="dark"] .page-help-step-no,
html[data-theme="dark"] .portfolio-seq-badge,
html[data-theme="dark"] :is([style*="background: var(--lux-navy)"], [style*="background:var(--lux-navy)"], [style*="background: var(--primary-dark)"], [style*="background:var(--primary-dark)"]) {
  background-color: var(--accent-fill) !important;
}

/* Template editor (Quill): chrome follows the theme, the page being written stays paper */
html[data-theme="dark"] .ql-toolbar.ql-snow,
html[data-theme="dark"] .ql-container.ql-snow { border-color: var(--border-color); }
html[data-theme="dark"] .ql-toolbar.ql-snow { background: var(--bg-subtle); }
html[data-theme="dark"] .ql-snow .ql-stroke { stroke: var(--text-secondary); }
html[data-theme="dark"] .ql-snow .ql-fill { fill: var(--text-secondary); }
html[data-theme="dark"] .ql-snow .ql-picker { color: var(--text-secondary); }
html[data-theme="dark"] .ql-snow .ql-picker-options { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme="dark"] .ql-snow.ql-toolbar button:hover .ql-stroke,
html[data-theme="dark"] .ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--gold); }
html[data-theme="dark"] .ql-editor { background: var(--paper-bg); color: var(--paper-text); }

/* Login: the frosted panes, the logo (navy on dark would vanish: a white silhouette), the card and its fields */
html[data-theme="dark"] .login-pane {
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-muted) 75%, transparent) 0%, color-mix(in srgb, var(--bg-card) 25%, transparent) 100%);
  border-color: var(--glass-border);
  box-shadow: none;
}
html[data-theme="dark"] .branding-logo-img,
html[data-theme="dark"] .mobile-logo-img { filter: brightness(0) invert(1); opacity: 0.92; }
html[data-theme="dark"] .login-card { border-color: var(--glass-border); box-shadow: var(--glass-shadow-lg); }
html[data-theme="dark"] .form-input { background-color: var(--bg-input); }
html[data-theme="dark"] .alert-error { background-color: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
html[data-theme="dark"] .alert-success { background-color: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }

/* ---------- 3. Inline-style remap ---------- */

/* Inline backgrounds (a short hex is a prefix of longer ones, so the plain whites come first and every tinted rule after them wins) */
html[data-theme="dark"] :is(
  [style*="background:#fff" i],
  [style*="background: #fff" i],
  [style*="background-color:#fff" i],
  [style*="background-color: #fff" i],
  [style*="background: rgb(255, 255, 255)" i],
  [style*="background:#ffffff" i],
  [style*="background: #ffffff" i],
  [style*="background-color:#ffffff" i],
  [style*="background-color: #ffffff" i],
  [style*="background: rgb(255, 255, 255)" i],
  [style*="background:white" i],
  [style*="background: white" i],
  [style*="background-color:white" i],
  [style*="background-color: white" i],
  [style*="background: rgb(255, 255, 255)" i]
) { background-color: var(--bg-card) !important; }

html[data-theme="dark"] :is(
  [style*="background:#f8fafc" i],
  [style*="background: #f8fafc" i],
  [style*="background-color:#f8fafc" i],
  [style*="background-color: #f8fafc" i],
  [style*="background: rgb(248, 250, 252)" i],
  [style*="background:#fafbfd" i],
  [style*="background: #fafbfd" i],
  [style*="background-color:#fafbfd" i],
  [style*="background-color: #fafbfd" i],
  [style*="background: rgb(250, 251, 253)" i],
  [style*="background:#fafafa" i],
  [style*="background: #fafafa" i],
  [style*="background-color:#fafafa" i],
  [style*="background-color: #fafafa" i],
  [style*="background: rgb(250, 250, 250)" i],
  [style*="background:#fafbfc" i],
  [style*="background: #fafbfc" i],
  [style*="background-color:#fafbfc" i],
  [style*="background-color: #fafbfc" i],
  [style*="background: rgb(250, 251, 252)" i],
  [style*="background:#fafcff" i],
  [style*="background: #fafcff" i],
  [style*="background-color:#fafcff" i],
  [style*="background-color: #fafcff" i],
  [style*="background: rgb(250, 252, 255)" i],
  [style*="background:#fdfefe" i],
  [style*="background: #fdfefe" i],
  [style*="background-color:#fdfefe" i],
  [style*="background-color: #fdfefe" i],
  [style*="background: rgb(253, 254, 254)" i],
  [style*="background:#fdfbf7" i],
  [style*="background: #fdfbf7" i],
  [style*="background-color:#fdfbf7" i],
  [style*="background-color: #fdfbf7" i],
  [style*="background: rgb(253, 251, 247)" i],
  [style*="background:#fafcfb" i],
  [style*="background: #fafcfb" i],
  [style*="background-color:#fafcfb" i],
  [style*="background-color: #fafcfb" i],
  [style*="background: rgb(250, 252, 251)" i],
  [style*="background:#fffdf9" i],
  [style*="background: #fffdf9" i],
  [style*="background-color:#fffdf9" i],
  [style*="background-color: #fffdf9" i],
  [style*="background: rgb(255, 253, 249)" i]
) { background-color: var(--bg-subtle) !important; }

html[data-theme="dark"] :is(
  [style*="background:#f1f5f9" i],
  [style*="background: #f1f5f9" i],
  [style*="background-color:#f1f5f9" i],
  [style*="background-color: #f1f5f9" i],
  [style*="background: rgb(241, 245, 249)" i]
) { background-color: var(--bg-muted) !important; }

html[data-theme="dark"] :is(
  [style*="background:#e2e8f0" i],
  [style*="background: #e2e8f0" i],
  [style*="background-color:#e2e8f0" i],
  [style*="background-color: #e2e8f0" i],
  [style*="background: rgb(226, 232, 240)" i]
) { background-color: var(--border-color) !important; }

html[data-theme="dark"] :is(
  [style*="background:#fef2f2" i],
  [style*="background: #fef2f2" i],
  [style*="background-color:#fef2f2" i],
  [style*="background-color: #fef2f2" i],
  [style*="background: rgb(254, 242, 242)" i],
  [style*="background:#fee2e2" i],
  [style*="background: #fee2e2" i],
  [style*="background-color:#fee2e2" i],
  [style*="background-color: #fee2e2" i],
  [style*="background: rgb(254, 226, 226)" i],
  [style*="background:#fff1f2" i],
  [style*="background: #fff1f2" i],
  [style*="background-color:#fff1f2" i],
  [style*="background-color: #fff1f2" i],
  [style*="background: rgb(255, 241, 242)" i],
  [style*="background:#fde8e8" i],
  [style*="background: #fde8e8" i],
  [style*="background-color:#fde8e8" i],
  [style*="background-color: #fde8e8" i],
  [style*="background: rgb(253, 232, 232)" i]
) { background-color: var(--danger-bg) !important; }

html[data-theme="dark"] :is(
  [style*="background:#fef3c7" i],
  [style*="background: #fef3c7" i],
  [style*="background-color:#fef3c7" i],
  [style*="background-color: #fef3c7" i],
  [style*="background: rgb(254, 243, 199)" i],
  [style*="background:#fffbeb" i],
  [style*="background: #fffbeb" i],
  [style*="background-color:#fffbeb" i],
  [style*="background-color: #fffbeb" i],
  [style*="background: rgb(255, 251, 235)" i],
  [style*="background:#fffdf5" i],
  [style*="background: #fffdf5" i],
  [style*="background-color:#fffdf5" i],
  [style*="background-color: #fffdf5" i],
  [style*="background: rgb(255, 253, 245)" i],
  [style*="background:#fffbf2" i],
  [style*="background: #fffbf2" i],
  [style*="background-color:#fffbf2" i],
  [style*="background-color: #fffbf2" i],
  [style*="background: rgb(255, 251, 242)" i],
  [style*="background:#fff7ed" i],
  [style*="background: #fff7ed" i],
  [style*="background-color:#fff7ed" i],
  [style*="background-color: #fff7ed" i],
  [style*="background: rgb(255, 247, 237)" i]
) { background-color: var(--warning-bg) !important; }

html[data-theme="dark"] :is(
  [style*="background:#ecfdf5" i],
  [style*="background: #ecfdf5" i],
  [style*="background-color:#ecfdf5" i],
  [style*="background-color: #ecfdf5" i],
  [style*="background: rgb(236, 253, 245)" i],
  [style*="background:#dcfce7" i],
  [style*="background: #dcfce7" i],
  [style*="background-color:#dcfce7" i],
  [style*="background-color: #dcfce7" i],
  [style*="background: rgb(220, 252, 231)" i],
  [style*="background:#f0fdf4" i],
  [style*="background: #f0fdf4" i],
  [style*="background-color:#f0fdf4" i],
  [style*="background-color: #f0fdf4" i],
  [style*="background: rgb(240, 253, 244)" i],
  [style*="background:#d1fae5" i],
  [style*="background: #d1fae5" i],
  [style*="background-color:#d1fae5" i],
  [style*="background-color: #d1fae5" i],
  [style*="background: rgb(209, 250, 229)" i],
  [style*="background:#f0fdfa" i],
  [style*="background: #f0fdfa" i],
  [style*="background-color:#f0fdfa" i],
  [style*="background-color: #f0fdfa" i],
  [style*="background: rgb(240, 253, 250)" i],
  [style*="background:#def7ec" i],
  [style*="background: #def7ec" i],
  [style*="background-color:#def7ec" i],
  [style*="background-color: #def7ec" i],
  [style*="background: rgb(222, 247, 236)" i]
) { background-color: var(--success-bg) !important; }

html[data-theme="dark"] :is(
  [style*="background:#eff6ff" i],
  [style*="background: #eff6ff" i],
  [style*="background-color:#eff6ff" i],
  [style*="background-color: #eff6ff" i],
  [style*="background: rgb(239, 246, 255)" i],
  [style*="background:#e0f2fe" i],
  [style*="background: #e0f2fe" i],
  [style*="background-color:#e0f2fe" i],
  [style*="background-color: #e0f2fe" i],
  [style*="background: rgb(224, 242, 254)" i],
  [style*="background:#f0f9ff" i],
  [style*="background: #f0f9ff" i],
  [style*="background-color:#f0f9ff" i],
  [style*="background-color: #f0f9ff" i],
  [style*="background: rgb(240, 249, 255)" i],
  [style*="background:#dbeafe" i],
  [style*="background: #dbeafe" i],
  [style*="background-color:#dbeafe" i],
  [style*="background-color: #dbeafe" i],
  [style*="background: rgb(219, 234, 254)" i]
) { background-color: var(--info-bg) !important; }

html[data-theme="dark"] :is(
  [style*="background:#eef2ff" i],
  [style*="background: #eef2ff" i],
  [style*="background-color:#eef2ff" i],
  [style*="background-color: #eef2ff" i],
  [style*="background: rgb(238, 242, 255)" i],
  [style*="background:#e0e7ff" i],
  [style*="background: #e0e7ff" i],
  [style*="background-color:#e0e7ff" i],
  [style*="background-color: #e0e7ff" i],
  [style*="background: rgb(224, 231, 255)" i],
  [style*="background:#ede9fe" i],
  [style*="background: #ede9fe" i],
  [style*="background-color:#ede9fe" i],
  [style*="background-color: #ede9fe" i],
  [style*="background: rgb(237, 233, 254)" i],
  [style*="background:#f5f3ff" i],
  [style*="background: #f5f3ff" i],
  [style*="background-color:#f5f3ff" i],
  [style*="background-color: #f5f3ff" i],
  [style*="background: rgb(245, 243, 255)" i],
  [style*="background:#f3e8ff" i],
  [style*="background: #f3e8ff" i],
  [style*="background-color:#f3e8ff" i],
  [style*="background-color: #f3e8ff" i],
  [style*="background: rgb(243, 232, 255)" i],
  [style*="background:#faf5ff" i],
  [style*="background: #faf5ff" i],
  [style*="background-color:#faf5ff" i],
  [style*="background-color: #faf5ff" i],
  [style*="background: rgb(250, 245, 255)" i]
) { background-color: var(--violet-bg) !important; }

/* Inline text colors */
html[data-theme="dark"] :is(
  [style^="color:#64748b" i],
  [style^="color: #64748b" i],
  [style*=";color:#64748b" i],
  [style*=";color: #64748b" i],
  [style*="; color:#64748b" i],
  [style*="; color: #64748b" i],
  [style^="color:rgb(100, 116, 139)" i],
  [style^="color: rgb(100, 116, 139)" i],
  [style*=";color:rgb(100, 116, 139)" i],
  [style*=";color: rgb(100, 116, 139)" i],
  [style*="; color:rgb(100, 116, 139)" i],
  [style*="; color: rgb(100, 116, 139)" i],
  [style^="color:#6b7280" i],
  [style^="color: #6b7280" i],
  [style*=";color:#6b7280" i],
  [style*=";color: #6b7280" i],
  [style*="; color:#6b7280" i],
  [style*="; color: #6b7280" i],
  [style^="color:rgb(107, 114, 128)" i],
  [style^="color: rgb(107, 114, 128)" i],
  [style*=";color:rgb(107, 114, 128)" i],
  [style*=";color: rgb(107, 114, 128)" i],
  [style*="; color:rgb(107, 114, 128)" i],
  [style*="; color: rgb(107, 114, 128)" i]
) { color: var(--text-muted) !important; }

html[data-theme="dark"] :is(
  [style^="color:#94a3b8" i],
  [style^="color: #94a3b8" i],
  [style*=";color:#94a3b8" i],
  [style*=";color: #94a3b8" i],
  [style*="; color:#94a3b8" i],
  [style*="; color: #94a3b8" i],
  [style^="color:rgb(148, 163, 184)" i],
  [style^="color: rgb(148, 163, 184)" i],
  [style*=";color:rgb(148, 163, 184)" i],
  [style*=";color: rgb(148, 163, 184)" i],
  [style*="; color:rgb(148, 163, 184)" i],
  [style*="; color: rgb(148, 163, 184)" i]
) { color: var(--text-light) !important; }

html[data-theme="dark"] :is(
  [style^="color:#475569" i],
  [style^="color: #475569" i],
  [style*=";color:#475569" i],
  [style*=";color: #475569" i],
  [style*="; color:#475569" i],
  [style*="; color: #475569" i],
  [style^="color:rgb(71, 85, 105)" i],
  [style^="color: rgb(71, 85, 105)" i],
  [style*=";color:rgb(71, 85, 105)" i],
  [style*=";color: rgb(71, 85, 105)" i],
  [style*="; color:rgb(71, 85, 105)" i],
  [style*="; color: rgb(71, 85, 105)" i],
  [style^="color:#334155" i],
  [style^="color: #334155" i],
  [style*=";color:#334155" i],
  [style*=";color: #334155" i],
  [style*="; color:#334155" i],
  [style*="; color: #334155" i],
  [style^="color:rgb(51, 65, 85)" i],
  [style^="color: rgb(51, 65, 85)" i],
  [style*=";color:rgb(51, 65, 85)" i],
  [style*=";color: rgb(51, 65, 85)" i],
  [style*="; color:rgb(51, 65, 85)" i],
  [style*="; color: rgb(51, 65, 85)" i],
  [style^="color:#374151" i],
  [style^="color: #374151" i],
  [style*=";color:#374151" i],
  [style*=";color: #374151" i],
  [style*="; color:#374151" i],
  [style*="; color: #374151" i],
  [style^="color:rgb(55, 65, 81)" i],
  [style^="color: rgb(55, 65, 81)" i],
  [style*=";color:rgb(55, 65, 81)" i],
  [style*=";color: rgb(55, 65, 81)" i],
  [style*="; color:rgb(55, 65, 81)" i],
  [style*="; color: rgb(55, 65, 81)" i],
  [style^="color:#4b5563" i],
  [style^="color: #4b5563" i],
  [style*=";color:#4b5563" i],
  [style*=";color: #4b5563" i],
  [style*="; color:#4b5563" i],
  [style*="; color: #4b5563" i],
  [style^="color:rgb(75, 85, 99)" i],
  [style^="color: rgb(75, 85, 99)" i],
  [style*=";color:rgb(75, 85, 99)" i],
  [style*=";color: rgb(75, 85, 99)" i],
  [style*="; color:rgb(75, 85, 99)" i],
  [style*="; color: rgb(75, 85, 99)" i]
) { color: var(--text-secondary) !important; }

html[data-theme="dark"] :is(
  [style^="color:#1e293b" i],
  [style^="color: #1e293b" i],
  [style*=";color:#1e293b" i],
  [style*=";color: #1e293b" i],
  [style*="; color:#1e293b" i],
  [style*="; color: #1e293b" i],
  [style^="color:rgb(30, 41, 59)" i],
  [style^="color: rgb(30, 41, 59)" i],
  [style*=";color:rgb(30, 41, 59)" i],
  [style*=";color: rgb(30, 41, 59)" i],
  [style*="; color:rgb(30, 41, 59)" i],
  [style*="; color: rgb(30, 41, 59)" i],
  [style^="color:#0f172a" i],
  [style^="color: #0f172a" i],
  [style*=";color:#0f172a" i],
  [style*=";color: #0f172a" i],
  [style*="; color:#0f172a" i],
  [style*="; color: #0f172a" i],
  [style^="color:rgb(15, 23, 42)" i],
  [style^="color: rgb(15, 23, 42)" i],
  [style*=";color:rgb(15, 23, 42)" i],
  [style*=";color: rgb(15, 23, 42)" i],
  [style*="; color:rgb(15, 23, 42)" i],
  [style*="; color: rgb(15, 23, 42)" i],
  [style^="color:#1f2937" i],
  [style^="color: #1f2937" i],
  [style*=";color:#1f2937" i],
  [style*=";color: #1f2937" i],
  [style*="; color:#1f2937" i],
  [style*="; color: #1f2937" i],
  [style^="color:rgb(31, 41, 55)" i],
  [style^="color: rgb(31, 41, 55)" i],
  [style*=";color:rgb(31, 41, 55)" i],
  [style*=";color: rgb(31, 41, 55)" i],
  [style*="; color:rgb(31, 41, 55)" i],
  [style*="; color: rgb(31, 41, 55)" i]
) { color: var(--text-strong) !important; }

html[data-theme="dark"] :is(
  [style^="color:#0f2440" i],
  [style^="color: #0f2440" i],
  [style*=";color:#0f2440" i],
  [style*=";color: #0f2440" i],
  [style*="; color:#0f2440" i],
  [style*="; color: #0f2440" i],
  [style^="color:rgb(15, 36, 64)" i],
  [style^="color: rgb(15, 36, 64)" i],
  [style*=";color:rgb(15, 36, 64)" i],
  [style*=";color: rgb(15, 36, 64)" i],
  [style*="; color:rgb(15, 36, 64)" i],
  [style*="; color: rgb(15, 36, 64)" i],
  [style^="color:#1b3a5c" i],
  [style^="color: #1b3a5c" i],
  [style*=";color:#1b3a5c" i],
  [style*=";color: #1b3a5c" i],
  [style*="; color:#1b3a5c" i],
  [style*="; color: #1b3a5c" i],
  [style^="color:rgb(27, 58, 92)" i],
  [style^="color: rgb(27, 58, 92)" i],
  [style*=";color:rgb(27, 58, 92)" i],
  [style*=";color: rgb(27, 58, 92)" i],
  [style*="; color:rgb(27, 58, 92)" i],
  [style*="; color: rgb(27, 58, 92)" i]
) { color: var(--primary-dark) !important; }

html[data-theme="dark"] :is(
  [style^="color:#991b1b" i],
  [style^="color: #991b1b" i],
  [style*=";color:#991b1b" i],
  [style*=";color: #991b1b" i],
  [style*="; color:#991b1b" i],
  [style*="; color: #991b1b" i],
  [style^="color:rgb(153, 27, 27)" i],
  [style^="color: rgb(153, 27, 27)" i],
  [style*=";color:rgb(153, 27, 27)" i],
  [style*=";color: rgb(153, 27, 27)" i],
  [style*="; color:rgb(153, 27, 27)" i],
  [style*="; color: rgb(153, 27, 27)" i],
  [style^="color:#b91c1c" i],
  [style^="color: #b91c1c" i],
  [style*=";color:#b91c1c" i],
  [style*=";color: #b91c1c" i],
  [style*="; color:#b91c1c" i],
  [style*="; color: #b91c1c" i],
  [style^="color:rgb(185, 28, 28)" i],
  [style^="color: rgb(185, 28, 28)" i],
  [style*=";color:rgb(185, 28, 28)" i],
  [style*=";color: rgb(185, 28, 28)" i],
  [style*="; color:rgb(185, 28, 28)" i],
  [style*="; color: rgb(185, 28, 28)" i],
  [style^="color:#7f1d1d" i],
  [style^="color: #7f1d1d" i],
  [style*=";color:#7f1d1d" i],
  [style*=";color: #7f1d1d" i],
  [style*="; color:#7f1d1d" i],
  [style*="; color: #7f1d1d" i],
  [style^="color:rgb(127, 29, 29)" i],
  [style^="color: rgb(127, 29, 29)" i],
  [style*=";color:rgb(127, 29, 29)" i],
  [style*=";color: rgb(127, 29, 29)" i],
  [style*="; color:rgb(127, 29, 29)" i],
  [style*="; color: rgb(127, 29, 29)" i],
  [style^="color:#9b1c1c" i],
  [style^="color: #9b1c1c" i],
  [style*=";color:#9b1c1c" i],
  [style*=";color: #9b1c1c" i],
  [style*="; color:#9b1c1c" i],
  [style*="; color: #9b1c1c" i],
  [style^="color:rgb(155, 28, 28)" i],
  [style^="color: rgb(155, 28, 28)" i],
  [style*=";color:rgb(155, 28, 28)" i],
  [style*=";color: rgb(155, 28, 28)" i],
  [style*="; color:rgb(155, 28, 28)" i],
  [style*="; color: rgb(155, 28, 28)" i]
) { color: var(--danger-text) !important; }

html[data-theme="dark"] :is(
  [style^="color:#dc2626" i],
  [style^="color: #dc2626" i],
  [style*=";color:#dc2626" i],
  [style*=";color: #dc2626" i],
  [style*="; color:#dc2626" i],
  [style*="; color: #dc2626" i],
  [style^="color:rgb(220, 38, 38)" i],
  [style^="color: rgb(220, 38, 38)" i],
  [style*=";color:rgb(220, 38, 38)" i],
  [style*=";color: rgb(220, 38, 38)" i],
  [style*="; color:rgb(220, 38, 38)" i],
  [style*="; color: rgb(220, 38, 38)" i],
  [style^="color:#ef4444" i],
  [style^="color: #ef4444" i],
  [style*=";color:#ef4444" i],
  [style*=";color: #ef4444" i],
  [style*="; color:#ef4444" i],
  [style*="; color: #ef4444" i],
  [style^="color:rgb(239, 68, 68)" i],
  [style^="color: rgb(239, 68, 68)" i],
  [style*=";color:rgb(239, 68, 68)" i],
  [style*=";color: rgb(239, 68, 68)" i],
  [style*="; color:rgb(239, 68, 68)" i],
  [style*="; color: rgb(239, 68, 68)" i],
  [style^="color:#e11d48" i],
  [style^="color: #e11d48" i],
  [style*=";color:#e11d48" i],
  [style*=";color: #e11d48" i],
  [style*="; color:#e11d48" i],
  [style*="; color: #e11d48" i],
  [style^="color:rgb(225, 29, 72)" i],
  [style^="color: rgb(225, 29, 72)" i],
  [style*=";color:rgb(225, 29, 72)" i],
  [style*=";color: rgb(225, 29, 72)" i],
  [style*="; color:rgb(225, 29, 72)" i],
  [style*="; color: rgb(225, 29, 72)" i],
  [style^="color:#d32f2f" i],
  [style^="color: #d32f2f" i],
  [style*=";color:#d32f2f" i],
  [style*=";color: #d32f2f" i],
  [style*="; color:#d32f2f" i],
  [style*="; color: #d32f2f" i],
  [style^="color:rgb(211, 47, 47)" i],
  [style^="color: rgb(211, 47, 47)" i],
  [style*=";color:rgb(211, 47, 47)" i],
  [style*=";color: rgb(211, 47, 47)" i],
  [style*="; color:rgb(211, 47, 47)" i],
  [style*="; color: rgb(211, 47, 47)" i]
) { color: var(--accent-red) !important; }

html[data-theme="dark"] :is(
  [style^="color:#92400e" i],
  [style^="color: #92400e" i],
  [style*=";color:#92400e" i],
  [style*=";color: #92400e" i],
  [style*="; color:#92400e" i],
  [style*="; color: #92400e" i],
  [style^="color:rgb(146, 64, 14)" i],
  [style^="color: rgb(146, 64, 14)" i],
  [style*=";color:rgb(146, 64, 14)" i],
  [style*=";color: rgb(146, 64, 14)" i],
  [style*="; color:rgb(146, 64, 14)" i],
  [style*="; color: rgb(146, 64, 14)" i],
  [style^="color:#b45309" i],
  [style^="color: #b45309" i],
  [style*=";color:#b45309" i],
  [style*=";color: #b45309" i],
  [style*="; color:#b45309" i],
  [style*="; color: #b45309" i],
  [style^="color:rgb(180, 83, 9)" i],
  [style^="color: rgb(180, 83, 9)" i],
  [style*=";color:rgb(180, 83, 9)" i],
  [style*=";color: rgb(180, 83, 9)" i],
  [style*="; color:rgb(180, 83, 9)" i],
  [style*="; color: rgb(180, 83, 9)" i],
  [style^="color:#78350f" i],
  [style^="color: #78350f" i],
  [style*=";color:#78350f" i],
  [style*=";color: #78350f" i],
  [style*="; color:#78350f" i],
  [style*="; color: #78350f" i],
  [style^="color:rgb(120, 53, 15)" i],
  [style^="color: rgb(120, 53, 15)" i],
  [style*=";color:rgb(120, 53, 15)" i],
  [style*=";color: rgb(120, 53, 15)" i],
  [style*="; color:rgb(120, 53, 15)" i],
  [style*="; color: rgb(120, 53, 15)" i],
  [style^="color:#996515" i],
  [style^="color: #996515" i],
  [style*=";color:#996515" i],
  [style*=";color: #996515" i],
  [style*="; color:#996515" i],
  [style*="; color: #996515" i],
  [style^="color:rgb(153, 101, 21)" i],
  [style^="color: rgb(153, 101, 21)" i],
  [style*=";color:rgb(153, 101, 21)" i],
  [style*=";color: rgb(153, 101, 21)" i],
  [style*="; color:rgb(153, 101, 21)" i],
  [style*="; color: rgb(153, 101, 21)" i],
  [style^="color:#9a3412" i],
  [style^="color: #9a3412" i],
  [style*=";color:#9a3412" i],
  [style*=";color: #9a3412" i],
  [style*="; color:#9a3412" i],
  [style*="; color: #9a3412" i],
  [style^="color:rgb(154, 52, 18)" i],
  [style^="color: rgb(154, 52, 18)" i],
  [style*=";color:rgb(154, 52, 18)" i],
  [style*=";color: rgb(154, 52, 18)" i],
  [style*="; color:rgb(154, 52, 18)" i],
  [style*="; color: rgb(154, 52, 18)" i],
  [style^="color:#c2410c" i],
  [style^="color: #c2410c" i],
  [style*=";color:#c2410c" i],
  [style*=";color: #c2410c" i],
  [style*="; color:#c2410c" i],
  [style*="; color: #c2410c" i],
  [style^="color:rgb(194, 65, 12)" i],
  [style^="color: rgb(194, 65, 12)" i],
  [style*=";color:rgb(194, 65, 12)" i],
  [style*=";color: rgb(194, 65, 12)" i],
  [style*="; color:rgb(194, 65, 12)" i],
  [style*="; color: rgb(194, 65, 12)" i]
) { color: var(--warning-text) !important; }

html[data-theme="dark"] :is(
  [style^="color:#d97706" i],
  [style^="color: #d97706" i],
  [style*=";color:#d97706" i],
  [style*=";color: #d97706" i],
  [style*="; color:#d97706" i],
  [style*="; color: #d97706" i],
  [style^="color:rgb(217, 119, 6)" i],
  [style^="color: rgb(217, 119, 6)" i],
  [style*=";color:rgb(217, 119, 6)" i],
  [style*=";color: rgb(217, 119, 6)" i],
  [style*="; color:rgb(217, 119, 6)" i],
  [style*="; color: rgb(217, 119, 6)" i],
  [style^="color:#c05621" i],
  [style^="color: #c05621" i],
  [style*=";color:#c05621" i],
  [style*=";color: #c05621" i],
  [style*="; color:#c05621" i],
  [style*="; color: #c05621" i],
  [style^="color:rgb(192, 86, 33)" i],
  [style^="color: rgb(192, 86, 33)" i],
  [style*=";color:rgb(192, 86, 33)" i],
  [style*=";color: rgb(192, 86, 33)" i],
  [style*="; color:rgb(192, 86, 33)" i],
  [style*="; color: rgb(192, 86, 33)" i],
  [style^="color:#ea580c" i],
  [style^="color: #ea580c" i],
  [style*=";color:#ea580c" i],
  [style*=";color: #ea580c" i],
  [style*="; color:#ea580c" i],
  [style*="; color: #ea580c" i],
  [style^="color:rgb(234, 88, 12)" i],
  [style^="color: rgb(234, 88, 12)" i],
  [style*=";color:rgb(234, 88, 12)" i],
  [style*=";color: rgb(234, 88, 12)" i],
  [style*="; color:rgb(234, 88, 12)" i],
  [style*="; color: rgb(234, 88, 12)" i]
) { color: var(--accent-amber) !important; }

html[data-theme="dark"] :is(
  [style^="color:#065f46" i],
  [style^="color: #065f46" i],
  [style*=";color:#065f46" i],
  [style*=";color: #065f46" i],
  [style*="; color:#065f46" i],
  [style*="; color: #065f46" i],
  [style^="color:rgb(6, 95, 70)" i],
  [style^="color: rgb(6, 95, 70)" i],
  [style*=";color:rgb(6, 95, 70)" i],
  [style*=";color: rgb(6, 95, 70)" i],
  [style*="; color:rgb(6, 95, 70)" i],
  [style*="; color: rgb(6, 95, 70)" i],
  [style^="color:#166534" i],
  [style^="color: #166534" i],
  [style*=";color:#166534" i],
  [style*=";color: #166534" i],
  [style*="; color:#166534" i],
  [style*="; color: #166534" i],
  [style^="color:rgb(22, 101, 52)" i],
  [style^="color: rgb(22, 101, 52)" i],
  [style*=";color:rgb(22, 101, 52)" i],
  [style*=";color: rgb(22, 101, 52)" i],
  [style*="; color:rgb(22, 101, 52)" i],
  [style*="; color: rgb(22, 101, 52)" i],
  [style^="color:#047857" i],
  [style^="color: #047857" i],
  [style*=";color:#047857" i],
  [style*=";color: #047857" i],
  [style*="; color:#047857" i],
  [style*="; color: #047857" i],
  [style^="color:rgb(4, 120, 87)" i],
  [style^="color: rgb(4, 120, 87)" i],
  [style*=";color:rgb(4, 120, 87)" i],
  [style*=";color: rgb(4, 120, 87)" i],
  [style*="; color:rgb(4, 120, 87)" i],
  [style*="; color: rgb(4, 120, 87)" i],
  [style^="color:#15803d" i],
  [style^="color: #15803d" i],
  [style*=";color:#15803d" i],
  [style*=";color: #15803d" i],
  [style*="; color:#15803d" i],
  [style*="; color: #15803d" i],
  [style^="color:rgb(21, 128, 61)" i],
  [style^="color: rgb(21, 128, 61)" i],
  [style*=";color:rgb(21, 128, 61)" i],
  [style*=";color: rgb(21, 128, 61)" i],
  [style*="; color:rgb(21, 128, 61)" i],
  [style*="; color: rgb(21, 128, 61)" i],
  [style^="color:#0f766e" i],
  [style^="color: #0f766e" i],
  [style*=";color:#0f766e" i],
  [style*=";color: #0f766e" i],
  [style*="; color:#0f766e" i],
  [style*="; color: #0f766e" i],
  [style^="color:rgb(15, 118, 110)" i],
  [style^="color: rgb(15, 118, 110)" i],
  [style*=";color:rgb(15, 118, 110)" i],
  [style*=";color: rgb(15, 118, 110)" i],
  [style*="; color:rgb(15, 118, 110)" i],
  [style*="; color: rgb(15, 118, 110)" i],
  [style^="color:#03543f" i],
  [style^="color: #03543f" i],
  [style*=";color:#03543f" i],
  [style*=";color: #03543f" i],
  [style*="; color:#03543f" i],
  [style*="; color: #03543f" i],
  [style^="color:rgb(3, 84, 63)" i],
  [style^="color: rgb(3, 84, 63)" i],
  [style*=";color:rgb(3, 84, 63)" i],
  [style*=";color: rgb(3, 84, 63)" i],
  [style*="; color:rgb(3, 84, 63)" i],
  [style*="; color: rgb(3, 84, 63)" i]
) { color: var(--success-text) !important; }

html[data-theme="dark"] :is(
  [style^="color:#059669" i],
  [style^="color: #059669" i],
  [style*=";color:#059669" i],
  [style*=";color: #059669" i],
  [style*="; color:#059669" i],
  [style*="; color: #059669" i],
  [style^="color:rgb(5, 150, 105)" i],
  [style^="color: rgb(5, 150, 105)" i],
  [style*=";color:rgb(5, 150, 105)" i],
  [style*=";color: rgb(5, 150, 105)" i],
  [style*="; color:rgb(5, 150, 105)" i],
  [style*="; color: rgb(5, 150, 105)" i],
  [style^="color:#16a34a" i],
  [style^="color: #16a34a" i],
  [style*=";color:#16a34a" i],
  [style*=";color: #16a34a" i],
  [style*="; color:#16a34a" i],
  [style*="; color: #16a34a" i],
  [style^="color:rgb(22, 163, 74)" i],
  [style^="color: rgb(22, 163, 74)" i],
  [style*=";color:rgb(22, 163, 74)" i],
  [style*=";color: rgb(22, 163, 74)" i],
  [style*="; color:rgb(22, 163, 74)" i],
  [style*="; color: rgb(22, 163, 74)" i],
  [style^="color:#10b981" i],
  [style^="color: #10b981" i],
  [style*=";color:#10b981" i],
  [style*=";color: #10b981" i],
  [style*="; color:#10b981" i],
  [style*="; color: #10b981" i],
  [style^="color:rgb(16, 185, 129)" i],
  [style^="color: rgb(16, 185, 129)" i],
  [style*=";color:rgb(16, 185, 129)" i],
  [style*=";color: rgb(16, 185, 129)" i],
  [style*="; color:rgb(16, 185, 129)" i],
  [style*="; color: rgb(16, 185, 129)" i],
  [style^="color:#2e7d32" i],
  [style^="color: #2e7d32" i],
  [style*=";color:#2e7d32" i],
  [style*=";color: #2e7d32" i],
  [style*="; color:#2e7d32" i],
  [style*="; color: #2e7d32" i],
  [style^="color:rgb(46, 125, 50)" i],
  [style^="color: rgb(46, 125, 50)" i],
  [style*=";color:rgb(46, 125, 50)" i],
  [style*=";color: rgb(46, 125, 50)" i],
  [style*="; color:rgb(46, 125, 50)" i],
  [style*="; color: rgb(46, 125, 50)" i]
) { color: var(--accent-green) !important; }

html[data-theme="dark"] :is(
  [style^="color:#1d4ed8" i],
  [style^="color: #1d4ed8" i],
  [style*=";color:#1d4ed8" i],
  [style*=";color: #1d4ed8" i],
  [style*="; color:#1d4ed8" i],
  [style*="; color: #1d4ed8" i],
  [style^="color:rgb(29, 78, 216)" i],
  [style^="color: rgb(29, 78, 216)" i],
  [style*=";color:rgb(29, 78, 216)" i],
  [style*=";color: rgb(29, 78, 216)" i],
  [style*="; color:rgb(29, 78, 216)" i],
  [style*="; color: rgb(29, 78, 216)" i],
  [style^="color:#1e40af" i],
  [style^="color: #1e40af" i],
  [style*=";color:#1e40af" i],
  [style*=";color: #1e40af" i],
  [style*="; color:#1e40af" i],
  [style*="; color: #1e40af" i],
  [style^="color:rgb(30, 64, 175)" i],
  [style^="color: rgb(30, 64, 175)" i],
  [style*=";color:rgb(30, 64, 175)" i],
  [style*=";color: rgb(30, 64, 175)" i],
  [style*="; color:rgb(30, 64, 175)" i],
  [style*="; color: rgb(30, 64, 175)" i],
  [style^="color:#1e3a8a" i],
  [style^="color: #1e3a8a" i],
  [style*=";color:#1e3a8a" i],
  [style*=";color: #1e3a8a" i],
  [style*="; color:#1e3a8a" i],
  [style*="; color: #1e3a8a" i],
  [style^="color:rgb(30, 58, 138)" i],
  [style^="color: rgb(30, 58, 138)" i],
  [style*=";color:rgb(30, 58, 138)" i],
  [style*=";color: rgb(30, 58, 138)" i],
  [style*="; color:rgb(30, 58, 138)" i],
  [style*="; color: rgb(30, 58, 138)" i],
  [style^="color:#0369a1" i],
  [style^="color: #0369a1" i],
  [style*=";color:#0369a1" i],
  [style*=";color: #0369a1" i],
  [style*="; color:#0369a1" i],
  [style*="; color: #0369a1" i],
  [style^="color:rgb(3, 105, 161)" i],
  [style^="color: rgb(3, 105, 161)" i],
  [style*=";color:rgb(3, 105, 161)" i],
  [style*=";color: rgb(3, 105, 161)" i],
  [style*="; color:rgb(3, 105, 161)" i],
  [style*="; color: rgb(3, 105, 161)" i],
  [style^="color:#075985" i],
  [style^="color: #075985" i],
  [style*=";color:#075985" i],
  [style*=";color: #075985" i],
  [style*="; color:#075985" i],
  [style*="; color: #075985" i],
  [style^="color:rgb(7, 89, 133)" i],
  [style^="color: rgb(7, 89, 133)" i],
  [style*=";color:rgb(7, 89, 133)" i],
  [style*=";color: rgb(7, 89, 133)" i],
  [style*="; color:rgb(7, 89, 133)" i],
  [style*="; color: rgb(7, 89, 133)" i]
) { color: var(--info-text) !important; }

html[data-theme="dark"] :is(
  [style^="color:#581c87" i],
  [style^="color: #581c87" i],
  [style*=";color:#581c87" i],
  [style*=";color: #581c87" i],
  [style*="; color:#581c87" i],
  [style*="; color: #581c87" i],
  [style^="color:rgb(88, 28, 135)" i],
  [style^="color: rgb(88, 28, 135)" i],
  [style*=";color:rgb(88, 28, 135)" i],
  [style*=";color: rgb(88, 28, 135)" i],
  [style*="; color:rgb(88, 28, 135)" i],
  [style*="; color: rgb(88, 28, 135)" i],
  [style^="color:#312e81" i],
  [style^="color: #312e81" i],
  [style*=";color:#312e81" i],
  [style*=";color: #312e81" i],
  [style*="; color:#312e81" i],
  [style*="; color: #312e81" i],
  [style^="color:rgb(49, 46, 129)" i],
  [style^="color: rgb(49, 46, 129)" i],
  [style*=";color:rgb(49, 46, 129)" i],
  [style*=";color: rgb(49, 46, 129)" i],
  [style*="; color:rgb(49, 46, 129)" i],
  [style*="; color: rgb(49, 46, 129)" i]
) { color: var(--violet-text) !important; }

html[data-theme="dark"] :is(
  [style^="color:#2563eb" i],
  [style^="color: #2563eb" i],
  [style*=";color:#2563eb" i],
  [style*=";color: #2563eb" i],
  [style*="; color:#2563eb" i],
  [style*="; color: #2563eb" i],
  [style^="color:rgb(37, 99, 235)" i],
  [style^="color: rgb(37, 99, 235)" i],
  [style*=";color:rgb(37, 99, 235)" i],
  [style*=";color: rgb(37, 99, 235)" i],
  [style*="; color:rgb(37, 99, 235)" i],
  [style*="; color: rgb(37, 99, 235)" i],
  [style^="color:#0284c7" i],
  [style^="color: #0284c7" i],
  [style*=";color:#0284c7" i],
  [style*=";color: #0284c7" i],
  [style*="; color:#0284c7" i],
  [style*="; color: #0284c7" i],
  [style^="color:rgb(2, 132, 199)" i],
  [style^="color: rgb(2, 132, 199)" i],
  [style*=";color:rgb(2, 132, 199)" i],
  [style*=";color: rgb(2, 132, 199)" i],
  [style*="; color:rgb(2, 132, 199)" i],
  [style*="; color: rgb(2, 132, 199)" i],
  [style^="color:#3b82f6" i],
  [style^="color: #3b82f6" i],
  [style*=";color:#3b82f6" i],
  [style*=";color: #3b82f6" i],
  [style*="; color:#3b82f6" i],
  [style*="; color: #3b82f6" i],
  [style^="color:rgb(59, 130, 246)" i],
  [style^="color: rgb(59, 130, 246)" i],
  [style*=";color:rgb(59, 130, 246)" i],
  [style*=";color: rgb(59, 130, 246)" i],
  [style*="; color:rgb(59, 130, 246)" i],
  [style*="; color: rgb(59, 130, 246)" i]
) { color: var(--accent-blue) !important; }

html[data-theme="dark"] :is(
  [style^="color:#4f46e5" i],
  [style^="color: #4f46e5" i],
  [style*=";color:#4f46e5" i],
  [style*=";color: #4f46e5" i],
  [style*="; color:#4f46e5" i],
  [style*="; color: #4f46e5" i],
  [style^="color:rgb(79, 70, 229)" i],
  [style^="color: rgb(79, 70, 229)" i],
  [style*=";color:rgb(79, 70, 229)" i],
  [style*=";color: rgb(79, 70, 229)" i],
  [style*="; color:rgb(79, 70, 229)" i],
  [style*="; color: rgb(79, 70, 229)" i],
  [style^="color:#4338ca" i],
  [style^="color: #4338ca" i],
  [style*=";color:#4338ca" i],
  [style*=";color: #4338ca" i],
  [style*="; color:#4338ca" i],
  [style*="; color: #4338ca" i],
  [style^="color:rgb(67, 56, 202)" i],
  [style^="color: rgb(67, 56, 202)" i],
  [style*=";color:rgb(67, 56, 202)" i],
  [style*=";color: rgb(67, 56, 202)" i],
  [style*="; color:rgb(67, 56, 202)" i],
  [style*="; color: rgb(67, 56, 202)" i],
  [style^="color:#3730a3" i],
  [style^="color: #3730a3" i],
  [style*=";color:#3730a3" i],
  [style*=";color: #3730a3" i],
  [style*="; color:#3730a3" i],
  [style*="; color: #3730a3" i],
  [style^="color:rgb(55, 48, 163)" i],
  [style^="color: rgb(55, 48, 163)" i],
  [style*=";color:rgb(55, 48, 163)" i],
  [style*=";color: rgb(55, 48, 163)" i],
  [style*="; color:rgb(55, 48, 163)" i],
  [style*="; color: rgb(55, 48, 163)" i],
  [style^="color:#6366f1" i],
  [style^="color: #6366f1" i],
  [style*=";color:#6366f1" i],
  [style*=";color: #6366f1" i],
  [style*="; color:#6366f1" i],
  [style*="; color: #6366f1" i],
  [style^="color:rgb(99, 102, 241)" i],
  [style^="color: rgb(99, 102, 241)" i],
  [style*=";color:rgb(99, 102, 241)" i],
  [style*=";color: rgb(99, 102, 241)" i],
  [style*="; color:rgb(99, 102, 241)" i],
  [style*="; color: rgb(99, 102, 241)" i],
  [style^="color:#6d28d9" i],
  [style^="color: #6d28d9" i],
  [style*=";color:#6d28d9" i],
  [style*=";color: #6d28d9" i],
  [style*="; color:#6d28d9" i],
  [style*="; color: #6d28d9" i],
  [style^="color:rgb(109, 40, 217)" i],
  [style^="color: rgb(109, 40, 217)" i],
  [style*=";color:rgb(109, 40, 217)" i],
  [style*=";color: rgb(109, 40, 217)" i],
  [style*="; color:rgb(109, 40, 217)" i],
  [style*="; color: rgb(109, 40, 217)" i],
  [style^="color:#7c3aed" i],
  [style^="color: #7c3aed" i],
  [style*=";color:#7c3aed" i],
  [style*=";color: #7c3aed" i],
  [style*="; color:#7c3aed" i],
  [style*="; color: #7c3aed" i],
  [style^="color:rgb(124, 58, 237)" i],
  [style^="color: rgb(124, 58, 237)" i],
  [style*=";color:rgb(124, 58, 237)" i],
  [style*=";color: rgb(124, 58, 237)" i],
  [style*="; color:rgb(124, 58, 237)" i],
  [style*="; color: rgb(124, 58, 237)" i],
  [style^="color:#8b5cf6" i],
  [style^="color: #8b5cf6" i],
  [style*=";color:#8b5cf6" i],
  [style*=";color: #8b5cf6" i],
  [style*="; color:#8b5cf6" i],
  [style*="; color: #8b5cf6" i],
  [style^="color:rgb(139, 92, 246)" i],
  [style^="color: rgb(139, 92, 246)" i],
  [style*=";color:rgb(139, 92, 246)" i],
  [style*=";color: rgb(139, 92, 246)" i],
  [style*="; color:rgb(139, 92, 246)" i],
  [style*="; color: rgb(139, 92, 246)" i],
  [style^="color:#6b21a8" i],
  [style^="color: #6b21a8" i],
  [style*=";color:#6b21a8" i],
  [style*=";color: #6b21a8" i],
  [style*="; color:#6b21a8" i],
  [style*="; color: #6b21a8" i],
  [style^="color:rgb(107, 33, 168)" i],
  [style^="color: rgb(107, 33, 168)" i],
  [style*=";color:rgb(107, 33, 168)" i],
  [style*=";color: rgb(107, 33, 168)" i],
  [style*="; color:rgb(107, 33, 168)" i],
  [style*="; color: rgb(107, 33, 168)" i],
  [style^="color:#7e22ce" i],
  [style^="color: #7e22ce" i],
  [style*=";color:#7e22ce" i],
  [style*=";color: #7e22ce" i],
  [style*="; color:#7e22ce" i],
  [style*="; color: #7e22ce" i],
  [style^="color:rgb(126, 34, 206)" i],
  [style^="color: rgb(126, 34, 206)" i],
  [style*=";color:rgb(126, 34, 206)" i],
  [style*=";color: rgb(126, 34, 206)" i],
  [style*="; color:rgb(126, 34, 206)" i],
  [style*="; color: rgb(126, 34, 206)" i]
) { color: var(--accent-violet) !important; }

/* Inline borders */
html[data-theme="dark"] :is(
  [style*="solid #e2e8f0" i],
  [style*="dashed #e2e8f0" i],
  [style*="border-color:#e2e8f0" i],
  [style*="border-color: #e2e8f0" i],
  [style*="solid rgb(226, 232, 240)" i],
  [style*="dashed rgb(226, 232, 240)" i],
  [style*="border-color:rgb(226, 232, 240)" i],
  [style*="border-color: rgb(226, 232, 240)" i],
  [style*="solid #f1f5f9" i],
  [style*="dashed #f1f5f9" i],
  [style*="border-color:#f1f5f9" i],
  [style*="border-color: #f1f5f9" i],
  [style*="solid rgb(241, 245, 249)" i],
  [style*="dashed rgb(241, 245, 249)" i],
  [style*="border-color:rgb(241, 245, 249)" i],
  [style*="border-color: rgb(241, 245, 249)" i]
) { border-color: var(--border-color) !important; }

html[data-theme="dark"] :is(
  [style*="solid #cbd5e1" i],
  [style*="dashed #cbd5e1" i],
  [style*="border-color:#cbd5e1" i],
  [style*="border-color: #cbd5e1" i],
  [style*="solid rgb(203, 213, 225)" i],
  [style*="dashed rgb(203, 213, 225)" i],
  [style*="border-color:rgb(203, 213, 225)" i],
  [style*="border-color: rgb(203, 213, 225)" i]
) { border-color: var(--border-strong) !important; }

html[data-theme="dark"] :is(
  [style*="solid #fecaca" i],
  [style*="dashed #fecaca" i],
  [style*="border-color:#fecaca" i],
  [style*="border-color: #fecaca" i],
  [style*="solid rgb(254, 202, 202)" i],
  [style*="dashed rgb(254, 202, 202)" i],
  [style*="border-color:rgb(254, 202, 202)" i],
  [style*="border-color: rgb(254, 202, 202)" i],
  [style*="solid #fca5a5" i],
  [style*="dashed #fca5a5" i],
  [style*="border-color:#fca5a5" i],
  [style*="border-color: #fca5a5" i],
  [style*="solid rgb(252, 165, 165)" i],
  [style*="dashed rgb(252, 165, 165)" i],
  [style*="border-color:rgb(252, 165, 165)" i],
  [style*="border-color: rgb(252, 165, 165)" i],
  [style*="solid #f87171" i],
  [style*="dashed #f87171" i],
  [style*="border-color:#f87171" i],
  [style*="border-color: #f87171" i],
  [style*="solid rgb(248, 113, 113)" i],
  [style*="dashed rgb(248, 113, 113)" i],
  [style*="border-color:rgb(248, 113, 113)" i],
  [style*="border-color: rgb(248, 113, 113)" i],
  [style*="solid #fee2e2" i],
  [style*="dashed #fee2e2" i],
  [style*="border-color:#fee2e2" i],
  [style*="border-color: #fee2e2" i],
  [style*="solid rgb(254, 226, 226)" i],
  [style*="dashed rgb(254, 226, 226)" i],
  [style*="border-color:rgb(254, 226, 226)" i],
  [style*="border-color: rgb(254, 226, 226)" i]
) { border-color: var(--danger-border) !important; }

html[data-theme="dark"] :is(
  [style*="solid #fde68a" i],
  [style*="dashed #fde68a" i],
  [style*="border-color:#fde68a" i],
  [style*="border-color: #fde68a" i],
  [style*="solid rgb(253, 230, 138)" i],
  [style*="dashed rgb(253, 230, 138)" i],
  [style*="border-color:rgb(253, 230, 138)" i],
  [style*="border-color: rgb(253, 230, 138)" i],
  [style*="solid #fcd34d" i],
  [style*="dashed #fcd34d" i],
  [style*="border-color:#fcd34d" i],
  [style*="border-color: #fcd34d" i],
  [style*="solid rgb(252, 211, 77)" i],
  [style*="dashed rgb(252, 211, 77)" i],
  [style*="border-color:rgb(252, 211, 77)" i],
  [style*="border-color: rgb(252, 211, 77)" i],
  [style*="solid #fef3c7" i],
  [style*="dashed #fef3c7" i],
  [style*="border-color:#fef3c7" i],
  [style*="border-color: #fef3c7" i],
  [style*="solid rgb(254, 243, 199)" i],
  [style*="dashed rgb(254, 243, 199)" i],
  [style*="border-color:rgb(254, 243, 199)" i],
  [style*="border-color: rgb(254, 243, 199)" i]
) { border-color: var(--warning-border) !important; }

html[data-theme="dark"] :is(
  [style*="solid #a7f3d0" i],
  [style*="dashed #a7f3d0" i],
  [style*="border-color:#a7f3d0" i],
  [style*="border-color: #a7f3d0" i],
  [style*="solid rgb(167, 243, 208)" i],
  [style*="dashed rgb(167, 243, 208)" i],
  [style*="border-color:rgb(167, 243, 208)" i],
  [style*="border-color: rgb(167, 243, 208)" i],
  [style*="solid #bbf7d0" i],
  [style*="dashed #bbf7d0" i],
  [style*="border-color:#bbf7d0" i],
  [style*="border-color: #bbf7d0" i],
  [style*="solid rgb(187, 247, 208)" i],
  [style*="dashed rgb(187, 247, 208)" i],
  [style*="border-color:rgb(187, 247, 208)" i],
  [style*="border-color: rgb(187, 247, 208)" i],
  [style*="solid #86efac" i],
  [style*="dashed #86efac" i],
  [style*="border-color:#86efac" i],
  [style*="border-color: #86efac" i],
  [style*="solid rgb(134, 239, 172)" i],
  [style*="dashed rgb(134, 239, 172)" i],
  [style*="border-color:rgb(134, 239, 172)" i],
  [style*="border-color: rgb(134, 239, 172)" i],
  [style*="solid #6ee7b7" i],
  [style*="dashed #6ee7b7" i],
  [style*="border-color:#6ee7b7" i],
  [style*="border-color: #6ee7b7" i],
  [style*="solid rgb(110, 231, 183)" i],
  [style*="dashed rgb(110, 231, 183)" i],
  [style*="border-color:rgb(110, 231, 183)" i],
  [style*="border-color: rgb(110, 231, 183)" i],
  [style*="solid #ccfbf1" i],
  [style*="dashed #ccfbf1" i],
  [style*="border-color:#ccfbf1" i],
  [style*="border-color: #ccfbf1" i],
  [style*="solid rgb(204, 251, 241)" i],
  [style*="dashed rgb(204, 251, 241)" i],
  [style*="border-color:rgb(204, 251, 241)" i],
  [style*="border-color: rgb(204, 251, 241)" i],
  [style*="solid #84e1bc" i],
  [style*="dashed #84e1bc" i],
  [style*="border-color:#84e1bc" i],
  [style*="border-color: #84e1bc" i],
  [style*="solid rgb(132, 225, 188)" i],
  [style*="dashed rgb(132, 225, 188)" i],
  [style*="border-color:rgb(132, 225, 188)" i],
  [style*="border-color: rgb(132, 225, 188)" i]
) { border-color: var(--success-border) !important; }

html[data-theme="dark"] :is(
  [style*="solid #bfdbfe" i],
  [style*="dashed #bfdbfe" i],
  [style*="border-color:#bfdbfe" i],
  [style*="border-color: #bfdbfe" i],
  [style*="solid rgb(191, 219, 254)" i],
  [style*="dashed rgb(191, 219, 254)" i],
  [style*="border-color:rgb(191, 219, 254)" i],
  [style*="border-color: rgb(191, 219, 254)" i],
  [style*="solid #bae6fd" i],
  [style*="dashed #bae6fd" i],
  [style*="border-color:#bae6fd" i],
  [style*="border-color: #bae6fd" i],
  [style*="solid rgb(186, 230, 253)" i],
  [style*="dashed rgb(186, 230, 253)" i],
  [style*="border-color:rgb(186, 230, 253)" i],
  [style*="border-color: rgb(186, 230, 253)" i],
  [style*="solid #dbeafe" i],
  [style*="dashed #dbeafe" i],
  [style*="border-color:#dbeafe" i],
  [style*="border-color: #dbeafe" i],
  [style*="solid rgb(219, 234, 254)" i],
  [style*="dashed rgb(219, 234, 254)" i],
  [style*="border-color:rgb(219, 234, 254)" i],
  [style*="border-color: rgb(219, 234, 254)" i]
) { border-color: var(--info-border) !important; }

html[data-theme="dark"] :is(
  [style*="solid #c7d2fe" i],
  [style*="dashed #c7d2fe" i],
  [style*="border-color:#c7d2fe" i],
  [style*="border-color: #c7d2fe" i],
  [style*="solid rgb(199, 210, 254)" i],
  [style*="dashed rgb(199, 210, 254)" i],
  [style*="border-color:rgb(199, 210, 254)" i],
  [style*="border-color: rgb(199, 210, 254)" i],
  [style*="solid #ddd6fe" i],
  [style*="dashed #ddd6fe" i],
  [style*="border-color:#ddd6fe" i],
  [style*="border-color: #ddd6fe" i],
  [style*="solid rgb(221, 214, 254)" i],
  [style*="dashed rgb(221, 214, 254)" i],
  [style*="border-color:rgb(221, 214, 254)" i],
  [style*="border-color: rgb(221, 214, 254)" i],
  [style*="solid #ede9fe" i],
  [style*="dashed #ede9fe" i],
  [style*="border-color:#ede9fe" i],
  [style*="border-color: #ede9fe" i],
  [style*="solid rgb(237, 233, 254)" i],
  [style*="dashed rgb(237, 233, 254)" i],
  [style*="border-color:rgb(237, 233, 254)" i],
  [style*="border-color: rgb(237, 233, 254)" i],
  [style*="solid #e9d5ff" i],
  [style*="dashed #e9d5ff" i],
  [style*="border-color:#e9d5ff" i],
  [style*="border-color: #e9d5ff" i],
  [style*="solid rgb(233, 213, 255)" i],
  [style*="dashed rgb(233, 213, 255)" i],
  [style*="border-color:rgb(233, 213, 255)" i],
  [style*="border-color: rgb(233, 213, 255)" i],
  [style*="solid #e0e7ff" i],
  [style*="dashed #e0e7ff" i],
  [style*="border-color:#e0e7ff" i],
  [style*="border-color: #e0e7ff" i],
  [style*="solid rgb(224, 231, 255)" i],
  [style*="dashed rgb(224, 231, 255)" i],
  [style*="border-color:rgb(224, 231, 255)" i],
  [style*="border-color: rgb(224, 231, 255)" i]
) { border-color: var(--violet-border) !important; }

html[data-theme="dark"] :is(
  [style*="solid #ffffff" i],
  [style*="dashed #ffffff" i],
  [style*="border-color:#ffffff" i],
  [style*="border-color: #ffffff" i],
  [style*="solid rgb(255, 255, 255)" i],
  [style*="dashed rgb(255, 255, 255)" i],
  [style*="border-color:rgb(255, 255, 255)" i],
  [style*="border-color: rgb(255, 255, 255)" i]
) { border-color: var(--bg-card) !important; }

/* Inline light gradients (card headers, highlight boxes): the whole fill goes to a token.
   Matched by their first stop, in hex and in the rgb() spelling a script leaves behind. */
html[data-theme="dark"] :is(
  [style*="linear-gradient(90deg, #fdf8f0" i],
  [style*="linear-gradient(90deg, rgb(253, 248, 240)" i]
) { background: var(--bg-subtle) !important; }

html[data-theme="dark"] :is(
  [style*="linear-gradient(135deg, #f8fafc" i],
  [style*="linear-gradient(135deg, rgb(248, 250, 252)" i]
) { background: var(--info-bg) !important; }

html[data-theme="dark"] :is(
  [style*="linear-gradient(135deg, #f0fdf4" i],
  [style*="linear-gradient(135deg, rgb(240, 253, 244)" i]
) { background: var(--success-bg) !important; }

html[data-theme="dark"] :is(
  [style*="linear-gradient(135deg, #fffbeb" i],
  [style*="linear-gradient(135deg, rgb(255, 251, 235)" i]
) { background: var(--warning-bg) !important; }

/* Class-based backstops for the two places that matter most, in case an attribute match is missed */
html[data-theme="dark"] .lux-readonly-banner {
  background: var(--warning-bg) !important;
  border-color: var(--warning-border) !important;
}
html[data-theme="dark"] .card-header[style*="gradient"] { background: var(--bg-subtle) !important; }


/* ---- Wide atoms: dark twins of the hex atoms (generated from the remap above) ---- */
html[data-theme="dark"] .a-background-hex-dcfce7 { background-color: var(--success-bg) !important; }
html[data-theme="dark"] .a-background-hex-e2e8f0 { background-color: var(--border-color) !important; }
html[data-theme="dark"] .a-background-hex-ecfdf5 { background-color: var(--success-bg) !important; }
html[data-theme="dark"] .a-background-hex-ede9fe { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-eef2ff { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-eff6ff { background-color: var(--info-bg) !important; }
html[data-theme="dark"] .a-background-hex-f0fdf4 { background-color: var(--success-bg) !important; }
html[data-theme="dark"] .a-background-hex-f1f5f9 { background-color: var(--bg-muted) !important; }
html[data-theme="dark"] .a-background-hex-f8fafc { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fafafa { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fafbfd { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fee2e2 { background-color: var(--danger-bg) !important; }
html[data-theme="dark"] .a-background-hex-fef2f2 { background-color: var(--danger-bg) !important; }
html[data-theme="dark"] .a-background-hex-fef3c7 { background-color: var(--warning-bg) !important; }
html[data-theme="dark"] .a-background-hex-fffbeb { background-color: var(--warning-bg) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-bbf7d0 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-bfdbfe { border-color: var(--info-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-fca5a5 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-fcd34d { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-fde68a { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-fecaca { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-bottom-1px-solid-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-bottom-1px-solid-hex-f1f5f9 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-top-1px-dashed-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-top-1px-solid-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-color-hex-0284c7 { color: var(--accent-blue) !important; }
html[data-theme="dark"] .a-color-hex-047857 { color: var(--success-text) !important; }
html[data-theme="dark"] .a-color-hex-059669 { color: var(--accent-green) !important; }
html[data-theme="dark"] .a-color-hex-065f46 { color: var(--success-text) !important; }
html[data-theme="dark"] .a-color-hex-0f172a { color: var(--text-strong) !important; }
html[data-theme="dark"] .a-color-hex-10b981 { color: var(--accent-green) !important; }
html[data-theme="dark"] .a-color-hex-15803d { color: var(--success-text) !important; }
html[data-theme="dark"] .a-color-hex-166534 { color: var(--success-text) !important; }
html[data-theme="dark"] .a-color-hex-16a34a { color: var(--accent-green) !important; }
html[data-theme="dark"] .a-color-hex-1d4ed8 { color: var(--info-text) !important; }
html[data-theme="dark"] .a-color-hex-1e293b { color: var(--text-strong) !important; }
html[data-theme="dark"] .a-color-hex-1e40af { color: var(--info-text) !important; }
html[data-theme="dark"] .a-color-hex-2563eb { color: var(--accent-blue) !important; }
html[data-theme="dark"] .a-color-hex-334155 { color: var(--text-secondary) !important; }
html[data-theme="dark"] .a-color-hex-4338ca { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-475569 { color: var(--text-secondary) !important; }
html[data-theme="dark"] .a-color-hex-4f46e5 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-6d28d9 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-7c3aed { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-92400e { color: var(--warning-text) !important; }
html[data-theme="dark"] .a-color-hex-991b1b { color: var(--danger-text) !important; }
html[data-theme="dark"] .a-color-hex-b45309 { color: var(--warning-text) !important; }
html[data-theme="dark"] .a-color-hex-b91c1c { color: var(--danger-text) !important; }
html[data-theme="dark"] .a-color-hex-d97706 { color: var(--accent-amber) !important; }
html[data-theme="dark"] .a-color-hex-dc2626 { color: var(--accent-red) !important; }
html[data-theme="dark"] .a-color-hex-e11d48 { color: var(--accent-red) !important; }
html[data-theme="dark"] .a-color-hex-ef4444 { color: var(--accent-red) !important; }
/* ---- end wide atoms dark ---- */

/* ---- Last atoms: dark twins ---- */
html[data-theme="dark"] .a-background-hex-d1fae5 { background-color: var(--success-bg) !important; }
html[data-theme="dark"] .a-background-hex-dbeafe { background-color: var(--info-bg) !important; }
html[data-theme="dark"] .a-background-hex-e0e7ff { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-e0f2fe { background-color: var(--info-bg) !important; }
html[data-theme="dark"] .a-background-hex-f0f9ff { background-color: var(--info-bg) !important; }
html[data-theme="dark"] .a-background-hex-f0fdfa { background-color: var(--success-bg) !important; }
html[data-theme="dark"] .a-background-hex-f3e8ff { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-f5f3ff { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-faf5ff { background-color: var(--violet-bg) !important; }
html[data-theme="dark"] .a-background-hex-fafbfc { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fafcff { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fdfefe { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-fff1f2 { background-color: var(--danger-bg) !important; }
html[data-theme="dark"] .a-background-hex-fff7ed { background-color: var(--warning-bg) !important; }
html[data-theme="dark"] .a-background-hex-fffbf2 { background-color: var(--warning-bg) !important; }
html[data-theme="dark"] .a-background-hex-fffdf5 { background-color: var(--warning-bg) !important; }
html[data-theme="dark"] .a-background-hex-fffdf9 { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-background-hex-ffffff { background-color: var(--bg-card) !important; }
html[data-theme="dark"] .a-background-var-bg-body-hex-f8fafc { background-color: var(--bg-subtle) !important; }
html[data-theme="dark"] .a-border-1-5px-dashed-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-6ee7b7 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-86efac { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-ccfbf1 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-dbeafe { border-color: var(--info-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-ede9fe { border-color: var(--violet-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-f87171 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-fcd34d { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-fee2e2 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-1-5px-solid-hex-fef3c7 { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-border-1px-dashed-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-6ee7b7 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-86efac { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-a7f3d0 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-bae6fd { border-color: var(--info-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-c7d2fe { border-color: var(--violet-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-dbeafe { border-color: var(--info-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-e9d5ff { border-color: var(--violet-border) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-f1f5f9 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-1px-solid-hex-f87171 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-2px-dashed-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-bottom-1px-dashed-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-bottom-1px-solid-hex-fca5a5 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-color-hex-6ee7b7 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-color-hex-86efac { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-color-hex-a7f3d0 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-color-hex-bae6fd { border-color: var(--info-border) !important; }
html[data-theme="dark"] .a-border-color-hex-bbf7d0 { border-color: var(--success-border) !important; }
html[data-theme="dark"] .a-border-color-hex-c7d2fe { border-color: var(--violet-border) !important; }
html[data-theme="dark"] .a-border-color-hex-cbd5e1 { border-color: var(--border-strong) !important; }
html[data-theme="dark"] .a-border-color-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-color-hex-fca5a5 { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-color-hex-fde68a { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-border-color-hex-fecaca { border-color: var(--danger-border) !important; }
html[data-theme="dark"] .a-border-right-2px-solid-hex-e2e8f0 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-border-top-1px-solid-hex-f1f5f9 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-color-hex-0369a1 { color: var(--info-text) !important; }
html[data-theme="dark"] .a-color-hex-075985 { color: var(--info-text) !important; }
html[data-theme="dark"] .a-color-hex-0f766e { color: var(--success-text) !important; }
html[data-theme="dark"] .a-color-hex-1e3a8a { color: var(--info-text) !important; }
html[data-theme="dark"] .a-color-hex-2e7d32 { color: var(--accent-green) !important; }
html[data-theme="dark"] .a-color-hex-312e81 { color: var(--violet-text) !important; }
html[data-theme="dark"] .a-color-hex-3730a3 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-374151 { color: var(--text-secondary) !important; }
html[data-theme="dark"] .a-color-hex-3b82f6 { color: var(--accent-blue) !important; }
html[data-theme="dark"] .a-color-hex-4b5563 { color: var(--text-secondary) !important; }
html[data-theme="dark"] .a-color-hex-581c87 { color: var(--violet-text) !important; }
html[data-theme="dark"] .a-color-hex-6366f1 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-6b21a8 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-6b7280 { color: var(--text-muted) !important; }
html[data-theme="dark"] .a-color-hex-78350f { color: var(--warning-text) !important; }
html[data-theme="dark"] .a-color-hex-7e22ce { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-7f1d1d { color: var(--danger-text) !important; }
html[data-theme="dark"] .a-color-hex-8b5cf6 { color: var(--accent-violet) !important; }
html[data-theme="dark"] .a-color-hex-996515 { color: var(--warning-text) !important; }
html[data-theme="dark"] .a-color-hex-9a3412 { color: var(--warning-text) !important; }
html[data-theme="dark"] .a-color-hex-c05621 { color: var(--accent-amber) !important; }
html[data-theme="dark"] .a-color-hex-d32f2f { color: var(--accent-red) !important; }
html[data-theme="dark"] .a-color-hex-ea580c { color: var(--accent-amber) !important; }
html[data-theme="dark"] .a-color-var-lux-navy-hex-0f172a { color: var(--text-strong) !important; }
html[data-theme="dark"] .a-color-var-lux-navy-hex-0f2440 { color: var(--primary-dark) !important; }
html[data-theme="dark"] .a-color-var-text-color-hex-1e293b { color: var(--text-strong) !important; }
html[data-theme="dark"] .a-color-var-text-main-hex-0f2440 { color: var(--primary-dark) !important; }
/* ---- end last atoms dark ---- */

/* ---- Bundles: dark twins ---- */
html[data-theme="dark"] .a-b-1ec291e390 { border-color: var(--violet-border) !important; }
html[data-theme="dark"] .a-b-5d77693f39 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-b-701449207b { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-b-75c78796c3 { border-color: var(--border-color) !important; }
html[data-theme="dark"] .a-b-845024b491 { border-color: var(--bg-card) !important; }
html[data-theme="dark"] .a-b-8afaaaaa05 { border-color: var(--warning-border) !important; }
html[data-theme="dark"] .a-b-d84e0a80d7 { border-color: var(--border-color) !important; }
/* ---- end bundles dark ---- */

/* ---- Overridable atoms: dark twins ---- */
html[data-theme="dark"]:not(#o) .o-background-hex-fef2f2 { background-color: var(--danger-bg); }
html[data-theme="dark"]:not(#o) .o-color-hex-991b1b { color: var(--danger-text); }
html[data-theme="dark"]:not(#o) .o-color-hex-dc2626 { color: var(--accent-red); }
html[data-theme="dark"]:not(#o) .o-color-hex-ef4444 { color: var(--accent-red); }
/* ---- end overridable dark ---- */

/* Portal hero greeting: it uses --border-strong, a pale line colour in light mode but a dark one here (1.9:1 on the navy hero). */
html[data-theme="dark"] .portal-header p.a-color-var-border-strong { color: var(--text-secondary) !important; }
} /* @media screen */
