/* =============================================================
   CHAMPION TRACKER — Internal Styles
   Single source of truth for all authenticated (internal) pages.
   Loaded by _base_internal.html after bootstrap.css and
   bootstrap-theme-champion.css.
   ============================================================= */

/* ── Global ───────────────────────────────────────────────── */
body {
  font-family: 'Public Sans', sans-serif;
  background-color: #f5f4f2;
  overflow-x: hidden;
}

/* ── App Shell ────────────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.app--impersonating {
  padding-top: 40px;
}

.app--impersonating .sidebar {
  top: 40px;
  height: calc(100vh - 40px);
}

.impersonate-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 16px;
  background: #1a1a1a;
  color: #f5f4f2;
  font-size: 13px;
  line-height: 1.4;
}

.impersonate-banner-meta {
  color: #bdbab4;
}

.impersonate-banner-stop {
  flex-shrink: 0;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.impersonate-banner-stop:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffff;
  border-right: 1px solid #e9e7e3;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
  z-index: 1040;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 68px;
  min-width: 68px;
}

/* Sidebar brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 64px;
  min-height: 64px;
  border-bottom: 1px solid #e9e7e3;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-brand .logo-full {
  height: 32px;
  display: block;
  max-width: 182px;
  transition: opacity 0.15s, max-width 0.25s;
}

.sidebar-brand .logo-mini {
  height: 28px;
  width: 28px;
  display: none;
  flex-shrink: 0;
}

.sidebar.collapsed .logo-full {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}

.sidebar.collapsed .logo-mini {
  display: block;
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav .nav-item {
  margin: 2px 8px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #6B6964;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover {
  background: #f5f4f2;
  color: #282725;
}

.sidebar-nav .nav-link.active {
  background: #eff4ff;
  color: #095DFF;
  font-weight: 600;
}

.sidebar-nav .nav-link i,
.sidebar-nav .nav-link svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
}

.sidebar-nav .nav-link .nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.15s;
}

.sidebar.collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding: 10px;
  gap: 0;
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Sidebar user block */
.sidebar-user {
  padding: 10px 16px;
  border-top: 1px solid #e9e7e3;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: #eff4ff;
}

.sidebar-user .user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #6b7280;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-user .user-info {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  transition: opacity 0.15s;
}

.sidebar-user .user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #282725;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-email {
  font-size: 0.75rem;
  color: #6B6964;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .logout-btn {
  flex-shrink: 0;
  color: #6B6964;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.sidebar-user .logout-btn:hover {
  color: #dc3545;
  background: #fff5f5;
}

.sidebar-user .logout-btn svg,
.sidebar-user .logout-btn i {
  width: 16px;
  height: 16px;
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .logout-btn {
  display: none;
}

/* Mobile backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.4);
  z-index: 1039;
}

.sidebar-backdrop.show {
  display: block;
}

/* =============================================================
   MAIN CONTENT AREA
   ============================================================= */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
  min-width: 0;
}

body.sidebar-collapsed .main {
  margin-left: 68px;
}

/* =============================================================
   APP HEADER
   ============================================================= */
.app-header {
  display: flex;
  align-items: center;
  height: 64px;
  min-height: 64px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #e9e7e3;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
}

.header-toggle {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: #6B6964;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.header-toggle:hover {
  background: #f5f4f2;
  color: #282725;
}

.header-toggle svg {
  width: 20px;
  height: 20px;
}

.header-search {
  flex: 1;
  max-width: 360px;
}

.header-search .input-group {
  border: 1px solid #e9e7e3;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f4f2;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.header-search .input-group:focus-within {
  border-color: #095DFF;
  box-shadow: 0 0 0 3px rgba(9, 93, 255, 0.12);
  background: #fff;
}

.header-search .input-group-text {
  background: transparent;
  border: none;
  color: #908D87;
  padding: 0 8px 0 12px;
}

.header-search .input-group-text svg {
  width: 16px;
  height: 16px;
}

.header-search .form-control {
  background: transparent;
  border: none;
  font-size: 0.875rem;
  padding: 8px 12px 8px 4px;
  color: #282725;
  box-shadow: none;
}

.header-search .form-control::placeholder {
  color: #908D87;
}

.header-search .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: #6B6964;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.header-icon-btn:hover {
  background: #f5f4f2;
  color: #282725;
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile user avatar in header */
.header-user-mobile {
  display: none;
  align-items: center;
}

.header-user-mobile .user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6b7280;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* =============================================================
   PAGE CONTENT
   ============================================================= */
.page {
  flex: 1;
  padding: 24px;
  background: #f5f4f2;
}

