/* bd.css — PSI Recruiting CRM v2.0
   Business Development Module Stylesheet
   All classes use the bd- prefix.
   Adapts automatically via CSS custom properties (light + dark via data-theme).
   ============================================================ */

/* ============================================================
   SHARED EASING
   ============================================================ */
:root {
  --bd-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bd-transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   STAGE COLORS  (referenced throughout)
   Lead:                #8b8685  (gray)
   Qualified:           #3498db  (blue)
   Meeting Scheduled:   #8e44ad  (purple)
   Proposal Sent:       #e67e22  (orange)
   Negotiating:         #f39c12  (amber)
   Won:                 #27ae60  (green)
   Lost:                #c0392b  (red)
   ============================================================ */

/* ============================================================
   1. DASHBOARD
   ============================================================ */

.bd-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
}

/* KPI Row */
.bd-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.bd-kpi-card {
  flex: 1 1 140px;
  min-width: 120px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--bd-transition), transform var(--bd-transition);
}

.bd-kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.bd-kpi-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}

.bd-kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard Grid */
.bd-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.bd-dash-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.bd-dash-wide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
}

/* ============================================================
   2. PIPELINE SUMMARY BAR
   ============================================================ */

.bd-pipeline-summary {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bd-pbar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-surface-offset);
  gap: 2px;
}

.bd-pbar-seg {
  flex: 0 0 auto;
  height: 100%;
  transition: opacity var(--bd-transition);
  min-width: 4px;
}

.bd-pbar-seg:hover {
  opacity: 0.8;
}

.bd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.bd-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.bd-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ============================================================
   3. LISTS & ACTIVITY FEED
   ============================================================ */

.bd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.bd-section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bd-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px var(--space-1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: color var(--bd-transition), background var(--bd-transition);
}

.bd-link-btn:hover {
  color: var(--color-primary-hover);
  background: var(--color-primary-highlight);
}

.bd-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.bd-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--bd-transition);
  gap: var(--space-3);
}

.bd-list-row:last-child {
  border-bottom: none;
}

.bd-list-row:hover {
  background: var(--color-surface-offset);
}

.bd-list-row-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-list-row-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-list-row-info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Activity Feed */
.bd-act-feed {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 320px;
}

.bd-act-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--bd-transition);
}

.bd-act-row:last-child {
  border-bottom: none;
}

.bd-act-row:hover {
  background: var(--color-surface-offset);
}

.bd-act-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  margin-top: 1px;
}

.bd-act-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-act-who {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.bd-act-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bd-act-subject {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-act-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ============================================================
   4. ALERTS & DUE BADGES
   ============================================================ */

.bd-alert {
  background: var(--color-gold-highlight);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: var(--space-3) var(--space-5);
}

.bd-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  font-family: inherit;
  transition: background var(--bd-transition), color var(--bd-transition);
  white-space: nowrap;
}

.bd-alert-btn:hover {
  background: var(--color-gold);
  color: var(--color-text-inverse);
}

.bd-due-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-notification-highlight);
  color: var(--color-notification);
  white-space: nowrap;
}

/* ============================================================
   5. PROSPECTS VIEW
   ============================================================ */

.bd-prospects-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Toolbar */
.bd-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
}

.bd-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 320px;
}

.bd-search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.bd-search-input {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) calc(var(--space-3) + 20px);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color var(--bd-transition), box-shadow var(--bd-transition);
  box-sizing: border-box;
}

.bd-search-input::placeholder {
  color: var(--color-text-faint);
}

.bd-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

/* Pills */
.bd-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.bd-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: inherit;
  transition: all var(--bd-transition);
  white-space: nowrap;
  user-select: none;
}

.bd-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.bd-pill-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.bd-pill-active:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

/* Table */
.bd-table-wrap {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}

.bd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums lining-nums;
}

.bd-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface);
}

.bd-table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-divider);
  white-space: nowrap;
  user-select: none;
}

.bd-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  vertical-align: middle;
}

.bd-table tbody tr:hover {
  background: var(--color-surface-offset);
}

.bd-th-sort {
  cursor: pointer;
  transition: color var(--bd-transition);
}

