/* Native form controls follow the explicit site mode; new visits start light. */
html { color-scheme: light; }
html[data-mode="dark"] { color-scheme: dark; }

/* Shared admin palette. Light fallbacks in scoped components preserve day mode. */
html[data-mode="dark"] .admin-shell {
    color-scheme: dark;
    --admin-ui-surface: #111827;
    --admin-ui-surface-muted: #1e293b;
    --admin-ui-text: #fff;
    --admin-ui-text-secondary: #cbd5e1;
    --admin-ui-text-muted: #94a3b8;
    --admin-ui-border: #334155;
    --loya-surface: var(--admin-ui-surface);
    --loya-text: var(--admin-ui-text);
    --loya-muted: var(--admin-ui-text-secondary);
    --loya-border: var(--admin-ui-border);
    --token-surface: var(--admin-ui-surface);
    --token-surface-muted: var(--admin-ui-surface-muted);
    --token-surface-subtle: var(--admin-ui-surface-muted);
    --token-ink: var(--admin-ui-text);
    --token-ink-soft: var(--admin-ui-text-secondary);
    --token-border: var(--admin-ui-border);
    --token-border-strong: #475569;
}

/* Hover foreground and surface are a pair, including keyboard focus. */
.admin-shell {
    --admin-ui-hover-surface: #f1f5f9;
    --admin-ui-hover-text: #000;
}
html[data-mode="dark"] .admin-shell {
    --admin-ui-hover-surface: #1e293b;
    --admin-ui-hover-text: #fff;
}

/* Override the legacy light-blue cell hover and dark panel text together. */
html[data-mode] .admin-shell .admin-table tbody tr:is(:hover, :focus-within) > td {
    background: var(--admin-ui-hover-surface) !important;
    color: var(--admin-ui-hover-text) !important;
}
html[data-mode] .admin-shell .admin-table tbody tr:is(:hover, :focus-within) > td :is(strong, small, p) {
    color: var(--admin-ui-hover-text) !important;
}
/* Status badges and buttons retain their own foreground/background pairs. */
html[data-mode] .admin-shell .admin-table tbody tr:is(:hover, :focus-within) > td :is(button, .admin-status) :is(strong, small, p) {
    color: inherit !important;
}

html[data-mode] .admin-shell .admin-sidebar :is(.admin-side-link, .admin-side-sublink):not(.admin-side-disabled):is(:hover, :focus-visible) {
    background: var(--admin-ui-hover-surface) !important;
    color: var(--admin-ui-hover-text) !important;
}
html[data-mode] .admin-shell .admin-sidebar :is(.admin-side-link, .admin-side-sublink):not(.admin-side-disabled):is(:hover, :focus-visible) :is(.admin-side-icon, .admin-side-toggle-icon, .admin-side-link-text, strong) {
    color: var(--admin-ui-hover-text) !important;
    opacity: 1;
}

/* Interactive states: keep foreground and background paired. */
html[data-mode="dark"] .admin-shell {
    --admin-state-neutral-bg: #1e293b;
    --admin-state-neutral-fg: #fff;
    --admin-state-blue-bg: #172554;
    --admin-state-blue-fg: #dbeafe;
    --admin-state-green-bg: #052e16;
    --admin-state-green-fg: #bbf7d0;
    --admin-state-red-bg: #450a0a;
    --admin-state-red-fg: #fecaca;
    --admin-state-disabled-bg: #1e293b;
    --admin-state-disabled-fg: #94a3b8;
    --admin-state-orange-bg: #431407;
    --admin-state-orange-fg: #fed7aa;
}

html[data-mode="dark"] .admin-shell :is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page) { color-scheme:dark;--loya-surface:#111827;--loya-card:#111827;--loya-border:#334155;--loya-text:#f9fafb;--loya-muted:#cbd5e1;--admin-ui-surface:#111827;--admin-ui-surface-muted:#1e293b;--admin-ui-border:#334155;--admin-ui-text:#f9fafb;--admin-ui-text-secondary:#cbd5e1; }
html[data-mode="dark"] .admin-shell :is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page) :is(.admin-panel,.loya-saas-card,[role="dialog"]) { color:#f3f4f6!important;background:#111827!important;border-color:#334155!important; }

/* System settings: actual component surfaces, including nested dialogs. */
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-platform-settings-page,.loya-permission-page,.loya-system-notification-page,.loya-member-page,.loya-audit-center) {
    --loya-bg:#0b1120;--loya-card:#111827;--loya-surface:#111827;--loya-border:#334155;--loya-text:#fff;--loya-muted:#cbd5e1;--loya-blue:#93c5fd;--loya-blue-soft:#172554;color:#fff;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-preview-card,.loya-global-page-heading,.loya-toggle-row,.loya-permission-summary-card:not(.primary),.loya-permission-card,.loya-permission-row,.loya-permission-modal-sidebar-card,.loya-permission-group,.loya-permission-item,.loya-permission-empty,.loya-permission-chip-list,.loya-permission-modal-dialog,.loya-outbound-modal,.loya-outbound-config-card,.loya-member-position-block,.loya-member-position-modal,.loya-member-position-modal-main,.loya-member-position-modal-sidebar,.loya-system-notification-picker,.loya-picker-chip,.loya-audit-summary article,.loya-audit-debug-empty,.loya-audit-detail) {
    background:#111827!important;color:#f9fafb!important;border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-permission-position-meta div,.loya-permission-modal-metrics div,.loya-tab-strip,.loya-card-badge.subtle,.loya-system-notification-page thead,.loya-member-page thead,.loya-audit-center thead) {
    background:#1e293b!important;color:#e2e8f0!important;border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-outbound-modal-head,.loya-outbound-modal-actions,.loya-permission-modal-head,.loya-permission-editor-actions,.loya-member-position-modal-header,.loya-member-position-modal-footer) {
    background:#111827!important;color:#fff!important;border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) {
    background:#0f172a!important;color:#f9fafb!important;border-color:#475569!important;color-scheme:dark;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(input,textarea)::placeholder {
    color:#94a3b8!important;opacity:1;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(select option,select optgroup) {
    background:#0f172a;color:#fff;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-permission-page,.loya-system-notification-page,.loya-member-page,.loya-audit-center,.loya-platform-settings-page) :is(h1,h2,h3,h4,label,legend,dt,dd) {
    color:#f9fafb!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-secondary-button,.loya-permission-light-button,.loya-permission-inline-button,.loya-permission-mini-button:not(.is-active),.loya-tab-button,.loya-outbound-close) {
    background:#1e293b!important;color:#e2e8f0!important;border-color:#475569!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-secondary-button,.loya-permission-light-button,.loya-permission-inline-button,.loya-permission-mini-button:not(.is-active),.loya-tab-button):is(:hover,:focus-visible) {
    background:#334155!important;color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-picker-chip.is-selected,.loya-permission-row.is-active,.loya-system-notification-table tr.is-active,.loya-tab-button.active) {
    background:#172554!important;color:#dbeafe!important;border-color:#60a5fa!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-system-notification-table,.loya-audit-table,.loya-member-table) :is(th,td) {
    border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-system-notification-table,.loya-audit-table,.loya-member-table) tbody tr:is(:hover,:focus-within) > td {
    background:#1e293b!important;color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-settings-loading-overlay) {
    background:rgba(15,23,42,.78)!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.loya-department-page,.loya-audit-center,.loya-permission-page,.loya-system-notification-page,.loya-platform-settings-page,.user-admin-page)) :is(.loya-settings-loading-panel) {
    background:#1e293b!important;color:#fff!important;border-color:#475569!important;
}