/* Page header row */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #121110;
  margin: 0;
  line-height: 1.25;
}

/* =============================================================
   STAT CARDS
   ============================================================= */
.stat-cards-row {
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #e9e7e3;
  height: 100%;
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon.icon-blue {
  background: #eff4ff;
  color: #095DFF;
}

.stat-card-icon.icon-green {
  background: #f0fad1;
  color: #73A70E;
}

.stat-card-icon.icon-yellow {
  background: #fef9c3;
  color: #ca8a04;
}

.stat-card-icon svg,
.stat-card-icon i {
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 1;
}

.stat-card-meta .stat-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #282725;
  line-height: 1.2;
  margin-bottom: 2px;
}

.stat-card-meta .stat-card-sublabel {
  font-size: 0.75rem;
  color: #908D87;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #121110;
  line-height: 1;
}

/* =============================================================
   CHAMPIONS TABLE CARD
   ============================================================= */
.table-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9e7e3;
}

.table-card-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #e9e7e3;
  flex-wrap: wrap;
}

.table-search {
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.table-search .input-group {
  border: 1px solid #e9e7e3;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f4f2;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.table-search .input-group:focus-within {
  border-color: #095DFF;
  box-shadow: 0 0 0 3px rgba(9, 93, 255, 0.12);
  background: #fff;
}

.table-search .input-group-text {
  background: transparent;
  border: none;
  color: #908D87;
  padding: 0 6px 0 10px;
}

.table-search .input-group-text svg {
  width: 15px;
  height: 15px;
}

.table-search .form-control {
  background: transparent;
  border: none;
  font-size: 0.8125rem;
  padding: 7px 10px 7px 4px;
  color: #282725;
  box-shadow: none;
}

.table-search .form-control::placeholder {
  color: #908D87;
}

.table-search .form-control:focus {
  box-shadow: none;
  background: transparent;
}

.table-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.table-icon-btn {
  background: none;
  border: 1px solid transparent;
  padding: 7px;
  border-radius: 8px;
  color: #6B6964;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.table-icon-btn:hover {
  background: #f5f4f2;
  border-color: #e9e7e3;
  color: #282725;
}

.table-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Table */
.champions-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.champions-table thead tr {
  border-bottom: 1px solid #e9e7e3;
}

.champions-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B6964;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border: none;
  white-space: nowrap;
  vertical-align: middle;
  background: transparent;
}

.champions-table thead th.col-check {
  width: 48px;
  padding-right: 0;
}

.col-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.col-sort svg {
  width: 13px;
  height: 13px;
  color: #B7B2AB;
}

.champions-table tbody tr {
  border-bottom: 1px solid #f0eeeb;
  transition: background 0.1s;
}

.champions-table tbody tr:last-child {
  border-bottom: none;
}

.champions-table tbody tr:hover {
  background: #fbfaf9;
}

.champions-table tbody td {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #282725;
  border: none;
  vertical-align: middle;
}

/* Empty state */
.table-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 64px 24px;
  text-align: center;
}

.table-empty-state .empty-illustration {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  opacity: 0.45;
  color: #908D87;
}

.table-empty-state .empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #282725;
  margin-bottom: 6px;
}

.table-empty-state .empty-subtitle {
  font-size: 0.875rem;
  color: #908D87;
  margin-bottom: 20px;
}

/* =============================================================
   APP FOOTER
   ============================================================= */
.app-footer {
  background: #ffffff;
  border-top: 1px solid #e9e7e3;
  padding: 14px 24px;
  font-size: 0.8125rem;
  color: #6B6964;
  flex-shrink: 0;
}

.app-footer .footer-link a {
  color: #095DFF;
  text-decoration: none;
  transition: color 0.15s;
}

.app-footer .footer-link a:hover {
  color: #2537D6;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet / mobile: sidebar becomes off-canvas overlay */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
    min-width: 260px;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(18, 17, 16, 0.12);
  }

  /* Ensure collapse class doesn't reduce width on mobile */
  .sidebar.collapsed {
    width: 260px;
    min-width: 260px;
  }

  /* Undo collapsed label/layout rules so the mobile drawer always shows full nav */
  .sidebar.collapsed .nav-label {
    opacity: 1;
    width: auto;
    overflow: visible;
  }

  .sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: flex-start;
    padding: 10px 12px;
    gap: 12px;
  }

  .sidebar.collapsed .user-info {
    display: block;
  }

  .sidebar.collapsed .logout-btn {
    display: flex;
  }

  .main {
    margin-left: 0 !important;
  }

  .header-user-mobile {
    display: flex;
  }

  .header-search {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .page {
    padding: 16px;
  }

  .app-header {
    padding: 0 16px;
    gap: 8px;
  }

  .app-footer {
    padding: 12px 16px;
  }

  .table-card-toolbar {
    padding: 12px 16px;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }
}