.bd-th-sort:hover {
  color: var(--color-text);
}

.bd-prospect-row {
  cursor: pointer;
  transition: background var(--bd-transition);
}

.bd-row-check {
  width: 36px;
  padding-left: var(--space-4) !important;
}

.bd-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bd-td-name {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.bd-td-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.bd-td-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.bd-td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.bd-td-value {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bd-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 500;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  white-space: nowrap;
  border: 1px solid var(--color-divider);
}

/* Stage badges */
.bd-stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Stage colors applied via data attribute or class suffix in JS */
.bd-stage-badge[data-stage="Lead"]               { background: #8b868520; color: #8b8685; }
.bd-stage-badge[data-stage="Qualified"]          { background: #3498db20; color: #3498db; }
.bd-stage-badge[data-stage="Meeting Scheduled"]  { background: #8e44ad20; color: #8e44ad; }
.bd-stage-badge[data-stage="Proposal Sent"]      { background: #e67e2220; color: #e67e22; }
.bd-stage-badge[data-stage="Negotiating"]        { background: #f39c1220; color: #f39c12; }
.bd-stage-badge[data-stage="Won"]                { background: #27ae6020; color: #27ae60; }
.bd-stage-badge[data-stage="Lost"]               { background: #c0392b20; color: #c0392b; }

/* Fallback stage classes */
.bd-stage-lead              { background: #8b868520; color: #8b8685; }
.bd-stage-qualified         { background: #3498db20; color: #3498db; }
.bd-stage-meeting           { background: #8e44ad20; color: #8e44ad; }
.bd-stage-proposal          { background: #e67e2220; color: #e67e22; }
.bd-stage-negotiating       { background: #f39c1220; color: #f39c12; }
.bd-stage-won               { background: #27ae6020; color: #27ae60; }
.bd-stage-lost              { background: #c0392b20; color: #c0392b; }

/* Connection badge */
.bd-conn-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

/* Table Footer */
.bd-table-footer {
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Empty states */
.bd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.bd-empty-state svg {
  width: 40px;
  height: 40px;
  opacity: 0.35;
  margin-bottom: var(--space-2);
}

.bd-empty-cell {
  color: var(--color-text-faint);
  font-style: italic;
  font-size: var(--text-xs);
}

/* ============================================================
   6. BULK ACTIONS BAR
   ============================================================ */

.bd-bulk-bar {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface-raised, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: bd-bulk-in 220ms var(--bd-ease) forwards;
}

@keyframes bd-bulk-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.bd-bulk-count {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  padding-right: var(--space-3);
  border-right: 1px solid var(--color-divider);
}

.bd-bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-family: inherit;
  transition: all var(--bd-transition);
  white-space: nowrap;
}

.bd-bulk-btn:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-text-muted);
}

.bd-bulk-btn:active {
  transform: scale(0.96);
}

.bd-bulk-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}

.bd-bulk-btn-ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-color: var(--color-border);
}

.bd-bulk-btn-danger {
  background: transparent;
  border-color: transparent;
  color: var(--color-notification);
}

.bd-bulk-btn-danger:hover {
  background: var(--color-notification-highlight);
  border-color: var(--color-notification);
  color: var(--color-notification);
}

/* ============================================================
   7. PROSPECT DETAIL PANEL
   ============================================================ */

.bd-detail-profile-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.bd-detail-profile-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bd-detail-profile-left .bd-stage-badge,
.bd-detail-profile-left .bd-conn-badge {
  align-self: flex-start;
}

.bd-detail-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

.bd-detail-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.bd-detail-profile-meta a,
.bd-detail-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.bd-detail-li-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: #0077B5;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--bd-transition);
}

.bd-detail-li-link:hover {
  opacity: 0.75;
}

/* Detail body layout */
.bd-detail-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.bd-detail-main {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bd-detail-sidebar {
  width: 200px;
  flex-shrink: 0;
  border-left: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Sidebar sections */
.bd-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bd-sidebar-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--color-divider);
}

.bd-sidebar-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface-offset);
  color: var(--color-text);
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: all var(--bd-transition);
}

.bd-sidebar-btn:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-text-muted);
}

.bd-sidebar-btn:active {
  transform: scale(0.97);
}

.bd-sidebar-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bd-sidebar-btn-danger {
  color: var(--color-notification);
  border-color: color-mix(in srgb, var(--color-notification) 40%, transparent);
  background: var(--color-notification-highlight);
}

.bd-sidebar-btn-danger:hover {
  background: var(--color-notification);
  color: #fff;
}

/* Detail Tabs */
.bd-dtabs-row {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-divider);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bd-dtabs-row::-webkit-scrollbar {
  display: none;
}

.bd-dtab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--bd-transition), border-color var(--bd-transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bd-dtab:hover {
  color: var(--color-text);
}

.bd-dtab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.bd-tab-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bd-tab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  gap: var(--space-3);
  text-align: center;
}

.bd-tab-empty svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
}

.bd-tab-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: inherit;
  transition: all var(--bd-transition);
}

.bd-tab-action-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================================
   8. TIMELINE
   ============================================================ */

.bd-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.bd-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-divider);
  z-index: 0;
}

.bd-timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  position: relative;
}