/* Remaining menu-panel palette: light fallbacks retain the source colors. */
html[data-mode="dark"] .admin-shell {
    --admin-palette-bg-cfd8df: #1e293b;
    --admin-palette-bg-cfe1ff: #192943;
    --admin-palette-bg-d0d5dd: #1e293b;
    --admin-palette-bg-d1fae5: #19432d;
    --admin-palette-bg-d3dae5: #192943;
    --admin-palette-bg-d7e6ff: #192943;
    --admin-palette-bg-dbe4ea: #193243;
    --admin-palette-bg-dbeafe: #192b43;
    --admin-palette-bg-dce7f7: #192a43;
    --admin-palette-bg-dcfce7: #194327;
    --admin-palette-bg-dfe8f4: #192b43;
    --admin-palette-bg-dfe8f5: #192a43;
    --admin-palette-bg-dfe9de: #1e293b;
    --admin-palette-bg-e0f2fe: #193243;
    --admin-palette-bg-e1e9f4: #192b43;
    --admin-palette-bg-e2e8f0: #192b43;
    --admin-palette-bg-e2e8f6: #192643;
    --admin-palette-bg-e2efff: #192c43;
    --admin-palette-bg-e3eaf4: #192a43;
    --admin-palette-bg-e3eeff: #192943;
    --admin-palette-bg-e5e7eb: #1e293b;
    --admin-palette-bg-e5edf7: #192c43;
    --admin-palette-bg-e5edf8: #192b43;
    --admin-palette-bg-e5efff: #192943;
    --admin-palette-bg-e6faf2: #194332;
    --admin-palette-bg-e7efff: #192743;
    --admin-palette-bg-e7f0ff: #192943;
    --admin-palette-bg-e7f5c8: #364319;
    --admin-palette-bg-e7f5ff: #193143;
    --admin-palette-bg-e7f8ed: #194328;
    --admin-palette-bg-e8edf4: #192a43;
    --admin-palette-bg-e8eef5: #192c43;
    --admin-palette-bg-e8eef6: #192b43;
    --admin-palette-bg-e8eef7: #192a43;
    --admin-palette-bg-e8eef8: #192943;
    --admin-palette-bg-e8eefc: #192643;
    --admin-palette-bg-e8f0ef: #1e293b;
    --admin-palette-bg-e8f0fe: #192843;
    --admin-palette-bg-e8f0ff: #192843;
    --admin-palette-bg-e8f1ff: #192943;
    --admin-palette-bg-e8f4e9: #19431d;
    --admin-palette-bg-e8f6f1: #194334;
    --admin-palette-bg-e8f7ee: #19432a;
    --admin-palette-bg-e9edf3: #1e293b;
    --admin-palette-bg-e9eef5: #192a43;
    --admin-palette-bg-e9eef6: #192943;
    --admin-palette-bg-e9eefc: #192443;
    --admin-palette-bg-e9efff: #192543;
    --admin-palette-bg-e9f2ff: #192a43;
    --admin-palette-bg-e9faf3: #194332;
    --admin-palette-bg-eaf0f8: #192b43;
    --admin-palette-bg-eaf0ff: #192543;
    --admin-palette-bg-eaf1ff: #192743;
    --admin-palette-bg-eaf2ff: #192943;
    --admin-palette-bg-eaf8ea: #194319;
    --admin-palette-bg-ebf0ff: #192443;
    --admin-palette-bg-ebf2ff: #192843;
    --admin-palette-bg-ecf2ff: #192643;
    --admin-palette-bg-ecf3ff: #192843;
    --admin-palette-bg-ecf5ff: #192d43;
    --admin-palette-bg-ecfdf3: #19432a;
    --admin-palette-bg-ecfdf5: #19432f;
    --admin-palette-bg-ecfeff: #194043;
    --admin-palette-bg-ede9fe: #211943;
    --admin-palette-bg-edf1f6: #1e293b;
    --admin-palette-bg-edf2f7: #1e293b;
    --admin-palette-bg-edf2f8: #1e293b;
    --admin-palette-bg-edf3fa: #192c43;
    --admin-palette-bg-edf3fb: #192b43;
    --admin-palette-bg-edf3ff: #192743;
    --admin-palette-bg-edf4ef: #1e293b;
    --admin-palette-bg-edf4fb: #192e43;
    --admin-palette-bg-edf4ff: #192943;
    --admin-palette-bg-edf5ff: #192c43;
    --admin-palette-bg-edf6ef: #1e293b;
    --admin-palette-bg-edf6ff: #192e43;
    --admin-palette-bg-edf9ed: #194319;
    --admin-palette-bg-edf9f7: #19433c;
    --admin-palette-bg-edfafa: #194343;
    --admin-palette-bg-edfbf5: #194331;
    --admin-palette-bg-edfdf3: #194329;
    --admin-palette-bg-eef0ff: #191e43;
    --admin-palette-bg-eef1ef: #1e293b;
    --admin-palette-bg-eef1f5: #1e293b;
    --admin-palette-bg-eef2f4: #1e293b;
    --admin-palette-bg-eef2f7: #1e293b;
    --admin-palette-bg-eef2ff: #192343;
    --admin-palette-bg-eef3f8: #1e293b;
    --admin-palette-bg-eef3fb: #192943;
    --admin-palette-bg-eef4ee: #1e293b;
    --admin-palette-bg-eef4fb: #192c43;
    --admin-palette-bg-eef4ff: #192843;
    --admin-palette-bg-eef5fd: #192d43;
    --admin-palette-bg-eef5ff: #192a43;
    --admin-palette-bg-eef6ff: #192d43;
    --admin-palette-bg-eef7f4: #1e293b;
    --admin-palette-bg-eef7ff: #192f43;
    --admin-palette-bg-eef8f5: #1e293b;
    --admin-palette-bg-eef8f6: #1e293b;
    --admin-palette-bg-eef9f5: #1e293b;
    --admin-palette-bg-eefdfa: #19433a;
    --admin-palette-bg-eff5ff: #192943;
    --admin-palette-bg-eff6ff: #192b43;
    --admin-palette-bg-eff8ff: #193043;
    --admin-palette-bg-effcf8: #194336;
    --admin-palette-bg-f0f0f0: #1e293b;
    --admin-palette-bg-f0f0f1: #1e293b;
    --admin-palette-bg-f0f3ff: #192243;
    --admin-palette-bg-f0f8f3: #1e293b;
    --admin-palette-bg-f0f9ff: #193243;
    --admin-palette-bg-f0fdf4: #194326;
    --admin-palette-bg-f0fdfa: #194339;
    --admin-palette-bg-f0fff4: #194324;
    --admin-palette-bg-f1ecff: #241943;
    --admin-palette-bg-f1f3f9: #1e293b;
    --admin-palette-bg-f1f5f9: #1e293b;
    --admin-palette-bg-f1f5fb: #1e293b;
    --admin-palette-bg-f1f5ff: #192543;
    --admin-palette-bg-f1f6ff: #192843;
    --admin-palette-bg-f2f4f7: #1e293b;
    --admin-palette-bg-f2f5fa: #1e293b;
    --admin-palette-bg-f2f6fb: #1e293b;
    --admin-palette-bg-f2f7ff: #192943;
    --admin-palette-bg-f2f8f2: #1e293b;
    --admin-palette-bg-f2fbf8: #1e293b;
    --admin-palette-bg-f2fcfb: #1e293b;
    --admin-palette-bg-f3d5d5: #431919;
    --admin-palette-bg-f3f0ff: #221943;
    --admin-palette-bg-f3f4f6: #1e293b;
    --admin-palette-bg-f3f5f8: #1e293b;
    --admin-palette-bg-f3f5fb: #1e293b;
    --admin-palette-bg-f3f6fb: #1e293b;
    --admin-palette-bg-f3f7fb: #1e293b;
    --admin-palette-bg-f3f7fd: #111827;
    --admin-palette-bg-f3f7ff: #192743;
    --admin-palette-bg-f3f8f3: #1e293b;
    --admin-palette-bg-f3f8ff: #192a43;
    --admin-palette-bg-f4f4f5: #1e293b;
    --admin-palette-bg-f4f6f9: #1e293b;
    --admin-palette-bg-f4f6fa: #1e293b;
    --admin-palette-bg-f4f6ff: #111827;
    --admin-palette-bg-f4f7fb: #111827;
    --admin-palette-bg-f4f7fc: #111827;
    --admin-palette-bg-f4f7ff: #111827;
    --admin-palette-bg-f4f8fd: #111827;
    --admin-palette-bg-f4f8ff: #111827;
    --admin-palette-bg-f4f9ff: #111827;
    --admin-palette-bg-f4faf6: #1e293b;
    --admin-palette-bg-f4fbf6: #111827;
    --admin-palette-bg-f4fff7: #111827;
    --admin-palette-bg-f5f3ff: #201943;
    --admin-palette-bg-f5f5f5: #1e293b;
    --admin-palette-bg-f5f7fa: #111827;
    --admin-palette-bg-f5f7fb: #111827;
    --admin-palette-bg-f5f7ff: #111827;
    --admin-palette-bg-f5f8fc: #111827;
    --admin-palette-bg-f5f8fe: #111827;
    --admin-palette-bg-f5f9ff: #111827;
    --admin-palette-bg-f6f5ff: #111827;
    --admin-palette-bg-f6f7f9: #111827;
    --admin-palette-bg-f6f7fb: #111827;
    --admin-palette-bg-f6f9fc: #111827;
    --admin-palette-bg-f6f9fe: #111827;
    --admin-palette-bg-f6f9ff: #111827;
    --admin-palette-bg-f6faff: #111827;
    --admin-palette-bg-f6fbff: #111827;
    --admin-palette-bg-f6fff9: #111827;
    --admin-palette-bg-f7f2e8: #433519;
    --admin-palette-bg-f7f7f8: #111827;
    --admin-palette-bg-f7f8fa: #111827;
    --admin-palette-bg-f7f8fb: #111827;
    --admin-palette-bg-f7f8fc: #111827;
    --admin-palette-bg-f7f9fc: #111827;
    --admin-palette-bg-f7f9fd: #111827;
    --admin-palette-bg-f7faf8: #111827;
    --admin-palette-bg-f7fafc: #111827;
    --admin-palette-bg-f7faff: #111827;
    --admin-palette-bg-f7fbff: #111827;
    --admin-palette-bg-f7fffb: #111827;
    --admin-palette-bg-f8f8ff: #111827;
    --admin-palette-bg-f8f9fb: #111827;
    --admin-palette-bg-f8fafc: #111827;
    --admin-palette-bg-f8fafe: #111827;
    --admin-palette-bg-f8faff: #111827;
    --admin-palette-bg-f8fbe8: #3c4319;
    --admin-palette-bg-f8fbfd: #111827;
    --admin-palette-bg-f8fbff: #111827;
    --admin-palette-bg-f8fcfb: #111827;
    --admin-palette-bg-f8fff8: #111827;
    --admin-palette-bg-f8fff9: #111827;
    --admin-palette-bg-f9f9ff: #111827;
    --admin-palette-bg-f9fbff: #111827;
    --admin-palette-bg-faf7ff: #111827;
    --admin-palette-bg-faf8ff: #111827;
    --admin-palette-bg-fafafb: #111827;
    --admin-palette-bg-fafbfc: #111827;
    --admin-palette-bg-fafbff: #111827;
    --admin-palette-bg-fafcff: #111827;
    --admin-palette-bg-fbf8ff: #111827;
    --admin-palette-bg-fbfcfd: #111827;
    --admin-palette-bg-fbfcfe: #111827;
    --admin-palette-bg-fbfcff: #111827;
    --admin-palette-bg-fbfdff: #111827;
    --admin-palette-bg-fbfefb: #111827;
    --admin-palette-bg-fbfffc: #111827;
    --admin-palette-bg-fcfdff: #111827;
    --admin-palette-bg-fdfdff: #111827;
    --admin-palette-bg-fee2e2: #431919;
    --admin-palette-bg-fee4e2: #431c19;
    --admin-palette-bg-feeceb: #431b19;
    --admin-palette-bg-feecec: #431919;
    --admin-palette-bg-fef2f2: #431919;
    --admin-palette-bg-fef3c7: #433a19;
    --admin-palette-bg-fef3f2: #431d19;
    --admin-palette-bg-fefce8: #433f19;
    --admin-palette-bg-fefefe: #111827;
    --admin-palette-bg-ffe4e6: #43191c;
    --admin-palette-bg-ffedd5: #433119;
    --admin-palette-bg-fff: #111827;
    --admin-palette-bg-fff0f4: #431924;
    --admin-palette-bg-fff1f0: #431c19;
    --admin-palette-bg-fff1f1: #431919;
    --admin-palette-bg-fff1f2: #43191c;
    --admin-palette-bg-fff1f3: #43191f;
    --admin-palette-bg-fff2e9: #432a19;
    --admin-palette-bg-fff3cd: #433919;
    --admin-palette-bg-fff4d6: #433719;
    --admin-palette-bg-fff4e5: #433119;
    --admin-palette-bg-fff4f2: #432019;
    --admin-palette-bg-fff5ec: #432d19;
    --admin-palette-bg-fff5f5: #111827;
    --admin-palette-bg-fff6f5: #111827;
    --admin-palette-bg-fff6f6: #111827;
    --admin-palette-bg-fff7d6: #433a19;
    --admin-palette-bg-fff7df: #433819;
    --admin-palette-bg-fff7e6: #433519;
    --admin-palette-bg-fff7e8: #433419;
    --admin-palette-bg-fff7ed: #433019;
    --admin-palette-bg-fff7f7: #111827;
    --admin-palette-bg-fff7fb: #111827;
    --admin-palette-bg-fff8c5: #433e19;
    --admin-palette-bg-fff8e1: #433919;
    --admin-palette-bg-fff8e5: #433719;
    --admin-palette-bg-fff8e7: #433719;
    --admin-palette-bg-fff8e8: #433619;
    --admin-palette-bg-fff8ef: #433019;
    --admin-palette-bg-fff8f7: #111827;
    --admin-palette-bg-fff8f8: #111827;
    --admin-palette-bg-fff9e6: #433919;
    --admin-palette-bg-fff9ec: #433619;
    --admin-palette-bg-fff9f1: #433119;
    --admin-palette-bg-fff9f9: #111827;
    --admin-palette-bg-fffaeb: #433819;
    --admin-palette-bg-fffaf0: #433519;
    --admin-palette-bg-fffaf9: #111827;
    --admin-palette-bg-fffafb: #111827;
    --admin-palette-bg-fffbeb: #433a19;
    --admin-palette-bg-fffdf7: #111827;
    --admin-palette-bg-fffefb: #111827;
    --admin-palette-bg-ffffff: #111827;
    --admin-palette-bg-rgba20925022996: rgba(25,67,45,.96);
    --admin-palette-bg-rgba219234254096: rgba(25,43,67,0.96);
    --admin-palette-bg-rgba21923425488: rgba(25,43,67,.88);
    --admin-palette-bg-rgba21923425496: rgba(25,43,67,.96);
    --admin-palette-bg-rgba22025223182: rgba(25,67,39,.82);
    --admin-palette-bg-rgba226232240072: rgba(25,43,67,0.72);
    --admin-palette-bg-rgba226232240088: rgba(25,43,67,0.88);
    --admin-palette-bg-rgba22623224055: rgba(25,43,67,.55);
    --admin-palette-bg-rgba22623224088: rgba(25,43,67,.88);
    --admin-palette-bg-rgba22924025594: rgba(25,43,67,.94);
    --admin-palette-bg-rgba23523925595: rgba(25,34,67,.95);
    --admin-palette-bg-rgba23524125078: rgba(25,42,67,.78);
    --admin-palette-bg-rgba23724923778: rgba(25,67,25,.78);
    --admin-palette-bg-rgba23824125588: rgba(25,33,67,.88);
    --admin-palette-bg-rgba23924625592: rgba(25,43,67,.92);
    --admin-palette-bg-rgba23924625596: rgba(25,43,67,.96);
    --admin-palette-bg-rgba23924625598: rgba(25,43,67,.98);
    --admin-palette-bg-rgba24024324796: rgba(30,41,59,.96);
    --admin-palette-bg-rgba24024725599: rgba(25,45,67,.99);
    --admin-palette-bg-rgba24124524978: rgba(30,41,59,.78);
    --admin-palette-bg-rgba24124524984: rgba(30,41,59,.84);
    --admin-palette-bg-rgba2412452499: rgba(30,41,59,.9);
    --admin-palette-bg-rgba24124524998: rgba(30,41,59,.98);
    --admin-palette-bg-rgba24124625196: rgba(30,41,59,.96);
    --admin-palette-bg-rgba24524725092: rgba(17,24,39,.92);
    --admin-palette-bg-rgba24524825294: rgba(17,24,39,.94);
    --admin-palette-bg-rgba24524825592: rgba(17,24,39,.92);
    --admin-palette-bg-rgba24624724988: rgba(17,24,39,.88);
    --admin-palette-bg-rgba24624725182: rgba(17,24,39,.82);
    --admin-palette-bg-rgba24624725188: rgba(17,24,39,.88);
    --admin-palette-bg-rgba24624725192: rgba(17,24,39,.92);
    --admin-palette-bg-rgba24624825196: rgba(17,24,39,.96);
    --admin-palette-bg-rgba24724925582: rgba(17,24,39,.82);
    --admin-palette-bg-rgba24725025596: rgba(17,24,39,.96);
    --admin-palette-bg-rgba248250252082: rgba(17,24,39,0.82);
    --admin-palette-bg-rgba24825025209: rgba(17,24,39,0.9);
    --admin-palette-bg-rgba248250252092: rgba(17,24,39,0.92);
    --admin-palette-bg-rgba248250252095: rgba(17,24,39,0.95);
    --admin-palette-bg-rgba248250252096: rgba(17,24,39,0.96);
    --admin-palette-bg-rgba24825025282: rgba(17,24,39,.82);
    --admin-palette-bg-rgba2482502529: rgba(17,24,39,.9);
    --admin-palette-bg-rgba24825025292: rgba(17,24,39,.92);
    --admin-palette-bg-rgba24825025294: rgba(17,24,39,.94);
    --admin-palette-bg-rgba24825025296: rgba(17,24,39,.96);
    --admin-palette-bg-rgba24825025298: rgba(17,24,39,.98);
    --admin-palette-bg-rgba24825125592: rgba(17,24,39,.92);
    --admin-palette-bg-rgba24925025296: rgba(17,24,39,.96);
    --admin-palette-bg-rgba25422622696: rgba(67,25,25,.96);
    --admin-palette-bg-rgba25422822696: rgba(67,28,25,.96);
    --admin-palette-bg-rgba25424224292: rgba(67,25,25,.92);
    --admin-palette-bg-rgba2542432429: rgba(67,29,25,.9);
    --admin-palette-bg-rgba25523621095: rgba(67,49,25,.95);
    --admin-palette-bg-rgba25524521995: rgba(67,55,25,.95);
    --admin-palette-bg-rgba25524721472: rgba(67,58,25,.72);
    --admin-palette-bg-rgba25524723782: rgba(67,48,25,.82);
    --admin-palette-bg-rgba25524723792: rgba(67,48,25,.92);
    --admin-palette-bg-rgba25524723799: rgba(67,48,25,.99);
    --admin-palette-bg-rgba25525123596: rgba(67,58,25,.96);
    --admin-palette-bg-rgba2552552550: rgba(17,24,39,0);
    --admin-palette-bg-rgba255255255012: rgba(17,24,39,0.12);
    --admin-palette-bg-rgba255255255014: rgba(17,24,39,0.14);
    --admin-palette-bg-rgba255255255018: rgba(17,24,39,0.18);
    --admin-palette-bg-rgba255255255055: rgba(17,24,39,0.55);
    --admin-palette-bg-rgba255255255058: rgba(17,24,39,0.58);
    --admin-palette-bg-rgba255255255065: rgba(17,24,39,0.65);
    --admin-palette-bg-rgba255255255075: rgba(17,24,39,0.75);
    --admin-palette-bg-rgba255255255088: rgba(17,24,39,0.88);
    --admin-palette-bg-rgba25525525509: rgba(17,24,39,0.9);
    --admin-palette-bg-rgba255255255092: rgba(17,24,39,0.92);
    --admin-palette-bg-rgba255255255096: rgba(17,24,39,0.96);
    --admin-palette-bg-rgba255255255098: rgba(17,24,39,0.98);
    --admin-palette-bg-rgba2552552551: rgba(17,24,39,1);
    --admin-palette-bg-rgba25525525510: rgba(17,24,39,.10);
    --admin-palette-bg-rgba25525525512: rgba(17,24,39,.12);
    --admin-palette-bg-rgba25525525514: rgba(17,24,39,.14);
    --admin-palette-bg-rgba25525525516: rgba(17,24,39,.16);
    --admin-palette-bg-rgba25525525518: rgba(17,24,39,.18);
    --admin-palette-bg-rgba25525525558: rgba(17,24,39,.58);
    --admin-palette-bg-rgba25525525568: rgba(17,24,39,.68);
    --admin-palette-bg-rgba2552552557: rgba(17,24,39,.7);
    --admin-palette-bg-rgba25525525572: rgba(17,24,39,.72);
    --admin-palette-bg-rgba25525525574: rgba(17,24,39,.74);
    --admin-palette-bg-rgba25525525576: rgba(17,24,39,.76);
    --admin-palette-bg-rgba25525525578: rgba(17,24,39,.78);
    --admin-palette-bg-rgba2552552558: rgba(17,24,39,.8);
    --admin-palette-bg-rgba25525525584: rgba(17,24,39,.84);
    --admin-palette-bg-rgba25525525586: rgba(17,24,39,.86);
    --admin-palette-bg-rgba25525525588: rgba(17,24,39,.88);
    --admin-palette-bg-rgba2552552559: rgba(17,24,39,.9);
    --admin-palette-bg-rgba25525525592: rgba(17,24,39,.92);
    --admin-palette-bg-rgba25525525594: rgba(17,24,39,.94);
    --admin-palette-bg-rgba25525525595: rgba(17,24,39,.95);
    --admin-palette-bg-rgba25525525596: rgba(17,24,39,.96);
    --admin-palette-bg-rgba25525525597: rgba(17,24,39,.97);
    --admin-palette-bg-rgba25525525598: rgba(17,24,39,.98);
    --admin-palette-border-78a4ff: #334155;
    --admin-palette-border-7aa2ff: #334155;
    --admin-palette-border-7aa7ff: #334155;
    --admin-palette-border-7ca3f6: #334155;
    --admin-palette-border-7fa8f3: #334155;
    --admin-palette-border-84caff: #334155;
    --admin-palette-border-86efac: #334155;
    --admin-palette-border-8bb4ff: #334155;
    --admin-palette-border-8fb3ff: #334155;
    --admin-palette-border-8fb8ff: #334155;
    --admin-palette-border-93c5fd: #334155;
    --admin-palette-border-94b8ff: #334155;
    --admin-palette-border-99d9d3: #334155;
    --admin-palette-border-99f6e4: #334155;
    --admin-palette-border-9bb8f3: #334155;
    --admin-palette-border-9bbdf4: #334155;
    --admin-palette-border-9bdad4: #334155;
    --admin-palette-border-9db8d8: #334155;
    --admin-palette-border-9eb7df: #334155;
    --admin-palette-border-9edbd2: #334155;
    --admin-palette-border-a5b4fc: #334155;
    --admin-palette-border-a7f3d0: #334155;
    --admin-palette-border-abefc6: #334155;
    --admin-palette-border-aeb9c9: #334155;
    --admin-palette-border-b2ddff: #334155;
    --admin-palette-border-b7c0d2: #334155;
    --admin-palette-border-b7c2d2: #334155;
    --admin-palette-border-b7c7da: #334155;
    --admin-palette-border-b7ded9: #334155;
    --admin-palette-border-b7dfc5: #334155;
    --admin-palette-border-b8b8b8: #334155;
    --admin-palette-border-b8c2cf: #334155;
    --admin-palette-border-b8c6cf: #334155;
    --admin-palette-border-b8c6d9: #334155;
    --admin-palette-border-b9c5d6: #334155;
    --admin-palette-border-b9c8df: #334155;
    --admin-palette-border-b9cdf0: #334155;
    --admin-palette-border-b9d3ef: #334155;
    --admin-palette-border-b9d9d4: #334155;
    --admin-palette-border-b9e4df: #334155;
    --admin-palette-border-b9e8c7: #334155;
    --admin-palette-border-bbf7d0: #334155;
    --admin-palette-border-bcd3ff: #334155;
    --admin-palette-border-bce3bd: #334155;
    --admin-palette-border-bdd0ea: #334155;
    --admin-palette-border-bfd0ea: #334155;
    --admin-palette-border-bfd3f5: #334155;
    --admin-palette-border-bfd4f7: #334155;
    --admin-palette-border-bfd5ff: #334155;
    --admin-palette-border-bfd7ff: #334155;
    --admin-palette-border-bfdbfe: #334155;
    --admin-palette-border-c1cde0: #334155;
    --admin-palette-border-c4cedd: #334155;
    --admin-palette-border-c5ced9: #334155;
    --admin-palette-border-c6d1df: #334155;
    --admin-palette-border-c6f6d5: #334155;
    --admin-palette-border-c7d2fe: #334155;
    --admin-palette-border-c7d4e4: #334155;
    --admin-palette-border-c7e0d0: #334155;
    --admin-palette-border-c8cede: #334155;
    --admin-palette-border-c9d4e2: #334155;
    --admin-palette-border-c9d7c5: #334155;
    --admin-palette-border-c9d9ea: #334155;
    --admin-palette-border-c9d9f3: #334155;
    --admin-palette-border-cad6e6: #334155;
    --admin-palette-border-caefd8: #334155;
    --admin-palette-border-cbd5e0: #334155;
    --admin-palette-border-cbd5e1: #334155;
    --admin-palette-border-cbd8e5: #334155;
    --admin-palette-border-cbd8ea: #334155;
    --admin-palette-border-cbd8f5: #334155;
    --admin-palette-border-ccd4df: #334155;
    --admin-palette-border-cdd6eb: #334155;
    --admin-palette-border-cdd8e8: #334155;
    --admin-palette-border-cfd6df: #334155;
    --admin-palette-border-cfd8df: #334155;
    --admin-palette-border-cfd8e3: #334155;
    --admin-palette-border-cfd8e5: #334155;
    --admin-palette-border-cfd8e6: #334155;
    --admin-palette-border-cfd8e8: #334155;
    --admin-palette-border-cfd9e7: #334155;
    --admin-palette-border-cfd9ea: #334155;
    --admin-palette-border-cfe0d5: #334155;
    --admin-palette-border-cfe0f6: #334155;
    --admin-palette-border-cfe0fb: #334155;
    --admin-palette-border-cfe0ff: #334155;
    --admin-palette-border-d0d5dd: #334155;
    --admin-palette-border-d0d7de: #334155;
    --admin-palette-border-d0dbd4: #334155;
    --admin-palette-border-d1d5db: #334155;
    --admin-palette-border-d3deec: #334155;
    --admin-palette-border-d3e5d9: #334155;
    --admin-palette-border-d4d9e1: #334155;
    --admin-palette-border-d4dae2: #334155;
    --admin-palette-border-d4ddeb: #334155;
    --admin-palette-border-d4ddef: #334155;
    --admin-palette-border-d4def5: #334155;
    --admin-palette-border-d5dce8: #334155;
    --admin-palette-border-d5dde8: #334155;
    --admin-palette-border-d5e2fa: #334155;
    --admin-palette-border-d6c9ba: #334155;
    --admin-palette-border-d6dce8: #334155;
    --admin-palette-border-d6dde1: #334155;
    --admin-palette-border-d6deea: #334155;
    --admin-palette-border-d6e0ec: #334155;
    --admin-palette-border-d6e0ee: #334155;
    --admin-palette-border-d6e1f1: #334155;
    --admin-palette-border-d6e4fb: #334155;
    --admin-palette-border-d6e4ff: #334155;
    --admin-palette-border-d7dae3: #334155;
    --admin-palette-border-d7dde6: #334155;
    --admin-palette-border-d7ddea: #334155;
    --admin-palette-border-d7dee8: #334155;
    --admin-palette-border-d7dee9: #334155;
    --admin-palette-border-d7e0eb: #334155;
    --admin-palette-border-d7e0f4: #334155;
    --admin-palette-border-d7e3f2: #334155;
    --admin-palette-border-d7e3f4: #334155;
    --admin-palette-border-d7e3f7: #334155;
    --admin-palette-border-d7e6ff: #334155;
    --admin-palette-border-d8ddd4: #334155;
    --admin-palette-border-d8dde8: #334155;
    --admin-palette-border-d8dee7: #334155;
    --admin-palette-border-d8e0eb: #334155;
    --admin-palette-border-d8e1ec: #334155;
    --admin-palette-border-d8e2ec: #334155;
    --admin-palette-border-d8e4ff: #334155;
    --admin-palette-border-d8e5f6: #334155;
    --admin-palette-border-d8e6fb: #334155;
    --admin-palette-border-d8eaff: #334155;
    --admin-palette-border-d9d9d9: #334155;
    --admin-palette-border-d9dde7: #334155;
    --admin-palette-border-d9dfeb: #334155;
    --admin-palette-border-d9e0e8: #334155;
    --admin-palette-border-d9e1ec: #334155;
    --admin-palette-border-d9e2ec: #334155;
    --admin-palette-border-d9e2ee: #334155;
    --admin-palette-border-d9e2ef: #334155;
    --admin-palette-border-d9e2f0: #334155;
    --admin-palette-border-d9e3ef: #334155;
    --admin-palette-border-d9e4f0: #334155;
    --admin-palette-border-d9e5f2: #334155;
    --admin-palette-border-d9e6fb: #334155;
    --admin-palette-border-d9e7fb: #334155;
    --admin-palette-border-dae5ff: #334155;
    --admin-palette-border-dbe1ea: #334155;
    --admin-palette-border-dbe2ea: #334155;
    --admin-palette-border-dbe3ee: #334155;
    --admin-palette-border-dbe3ef: #334155;
    --admin-palette-border-dbe3f5: #334155;
    --admin-palette-border-dbe4ea: #334155;
    --admin-palette-border-dbe4ef: #334155;
    --admin-palette-border-dbe4f1: #334155;
    --admin-palette-border-dbe4f3: #334155;
    --admin-palette-border-dbe5ef: #334155;
    --admin-palette-border-dbe5f4: #334155;
    --admin-palette-border-dbe6f3: #334155;
    --admin-palette-border-dbe6ff: #334155;
    --admin-palette-border-dbe7f5: #334155;
    --admin-palette-border-dbe7f6: #334155;
    --admin-palette-border-dbe7f7: #334155;
    --admin-palette-border-dbe7ff: #334155;
    --admin-palette-border-dbe8fb: #334155;
    --admin-palette-border-dbeafe: #334155;
    --admin-palette-border-dcdfe6: #334155;
    --admin-palette-border-dce3ef: #334155;
    --admin-palette-border-dce4f2: #334155;
    --admin-palette-border-dce6f4: #334155;
    --admin-palette-border-dce7fb: #334155;
    --admin-palette-border-dce8fb: #334155;
    --admin-palette-border-dcecff: #334155;
    --admin-palette-border-ddd2ff: #334155;
    --admin-palette-border-ddd6ff: #334155;
    --admin-palette-border-dde4ee: #334155;
    --admin-palette-border-dde6f0: #334155;
    --admin-palette-border-dde6f2: #334155;
    --admin-palette-border-dde6f3: #334155;
    --admin-palette-border-dfe5e7: #334155;
    --admin-palette-border-dfe5ec: #334155;
    --admin-palette-border-dfe5ee: #334155;
    --admin-palette-border-dfe6f0: #334155;
    --admin-palette-border-dfe7ef: #334155;
    --admin-palette-border-dfe7f0: #334155;
    --admin-palette-border-dfe7f1: #334155;
    --admin-palette-border-dfe7f2: #334155;
    --admin-palette-border-dfe7f3: #334155;
    --admin-palette-border-dfe8f0: #334155;
    --admin-palette-border-e0e7f4: #334155;
    --admin-palette-border-e0e8f4: #334155;
    --admin-palette-border-e1e7f0: #334155;
    --admin-palette-border-e1e7f3: #334155;
    --admin-palette-border-e1e8f2: #334155;
    --admin-palette-border-e1eaf1: #334155;
    --admin-palette-border-e2dbff: #334155;
    --admin-palette-border-e2e8f0: #334155;
    --admin-palette-border-e2ebe5: #334155;
    --admin-palette-border-e3e8ef: #334155;
    --admin-palette-border-e3e8f2: #334155;
    --admin-palette-border-e3f0eb: #334155;
    --admin-palette-border-e3f4f0: #334155;
    --admin-palette-border-e4dcff: #334155;
    --admin-palette-border-e4e7ec: #334155;
    --admin-palette-border-e4e8f0: #334155;
    --admin-palette-border-e4eaf3: #334155;
    --admin-palette-border-e4ebf3: #334155;
    --admin-palette-border-e4ebf5: #334155;
    --admin-palette-border-e4ebf6: #334155;
    --admin-palette-border-e5e7eb: #334155;
    --admin-palette-border-e5eaf0: #334155;
    --admin-palette-border-e5eaf2: #334155;
    --admin-palette-border-e5eaf3: #334155;
    --admin-palette-border-e5ebf5: #334155;
    --admin-palette-border-e5ecf7: #334155;
    --admin-palette-border-e5f1ed: #334155;
    --admin-palette-border-e6e8ef: #334155;
    --admin-palette-border-e6eaf1: #334155;
    --admin-palette-border-e6ebf2: #334155;
    --admin-palette-border-e6ebf3: #334155;
    --admin-palette-border-e6ecf7: #334155;
    --admin-palette-border-e6edf5: #334155;
    --admin-palette-border-e6edf8: #334155;
    --admin-palette-border-e7e0d1: #334155;
    --admin-palette-border-e7ecf4: #334155;
    --admin-palette-border-e7ecf7: #334155;
    --admin-palette-border-e7edf4: #334155;
    --admin-palette-border-e7edf5: #334155;
    --admin-palette-border-e7edf6: #334155;
    --admin-palette-border-e8eef6: #334155;
    --admin-palette-border-e8eef7: #334155;
    --admin-palette-border-e9eef4: #334155;
    --admin-palette-border-e9eef5: #334155;
    --admin-palette-border-eaecf0: #334155;
    --admin-palette-border-eaf0f7: #334155;
    --admin-palette-border-ebf2ef: #334155;
    --admin-palette-border-eceff3: #334155;
    --admin-palette-border-edf0f3: #334155;
    --admin-palette-border-edf1f5: #334155;
    --admin-palette-border-edf1f6: #334155;
    --admin-palette-border-edf1f7: #334155;
    --admin-palette-border-edf2f7: #334155;
    --admin-palette-border-edf2f8: #334155;
    --admin-palette-border-eee: #334155;
    --admin-palette-border-eef2f4: #334155;
    --admin-palette-border-eef2f5: #334155;
    --admin-palette-border-eef2f6: #334155;
    --admin-palette-border-eef2f7: #334155;
    --admin-palette-border-efb7b0: #334155;
    --admin-palette-border-f0b7b1: #334155;
    --admin-palette-border-f0d8a8: #334155;
    --admin-palette-border-f0f3f8: #334155;
    --admin-palette-border-f1d29d: #334155;
    --admin-palette-border-f1f4f9: #334155;
    --admin-palette-border-f1f5f9: #334155;
    --admin-palette-border-f2b8b5: #334155;
    --admin-palette-border-f2d9a6: #334155;
    --admin-palette-border-f2f5f9: #334155;
    --admin-palette-border-f3c7c7: #334155;
    --admin-palette-border-f3d19c: #334155;
    --admin-palette-border-f3d9a4: #334155;
    --admin-palette-border-f3f5fa: #334155;
    --admin-palette-border-f4b7b7: #334155;
    --admin-palette-border-f4f6fa: #334155;
    --admin-palette-border-f4f6fb: #334155;
    --admin-palette-border-f5c2c7: #334155;
    --admin-palette-border-f5d28a: #334155;
    --admin-palette-border-f5d8aa: #334155;
    --admin-palette-border-fbcfe8: #334155;
    --admin-palette-border-fca5a5: #334155;
    --admin-palette-border-fda4af: #334155;
    --admin-palette-border-fdba74: #334155;
    --admin-palette-border-fde68a: #334155;
    --admin-palette-border-fecaca: #334155;
    --admin-palette-border-fecdca: #334155;
    --admin-palette-border-fecdd3: #334155;
    --admin-palette-border-fed7aa: #334155;
    --admin-palette-border-fedf89: #334155;
    --admin-palette-border-fee2e2: #334155;
    --admin-palette-border-ffd0d0: #334155;
    --admin-palette-border-ffd0d5: #334155;
    --admin-palette-border-ffd5d5: #334155;
    --admin-palette-border-ffd9bd: #334155;
    --admin-palette-border-ffdfe0: #334155;
    --admin-palette-border-ffe0cb: #334155;
    --admin-palette-border-ffe4e4: #334155;
    --admin-palette-border-ffe5e5: #334155;
    --admin-palette-border-ffe7e7: #334155;
    --admin-palette-border-fff: #334155;
    --admin-palette-border-rgba13014625526: rgba(51,65,85,.26);
    --admin-palette-border-rgba19820922382: rgba(51,65,85,.82);
    --admin-palette-border-rgba203213225096: rgba(51,65,85,0.96);
    --admin-palette-border-rgba219228243092: rgba(51,65,85,0.92);
    --admin-palette-border-rgba219228243096: rgba(51,65,85,0.96);
    --admin-palette-border-rgba21922824392: rgba(51,65,85,.92);
    --admin-palette-border-rgba21922824396: rgba(51,65,85,.96);
    --admin-palette-border-rgba22322924595: rgba(51,65,85,.95);
    --admin-palette-border-rgba226232240076: rgba(51,65,85,0.76);
    --admin-palette-border-rgba226232240088: rgba(51,65,85,0.88);
    --admin-palette-border-rgba22623224009: rgba(51,65,85,0.9);
    --admin-palette-border-rgba226232240092: rgba(51,65,85,0.92);
    --admin-palette-border-rgba226232240096: rgba(51,65,85,0.96);
    --admin-palette-border-rgba22623224072: rgba(51,65,85,.72);
    --admin-palette-border-rgba2262322409: rgba(51,65,85,.9);
    --admin-palette-border-rgba22623224095: rgba(51,65,85,.95);
    --admin-palette-border-rgba255255255008: rgba(51,65,85,0.08);
    --admin-palette-border-rgba255255255014: rgba(51,65,85,0.14);
    --admin-palette-border-rgba255255255018: rgba(51,65,85,0.18);
    --admin-palette-border-rgba255255255022: rgba(51,65,85,0.22);
    --admin-palette-border-rgba255255255028: rgba(51,65,85,0.28);
    --admin-palette-border-rgba255255255056: rgba(51,65,85,0.56);
    --admin-palette-border-rgba25525525508: rgba(51,65,85,.08);
    --admin-palette-border-rgba2552552551: rgba(51,65,85,.1);
    --admin-palette-border-rgba25525525514: rgba(51,65,85,.14);
    --admin-palette-border-rgba25525525518: rgba(51,65,85,.18);
    --admin-palette-border-rgba2552552552: rgba(51,65,85,.2);
    --admin-palette-border-rgba25525525522: rgba(51,65,85,.22);
    --admin-palette-border-rgba25525525524: rgba(51,65,85,.24);
    --admin-palette-border-rgba25525525528: rgba(51,65,85,.28);
    --admin-palette-border-rgba25525525556: rgba(51,65,85,.56);
    --admin-palette-border-rgba25525525588: rgba(51,65,85,.88);
    --admin-palette-fg-001942: #a3c6ff;
    --admin-palette-fg-027a48: #a5fed9;
    --admin-palette-fg-0369a1: #a5defd;
    --admin-palette-fg-047857: #a6fce4;
    --admin-palette-fg-059669: #a6fce1;
    --admin-palette-fg-0661ff: #a3c5ff;
    --admin-palette-fg-075985: #a8defa;
    --admin-palette-fg-08783f: #a9f9d0;
    --admin-palette-fg-08786b: #a9f9f0;
    --admin-palette-fg-087a55: #a9f9df;
    --admin-palette-fg-09182c: #b3cdef;
    --admin-palette-fg-09204a: #adc7f5;
    --admin-palette-fg-0965cf: #a7cefb;
    --admin-palette-fg-0b1930: #b4caee;
    --admin-palette-fg-0b63d1: #a8cdfa;
    --admin-palette-fg-0caf77: #a9f9de;
    --admin-palette-fg-0d1b33: #b6caec;
    --admin-palette-fg-0e9b8b: #abf7ef;
    --admin-palette-fg-0f172a: #bbc8e7;
    --admin-palette-fg-0f1f35: #b7cdeb;
    --admin-palette-fg-0f2038: #b7cdec;
    --admin-palette-fg-0f2746: #b3cdef;
    --admin-palette-fg-0f3b8f: #acc5f6;
    --admin-palette-fg-0f3ea8: #abc2f7;
    --admin-palette-fg-0f56d9: #a9c5f9;
    --admin-palette-fg-0f6f7a: #adeef5;
    --admin-palette-fg-0f716f: #aef4f3;
    --admin-palette-fg-0f766e: #aef5ef;
    --admin-palette-fg-0f7a3b: #adf5cb;
    --admin-palette-fg-0f9b8e: #abf7f0;
    --admin-palette-fg-101828: #f9fafb;
    --admin-palette-fg-101c3e: #b6c4ec;
    --admin-palette-fg-10203a: #b7cbeb;
    --admin-palette-fg-10233f: #b6ccec;
    --admin-palette-fg-102449: #b4c8ee;
    --admin-palette-fg-10283c: #b7d4ec;
    --admin-palette-fg-102a63: #b0c5f2;
    --admin-palette-fg-111827: #f9fafb;
    --admin-palette-fg-111d40: #b6c4ec;
    --admin-palette-fg-115e59: #b1f1ed;
    --admin-palette-fg-119b72: #acf6e0;
    --admin-palette-fg-12284a: #b5cbed;
    --admin-palette-fg-12356f: #b0c9f2;
    --admin-palette-fg-12377e: #afc6f4;
    --admin-palette-fg-1264ff: #a3c3ff;
    --admin-palette-fg-132849: #b6cbec;
    --admin-palette-fg-14213d: #bac9e8;
    --admin-palette-fg-142440: #b9cbe9;
    --admin-palette-fg-142843: #b8cdea;
    --admin-palette-fg-142c3e: #bad4e9;
    --admin-palette-fg-1462ff: #a3c2ff;
    --admin-palette-fg-1554a3: #aecdf5;
    --admin-palette-fg-1570ef: #a9caf9;
    --admin-palette-fg-15803d: #b0f2c9;
    --admin-palette-fg-1595e8: #abd9f7;
    --admin-palette-fg-15966a: #aef4dc;
    --admin-palette-fg-162746: #b9cae9;
    --admin-palette-fg-163154: #b6ceec;
    --admin-palette-fg-16365c: #b5cfed;
    --admin-palette-fg-166534: #b4efca;
    --admin-palette-fg-1677ff: #a3c9ff;
    --admin-palette-fg-16845b: #b0f2d9;
    --admin-palette-fg-16a34a: #aef4c8;
    --admin-palette-fg-16b981: #adf5dc;
    --admin-palette-fg-172033: #bfcbe3;
    --admin-palette-fg-172a48: #b9cce9;
    --admin-palette-fg-172a4d: #b8caea;
    --admin-palette-fg-173256: #b7cdec;
    --admin-palette-fg-17344a: #b9d4e9;
    --admin-palette-fg-17408b: #b0c7f2;
    --admin-palette-fg-1749d2: #acc0f6;
    --admin-palette-fg-175cd3: #acc7f6;
    --admin-palette-fg-1769c2: #add0f5;
    --admin-palette-fg-176b3a: #b3efcc;
    --admin-palette-fg-176d68: #b3efec;
    --admin-palette-fg-182230: #f9fafb;
    --admin-palette-fg-183152: #b8ceea;
    --admin-palette-fg-194dbf: #aec4f4;
    --admin-palette-fg-196c45: #b4eed3;
    --admin-palette-fg-1a202c: #f9fafb;
    --admin-palette-fg-1c8c50: #b2f0cf;
    --admin-palette-fg-1d2430: #f9fafb;
    --admin-palette-fg-1d2939: #bfcee3;
    --admin-palette-fg-1d4ed8: #aec0f4;
    --admin-palette-fg-1e3657: #bbcee7;
    --admin-palette-fg-1e3a5f: #b9cee9;
    --admin-palette-fg-1e3a8a: #b4c3ef;
    --admin-palette-fg-1e40af: #b1c0f2;
    --admin-palette-fg-1f2329: #f9fafb;
    --admin-palette-fg-1f2937: #f9fafb;
    --admin-palette-fg-1f2a44: #bfcae3;
    --admin-palette-fg-1f2d3d: #bfd0e3;
    --admin-palette-fg-1f3556: #bccde7;
    --admin-palette-fg-1f3fb7: #b0bef2;
    --admin-palette-fg-1f57d6: #afc4f3;
    --admin-palette-fg-20190d: #f9fafb;
    --admin-palette-fg-202020: #f9fafb;
    --admin-palette-fg-20222a: #f9fafb;
    --admin-palette-fg-202936: #f9fafb;
    --admin-palette-fg-20324d: #becde4;
    --admin-palette-fg-203452: #bdcde5;
    --admin-palette-fg-20375d: #bbcce7;
    --admin-palette-fg-204232: #bfe3d2;
    --admin-palette-fg-2057b8: #b1c8f1;
    --admin-palette-fg-214c9a: #b3c9ef;
    --admin-palette-fg-214ec2: #b1c3f2;
    --admin-palette-fg-2152c8: #b0c4f2;
    --admin-palette-fg-223957: #bdcee5;
    --admin-palette-fg-22543d: #bee5d3;
    --admin-palette-fg-24292f: #f9fafb;
    --admin-palette-fg-243549: #bfd0e3;
    --admin-palette-fg-24406d: #bacce8;
    --admin-palette-fg-24446f: #bacee9;
    --admin-palette-fg-2453c7: #b1c4f1;
    --admin-palette-fg-245db0: #b3cbef;
    --admin-palette-fg-245dff: #a3bbff;
    --admin-palette-fg-2463b6: #b2cdf0;
    --admin-palette-fg-2468ed: #aac5f8;
    --admin-palette-fg-25324a: #bfcce3;
    --admin-palette-fg-2563a8: #b4d0ee;
    --admin-palette-fg-2563eb: #abc3f7;
    --admin-palette-fg-26344f: #bfcbe3;
    --admin-palette-fg-26364c: #bfcee3;
    --admin-palette-fg-26364d: #bfcee3;
    --admin-palette-fg-263b5d: #becde4;
    --admin-palette-fg-274061: #becee5;
    --admin-palette-fg-27602c: #bee4c1;
    --admin-palette-fg-283c5a: #bfcde3;
    --admin-palette-fg-294436: #f9fafb;
    --admin-palette-fg-297aff: #a3c6ff;
    --admin-palette-fg-2b5cd6: #b2c4f0;
    --admin-palette-fg-2b6cb0: #b5d0ed;
    --admin-palette-fg-2d3748: #f9fafb;
    --admin-palette-fg-2d3a57: #bfcae3;
    --admin-palette-fg-2d6df6: #a7c2fb;
    --admin-palette-fg-2e65f3: #a8bffa;
    --admin-palette-fg-2f54eb: #abbaf7;
    --admin-palette-fg-2f5de4: #aec0f4;
    --admin-palette-fg-2f61e8: #acc0f6;
    --admin-palette-fg-2f66f4: #a8bffa;
    --admin-palette-fg-2f6eea: #acc5f7;
    --admin-palette-fg-304866: #bfcfe3;
    --admin-palette-fg-314158: #bfcee3;
    --admin-palette-fg-31435d: #bfcee3;
    --admin-palette-fg-31547b: #bdd0e5;
    --admin-palette-fg-315de5: #adbff5;
    --admin-palette-fg-334155: #f9fafb;
    --admin-palette-fg-33465d: #bfcfe3;
    --admin-palette-fg-344054: #f9fafb;
    --admin-palette-fg-344256: #f9fafb;
    --admin-palette-fg-3473e5: #aec7f5;
    --admin-palette-fg-3478f6: #a7c5fb;
    --admin-palette-fg-3563d8: #b2c4f0;
    --admin-palette-fg-3569c8: #b6c9ec;
    --admin-palette-fg-365064: #bfd3e3;
    --admin-palette-fg-3730a3: #bbb8ea;
    --admin-palette-fg-374151: #f9fafb;
    --admin-palette-fg-385a9f: #bbcae7;
    --admin-palette-fg-3877d6: #b3cbef;
    --admin-palette-fg-3973c5: #b8cdea;
    --admin-palette-fg-3b82f6: #a7c7fb;
    --admin-palette-fg-3f3f46: #f9fafb;
    --admin-palette-fg-40516a: #cbd5e1;
    --admin-palette-fg-40536f: #bfcee3;
    --admin-palette-fg-40566b: #bfd2e3;
    --admin-palette-fg-42556b: #cbd5e1;
    --admin-palette-fg-4338ca: #bbb7ec;
    --admin-palette-fg-44546a: #cbd5e1;
    --admin-palette-fg-445a7e: #bfcde3;
    --admin-palette-fg-46607f: #bfcfe3;
    --admin-palette-fg-475467: #cbd5e1;
    --admin-palette-fg-475569: #cbd5e1;
    --admin-palette-fg-476174: #cbd5e1;
    --admin-palette-fg-4778bd: #bbcde7;
    --admin-palette-fg-485c82: #bfcbe3;
    --admin-palette-fg-486581: #bfd1e3;
    --admin-palette-fg-48bb78: #bce6ce;
    --admin-palette-fg-4a5563: #cbd5e1;
    --admin-palette-fg-4b3b12: #edddb5;
    --admin-palette-fg-4b5563: #cbd5e1;
    --admin-palette-fg-4b5b70: #cbd5e1;
    --admin-palette-fg-4b5b73: #cbd5e1;
    --admin-palette-fg-4b5d77: #cbd5e1;
    --admin-palette-fg-4b5e76: #cbd5e1;
    --admin-palette-fg-4b6b58: #cbd5e1;
    --admin-palette-fg-4b6b9c: #bfcde3;
    --admin-palette-fg-4d7c0f: #d6f5ad;
    --admin-palette-fg-4e5969: #cbd5e1;
    --admin-palette-fg-4e627e: #cbd5e1;
    --admin-palette-fg-4f46e5: #b2aff4;
    --admin-palette-fg-4f5771: #cbd5e1;
    --admin-palette-fg-50607d: #cbd5e1;
    --admin-palette-fg-52525b: #cbd5e1;
    --admin-palette-fg-52627f: #cbd5e1;
    --admin-palette-fg-526377: #cbd5e1;
    --admin-palette-fg-52637a: #cbd5e1;
    --admin-palette-fg-526582: #cbd5e1;
    --admin-palette-fg-52665a: #cbd5e1;
    --admin-palette-fg-53637f: #cbd5e1;
    --admin-palette-fg-5548d9: #b8b3ef;
    --admin-palette-fg-56705d: #cbd5e1;
    --admin-palette-fg-58626a: #cbd5e1;
    --admin-palette-fg-586982: #cbd5e1;
    --admin-palette-fg-596579: #cbd5e1;
    --admin-palette-fg-59708d: #cbd5e1;
    --admin-palette-fg-5a6573: #cbd5e1;
    --admin-palette-fg-5b5f79: #cbd5e1;
    --admin-palette-fg-5b6470: #cbd5e1;
    --admin-palette-fg-5b6475: #cbd5e1;
    --admin-palette-fg-5b6677: #cbd5e1;
    --admin-palette-fg-5b6680: #cbd5e1;
    --admin-palette-fg-5b6b82: #cbd5e1;
    --admin-palette-fg-5b6d8b: #cbd5e1;
    --admin-palette-fg-5b6f8e: #cbd5e1;
    --admin-palette-fg-5d6a63: #cbd5e1;
    --admin-palette-fg-5e6578: #cbd5e1;
    --admin-palette-fg-5e6f89: #cbd5e1;
    --admin-palette-fg-5e7086: #cbd5e1;
    --admin-palette-fg-5f6d83: #cbd5e1;
    --admin-palette-fg-5f6f84: #cbd5e1;
    --admin-palette-fg-5f7188: #cbd5e1;
    --admin-palette-fg-606b85: #cbd5e1;
    --admin-palette-fg-607289: #cbd5e1;
    --admin-palette-fg-61718d: #cbd5e1;
    --admin-palette-fg-627089: #cbd5e1;
    --admin-palette-fg-627493: #cbd5e1;
    --admin-palette-fg-64748b: #cbd5e1;
    --admin-palette-fg-647895: #cbd5e1;
    --admin-palette-fg-65738a: #cbd5e1;
    --admin-palette-fg-657798: #cbd5e1;
    --admin-palette-fg-664d03: #fce7a6;
    --admin-palette-fg-666: #cbd5e1;
    --admin-palette-fg-666f88: #cbd5e1;
    --admin-palette-fg-667085: #cbd5e1;
    --admin-palette-fg-66746b: #cbd5e1;
    --admin-palette-fg-66758a: #cbd5e1;
    --admin-palette-fg-667795: #cbd5e1;
    --admin-palette-fg-6a7a92: #cbd5e1;
    --admin-palette-fg-6b7280: #cbd5e1;
    --admin-palette-fg-6b778c: #cbd5e1;
    --admin-palette-fg-6c7f97: #cbd5e1;
    --admin-palette-fg-6d28d9: #cab1f1;
    --admin-palette-fg-6e7f95: #cbd5e1;
    --admin-palette-fg-6f7e93: #cbd5e1;
    --admin-palette-fg-6f7f94: #cbd5e1;
    --admin-palette-fg-6f7f9c: #cbd5e1;
    --admin-palette-fg-6f8198: #cbd5e1;
    --admin-palette-fg-708095: #cbd5e1;
    --admin-palette-fg-70819d: #cbd5e1;
    --admin-palette-fg-718096: #cbd5e1;
    --admin-palette-fg-71809a: #cbd5e1;
    --admin-palette-fg-71819d: #cbd5e1;
    --admin-palette-fg-7181a0: #cbd5e1;
    --admin-palette-fg-718397: #cbd5e1;
    --admin-palette-fg-71839a: #cbd5e1;
    --admin-palette-fg-738099: #cbd5e1;
    --admin-palette-fg-738299: #cbd5e1;
    --admin-palette-fg-738900: #f0ffa3;
    --admin-palette-fg-7484a1: #cbd5e1;
    --admin-palette-fg-7485a1: #cbd5e1;
    --admin-palette-fg-7689aa: #cbd5e1;
    --admin-palette-fg-7789a7: #cbd5e1;
    --admin-palette-fg-7889a7: #cbd5e1;
    --admin-palette-fg-7890a5: #cbd5e1;
    --admin-palette-fg-7a271a: #efbbb3;
    --admin-palette-fg-7a8599: #cbd5e1;
    --admin-palette-fg-7a889a: #cbd5e1;
    --admin-palette-fg-7a889d: #cbd5e1;
    --admin-palette-fg-7a8ca5: #cbd5e1;
    --admin-palette-fg-7b8494: #cbd5e1;
    --admin-palette-fg-7b8497: #cbd5e1;
    --admin-palette-fg-7b879c: #cbd5e1;
    --admin-palette-fg-7b8aa0: #cbd5e1;
    --admin-palette-fg-7c2d12: #f3c0af;
    --admin-palette-fg-7c3aed: #c7abf7;
    --admin-palette-fg-7c6b58: #cbd5e1;
    --admin-palette-fg-7c8aa0: #cbd5e1;
    --admin-palette-fg-7c8d18: #e8f2b1;
    --admin-palette-fg-7c8da8: #cbd5e1;
    --admin-palette-fg-7d4e00: #ffdca3;
    --admin-palette-fg-7d6950: #cbd5e1;
    --admin-palette-fg-7d8da1: #cbd5e1;
    --admin-palette-fg-7e54da: #c6b4ef;
    --admin-palette-fg-7f1d1d: #eeb4b4;
    --admin-palette-fg-7f8da3: #cbd5e1;
    --admin-palette-fg-7f8da6: #cbd5e1;
    --admin-palette-fg-7f8ea4: #cbd5e1;
    --admin-palette-fg-805400: #ffdfa3;
    --admin-palette-fg-8090a7: #cbd5e1;
    --admin-palette-fg-8190a6: #cbd5e1;
    --admin-palette-fg-8190aa: #cbd5e1;
    --admin-palette-fg-835800: #ffe1a3;
    --admin-palette-fg-8390ac: #cbd5e1;
    --admin-palette-fg-8490ac: #cbd5e1;
    --admin-palette-fg-8492a9: #cbd5e1;
    --admin-palette-fg-8591ab: #cbd5e1;
    --admin-palette-fg-8895b0: #cbd5e1;
    --admin-palette-fg-8a4b00: #ffd5a3;
    --admin-palette-fg-8a4b08: #fad2a8;
    --admin-palette-fg-8a5a08: #fadca8;
    --admin-palette-fg-8a5a16: #f2d7b0;
    --admin-palette-fg-8a6a39: #e4d5be;
    --admin-palette-fg-8a6d1f: #eedeb4;
    --admin-palette-fg-8a8f98: #cbd5e1;
    --admin-palette-fg-8a94a6: #cbd5e1;
    --admin-palette-fg-8a94a8: #cbd5e1;
    --admin-palette-fg-8a98ad: #cbd5e1;
    --admin-palette-fg-8b1e1e: #efb3b3;
    --admin-palette-fg-8b5b00: #ffdfa3;
    --admin-palette-fg-8b97ab: #cbd5e1;
    --admin-palette-fg-8b98aa: #cbd5e1;
    --admin-palette-fg-8b9ab1: #cbd5e1;
    --admin-palette-fg-8b9bb1: #cbd5e1;
    --admin-palette-fg-8c99ad: #cbd5e1;
    --admin-palette-fg-8ca51a: #e6f3b0;
    --admin-palette-fg-8f5900: #ffdca3;
    --admin-palette-fg-9097a6: #cbd5e1;
    --admin-palette-fg-912018: #f2b5b0;
    --admin-palette-fg-92400e: #f7c8ab;
    --admin-palette-fg-93370d: #f8c3ab;
    --admin-palette-fg-991b1b: #f1b1b1;
    --admin-palette-fg-999: #cbd5e1;
    --admin-palette-fg-9a3412: #f5bfad;
    --admin-palette-fg-9a5b00: #ffd9a3;
    --admin-palette-fg-9a6500: #ffdfa3;
    --admin-palette-fg-9a6700: #ffe1a3;
    --admin-palette-fg-9aaa22: #e9f0b2;
    --admin-palette-fg-9f1239: #f6adc1;
    --admin-palette-fg-a16207: #fbd9a7;
    --admin-palette-fg-a35a00: #ffd6a3;
    --admin-palette-fg-a64239: #e8bebb;
    --admin-palette-fg-a86b00: #ffdea3;
    --admin-palette-fg-b42318: #f4b3ae;
    --admin-palette-fg-b45309: #fbcca8;
    --admin-palette-fg-b7791f: #f2d7b0;
    --admin-palette-fg-b8671a: #f4d0af;
    --admin-palette-fg-b91c1c: #f3afaf;
    --admin-palette-fg-be123c: #f7abbe;
    --admin-palette-fg-c01048: #f8aac3;
    --admin-palette-fg-c03a3a: #eab8b8;
    --admin-palette-fg-c2410c: #fac0a9;
    --admin-palette-fg-c47700: #ffdba3;
    --admin-palette-fg-c5222b: #f1b1b4;
    --admin-palette-fg-ca8a04: #fde1a5;
    --admin-palette-fg-d33: #f2b0b0;
    --admin-palette-fg-d92d20: #f3b4af;
    --admin-palette-fg-d9363e: #f0b2b5;
    --admin-palette-fg-d9480f: #f9c0a9;
    --admin-palette-fg-d97706: #fdd4a6;
    --admin-palette-fg-dc2626: #f2b0b0;
    --admin-palette-fg-dc4770: #f0b2c3;
    --admin-palette-fg-e11d48: #f5aebd;
    --admin-palette-fg-ea580c: #fbc4a8;
    --admin-palette-fg-ec4770: #f6acbe;
    --admin-palette-fg-ed5277: #f6acbe;
    --admin-palette-fg-ed9800: #ffdea3;
    --admin-palette-fg-ef4444: #f8aaaa;
    --admin-palette-fg-ef6c1b: #f9c8a9;
    --admin-palette-fg-f04438: #f9afaa;
    --admin-palette-fg-f5222d: #fba7ac;
    --admin-palette-fg-f59e0b: #fbdca7;
    --admin-palette-fg-f97316: #fdc9a6;
    --admin-palette-fg-fa6e15: #fdc7a5;
    --admin-palette-fg-ff2424: #ffa3a3;
    --admin-palette-fg-rgba1001161395: rgba(203,213,225,.5);
}