/* =============================================================
   SIDEBAR SUBMENU
   ============================================================= */

.nav-item-has-submenu > .nav-link {
  position: relative;
}

.nav-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.nav-link[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-submenu {
  list-style: none;
  padding: 2px 0 4px 0;
  margin: 0;
}

.nav-submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 35px;
  border-radius: 8px;
  color: #6B6964;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  margin: 1px 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-submenu-link:hover {
  background: #f5f4f2;
  color: #282725;
}

.nav-submenu-link.active {
  background: #eff4ff;
  color: #095DFF;
  font-weight: 600;
}

.nav-submenu-link svg,
.nav-submenu-link i {
  width: 15px;
  height: 15px;
  font-size: 15px;
  flex-shrink: 0;
}

/* Hide submenu in collapsed (icon-only) mode */
.sidebar.collapsed .nav-submenu,
.sidebar.collapsed .collapse {
  display: none !important;
}

.sidebar.collapsed .nav-chevron {
  display: none;
}

/* =============================================================
   SETTINGS PAGES
   ============================================================= */

/* Breadcrumbs */
.settings-breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.settings-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-weight: 600;
  color: #908D87;
}

.settings-breadcrumb .breadcrumb-item a {
  color: #095DFF;
  text-decoration: none;
}

.settings-breadcrumb .breadcrumb-item a:hover {
  color: #2537D6;
}

.settings-breadcrumb .breadcrumb-item.active {
  color: #908D87;
}

/* Page header */
.settings-page-header .page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #211F1C;
}

.page-subtitle {
  font-size: 0.875rem;
}

/* Settings card */
.settings-card {
  border: 1px solid #e9e7e3;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.settings-card-header {
  background: #fff;
  border-bottom: 1px solid #f0ede8;
  padding: 20px 24px;
}

.settings-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #211F1C;
  margin-bottom: 4px;
}

.settings-card-desc {
  font-size: 0.8125rem;
  color: #908D87;
}

.settings-card-body {
  background: #fff;
  padding: 24px;
}

.settings-card-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0ede8;
}

/* Current plan card inside billing */
.current-plan-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #F8F7F5;
  border: 1px solid #e9e7e3;
  border-radius: 10px;
}

.current-plan-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #211F1C;
}

.current-plan-tagline {
  font-size: 0.875rem;
}

/* Stripe Placeholder */
.stripe-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #F8F7F5;
  border: 1px dashed #c8c4bc;
  border-radius: 10px;
  color: #60594E;
}

.stripe-placeholder svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #095DFF;
}

.stripe-placeholder strong {
  font-size: 0.9375rem;
  color: #211F1C;
  display: block;
  margin-bottom: 4px;
}

.stripe-placeholder p {
  font-size: 0.875rem;
  color: #908D87;
}

/* Stripe Elements card input */
.stripe-card-element {
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stripe-card-element.StripeElement--focus {
  border-color: #095DFF;
  box-shadow: 0 0 0 3px rgba(9, 93, 255, 0.12);
}

.stripe-card-element.StripeElement--invalid {
  border-color: #dc3545;
}

.stripe-card-errors {
  font-size: 0.875rem;
  color: #dc3545;
  min-height: 1.25rem;
}

/* =============================================================
   INVOICE TABLE
   ============================================================= */

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table thead tr {
  border-bottom: 1px solid #e9e7e3;
}

.invoice-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B6964;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  white-space: nowrap;
  background: transparent;
  border: none;
}

.invoice-table tbody tr {
  border-bottom: 1px solid #f0eeeb;
  transition: background 0.1s;
}

.invoice-table tbody tr:last-child {
  border-bottom: none;
}

.invoice-table tbody tr:hover {
  background: #fbfaf9;
}

.invoice-table tbody td {
  padding: 12px 20px;
  font-size: 0.875rem;
  color: #282725;
  border: none;
  vertical-align: middle;
}

.invoice-number {
  font-weight: 600;
  color: #211F1C;
}

.invoice-amount {
  font-weight: 600;
}

.invoice-actions {
  text-align: right;
  white-space: nowrap;
}

.invoice-actions svg {
  width: 14px;
  height: 14px;
}

/* Status badges */
.invoice-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.invoice-status--paid {
  background: #f0fad1;
  color: #3d6b0a;
}

.invoice-status--open {
  background: #fff3cd;
  color: #7a4f00;
}

.invoice-status--void,
.invoice-status--uncollectible {
  background: #f5f4f2;
  color: #6B6964;
}

