:root {
  --bg: oklch(0.97 0.004 260);
  --surface: oklch(1 0 0);
  --border: oklch(0.91 0.006 260);
  --text: oklch(0.22 0.02 260);
  --text-2: oklch(0.50 0.014 260);
  --text-3: oklch(0.62 0.012 260);

  --accent: oklch(0.47 0.19 293);
  --accent-hover: oklch(0.40 0.18 293);
  --accent-soft: oklch(0.95 0.025 293);
  --accent-soft-text: oklch(0.42 0.16 293);

  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.03), 0 6px 16px oklch(0 0 0 / 0.03);

  --danger: oklch(0.55 0.18 25);
  --danger-soft: oklch(0.95 0.04 25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::placeholder { color: var(--text-3); opacity: 1; }

/* Layout shell */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px 20px; }
.sidebar-brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #fff; font-weight: 800; font-size: 15px;
}
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sidebar-brand-text strong { font-weight: 700; font-size: 14px; color: var(--text); }
.sidebar-brand-text span { font-weight: 600; font-size: 10px; letter-spacing: 0.08em; color: var(--text-3); }

.company-switcher {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 16px 18px 16px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 11px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); cursor: pointer; position: relative;
}
.company-switcher:hover { background: oklch(0.965 0.006 260); }
.company-switcher select {
  position: absolute; inset: 0; opacity: 0; border: none; cursor: pointer; appearance: none; width: 100%; height: 100%;
}
.company-avatar {
  width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-soft-text);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.company-switcher-static { display: flex; align-items: center; gap: 9px; margin: 2px 16px 18px 16px; padding: 8px 10px; color: var(--text-2); }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
}
.nav-link:hover { background: oklch(0.965 0.004 260); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-soft-text); }
.nav-link svg { flex-shrink: 0; }

.sidebar-spacer { flex-grow: 1; }