.bd-timeline-item + .bd-timeline-item {
  border-top: none;
}

.bd-tl-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
}

/* Timeline icon type colors */
.bd-tl-linkedin_message  { background: #0077B520; color: #0077B5; }
.bd-tl-linkedin_connection { background: #0077B520; color: #0077B5; }
.bd-tl-email_sent        { background: var(--color-primary-highlight); color: var(--color-primary); }
.bd-tl-email_received    { background: #27ae6020; color: #27ae60; }
.bd-tl-meeting           { background: #8e44ad20; color: #8e44ad; }
.bd-tl-call              { background: #e67e2220; color: #e67e22; }
.bd-tl-note              { background: var(--color-surface-dynamic); color: var(--color-text-muted); }
.bd-tl-event_met         { background: #f39c1220; color: #f39c12; }
.bd-tl-stage_change      { background: #3498db20; color: #3498db; }

.bd-tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.bd-tl-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.bd-tl-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
}

.bd-tl-subject {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.bd-tl-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.bd-tl-body-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  white-space: pre-line;
}

/* ============================================================
   9. MESSAGES / EMAILS / MEETINGS
   ============================================================ */

.bd-messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.bd-msg-bubble {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  position: relative;
  max-width: 90%;
}

.bd-msg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.bd-msg-body {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Emails */
.bd-emails {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bd-email-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--bd-transition);
}

.bd-email-row:last-child {
  border-bottom: none;
}

.bd-email-row:hover {
  background: var(--color-surface-offset);
}

.bd-email-subj {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.bd-email-preview {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 2;
  min-width: 0;
}

.bd-email-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.bd-email-dir-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.bd-email-dir-badge.sent {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.bd-email-dir-badge.received {
  background: #27ae6020;
  color: #27ae60;
}

.bd-email-content {
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Meetings */
.bd-meetings {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bd-meeting-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--bd-transition);
}

.bd-meeting-card:hover {
  box-shadow: var(--shadow-sm);
}

.bd-meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.bd-meeting-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.bd-meeting-type {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: #8e44ad20;
  color: #8e44ad;
}

.bd-meeting-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.bd-meeting-notes {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ============================================================
   10. DEAL TAB
   ============================================================ */

.bd-deal-tab {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bd-deal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  gap: var(--space-4);
}

.bd-deal-row:last-child {
  border-bottom: none;
}

.bd-deal-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.bd-deal-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.bd-deal-stat-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   11. PIPELINE / KANBAN BOARD
   ============================================================ */

.bd-pipeline-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.bd-kanban-board {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-5) var(--space-6);
  align-items: flex-start;
  flex: 1;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.bd-pipeline-col {
  min-width: 200px;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 100%;
  scroll-snap-align: start;
}

.bd-col-header {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: sticky;
  top: 0;
  z-index: 1;
}

.bd-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text);
}

.bd-col-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bd-col-count {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
}

.bd-col-value {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.bd-cards-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3);
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 80px;
}

.bd-col-empty {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-4) var(--space-3);
  font-style: italic;
}

/* Kanban card */
.bd-kanban-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--bd-transition), transform var(--bd-transition), border-color var(--bd-transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  user-select: none;
}

.bd-kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.bd-kanban-card:active,
.bd-kanban-card.dragging {
  cursor: grabbing;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg) scale(1.02);
  opacity: 0.9;
}

.bd-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.bd-card-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.bd-card-company {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.bd-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
}

.bd-card-value {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.bd-card-days {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
}

.bd-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-2);
  margin-top: var(--space-1);
}

.bd-card-fu-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-faint);
}

