/* ══════════════════════════════════════════════════════════════════════════
   SOLARBOT — LIGHT MODE  "Arctic Slate"
   Sidebar nav : dark navy | Contenu : bleu-gris ardoise + blanc
   Toutes les couleurs de composants sont explicites pour garantir l'override
   ══════════════════════════════════════════════════════════════════════════ */

/* ── COULEURS DE RÉFÉRENCE (commentaire, pas des variables) ──────────────
   bg-page    : #eef1f7   surface (card)  : #ffffff
   surface-2  : #f4f6fb   surface-3       : #e4e8f2
   border     : rgba(15,23,42,.09)         text-1 : #0f172a
   text-2     : #475569                   text-3  : #94a3b8
   accent     : #5865f2
   ══════════════════════════════════════════════════════════════════════════ */

/* ── VARIABLES CSS (pour les composants qui les utilisent) ───────────────── */
html[data-theme="light"] {
  color-scheme: light;

  --bg:           #eef1f7 !important;
  --surface:      #ffffff !important;
  --surface-2:    #f4f6fb !important;
  --surface-3:    #e4e8f2 !important;
  --border:       rgba(15,23,42,.09) !important;
  --border-hover: rgba(15,23,42,.18) !important;
  --text:         #0f172a !important;
  --text-2:       #475569 !important;
  --text-3:       #94a3b8 !important;

  /* Remap sémantique — blanc → foncé, noir → clair */
  --white:    #0f172a !important;
  --black:    #eef1f7 !important;

  /* Niveaux de gris utilisés dans dashboard.css + tickets.css */
  --gray-100: #f1f5f9 !important;
  --gray-200: #0f172a !important;
  --gray-300: #1e293b !important;
  --gray-400: #334155 !important;
  --gray-500: #475569 !important;
  --gray-600: #64748b !important;
  --gray-700: #94a3b8 !important;
  --gray-800: #f1f5f9 !important;
  --gray-900: #ffffff !important;

  --accent:       #5865f2 !important;
  --accent-dim:   rgba(88,101,242,.10) !important;
  --accent-glow:  rgba(88,101,242,.22) !important;
  --accent-hover: #4752c4 !important;

  --green-soft:   rgba(34,197,94,.12) !important;
  --yellow-soft:  rgba(245,158,11,.12) !important;
  --red-soft:     rgba(239,68,68,.12) !important;

  /* Alias variables used with dark fallbacks */
  --card-bg:        #ffffff !important;
  --text-muted:     #64748b !important;
  --text-secondary: #475569 !important;
  --surface-1:      #ffffff !important;

  /* Generic secondary/tertiary bg variables used with dark fallbacks */
  --bg-secondary:   #f1f5f9 !important;
  --bg-tertiary:    #e8ecf2 !important;
  --dash-bg:        #eef1f7 !important;

  /* Per-page :root variable overrides */
  --rp-card-bg:     #ffffff !important;
  --rp-border:      rgba(15,23,42,.1) !important;
  --rp-dark-bg:     #eef1f7 !important;
  --streams-card:   #ffffff !important;
  --streams-border: rgba(15,23,42,.09) !important;
  --streams-bg:     #eef1f7 !important;
  --jury-card:      #ffffff !important;
  --jury-border:    rgba(15,23,42,.09) !important;
  --alt-card:       #ffffff !important;
  --alt-border:     rgba(15,23,42,.09) !important;
  --hp-card:        #ffffff !important;
  --hp-border:      rgba(15,23,42,.09) !important;
}

/* ── FOND GLOBAL ─────────────────────────────────────────────────────────── */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] body.dashboard-page,
html[data-theme="light"] body.config-page,
html[data-theme="light"] body.admin-body {
  background: #eef1f7 !important;
  color: #0f172a !important;
}

/* html[data-theme="light"] .logo-text {
  color: #eef1f7 !important;
} */

/* html[data-theme="light"] .nav-links a {
  color: #eef1f79a !important;
} */

/* ══════════════════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .dash-topbar {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .dash-logo           { color: #0f172a !important; }
html[data-theme="light"] .dash-logo:hover     { background: rgba(15,23,42,.05) !important; }
html[data-theme="light"] .dash-logo svg       { color: #94a3b8 !important; }
html[data-theme="light"] .dash-guild-info     { background: #f4f6fb !important; border-color: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .dash-guild-name     { color: #0f172a !important; }
html[data-theme="light"] .dash-guild-icon-placeholder { background: rgba(88,101,242,.12) !important; color: #5865f2 !important; }
html[data-theme="light"] .dash-avatar         { border-color: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .dash-avatar:hover   { border-color: rgba(15,23,42,.28) !important; }
html[data-theme="light"] .dash-username       { color: #475569 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR NAV — reste dark navy, rien à changer sur le texte
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .config-sidebar {
  background: #0f172a !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
}

/* Select langue et toggle dans la sidebar sombre */
html[data-theme="light"] #sidebar-lang-select {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.65) !important;
}

