:root {
  --color-bg-deep: #001433;
  --color-bg-midnight: #00266e;
  --color-surface: #071b45;
  --color-surface-2: #0c2b67;
  --color-primary: #0057ff;
  --color-cyan: #00d2ff;
  --color-soft: #7fa2ff;
  --color-text: #e6e8ea;
  --color-muted: #9fb2d8;
  --color-green: #009600;
  --color-red: #960000;
  --font-heading: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --border-strong: 1px solid rgba(127, 162, 255, 0.35);
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 210, 255, 0.14), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(0, 87, 255, 0.2), transparent 40%),
    linear-gradient(145deg, var(--color-bg-deep), #000e2c 50%, var(--color-bg-midnight));
  font-family: var(--font-body);
}

a { color: var(--color-cyan); }
a:visited { color: var(--color-soft); }

.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 82%, rgba(127, 162, 255, 0.12), transparent 28%),
    radial-gradient(circle at 30% 25%, rgba(0, 210, 255, 0.09), transparent 32%);
}

.dashboard-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.card-surface {
  background: linear-gradient(155deg, rgba(12, 43, 103, 0.92), rgba(7, 27, 69, 0.96));
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dashboard-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-cyan);
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
}

.subtle {
  color: var(--color-muted);
  margin: 8px 0 0;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-pill {
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--color-text);
  background: rgba(0, 87, 255, 0.22);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 6px 12px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: linear-gradient(160deg, rgba(0, 87, 255, 0.26), rgba(0, 20, 51, 0.92));
  border: 1px solid rgba(127, 162, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: transform 180ms ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
}

.kpi-card h3 {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  margin: 8px 0 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.kpi-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.risk-center {
  grid-column: span 7;
  padding: 20px;
}

.builder-pipeline,
.bizdev-funnel,
.heartbeat-freshness {
  grid-column: span 5;
  padding: 20px;
}

.top-actions {
  grid-column: span 5;
  padding: 20px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid rgba(0, 210, 255, 0.38);
  background: rgba(0, 210, 255, 0.1);
  color: var(--color-cyan);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip.rag {
  color: var(--color-soft);
}

.risk-list {
  display: grid;
  gap: 10px;
}

.risk-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(127, 162, 255, 0.22);
  background: rgba(0, 20, 51, 0.44);
  border-radius: 10px;
  padding: 10px;
}

.risk-row h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.risk-row p {
  margin: 2px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex: 0 0 auto;
}

.risk-red .risk-dot {
  background: #d95151;
}

.risk-amber .risk-dot {
  background: #ffb347;
}

.risk-green .risk-dot {
  background: #5ccd79;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.stats-row .label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.stats-row .value {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.stats-row .danger {
  color: #ff8b8b;
}

.metric-line {
  margin: 8px 0;
}

/* Consistency warning banner */
.consistency-warnings {
  margin-bottom: 14px;
}
.consistency-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.consistency-warning.error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  border-left-color: #ef4444;
}
.consistency-warning.info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  border-left-color: #3b82f6;
}

/* Freshness badges */
.freshness-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 6px;
}
.freshness-badge.fresh { background: rgba(0, 150, 0, 0.2); color: #5ccd79; border: 1px solid rgba(92, 205, 121, 0.3); }
.freshness-badge.stale { background: rgba(245, 158, 11, 0.2); color: #ffb347; border: 1px solid rgba(255, 179, 71, 0.3); }
.freshness-badge.old { background: rgba(239, 68, 68, 0.2); color: #ff8b8b; border: 1px solid rgba(255, 139, 139, 0.3); }

/* Action buttons grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.action-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: rgba(0, 87, 255, 0.18);
  border: 1px solid rgba(127, 162, 255, 0.35);
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 180ms ease, transform 180ms ease;
}
.action-btn:hover {
  background: rgba(0, 87, 255, 0.32);
  transform: translateY(-2px);
}

/* KPI filter note */
.kpi-filter-note {
  font-size: 0.72rem;
  color: var(--color-muted);
  opacity: 0.7;
  margin-top: 4px;
  font-style: italic;
}

/* Detail page styles */
.detail-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
  position: relative;
  z-index: 1;
}
.detail-header {
  margin-bottom: 20px;
}
.detail-header a {
  color: var(--color-cyan);
  text-decoration: none;
  font-size: 0.85rem;
}
.detail-header a:hover { text-decoration: underline; }
.detail-section {
  margin-bottom: 20px;
}
.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.detail-table th, .detail-table td {
  border-bottom: 1px solid var(--impact-border, rgba(127, 162, 255, 0.22));
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.detail-table th {
  color: var(--color-muted);
  font-weight: 700;
}

/* =========================================================================
   App layout: sidebar + content
   ========================================================================= */

.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: linear-gradient(180deg, rgba(7, 27, 69, 0.98), rgba(0, 14, 44, 0.99));
  border-right: 1px solid rgba(127, 162, 255, 0.18);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(127, 162, 255, 0.12);
}

.sidebar-brand .eyebrow {
  margin: 0 0 2px;
}

.sidebar-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.sidebar nav {
  padding: 12px 0;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nav-link:hover {
  background: rgba(0, 87, 255, 0.1);
  color: var(--color-text);
}

.nav-link--active {
  background: rgba(0, 87, 255, 0.16);
  color: var(--color-cyan);
  border-left-color: var(--color-cyan);
  font-weight: 600;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-icon svg {
  opacity: 0.75;
}

.nav-link--active .nav-icon svg {
  opacity: 1;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-separator {
  border-top: 1px solid rgba(127, 162, 255, 0.12);
  margin: 8px 16px;
}

/* --- Main content area --- */
.page-content {
  grid-column: 2;
  min-width: 0; /* prevent grid blowout */
  padding: 24px 28px;
}

/* Mobile nav toggle button -- hidden on desktop */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: rgba(7, 27, 69, 0.92);
  border: 1px solid rgba(127, 162, 255, 0.25);
  border-radius: 8px;
  color: var(--color-text);
  padding: 6px 8px;
  cursor: pointer;
  line-height: 0;
}

/* =========================================================================
   Pipeline kanban board
   ========================================================================= */

.pipeline-shell {
  margin: 0 auto;
  padding: 28px;
  position: relative;
  z-index: 1;
}

/* --- Pipeline search bar --- */
.pipeline-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#pipeline-search-input {
  width: 100%;
  max-width: 400px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(127, 162, 255, 0.25);
  background: rgba(0, 10, 30, 0.5);
  color: var(--color-text);
  outline: none;
  transition: border-color 150ms ease;
}

#pipeline-search-input::placeholder {
  color: var(--color-muted);
}

#pipeline-search-input:focus {
  border-color: var(--color-cyan);
}

.deal-card--hidden {
  display: none !important;
}

.deal-card--filtered {
  display: none !important;
}

/* --- Pipeline filter bar (Story 015) --- */
.pipeline-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 10, 30, 0.4);
  border: 1px solid rgba(127, 162, 255, 0.15);
}

.pf-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-group--stage {
  flex-wrap: wrap;
}

.pf-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted, #94a3b8);
  white-space: nowrap;
}

.pf-stage-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pf-check {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text, #f1f5f9);
  background: rgba(0, 87, 255, 0.12);
  border: 1px solid rgba(127, 162, 255, 0.25);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  user-select: none;
}

.pf-check:hover {
  background: rgba(0, 87, 255, 0.22);
}

.pf-check input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.pf-check:has(input:not(:checked)) {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.2);
}