.bd-card-fu-ok {
  color: #27ae60;
}

/* Drag over highlight */
.bd-col-drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  outline: 2px dashed var(--color-primary);
  outline-offset: -3px;
}

.bd-col-drag-over .bd-cards-area {
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

/* Forecast */
.bd-pipeline-forecast {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.bd-forecast-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1 1 120px;
}

.bd-forecast-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.bd-forecast-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   12. EVENTS VIEW
   ============================================================ */

.bd-events-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
}

.bd-events-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bd-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.bd-event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--bd-transition), transform var(--bd-transition);
  cursor: pointer;
}

.bd-event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bd-event-card-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bd-event-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.bd-event-dates {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bd-event-location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bd-event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
}

.bd-event-cost {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.bd-event-countdown {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bd-event-countdown-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.bd-event-card-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  background: var(--color-surface-offset);
}

.bd-event-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex: 1;
}

/* Event type badge */
.bd-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.bd-type-badge[data-type="Trade Show"]  { background: var(--color-primary-highlight);  color: var(--color-primary); }
.bd-type-badge[data-type="Conference"]  { background: #3498db20; color: #3498db; }
.bd-type-badge[data-type="Networking"]  { background: #8e44ad20; color: #8e44ad; }
.bd-type-badge[data-type="Regional"]    { background: #e67e2220; color: #e67e22; }

/* Fallback */
.bd-type-tradeshow   { background: var(--color-primary-highlight); color: var(--color-primary); }
.bd-type-conference  { background: #3498db20; color: #3498db; }
.bd-type-networking  { background: #8e44ad20; color: #8e44ad; }
.bd-type-regional    { background: #e67e2220; color: #e67e22; }

.bd-event-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.bd-attendance-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-success-highlight);
  color: var(--color-success);
  white-space: nowrap;
}

.bd-event-past-label {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-surface-dynamic);
  color: var(--color-text-faint);
}

.bd-event-reg-urgent {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-notification);
  background: var(--color-notification-highlight);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
}

.bd-event-prospects-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.bd-event-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mini event card (dashboard) */
.bd-event-mini-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--bd-transition);
}

.bd-event-mini-card:last-child {
  border-bottom: none;
}

.bd-event-mini-card:hover {
  background: var(--color-surface-offset);
}

.bd-event-mini-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.bd-event-mini-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============================================================
   13. EVENT DETAIL
   ============================================================ */

.bd-event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-6);
  padding: var(--space-6);
  align-items: flex-start;
}

.bd-event-detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.bd-event-detail-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bd-event-detail-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Checklist */
.bd-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
}

.bd-checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.bd-checklist-item:last-child {
  border-bottom: none;
}

.bd-checklist-item input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ROI grid */
.bd-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
}

.bd-roi-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
}

.bd-roi-computed {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

/* Event prospect rows */
.bd-event-prospect-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  transition: background var(--bd-transition);
}

.bd-event-prospect-row:last-child {
  border-bottom: none;
}

.bd-event-prospect-row:hover {
  background: var(--color-surface-offset);
}

.bd-event-prospect-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}

.bd-event-prospect-co {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Generic meta labels */
.bd-meta-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.bd-meta-value {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* ============================================================
   14. TEMPLATES
   ============================================================ */

.bd-templates-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
}

.bd-tmpl-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bd-tmpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.bd-tmpl-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--bd-transition), transform var(--bd-transition);
  cursor: pointer;
}