.sidebar-user {
  border-top: 1px solid var(--border); padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.sidebar-user-info { display: flex; flex-direction: column; line-height: 1.2; flex-grow: 1; overflow: hidden; }
.sidebar-user-info strong { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { font-size: 11px; color: var(--text-3); }
.logout-btn { background: none; border: none; padding: 4px; cursor: pointer; color: var(--text-3); display: flex; border-radius: 6px; }
.logout-btn:hover { color: var(--text); background: oklch(0.95 0.004 260); }

.main-col { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 64px; flex-shrink: 0; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  position: relative;
}
.sidebar-toggle-btn {
  display: none;
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 8px; cursor: pointer;
  color: var(--text); border-radius: 8px; align-items: center; justify-content: center;
}
.sidebar-toggle-btn:hover { background: oklch(0.96 0.004 260); }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; background: oklch(0.15 0.02 260 / 0.4); z-index: 998;
}
.sidebar-backdrop.visible { display: block; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-title strong { font-size: 18px; font-weight: 700; color: var(--text); }
.topbar-title span { font-size: 12px; color: var(--text-3); }
.topbar-crumbs { display: flex; align-items: center; gap: 10px; }
.topbar-crumbs a { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.topbar-crumbs a:hover { color: var(--text); }
.topbar-crumbs .sep { color: var(--border); }
.topbar-crumbs .current { font-size: 14px; font-weight: 700; color: var(--text); }

.page-content { flex-grow: 1; padding: 28px 32px 40px 32px; display: flex; flex-direction: column; gap: 22px; }

/* Optional right-side panel (admin pages only) — an activity/insights rail
   alongside the main content, opted into per-page via show_insights_panel. */
.insights-panel {
  width: 300px; flex-shrink: 0; border-left: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; align-self: flex-start;
}
.insights-panel.collapsed { width: 0; overflow: hidden; border-left: none; }
.insights-panel-header {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px 20px;
  font-size: 15px; font-weight: 700; color: var(--text); flex-shrink: 0;
}
.insights-panel-body { flex-grow: 1; overflow-y: auto; padding: 0 20px 20px 20px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1100px) {
  .insights-panel { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: oklch(0.96 0.004 260); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card);
}
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.card-body { padding: 18px 20px; }
.card-count-pill { font-size: 12px; font-weight: 600; color: var(--text-3); background: oklch(0.95 0.004 260); padding: 2px 8px; border-radius: 999px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: oklch(0.15 0.02 260 / 0.4);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-box {
  background: var(--surface); border-radius: 16px; padding: 24px; max-width: 400px; width: 100%;
  box-shadow: 0 24px 60px oklch(0.15 0.02 260 / 0.3);
}
.modal-box p { margin: 0 0 16px 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.modal-box-title { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; display: block; }

.card-highlight { animation: card-highlight-pulse 1.8s ease-out 1; }
@keyframes card-highlight-pulse {
  0% { box-shadow: 0 0 0 3px var(--accent-soft); }
  100% { box-shadow: var(--shadow-card); }
}

/* Pills (status / source) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }
.pill-lg { padding: 5px 12px 5px 9px; font-size: 12.5px; }

.pill.cold, .pill.cold .pill-dot { }
.pill.cold { background: oklch(0.95 0.025 225); color: oklch(0.38 0.12 225); }
.pill.cold .pill-dot { background: oklch(0.58 0.12 225); }

.pill.warm { background: oklch(0.95 0.045 55); color: oklch(0.42 0.13 55); }
.pill.warm .pill-dot { background: oklch(0.66 0.15 55); }

.pill.hot { background: oklch(0.94 0.06 20); color: oklch(0.44 0.17 20); }
.pill.hot .pill-dot { background: oklch(0.58 0.19 20); }

.pill.won { background: oklch(0.94 0.05 145); color: oklch(0.38 0.13 145); }
.pill.won .pill-dot { background: oklch(0.56 0.14 145); }

.pill.lost { background: oklch(0.945 0.006 260); color: oklch(0.44 0.008 260); }
.pill.lost .pill-dot { background: oklch(0.58 0.008 260); }

.pill.manual { background: oklch(0.945 0.006 80); color: oklch(0.42 0.006 80); }
.pill.manual .pill-dot { background: oklch(0.55 0.006 80); }

.pill.website { background: oklch(0.94 0.04 165); color: oklch(0.38 0.10 165); }
.pill.website .pill-dot { background: oklch(0.60 0.11 165); }

.pill.meta_ads { background: oklch(0.94 0.04 255); color: oklch(0.40 0.13 255); }
.pill.meta_ads .pill-dot { background: oklch(0.55 0.15 255); }

.pill.google_ads { background: oklch(0.95 0.035 88); color: oklch(0.42 0.09 88); }
.pill.google_ads .pill-dot { background: oklch(0.66 0.12 88); }

.pill.tiktok_ads { background: oklch(0.94 0.05 330); color: oklch(0.40 0.14 330); }
.pill.tiktok_ads .pill-dot { background: oklch(0.58 0.17 330); }

.pill.linkedin_ads { background: oklch(0.94 0.035 200); color: oklch(0.36 0.10 200); }
.pill.linkedin_ads .pill-dot { background: oklch(0.52 0.11 200); }

.pill.neutral { background: oklch(0.95 0.004 260); color: var(--text-2); }

/* Account health */
.pill.green { background: oklch(0.94 0.05 145); color: oklch(0.38 0.13 145); }
.pill.green .pill-dot { background: oklch(0.56 0.14 145); }
.pill.yellow { background: oklch(0.95 0.045 85); color: oklch(0.45 0.12 85); }
.pill.yellow .pill-dot { background: oklch(0.68 0.14 85); }
.pill.red { background: oklch(0.94 0.06 20); color: oklch(0.44 0.17 20); }
.pill.red .pill-dot { background: oklch(0.58 0.19 20); }

.pill.open { background: oklch(0.94 0.04 255); color: oklch(0.40 0.13 255); }
.pill.open .pill-dot { background: oklch(0.55 0.15 255); }

/* Account lifecycle status */
.pill.active { background: oklch(0.94 0.05 145); color: oklch(0.38 0.13 145); }
.pill.active .pill-dot { background: oklch(0.56 0.14 145); }
.pill.churned { background: oklch(0.945 0.006 260); color: oklch(0.44 0.008 260); }
.pill.churned .pill-dot { background: oklch(0.58 0.008 260); }
.pill.cancelled { background: oklch(0.94 0.06 20); color: oklch(0.44 0.17 20); }
.pill.cancelled .pill-dot { background: oklch(0.58 0.19 20); }

/* Standalone dot colors for use outside a .pill wrapper (e.g. filter chips) */
.dot-cold { background: oklch(0.58 0.12 225); }
.dot-warm { background: oklch(0.66 0.15 55); }
.dot-hot { background: oklch(0.58 0.19 20); }
.dot-won { background: oklch(0.56 0.14 145); }
.dot-lost { background: oklch(0.58 0.008 260); }
.dot-manual { background: oklch(0.55 0.006 80); }
.dot-website { background: oklch(0.60 0.11 165); }
.dot-meta_ads { background: oklch(0.55 0.15 255); }
.dot-google_ads { background: oklch(0.66 0.12 88); }
.dot-tiktok_ads { background: oklch(0.58 0.17 330); }
.dot-linkedin_ads { background: oklch(0.52 0.11 200); }

/* Avatars */
.avatar { border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar-sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar-md { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; }
.avatar-0 { background: var(--accent-soft); color: var(--accent-soft-text); }
.avatar-1 { background: oklch(0.94 0.04 195); color: oklch(0.36 0.12 195); }
.avatar-2 { background: oklch(0.95 0.05 60); color: oklch(0.40 0.13 60); }
.avatar-3 { background: oklch(0.94 0.045 340); color: oklch(0.38 0.14 340); }
.avatar-placeholder { border-radius: 999px; border: 1.5px dashed var(--border); flex-shrink: 0; }

/* Filter chips */
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row-label { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; width: 64px; flex-shrink: 0; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: oklch(0.96 0.004 260); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .pill-dot { width: 6px; height: 6px; border-radius: 999px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  text-align: left; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
}
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: oklch(0.975 0.004 260); }
.data-table tbody td { padding: 14px 20px; vertical-align: middle; font-size: 13px; }
.data-table a.row-link { display: block; color: inherit; }

.lead-name { font-size: 13.5px; font-weight: 700; color: var(--text); display: block; }
.lead-meta { font-size: 12px; color: var(--text-3); }

/* Forms */
.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.field-control, select.field-control, textarea.field-control {
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 13.5px;
  font-family: inherit; color: var(--text); background: var(--surface); width: 100%;
}
.field-control:focus, select.field-control:focus, textarea.field-control:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.field-control { resize: vertical; }

.password-field-wrap { position: relative; }
.password-field-wrap input.field-control { padding-right: 38px; }
.password-toggle-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 3px; margin: 0; cursor: pointer;
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
}
.password-toggle-btn:hover { color: var(--text-2); }

/* Native select styled as a pill-like control (status/assign quick-change) */
.select-pill-wrap { position: relative; }
.select-pill-wrap select {
  appearance: none; -webkit-appearance: none; width: 100%;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 30px 8px 10px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface); cursor: pointer;
}
.select-pill-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select-pill-wrap::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; pointer-events: none;
  transform: translateY(-60%) rotate(45deg); border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
}

/* Timeline (dashboard meetings + lead activity feed) */
.timeline-row { display: flex; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.timeline-row:last-child { border-bottom: none; }
.timeline-row:hover { background: oklch(0.975 0.004 260); }
.timeline-time { width: 58px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.timeline-time span { font-weight: 500; color: var(--text-3); }
.timeline-divider { width: 2px; background: var(--border); border-radius: 2px; align-self: stretch; }

.activity-item { display: flex; gap: 14px; border-radius: 10px; transition: background 0.15s ease; }
.activity-item-match { background: var(--accent-soft); }
mark.search-hit { background: oklch(0.85 0.14 88); color: oklch(0.25 0.02 260); padding: 0 2px; border-radius: 3px; }
.activity-icon-col { display: flex; flex-direction: column; align-items: center; width: 30px; flex-shrink: 0; }
.activity-icon {
  width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.activity-line { width: 2px; flex-grow: 1; background: var(--border); margin-top: 4px; min-height: 12px; }
.activity-body { padding-bottom: 22px; flex-grow: 1; min-width: 0; }
.activity-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.activity-head-text { font-size: 13px; color: var(--text); }
.activity-time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.activity-detail { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.activity-meeting-box {
  margin-top: 6px; background: oklch(0.975 0.004 260); border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* Utility */
.text-muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.divider { height: 1px; background: var(--border); }

.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.alert-success { background: oklch(0.95 0.05 145); color: oklch(0.32 0.11 145); }
.alert-error { background: var(--danger-soft); color: oklch(0.42 0.15 25); }
.alert-warning { background: oklch(0.95 0.045 75); color: oklch(0.40 0.12 75); }
.alert-info { background: var(--accent-soft); color: var(--accent-soft-text); }
.alert-close { background: none; border: none; cursor: pointer; color: inherit; opacity: 0.6; font-size: 15px; }
.alert-close:hover { opacity: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat-tile { padding: 18px 18px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stat-number { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Horizontally-scrolling wrapper for wide tables on narrow screens */
.table-scroll { overflow-x: auto; }

/* Utility: any grid container carrying this class collapses to a single
   column at the tablet breakpoint. The desktop ratio stays inline
   (e.g. style="grid-template-columns:1.7fr 1fr"), so the override below
   needs !important to win over that inline declaration. */
.stack-on-mobile {}

/* Utility for the lead-detail grid, whose children use explicit inline
   grid-column/grid-row placement for the desktop layout. At the mobile
   breakpoint every child resets to auto-placement, so they simply stack
   in source order. */
.detail-grid {}

/* ---- Responsive breakpoints ---- */

@media (max-width: 900px) {
  .sidebar-toggle-btn { display: flex; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 999;
    box-shadow: 0 12px 40px oklch(0 0 0 / 0.18);
  }
  .sidebar.open { transform: translateX(0); }

  .topbar { padding: 0 16px 0 56px; }
  .page-content { padding: 20px 16px 32px 16px; gap: 16px; }

  .card-header { flex-wrap: wrap; gap: 8px; }
  .topbar { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }

  .stack-on-mobile { grid-template-columns: 1fr !important; }

  .detail-grid { grid-template-columns: 1fr !important; }
  .detail-grid > div { grid-column: auto !important; grid-row: auto !important; }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-title strong { font-size: 16px; }
  .card-body { padding: 15px 16px; }
  .data-table thead th, .data-table tbody td { padding: 11px 14px; }
}

/* ============================================================
   Admin skin — dark "neon glass" (deep navy-black, glassy cards,
   cyan-to-violet gradient accents). Applied app-wide (sidebar,
   topbar, cards, buttons, links) for company admins and super
   admins via body.theme-admin, so the whole platform reads as a
   distinct control panel for them, while team members/managers
   keep the default light theme.
   ============================================================ */
body.theme-admin {
  --bg: oklch(0.16 0.020 260);
  --surface: oklch(0.215 0.022 262);
  --border: oklch(0.36 0.035 265);
  --text: oklch(0.96 0.006 260);
  --text-2: oklch(0.70 0.016 262);
  --text-3: oklch(0.52 0.018 262);

  --accent: oklch(0.66 0.18 275);
  --accent-hover: oklch(0.60 0.19 275);
  --accent-soft: oklch(0.32 0.06 270);
  --accent-soft-text: oklch(0.86 0.09 270);

  --cyan: oklch(0.80 0.13 200);
  --violet: oklch(0.58 0.22 300);

  --shadow-card: 0 0 0 1px oklch(0.4 0.05 265 / 0.35), 0 18px 40px oklch(0 0 0 / 0.45);

  --danger: oklch(0.66 0.20 25);
  --danger-soft: oklch(0.32 0.09 25);
}

body.theme-admin .card { border-radius: 18px; }

body.theme-admin .sidebar-brand-mark,
body.theme-admin .btn-primary,
body.theme-admin .chip.active {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: none;
}

body.theme-admin .btn-primary:hover { filter: brightness(1.08); }

body.theme-admin .company-switcher:hover,
body.theme-admin .nav-link:hover,
body.theme-admin .logout-btn:hover,
body.theme-admin .sidebar-toggle-btn:hover,
body.theme-admin .btn-outline:hover,
body.theme-admin .chip:hover {
  background: oklch(0.28 0.03 265);
}
body.theme-admin .card-count-pill { background: oklch(0.30 0.035 265); }
body.theme-admin .pill.neutral { color: oklch(0.28 0.008 260); }

/* Outlined "glass" badges instead of solid pastel fills, matching the
   reference's stage/role badge style. Reuses each pill's own text color
   (already set per-variant above) as the border via currentColor, so this
   is one rule instead of redefining every status/source variant. */
body.theme-admin .pill:not(.neutral) {
  background: oklch(0.24 0.03 265 / 0.55);
  border: 1px solid currentColor;
}

/* Each pill's text color was tuned dark-on-light; brighten it here so the
   same badges read correctly on the dark glass background above. */
body.theme-admin .pill.cold { color: oklch(0.78 0.10 225); }
body.theme-admin .pill.warm { color: oklch(0.78 0.12 55); }
body.theme-admin .pill.hot, body.theme-admin .pill.red, body.theme-admin .pill.cancelled { color: oklch(0.72 0.17 20); }
body.theme-admin .pill.won, body.theme-admin .pill.green, body.theme-admin .pill.active { color: oklch(0.75 0.14 145); }
body.theme-admin .pill.lost, body.theme-admin .pill.churned { color: oklch(0.72 0.01 260); }
body.theme-admin .pill.manual { color: oklch(0.72 0.01 80); }
body.theme-admin .pill.website { color: oklch(0.72 0.10 165); }
body.theme-admin .pill.meta_ads, body.theme-admin .pill.open { color: oklch(0.72 0.12 255); }
body.theme-admin .pill.google_ads { color: oklch(0.78 0.09 88); }
body.theme-admin .pill.tiktok_ads { color: oklch(0.72 0.14 330); }
body.theme-admin .pill.linkedin_ads { color: oklch(0.70 0.10 200); }
body.theme-admin .pill.yellow { color: oklch(0.78 0.12 85); }
body.theme-admin .data-table tbody tr:hover,
body.theme-admin .timeline-row:hover {
  background: oklch(0.25 0.025 265);
}