/* Product management uses article rows rather than .admin-table cells. */
html[data-mode] .admin-shell .loya-icbu-product-page .loya-icbu-product-row:is(:hover, :focus-within) {
    background: var(--admin-ui-hover-surface) !important;
    color: var(--admin-ui-hover-text) !important;
}
html[data-mode] .admin-shell .loya-icbu-product-page .loya-icbu-product-row:is(:hover, :focus-within) :is(.loya-icbu-product-title, .loya-icbu-product-id-row, .loya-icbu-product-id-row small, .loya-icbu-product-cell > strong, .loya-icbu-product-cell > small, .loya-icbu-product-display-status) {
    color: var(--admin-ui-hover-text) !important;
}

/* Users and permission manager: shared member styles and both permission tabs. */
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-stat-card,.loya-member-row,.users-list-row,.loya-member-row:nth-child(2n),.loya-member-row.restricted,.loya-member-empty,.loya-member-pager-actions,.loya-member-position-block,.loya-member-position-record,.loya-position-stat-card,.loya-member-batch-result-grid article,.loya-outbound-modal,.loya-outbound-modal-body,.loya-outbound-config-card,.loya-permission-summary-card:not(.primary),.loya-permission-card,.loya-permission-row,.loya-permission-modal-dialog,.loya-permission-modal-sidebar-card,.loya-permission-group,.loya-permission-item,.loya-permission-empty) {
    background:#111827!important;color:#f9fafb!important;border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-list-header,.users-list-header,.loya-member-position-listview-head,.loya-member-pager-info,.loya-member-panel-meta small,.loya-member-batch-info,.loya-member-position-head small,.loya-position-department-text,.loya-permission-list-head,.loya-permission-chip-list,.loya-permission-position-meta div,.loya-permission-modal-metrics div,.loya-outbound-modal-head,.loya-outbound-modal-actions,.loya-permission-editor-actions) {
    background:#1e293b!important;color:#cbd5e1!important;border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-stat-card strong,.loya-member-main strong,.loya-member-cell strong,.loya-member-position-record-main strong,.loya-member-position-head strong,.loya-position-stat-card strong,.loya-permission-summary-card strong,.loya-permission-row-main strong,.loya-permission-group strong,.loya-permission-item strong,.loya-outbound-modal h2,.loya-outbound-modal h3,.loya-member-form-grid label > span) {
    color:#f9fafb!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-stat-card small,.loya-member-stat-card > span,.loya-member-main small,.loya-member-cell small,.loya-member-position-record-main small,.loya-member-modal-note,.loya-permission-summary-card small,.loya-permission-summary-card > span,.loya-permission-row-main small,.loya-permission-group small,.loya-permission-item small,.loya-outbound-modal p) {
    color:#cbd5e1!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-toolbar,.loya-member-form-grid,.loya-permission-search,.loya-permission-form-grid) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    background:#0f172a!important;color:#fff!important;border-color:#475569!important;color-scheme:dark;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(input,textarea)::placeholder {
    color:#94a3b8!important;opacity:1;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-edit-button,.loya-member-position-chip.primary,.loya-member-position-badge,.loya-position-code,.loya-member-type-cell strong,.loya-permission-chip,.loya-permission-row-type.system,.loya-member-batch-note) {
    background:#172554!important;color:#dbeafe!important;border-color:#31528c!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-position-button,.loya-member-position-chip:not(.primary),.loya-permission-empty-chip,.loya-outbound-modal-close) {
    background:#1e293b!important;color:#e2e8f0!important;border-color:#475569!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-status.active,.loya-member-switch.active,.loya-member-position-status.active,.loya-permission-message.success) {
    background:#052e16!important;color:#bbf7d0!important;border-color:#166534!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-status.inactive,.loya-member-switch.inactive,.loya-member-position-status.inactive) {
    background:#431407!important;color:#fed7aa!important;border-color:#9a3412!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-batch-note.danger,.loya-permission-message.error) {
    background:#450a0a!important;color:#fecaca!important;border-color:#991b1b!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-permission-row-type.custom {
    background:#2e1065!important;color:#e9d5ff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-row,.users-list-row,.loya-permission-row):is(:hover,:focus-within) {
    background:#1e293b!important;color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-row,.users-list-row,.loya-permission-row):is(:hover,:focus-within) :is(.loya-member-main strong,.loya-member-cell strong,.loya-member-main small,.loya-member-cell small,.loya-permission-row-main strong,.loya-permission-row-main small) {
    color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) :is(.loya-member-position-button,.loya-member-edit-button):hover:not(:disabled) {
    background:#334155!important;color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-outbound-modal-close:is(:hover,:focus-visible) {
    background:#e81123!important;color:#fff!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-permission-manager-tabs {
    border-color:#334155!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-permission-manager-tab {
    color:#cbd5e1!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-permission-manager-tab:is(:hover,:focus-visible,.is-active) {
    background:#1e293b!important;color:#fff!important;border-bottom-color:#60a5fa!important;
}
html[data-mode="dark"] .admin-shell:has(:is(.user-admin-page, .loya-permission-manager)) .loya-member-switch-thumb {
    background:#fff!important;
}