.bd-tmpl-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bd-tmpl-card-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bd-tmpl-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.bd-tmpl-channel-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bd-tmpl-linkedin {
  background: #0077B520;
  color: #0077B5;
}

.bd-tmpl-channel-badge.linkedin,
.bd-tmpl-card.linkedin .bd-tmpl-channel-badge {
  background: #0077B520;
  color: #0077B5;
}

.bd-tmpl-email {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.bd-tmpl-channel-badge.email,
.bd-tmpl-card.email .bd-tmpl-channel-badge {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.bd-tmpl-category {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.bd-tmpl-preview {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.bd-tmpl-preview-box {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: inherit;
  min-height: 100px;
}

.bd-tmpl-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-offset);
}

.bd-tmpl-subject {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-offset);
  font-weight: 500;
}

.bd-ab-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-purple-highlight);
  color: var(--color-purple);
  letter-spacing: 0.04em;
}

.bd-var-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.bd-var-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-family: inherit;
  transition: all var(--bd-transition);
  font-variant-numeric: lining-nums;
}

.bd-var-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================================
   15. SEQUENCES
   ============================================================ */

.bd-sequences-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
}

.bd-seq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bd-seq-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--bd-transition), transform var(--bd-transition);
}

.bd-seq-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.bd-seq-card-main {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.bd-seq-card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4);
  border-left: 1px solid var(--color-divider);
  background: var(--color-surface-offset);
  justify-content: center;
  min-width: 100px;
}

.bd-seq-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.bd-seq-trigger {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  align-self: flex-start;
}

.bd-seq-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.bd-seq-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.bd-seq-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bd-seq-step-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background var(--bd-transition);
}

.bd-seq-step-row:hover {
  background: var(--color-surface-dynamic);
}

.bd-seq-step-num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bd-seq-step-day {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 52px;
}

.bd-seq-step-channel {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-surface-dynamic);
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.bd-seq-step-tmpl {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-seq-step-editor {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bd-seq-empty-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
  font-style: italic;
  border: 2px dashed var(--color-divider);
  border-radius: var(--radius-md);
  text-align: center;
}

/* ============================================================
   16. TOGGLE
   ============================================================ */

.bd-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.bd-toggle-label input[type="checkbox"] {
  width: 34px;
  height: 18px;
  appearance: none;
  background: var(--color-surface-dynamic);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: background var(--bd-transition);
  flex-shrink: 0;
}

.bd-toggle-label input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: #fff;
  top: 1px;
  left: 1px;
  transition: transform var(--bd-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bd-toggle-label input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.bd-toggle-label input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}

.bd-toggle-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   17. REPORTS (CSS-only charts)
   ============================================================ */

.bd-reports-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
}

.bd-chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bd-chart-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bd-chart-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Bar chart */
.bd-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  padding: var(--space-5);
  height: 160px;
  background: var(--color-surface-offset);
}

.bd-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}

.bd-bar {
  width: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: opacity var(--bd-transition);
  min-height: 4px;
}

.bd-bar:hover {
  opacity: 0.75;
}

.bd-bar-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* Funnel */
.bd-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
}

.bd-funnel-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.bd-funnel-bar {
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  transition: opacity var(--bd-transition), width var(--bd-transition);
}

.bd-funnel-bar:hover {
  opacity: 0.8;
}

.bd-funnel-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 120px;
}

.bd-funnel-value {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* ROI table */
.bd-roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.bd-roi-table th {
  text-align: left;
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-surface-offset);
}

.bd-roi-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.bd-roi-table tbody tr:hover {
  background: var(--color-surface-offset);
}

/* ============================================================
   18. BUTTONS & FORMS
   ============================================================ */

.bd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: inherit;
  white-space: nowrap;
  min-height: 36px;
  transition: background var(--bd-transition), box-shadow var(--bd-transition), transform var(--bd-transition);
}

.bd-btn-primary:hover {
  background: var(--color-primary-hover);
}

.bd-btn-primary:active {
  background: var(--color-primary-active);
  transform: scale(0.97);
}

.bd-btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  min-height: 28px;
}