html[data-theme="light"] .bot-avatar {
  background: #eef1f7 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN CONFIG AREA
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .config-main {
  background: #eef1f7 !important;
}
html[data-theme="light"] .config-header {
  border-bottom: 1px solid rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .config-header-icon {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 4px rgba(15,23,42,.06) !important;
}

/* ── FEATURE BLOCKS ──────────────────────────────────────────────────────── */
html[data-theme="light"] .feature-block {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .feature-block:hover {
  border-color: rgba(15,23,42,.18) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.1) !important;
}
html[data-theme="light"] .feature-block-header {
  background: #f9fafb !important;
  border-bottom: 1px solid rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .feature-block-title { color: #0f172a !important; }
html[data-theme="light"] .feature-block-desc  { color: #475569 !important; }
html[data-theme="light"] .feature-command {
  background: #e4e8f2 !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #475569 !important;
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] .card {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .card:hover {
  border-color: rgba(15,23,42,.18) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.1) !important;
}
html[data-theme="light"] .card--interactive:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.12) !important;
}

/* ── FIELD ROWS ──────────────────────────────────────────────────────────── */
html[data-theme="light"] .field-row {
  border-bottom: 1px solid rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .field-row:hover {
  background: rgba(15,23,42,.02) !important;
}
html[data-theme="light"] .field-label  { color: #475569 !important; }
html[data-theme="light"] .field-hint   { color: #94a3b8 !important; }
html[data-theme="light"] .field-divider { color: #94a3b8 !important; }
html[data-theme="light"] .field-divider::after { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .field-info {
  background: rgba(15,23,42,.03) !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #475569 !important;
}

/* ── INPUTS / SELECTS ────────────────────────────────────────────────────── */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="datetime-local"],
html[data-theme="light"] input[type="url"],
html[data-theme="light"] input[type="search"],
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .field-input,
html[data-theme="light"] .field-select,
html[data-theme="light"] .field-textarea {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.13) !important;
  color: #0f172a !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] .field-input:focus,
html[data-theme="light"] .field-select:focus {
  border-color: rgba(88,101,242,.5) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.12) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] select option        { background: #ffffff !important; color: #0f172a !important; }

/* ── BOUTONS ──────────────────────────────────────────────────────────────── */
html[data-theme="light"] .btn-ghost {
  color: #475569 !important;
  border-color: rgba(15,23,42,.14) !important;
  background: transparent !important;
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(15,23,42,.06) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.22) !important;
}
html[data-theme="light"] .btn-outline {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.18) !important;
  background: #ffffff !important;
}
html[data-theme="light"] .btn-outline:hover {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.28) !important;
}

/* ── SAVE BAR ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .save-bar-inner {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  box-shadow: 0 8px 40px rgba(15,23,42,.15) !important;
}
html[data-theme="light"] .save-bar-msg { color: #475569 !important; }

/* ── MODALS ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,.4) !important; }
html[data-theme="light"] .modal,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-content {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.18) !important;
}
html[data-theme="light"] .modal-title { color: #0f172a !important; }
html[data-theme="light"] .modal-desc  { color: #475569 !important; }
html[data-theme="light"] .modal-close {
  color: #94a3b8 !important;
  border-color: transparent !important;
}
html[data-theme="light"] .modal-close:hover {
  background: rgba(15,23,42,.06) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .modal-icon {
  background: #e4e8f2 !important;
  color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE SERVERS — cartes serveurs
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .server-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .server-card--active:hover {
  background: #fafbff !important;
  border-color: rgba(88,101,242,.3) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.1) !important;
}
html[data-theme="light"] .server-card--inactive:hover {
  border-color: rgba(15,23,42,.18) !important;
}
html[data-theme="light"] .server-icon-placeholder {
  background: #e4e8f2 !important;
  color: #475569 !important;
}
html[data-theme="light"] .server-icon-placeholder--dim {
  background: #f0f2f8 !important;
  color: #94a3b8 !important;
}
html[data-theme="light"] .server-status { border-color: #ffffff !important; }
html[data-theme="light"] .server-name   { color: #0f172a !important; }
html[data-theme="light"] .server-meta   { color: #94a3b8 !important; }
html[data-theme="light"] .server-arrow  { color: #cbd5e1 !important; }
html[data-theme="light"] .server-card:hover .server-arrow { color: #5865f2 !important; }
html[data-theme="light"] .server-add-btn {
  color: #475569 !important;
  border-color: rgba(15,23,42,.15) !important;
}
html[data-theme="light"] .server-card:hover .server-add-btn {
  background: #5865f2 !important;
  color: #ffffff !important;
  border-color: #5865f2 !important;
}
html[data-theme="light"] .servers-section-title { color: #475569 !important; }
html[data-theme="light"] .servers-count {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
}
html[data-theme="light"] .servers-header h1 { color: #0f172a !important; }
html[data-theme="light"] .servers-header p   { color: #475569 !important; }
html[data-theme="light"] .empty-state        { color: #94a3b8 !important; }
html[data-theme="light"] .empty-state h3     { color: #0f172a !important; }

/* ── Section dot ─────────────────────────────────────────────────────────── */
html[data-theme="light"] .servers-count { background: rgba(15,23,42,.07) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   TICKETS LIST
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .tk-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .tk-stat:hover {
  border-color: rgba(15,23,42,.18) !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .tk-stat.active {
  border-color: #5865f2 !important;
  background: rgba(88,101,242,.07) !important;
}
html[data-theme="light"] .tk-stat-label { color: #94a3b8 !important; }

html[data-theme="light"] .tk-search {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.13) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .tk-search::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .tk-search:focus        { border-color: #5865f2 !important; }
html[data-theme="light"] .tk-select {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.13) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .tk-select option { background: #ffffff !important; color: #0f172a !important; }

html[data-theme="light"] .tk-item {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .tk-item:hover {
  background: #fafbff !important;
  border-color: rgba(88,101,242,.28) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .tk-item-subject { color: #0f172a !important; }
html[data-theme="light"] .tk-item-meta    { color: #94a3b8 !important; }
html[data-theme="light"] .tk-item-meta code { color: #94a3b8 !important; }
html[data-theme="light"] .tk-item-arrow  { color: #cbd5e1 !important; }
html[data-theme="light"] .tk-item:hover .tk-item-arrow { color: #5865f2 !important; }
html[data-theme="light"] .tk-live-badge {
  background: rgba(34,197,94,.1) !important;
  border-color: rgba(34,197,94,.3) !important;
}
html[data-theme="light"] .empty-dash    { color: #475569 !important; }
html[data-theme="light"] .empty-dash h3 { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   TICKET CHAT PAGE
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] body.ticket-chat-body {
  background: #eef1f7 !important;
  color: #0f172a !important;
}

/* Topbar */
html[data-theme="light"] .chat-topbar {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .chat-back          { color: #64748b !important; }
html[data-theme="light"] .chat-back:hover    { color: #0f172a !important; background: rgba(15,23,42,.05) !important; }
html[data-theme="light"] .chat-title         { color: #0f172a !important; }
html[data-theme="light"] .chat-action-btn    {
  background: transparent !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #64748b !important;
}
html[data-theme="light"] .chat-action-btn:hover {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.25) !important;
  background: rgba(15,23,42,.04) !important;
}

/* Colonne messages */
html[data-theme="light"] .chat-messages-col  {
  background: #f4f7fb !important;
  border-right: 1px solid rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .chat-messages::-webkit-scrollbar-thumb { background: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .chat-system-msg    { color: #94a3b8 !important; }
html[data-theme="light"] .chat-system-msg::before,
html[data-theme="light"] .chat-system-msg::after { background: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .chat-msg-avatar-placeholder { background: #e2e8f0 !important; color: #475569 !important; }
html[data-theme="light"] .chat-msg-author    { color: #0f172a !important; }
html[data-theme="light"] .chat-msg-time      { color: #94a3b8 !important; }
html[data-theme="light"] .chat-msg-content   { color: #1e293b !important; }
html[data-theme="light"] .chat-msg--note     { background: rgba(245,158,11,.07) !important; border-color: rgba(245,158,11,.2) !important; }

/* Input area */
html[data-theme="light"] .chat-input-area    { background: #ffffff !important; border-top: 1px solid rgba(15,23,42,.07) !important; }
html[data-theme="light"] .chat-tab           { background: transparent !important; border-color: rgba(15,23,42,.1) !important; color: #64748b !important; }
html[data-theme="light"] .chat-tab.active    { background: rgba(15,23,42,.07) !important; color: #0f172a !important; border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .chat-input         { background: #f4f6fb !important; border-color: rgba(15,23,42,.12) !important; color: #0f172a !important; }
html[data-theme="light"] .chat-input:focus   { border-color: rgba(88,101,242,.5) !important; box-shadow: 0 0 0 3px rgba(88,101,242,.1) !important; }
html[data-theme="light"] .chat-input::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .chat-status-btn    { background: rgba(15,23,42,.04) !important; border-color: rgba(15,23,42,.1) !important; color: #64748b !important; }
html[data-theme="light"] .chat-status-btn:hover { color: #0f172a !important; border-color: rgba(15,23,42,.22) !important; background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .chat-closed-bar    { border-top-color: rgba(15,23,42,.07) !important; color: #64748b !important; }

/* Sidebar info ticket */
html[data-theme="light"] .chat-sidebar                     { background: #ffffff !important; border-left: 1px solid rgba(15,23,42,.07) !important; }
html[data-theme="light"] .chat-sidebar::-webkit-scrollbar-thumb { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .chat-info-section                { border-bottom-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .chat-info-title                  { color: #94a3b8 !important; }
html[data-theme="light"] .chat-info-row span:first-child   { color: #64748b !important; }
html[data-theme="light"] .chat-info-value                  { color: #1e293b !important; }
html[data-theme="light"] .chat-info-select                 { background: #f4f6fb !important; border-color: rgba(15,23,42,.12) !important; color: #0f172a !important; }
html[data-theme="light"] .chat-info-select option          { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .chat-user-card                   { background: rgba(15,23,42,.03) !important; }
html[data-theme="light"] .chat-user-avatar-placeholder     { background: #e2e8f0 !important; color: #475569 !important; }
html[data-theme="light"] .chat-user-name                   { color: #0f172a !important; }
html[data-theme="light"] .chat-user-id                     { color: #94a3b8 !important; }
html[data-theme="light"] .chat-assign-wrap input           { background: #f4f6fb !important; border-color: rgba(15,23,42,.12) !important; color: #0f172a !important; }
html[data-theme="light"] .chat-discord-link                { background: rgba(88,101,242,.08) !important; border-color: rgba(88,101,242,.2) !important; color: #5865f2 !important; }
html[data-theme="light"] .chat-discord-link:hover          { background: rgba(88,101,242,.14) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   SCROLLBARS GLOBALES
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] ::-webkit-scrollbar            { width: 5px; height: 5px; }
html[data-theme="light"] ::-webkit-scrollbar-track      { background: transparent; }
html[data-theme="light"] ::-webkit-scrollbar-thumb      { background: rgba(15,23,42,.15); border-radius: 3px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,.28); }

/* ══════════════════════════════════════════════════════════════════════════
   BOUTONS TOGGLE THÈME
   ══════════════════════════════════════════════════════════════════════════ */

/* Bouton sidebar (sur fond dark navy) */
#themeToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.45);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  margin-bottom: 4px;
}
#themeToggle:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.18);
}
#themeToggle .theme-icon { font-size: 13px; line-height: 1; }

/* Bouton topbar (injecté par dashboard-extras.js) */
.theme-topbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all .15s;
  flex-shrink: 0;
}
.theme-topbar-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

/* En mode clair, le bouton topbar s'adapte */
html[data-theme="light"] .theme-topbar-btn {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .theme-topbar-btn:hover {
  background: rgba(15,23,42,.1) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.2) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TOGGLE SWITCH — état inactif lisible sur fond clair
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .toggle-thumb {
  background: #cbd5e1 !important;
}
html[data-theme="light"] .toggle-thumb::after {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.2) !important;
}
html[data-theme="light"] .toggle-switch input:checked + .toggle-thumb {
  background: #5865f2 !important;
}
html[data-theme="light"] .toggle-switch input:checked + .toggle-thumb::after {
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(88,101,242,.4) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONFIG CAT TABS (inline styles dans config.ejs — override par spécificité)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .config-cat-tab {
  border-color: rgba(15,23,42,.09) !important;
  background: transparent !important;
  color: #64748b !important;
}
html[data-theme="light"] .config-cat-tab:hover {
  background: rgba(15,23,42,.05) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.15) !important;
}
html[data-theme="light"] .config-cat-tab.active {
  background: rgba(88,101,242,.08) !important;
  border-color: rgba(88,101,242,.28) !important;
  color: #5865f2 !important;
}
html[data-theme="light"] .config-cat-count {
  background: rgba(15,23,42,.05) !important;
  color: #94a3b8 !important;
}
html[data-theme="light"] .config-cat-tab.active .config-cat-count {
  background: rgba(88,101,242,.12) !important;
  color: #5865f2 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTER BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .filter-btn {
  border-color: rgba(15,23,42,.12) !important;
  color: #64748b !important;
  background: transparent !important;
}
html[data-theme="light"] .filter-btn:hover {
  border-color: rgba(15,23,42,.22) !important;
  color: #0f172a !important;
  background: rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .filter-btn.active {
  background: #5865f2 !important;
  color: #ffffff !important;
  border-color: #5865f2 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   LOG ROWS / LEADERBOARD ROWS / WARN ROWS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .log-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .log-row:hover {
  border-color: rgba(15,23,42,.15) !important;
  background: #fafbff !important;
}
html[data-theme="light"] .log-badge {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #475569 !important;
}
html[data-theme="light"] .log-uid       { color: #64748b !important; }
html[data-theme="light"] .log-meta      { color: #94a3b8 !important; }
html[data-theme="light"] .log-reason-text { color: #64748b !important; }
html[data-theme="light"] .log-date-text  { color: #94a3b8 !important; }

html[data-theme="light"] .lb-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .lb-row:hover { border-color: rgba(15,23,42,.15) !important; }
html[data-theme="light"] .lb-rank-num  { color: #94a3b8 !important; }
html[data-theme="light"] .lb-username  { color: #0f172a !important; }
html[data-theme="light"] .podium-bar {
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .podium-rank  { color: #94a3b8 !important; }
html[data-theme="light"] .podium-name  { color: #64748b !important; }

html[data-theme="light"] .warn-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .warn-row:hover { border-color: rgba(15,23,42,.15) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   HOME PAGE — toutes les classes inline de home.ejs
   ══════════════════════════════════════════════════════════════════════════ */

/* Stat cards */
html[data-theme="light"] .home-stat-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .home-stat-card:hover {
  border-color: rgba(15,23,42,.18) !important;
  box-shadow: 0 6px 24px rgba(15,23,42,.1) !important;
}
html[data-theme="light"] .home-stat-num   { color: #0f172a !important; }
html[data-theme="light"] .home-stat-label { color: #94a3b8 !important; }
html[data-theme="light"] .home-stat-arrow { color: #cbd5e1 !important; }
html[data-theme="light"] .home-stat-card:hover .home-stat-arrow { color: #5865f2 !important; }

/* Hero */
html[data-theme="light"] .home-hero-avatar {
  border-color: rgba(15,23,42,.12) !important;
}
html[data-theme="light"] .home-hero-name { color: #0f172a !important; }
html[data-theme="light"] .home-hero-sub  { color: #94a3b8 !important; }
html[data-theme="light"] .home-live-badge {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #94a3b8 !important;
}
html[data-theme="light"] .home-live-badge.online {
  background: rgba(34,197,94,.07) !important;
  border-color: rgba(34,197,94,.2) !important;
  color: #16a34a !important;
}

/* Panels */
html[data-theme="light"] .home-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .home-panel-title { color: #94a3b8 !important; }
html[data-theme="light"] .home-panel-link  { color: #94a3b8 !important; }
html[data-theme="light"] .home-panel-link:hover { color: #0f172a !important; }
html[data-theme="light"] .home-empty-col   { color: #cbd5e1 !important; }

/* Log rows */
html[data-theme="light"] .home-log-row {
  border-bottom-color: rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .home-log-uid  { color: #64748b !important; }
html[data-theme="light"] .home-log-time { color: #94a3b8 !important; }

/* Quick links */
html[data-theme="light"] .home-quick {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.08) !important;
  color: #475569 !important;
}
html[data-theme="light"] .home-quick:hover {
  background: rgba(88,101,242,.07) !important;
  border-color: rgba(88,101,242,.2) !important;
  color: #5865f2 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   MISC — section titles, ob-banner, empty states, etc.
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .home-section-title { color: #94a3b8 !important; }
html[data-theme="light"] .config-title        { color: #0f172a !important; }
html[data-theme="light"] .config-subtitle     { color: #64748b !important; }

html[data-theme="light"] .ob-banner {
  background: linear-gradient(135deg, rgba(88,101,242,.08), rgba(124,58,237,.08)) !important;
  border-color: rgba(88,101,242,.2) !important;
}
html[data-theme="light"] .ob-banner-text strong { color: #0f172a !important; }
html[data-theme="light"] .ob-banner-text p      { color: #64748b !important; }

/* Pagination / boutons secondaires génériques */
html[data-theme="light"] .page-btn,
html[data-theme="light"] .pagination-btn {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .page-btn:hover,
html[data-theme="light"] .pagination-btn:hover {
  border-color: rgba(15,23,42,.22) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .page-btn.active,
html[data-theme="light"] .pagination-btn.active {
  background: #5865f2 !important;
  color: #ffffff !important;
  border-color: #5865f2 !important;
}

/* Tableaux génériques */
html[data-theme="light"] table { border-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] thead tr { background: #f4f6fb !important; }
html[data-theme="light"] thead th { color: #475569 !important; border-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] tbody tr { border-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] tbody tr:hover { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] tbody td { color: #1e293b !important; border-color: rgba(15,23,42,.06) !important; }

/* Badges de statut */
html[data-theme="light"] .status-badge,
html[data-theme="light"] .badge {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
}

/* Page transition overlay */
html[data-theme="light"] #page-transition-overlay {
  background: #eef1f7 !important;
}

/* Section labels (sidebar-like elements in content) */
html[data-theme="light"] .section-label,
html[data-theme="light"] .sidebar-section-label {
  color: #94a3b8 !important;
}

/* Notifications / alertes */
html[data-theme="light"] .alert,
html[data-theme="light"] .notice {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #1e293b !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL SYSTEM (modal.css — utilisé sur toutes les pages)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .rr-modal-overlay {
  background: rgba(15,23,42,.38) !important;
}
html[data-theme="light"] .modal-dialog {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 40px 100px rgba(15,23,42,.18), 0 0 0 1px rgba(88,101,242,.08) !important;
  scrollbar-color: rgba(15,23,42,.12) transparent !important;
}
html[data-theme="light"] .modal-dialog::-webkit-scrollbar-thumb { background: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .modal-header {
  background: #ffffff !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .modal-title   { color: #0f172a !important; }
html[data-theme="light"] .modal-label   { color: #475569 !important; }
html[data-theme="light"] .modal-body    { color: #1e293b !important; }
html[data-theme="light"] .modal-footer  { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .modal-section-title { color: #94a3b8 !important; }
html[data-theme="light"] .modal-input,
html[data-theme="light"] .modal-select,
html[data-theme="light"] .modal-textarea {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .modal-input::placeholder,
html[data-theme="light"] .modal-textarea::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .modal-input:focus,
html[data-theme="light"] .modal-select:focus {
  border-color: rgba(88,101,242,.5) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.1) !important;
}
html[data-theme="light"] .modal-select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .modal-checkbox-row span { color: #475569 !important; }
html[data-theme="light"] .modal-form-group label { color: #475569 !important; }
html[data-theme="light"] .modal-separator { border-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .rr-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .rr-input:focus { border-color: rgba(88,101,242,.5) !important; }
html[data-theme="light"] .rr-toast { background: #ffffff !important; border-color: rgba(15,23,42,.1) !important; color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   POLLS (polls.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .poll-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .poll-stat:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .poll-stat.active {
  border-color: rgba(88,101,242,.3) !important;
  background: rgba(88,101,242,.05) !important;
}
html[data-theme="light"] .poll-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .poll-card:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .poll-question   { color: #0f172a !important; }
html[data-theme="light"] .poll-meta       { color: #94a3b8 !important; }
html[data-theme="light"] .poll-opt-text   { color: #1e293b !important; }
html[data-theme="light"] .poll-option-label { color: #475569 !important; }
html[data-theme="light"] .poll-option-count { color: #94a3b8 !important; }
html[data-theme="light"] .poll-bar-track  { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .poll-toggle-track {
  background: #cbd5e1 !important;
  border-color: rgba(15,23,42,.12) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   GIVEAWAY (giveaway.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .gw-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .gw-stat:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .gw-stat.active {
  border-color: rgba(88,101,242,.3) !important;
  background: rgba(88,101,242,.05) !important;
}
html[data-theme="light"] .gw-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .gw-card:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .gw-prize   { color: #0f172a !important; }
html[data-theme="light"] .gw-desc    { color: #475569 !important; }
html[data-theme="light"] .gw-meta    { color: #94a3b8 !important; }
html[data-theme="light"] .gw-date    { color: #94a3b8 !important; }
html[data-theme="light"] .gw-info    { color: #475569 !important; }
html[data-theme="light"] .gw-info-row { border-bottom-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .gw-winner  { background: rgba(34,197,94,.05) !important; border-color: rgba(34,197,94,.15) !important; }
html[data-theme="light"] .gw-card-left,
html[data-theme="light"] .gw-card-right { border-color: rgba(15,23,42,.07) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MDT — Mobile Data Terminal (pages roleplay)
   Thème bleu conservé, adapté fond clair
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .mdt-page {
  background: #f0f4ff !important;
  color: #1e293b !important;
}
html[data-theme="light"] .mdt-topbar {
  background: #ffffff !important;
  border-bottom-color: rgba(59,130,246,.2) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .mdt-topbar-logo    { color: #2563eb !important; }
html[data-theme="light"] .mdt-topbar-system  { color: rgba(37,99,235,.55) !important; }
html[data-theme="light"] .mdt-topbar-clock   { color: #2563eb !important; }
html[data-theme="light"] .mdt-topbar-user    { color: #475569 !important; }
html[data-theme="light"] .mdt-topbar-avatar  { border-color: rgba(59,130,246,.25) !important; }
html[data-theme="light"] .mdt-sidebar {
  background: #ffffff !important;
  border-right-color: rgba(59,130,246,.12) !important;
}
html[data-theme="light"] .mdt-sidebar-section { color: rgba(37,99,235,.45) !important; }
html[data-theme="light"] .mdt-sidebar-item   { color: #64748b !important; }
html[data-theme="light"] .mdt-sidebar-item:hover {
  background: rgba(59,130,246,.07) !important;
  color: #2563eb !important;
}
html[data-theme="light"] .mdt-sidebar-item.active {
  background: rgba(59,130,246,.1) !important;
  color: #1d4ed8 !important;
  border-right-color: #3b82f6 !important;
}
html[data-theme="light"] .mdt-sidebar-divider { background: rgba(59,130,246,.1) !important; }
html[data-theme="light"] .mdt-main-title    { color: #1e40af !important; }
html[data-theme="light"] .mdt-main-subtitle { color: rgba(37,99,235,.55) !important; }
html[data-theme="light"] .mdt-card {
  background: #ffffff !important;
  border-color: rgba(59,130,246,.14) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .mdt-card-header {
  background: rgba(59,130,246,.04) !important;
  border-bottom-color: rgba(59,130,246,.1) !important;
}
html[data-theme="light"] .mdt-card-title { color: #1d4ed8 !important; }
html[data-theme="light"] .mdt-card-body  { color: #1e293b !important; }
html[data-theme="light"] .mdt-stat {
  background: #ffffff !important;
  border-color: rgba(59,130,246,.14) !important;
}
html[data-theme="light"] .mdt-stat-label { color: rgba(37,99,235,.5) !important; }
html[data-theme="light"] .mdt-input,
html[data-theme="light"] .mdt-select,
html[data-theme="light"] .mdt-textarea {
  background: #f4f6fb !important;
  border-color: rgba(59,130,246,.2) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .mdt-badge {
  background: rgba(59,130,246,.08) !important;
  border-color: rgba(59,130,246,.2) !important;
  color: #2563eb !important;
}
html[data-theme="light"] .mdt-table-row:hover { background: rgba(59,130,246,.04) !important; }
html[data-theme="light"] .mdt-table thead th {
  color: rgba(37,99,235,.6) !important;
  border-bottom-color: rgba(59,130,246,.12) !important;
}
html[data-theme="light"] .mdt-table td { color: #1e293b !important; border-color: rgba(59,130,246,.08) !important; }
html[data-theme="light"] .mdt-btn      { border-color: rgba(59,130,246,.25) !important; color: #2563eb !important; }
html[data-theme="light"] .mdt-btn:hover { background: rgba(59,130,246,.08) !important; }
html[data-theme="light"] .mdt-modal-overlay { background: rgba(15,23,42,.35) !important; }
html[data-theme="light"] .mdt-modal {
  background: #ffffff !important;
  border-color: rgba(59,130,246,.2) !important;
}
html[data-theme="light"] .mdt-modal-header { background: rgba(59,130,246,.04) !important; border-bottom-color: rgba(59,130,246,.1) !important; }
html[data-theme="light"] .mdt-modal-title  { color: #1d4ed8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   WORKFLOW EDITOR (workflows.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .editor-body { background: #eef1f7 !important; }
html[data-theme="light"] .editor-topbar {
  background: rgba(255,255,255,.97) !important;
  border-bottom-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .editor-title-input { color: #0f172a !important; background: transparent !important; }
html[data-theme="light"] .editor-title-input:hover { background: rgba(15,23,42,.04) !important; border-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .editor-title-input:focus { background: rgba(15,23,42,.04) !important; border-color: rgba(88,101,242,.4) !important; }
html[data-theme="light"] .editor-canvas-wrap { background: #eef1f7 !important; }
html[data-theme="light"] .editor-palette,
html[data-theme="light"] .editor-config-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 2px 12px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .editor-status-label { color: #64748b !important; }
html[data-theme="light"] .editor-zoom-label   { color: #94a3b8 !important; }
html[data-theme="light"] .editor-topbar-divider { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .editor-back { color: #64748b !important; }
html[data-theme="light"] .editor-back:hover { color: #0f172a !important; }
html[data-theme="light"] .wf-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .wf-card:hover { border-color: rgba(88,101,242,.25) !important; box-shadow: 0 4px 16px rgba(15,23,42,.1) !important; }
html[data-theme="light"] .wf-card-name   { color: #0f172a !important; }
html[data-theme="light"] .wf-card-desc   { color: #64748b !important; }
html[data-theme="light"] .wf-card-stat   { color: #94a3b8 !important; }
html[data-theme="light"] .wf-card-stat strong { color: #475569 !important; }
html[data-theme="light"] .wf-card-footer { border-top-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .wf-card-preview { background: rgba(15,23,42,.03) !important; border-top-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .wf-dropdown {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  box-shadow: 0 8px 30px rgba(15,23,42,.12) !important;
}
html[data-theme="light"] .wf-dropdown-item { color: #475569 !important; }
html[data-theme="light"] .wf-dropdown-item:hover { background: rgba(15,23,42,.05) !important; color: #0f172a !important; }
html[data-theme="light"] .wf-empty { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   EVENTS CHECK-IN
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .checkin-title    { color: #0f172a !important; }
html[data-theme="light"] .checkin-subtitle { color: #64748b !important; }
html[data-theme="light"] .checkin-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 4px 20px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .checkin-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .checkin-slot {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .checkin-slot-time { color: #0f172a !important; }
html[data-theme="light"] .checkin-slot-info { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ANNONCES / ANNOUNCEMENTS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ann-stat-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .ann-stat-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .ann-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .ann-card:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .ann-table th { color: #94a3b8 !important; border-bottom-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .ann-table td { color: #1e293b !important; border-bottom-color: rgba(15,23,42,.05) !important; }
html[data-theme="light"] .ann-table tr:hover td { background: rgba(15,23,42,.02) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ANALYTICS & CHARTS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .chart-wrap,
html[data-theme="light"] .analytics-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .chart-label   { color: #94a3b8 !important; }
html[data-theme="light"] .chart-value   { color: #0f172a !important; }
html[data-theme="light"] .bar-list-item { border-bottom-color: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .bar-track     { background: rgba(15,23,42,.07) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   RÉACTIONS ROLES / REACTION ROLES
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .rr-stat {
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .rr-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .rr-panel:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .rr-panel-name  { color: #0f172a !important; }
html[data-theme="light"] .rr-panel-title { color: #0f172a !important; }
html[data-theme="light"] .rr-panel-meta  { color: #94a3b8 !important; }
html[data-theme="light"] .rr-entries { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .rr-entry {
  background: rgba(15,23,42,.02) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .rr-entry:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .rr-entry-label { color: #0f172a !important; }
html[data-theme="light"] .rr-no-entries a { color: #0f172a !important; }
html[data-theme="light"] .rr-add-entry-btn {
  border-color: rgba(15,23,42,.18) !important;
  color: #64748b !important;
}
html[data-theme="light"] .rr-add-entry-btn:hover {
  border-color: rgba(15,23,42,.3) !important;
  color: #0f172a !important;
  background: rgba(15,23,42,.03) !important;
}
html[data-theme="light"] .rr-select {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .rr-select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .rr-role-chip {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #475569 !important;
}
html[data-theme="light"] .rr-role-chip:hover { background: rgba(88,101,242,.08) !important; border-color: rgba(88,101,242,.2) !important; color: #5865f2 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   NIVEAUX / LEVELS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .level-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .xp-bar-track { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .level-num    { color: #0f172a !important; }
html[data-theme="light"] .level-label  { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   WARNS STATS
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .warns-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .warns-stat:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .warn-reason { color: #475569 !important; }
html[data-theme="light"] .warn-date   { color: #94a3b8 !important; }
html[data-theme="light"] .warn-user   { color: #0f172a !important; }
html[data-theme="light"] .warn-mod    { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   CUSTOM COMMANDS / LINKS / SCHEDULED
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .cmd-row,
html[data-theme="light"] .link-row,
html[data-theme="light"] .sched-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .cmd-row:hover,
html[data-theme="light"] .link-row:hover,
html[data-theme="light"] .sched-row:hover { border-color: rgba(15,23,42,.16) !important; background: #fafbff !important; }
html[data-theme="light"] .cmd-name,
html[data-theme="light"] .cmd-response { color: #1e293b !important; }
html[data-theme="light"] .cmd-meta { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   UNIVERSAL — corrections résiduelles pour les éléments non couverts
   ══════════════════════════════════════════════════════════════════════════ */

/* Séparateurs et dividers */
html[data-theme="light"] .sidebar-divider {
  background: rgba(15,23,42,.08) !important;
}

/* Code inline */
html[data-theme="light"] code {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] pre {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #1e293b !important;
}

/* Tooltips */
html[data-theme="light"] [data-tooltip]:before,
html[data-theme="light"] .tooltip {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* Loader / spinner overlay */
html[data-theme="light"] .loading-overlay { background: rgba(238,241,247,.8) !important; }
html[data-theme="light"] .loading-spinner { border-top-color: #5865f2 !important; border-color: rgba(15,23,42,.1) !important; }

/* Notifications toast (live-toast est déjà géré, ceci couvre d'autres variantes) */
html[data-theme="light"] .toast,
html[data-theme="light"] .notification-toast {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(15,23,42,.12) !important;
}

/* Tags / chips génériques */
html[data-theme="light"] .tag,
html[data-theme="light"] .chip {
  background: rgba(15,23,42,.06) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #475569 !important;
}

/* Tables génériques */
html[data-theme="light"] .data-table th,
html[data-theme="light"] .table th {
  background: #f4f6fb !important;
  color: #64748b !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .data-table td,
html[data-theme="light"] .table td {
  color: #1e293b !important;
  border-color: rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .data-table tr:hover td,
html[data-theme="light"] .table tr:hover td { background: rgba(15,23,42,.02) !important; }

/* Breadcrumb / nav secondaire */
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .nav-secondary { color: #94a3b8 !important; }
html[data-theme="light"] .breadcrumb a   { color: #5865f2 !important; }

/* Compteurs / badges numériques */
html[data-theme="light"] .count-badge {
  background: rgba(15,23,42,.07) !important;
  color: #64748b !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RADIO PAGE (radio.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .radio-main {
  background: #eef1f7 !important;
}
html[data-theme="light"] .radio-player {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 2px 16px rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .radio-player::before {
  background: radial-gradient(circle at 30% 50%, rgba(88,101,242,.04) 0%, transparent 70%) !important;
}
html[data-theme="light"] .radio-now-playing-bar {
  background: rgba(15,23,42,.03) !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .radio-npb-title  { color: #0f172a !important; }
html[data-theme="light"] .radio-npb-mute {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .radio-npb-mute:hover {
  background: rgba(15,23,42,.09) !important;
  border-color: rgba(15,23,42,.2) !important;
}
html[data-theme="light"] .radio-track-title  { color: #0f172a !important; }
html[data-theme="light"] .radio-track-source { color: #94a3b8 !important; }
html[data-theme="light"] .radio-track-thumb {
  border-color: rgba(15,23,42,.1) !important;
  background: rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .radio-time         { color: #94a3b8 !important; }
html[data-theme="light"] .radio-progress-track { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .radio-btn--sm {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
}
html[data-theme="light"] .radio-btn--sm:hover { background: rgba(15,23,42,.12) !important; color: #0f172a !important; }
html[data-theme="light"] .radio-vol-slider { background: rgba(15,23,42,.14) !important; }
html[data-theme="light"] .radio-vol-val    { color: #94a3b8 !important; }
html[data-theme="light"] .radio-playlist-panel,
html[data-theme="light"] .radio-info-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 4px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .radio-panel-title  { color: #94a3b8 !important; }
html[data-theme="light"] .radio-playlist {
  scrollbar-color: rgba(15,23,42,.1) transparent !important;
}
html[data-theme="light"] .radio-empty        { color: #94a3b8 !important; }
html[data-theme="light"] .radio-track-row:hover { background: rgba(15,23,42,.04) !important; }
html[data-theme="light"] .radio-idx-num       { color: #cbd5e1 !important; }
html[data-theme="light"] .radio-track-row-title { color: #1e293b !important; }
html[data-theme="light"] .radio-track-row-url   { color: #94a3b8 !important; }
html[data-theme="light"] .radio-track-thumb-sm  { background: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .radio-track-vote {
  border-color: rgba(15,23,42,.12) !important;
  color: #94a3b8 !important;
}
html[data-theme="light"] .radio-track-del {
  border-color: rgba(15,23,42,.09) !important;
  color: #cbd5e1 !important;
}
html[data-theme="light"] .radio-add-track { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .radio-url-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .radio-url-input::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .radio-url-input:focus { border-color: rgba(88,101,242,.45) !important; }
html[data-theme="light"] .radio-info-row     { color: #64748b !important; }
html[data-theme="light"] .radio-info-row span:last-child { color: #0f172a !important; }
html[data-theme="light"] .radio-info-rows    { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .radio-shortcut     { color: #94a3b8 !important; }
html[data-theme="light"] .radio-shortcut kbd {
  background: rgba(15,23,42,.07) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #64748b !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   AI CENTER (ai-center.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ai-header { border-bottom-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .ai-title {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html[data-theme="light"] .ai-subtitle    { color: #94a3b8 !important; }
html[data-theme="light"] .ai-update-time { color: #94a3b8 !important; }
html[data-theme="light"] .ai-raid-body span { color: #64748b !important; }
html[data-theme="light"] .ai-kpi {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .ai-kpi:hover { box-shadow: 0 4px 16px rgba(15,23,42,.1) !important; }
html[data-theme="light"] .ai-kpi-label { color: #94a3b8 !important; }
html[data-theme="light"] .ai-kpi-num   { color: #0f172a !important; }
html[data-theme="light"] .ai-kpi-sub   { color: #94a3b8 !important; }
html[data-theme="light"] .ai-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .ai-panel-title { color: #94a3b8 !important; }
html[data-theme="light"] .ai-panel-sub   { color: #94a3b8 !important; }
html[data-theme="light"] .ai-search {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ai-search:focus { border-color: rgba(88,101,242,.45) !important; }
html[data-theme="light"] .ai-filter-select {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ai-filter-select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .ai-member-row {
  background: rgba(15,23,42,.02) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .ai-member-row:hover {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.14) !important;
}
html[data-theme="light"] .ai-score-badge::before { background: #ffffff !important; }
html[data-theme="light"] .ai-score-num   { color: #0f172a !important; }
html[data-theme="light"] .ai-member-id   { color: #64748b !important; }
html[data-theme="light"] .ai-score-bar-wrap { background: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .ai-tl-item:hover  { background: rgba(15,23,42,.04) !important; }
html[data-theme="light"] .ai-tl-uid   { color: #94a3b8 !important; }
html[data-theme="light"] .ai-tl-value {
  background: rgba(15,23,42,.07) !important;
  color: #64748b !important;
}
html[data-theme="light"] .ai-tl-time   { color: #94a3b8 !important; }
html[data-theme="light"] .ai-tl-label  { color: #1e293b !important; }
html[data-theme="light"] .ai-dl-row    { color: #64748b !important; }
html[data-theme="light"] .ai-dl-row strong { color: #0f172a !important; }
html[data-theme="light"] .ai-donut-label { color: #94a3b8 !important; }
html[data-theme="light"] .ai-empty     { color: #94a3b8 !important; }
html[data-theme="light"] .rr-toast {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 20px rgba(15,23,42,.12) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PERMISSION AUDIT (permission-audit.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .audit-sum-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .audit-sum-card:hover {
  background: #fafbff !important;
  border-color: rgba(15,23,42,.18) !important;
}
html[data-theme="light"] .audit-sum-card.active { border-color: var(--card-color, rgba(88,101,242,.4)) !important; }
html[data-theme="light"] .audit-tabs { border-bottom-color: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .audit-tab  { color: #64748b !important; }
html[data-theme="light"] .audit-tab:hover  { color: #1e293b !important; }
html[data-theme="light"] .audit-tab.active { color: #0f172a !important; border-bottom-color: #5865f2 !important; }
html[data-theme="light"] .anomaly-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .anomaly-title { color: #0f172a !important; }
html[data-theme="light"] .anomaly-desc  { color: #64748b !important; }
html[data-theme="light"] .roles-table th { border-bottom-color: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .roles-table td {
  color: #1e293b !important;
  border-bottom-color: rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .roles-table tr:hover td { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] .member-risk-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mr-name    { color: #0f172a !important; }
html[data-theme="light"] #auditLoading { background: rgba(238,241,247,.88) !important; color: #475569 !important; }
html[data-theme="light"] .audit-spinner { border-color: rgba(15,23,42,.1) !important; border-top-color: #5865f2 !important; }
html[data-theme="light"] .audit-empty h3 { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ACHIEVEMENTS (achievements.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ach-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .ach-stat-pill .val { color: #000000 !important; }
html[data-theme="light"] .ach-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .ach-name       { color: #0f172a !important; }
html[data-theme="light"] .ach-desc       { color: #64748b !important; }
html[data-theme="light"] .ach-meta       { color: #94a3b8 !important; }
html[data-theme="light"] .ach-btn {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .ach-btn:hover { background: rgba(15,23,42,.09) !important; color: #0f172a !important; }
html[data-theme="light"] .ach-filter-btn {
  border-color: rgba(15,23,42,.12) !important;
  color: #64748b !important;
}
html[data-theme="light"] .ach-filter-btn:hover { border-color: rgba(15,23,42,.22) !important; color: #0f172a !important; }
html[data-theme="light"] .ach-filter-btn.active {
  background: #5865f2 !important;
  border-color: #5865f2 !important;
  color: #ffffff !important;
}
html[data-theme="light"] .ach-form-row select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .ach-empty h3 { color: #0f172a !important; }
html[data-theme="light"] .ach-unlock-count { color: #64748b !important; }
html[data-theme="light"] .pub-badge-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .pub-badge-name { color: #0f172a !important; }
html[data-theme="light"] .pub-badge-desc { color: #64748b !important; }
html[data-theme="light"] .pub-top-item {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .pub-top-name  { color: #0f172a !important; }
html[data-theme="light"] .pub-top-rank  { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   INCIDENTS (incidents.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .inc-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inc-stat-label { color: #94a3b8 !important; }
html[data-theme="light"] .inc-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .inc-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .inc-card-title { color: #0f172a !important; }
html[data-theme="light"] .inc-card-desc  { color: #475569 !important; }
html[data-theme="light"] .inc-card-meta  { color: #94a3b8 !important; }
html[data-theme="light"] .inc-info-panel {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inc-info-header { color: #94a3b8 !important; }
html[data-theme="light"] .inc-info-key    { color: #64748b !important; }
html[data-theme="light"] .inc-info-val    { color: #0f172a !important; }
html[data-theme="light"] .inc-timeline-item { border-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .inc-timeline-author { color: #475569 !important; }
html[data-theme="light"] .inc-timeline-text   { color: #1e293b !important; }
html[data-theme="light"] .inc-timeline-time   { color: #94a3b8 !important; }
html[data-theme="light"] .inc-pm-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inc-pm-header { color: #94a3b8 !important; }
html[data-theme="light"] .inc-pm-label  { color: #64748b !important; }
html[data-theme="light"] .inc-pm-textarea {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .inc-update-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inc-update-title    { color: #0f172a !important; }
html[data-theme="light"] .inc-update-textarea,
html[data-theme="light"] .inc-update-select {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .inc-update-footer { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .inc-empty-title { color: #0f172a !important; }
html[data-theme="light"] .inc-empty-sub   { color: #94a3b8 !important; }
html[data-theme="light"] .inc-filter-bar .filter-btn { border-color: rgba(15,23,42,.12) !important; color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ANALYTICS (analytics.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .a-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .a-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .bar-item-bar-wrap { background: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .a-stat-num  { color: #0f172a !important; }
html[data-theme="light"] .a-stat-label { color: #94a3b8 !important; }
html[data-theme="light"] .a-section-title { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MESSAGE TEMPLATES (message-templates.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .mt-cat-btn {
  background: rgba(15,23,42,.03) !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #64748b !important;
}
html[data-theme="light"] .mt-cat-btn:hover { background: rgba(15,23,42,.06) !important; color: #0f172a !important; }
html[data-theme="light"] .mt-cat-btn.active {
  background: rgba(88,101,242,.08) !important;
  border-color: rgba(88,101,242,.25) !important;
  color: #5865f2 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .mt-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}
html[data-theme="light"] .mt-card:hover { border-color: rgba(15,23,42,.18) !important; background: #fafbff !important; }
html[data-theme="light"] .mt-act-btn {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #64748b !important;
}
html[data-theme="light"] .mt-act-btn:hover { background: rgba(15,23,42,.1) !important; color: #0f172a !important; }
html[data-theme="light"] .mt-preview {
  background: rgba(15,23,42,.02) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .mt-embed-preview {
  background: #f4f6fb !important;
  border-left-color: #5865f2 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TICKETS (tickets.css — compléments aux overrides existants)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .tk-stat.active {
  border-color: rgba(88,101,242,.3) !important;
  background: rgba(88,101,242,.05) !important;
}
html[data-theme="light"] .chat-tab {
  background: transparent !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #64748b !important;
}
html[data-theme="light"] .chat-tab.active {
  background: rgba(15,23,42,.07) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.18) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ROLEREACT (rolereact.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .rr-panel-header { border-bottom-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .rr-panel-title  { color: #0f172a !important; }
html[data-theme="light"] .rr-panel-desc   { color: #64748b !important; }
html[data-theme="light"] .rr-role-row {
  background: rgba(15,23,42,.02) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .rr-role-row:hover { background: rgba(15,23,42,.04) !important; }
html[data-theme="light"] .rr-emoji-preview {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.1) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL RADIO WIDGET (global-radio.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .gr-widget {
  background: rgba(255,255,255,.97) !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .gr-track-title  { color: #0f172a !important; }
html[data-theme="light"] .gr-track-source { color: #94a3b8 !important; }
html[data-theme="light"] .gr-progress-track { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .gr-btn {
  background: rgba(15,23,42,.06) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #475569 !important;
}
html[data-theme="light"] .gr-btn:hover { background: rgba(15,23,42,.1) !important; color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   EMBEDS BUILDER (embeds.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .embed-builder {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .embed-field-row {
  background: rgba(15,23,42,.02) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .embed-preview {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .embed-preview-bar { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .embed-section-title { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MEDIA VAULT (media-vault.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .mv-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mv-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .mv-meta   { color: #94a3b8 !important; }
html[data-theme="light"] .mv-name   { color: #0f172a !important; }
html[data-theme="light"] .mv-toolbar {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUDIT LOG (audit.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .audit-log-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .audit-log-row:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .audit-log-action { color: #0f172a !important; }
html[data-theme="light"] .audit-log-meta   { color: #94a3b8 !important; }
html[data-theme="light"] .audit-log-detail { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   DNA NETWORK (dna.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .dna-controls {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .dna-sidebar-left {
  background: #ffffff !important;
  border-right: 1px solid rgba(15,23,42,.09) !important;
}
html[data-theme="light"] #nodePanel {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .np-stat {
  background: rgba(15,23,42,.04) !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  color: #475569 !important;
}
html[data-theme="light"] .dna-search {
  background: #f4f6fb !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .hub-name,
html[data-theme="light"] .dna-stat-val { color: #0f172a !important; }
html[data-theme="light"] .dna-node-label { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ONBOARDING (onboarding.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .onboarding-page { background: #eef1f7 !important; }
html[data-theme="light"] .ob-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-card-title,
html[data-theme="light"] .ob-step-title { color: #0f172a !important; }
html[data-theme="light"] .ob-card-desc,
html[data-theme="light"] .ob-step-desc  { color: #475569 !important; }
html[data-theme="light"] .ob-dot-circle { background: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .ob-select,
html[data-theme="light"] .ob-input {
  background: #f4f6fb !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-feature-card {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .ob-feature-title { color: #0f172a !important; }
html[data-theme="light"] .ob-feature-desc  { color: #64748b !important; }
html[data-theme="light"] .ob-banner {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PARTNERS (partners.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .partners-tab.active {
  color: #000000 !important;
}
html[data-theme="light"] .partners-filter-btn.active {
  color: #000000 !important;
}
html[data-theme="light"] .partners-modal,
html[data-theme="light"] .partner-modal-inner {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .partner-card,
html[data-theme="light"] .pub-partner-card,
html[data-theme="light"] .apply-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .partner-card:hover,
html[data-theme="light"] .pub-partner-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .partner-name  { color: #0f172a !important; }
html[data-theme="light"] .partner-desc  { color: #475569 !important; }
html[data-theme="light"] .partner-badge { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   PLUGIN MARKETPLACE (plugin-marketplace.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .mp-page { background: #eef1f7 !important; }
html[data-theme="light"] .mp-topbar {
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .mp-search-input {
  background: #f4f6fb !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mp-plugin-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mp-plugin-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .mp-plugin-name { color: #0f172a !important; }
html[data-theme="light"] .mp-plugin-desc { color: #475569 !important; }
html[data-theme="light"] .mp-code-preview {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #1e293b !important;
}
html[data-theme="light"] .mp-submit-form-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mp-sidebar,
html[data-theme="light"] .mp-filter-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   STREAMS (streams.css) — CSS vars overridden in variable block
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .streams-chart-wrap {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .streams-history-thead {
  background: rgba(15,23,42,.04) !important;
  color: #475569 !important;
}
html[data-theme="light"] .streams-history-row { color: #0f172a !important; }
html[data-theme="light"] .streams-history-row:hover { background: rgba(15,23,42,.03) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   JURY (jury.css) — CSS vars overridden in variable block
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .jury-vote-page,
html[data-theme="light"] .jury-public-page { background: #eef1f7 !important; }
html[data-theme="light"] .jury-evidence-text {
  background: #f4f6fb !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .jury-vote-title,
html[data-theme="light"] .jury-case-title { color: #0f172a !important; }
html[data-theme="light"] .jury-case-meta  { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ALT DETECTOR (alt-detector.css) — CSS vars overridden in variable block
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .alt-weights-info {
  background: rgba(88,101,242,.06) !important;
  border-color: rgba(88,101,242,.18) !important;
  color: #475569 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   HONEYPOT (honeypot.css) — CSS vars overridden in variable block
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .hp-chart-wrap {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .hp-lure-msg {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .hp-toggle-slider { background: #cbd5e1 !important; }
html[data-theme="light"] .hp-stat-num, .hp-section-title, .hp-channel-name { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   INVESTIGATION (investigation.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .inv-profile-header,
html[data-theme="light"] .inv-kpi,
html[data-theme="light"] .inv-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inv-kpi:hover    { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .inv-kpi-val      { color: #0f172a !important; }
html[data-theme="light"] .inv-kpi-label    { color: #64748b !important; }
html[data-theme="light"] .inv-panel-title  { color: #0f172a !important; }
html[data-theme="light"] .inv-field-label  { color: #64748b !important; }
html[data-theme="light"] .inv-field-value  { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   SIMULATOR (simulator.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .sim-controls,
html[data-theme="light"] .sim-kpi-card,
html[data-theme="light"] .sim-panel {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .sim-controls { border-bottom: 1px solid rgba(15,23,42,.09) !important; }
html[data-theme="light"] .sim-kpi-val   { color: #0f172a !important; }
html[data-theme="light"] .sim-kpi-label { color: #64748b !important; }
html[data-theme="light"] .sim-panel-title { color: #0f172a !important; }
html[data-theme="light"] .sim-log-row {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.07) !important;
  color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TICKET REPLAY (ticket-replay.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ticket-replay-body { background: #eef1f7 !important; }
html[data-theme="light"] .tr-sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .tr-sidebar-header { color: #0f172a !important; }
html[data-theme="light"] .tr-message-row {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .tr-silence-label {
  background: #f4f6fb !important;
  color: #64748b !important;
}
html[data-theme="light"] .tr-author  { color: #0f172a !important; }
html[data-theme="light"] .tr-content { color: #475569 !important; }
html[data-theme="light"] .tr-avatar-fallback {
  background: rgba(88,101,242,.12) !important;
  color: #5865f2 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   MARKETPLACE ADMIN (marketplace-admin.css)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .amkt-modal {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .amkt-modal-title { color: #0f172a !important; }
html[data-theme="light"] .amkt-fg select option { background: #ffffff !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL (admin.css)
   ══════════════════════════════════════════════════════════════════════════ */

/* Body */
html[data-theme="light"] .admin-body { background: #eef1f7 !important; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .admin-brand {
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .admin-brand-text  { color: #0f172a !important; }
html[data-theme="light"] .admin-brand-badge {
  background: rgba(220,38,38,.12) !important;
  color: #dc2626 !important;
}
html[data-theme="light"] .admin-nav-section { color: #94a3b8 !important; }
html[data-theme="light"] .admin-nav-item    { color: #475569 !important; }
html[data-theme="light"] .admin-nav-item:hover {
  background: rgba(15,23,42,.05) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .admin-nav-item.active {
  background: rgba(88,101,242,.08) !important;
  color: #5865f2 !important;
}
html[data-theme="light"] .admin-nav-icon { opacity: .7 !important; }
html[data-theme="light"] .admin-nav-item.active .admin-nav-icon { opacity: 1 !important; }
html[data-theme="light"] .admin-nav-badge {
  background: rgba(15,23,42,.07) !important;
  color: #94a3b8 !important;
}
html[data-theme="light"] .admin-sidebar-footer {
  border-top-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .admin-user-card {
  background: rgba(15,23,42,.03) !important;
}
html[data-theme="light"] .admin-user-avatar {
  border-color: rgba(15,23,42,.12) !important;
}
html[data-theme="light"] .admin-user-name { color: #475569 !important; }
html[data-theme="light"] .admin-logout    { color: #94a3b8 !important; }
html[data-theme="light"] .admin-logout:hover { color: #475569 !important; }

/* ── Topbar ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-topbar {
  background: rgba(255,255,255,.97) !important;
  border-bottom-color: rgba(15,23,42,.08) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .admin-page-title { color: #0f172a !important; }
html[data-theme="light"] #adminClock       { color: #94a3b8 !important; }

/* Lang picker dans le topbar admin */
html[data-theme="light"] .admin-topbar #themeToggle {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .admin-topbar #themeToggle:hover {
  background: rgba(15,23,42,.1) !important;
  color: #0f172a !important;
  border-color: rgba(15,23,42,.2) !important;
}
html[data-theme="light"] .admin-topbar .dash-lang-btn {
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .admin-topbar .dash-lang-btn:hover,
html[data-theme="light"] .admin-topbar .dash-lang-picker.open .dash-lang-btn {
  background: rgba(15,23,42,.09) !important;
  border-color: rgba(15,23,42,.22) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .admin-topbar .dash-lang-dropdown {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 8px 32px rgba(15,23,42,.12) !important;
}
html[data-theme="light"] .admin-topbar .dash-lang-dropdown-header {
  color: #94a3b8 !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .admin-topbar .dash-lang-option { color: #475569 !important; }
html[data-theme="light"] .admin-topbar .dash-lang-option:hover {
  background: rgba(15,23,42,.05) !important;
  color: #0f172a !important;
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-stat-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .admin-stat-card:hover { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .admin-stat-label { color: #94a3b8 !important; }
html[data-theme="light"] .admin-stat-value { color: #0f172a !important; }
html[data-theme="light"] .admin-stat-sub   { color: #94a3b8 !important; }
html[data-theme="light"] .admin-stat-card--green .admin-stat-value  { color: #16a34a !important; }
html[data-theme="light"] .admin-stat-card--red .admin-stat-value    { color: #dc2626 !important; }
html[data-theme="light"] .admin-stat-card--yellow .admin-stat-value { color: #d97706 !important; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-table-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .admin-table-header {
  border-bottom-color: rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .admin-table-title { color: #0f172a !important; }
html[data-theme="light"] .admin-table-count { color: #94a3b8 !important; }
html[data-theme="light"] .admin-table th {
  color: #64748b !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .admin-table td {
  color: #1e293b !important;
  border-bottom-color: rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .admin-table tr:hover td { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] .admin-table td code {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
}

/* ── Action badges ────────────────────────────────────────────────────────── */
html[data-theme="light"] .action-badge {
  background: rgba(15,23,42,.06) !important;
  color: #475569 !important;
  border-color: rgba(15,23,42,.12) !important;
}

/* ── Search ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-search {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .admin-search:focus {
  border-color: rgba(88,101,242,.4) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.1) !important;
}
html[data-theme="light"] .admin-search::placeholder { color: #94a3b8 !important; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-page-btn {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #475569 !important;
}
html[data-theme="light"] .admin-page-btn:hover {
  border-color: rgba(15,23,42,.22) !important;
  color: #0f172a !important;
  background: #f4f6fb !important;
}
html[data-theme="light"] .admin-page-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-form-label { color: #64748b !important; }
html[data-theme="light"] .admin-input {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .admin-input:focus {
  border-color: rgba(88,101,242,.4) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.1) !important;
}
html[data-theme="light"] .admin-input::placeholder { color: #94a3b8 !important; }

/* ── Boutons ──────────────────────────────────────────────────────────────── */
html[data-theme="light"] .btn-admin-primary {
  background: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .btn-admin-primary:hover { background: #1e293b !important; }
html[data-theme="light"] .btn-admin-ghost {
  color: #475569 !important;
  border-color: rgba(15,23,42,.14) !important;
}
html[data-theme="light"] .btn-admin-ghost:hover {
  color: #0f172a !important;
  border-color: rgba(15,23,42,.25) !important;
  background: rgba(15,23,42,.05) !important;
}

/* ── Graphique ────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-chart-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .admin-chart-title { color: #475569 !important; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-toast--success {
  background: #f0fdf4 !important;
  border-color: rgba(34,197,94,.3) !important;
}
html[data-theme="light"] .admin-toast--error {
  background: #fef2f2 !important;
  border-color: rgba(239,68,68,.3) !important;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
html[data-theme="light"] .admin-empty { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ROLEPLAY (roleplay.css) — CSS vars --rp-* overridden in variable block
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .rp-node-canvas {
  background: #eef1f7 !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .rp-node-title { color: #0f172a !important; }
html[data-theme="light"] .rp-node-desc  { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL select option — ensures native dropdowns render light
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   STREAMS — hardcoded text colors
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .streams-stat-num   { color: #0f172a !important; }
html[data-theme="light"] .streams-stat-label { color: #64748b !important; }
html[data-theme="light"] .streams-section-title { color: #0f172a !important; }
html[data-theme="light"] .streams-empty      { color: #64748b !important; }
html[data-theme="light"] .streams-channel-name { color: #0f172a !important; }
html[data-theme="light"] .streams-current-title { color: #64748b !important; }
html[data-theme="light"] .streams-history-item  { color: #64748b !important; }
html[data-theme="light"] .streams-history-label { color: #94a3b8 !important; }
html[data-theme="light"] .streams-lb-rank   { color: #94a3b8 !important; }
html[data-theme="light"] .streams-lb-title  { color: #0f172a !important; }
html[data-theme="light"] .streams-lb-stats  { color: #64748b !important; }
html[data-theme="light"] .streams-schedule-day-label { color: #64748b !important; }
html[data-theme="light"] .streams-schedule-empty     { color: #94a3b8 !important; }
html[data-theme="light"] .streams-history-thead { color: #64748b !important; }
html[data-theme="light"] .streams-slot-hour    { color: #5865f2 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   JURY — hardcoded text colors
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .jury-stat-num    { color: #0f172a !important; }
html[data-theme="light"] .jury-stat-label  { color: #64748b !important; }
html[data-theme="light"] .jury-case-status { color: #64748b !important; }
html[data-theme="light"] .jury-section-title { color: #0f172a !important; }
html[data-theme="light"] .jury-empty       { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   EVENTS page — .event-card is transparent on white
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .event-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .event-card:hover { border-color: rgba(15,23,42,.16) !important; }
html[data-theme="light"] .event-title  { color: #0f172a !important; }
html[data-theme="light"] .event-meta   { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   MINIGAMES — cards and toggle
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .mg-game-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .mg-game-name   { color: #0f172a !important; }
html[data-theme="light"] .mg-game-stats  { color: #64748b !important; }
html[data-theme="light"] .mg-toggle-label { color: #475569 !important; }
html[data-theme="light"] .mg-field label  { color: #64748b !important; }
html[data-theme="light"] .mg-field input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .toggle-slider { background: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .toggle-switch input:checked + .toggle-slider { background: #5865f2 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   SETUP WIZARD — cards transparent on white
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .wizard-score-card,
html[data-theme="light"] .wizard-category {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .wizard-cat-header:hover { background: rgba(15,23,42,.03) !important; }
html[data-theme="light"] .wizard-cat-title  { color: #0f172a !important; }
html[data-theme="light"] .wizard-cat-score  { color: #64748b !important; }
html[data-theme="light"] .wizard-cat-chevron { color: #94a3b8 !important; }
html[data-theme="light"] .wizard-cat-body   { border-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .wsc-label  { color: #64748b !important; }
html[data-theme="light"] .wsc-value  { color: #0f172a !important; }
html[data-theme="light"] .wsc-bar    { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .wizard-donut::before { background: #eef1f7 !important; }
html[data-theme="light"] .wizard-donut-pct   { color: #0f172a !important; }
html[data-theme="light"] .wizard-donut-label { color: #64748b !important; }
html[data-theme="light"] .wizard-hero-text h2 { color: #0f172a !important; }
html[data-theme="light"] .wizard-hero-text p  { color: #475569 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   VOICE CONSENT — .vc-legal-warning text and form elements
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .vc-legal-warning {
  background: rgba(245,158,11,.07) !important;
  border-color: rgba(245,158,11,.2) !important;
  color: #92400e !important;
}
html[data-theme="light"] .vc-section {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .vc-section-title { color: #64748b !important; }
html[data-theme="light"] .vc-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .vc-label { color: #475569 !important; }
html[data-theme="light"] .vc-radio-option {
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .vc-radio-option:has(input:checked) {
  background: rgba(88,101,242,.08) !important;
  border-color: rgba(88,101,242,.3) !important;
}
html[data-theme="light"] .vc-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .vc-stat-label { color: #64748b !important; }
html[data-theme="light"] .vc-table-wrap { border-color: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .vc-table th {
  background: #f4f6fb !important;
  color: #64748b !important;
}
html[data-theme="light"] .vc-table td { border-color: rgba(15,23,42,.06) !important; color: #0f172a !important; }
html[data-theme="light"] .vc-table tr:hover td { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] .vc-toggle-slider { background: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .vc-toggle input:checked + .vc-toggle-slider { background: #5865f2 !important; }
html[data-theme="light"] .vc-toggle-label { color: #0f172a !important; }
html[data-theme="light"] .vc-btn-export {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #475569 !important;
}
html[data-theme="light"] .vc-btn-export:hover { background: #e8ecf2 !important; }
html[data-theme="light"] .vc-toast {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .vc-history-toggle { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   CONVERSATION STARTERS — dark fallback vars (#1e1f22, #2b2d31)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .cs-section {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .cs-channel-card,
html[data-theme="light"] .cs-stat-card {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .cs-chip { background: #e8ecf2 !important; color: #475569 !important; }
html[data-theme="light"] .cs-section-title { color: #0f172a !important; }
html[data-theme="light"] .cs-stat-label    { color: #64748b !important; }
html[data-theme="light"] .cs-questions-table th { color: #64748b !important; }
html[data-theme="light"] .cs-questions-table td { color: #0f172a !important; border-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .modal-box {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .toggle input:checked + .toggle-slider { background: var(--accent, #5865f2) !important; }
/* ══════════════════════════════════════════════════════════════════════════
   PARTNERS — button hover turns white fix
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .btn-primary:hover {
  background: #4752c4 !important;
  color: #ffffff !important;
}
html[data-theme="light"] .btn-primary {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   INVESTIGATION — text colors now use var(--gray-900) for bg but text still hardcoded
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .inv-username    { color: #0f172a !important; }
html[data-theme="light"] .inv-user-id     { color: #64748b !important; }
html[data-theme="light"] .inv-last-seen   { color: #94a3b8 !important; }
html[data-theme="light"] .inv-kpi-num     { color: #0f172a !important; }
html[data-theme="light"] .inv-kpi-label   { color: #64748b !important; }
html[data-theme="light"] .inv-panel-title { color: #64748b !important; }
html[data-theme="light"] .inv-risk-num    { color: #0f172a !important; }
html[data-theme="light"] .inv-risk-label  { color: #94a3b8 !important; }
html[data-theme="light"] .inv-risk-caption { color: #94a3b8 !important; }
html[data-theme="light"] .inv-conn-label  { color: #64748b !important; }
html[data-theme="light"] .inv-conn-val    { color: #0f172a !important; }
html[data-theme="light"] .inv-compare-row { color: #475569 !important; }
html[data-theme="light"] .inv-tl-label    { color: #0f172a !important; }
html[data-theme="light"] .inv-tl-detail   { color: #64748b !important; }
html[data-theme="light"] .inv-tl-date     { color: #94a3b8 !important; }
html[data-theme="light"] .inv-report-reason { color: #475569 !important; }
html[data-theme="light"] .inv-report-status { color: #94a3b8 !important; }
html[data-theme="light"] .inv-report-date   { color: #94a3b8 !important; }
html[data-theme="light"] .inv-empty h2      { color: #0f172a !important; }
html[data-theme="light"] .inv-not-found h3  { color: #0f172a !important; }
html[data-theme="light"] .inv-search-bar {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .inv-search-input  { color: #0f172a !important; }
html[data-theme="light"] .inv-tl-dot   { background: rgba(15,23,42,.06) !important; }
html[data-theme="light"] .inv-tl-line  { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .inv-report-row { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] .inv-act-cell[data-intensity="0"] { background: rgba(15,23,42,.04) !important; }
html[data-theme="light"] .inv-sources span {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #475569 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   SIMULATOR — text colors still hardcoded
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .sim-controls-title  { color: #64748b !important; }
html[data-theme="light"] .sim-section-title   { color: #64748b !important; }
html[data-theme="light"] .sim-section { border-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .sim-slider-header label { color: #475569 !important; }
html[data-theme="light"] .sim-slider-hints   { color: #94a3b8 !important; }
html[data-theme="light"] .sim-slider { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .sim-preset-btn {
  background: rgba(15,23,42,.03) !important;
  border-color: rgba(15,23,42,.09) !important;
  color: #64748b !important;
}
html[data-theme="light"] .sim-preset-btn:hover {
  background: rgba(15,23,42,.06) !important;
  border-color: rgba(15,23,42,.16) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .sim-kpi-label  { color: #64748b !important; }
html[data-theme="light"] .sim-kpi-real   { color: #94a3b8 !important; }
html[data-theme="light"] .sim-kpi-arrow.same { color: #94a3b8 !important; }
html[data-theme="light"] .sim-kpi-sim.same { color: #0f172a !important; }
html[data-theme="light"] .sim-kpi-delta.neu { color: #94a3b8 !important; }
html[data-theme="light"] .sim-panel-title  { color: #64748b !important; }
html[data-theme="light"] .sim-legend--real { background: rgba(15,23,42,.05) !important; color: #64748b !important; border-color: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .sim-health-bar-wrap { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .sim-health-labels { color: #94a3b8 !important; }
html[data-theme="light"] .sim-impact--neutral { background: rgba(15,23,42,.04) !important; border-color: rgba(15,23,42,.09) !important; color: #475569 !important; }
html[data-theme="light"] .sim-baseline-notice { color: #475569 !important; }
html[data-theme="light"] .sim-baseline-notice strong { color: #0f172a !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ONBOARDING WIZARD
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .onboarding-page { background: #eef1f7 !important; }
html[data-theme="light"] .ob-dot-circle {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.14) !important;
  color: #64748b !important;
}
html[data-theme="light"] .ob-step-line { background: rgba(15,23,42,.1) !important; }
html[data-theme="light"] .ob-progress-bar { background: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .ob-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-title { color: #0f172a !important; }
html[data-theme="light"] .ob-subtitle { color: #475569 !important; }
html[data-theme="light"] .ob-label { color: #475569 !important; }
html[data-theme="light"] .ob-hint  { color: #64748b !important; }
html[data-theme="light"] .ob-feature-card {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-feature-card strong { color: #0f172a !important; }
html[data-theme="light"] .ob-feature-card p     { color: #64748b !important; }
html[data-theme="light"] .ob-link-card {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-link-card strong { color: #0f172a !important; }
html[data-theme="light"] .ob-link-card p      { color: #64748b !important; }
html[data-theme="light"] .ob-select,
html[data-theme="light"] .ob-input {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ob-select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] .ob-toggle-row:hover { background: rgba(15,23,42,.03) !important; }
html[data-theme="light"] .ob-toggle-row strong { color: #0f172a !important; }
html[data-theme="light"] .ob-toggle-row p { color: #64748b !important; }
html[data-theme="light"] .ob-toggle-switch {
  background: rgba(15,23,42,.12) !important;
}
html[data-theme="light"] .ob-toggle-switch::after { background: #94a3b8 !important; }
html[data-theme="light"] .ob-toggle-input:checked + .ob-toggle-switch::after { background: #ffffff !important; }
html[data-theme="light"] .ob-sub-field {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ob-nav { border-top-color: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .ob-counter { color: #64748b !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — index (hs-*, admin-live-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .hs-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .hs-track { stroke: rgba(15,23,42,.08) !important; }
html[data-theme="light"] .hs-lbl   { color: #94a3b8 !important; }
html[data-theme="light"] .hs-title { color: #0f172a !important; }
html[data-theme="light"] .hs-pill--ok   { background: rgba(22,163,74,.07) !important; border-color: rgba(22,163,74,.2) !important; color: #16a34a !important; }
html[data-theme="light"] .hs-pill--warn { background: rgba(217,119,6,.07) !important; border-color: rgba(217,119,6,.2) !important; color: #b45309 !important; }
html[data-theme="light"] .hs-pill--bad  { background: rgba(220,38,38,.07) !important; border-color: rgba(220,38,38,.2) !important; color: #dc2626 !important; }
html[data-theme="light"] .admin-live-wrap  { border-color: rgba(15,23,42,.09) !important; }
html[data-theme="light"] .admin-live-header {
  background: #f4f6fb !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .admin-live-item  { border-bottom-color: rgba(15,23,42,.04) !important; }
html[data-theme="light"] .admin-live-item:hover { background: rgba(15,23,42,.02) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — Config Check (cc-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .cc-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .cc-stat-lbl  { color: #94a3b8 !important; }
html[data-theme="light"] .cc-pill.all  { border-color: rgba(15,23,42,.15) !important; color: #64748b !important; }
html[data-theme="light"] .cc-table-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .cc-table th {
  background: #f4f6fb !important;
  color: #64748b !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .cc-table td {
  color: #1e293b !important;
  border-bottom-color: rgba(15,23,42,.04) !important;
}
html[data-theme="light"] .cc-table tr:hover td { background: rgba(15,23,42,.02) !important; }
html[data-theme="light"] .cc-table td code {
  background: rgba(15,23,42,.06) !important;
  color: #6366f1 !important;
}
html[data-theme="light"] .cc-empty       { color: #94a3b8 !important; }
html[data-theme="light"] .cc-verify-btn  {
  border-color: rgba(99,102,241,.3) !important;
  background: rgba(99,102,241,.05) !important;
  color: #6366f1 !important;
}
html[data-theme="light"] .cc-verify-unk  { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — Shards (sh-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .sh-stat {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .sh-stat-val   { color: #0f172a !important; }
html[data-theme="light"] .sh-stat-lbl   { color: #94a3b8 !important; }
html[data-theme="light"] .sh-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .sh-card.online       { border-color: rgba(22,163,74,.3) !important; }
html[data-theme="light"] .sh-card.offline      { border-color: rgba(220,38,38,.25) !important; }
html[data-theme="light"] .sh-card.reconnecting { border-color: rgba(217,119,6,.25) !important; }
html[data-theme="light"] .sh-card-id  { color: #0f172a !important; }
html[data-theme="light"] .sh-kv-k     { color: #94a3b8 !important; }
html[data-theme="light"] .sh-kv-v     { color: #1e293b !important; }
html[data-theme="light"] .sh-card-footer { border-top-color: rgba(15,23,42,.07) !important; }
html[data-theme="light"] .sh-stale        { color: #94a3b8 !important; }
html[data-theme="light"] .sh-notice {
  background: #eff6ff !important;
  border-color: rgba(59,130,246,.2) !important;
  color: #2563eb !important;
}
html[data-theme="light"] .sh-actions-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .sh-actions-title { color: #94a3b8 !important; }
html[data-theme="light"] .sh-action-row    { border-bottom-color: rgba(15,23,42,.05) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — Feature Flags (ff-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ff-section-title {
  color: #94a3b8 !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .ff-row {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ff-row:hover    { border-color: rgba(15,23,42,.18) !important; }
html[data-theme="light"] .ff-row-name     { color: #0f172a !important; }
html[data-theme="light"] .ff-row-desc     { color: #64748b !important; }
html[data-theme="light"] .ff-row-name code {
  background: rgba(15,23,42,.06) !important;
  color: #6366f1 !important;
}
html[data-theme="light"] .ff-rollout-lbl  { color: #94a3b8 !important; }
html[data-theme="light"] .ff-rollout-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ff-slider { background: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .ff-modal {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.1) !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.18) !important;
}
html[data-theme="light"] .ff-modal h3    { color: #0f172a !important; }
html[data-theme="light"] .ff-field label { color: #64748b !important; }
html[data-theme="light"] .ff-field input,
html[data-theme="light"] .ff-field textarea,
html[data-theme="light"] .ff-field select {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ff-modal-cancel {
  border-color: rgba(15,23,42,.14) !important;
  color: #64748b !important;
  background: transparent !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — User Investigation (ui-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .ui-search-wrap {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ui-search-input {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .ui-search-input::placeholder { color: #94a3b8 !important; }
html[data-theme="light"] .ui-risk-label   { color: #0f172a !important; }
html[data-theme="light"] .ui-risk-reasons { color: #64748b !important; }
html[data-theme="light"] .ui-profile-head {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ui-profile-name   { color: #0f172a !important; }
html[data-theme="light"] .ui-profile-id     { color: #94a3b8 !important; }
html[data-theme="light"] .ui-avatar         { border-color: rgba(15,23,42,.12) !important; }
html[data-theme="light"] .ui-avatar-placeholder { background: #e8ecf2 !important; }
html[data-theme="light"] .ui-qs {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ui-qs-lbl { color: #94a3b8 !important; }
html[data-theme="light"] .ui-section {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .ui-section-head {
  background: #f4f6fb !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .ui-section-head h3 { color: #0f172a !important; }
html[data-theme="light"] .ui-section-head .ui-count {
  background: rgba(15,23,42,.06) !important;
  color: #64748b !important;
}
html[data-theme="light"] .ui-table th {
  color: #64748b !important;
  border-bottom-color: rgba(15,23,42,.07) !important;
}
html[data-theme="light"] .ui-table td {
  color: #1e293b !important;
  border-bottom-color: rgba(15,23,42,.03) !important;
}
html[data-theme="light"] .ui-table td code {
  background: rgba(15,23,42,.06) !important;
  color: #6366f1 !important;
}
html[data-theme="light"] .ui-empty { color: #94a3b8 !important; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN — Playbooks (pb-*)
   ══════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] .pb-card {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.09) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
html[data-theme="light"] .pb-name { color: #0f172a !important; }
html[data-theme="light"] .pb-desc { color: #64748b !important; }
html[data-theme="light"] .pb-tag  {
  background: rgba(15,23,42,.04) !important;
  border-color: rgba(15,23,42,.1) !important;
  color: #64748b !important;
}
html[data-theme="light"] .pb-tag--trigger {
  border-color: rgba(88,101,242,.25) !important;
  color: #5865f2 !important;
  background: rgba(88,101,242,.06) !important;
}
html[data-theme="light"] .pb-btn {
  border-color: rgba(15,23,42,.14) !important;
  color: #64748b !important;
}
html[data-theme="light"] .pb-btn:hover { background: rgba(15,23,42,.05) !important; }
html[data-theme="light"] .pb-toggle-track {
  background: rgba(15,23,42,.1) !important;
  border-color: rgba(15,23,42,.15) !important;
}
html[data-theme="light"] .pb-create {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.09) !important;
}
html[data-theme="light"] .pb-create-title    { color: #0f172a !important; }
html[data-theme="light"] .pb-form-field label { color: #64748b !important; }
html[data-theme="light"] .pb-form-field input,
html[data-theme="light"] .pb-form-field select,
html[data-theme="light"] .pb-form-field textarea {
  background: #ffffff !important;
  border-color: rgba(15,23,42,.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .pb-form-hint { color: #94a3b8 !important; }
html[data-theme="light"] .pb-empty { color: #94a3b8 !important; }

html[data-theme="light"] input[type="range"] {
  accent-color: #5865f2 !important;
}

/* ─── Toggles custom (classe .toggle-track / .toggle-thumb) ── */
html[data-theme="light"] .toggle-track {
  background: rgba(15,23,42,.12) !important;
  border-color: rgba(15,23,42,.16) !important;
}
html[data-theme="light"] .toggle-track.active,
html[data-theme="light"] .toggle-track[data-on="true"] {
  background: #5865f2 !important;
  border-color: #5865f2 !important;
}
html[data-theme="light"] .toggle-thumb {
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.25) !important;
}

/* ─── Dropdowns natifs <select> non stylisés par ailleurs ──── */
html[data-theme="light"] select:not([class]) {
  background: #f4f6fb !important;
  border-color: rgba(15,23,42,.14) !important;
  color: #0f172a !important;
}
html[data-theme="light"] select:not([class]) option {
  background: #ffffff !important;
  color: #0f172a !important;
}