/* Invoices empty state */
.invoice-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: #908D87;
}

.invoice-empty-state svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.invoice-empty-state p {
  font-size: 1rem;
  font-weight: 600;
  color: #60594E;
  margin-bottom: 4px;
}

.invoice-empty-state span {
  font-size: 0.875rem;
}


/* =============================================================
   CHAMPIONS PAGE
   ============================================================= */

/* ── Champion name cell ─────────────────────────────────────── */
.champion-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.champion-full-name {
  font-weight: 600;
  color: #211F1C;
  line-height: 1.3;
}

.champion-company {
  font-size: 0.8125rem;
  color: #908D87;
  line-height: 1.3;
}

.champion-email {
  font-size: 0.875rem;
  color: #4B4845;
}

.champion-linkedin-link {
  color: #0a66c2;
  display: inline-flex;
  align-items: center;
}

.champion-linkedin-link svg {
  width: 18px;
  height: 18px;
}

/* ── Status badges ──────────────────────────────────────────── */
.badge-tracked {
  background: #eaf5d3;
  color: #3a6509;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-not-tracked {
  background: #fde8e8;
  color: #b91c1c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Four-state tracking status badges ──────────────────────── */
.badge-tracking-not_tracked {
  background: #fde8e8;
  color: #b91c1c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-tracking-queued {
  background: #eff4ff;
  color: #2550d4;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-tracking-in_progress {
  background: #fff3e0;
  color: #c05600;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-tracking-complete {
  background: #eaf5d3;
  color: #3a6509;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Tracked icon beside champion name ──────────────────────── */
.champion-tracked-icon {
  color: #16a34a;
  vertical-align: middle;
  margin-left: 5px;
  flex-shrink: 0;
}

.champion-tracked-icon svg {
  width: 14px;
  height: 14px;
  stroke: #16a34a;
  vertical-align: middle;
}

/* ── Filter chips ────────────────────────────────────────────── */
.champion-filter-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.filter-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6B6964;
  background: #f5f4f2;
  border: 1px solid #e9e7e3;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  background: #eceae6;
  color: #211F1C;
  text-decoration: none;
}

.filter-chip.active {
  background: #095DFF;
  color: #fff;
  border-color: #095DFF;
}

/* ── Row actions ────────────────────────────────────────────── */
.col-actions {
  width: 80px;
  text-align: right;
}

.champion-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.action-star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #C4C0BA;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.action-star:hover {
  color: #F6C400;
  background: #fdf8e1;
}

.action-star.starred {
  color: #F6C400;
}

.action-star svg {
  width: 16px;
  height: 16px;
}

.action-star.starred svg {
  fill: #F6C400;
}

.action-menu-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #908D87;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.action-menu-btn:hover {
  color: #211F1C;
  background: #f0efec;
}

.action-menu-btn svg {
  width: 16px;
  height: 16px;
}

/* Starred row highlight */
.starred-row {
  background: #fffef6;
}

/* Disabled user row */
.user-row--disabled {
  opacity: 0.55;
}

/* ── Tag pills ──────────────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2ff;
  color: #3d5af1;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag-pill .tag-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #3d5af1;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
}

.tag-pill .tag-remove:hover {
  opacity: 1;
}

.champion-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* Tag input wrap (inside modal) */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 46px;
  cursor: text;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tag-input-wrap:focus-within {
  border-color: #095DFF;
  box-shadow: 0 0 0 3px rgba(9, 93, 255, 0.12);
}

.tag-input-wrap .tag-pill {
  flex-shrink: 0;
}

.tag-text-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  font-size: 0.875rem;
  background: transparent;
  padding: 2px 0;
}

/* ── Champions table pagination ─────────────────────────────── */
.champions-pagination {
  padding: 16px 20px;
  border-top: 1px solid #f0efec;
}

/* ── Sort icon ──────────────────────────────────────────────── */
.sort-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}

.sort-icon.active {
  opacity: 1;
  color: #095DFF;
}

/* ── Champions table: overflow-x only on mobile ─────────────── */
/* On desktop the overflow must be visible so dropdowns can escape */
@media (min-width: 992px) {
  .table-responsive {
    overflow: visible;
  }
}

/* ── Champion avatar circle ─────────────────────────────────── */
.champion-avatar-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.champion-name-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.champion-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
  background: #6b7280;
}