/* Product title popovers: pair the surface with both title colors. */
html[data-mode="dark"] .admin-shell [popover][id^="product-title-"] {
    background: #111827;
    color: #fff;
    border-color: #475569;
    color-scheme: dark;
}
html[data-mode="dark"] .admin-shell [popover][id^="product-title-"] .copy strong {
    color: #fff;
}
html[data-mode="dark"] .admin-shell [popover][id^="product-title-"] .copy span {
    color: #cbd5e1;
}

/* Supplement dialog: override the shared light dialog chrome as one surface. */
html[data-mode="dark"] .admin-shell .loya-publish-flow-dialog.loya-supplement-mac-dialog {
    --loya-card-bg: #111827;
    --loya-soft-bg: #1e293b;
    --loya-border: #334155;
    --loya-text-primary: #f9fafb;
    --loya-text-secondary: #cbd5e1;
    --loya-text-muted: #94a3b8;
    color: #f9fafb !important;
    background: #0b1120 !important;
    border-color: #475569 !important;
    box-shadow: 0 24px 60px rgb(0 0 0 / 45%) !important;
    color-scheme: dark;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(.loya-supplement-mac-body,.loya-supplement-sidebar,.loya-supplement-main,.loya-supplement-slot-panels,.loya-supplement-slot-panel,.loya-supplement-slot-panel-body) {
    background: #0b1120 !important;
    color: #f9fafb;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(.loya-image-card,.loya-image-block,.loya-supplement-sidebar-actions,.loya-supplement-source-panel,.loya-supplement-slot-control-panel,.loya-supplement-mac-settings) {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #f9fafb;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(.loya-supplement-mac-titlebar,.loya-supplement-mac-actions,.loya-image-card-header,.loya-supplement-sidebar-tabs) {
    background: #1e293b !important;
    color: #f9fafb !important;
    border-color: #334155 !important;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(h2,h3,.loya-image-label,.loya-field-label,.loya-collector-field-inline > span,.loya-supplement-slot-panel-head,.loya-supplement-slot-control-panel > strong) {
    color: #f9fafb !important;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) {
    background: #0f172a !important;
    color: #f9fafb !important;
    border-color: #475569 !important;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog :is(input,textarea)::placeholder {
    color: #94a3b8;
    opacity: 1;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog .loya-supplement-sidebar-tab {
    color: #cbd5e1;
}
html[data-mode="dark"] .admin-shell .loya-supplement-mac-dialog .loya-supplement-sidebar-tab:is(.active,:hover,:focus-visible) {
    background: #334155 !important;
    color: #fff !important;
}

/* "设置搬品条件" dialog: the shared Mac-style chrome in loya-site.css pins the
   dialog, its head and its action bar to light colours with !important, so the
   body turned dark while the title bar and footer stayed white. Re-pin those
   boxes for dark mode and reset the component-local light custom properties
   (--loya-text/--loya-line...), which otherwise keep dark text on dark surfaces
   (the "有效商品链接" counter was invisible). */
html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog {
    --loya-text: #f9fafb;
    --loya-muted: #cbd5e1;
    --loya-soft: #1e293b;
    --loya-line: #334155;
    --loya-line-strong: #475569;
    color: #f9fafb !important;
    background: #0b1120 !important;
    border-color: #475569 !important;
    box-shadow: 0 26px 80px rgb(0 0 0 / 55%) !important;
    color-scheme: dark;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-scroll,
html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-body {
    background: #0b1120 !important;
    color: #f9fafb;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-head {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-head h3 {
    color: #f9fafb !important;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-win-close {
    color: #cbd5e1;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-actions {
    background: #1e293b !important;
    border-top-color: #334155 !important;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog :is(.loya-publish-task-settings-summary-line, .loya-publish-task-settings-auto-box) {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: none;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-field-row {
    border-top-color: #334155;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-radio em {
    background: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-publish-task-settings-radio input[type="number"] {
    background: #0f172a;
    color: #f9fafb;
    border-color: #475569;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-collector-button.ghost {
    background: #334155;
    border-color: #475569;
    color: #fff;
}

html[data-mode="dark"] .admin-shell .loya-publish-task-settings-dialog .loya-collector-button.ghost:hover:not(:disabled) {
    background: #475569;
    border-color: #64748b;
}

/* 确认类对话框（AdminConfirmDialog：loya-confirm-dialog / loya-publish-confirm-dialog）。
   loya-site.css 的「统一 Mac 风格外壳」用 !important 把外壳钉成浅色，
   而正文颜色继承 html[data-mode="dark"] .admin-shell 的 #e5e7eb，
   于是浅字压浅底、对比度约 1.2:1，完全读不出来。 */
html[data-mode="dark"] .admin-shell :is(.loya-confirm-dialog, .loya-publish-confirm-dialog) {
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%) !important;
    border-color: #334155 !important;
    box-shadow: 0 26px 80px rgb(0 0 0 / 55%) !important;
    color: #f9fafb !important;
    color-scheme: dark;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-head, .loya-publish-confirm-head) {
    background: linear-gradient(180deg, #1e293b 0%, #172033 100%) !important;
    border-bottom-color: #334155 !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-head, .loya-publish-confirm-head) :is(h2, h3) {
    color: #f9fafb !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-head, .loya-publish-confirm-head) :is(span, p) {
    color: #cbd5e1 !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-dialog, .loya-publish-confirm-dialog) :is(.loya-confirm-close, .loya-windows-confirm-head .loya-confirm-close) {
    color: #cbd5e1 !important;
    border-left-color: #334155 !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-dialog, .loya-publish-confirm-dialog) .loya-confirm-close:hover:not(:disabled),
html[data-mode="dark"] .admin-shell :is(.loya-confirm-dialog, .loya-publish-confirm-dialog) .loya-confirm-close:focus-visible:not(:disabled) {
    background: #e81123 !important;
    color: #fff !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-body, .loya-publish-confirm-body) {
    background: #111827 !important;
    color: #f9fafb !important;
}

/* ChildContent 直接挂在对话框里（没有 .loya-confirm-body 包一层），
   正文文字靠对话框自身的 color 继承下来；这里不再逐元素钉颜色，
   否则会盖掉成本金额等带语义色的 token（如 --admin-palette-fg-d9480f）。 */

html[data-mode="dark"] .admin-shell :is(.loya-confirm-actions, .loya-confirm-modal-actions, .loya-publish-confirm-actions) {
    background: #1e293b !important;
    border-top-color: #334155 !important;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-actions, .loya-publish-confirm-actions) .loya-collector-button {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-actions, .loya-publish-confirm-actions) .loya-collector-button:hover:not(:disabled) {
    background: #334155;
    border-color: #64748b;
}

html[data-mode="dark"] .admin-shell :is(.loya-confirm-actions, .loya-publish-confirm-actions) .loya-collector-button.primary,
html[data-mode="dark"] .admin-shell :is(.loya-confirm-actions, .loya-publish-confirm-actions) .loya-publish-flow-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid #2563eb;
    color: #fff;
}

/* Keep the complete admin topbar on one coherent surface in dark mode. */
html[data-mode="dark"] .admin-shell .admin-topbar,
html[data-mode="dark"] .admin-shell .admin-topbar-actions,
html[data-mode="dark"] .admin-shell .admin-topbar-actions > .admin-user-menu-wrap {
    background: #111827 !important;
    border-color: #273449 !important;
}
html[data-mode="dark"] .admin-shell .admin-topbar-actions > .admin-user-menu-wrap .admin-user-card,
html[data-mode="dark"] .admin-shell .admin-topbar-actions > .admin-user-menu-wrap .admin-user-meta strong,
html[data-mode="dark"] .admin-shell .admin-topbar-actions > .admin-user-menu-wrap .admin-user-caret,
html[data-mode="dark"] .admin-shell .admin-balance-link,
html[data-mode="dark"] .admin-shell .admin-bitcoin-icon,
html[data-mode="dark"] .admin-shell .admin-topbar-icon,
html[data-mode="dark"] .admin-shell .admin-mode-icon-button {
    color: #e5e7eb !important;
}
html[data-mode="dark"] .admin-shell .admin-recharge-button {
    color: #9bb7ff !important;
    border-color: #668aff !important;
}
html[data-mode="dark"] .admin-shell .admin-topbar-actions > .admin-user-menu-wrap .admin-user-card:hover {
    background: #1f2937 !important;
}