.bd-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--color-notification);
  color: #fff;
  font-family: inherit;
  white-space: nowrap;
  min-height: 36px;
  transition: background var(--bd-transition), transform var(--bd-transition);
}

.bd-btn-danger:hover {
  background: var(--color-notification-hover);
}

.bd-btn-danger:active {
  transform: scale(0.97);
}

.bd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  min-height: 36px;
  min-width: 36px;
  transition: background var(--bd-transition), color var(--bd-transition);
}

.bd-icon-btn:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

.bd-icon-btn:active {
  transform: scale(0.94);
}

.bd-quick-dates {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.bd-quick-date-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: inherit;
  transition: all var(--bd-transition);
  white-space: nowrap;
}

.bd-quick-date-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}

/* ============================================================
   19. MISC UTILITIES
   ============================================================ */

.bd-form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.5;
}

.bd-dup-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-warning-highlight);
  border: 1px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: var(--space-2) 0;
}

.bd-empty-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

.bd-prospect-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================================
   20. AVATAR / INITIALS
   ============================================================ */

.bd-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
}

.bd-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 0.6rem;
}

.bd-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
}

/* ============================================================
   21. FORM ELEMENTS (BD-scoped)
   ============================================================ */

.bd-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.bd-form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.bd-form-input,
.bd-form-select,
.bd-form-textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color var(--bd-transition), box-shadow var(--bd-transition);
  box-sizing: border-box;
}

.bd-form-input:focus,
.bd-form-select:focus,
.bd-form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.bd-form-input::placeholder,
.bd-form-textarea::placeholder {
  color: var(--color-text-faint);
}

.bd-form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* ============================================================
   22. DIVIDER
   ============================================================ */

.bd-divider {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-4) 0;
}

/* ============================================================
   23. RESPONSIVE — MOBILE < 768px
   ============================================================ */