/* Letter classes kept for markup compatibility; all use the same gray. */
.champion-avatar--a, .champion-avatar--b, .champion-avatar--c, .champion-avatar--d,
.champion-avatar--e, .champion-avatar--f, .champion-avatar--g, .champion-avatar--h,
.champion-avatar--i, .champion-avatar--j, .champion-avatar--k, .champion-avatar--l,
.champion-avatar--m, .champion-avatar--n, .champion-avatar--o, .champion-avatar--p,
.champion-avatar--q, .champion-avatar--r, .champion-avatar--s, .champion-avatar--t,
.champion-avatar--u, .champion-avatar--v, .champion-avatar--w, .champion-avatar--x,
.champion-avatar--y, .champion-avatar--z,
.champion-avatar--0, .champion-avatar--1, .champion-avatar--2,
.champion-avatar--3, .champion-avatar--4, .champion-avatar--5,
.champion-avatar--6, .champion-avatar--7, .champion-avatar--8,
.champion-avatar--9 { background: #6b7280; }

/* mailto link in the email column */
.champion-email a {
  color: #4B4845;
  text-decoration: none;
}

.champion-email a:hover {
  color: #095DFF;
  text-decoration: underline;
}

/* champion name link in the list */
.champion-name-link {
  color: #121110;
  text-decoration: none;
}
.champion-name-link:hover {
  color: #095DFF;
  text-decoration: underline;
}

/* in-progress percent badge on the list */
.tracking-pct {
  font-weight: 700;
  margin-left: 2px;
}

/* ─── Champion detail page ─────────────────────────────────────────── */

.cd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cd-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cd-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.cd-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #121110;
  margin: 0;
}
.cd-subtitle {
  color: #6B6964;
  margin: 2px 0 0;
}
.cd-tracking-badge {
  background: #eaf5d3;
  color: #3a6509;
  font-weight: 600;
}
.cd-nottracking-badge {
  background: #fde8e8;
  color: #b91c1c;
  font-weight: 600;
}
/* Tracking status pill — per state */
.cd-trackingstatus-badge {
  font-weight: 600;
}
.cd-trackingstatus-queued {
  background: #e8f0fe;
  color: #1a56db;
}
.cd-trackingstatus-in_progress {
  background: #fef9c3;
  color: #854d0e;
}
.cd-trackingstatus-complete {
  background: #eaf5d3;
  color: #3a6509;
}
.cd-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Detail cards */
.cd-card {
  background: #ffffff;
  border: 1px solid #e9e7e3;
  border-radius: 12px;
}
.cd-card-header {
  padding: 18px 20px 0;
}
.cd-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #121110;
  margin: 0;
}
.cd-card-desc {
  font-size: 0.85rem;
  color: #6B6964;
  margin-top: 2px;
}
.cd-card-body {
  padding: 18px 20px;
}

/* Info grids */
.cd-info-grid,
.cd-quick-info {
  margin: 0;
}
.cd-info-grid > div,
.cd-quick-info > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1efec;
}
.cd-info-grid > div:last-child,
.cd-quick-info > div:last-child {
  border-bottom: none;
}
.cd-info-grid dt,
.cd-quick-info dt {
  color: #6B6964;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0;
}
.cd-info-grid dd,
.cd-quick-info dd {
  margin: 0;
  text-align: right;
  color: #282725;
  font-size: 0.9rem;
  word-break: break-word;
}

/* Prose blocks */
.cd-prose {
  color: #3a3835;
  line-height: 1.6;
  font-size: 0.92rem;
}
.cd-prose .cd-research-p {
  margin: 0 0 10px;
}
.cd-prose .cd-research-p:last-child {
  margin-bottom: 0;
}
.cd-prose .cd-research-head {
  margin: 12px 0 6px;
  color: #121110;
}
.cd-prose .cd-research-list {
  margin: 0 0 10px;
  padding-left: 1.25rem;
}
.cd-prose .cd-research-list li {
  margin-bottom: 6px;
}
.cd-prose .cd-research-list:last-child {
  margin-bottom: 0;
}
.cd-prose a {
  color: #0d6efd;
  text-decoration: underline;
  word-break: break-word;
}
.cd-prose a:hover {
  color: #0a58ca;
}
.cd-list a {
  color: #0d6efd;
  text-decoration: underline;
  word-break: break-word;
}
.cd-list a:hover {
  color: #0a58ca;
}
.cd-subhead {
  font-weight: 700;
  color: #121110;
  font-size: 0.88rem;
  margin: 14px 0 8px;
}
.cd-subhead:first-child {
  margin-top: 0;
}
.cd-summary-bullets {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: #3a3835;
  line-height: 1.55;
  font-size: 0.92rem;
}
.cd-summary-bullets li {
  margin-bottom: 6px;
}
.cd-summary-bullets li:last-child {
  margin-bottom: 0;
}
.cd-bullets,
.cd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cd-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: #3a3835;
  font-size: 0.9rem;
}
.cd-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #095DFF;
}
.cd-list-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1efec;
}
.cd-list-item:last-child {
  border-bottom: none;
}
.cd-list-title {
  font-weight: 600;
  color: #121110;
  font-size: 0.92rem;
}
.cd-list-meta {
  font-size: 0.82rem;
}