.pf-select {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(127, 162, 255, 0.25);
  background: rgba(0, 10, 30, 0.5);
  color: var(--color-text, #f1f5f9);
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease;
}

.pf-select:focus {
  border-color: var(--color-cyan, #22d3ee);
}

.pf-group--date {
  gap: 4px;
}

.pf-date {
  padding: 4px 6px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(127, 162, 255, 0.25);
  background: rgba(0, 10, 30, 0.5);
  color: var(--color-text, #f1f5f9);
  outline: none;
  transition: border-color 150ms ease;
}

.pf-date:focus {
  border-color: var(--color-cyan, #22d3ee);
}

.pf-date-sep {
  color: var(--color-muted, #94a3b8);
  font-size: 0.8rem;
}

.pf-clear {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.pf-clear:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}

/* --- Pipeline selector tabs --- */
.pipeline-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pipeline-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(0, 87, 255, 0.12);
  border: 1px solid rgba(127, 162, 255, 0.25);
  transition: background 150ms ease, border-color 150ms ease;
  cursor: pointer;
}

.pipeline-tab:hover {
  background: rgba(0, 87, 255, 0.22);
  border-color: rgba(127, 162, 255, 0.45);
}

.pipeline-tab--active {
  background: rgba(0, 87, 255, 0.32);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* --- Summary stats bar --- */
.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pipeline-stat {
  background: linear-gradient(160deg, rgba(0, 87, 255, 0.18), rgba(0, 20, 51, 0.88));
  border: 1px solid rgba(127, 162, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.pipeline-stat .stat-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-stat .stat-value {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

/* --- Kanban board container --- */
.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  /* Smooth horizontal scrolling on touch devices */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Custom scrollbar for the board */
.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
  background: rgba(0, 20, 51, 0.4);
  border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(127, 162, 255, 0.3);
  border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
  background: rgba(127, 162, 255, 0.5);
}

/* --- Stage columns --- */
.kanban-col {
  flex: 1 1 0;
  min-width: 200px;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: rgba(7, 27, 69, 0.5);
  border: 1px solid rgba(127, 162, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}

.kanban-col--closed {
  opacity: 0.55;
}

.kanban-col--closed:hover {
  opacity: 0.8;
}

.kanban-col--empty {
  opacity: 0.45;
}

.kanban-col--empty:hover {
  opacity: 0.65;
}

.kanban-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 87, 255, 0.1);
  border-bottom: 1px solid rgba(127, 162, 255, 0.15);
  position: sticky;
  top: 0;
}

.kanban-col-header h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.kanban-col--closed .kanban-col-header h3 {
  color: var(--color-muted);
}

.kanban-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: rgba(0, 87, 255, 0.28);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.kanban-col--empty .kanban-count {
  background: rgba(127, 162, 255, 0.1);
  color: var(--color-muted);
}

.kanban-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Scrollbar inside columns */
.kanban-col-body::-webkit-scrollbar {
  width: 4px;
}

.kanban-col-body::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-col-body::-webkit-scrollbar-thumb {
  background: rgba(127, 162, 255, 0.2);
  border-radius: 2px;
}

/* Empty state for columns */
.kanban-empty {
  padding: 14px 10px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-style: italic;
}

/* --- Deal cards --- */
.deal-card {
  display: block;
  background: linear-gradient(155deg, rgba(12, 43, 103, 0.85), rgba(7, 27, 69, 0.92));
  border: 1px solid rgba(127, 162, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
}

.deal-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.12);
}

.deal-card-org {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
  text-decoration: none;
}

a.deal-card-org:hover {
  color: var(--color-cyan);
  text-decoration: underline;
}

.deal-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.deal-card-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-soft);
}

.deal-card-age {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.deal-card-age--green {
  background: rgba(0, 150, 0, 0.2);
  color: #5ccd79;
  border: 1px solid rgba(92, 205, 121, 0.3);
}

.deal-card-age--amber {
  background: rgba(245, 158, 11, 0.2);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.deal-card-age--red {
  background: rgba(239, 68, 68, 0.2);
  color: #ff8b8b;
  border: 1px solid rgba(255, 139, 139, 0.3);
}

/* Composite score badge on deal cards */
.deal-card-score {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.deal-card-score--green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.deal-card-score--amber {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.deal-card-score--red {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.deal-card-cfp {
  margin: 3px 0 0;
  line-height: 1;
}

.deal-card-contact {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-card-stage-label {
  margin: 4px 0 0;
  font-size: 0.68rem;
  color: var(--color-muted);
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Drag and drop visual feedback --- */
.deal-card[draggable] { cursor: grab; }
.deal-card--dragging { opacity: 0.4; transform: rotate(2deg); }
.kanban-col--drop-target { border: 2px dashed rgba(59, 130, 246, 0.3); }
.kanban-col--drag-over { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }

/* --- Card action menu --- */
.deal-card-actions { position: relative; }

.deal-card-menu-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 1.1rem;
  line-height: 1;
}
.deal-card-menu-btn:hover { color: #e2e8f0; }

.deal-card-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--impact-bg-1, #121a2b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.deal-card-menu--open { display: block; }

.deal-card-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: none;
}
.deal-card-menu-item:hover { background: rgba(59, 130, 246, 0.15); }
.deal-card-menu-item--danger { color: #ef4444; }
.deal-card-menu-item--danger:hover { background: rgba(239, 68, 68, 0.15); }

/* Card header row: title left, action menu right */
.deal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}
.deal-card-header .deal-card-org {
  flex: 1;
  min-width: 0;
}

/* --- Unassigned section --- */
.pipeline-unassigned {
  margin-top: 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px;
}

.pipeline-unassigned h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #ffb347;
}

.unassigned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

/* =========================================================================
   Responsive breakpoints
   ========================================================================= */

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

  .risk-center,
  .builder-pipeline,
  .bizdev-funnel,
  .heartbeat-freshness,
  .top-actions {
    grid-column: span 12;
  }

  .action-grid { grid-template-columns: 1fr; }

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

/* Collapse sidebar on narrow viewports */
@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 250ms ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  /* Show sidebar when nav-open class is toggled */
  .app-layout.nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .page-content {
    grid-column: 1;
    padding-top: 52px; /* space for the hamburger button */
  }

  .dashboard-shell {
    padding: 16px;
  }

  .dashboard-header {
    padding: 16px;
    flex-direction: column;
  }

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

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

  .detail-shell {
    padding: 16px;
  }

  .pipeline-shell {
    padding: 16px;
  }

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

  .pipeline-filters {
    gap: 8px;
    padding: 8px 10px;
  }

  .pf-group--stage {
    width: 100%;
  }

  .kanban-board {
    flex-direction: column;
  }

  .kanban-col {
    flex: 0 0 auto;
    min-width: 0;
    max-height: none;
  }

  .unassigned-grid {
    grid-template-columns: 1fr;
  }

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

/* =========================================================================
   Queue pages (Approvals & Research)
   ========================================================================= */

/* Summary stats row */
.queue-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.queue-stat {
  background: linear-gradient(160deg, rgba(0, 87, 255, 0.18), rgba(0, 20, 51, 0.88));
  border: 1px solid rgba(127, 162, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.queue-stat .stat-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.queue-stat .stat-value {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

/* Color accent borders for stat cards */
.queue-stat--amber { border-left: 4px solid var(--impact-accent-warn, #f59e0b); }
.queue-stat--green { border-left: 4px solid var(--impact-accent-secondary, #14b8a6); }
.queue-stat--blue  { border-left: 4px solid var(--impact-accent-primary, #3b82f6); }
.queue-stat--red   { border-left: 4px solid var(--impact-accent-danger, #ef4444); }
.queue-stat--gray  { border-left: 4px solid #64748b; }

/* Status badges */
.queue-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.queue-badge--amber {
  background: rgba(245, 158, 11, 0.2);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.queue-badge--green {
  background: rgba(0, 150, 0, 0.2);
  color: #5ccd79;
  border: 1px solid rgba(92, 205, 121, 0.3);
}

.queue-badge--blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93bbff;
  border: 1px solid rgba(147, 187, 255, 0.3);
}

.queue-badge--red {
  background: rgba(239, 68, 68, 0.2);
  color: #ff8b8b;
  border: 1px solid rgba(255, 139, 139, 0.3);
}

.queue-badge--gray {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Pending row highlight */
.queue-row--pending {
  background: rgba(245, 158, 11, 0.06);
}

.queue-row--pending:hover {
  background: rgba(245, 158, 11, 0.12);
}

/* Body preview rows */
.queue-body-row td {
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================================
   Opportunity detail page
   ========================================================================= */

/* Header card */
.opp-header {
  margin-bottom: 20px;
  padding: 24px;
}

.opp-header h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 4px;
}

.opp-title {
  color: var(--color-muted);
  font-size: 1rem;
  margin: 0 0 16px;
}

.opp-header-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opp-header-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.opp-header-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--impact-border, rgba(127, 162, 255, 0.22));
  color: var(--color-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Badges used in opportunity detail */
.opp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.opp-badge--green {
  background: rgba(0, 150, 0, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.opp-badge--blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.opp-badge--cyan {
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-cyan, #00d2ff);
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.opp-badge--muted {
  background: rgba(127, 162, 255, 0.1);
  color: var(--color-muted, #9fb2d8);
  border: 1px solid rgba(127, 162, 255, 0.22);
}

.opp-badge--amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.opp-badge--red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Value display */
.opp-value {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-cyan, #00d2ff);
}

/* Age badge */
.opp-age {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.opp-age--green {
  color: #4ade80;
  background: rgba(0, 150, 0, 0.15);
}

.opp-age--amber {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
}

.opp-age--red {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* Muted inline text (e.g. research status, no-subject indicator) */
.opp-detail-muted {
  color: var(--color-muted, #9fb2d8);
  font-style: italic;
  font-size: 0.85rem;
}

/* Empty state messages */
.opp-empty-state {
  color: var(--impact-text-muted, #94a3b8);
  font-style: italic;
  padding: 16px 0;
  text-align: center;
}

/* Value model grid */
.opp-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.opp-value-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opp-value-label {
  font-size: 0.75rem;
  color: var(--color-muted, #9fb2d8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.opp-value-amount {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--impact-text-primary, #e5e7eb);
}

/* Contact links in detail tables */
.detail-table a {
  color: var(--color-cyan, #00d2ff);
  text-decoration: none;
}

.detail-table a:hover {
  text-decoration: underline;
}

/* Responsive: stack value grid on small screens */
@media (max-width: 768px) {
  .opp-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opp-header-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   Contact pages -- list and detail
   ========================================================================= */

/* Summary stats bar */
.contact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.contact-stat {
  background: linear-gradient(160deg, rgba(0, 87, 255, 0.18), rgba(0, 20, 51, 0.88));
  border: 1px solid rgba(127, 162, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.contact-stat .stat-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-stat .stat-value {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

/* Search / filter form */
.contact-filters {
  margin-bottom: 20px;
}

.contact-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid rgba(127, 162, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(0, 20, 51, 0.7);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.contact-search-input:focus {
  border-color: var(--color-cyan, #00d2ff);
}

.contact-search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.contact-filter-select {
  padding: 9px 14px;
  border: 1px solid rgba(127, 162, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(0, 20, 51, 0.7);
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

.contact-filter-select:focus {
  border-color: var(--color-cyan, #00d2ff);
}

.contact-filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--color-cyan, #00d2ff);
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  color: var(--color-cyan, #00d2ff);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-filter-btn:hover {
  background: rgba(0, 210, 255, 0.25);
}

.contact-filter-clear {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 8px;
}

.contact-filter-clear:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Contact table overrides */
.contact-table {
  font-size: 0.82rem;
}

.contact-name-link {
  color: var(--color-cyan, #00d2ff);
  text-decoration: none;
  font-weight: 600;
}

.contact-name-link:hover {
  text-decoration: underline;
}

.social-icon-link {
  color: var(--color-cyan, #00d2ff);
  display: inline-flex;
  align-items: center;
}

.social-icon-link:hover {
  opacity: 0.8;
}

/* Muted placeholder text */
.muted {
  color: var(--color-muted, #9fb2d8);
  opacity: 0.6;
  font-style: italic;
}

/* Badges */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-verified {
  background: rgba(0, 150, 0, 0.2);
  color: #5ccd79;
  border: 1px solid rgba(92, 205, 121, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-dnc {
  background: rgba(239, 68, 68, 0.25);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

.badge-research {
  background: rgba(59, 130, 246, 0.2);
  color: #93bbff;
  border: 1px solid rgba(147, 187, 255, 0.3);
}

.badge-pref {
  background: rgba(245, 158, 11, 0.2);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

/* Lane badge styles */
.lane-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
}

.lane-badge--speaking {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.lane-badge--fcaio {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.lane-badge--unknown {
  color: var(--color-muted);
  background: rgba(127, 162, 255, 0.1);
  border: 1px solid rgba(127, 162, 255, 0.15);
}

.lane-mismatch {
  color: #fbbf24;
  font-size: 0.75rem;
  margin-left: 4px;
  cursor: help;
}

.deal-card-lane {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  overflow: hidden;
}

/* Outreach channel badge styles */
/* Submission status badges (CFP approval gate) */
.submission-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.submission-badge--approved { background: #d4edda; color: #155724; }
.submission-badge--preparing { background: #cce5ff; color: #004085; }
.submission-badge--submitted { background: #e8daef; color: #6c3483; }
.submission-badge--accepted { background: #d4edda; color: #155724; font-weight: 700; }
.submission-badge--rejected { background: rgba(248,81,73,0.15); color: #f85149; }
.submission-badge--waitlisted { background: #fff3cd; color: #856404; }
.submission-badge--unknown { background: #e2e3e5; color: #383d41; }

.channel-badge--cfp { background: #d4edda; color: #155724; }
.channel-badge--cfp-needs-url { background: #fce4b8; color: #7a4f01; }
.channel-badge--email { background: #cce5ff; color: #004085; }
.channel-badge--invite { background: #fff3cd; color: #856404; }
.channel-badge--expired { background: rgba(248,81,73,0.15); color: #f85149; }
.channel-badge--unknown { background: #e2e3e5; color: #383d41; }

/* Expired-deadline banner shown on opportunity detail pages */
.deadline-expired-banner {
  background: rgba(248,81,73,0.1);
  border: 1px solid rgba(248,81,73,0.3);
  color: #f85149;
  padding: 10px 16px;
  border-radius: 6px;
  margin: 8px 0;
  font-weight: 600;
}

/* ── Outreach Packet Workflow UI ── */

.pkt-wf-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.pkt-wf-badge--muted {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.pkt-wf-badge--blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.pkt-wf-badge--amber {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pkt-wf-badge--green {
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pkt-wf-badge--cyan {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.pkt-wf-badge--red {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.pkt-wf-badge--lg {
  font-size: 0.8rem;
  padding: 4px 12px;
}

.pkt-wf-panel {
  padding: 20px;
  margin-bottom: 24px;
  background: var(--color-surface, #1e293b);
  border-radius: 12px;
  border: 1px solid var(--color-border, rgba(127, 162, 255, 0.1));
}

.pkt-wf-blocker {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.pkt-wf-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 16px 0;
  position: relative;
}

.pkt-wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 8px 4px;
}

.pkt-wf-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  border: 2px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 6px;
  z-index: 1;
  transition: all 0.2s;
}

.pkt-wf-step--done .pkt-wf-step-dot {
  background: #34d399;
  border-color: #34d399;
}

.pkt-wf-step--active .pkt-wf-step-dot {
  background: #60a5fa;
  border-color: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.pkt-wf-step-label {
  font-size: 0.65rem;
  color: var(--color-muted, #94a3b8);
  text-align: center;
  max-width: 80px;
}

.pkt-wf-step--done .pkt-wf-step-label {
  color: #34d399;
}

.pkt-wf-step--active .pkt-wf-step-label {
  color: #60a5fa;
  font-weight: 600;
}

.pkt-wf-step-ts {
  font-size: 0.55rem;
  color: var(--color-muted, #94a3b8);
  opacity: 0.7;
  margin-top: 2px;
}

.pkt-wf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(148, 163, 184, 0.2);
  z-index: 0;
}

.pkt-wf-step--done:not(:last-child)::after {
  background: #34d399;
}

.pkt-wf-step--active:not(:last-child)::after {
  background: rgba(96, 165, 250, 0.3);
}

.pkt-wf-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pkt-wf-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  transition: all 0.2s;
}

.pkt-wf-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
}

.pkt-wf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -- Outreach Draft Card -- */
.outreach-draft-card {
  border: 1px solid rgba(127, 162, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0;
}

.outreach-draft-card .info-group input[type='text'],
.outreach-draft-card .info-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(127, 162, 255, 0.2);
  border-radius: 4px;
  color: var(--color-text, #e6e8ea);
  font-family: inherit;
}

.outreach-draft-card .info-group input[type='text']:focus,
.outreach-draft-card .info-group textarea:focus {
  outline: none;
  border-color: var(--color-cyan, #00d2ff);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.15);
}

.outreach-draft-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 10px;
}

.outreach-draft-actions--split {
  display: flex;
  align-items: center;
  margin: 12px 0 10px;
}

.outreach-draft-actions--split .btn-save {
  margin-right: auto;
}

.outreach-draft-actions--split .btn-action {
  margin-left: 8px;
}

.comm-preview {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Contact detail page */
.contact-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  margin: 4px 0 0;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.contact-info-panel {
  padding: 20px;
}

.contact-info-panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-group h3 {
  margin: 0 0 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.info-group p {
  margin: 4px 0;
  font-size: 0.85rem;
}

.info-group a {
  color: var(--color-cyan, #00d2ff);
  text-decoration: none;
}

.info-group a:hover {
  text-decoration: underline;
}

/* Social links row */
.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(127, 162, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(0, 87, 255, 0.08);
  transition: background 0.15s, border-color 0.15s;
}

.social-link:hover {
  background: rgba(0, 87, 255, 0.18);
  border-color: var(--color-cyan, #00d2ff);
}

.social-link svg {
  flex-shrink: 0;
}

/* Contact notes */
.contact-notes {
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Empty state */
.empty-state {
  color: var(--color-muted, #9fb2d8);
  font-style: italic;
  padding: 16px 0;
  font-size: 0.85rem;
}

/* Contact metadata footer */
.contact-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* Responsive: contact pages */
@media (max-width: 768px) {
  .contact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-search-input {
    min-width: unset;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Enhanced Backlog Page
   ========================================================================= */

.bl-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bl-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0;
}

/* Stats bar -- reuses .queue-stats grid */
.bl-stats-bar {
  grid-template-columns: repeat(7, minmax(90px, 1fr));
}

/* Filters */
.bl-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.bl-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Status groups container */
.bl-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Individual status group */
.bl-group {
  background: linear-gradient(160deg, rgba(0, 87, 255, 0.06), rgba(0, 20, 51, 0.6));
  border: 1px solid rgba(127, 162, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
}

.bl-group-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.bl-group--blue  { border-left: 4px solid var(--impact-accent-primary, #3b82f6); }
.bl-group--red   { border-left: 4px solid var(--impact-accent-danger, #ef4444); }
.bl-group--amber { border-left: 4px solid var(--impact-accent-warn, #f59e0b); }
.bl-group--green { border-left: 4px solid var(--impact-accent-secondary, #14b8a6); }
.bl-group--gray  { border-left: 4px solid #64748b; }

.bl-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: default;
}

/* Make the Done group's <details> summary look like other headers */
details.bl-group > summary.bl-group-header {
  cursor: pointer;
  list-style: none;
}

details.bl-group > summary.bl-group-header::before {
  content: '\25B6';
  font-size: 0.7rem;
  transition: transform 0.2s;
}

details.bl-group[open] > summary.bl-group-header::before {
  transform: rotate(90deg);
}

.bl-group-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.bl-group-count {
  font-size: 0.75rem;
}

/* .bl-group-body defined above in .bl-groups section */

/* Task cards */
.bl-card {
  background: linear-gradient(155deg, rgba(12, 43, 103, 0.75), rgba(7, 27, 69, 0.85));
  border: 1px solid rgba(127, 162, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.15s;
}

.bl-card:hover {
  border-color: rgba(127, 162, 255, 0.4);
}

.bl-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bl-card-id {
  font-family: var(--impact-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.bl-card-title {
  font-size: 0.92rem;
  color: var(--color-text);
}

.bl-card-owner {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-left: auto;
}

.bl-card-age {
  font-size: 0.72rem;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Priority badges */
.bl-priority-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.bl-priority--red {
  background: rgba(239, 68, 68, 0.22);
  color: #ff8b8b;
  border: 1px solid rgba(255, 139, 139, 0.35);
}

.bl-priority--amber {
  background: rgba(245, 158, 11, 0.22);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.35);
}

.bl-priority--blue {
  background: rgba(59, 130, 246, 0.22);
  color: #93bbff;
  border: 1px solid rgba(147, 187, 255, 0.35);
}

.bl-priority--gray {
  background: rgba(100, 116, 139, 0.22);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Next action */
.bl-card-next {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.4;
}

.bl-card-next strong {
  color: var(--color-muted);
  font-weight: 600;
}

/* Blocked reason -- prominent red callout */
.bl-card-blocked {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #ff8b8b;
  font-weight: 600;
}

/* Definition of Done checklist */
.bl-card-dod {
  margin: 10px 0 0;
}

.bl-card-dod-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bl-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 0;
  font-size: 0.8rem;
  color: var(--color-text);
}

.bl-checklist-item input[type='checkbox'] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--color-muted);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.bl-checklist-item input[type='checkbox']:checked {
  background: var(--impact-accent-secondary, #14b8a6);
  border-color: var(--impact-accent-secondary, #14b8a6);
}

.bl-checklist-item input[type='checkbox']:checked::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  left: 1px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.bl-checklist-done span {
  text-decoration: line-through;
  color: var(--color-muted);
}

.bl-card-dod-empty {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-muted);
}

/* Expandable details */
.bl-card-expand {
  margin: 10px 0 0;
  border-top: 1px solid rgba(127, 162, 255, 0.12);
  padding-top: 6px;
}

.bl-card-expand summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--color-cyan, #00d2ff);
  font-weight: 600;
}

.bl-card-context {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.bl-card-context strong {
  color: var(--color-muted);
}

/* Artifact chips */
.bl-card-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bl-artifact-chip {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: var(--impact-font-mono, monospace);
  color: var(--color-muted);
}

/* Event timeline */
.bl-timeline {
  margin-top: 4px;
}

.bl-timeline h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.bl-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-evt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(127, 162, 255, 0.1);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.bl-evt-row:last-child {
  border-bottom: none;
}

.bl-evt-age {
  font-family: var(--impact-font-mono, monospace);
  font-size: 0.72rem;
  color: var(--color-muted);
  min-width: 36px;
  text-align: right;
}

.bl-evt-type {
  font-size: 0.68rem;
}

.bl-evt-task {
  color: var(--color-cyan, #00d2ff);
  text-decoration: none;
  font-family: var(--impact-font-mono, monospace);
  font-size: 0.72rem;
  white-space: nowrap;
}

.bl-evt-task:hover {
  text-decoration: underline;
}

.bl-evt-title {
  color: var(--color-text);
  font-weight: 600;
  word-break: break-word;
}

.bl-evt-transition {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
}

.bl-evt-actor {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.bl-evt-summary {
  color: var(--color-text);
  flex-basis: 100%;
  min-width: 0;
  word-break: break-word;
}

.bl-empty {
  color: var(--color-muted);
  font-style: italic;
  padding: 12px 0;
}

/* Responsive: backlog page */
@media (max-width: 768px) {
  .bl-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bl-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bl-card-owner {
    margin-left: 0;
  }

  .bl-evt-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .bl-evt-title {
    max-width: 100%;
  }
}

/* =========================================================================
   Alerts Center (Story 010)
   ========================================================================= */

/* Summary strip at the top of the alerts page */
.alerts-summary-strip {
  margin-bottom: 24px;
}

.alerts-summary-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.alerts-banner--green {
  background: rgba(0, 150, 0, 0.12);
  border: 1px solid rgba(92, 205, 121, 0.35);
  color: #5ccd79;
}

.alerts-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ccd79;
  flex-shrink: 0;
}

.alerts-summary-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.alerts-count-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: 8px;
  min-width: 80px;
}

.alerts-count-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.alerts-count-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  opacity: 0.85;
}

.alerts-count--red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(255, 139, 139, 0.35);
  color: #ff8b8b;
}

.alerts-count--amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: #ffb347;
}

.alerts-count--total {
  background: rgba(127, 162, 255, 0.1);
  border: 1px solid rgba(127, 162, 255, 0.25);
  color: var(--color-text, #c8d8f8);
}

/* Collapsible alert sections */
.alerts-section {
  margin-bottom: 14px;
  border: 1px solid var(--impact-border, rgba(127, 162, 255, 0.22));
  border-radius: 8px;
  overflow: hidden;
}

.alerts-section-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  background: rgba(127, 162, 255, 0.05);
  user-select: none;
}

.alerts-section-summary::-webkit-details-marker {
  display: none;
}

.alerts-section-summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--color-muted, #9fb2d8);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

details[open] > .alerts-section-summary::before {
  transform: rotate(90deg);
}

.alerts-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text, #c8d8f8);
}

.alerts-section-meta {
  font-size: 0.75rem;
  color: var(--color-muted, #9fb2d8);
  flex: 1;
}

/* Section header badges */
.alerts-section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.alerts-badge--clear {
  background: rgba(0, 150, 0, 0.15);
  color: #5ccd79;
  border: 1px solid rgba(92, 205, 121, 0.3);
}

.alerts-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #ff8b8b;
  border: 1px solid rgba(255, 139, 139, 0.3);
}

.alerts-badge--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

/* Section body */
.alerts-section-body {
  padding: 12px 16px;
}

/* Severity inline badges within table cells */
.alerts-sev-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.alerts-sev--red {
  background: rgba(239, 68, 68, 0.2);
  color: #ff8b8b;
  border: 1px solid rgba(255, 139, 139, 0.3);
}

.alerts-sev--amber {
  background: rgba(245, 158, 11, 0.2);
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.3);
}

.alerts-sev--green {
  background: rgba(0, 150, 0, 0.2);
  color: #5ccd79;
  border: 1px solid rgba(92, 205, 121, 0.3);
}

/* Row-level severity tints in alert tables */
.alert-row--red {
  background: rgba(239, 68, 68, 0.05);
}

.alert-row--amber {
  background: rgba(245, 158, 11, 0.05);
}

/* No-issues indicator when a section is all clear */
.alerts-no-issues {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  color: #5ccd79;
  font-size: 0.85rem;
}

.alerts-no-issues-icon {
  font-size: 1rem;
  font-weight: 700;
}

/* Responsive: stack count badges on narrow screens */
@media (max-width: 480px) {
  .alerts-summary-counts {
    flex-direction: column;
  }

  .alerts-count-badge {
    flex-direction: row;
    gap: 8px;
    min-width: unset;
  }

  .alerts-count-num {
    font-size: 1.4rem;
  }
}

/* =========================================================================
   Opportunity detail -- inline edit forms
   ========================================================================= */

.opp-edit-form input,
.opp-edit-form textarea,
.opp-edit-form select,
.opp-add-form input,
.opp-add-form textarea,
.opp-add-form select {
  background: var(--impact-bg-0, #0b1020);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  width: 100%;
  font-family: var(--font-body, 'Open Sans', sans-serif);
}

.opp-edit-form input:focus,
.opp-edit-form textarea:focus,
.opp-edit-form select:focus,
.opp-add-form input:focus,
.opp-add-form textarea:focus,
.opp-add-form select:focus {
  border-color: var(--impact-accent-primary, #3b82f6);
  outline: none;
}

.opp-edit-form label,
.opp-add-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted, #9fb2d8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 4px;
}

.opp-edit-form .info-group,
.opp-add-form .info-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-save {
  background: var(--impact-accent-primary, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 8px;
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn-save:hover {
  opacity: 0.9;
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-save--success {
  background: var(--color-green, #009600);
}

/* Collapsible add-form sections (outreach, notes) */
.opp-add-form {
  margin-bottom: 16px;
}

.opp-add-form summary {
  cursor: pointer;
  color: var(--impact-accent-primary, #3b82f6);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.9rem;
  list-style: none;
}

.opp-add-form summary::-webkit-details-marker {
  display: none;
}

.opp-add-form[open] summary {
  margin-bottom: 16px;
}

.opp-add-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Grid layout for side-by-side fields (channel + direction, etc.) */
.opp-add-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* Contact inline-edit row */
.contact-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.contact-inline-edit {
  padding: 12px 0;
}

.contact-edit-toggle {
  color: var(--impact-accent-primary, #3b82f6);
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}

.contact-edit-toggle:hover {
  text-decoration: underline;
}

/* Contact detail edit panel */
.contact-detail-edit-panel {
  margin-top: 16px;
}

.contact-detail-edit-panel h2 {
  margin-bottom: 16px;
}

.edit-field-group {
  border: 1px solid var(--impact-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.edit-field-group legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--impact-text-primary, #f1f5f9);
  padding: 0 8px;
}

.edit-field-group .contact-edit-grid {
  margin-bottom: 0;
}

.info-group--wide {
  grid-column: 1 / -1;
}

.info-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--impact-border, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  background: var(--impact-bg-input, rgba(255, 255, 255, 0.06));
  color: var(--impact-text-primary, #f1f5f9);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.info-group textarea:focus {
  outline: none;
  border-color: var(--impact-accent-primary, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Responsive: stack add-form grids on narrow screens */
@media (max-width: 600px) {
  .opp-add-form-grid,
  .contact-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   fCAIO Intelligence Panel
   ========================================================================= */

/* The row that holds the expandable panel spans the full table width */
.fcaio-intel-row td {
  padding: 0 !important;
  border-bottom: none !important;
}

.fcaio-intel {
  margin: 0;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
}

.fcaio-intel > summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-cyan, #00d2ff);
  background: rgba(0, 210, 255, 0.05);
  user-select: none;
  list-style: none;
}

.fcaio-intel > summary::-webkit-details-marker {
  display: none;
}

.fcaio-intel > summary::before {
  content: '\25B6\00a0';
  font-size: 10px;
  display: inline-block;
  transition: transform 0.15s ease;
}

.fcaio-intel[open] > summary::before {
  transform: rotate(90deg);
}

.fcaio-intel > summary:hover {
  background: rgba(0, 210, 255, 0.10);
}

.fcaio-intel-body {
  padding: 16px 12px;
  background: rgba(7, 27, 69, 0.6);
  border-top: 1px solid rgba(127, 162, 255, 0.12);
}

/* -- Score strip: horizontal row of score badges -- */
.fcaio-score-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.fcaio-score-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
}

.fcaio-score-badge.green {
  background: rgba(0, 150, 0, 0.15);
  border-color: rgba(0, 200, 0, 0.4);
  color: #4ade80;
}

.fcaio-score-badge.amber {
  background: rgba(200, 150, 0, 0.15);
  border-color: rgba(255, 200, 0, 0.4);
  color: #fbbf24;
}

.fcaio-score-badge.red {
  background: rgba(200, 0, 0, 0.15);
  border-color: rgba(255, 60, 60, 0.4);
  color: #f87171;
}

/* Composite badge is slightly larger */
.fcaio-composite {
  font-size: 14px;
  padding: 6px 16px;
  font-weight: 700;
}

/* -- Individual sections within the panel -- */
.fcaio-section {
  margin-bottom: 14px;
}

.fcaio-section:last-child {
  margin-bottom: 0;
}

.fcaio-section h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-soft, #7fa2ff);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fcaio-section ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.fcaio-section li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #e6e8ea);
  margin-bottom: 4px;
}

.fcaio-section p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text, #e6e8ea);
  margin: 0 0 8px 0;
}

.fcaio-section p:last-child {
  margin-bottom: 0;
}

.fcaio-use-case {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--color-soft, #7fa2ff);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.fcaio-use-case:last-child {
  margin-bottom: 0;
}

.fcaio-uc-workflow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, #e6e8ea);
  margin: 0 0 4px 0;
}

.fcaio-uc-detail {
  font-size: 12px;
  color: var(--color-muted, #8a8f98);
  margin: 0 0 2px 0;
  line-height: 1.5;
}

.fcaio-uc-detail strong {
  color: var(--color-text, #e6e8ea);
}

/* Strategic Intelligence sub-sections */
.fcaio-si-subhead {
  margin: 14px 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-soft, #7fa2ff);
  font-family: var(--font-heading);
}

.fcaio-si-list {
  margin: 0 0 8px 0;
  padding-left: 20px;
  list-style: disc;
}

.fcaio-si-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text, #e6e8ea);
  margin-bottom: 4px;
}

/* AI Roadmap phase cards */
.fcaio-roadmap-phase {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--color-soft, #7fa2ff);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.fcaio-roadmap-phase:last-child {
  margin-bottom: 0;
}

.fcaio-phase-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, #e6e8ea);
  margin: 0 0 4px 0;
}

.fcaio-roadmap-phase ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.fcaio-roadmap-phase li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted, #8a8f98);
  margin-bottom: 2px;
}

/* Responsive: stack score badges vertically on small screens */
@media (max-width: 600px) {
  .fcaio-score-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Deep Research action buttons */
.btn-action {
  display: inline-block;
  background: var(--color-cyan, #00d2ff);
  color: var(--color-bg-deep, #001433);
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease, background 0.2s ease;
  margin-top: 12px;
}

.btn-action:hover {
  opacity: 0.88;
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-action-sm {
  display: inline-block;
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-cyan, #00d2ff);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-weight: 600;
  transition: opacity 0.15s ease, background 0.2s ease;
}

.btn-action-sm:hover {
  background: rgba(0, 210, 255, 0.25);
}

.btn-action-sm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-action--launched,
.btn-action--launched:hover {
  background: var(--color-green, #009600);
  color: #fff;
  border-color: var(--color-green, #009600);
  opacity: 0.85;
}

/* Deep Research -- running state with spinner */
@keyframes research-spin {
  to { transform: rotate(360deg); }
}

.btn-action--running,
.btn-action--running:hover,
.btn-action-sm.btn-action--running,
.btn-action-sm.btn-action--running:hover {
  background: rgba(0, 210, 255, 0.18);
  color: var(--color-cyan, #00d2ff);
  border-color: rgba(0, 210, 255, 0.4);
  opacity: 1;
  cursor: wait;
  position: relative;
  padding-left: 32px;
}

.btn-action--running::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 210, 255, 0.3);
  border-top-color: var(--color-cyan, #00d2ff);
  border-radius: 50%;
  animation: research-spin 0.8s linear infinite;
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -7px;
}

.btn-action-sm.btn-action--running::before {
  width: 10px;
  height: 10px;
  border-width: 1.5px;
  left: 8px;
  margin-top: -5px;
}

/* Deep Research -- complete state */
.btn-action--complete,
.btn-action--complete:hover,
.btn-action-sm.btn-action--complete,
.btn-action-sm.btn-action--complete:hover {
  background: var(--color-green, #009600);
  color: #fff;
  border-color: var(--color-green, #009600);
  opacity: 0.9;
  cursor: default;
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(155deg, rgba(12, 43, 103, 0.97), rgba(7, 27, 69, 0.99));
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: 380px;
  font-family: var(--font-body, 'Open Sans', sans-serif);
}

.toast-notification.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.toast-hiding {
  transform: translateX(120%);
  opacity: 0;
}

.toast-text {
  color: var(--color-text, #e6e8ea);
  font-size: 0.88rem;
  line-height: 1.4;
}

.toast-text strong {
  color: var(--color-cyan, #00d2ff);
}

.toast-link {
  color: var(--color-cyan, #00d2ff);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.toast-link:hover {
  text-decoration: underline;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-muted, #9fb2d8);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.toast-close:hover {
  color: var(--color-text, #e6e8ea);
}

/* --- Communication Detail Expandable Rows --- */
.comm-detail-row td {
  padding: 0 1rem 0.5rem;
  border-top: none;
}
.comm-detail-row details summary {
  cursor: pointer;
  color: var(--color-cyan, #00d2ff);
  font-size: 0.85rem;
  padding: 0.25rem 0;
}
.comm-detail-section {
  margin: 0.75rem 0;
}
.comm-detail-section strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted, #9fb2d8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comm-detail-body {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 400px;
  overflow-y: auto;
}
.comm-transcript {
  max-height: 600px;
  font-size: 0.85rem;
  color: var(--color-muted, #9fb2d8);
}

/* --- Extraction Status Badges --- */
.extraction-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.extraction-badge--pending {
  background: rgba(255, 180, 0, 0.2);
  color: #ffb400;
  border: 1px solid rgba(255, 180, 0, 0.3);
}

.extraction-badge--extracting {
  background: rgba(0, 150, 255, 0.2);
  color: #0096ff;
  border: 1px solid rgba(0, 150, 255, 0.3);
  animation: extraction-pulse 1.5s ease-in-out infinite;
}

.extraction-badge--done {
  background: rgba(0, 180, 80, 0.2);
  color: #00b450;
  border: 1px solid rgba(0, 180, 80, 0.3);
}

.extraction-badge--error {
  background: rgba(220, 50, 50, 0.2);
  color: #dc3232;
  border: 1px solid rgba(220, 50, 50, 0.3);
}

@keyframes extraction-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Extract Facts Button --- */
.btn-extract-facts {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cyan, #00d2ff);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 8px;
}

.btn-extract-facts:hover:not(:disabled) {
  background: rgba(0, 210, 255, 0.2);
  border-color: rgba(0, 210, 255, 0.5);
}

.btn-extract-facts:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-extract-facts--running {
  animation: extraction-pulse 1.5s ease-in-out infinite;
}

.btn-extract-facts--done {
  color: #00b450;
  background: rgba(0, 180, 80, 0.1);
  border-color: rgba(0, 180, 80, 0.3);
}

/* --- Enrichment Data (ci-*) --- */
.ci-research-grid {
  display: grid;
  grid-template-columns: minmax(130px, auto) 1fr;
  gap: 2px 16px;
  margin-bottom: 12px;
}

.ci-kv-row {
  display: contents;
}

.ci-kv-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted, #9fb2d8);
  padding: 4px 0;
  white-space: nowrap;
}

.ci-kv-value {
  font-size: 0.85rem;
  color: var(--color-text, #e6e8ea);
  padding: 4px 0;
  word-break: break-word;
}

.ci-conf {
  font-size: 0.72rem;
  color: var(--color-muted, #9fb2d8);
  margin-left: 6px;
}

.ci-divider {
  border: none;
  border-top: 1px solid rgba(127, 162, 255, 0.12);
  margin: 12px 0;
}

.ci-meeting-group {
  margin-bottom: 10px;
}

.ci-meeting-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-cyan, #00d2ff);
}

.ci-meeting-count {
  font-size: 0.75rem;
  color: var(--color-muted, #9fb2d8);
}

.ci-meeting-list {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
}

.ci-meeting-list li {
  padding: 3px 0 3px 14px;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text, #e6e8ea);
}

.ci-meeting-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-soft, #7fa2ff);
}

/* --- Outreach Packet Panel (op-*) --- */
.outreach-packet-row td {
  padding: 0 !important;
}

.outreach-packet-details {
  border: 1px solid rgba(127, 162, 255, 0.12);
  border-radius: 8px;
  margin: 4px 8px 8px;
  background: rgba(15, 23, 42, 0.6);
}

.op-summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-cyan, #00d2ff);
  list-style: none;
}

.op-summary::-webkit-details-marker {
  display: none;
}

.op-summary::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 8px;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.outreach-packet-details[open] > .op-summary::before {
  transform: rotate(90deg);
}

.outreach-packet-body {
  padding: 0 16px 16px;
}

.op-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.op-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.op-badge.green {
  background: rgba(0, 180, 80, 0.15);
  color: #00b450;
  border: 1px solid rgba(0, 180, 80, 0.3);
}

.op-badge.amber {
  background: rgba(255, 180, 0, 0.12);
  color: #ffb400;
  border: 1px solid rgba(255, 180, 0, 0.25);
}

.op-badge.red {
  background: rgba(255, 60, 60, 0.12);
  color: #ff5252;
  border: 1px solid rgba(255, 60, 60, 0.25);
}

.op-badge.neutral {
  background: rgba(127, 162, 255, 0.08);
  color: var(--color-muted, #9fb2d8);
  border: 1px solid rgba(127, 162, 255, 0.15);
}

.op-warnings {
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.op-warnings p {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #ff5252;
}

.op-warnings p:last-child {
  margin-bottom: 0;
}

.op-edit-form h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-cyan, #00d2ff);
  margin: 16px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.op-edit-form h4:first-child {
  margin-top: 0;
}

.op-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.op-edit-form .info-group {
  margin-bottom: 8px;
}

.op-edit-form .info-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #9fb2d8);
  margin-bottom: 3px;
}

.op-edit-form input[type="text"],
.op-edit-form textarea,
.op-edit-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(127, 162, 255, 0.2);
  border-radius: 4px;
  color: var(--color-text, #e6e8ea);
}

.op-edit-form input[type="text"]:focus,
.op-edit-form textarea:focus,
.op-edit-form select:focus {
  outline: none;
  border-color: var(--color-cyan, #00d2ff);
  box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.15);
}

.op-metadata {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(127, 162, 255, 0.12);
}

.op-metadata h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted, #9fb2d8);
  margin: 0 0 8px 0;
}

/* --- Source-grouped enrichment facts (ci-source-*) --- */
.ci-source-group {
  margin-bottom: 12px;
  border: 1px solid rgba(127, 162, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.ci-source-group[open] {
  border-color: rgba(127, 162, 255, 0.22);
}
.ci-source-summary {
  cursor: pointer;
  padding: 10px 14px;
  background: rgba(127, 162, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ci-source-summary:hover {
  background: rgba(127, 162, 255, 0.1);
}
.ci-source-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text, #e6e8ea);
}
.ci-source-count {
  font-size: 0.75rem;
  color: var(--color-muted, #9fb2d8);
}
.ci-source-group > .ci-research-grid,
.ci-source-group > .ci-meeting-group {
  padding: 8px 14px;
}

/* --- Research Artifact Cards (ra-*) --- */
.ra-card {
  margin-bottom: 10px;
  border: 1px solid rgba(127, 162, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}
.ra-card[open] {
  border-color: rgba(127, 162, 255, 0.22);
}
.ra-card-header {
  cursor: pointer;
  padding: 12px 14px;
  background: rgba(127, 162, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.ra-card-header:hover {
  background: rgba(127, 162, 255, 0.1);
}
.ra-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #e6e8ea);
  flex: 1;
}
.ra-card-body {
  padding: 14px;
}
.ra-summary {
  margin-bottom: 12px;
  line-height: 1.55;
}
.ra-summary p {
  margin: 0;
}
.ra-source {
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.ra-source a {
  color: var(--color-cyan, #00d2ff);
}
.ra-findings {
  margin-bottom: 12px;
}
.ra-findings strong {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted, #9fb2d8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ra-findings ul {
  margin: 0;
  padding-left: 18px;
}
.ra-findings li {
  padding: 2px 0;
  line-height: 1.45;
  font-size: 0.9rem;
}
.ra-sources {
  margin-bottom: 12px;
}
.ra-sources strong {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted, #9fb2d8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ra-sources ul {
  margin: 0;
  padding-left: 18px;
}
.ra-sources li {
  padding: 2px 0;
  font-size: 0.85rem;
}
.ra-sources a {
  color: var(--color-cyan, #00d2ff);
}
.ra-intel-panel {
  border-top: 1px solid rgba(127, 162, 255, 0.1);
  padding-top: 12px;
}

/* --- Approve / Reject Panel --- */
.opp-approve-panel {
  padding: 20px;
  margin-bottom: 20px;
  border-left: 3px solid var(--color-cyan, #00d2ff);
}
.opp-approve-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-approve {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.btn-approve:hover {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.6);
}
.btn-decline {
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.btn-decline:hover {
  background: rgba(248, 113, 113, 0.25);
  border-color: rgba(248, 113, 113, 0.6);
}

/* =========================================================================
   BL-023: Pending Approvals Queue + Channel Badges
   ========================================================================= */

/* Channel badges */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}
.channel-badge svg {
  flex-shrink: 0;
}
.channel--email {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.channel--linkedin {
  background: rgba(10, 102, 194, 0.15);
  color: #4da3ff;
  border: 1px solid rgba(10, 102, 194, 0.3);
}
.channel--phone {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.channel--webform {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.channel--unknown {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Lane badges */
.lane-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lane--fcaio {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.lane--speaking {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Batch action bar */
.pending-batch-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--impact-text-muted);
}
.btn-batch {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 180ms;
}
.btn-batch:hover { opacity: 0.85; }
.btn-batch--approve {
  background: var(--color-green, #22c55e);
  color: #fff;
}
.btn-batch--reject {
  background: var(--color-red, #ef4444);
  color: #fff;
}
.btn-batch--clear {
  background: transparent;
  color: var(--impact-text-muted);
  border: 1px solid rgba(100, 116, 139, 0.4);
}

/* Pending queue layout */
.pending-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pending card */
.pending-card {
  background: var(--card-bg, rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(127, 162, 255, 0.1);
  border-left: 4px solid var(--impact-accent-warn, #f59e0b);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 180ms, box-shadow 180ms;
}
.pending-card:hover {
  border-color: rgba(127, 162, 255, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.pending-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.pending-checkbox-label {
  display: flex;
  align-items: center;
}
.pending-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-cyan, #06b6d4);
}

.pending-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pending-opp-link {
  color: var(--color-cyan, #06b6d4);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.pending-opp-link:hover { text-decoration: underline; }
.pending-contact {
  color: var(--impact-text-muted);
  font-size: 0.85rem;
}

.pending-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pending-time {
  color: var(--impact-text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pending-card-body {
  margin-left: 30px;
  margin-bottom: 10px;
}
.pending-subject {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--impact-text, #e2e8f0);
}
.pending-preview {
  color: var(--impact-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.pending-full-body {
  margin-top: 8px;
}
.pending-full-body summary {
  color: var(--color-cyan, #06b6d4);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}
.pending-body-text {
  margin-top: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--impact-text, #e2e8f0);
  max-height: 400px;
  overflow-y: auto;
}

.pending-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 30px;
  flex-wrap: wrap;
  gap: 8px;
}
.pending-reason {
  color: var(--impact-text-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.pending-card-actions {
  display: flex;
  gap: 6px;
}
.btn-action-sm {
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 180ms;
}
.btn-action-sm:hover { opacity: 0.85; }
.btn-action-sm--approve {
  background: var(--color-green, #22c55e);
  color: #fff;
}
.btn-action-sm--reject {
  background: var(--color-red, #ef4444);
  color: #fff;
}
.btn-action-sm--view {
  background: transparent;
  color: var(--color-cyan, #06b6d4);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-action-sm--edit {
  background: transparent;
  color: var(--color-cyan, #06b6d4);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-action-sm--edit-approve {
  background: var(--color-green, #22c55e);
  color: #fff;
}
.btn-action-sm--save {
  background: var(--color-cyan, #06b6d4);
  color: #fff;
}
.btn-action-sm--skip {
  background: transparent;
  color: var(--impact-text-muted, #94a3b8);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ---- Outreach Queue: event context row (Story 021) ---- */
.oq-event-context {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 8px 30px;
  font-size: 0.82rem;
}
.oq-ctx-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--impact-text-muted, #94a3b8);
}
.oq-ctx-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.oq-ctx-value {
  color: var(--impact-text, #e2e8f0);
}
/* CFP deadline urgency colors */
.cfp-urgent--red {
  color: var(--color-red, #ef4444) !important;
}
.cfp-urgent--red .oq-ctx-value {
  color: var(--color-red, #ef4444);
  font-weight: 700;
}
.cfp-urgent--amber {
  color: var(--impact-accent-warn, #f59e0b) !important;
}
.cfp-urgent--amber .oq-ctx-value {
  color: var(--impact-accent-warn, #f59e0b);
  font-weight: 600;
}

/* ---- Outreach Queue: inline editing inputs (Story 021) ---- */
.oq-edit-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--impact-text, #e2e8f0);
  outline: none;
  transition: border-color 180ms;
}
.oq-edit-input:focus {
  border-color: var(--color-cyan, #06b6d4);
}
.oq-edit-textarea {
  width: 100%;
  min-height: 160px;
  max-height: 400px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--impact-text, #e2e8f0);
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color 180ms;
}
.oq-edit-textarea:focus {
  border-color: var(--color-cyan, #06b6d4);
}

/* Usage dashboard badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-ok { background: rgba(0, 150, 0, 0.2); color: #5ccd79; border: 1px solid rgba(92, 205, 121, 0.3); }
.badge-idle { background: rgba(100, 100, 120, 0.2); color: #999; border: 1px solid rgba(150, 150, 170, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #ffb347; border: 1px solid rgba(255, 179, 71, 0.3); }
.badge-critical { background: rgba(239, 68, 68, 0.2); color: #ff8b8b; border: 1px solid rgba(255, 139, 139, 0.3); }

/* ─── Revenue Dashboard ─────────────────────────────────────────── */
.revenue-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.revenue-kpi {
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}
.revenue-kpi-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--impact-text-muted, #94a3b8);
  margin-bottom: 4px;
  font-weight: 600;
}
.revenue-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}
.revenue-kpi-sub {
  font-size: 0.8rem;
  color: var(--impact-text-muted, #94a3b8);
  margin-top: 4px;
}

/* Funnel table */
.revenue-funnel-table,
.revenue-top-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.revenue-funnel-table th,
.revenue-funnel-table td,
.revenue-top-table th,
.revenue-top-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.revenue-funnel-table th,
.revenue-top-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--impact-text-muted, #94a3b8);
  font-weight: 600;
}
.funnel-bar-bg {
  width: 100%;
  height: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.funnel-bar {
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

/* Status badges */
.rev-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rev-status--open {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.rev-status--won {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.rev-status--lost {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Win/Loss bar */
.winloss-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  font-size: 0.8rem;
  font-weight: 600;
}
.winloss-won {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 12px;
}
.winloss-lost {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 12px;
}

/* =========================================================================
   Activity Timeline (opportunity detail)
   ========================================================================= */

.activity-timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 8px;
}

/* Vertical connector line */
.activity-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--impact-border, rgba(127, 162, 255, 0.22));
  border-radius: 1px;
}

.atl-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.atl-entry:nth-child(even) {
  background: rgba(127, 162, 255, 0.04);
}

.atl-entry:hover {
  background: rgba(127, 162, 255, 0.08);
}

/* Colored dot on the timeline rail */
.atl-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--impact-bg-base, #0f172a);
  z-index: 1;
}

.atl-content {
  flex: 1;
  min-width: 0;
}

.atl-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.atl-type {
  font-weight: 600;
  font-size: 0.85rem;
}

.atl-time {
  color: var(--impact-text-muted, #94a3b8);
  font-size: 0.78rem;
  white-space: nowrap;
}

.atl-desc {
  color: var(--impact-text-secondary, #cbd5e1);
  font-size: 0.82rem;
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-word;
}

.atl-unknown-date {
  color: var(--impact-text-muted, #94a3b8);
  font-style: italic;
}

/* =========================================================================
   Batch Selection & Action Bar (Story 019)
   ========================================================================= */

/* Checkbox on each deal card -- positioned top-left, subtle when unchecked */
.deal-card {
  position: relative;
}

.deal-card-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-cyan, #22d3ee);
  opacity: 0.4;
  transition: opacity 150ms ease;
  z-index: 2;
}

.deal-card-checkbox:checked,
.deal-card:hover .deal-card-checkbox {
  opacity: 1;
}

/* Visual highlight on selected cards */
.deal-card--selected {
  border-color: var(--color-cyan, #22d3ee) !important;
  box-shadow: 0 0 0 1px var(--color-cyan, #22d3ee),
              0 4px 16px rgba(34, 211, 238, 0.15);
}

/* Nudge card content right to avoid overlapping the checkbox */
.deal-card-header {
  padding-left: 22px;
}

/* "Select All" label in the pipeline search bar */
.batch-select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-muted, #94a3b8);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.batch-select-all-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-cyan, #22d3ee);
}

.batch-select-all-label:hover {
  color: var(--color-text, #f1f5f9);
}

/* --- Batch Action Bar (fixed bottom) --- */
.batch-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(7, 15, 38, 0.99));
  border-top: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 280ms ease;
  pointer-events: none;
}

.batch-action-bar--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.batch-action-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-cyan, #22d3ee);
  white-space: nowrap;
  min-width: 90px;
}

.batch-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-action-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(127, 162, 255, 0.25);
  background: rgba(30, 41, 59, 0.8);
  color: var(--color-text, #f1f5f9);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.batch-action-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.batch-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.batch-action-btn--danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.batch-action-btn--danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.batch-action-btn--clear {
  margin-left: auto;
  color: var(--color-muted, #94a3b8);
  border-color: rgba(148, 163, 184, 0.2);
}

.batch-action-btn--clear:hover {
  color: var(--color-text, #f1f5f9);
  background: rgba(148, 163, 184, 0.15);
}

/* --- Tribe 25 category badges --- */
.tribe-cat--organizer {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
.tribe-cat--speaker {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}
.tribe-cat--podcast {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}
.tribe-cat--partner {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}
.tribe-cat--client {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.tribe-cat--community {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}

/* --- Content Studio --------------------------------------------------- */
.cs-tabs { display:flex; gap:0; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:24px; }
.cs-tab { padding:10px 20px; color:var(--color-muted); font-weight:600; font-family:var(--font-heading); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.05em; text-decoration:none; border-bottom:2px solid transparent; transition:color 0.2s, border-color 0.2s; }
.cs-tab:hover { color:var(--color-text); }
.cs-tab--active { color:var(--color-cyan); border-bottom-color:var(--color-cyan); }

.cs-clips-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; }
.cs-clip-card { background:var(--color-surface); border:1px solid rgba(255,255,255,0.06); border-radius:var(--radius-md); overflow:hidden; cursor:pointer; transition:border-color 0.2s, transform 0.15s; }
.cs-clip-card:hover { border-color:var(--color-cyan); transform:translateY(-2px); }
.cs-clip-thumb { height:160px; display:flex; align-items:center; justify-content:center; font-size:2rem; }
.cs-clip-thumb--processing { background:linear-gradient(135deg, #1a1a2e, #16213e); color:#f0ad4e; }
.cs-clip-thumb--transcribed { background:linear-gradient(135deg, #0a1628, #0d2137); color:var(--color-primary); }
.cs-clip-thumb--copy_ready { background:linear-gradient(135deg, #001433, #002244); color:var(--color-cyan); }
.cs-clip-thumb--approved { background:linear-gradient(135deg, #001a00, #003300); color:var(--color-green); }
.cs-clip-thumb--posted { background:linear-gradient(135deg, #1a1a1a, #2a2a2a); color:var(--color-muted); }
.cs-clip-info { padding:14px; }
.cs-clip-info h4 { margin:0 0 6px; font-size:0.9rem; color:var(--color-text); }
.cs-clip-info p { margin:0; font-size:0.8rem; color:var(--color-muted); }

.cs-status-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; }
.cs-status-badge--processing { background:rgba(240,173,78,0.15); color:#f0ad4e; }
.cs-status-badge--transcribed { background:rgba(0,87,255,0.15); color:var(--color-primary); }
.cs-status-badge--copy_ready { background:rgba(0,210,255,0.15); color:var(--color-cyan); }
.cs-status-badge--approved { background:rgba(0,150,0,0.15); color:var(--color-green); }
.cs-status-badge--posted { background:rgba(255,255,255,0.08); color:var(--color-muted); }

.cs-upload-zone { border:2px dashed rgba(255,255,255,0.15); border-radius:var(--radius-md); padding:48px 24px; text-align:center; color:var(--color-muted); cursor:pointer; transition:border-color 0.2s, background 0.2s; }
.cs-upload-zone:hover, .cs-upload-zone--dragover { border-color:var(--color-cyan); background:rgba(0,210,255,0.04); }
.cs-upload-zone h3 { margin:0 0 8px; color:var(--color-text); }
.cs-upload-zone p { margin:0; font-size:0.85rem; }

.cs-question-form { display:grid; grid-template-columns:200px 1fr 1fr auto; gap:12px; align-items:end; margin-bottom:20px; }
.cs-question-form input, .cs-question-form textarea { background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1); border-radius:6px; color:var(--color-text); padding:8px 12px; font-family:var(--font-body); font-size:0.85rem; }
.cs-question-form textarea { min-height:36px; resize:vertical; }
.cs-question-form input:focus, .cs-question-form textarea:focus { outline:none; border-color:var(--color-cyan); }

.cs-detail-meta { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.cs-detail-meta span { font-size:0.85rem; color:var(--color-muted); }

.cs-video-player { width:100%; max-width:720px; border-radius:var(--radius-md); background:#000; }
.cs-video-player video { width:100%; border-radius:var(--radius-md); }

.cs-copy-section { margin-top:20px; }
.cs-copy-platform { margin-bottom:16px; }
.cs-copy-platform h4 { margin:0 0 6px; font-size:0.85rem; color:var(--color-cyan); text-transform:uppercase; letter-spacing:0.04em; }
.cs-copy-platform textarea { width:100%; min-height:80px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.1); border-radius:6px; color:var(--color-text); padding:10px 12px; font-family:var(--font-body); font-size:0.85rem; resize:vertical; }
.cs-copy-platform textarea:focus { outline:none; border-color:var(--color-cyan); }

.cs-actions { display:flex; gap:10px; margin-top:20px; }
.cs-btn { padding:8px 20px; border:none; border-radius:6px; font-family:var(--font-heading); font-weight:600; font-size:0.85rem; cursor:pointer; transition:opacity 0.2s; }
.cs-btn:hover { opacity:0.85; }
.cs-btn--primary { background:var(--color-primary); color:#fff; }
.cs-btn--success { background:var(--color-green); color:#fff; }
.cs-btn--cyan { background:var(--color-cyan); color:#001433; }
.cs-btn--muted { background:rgba(255,255,255,0.08); color:var(--color-muted); }
.cs-btn:disabled { opacity:0.4; cursor:not-allowed; }

.cs-checklist { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:8px; margin:16px 0; }
.cs-checklist label { display:flex; gap:8px; align-items:flex-start; padding:8px 12px; background:rgba(255,255,255,0.03); border-radius:6px; color:var(--color-text); font-size:0.85rem; cursor:pointer; }
.cs-checklist input[type="checkbox"] { margin-top:3px; accent-color:var(--color-cyan); }

.cs-transcript { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); border-radius:var(--radius-md); padding:16px 20px; color:var(--color-text); font-size:0.9rem; line-height:1.7; white-space:pre-wrap; margin-bottom:20px; max-height:300px; overflow-y:auto; }

.cs-empty { text-align:center; padding:48px 24px; color:var(--color-muted); }
.cs-empty h3 { color:var(--color-text); margin:0 0 8px; }
.cs-empty p { margin:0; font-size:0.9rem; }

.cs-questions-table { width:100%; border-collapse:collapse; }
.cs-questions-table th { text-align:left; padding:8px 12px; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--color-muted); border-bottom:1px solid rgba(255,255,255,0.08); }
.cs-questions-table td { padding:10px 12px; font-size:0.85rem; color:var(--color-text); border-bottom:1px solid rgba(255,255,255,0.04); }
.cs-questions-table tr:hover { background:rgba(255,255,255,0.02); }

/* -- Record tab -- */
.cs-record-area { max-width: 720px; margin: 0 auto; }
.cs-webcam-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.cs-webcam-wrap video { width: 100%; height: 100%; object-fit: cover; }
.cs-webcam-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--color-muted); gap: 8px;
}
.cs-current-question {
    font-size: 1.1rem;
    padding: 12px;
    background: var(--color-surface);
    border-radius: 6px;
    margin-bottom: 8px;
    min-height: 48px;
}
.cs-question-progress {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.cs-controls-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.cs-rec-timer {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--color-cyan);
    margin-left: auto;
}
.cs-audio-meter {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}
.cs-audio-meter-fill {
    height: 100%;
    width: 0%;
    background: var(--color-cyan);
    border-radius: 3px;
    transition: width 0.1s ease;
}
.cs-timestamp-log {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--color-surface);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.cs-timestamp-entry {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text);
}
.cs-headphones-tip {
    font-size: 0.85rem;
    color: var(--color-muted);
    padding: 8px 12px;
    background: rgba(0,210,255,0.05);
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--color-cyan);
}
.cs-selected-count {
    font-size: 0.85rem;
    color: var(--color-cyan);
    margin-left: 8px;
}
.cs-select-toggle {
    font-size: 0.85rem;
    color: var(--color-cyan);
    cursor: pointer;
    text-decoration: underline;
    margin-left: 12px;
}