@media (max-width: 768px) {

  /* Dashboard */
  .bd-dashboard {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .bd-kpi-row {
    gap: var(--space-3);
  }

  .bd-kpi-card {
    flex: 1 1 100px;
    padding: var(--space-3) var(--space-4);
  }

  .bd-kpi-value {
    font-size: var(--text-lg);
  }

  .bd-dash-grid {
    grid-template-columns: 1fr;
  }

  .bd-dash-wide-card {
    grid-column: 1;
  }

  /* Kanban — stack vertically */
  .bd-kanban-board {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    padding: var(--space-4);
  }

  .bd-pipeline-col {
    width: 100%;
    min-width: unset;
    max-height: none;
  }

  /* Hide sidebar on detail panel */
  .bd-detail-sidebar {
    display: none;
  }

  /* Table horizontal scroll */
  .bd-table-wrap {
    overflow-x: auto;
  }

  .bd-table {
    min-width: 600px;
  }

  /* Toolbar wrap */
  .bd-toolbar {
    padding: var(--space-3) var(--space-4);
  }

  .bd-search-wrap {
    max-width: 100%;
    flex: 1 1 100%;
  }

  /* Bulk bar */
  .bd-bulk-bar {
    left: var(--space-4);
    right: var(--space-4);
    transform: none;
    bottom: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  /* Prospects view */
  .bd-prospects-view {
    height: auto;
    overflow: visible;
  }

  /* Events grid */
  .bd-event-grid {
    grid-template-columns: 1fr;
  }

  /* Event detail */
  .bd-event-detail-grid {
    grid-template-columns: 1fr;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .bd-event-detail-side {
    order: -1;
  }

  /* Detail profile */
  .bd-detail-profile-card {
    padding: var(--space-4);
    flex-wrap: wrap;
  }

  /* Templates */
  .bd-tmpl-grid {
    grid-template-columns: 1fr;
  }

  /* Sequences */
  .bd-sequences-view,
  .bd-templates-view,
  .bd-events-view {
    padding: var(--space-4);
  }

  /* Pipeline forecast */
  .bd-pipeline-forecast {
    padding: var(--space-4);
  }
}

/* ============================================================
   24. PRINT RESET
   ============================================================ */

@media print {
  .bd-bulk-bar,
  .bd-toolbar,
  .bd-sidebar-section,
  .bd-detail-sidebar {
    display: none !important;
  }

  .bd-detail-main {
    padding: 0;
  }
}

/* ============================================================
   25. BD DRAFTS VIEW
   ============================================================ */

.bd-drafts-view {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bd-drafts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.bd-drafts-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.bd-filter-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2px;
}

.bd-filter-tab {
  padding: 6px 14px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--bd-transition);
}

.bd-filter-tab:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.bd-filter-tab-active {
  background: var(--color-primary);
  color: #fff;
}

.bd-filter-tab-active:hover {
  background: var(--color-primary);
  color: #fff;
}

.bd-drafts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bd-draft-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: var(--bd-transition);
}

.bd-draft-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bd-draft-approved {
  opacity: 0.65;
}

.bd-draft-dismissed {
  opacity: 0.45;
}

.bd-draft-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.bd-draft-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bd-draft-prospect-link {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
}

.bd-draft-prospect-link:hover {
  text-decoration: underline;
}

.bd-draft-company {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.bd-draft-badges {
  display: flex;
  gap: var(--space-1);
}

.bd-draft-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bd-draft-badge-outreach {
  background: #dbeafe;
  color: #1e40af;
}

.bd-draft-badge-nudge {
  background: #fef3c7;
  color: #92400e;
}

.bd-draft-badge-followup {
  background: #d1fae5;
  color: #065f46;
}

.bd-draft-badge-email {
  background: #f3e8ff;
  color: #6b21a8;
}

.bd-draft-badge-linkedin {
  background: #e0f2fe;
  color: #0369a1;
}

[data-theme="dark"] .bd-draft-badge-outreach {
  background: #1e3a5f;
  color: #93c5fd;
}

[data-theme="dark"] .bd-draft-badge-nudge {
  background: #451a03;
  color: #fcd34d;
}

[data-theme="dark"] .bd-draft-badge-followup {
  background: #064e3b;
  color: #6ee7b7;
}

[data-theme="dark"] .bd-draft-badge-email {
  background: #3b0764;
  color: #c084fc;
}

[data-theme="dark"] .bd-draft-badge-linkedin {
  background: #0c4a6e;
  color: #7dd3fc;
}

.bd-draft-subject {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}

.bd-draft-preview {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.bd-draft-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.bd-draft-date {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.bd-draft-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.bd-draft-btn {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--bd-transition);
  background: var(--color-surface);
  color: var(--color-text);
}

.bd-draft-btn:hover {
  background: var(--color-bg);
}

.bd-draft-btn-approve {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.bd-draft-btn-approve:hover {
  background: #15803d;
}

.bd-draft-btn-dismiss {
  color: #dc2626;
  border-color: #fca5a5;
}

.bd-draft-btn-dismiss:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

[data-theme="dark"] .bd-draft-btn-dismiss:hover {
  background: #450a0a;
}

.bd-draft-btn-edit {
  color: #6b7280;
  border-color: #d1d5db;
}

.bd-draft-btn-edit:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

[data-theme="dark"] .bd-draft-btn-edit {
  color: #9ca3af;
  border-color: #4b5563;
}

[data-theme="dark"] .bd-draft-btn-edit:hover {
  background: #374151;
  border-color: #6b7280;
  color: #d1d5db;
}

.bd-draft-status-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-text-secondary);
}

.bd-empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-secondary);
}

/* ============================================================
   26. TOAST NOTIFICATIONS
   ============================================================ */

.bd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
  max-width: 380px;
}

.bd-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.bd-toast-success {
  background: #16a34a;
}

.bd-toast-error {
  background: #dc2626;
}

/* ============================================================
   27. AI OUTREACH BUTTON HIGHLIGHT
   ============================================================ */

.bd-sidebar-btn-ai {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  font-weight: 600;
}

.bd-sidebar-btn-ai:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  border-color: rgba(99,102,241,0.4);
}

/* ============================================================
   28. LOADING SPINNER
   ============================================================ */

.bd-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: bd-spin 0.7s linear infinite;
}

@keyframes bd-spin {
  to { transform: rotate(360deg); }
}
