[hidden] { display: none !important; }
html[data-theme="moss-light"], html[data-theme="pink-light"] {
  --bg: #fafafa; --surface: #fff; --surface-2: #f4f4f5; --surface-3: #e4e4e7;
  --border: #e4e4e7; --text: #18181b; --text-2: #3f3f46; --text-3: #52525b;
  --accent: #27272a; --accent-deep: #18181b; --border-strong: #d4d4d8;
}
html[data-theme="moss-dark"], html[data-theme="pink-dark"] {
  --bg: #09090b; --surface: #18181b; --surface-2: #27272a; --surface-3: #3f3f46;
  --border: #3f3f46; --text: #fafafa; --text-2: #e4e4e7; --text-3: #a1a1aa;
  --accent: #e4e4e7; --accent-deep: #fafafa; --border-strong: #52525b;
}
body, .main, .content { background: var(--bg); }
.sidebar, .topbar, .mobile-nav, .card, .modal, .dashboard-hero, .stat {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.card, .modal, .dashboard-hero, .stat { border-radius: 12px !important; }
.btn, .input, .select, .icon-btn, .nav-item, .search-box { border-radius: 8px !important; box-shadow: none !important; }
.btn.primary { background: var(--text) !important; border-color: var(--text) !important; color: var(--surface) !important; }
.btn:not(.primary):not(.danger):not(.success) { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn:hover, .nav-item:hover { filter: brightness(.93); }
.brand-logo { background: var(--text) !important; color: var(--surface) !important; box-shadow: none !important; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #71717a; outline-offset: 2px; }
.startup-error { margin: 24px; padding: 16px; background: #fff1f2; color: #881337; border: 1px solid #fecdd3; border-radius: 8px; }
.mission-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mission-actions a { text-decoration: none; }
.mission-status { margin: 10px 0; color: var(--text-2); }
.hero, .hero::before, .hero::after { background: var(--surface) !important; box-shadow: none !important; }
.hero { border: 1px solid var(--border) !important; border-radius: 12px !important; }
.nav-item.active, .nav-item.active .nav-icon {
  background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important;
}
.hero-eyebrow, .stat-value { color: var(--text) !important; }
.stat-icon, .mini-stat-icon, .list-item-icon, .session-chip .avatar {
  background: var(--surface-2) !important; color: var(--text) !important; box-shadow: none !important;
}
.table-wrap th, .matrix th { background: var(--surface-2) !important; color: var(--text-2) !important; }
.nav-label { color: var(--text-3) !important; }
.mobile-nav-btn.active { background: var(--surface-2); color: var(--text); }
.status-pill { display: none; }
#panelPage .sheet-overlay, #panelPage .modal-overlay { z-index: 10020; }
