/* Light-mode versions of panels that were hard-coded dark (activity log, analytics hero, achievements hero).
   Dark mode keeps the original styles from app.css. Scope: any page not in dark mode. */
:root:not([data-bs-theme="dark"]) .activity-console {
  --ac-ink: #0f172a;
  --ac-panel: #ffffff;
  --ac-line: #e2e8f0;
  --ac-text: #1e293b;
  --ac-muted: #64748b;
}
:root:not([data-bs-theme="dark"]) .activity-console-hero {
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(45, 212, 191, .16), transparent 50%),
    radial-gradient(80% 100% at 90% 20%, rgba(56, 189, 248, .14), transparent 46%),
    linear-gradient(160deg, #f8fafc, #eef4fb 70%);
  border-color: #e2e8f0;
}
:root:not([data-bs-theme="dark"]) .activity-console-kicker { color: #047857; }
:root:not([data-bs-theme="dark"]) .activity-console-title,
:root:not([data-bs-theme="dark"]) .activity-console-stat-value { color: #0f172a; }
:root:not([data-bs-theme="dark"]) .activity-console-stat { background: #ffffff; border-color: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .activity-console-toolbar,
:root:not([data-bs-theme="dark"]) .activity-console-chips {
  background: #f8fafc;
  border-left-color: #e2e8f0;
  border-right-color: #e2e8f0;
}
:root:not([data-bs-theme="dark"]) .activity-console-search input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
:root:not([data-bs-theme="dark"]) .activity-console-live-badge { color: #047857; }
:root:not([data-bs-theme="dark"]) .activity-console-live-badge .spinner-grow { color: #10b981; }
:root:not([data-bs-theme="dark"]) .activity-chip { color: #334155; background: #ffffff; border-color: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .activity-chip:hover { color: #0f172a; border-color: #94a3b8; }
:root:not([data-bs-theme="dark"]) .activity-chip.is-active { color: #ffffff; background: #1e293b; border-color: #1e293b; }
:root:not([data-bs-theme="dark"]) .activity-chip.is-active em { color: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .activity-console-panel { border-color: #e2e8f0; box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
:root:not([data-bs-theme="dark"]) .activity-console-panel-head,
:root:not([data-bs-theme="dark"]) .activity-console-panel-foot { background: #f1f5f9; color: #475569; }
:root:not([data-bs-theme="dark"]) .activity-console .text-white-50 { color: #64748b !important; }
:root:not([data-bs-theme="dark"]) .activity-console .btn-outline-light { color: #334155; border-color: #cbd5e1; }
:root:not([data-bs-theme="dark"]) .activity-console .btn-outline-light:hover { color: #0f172a; background: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .activity-console .btn-light { background: #1e293b; border-color: #1e293b; color: #ffffff; }
:root:not([data-bs-theme="dark"]) .activity-row-rail::before { background: linear-gradient(to bottom, rgba(100,116,139,.35), transparent); }
:root:not([data-bs-theme="dark"]) .activity-row.accent-mint .activity-row-dot { color: #047857; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-sky .activity-row-dot { color: #0369a1; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-amber .activity-row-dot { color: #b45309; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-cyan .activity-row-dot { color: #0e7490; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-teal .activity-row-dot { color: #0f766e; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-orange .activity-row-dot { color: #c2410c; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-rose .activity-row-dot { color: #be123c; }
:root:not([data-bs-theme="dark"]) .activity-row.accent-slate .activity-row-dot { color: #475569; }
:root:not([data-bs-theme="dark"]) .activity-type { color: #334155; background: #f1f5f9; }
:root:not([data-bs-theme="dark"]) .activity-actor { color: #0369a1; }
:root:not([data-bs-theme="dark"]) .activity-actor:hover { color: #075985; }
:root:not([data-bs-theme="dark"]) .activity-actor.is-guest { color: #64748b; }
:root:not([data-bs-theme="dark"]) .activity-when { color: #64748b; }
:root:not([data-bs-theme="dark"]) .activity-row-msg { color: #1e293b; }
:root:not([data-bs-theme="dark"]) .activity-who { color: #0f172a; }
:root:not([data-bs-theme="dark"]) .activity-who:hover { color: #0369a1; }
:root:not([data-bs-theme="dark"]) .activity-open { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
:root:not([data-bs-theme="dark"]) .activity-open:hover { color: #1e3a8a; background: #dbeafe; }

/* Activity log teaser card on Visits / staff pages */
:root:not([data-bs-theme="dark"]) .activity-teaser {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56, 189, 248, .16), transparent 50%),
    radial-gradient(90% 120% at 100% 100%, rgba(251, 191, 36, .12), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
:root:not([data-bs-theme="dark"]) .activity-teaser:hover { color: #0f172a; box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
:root:not([data-bs-theme="dark"]) .activity-teaser .text-white { color: #0f172a !important; }
:root:not([data-bs-theme="dark"]) .activity-teaser .text-white-50 { color: #64748b !important; }
:root:not([data-bs-theme="dark"]) .activity-teaser-kicker { color: #047857; }
:root:not([data-bs-theme="dark"]) .activity-teaser-line { color: #475569; }
:root:not([data-bs-theme="dark"]) .activity-teaser-cta { color: #0f172a; background: #ffffff; border-color: #cbd5e1; }

/* Admin / moderator Analytics hero */
:root:not([data-bs-theme="dark"]) .analytics-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 55%, #ecfdf5 100%);
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
:root:not([data-bs-theme="dark"]) .analytics-hero .text-white-50 { color: #475569 !important; }
:root:not([data-bs-theme="dark"]) .analytics-hero .rounded-3[style] { background: rgba(255, 255, 255, .75) !important; border: 1px solid #e2e8f0; }
:root:not([data-bs-theme="dark"]) .analytics-hero .analytics-chip { color: #0f172a; background: rgba(255, 255, 255, .8); border-color: #cbd5e1; }

/* Member Achievements hero */
:root:not([data-bs-theme="dark"]) .achievements-hero {
  color: #0f172a;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 158, 11, .18), transparent 48%),
    radial-gradient(100% 120% at 100% 20%, rgba(16, 185, 129, .16), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
:root:not([data-bs-theme="dark"]) .achievements-hero-badge { background: #ffffff; border-color: #e2e8f0; color: #0f172a; }
:root:not([data-bs-theme="dark"]) .achievements-hero-copy { color: #475569; }
:root:not([data-bs-theme="dark"]) .achievements-hero-meter { background: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .achievements-hero-stat { background: #ffffff; border-color: #e2e8f0; }
:root:not([data-bs-theme="dark"]) .achievements-hero-stat span { color: #64748b; }