/* Pending / empty states */
.cd-pending,
.cd-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6B6964;
  font-size: 0.9rem;
}
.cd-empty {
  flex-direction: column;
  text-align: center;
  padding: 24px 12px;
}
.cd-pending svg {
  width: 16px;
  height: 16px;
}

/* ─── Recent Updates — numbered timeline ──────────────────────────── */
.cd-tl-wrap  { }

.cd-tl-row {
  display: flex;
  gap: 12px;
}

/* Left column: number circle + connector line */
.cd-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 26px;
}
.cd-tl-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #095DFF;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cd-tl-line {
  width: 2px;
  flex: 1;
  min-height: 12px;
  background: #C7D2FF;
  margin-top: 4px;
}

/* Right column: content card */
.cd-tl-card {
  flex: 1;
  border: 1px solid #e8e6e3;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fff;
}
.cd-tl-row:last-child .cd-tl-card { margin-bottom: 0; }

/* Priority card left borders + background tints */
.cd-tl-card-job_change          { border-left: 4px solid #ef4444; background: #fff9f9; }
.cd-tl-card-title_change        { border-left: 4px solid #095DFF; background: #f8faff; }
.cd-tl-card-speaking_engagement { border-left: 4px solid #22c55e; background: #f0fdf4; }
.cd-tl-card-conference_attendee { border-left: 4px solid #22c55e; background: #f0fdf4; }
.cd-tl-card-media               { border-left: 4px solid #f59e0b; background: #fffbeb; }
.cd-tl-card-award_recognition   { border-left: 4px solid #a855f7; background: #fdf4ff; }

/* Event-type badge pill */
.cd-tl-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.cd-tl-badge-job_change          { background: #ef4444; color: #fff; }
.cd-tl-badge-title_change        { background: #095DFF; color: #fff; }
.cd-tl-badge-speaking_engagement { background: #dcfce7; color: #15803d; }
.cd-tl-badge-conference_attendee { background: #dcfce7; color: #15803d; }
.cd-tl-badge-media               { background: #fef3c7; color: #92400e; }
.cd-tl-badge-award_recognition   { background: #f3e8ff; color: #7e22ce; }
.cd-tl-badge-other               { background: #EEF2FF; color: #095DFF; }

/* Headline, meta */
.cd-tl-headline {
  font-weight: 700;
  font-size: 0.92rem;
  color: #121110;
  margin-bottom: 3px;
  line-height: 1.35;
}
.cd-tl-meta {
  font-size: 0.78rem;
  color: #8a8680;
  margin-bottom: 7px;
}

/* Title/job-change previous → current diff */
.cd-tl-diff {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #F8FAFF;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.cd-tl-diff > div {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-tl-diff-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9a9590;
  font-weight: 600;
}
.cd-tl-diff-prev .cd-tl-diff-val { color: #8a8680; text-decoration: line-through; font-size: 0.88rem; }
.cd-tl-diff-curr .cd-tl-diff-val { color: #121110; font-weight: 600; font-size: 0.88rem; }

/* "Why it matters" box */
.cd-tl-why {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #3a3835;
  margin-top: 8px;
}

/* ── Misc updates 2-column grid ──────────────────────────────────────────── */
.cd-misc-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0eeeb; }
.cd-misc-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #908d87; margin-bottom: 10px; }
.cd-misc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 576px) { .cd-misc-grid { grid-template-columns: 1fr; } }
.cd-misc-card {
  border: 1px solid #e8e6e3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.cd-misc-card-headline { font-weight: 600; color: #121110; margin-bottom: 3px; font-size: 0.83rem; line-height: 1.3; }
.cd-misc-card-meta     { color: #8a8680; font-size: 0.74rem; }
.cd-misc-card-why      { color: #3a3835; font-size: 0.78rem; margin-top: 5px; line-height: 1.35; }

/* More/Less toggle button */
.cd-more-btn {
  font-size: 0.8rem;
  color: #095DFF;
  background: none;
  border: none;
  padding: 8px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cd-more-btn:hover { text-decoration: underline; }

/* Accordion tweaks */
.cd-accordion .accordion-button {
  font-weight: 600;
  color: #282725;
}
.cd-accordion .accordion-button:not(.collapsed) {
  background: #f7f9ff;
  color: #095DFF;
}
.cd-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: #c9d8ff;
}

/* Start-tracking CTA */
.cd-track-cta .cd-track-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff4ff;
  color: #095DFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.cd-track-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #121110;
}
.cd-track-desc {
  color: #6B6964;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.cd-track-slots {
  font-size: 0.8rem;
}
.cd-track-limit {
  font-size: 0.85rem;
}
.cd-upgrade-link {
  font-size: 0.85rem;
  color: #095DFF;
  font-weight: 600;
  text-decoration: none;
}
.cd-upgrade-link:hover {
  color: #6E88FF;
  text-decoration: underline;
}

/* Tracking card */
.cd-tracking-card .cd-track-status {
  font-weight: 700;
  color: #3a6509;
}
.cd-tracking-card .cd-track-status[data-status="failed"] {
  color: #b91c1c;
}

/* Per-task progress rows */
.cd-tasks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-task-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #282725;
  margin-bottom: 4px;
}
.cd-task-label .cd-task-state {
  font-weight: 500;
  color: #6b6863;
}
.cd-task-state-scheduled {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.cd-task-bar {
  height: 10px;
  border-radius: 6px;
}
.cd-task-row[data-task-status="failed"] .cd-task-state {
  color: #b91c1c;
}
.cd-task-row[data-task-status="complete"] .cd-task-state {
  color: #3C5904;
  font-weight: 600;
}
.cd-task-row[data-task-status="complete"] .progress-bar {
  background-color: #577F08;
  background-image: none;
  animation: none;
  color: #fff;
}

.cd-add-tags-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cd-add-tags-btn svg {
  width: 15px;
  height: 15px;
}
.cd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Error card */
.cd-error-card {
  border-color: #f5c2c2;
  background: #fef6f6;
}
.cd-error-card svg {
  color: #b91c1c;
}

/* Progress timeline (View Progress modal) */
.cd-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
}
.cd-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1efec;
}
.cd-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #095DFF;
  margin-top: 6px;
  flex-shrink: 0;
}
.cd-timeline-text {
  font-size: 0.85rem;
  color: #3a3835;
}

/* ─── Run history modal ────────────────────────────────────────────── */

.cd-run-history-trigger {
  font-size: 0.85rem;
  color: #095DFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cd-run-history-trigger:hover { color: #0040cc; }
.cd-run-history-icon { width: 12px; height: 12px; }

.cd-run-history-list { padding: 0; margin: 0; }

.cd-run-history-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1efec;
}
.cd-run-history-item:last-child { border-bottom: none; }

.cd-run-history-time {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  display: block;
}

/* Status badge colours inside the run history modal */
.cd-run-status-badge { font-size: 0.72rem; font-weight: 600; }
.cd-run-status-complete  { background: #d1f5d3; color: #1a6b22; }
.cd-run-status-partial   { background: #fff3cd; color: #7a5c00; }
.cd-run-status-failed    { background: #fde8e8; color: #b91c1c; }
.cd-run-status-in_progress { background: #e0e7ff; color: #3730a3; }
.cd-run-status-queued    { background: #f0f0f0; color: #555; }

/* ─── Notifications ────────────────────────────────────────────────── */

.header-notif .notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.notif-dropdown {
  width: 340px;
  max-width: 92vw;
  padding: 0;
  border: 1px solid #e9e7e3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 17, 16, 0.12);
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1efec;
}
.notif-dropdown-title {
  font-weight: 700;
  color: #121110;
}
.notif-mark-all {
  background: none;
  border: none;
  color: #095DFF;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.notif-list {
  max-height: 360px;
  overflow-y: auto;
}
.notif-empty {
  padding: 24px 14px;
  text-align: center;
  color: #6B6964;
  font-size: 0.88rem;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f3f0;
}
.notif-item.notif-unread {
  background: #f7f9ff;
}
.notif-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: #B7B2AB;
  flex-shrink: 0;
}
.notif-status-progress { background: #095DFF; }
.notif-status-complete { background: #73A70E; }
.notif-status-failed   { background: #b91c1c; }
.notif-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.notif-title {
  font-weight: 600;
  color: #121110;
  font-size: 0.88rem;
}
.notif-text {
  color: #6B6964;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-time {
  color: #908D87;
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
}
.notif-pct {
  color: #095DFF;
  font-weight: 700;
}
.notif-dismiss {
  background: none;
  border: none;
  color: #908D87;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.notif-dismiss:hover {
  color: #b91c1c;
}
.notif-dropdown-footer {
  padding: 10px 14px;
  text-align: center;
  border-top: 1px solid #f1efec;
}
.notif-dropdown-footer a {
  color: #095DFF;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

/* Notifications page */
.notif-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notif-page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1efec;
}
.notif-page-item.notif-unread {
  background: #f7f9ff;
}
.notif-page-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.notif-page-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notif-page-title {
  font-weight: 600;
  color: #121110;
}
.notif-page-text {
  color: #6B6964;
  font-size: 0.88rem;
}
.notif-page-time {
  font-size: 0.78rem;
}
.notif-page-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.notif-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 16px;
  color: #6B6964;
}

/* ─── Dashboard ──────────────────────────────────────────────────── */
.stat-card-icon.icon-purple {
  background: #f3eafe;
  color: #7c3aed;
}

.dash-card {
  background: #fff;
  border: 1px solid #ECEAE6;
  border-radius: 14px;
  overflow: hidden;
}

.dash-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #F1EFEB;
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #121110;
  margin: 0;
}

.dash-card-subtitle {
  font-size: 0.82rem;
  color: #908D87;
  margin: 2px 0 0;
}

.dash-card-body {
  padding: 8px 20px 16px;
}

.dash-view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: #095DFF;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-view-all:hover { color: #0746c4; }

.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 40px 16px;
  color: #6B6964;
}
.dash-empty svg { width: 30px; height: 30px; color: #C4C1BB; }

/* Priority updates list */
.priority-list {
  display: flex;
  flex-direction: column;
}
.priority-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #F1EFEB;
}
.priority-row:last-child { border-bottom: 0; }

.priority-main { flex: 1; min-width: 0; }
.priority-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.priority-name {
  font-weight: 700;
  color: #121110;
}
.priority-sub {
  font-size: 0.82rem;
  color: #908D87;
  margin-bottom: 4px;
}
.priority-desc {
  font-size: 0.9rem;
  color: #3F3D3A;
}
.priority-diff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.priority-diff svg { width: 14px; height: 14px; color: #908D87; }
.priority-why {
  font-size: 0.82rem;
  color: #6B6964;
  margin-top: 4px;
}
.priority-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.priority-date {
  font-size: 0.78rem;
  color: #908D87;
  white-space: nowrap;
}

/* Type pills (7 categories) */
.dash-type-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.dash-type-title_change        { background: #095DFF; color: #fff; }
.dash-type-job_change          { background: #ef4444; color: #fff; }
.dash-type-speaking_engagement { background: #dcfce7; color: #15803d; }
.dash-type-conference_attendee { background: #dcfce7; color: #15803d; }
.dash-type-media               { background: #fef3c7; color: #92400e; }
.dash-type-award_recognition   { background: #f3e8ff; color: #7e22ce; }
.dash-type-other               { background: #F1EFEB; color: #6B6964; }

/* ── Per-type colored left border + background tint for priority rows ─────── */
.priority-row--job_change,
.priority-row--title_change,
.priority-row--speaking_engagement,
.priority-row--conference_attendee,
.priority-row--media,
.priority-row--award_recognition {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-bottom: none;
}
.priority-row--job_change          { border-left: 4px solid #ef4444; background: #fff9f9; }
.priority-row--title_change        { border-left: 4px solid #095DFF; background: #f8faff; }
.priority-row--speaking_engagement { border-left: 4px solid #22c55e; background: #f0fdf4; }
.priority-row--conference_attendee { border-left: 4px solid #22c55e; background: #f0fdf4; }
.priority-row--media               { border-left: 4px solid #f59e0b; background: #fffbeb; }
.priority-row--award_recognition   { border-left: 4px solid #a855f7; background: #fdf4ff; }

/* Champion name link inside a dashboard misc card */
.dash-misc-card-champion { font-size: 0.75rem; font-weight: 700; margin-bottom: 2px; }
.dash-misc-card-champion a { color: #095DFF; text-decoration: none; }
.dash-misc-card-champion a:hover { text-decoration: underline; }

/* Side-by-side mini lists */
.dash-mini-list {
  display: flex;
  flex-direction: column;
}
.dash-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F1EFEB;
}
.dash-mini-row:last-child { border-bottom: 0; }
.dash-mini-row--link {
  text-decoration: none;
  transition: background-color .12s ease;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 0 -8px;
}
.dash-mini-row--link:hover { background: #F7F6F3; }

.dash-mini-main { flex: 1; min-width: 0; }
.dash-mini-name {
  font-weight: 600;
  color: #121110;
  text-decoration: none;
  display: block;
}
a.dash-mini-name:hover { color: #095DFF; }
.dash-mini-sub {
  font-size: 0.8rem;
  color: #908D87;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-new-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0fad1;
  color: #5C8508;
  flex-shrink: 0;
}
