/* GrantLedger CRM - Premium Editorial Finance Aesthetic */

:root {
  /* Colors - Forest green scale */
  --primary-darkest: #0d1f17;
  --primary-dark: #1a3328;
  --primary: #2d5a47;
  --primary-light: #4a8668;
  --primary-lightest: #e8f5ef;
  
  /* Gold accent */
  --accent: #c9a227;
  --accent-dark: #a17e20;
  --accent-light: #e8d085;
  
  /* Background & text */
  --bg-paper: #faf8f5;
  --bg-white: #ffffff;
  --text-primary: #2d2d2a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  /* Status colors */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;
  
  /* Borders & surfaces */
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --surface: #ffffff;
  --surface-hover: #f9fafb;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-headline: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Border radius */
  --radius-sm: 2px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.nav-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  white-space: nowrap;
}

.global-tag-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tag-filter-select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.tag-filter-select:hover {
  border-color: var(--primary);
}

.tag-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-lightest);
}

.nav-links {
  display: flex;
  gap: 0.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-lightest);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-lightest);
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Page header */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.board-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  min-height: 600px;
}

.kanban-column {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.column-header {
  padding: 1rem;
  background: var(--primary);
  color: white;
}

.column-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.column-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  opacity: 0.9;
}

.deal-count::before {
  content: '';
}

.deal-value {
  font-family: var(--font-mono);
}

.column-content {
  padding: 1rem;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Deal Cards */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.deal-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.deal-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-org-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin-right: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.card-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-owner {
  background: var(--primary-lightest);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.card-days {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.staleness-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.staleness-indicator.fresh {
  background: var(--success);
}

.staleness-indicator.aging {
  background: var(--warning);
}

.staleness-indicator.stale {
  background: var(--error);
}

/* Detail Panel */
.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}

.detail-panel.open {
  transform: translateX(0);
}

.detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.detail-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-content {
  height: 100%;
  padding: 2rem;
  position: relative;
}

.close-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.close-panel:hover {
  background: var(--border);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  height: calc(100% - 2rem);
}

/* Detail Left Column */
.detail-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.deal-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.deal-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.deal-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.deal-owner {
  background: var(--primary-lightest);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* Stage Progress */
.stage-progress {
  margin: 1rem 0;
}

.stage-bar {
  display: flex;
  gap: 0.5rem;
}

.stage-item {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-hover);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.stage-item.active {
  background: var(--primary);
  color: white;
}

.stage-item.completed {
  background: var(--success);
  color: white;
}

/* Activity Timeline */
.activity-timeline h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  padding: 0.75rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.activity-type {
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.activity-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.activity-notes {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Detail Right Sidebar */
.detail-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.field-value.mono {
  font-family: var(--font-mono);
}

.field-value.accent {
  color: var(--accent);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  padding: 0.75rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
}

.contact-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.contact-info {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .detail-panel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .nav-content {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    justify-content: center;
  }
  
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 71, 0.1);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--surface-hover);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

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

/* Loading states */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Prospects Page Styles */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-actions {
  display: flex;
  gap: 1rem;
}

/* Status Overview */
.status-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.overview-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.overview-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.chart-container {
  position: relative;
  height: 280px;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.legend-item:hover {
  background: var(--bg-paper);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-label {
  font-weight: 500;
}

.legend-count {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media (max-width: 968px) {
  .status-overview {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 240px;
  }
}

/* Outreach Breakdown */
.outreach-breakdown {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.breakdown-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.outreach-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.outreach-stat-card {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  text-align: center;
  transition: all 0.2s ease;
}

.outreach-stat-clickable {
  cursor: pointer;
}

.outreach-stat-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-light);
}

.outreach-stat-card.active {
  background: var(--primary-lightest);
  border-color: var(--primary);
  border-width: 2px;
}

.outreach-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
}

.outreach-stat-count {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.outreach-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.25rem;
}

.outreach-stat-percent {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.outreach-stat-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.375rem;
  overflow: hidden;
}

.outreach-stat-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

@media (max-width: 768px) {
  .outreach-stats {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

/* Filters Section */
.filters-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.filter-search-bar {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  font-size: 1rem;
  padding: 0.875rem 1rem;
}

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-group-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-group-label {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-lightest);
}

.filter-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.filter-toggles {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .filter-group-row {
    grid-template-columns: 1fr;
  }
}

.results-summary {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.table-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.prospect-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.prospect-row:hover {
  background: var(--surface-hover);
}

.prospect-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.prospect-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.tier-tier-1 {
  background: var(--success);
  color: white;
}

.tier-tier-2 {
  background: var(--warning);
  color: white;
}

.tier-tier-3 {
  background: var(--error);
  color: white;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active {
  background: var(--primary-lightest);
  color: var(--primary);
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.status-default {
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.action-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
  font-size: 1rem;
}

.action-btn:hover {
  background: var(--surface-hover);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.pagination {
  margin-top: 2rem;
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.pagination-ellipsis {
  padding: 0.5rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.25rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background: var(--surface-hover);
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.prospect-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-section.full-width {
  grid-column: 1 / -1;
}

.notes-content {
  background: var(--surface-hover);
  padding: 1rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Reports Page Styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.report-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-card.full-width {
  grid-column: 1 / -1;
}

.report-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.report-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.report-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.report-content {
  padding: 1.5rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.btn-icon:hover {
  background: var(--surface-hover);
}

.form-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.activity-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-section h4 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.stat-item-small {
  text-align: center;
  padding: 0.75rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
}

.stat-value-small {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.stat-label-small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mini-table {
  width: 100%;
  font-size: 0.875rem;
}

.mini-table th,
.mini-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.performance-table {
  overflow-x: auto;
}

.activity-feed {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-feed-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
}

.activity-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

.activity-type {
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.activity-outcome {
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text-secondary);
}

.activity-outcome.connected {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.activity-outcome.demo_booked {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.activity-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.activity-org {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-notes {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.health-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.health-metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
}

.metric-icon {
  font-size: 1.5rem;
}

.metric-icon.good {
  opacity: 1;
}

.metric-icon.warning {
  opacity: 0.8;
  filter: sepia(1) hue-rotate(15deg);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-stage {
  width: 100%;
}

.funnel-bar {
  position: relative;
  height: 2.5rem;
  background: var(--surface-hover);
  border-radius: var(--radius);
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.5s ease;
}

.funnel-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.funnel-count {
  font-family: var(--font-mono);
  font-weight: 600;
}

.export-section {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.export-section h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.export-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-selector span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Schedule Page Styles */
.schedule-header {
  margin-bottom: 2rem;
}

.schedule-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.week-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.week-range {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  min-width: 200px;
  text-align: center;
}

.view-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.schedule-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.schedule-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: auto;
  margin-bottom: 2rem;
}

.schedule-grid {
  min-width: 1200px;
  display: grid;
  grid-template-rows: auto;
}

.schedule-header-row {
  display: grid;
  grid-template-columns: 80px repeat(14, 1fr);
  border-bottom: 2px solid var(--border);
}

.time-header {
  padding: 1rem;
  background: var(--surface-hover);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  border-right: 1px solid var(--border);
}

.date-header {
  padding: 0.75rem 0.5rem;
  background: var(--surface-hover);
  border-right: 1px solid var(--border);
  text-align: center;
  min-width: 80px;
}

.date-header.today {
  background: var(--primary-lightest);
  color: var(--primary);
  font-weight: 600;
}

.date-header.weekend {
  background: var(--surface);
  opacity: 0.6;
}

.date-day {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-num {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.schedule-time-row {
  display: grid;
  grid-template-columns: 80px repeat(14, 1fr);
  border-bottom: 1px solid var(--border);
}

.time-label {
  padding: 1rem;
  background: var(--surface-hover);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-cell {
  min-height: 60px;
  padding: 0.25rem;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-cell.weekend {
  background: var(--surface-hover);
  opacity: 0.6;
}

.touch-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 50px;
}

.touch-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.touch-block.priority-1 {
  border-left: 4px solid var(--error);
  background: rgba(239, 68, 68, 0.05);
}

.touch-block.priority-2 {
  border-left: 4px solid var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.touch-block.priority-3 {
  border-left: 4px solid var(--primary);
  background: rgba(45, 90, 71, 0.05);
}

.touch-block.priority-4 {
  border-left: 4px solid var(--info);
  background: rgba(59, 130, 246, 0.05);
}

.touch-block.priority-5 {
  border-left: 4px solid var(--text-muted);
  background: rgba(107, 114, 128, 0.05);
}

.touch-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.touch-content {
  flex: 1;
  overflow: hidden;
}

.touch-org {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.touch-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.touch-type {
  text-transform: uppercase;
  font-weight: 500;
}

.touch-attempt {
  background: var(--surface-hover);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.schedule-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-sm);
}

.legend-color.priority-1 {
  background: var(--error);
}

.legend-color.priority-2 {
  background: var(--warning);
}

.legend-color.priority-3 {
  background: var(--primary);
}

.legend-color.priority-4 {
  background: var(--info);
}

.legend-color.priority-5 {
  background: var(--text-muted);
}

.touch-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.touch-detail-section {
  margin-bottom: 1.5rem;
}

.touch-detail-section.full-width {
  grid-column: 1 / -1;
}

.touch-detail-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.priority-badge.priority-1 {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.priority-badge.priority-2 {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.priority-badge.priority-3 {
  background: rgba(45, 90, 71, 0.1);
  color: var(--primary);
}

.priority-badge.priority-4 {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.priority-badge.priority-5 {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
}

/* Responsive Design Extensions */
@media (max-width: 768px) {
  .prospect-detail-grid,
  .touch-detail-content {
    grid-template-columns: 1fr;
  }
  
  .schedule-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .week-navigation {
    justify-content: space-between;
  }
  
  .view-controls {
    justify-content: center;
  }
  
  .reports-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .export-buttons {
    justify-content: center;
  }
}
/* Panel action buttons */
.panel-actions { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e8e5e0; }
.btn-edit { background: #2d5a47; color: #faf8f5; border: none; padding: 6px 14px; border-radius: 2px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; transition: transform 0.15s, background 0.15s; }
.btn-edit:hover { transform: translateY(-1px); background: #3a7a5f; }
.btn-delete { background: transparent; color: #c44; border: 1px solid #c44; padding: 6px 14px; border-radius: 2px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; transition: transform 0.15s; }
.btn-delete:hover { transform: translateY(-1px); background: #c44; color: #fff; }
.panel-actions .close-panel { margin-left: auto; }

/* Add Deal button */
.btn-add-deal { background: #c9a227; color: #2d2d2a; border: none; padding: 8px 18px; border-radius: 2px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; transition: transform 0.15s, box-shadow 0.15s; }
.btn-add-deal:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(201,162,39,0.3); }

/* Board header layout */
.board-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1100; }
.modal-content { background: #faf8f5; border-radius: 8px; padding: 28px; width: 680px; max-width: 90vw; max-height: 85vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.modal-title { font-family: 'Fraunces', serif; font-size: 22px; color: #2d5a47; margin: 0 0 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.form-input { width: 100%; padding: 8px 12px; border: 1px solid #d4d0c8; border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #2d2d2a; background: #fff; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: #2d5a47; box-shadow: 0 0 0 2px rgba(45,90,71,0.15); }
textarea.form-input { resize: vertical; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-cancel { background: transparent; color: #666; border: 1px solid #d4d0c8; padding: 8px 18px; border-radius: 2px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.btn-save { background: #2d5a47; color: #faf8f5; border: none; padding: 8px 18px; border-radius: 2px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 700; transition: transform 0.15s; }
.btn-save:hover { transform: translateY(-1px); background: #3a7a5f; }

/* Email Draft Modal */
.email-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55); display: flex; align-items: center;
  justify-content: center; z-index: 1200;
}
.email-modal {
  background: var(--bg-paper); border-radius: var(--radius-lg);
  padding: 0; width: 640px; max-width: 95vw; max-height: 90vh;
  overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
.email-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--primary); color: white;
}
.email-modal-header h3 {
  margin: 0; font-family: var(--font-headline); font-size: 1.15rem; font-weight: 600;
}
.email-modal-close {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.email-modal-close:hover { background: rgba(255,255,255,0.25); }
.email-modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.email-modal-body .form-group { margin-bottom: 1rem; }
.email-modal-body .form-group label {
  display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem;
}
.email-modal-body textarea.form-input { min-height: 180px; font-size: 0.875rem; line-height: 1.6; }
.email-modal-body select.form-input { cursor: pointer; }
.email-modal-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; justify-content: flex-end; background: var(--surface-hover);
}
.btn-draft {
  background: var(--accent); color: var(--primary-darkest); border: none;
  padding: 0.6rem 1.5rem; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.875rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-draft:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(201,162,39,0.3); }
.btn-draft:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-draft-email {
  background: var(--primary); color: white; border: none;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
  transition: transform 0.15s, background 0.15s;
}
.btn-draft-email:hover { transform: translateY(-1px); background: var(--primary-dark); }
.email-status {
  padding: 0.75rem 1rem; border-radius: var(--radius); margin-top: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
}
.email-status.success { background: rgba(5,150,105,0.1); color: var(--success); }
.email-status.error { background: rgba(220,38,38,0.1); color: var(--error); }

/* Tag badges */
.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(45, 90, 71, 0.12);
  color: #2d5a47;
  border: 1px solid rgba(45, 90, 71, 0.25);
  margin: 1px 2px;
}

/* Calling Card — clean, scannable */
.calling-card { font-family: 'DM Sans', sans-serif; }

/* Top: org name + dial button side by side */
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.cc-org-name { font-family: 'Fraunces', serif; font-size: 20px; color: #2d5a47; font-weight: 600; line-height: 1.2; }
.cc-org-meta { font-size: 12px; color: #888; margin-top: 2px; }
.cc-org-meta a { color: #2d5a47; text-decoration: none; }
.cc-dial-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #2d5a47; color: #fff; font-size: 15px; font-weight: 700; border-radius: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.cc-dial-btn:hover { background: #1e3d30; }

/* Contact bar */
.cc-contact-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(45,90,71,0.06); border-radius: 8px; margin-bottom: 12px; }
.cc-contact-name { font-weight: 700; font-size: 15px; color: #222; }
.cc-contact-title { display: block; font-size: 12px; color: #666; margin-top: 1px; }
.cc-phone-display { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; color: #2d5a47; }

/* Stats row */
.cc-stats-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.cc-stat { flex: 1 0 auto; min-width: 70px; text-align: center; padding: 6px 8px; background: #f5f3f0; border-radius: 6px; }
.cc-stat-label { font-size: 10px; text-transform: uppercase; color: #999; letter-spacing: 0.5px; }
.cc-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: #333; margin-top: 2px; }
.cc-stat-warn { color: #c9a227; }

/* Pain bar */
.cc-pain-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc-pain-tag { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.cc-pain-alignment { background: rgba(201,162,39,0.15); color: #b8911f; }
.cc-pain-discovery { background: rgba(45,90,71,0.12); color: #2d5a47; }
.cc-pain-exec { background: rgba(180,80,80,0.12); color: #b45050; }
.cc-pain-dev { background: rgba(100,80,180,0.12); color: #6450b4; }
.cc-opener { font-size: 13px; color: #555; font-style: italic; }

/* Notes */
.cc-notes { font-size: 13px; font-weight: 600; color: #333; padding: 8px 12px; background: rgba(201,162,39,0.08); border-left: 3px solid #c9a227; border-radius: 0 6px 6px 0; margin-bottom: 12px; line-height: 1.4; }

/* Lost funders */
.cc-lost { margin-bottom: 12px; }
.cc-lost-title { font-size: 12px; font-weight: 700; color: #b45050; margin-bottom: 4px; }
.cc-lost-item { font-size: 12px; color: #555; padding: 2px 0; font-family: 'JetBrains Mono', monospace; }

/* Objections */
.cc-objections-compact { font-size: 11px; color: #777; line-height: 1.7; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06); }
.cc-objections-compact div { margin-bottom: 2px; }
.cc-objections-compact b { color: #555; }
.phone-link { color: #2d5a47; font-family: 'JetBrains Mono', monospace; font-weight: 600; text-decoration: none; }
.phone-link:hover { text-decoration: underline; }

/* Contact collection on calling card */
.cc-collect { margin: 12px 0; padding: 12px; background: rgba(45,90,71,0.04); border-radius: 8px; border: 1px dashed rgba(45,90,71,0.2); }
.cc-collect-title { font-size: 12px; font-weight: 700; color: #2d5a47; margin-bottom: 8px; }
.cc-collect-row { display: flex; gap: 8px; margin-bottom: 6px; }
.cc-input { flex: 1; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-family: 'DM Sans', sans-serif; background: #fff; }
.cc-input:focus { border-color: #2d5a47; outline: none; }
.cc-textarea { resize: vertical; min-height: 40px; }
.cc-save-btn { padding: 6px 16px; background: #2d5a47; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.cc-save-btn:hover { background: #1e3d30; }
.cc-save-status { font-size: 12px; margin-left: 8px; }

/* Completed call rows */
.prospect-row[data-touch-status="completed"] { opacity: 0.7; background: rgba(45,90,71,0.12); border-left: 3px solid #4ade80; }
.prospect-row[data-touch-status="completed"] .pr-org { text-decoration: line-through; color: #6b7280; }
.prospect-row[data-touch-status="completed"] .pr-priority { font-size: 1.2em; }

.cc-org-phone { font-size: 13px; margin-top: 4px; }
.cc-contact-email { display: block; font-size: 12px; color: #666; margin-top: 1px; }
.cc-contact-right { display: flex; align-items: center; gap: 10px; }
.cc-contact-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(45,90,71,0.06); border-radius: 8px; margin-bottom: 12px; }

/* Callback must-call block */
.callback-block { border: 2px solid var(--gold); }
.callback-block .tz-block-header { background: var(--gold) !important; color: #1a1a1a !important; font-weight: 700; }
.callback-row { background: rgba(201, 162, 39, 0.08); grid-template-columns: 30px 1.2fr 150px 1fr 1fr auto !important; }

/* Email button on calling card */
.cc-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 6px;
}
.cc-email-btn:hover { background: #1d4ed8; }

.email-link { color: #60a5fa; text-decoration: none; }
.email-link:hover { text-decoration: underline; }

/* Additional contacts section */
.cc-extra-contacts { padding: 8px 14px; border-top: 1px solid #333; }
.cc-extra-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.cc-extra-contact .cc-contact-name { font-weight: 600; color: #e2e8f0; }
.cc-extra-contact .cc-contact-title { color: #94a3b8; }
.cc-extra-contact a { color: #60a5fa; text-decoration: none; font-size: 0.8rem; }
.cc-extra-contact a:hover { text-decoration: underline; }

/* Calling card contrast fixes */
.cc-org-meta { color: #555 !important; }
.cc-contact-title { color: #444 !important; }
.cc-contact-email { color: #333 !important; }
.cc-stat-label { color: #666 !important; }
.cc-stat-val { color: #1a1a1a !important; }
.cc-stat-warn { color: #a07d10 !important; }
.cc-pain-alignment { color: #8a6d0f !important; }
.cc-opener { color: #333 !important; }
.cc-lost-item { color: #333 !important; }
.cc-objections-compact { color: #444 !important; }
.cc-objections-compact b { color: #1a1a1a !important; }
.cc-notes { color: #1a1a1a !important; }
.cc-collect-title { color: #1a1a1a !important; }
.cc-save-status { color: #333 !important; }
.cc-contact-name { color: #1a1a1a !important; }
.cc-phone-display, .cc-phone-display a { color: #1a3d2e !important; }
.phone-link { color: #1a3d2e !important; }
.cc-org-phone, .cc-org-phone a { color: #333 !important; }

/* Calling card: green header, vertical spacing, button sizing */
.cc-top {
  background: #2d5a47 !important;
  margin: -28px -28px 16px -28px !important;
  padding: 20px 28px !important;
  border-radius: 8px 8px 0 0 !important;
}
.cc-org-name { color: #fff !important; }
.cc-org-meta, .cc-org-meta a { color: rgba(255,255,255,0.7) !important; }
.cc-org-phone, .cc-org-phone a { color: rgba(255,255,255,0.85) !important; }

/* Vertical spacing between sections */
.cc-contact-bar { margin-bottom: 16px !important; }
.cc-stats-row { margin-bottom: 16px !important; }
.cc-pain-bar { margin-bottom: 14px !important; }
.cc-notes { margin-bottom: 16px !important; }
.cc-lost { margin-bottom: 16px !important; }
.cc-collect { margin: 16px 0 !important; }
.cc-objections-compact { padding-top: 14px !important; }

/* Match email button to call button */
.cc-email-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  background: #c9a227 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.cc-email-btn:hover { background: #a8851d !important; }

/* Contact picker in email modal */
.contact-picker { display: flex; flex-direction: column; gap: 6px; }
.contact-pick-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #f5f3f0; border-radius: 6px;
  cursor: pointer; font-size: 13px; transition: background 0.15s;
}
.contact-pick-option:hover { background: rgba(45,90,71,0.08); }
.contact-pick-option input[type="checkbox"] { accent-color: #2d5a47; width: 16px; height: 16px; }
.contact-pick-name { font-weight: 700; color: #1a1a1a; min-width: 120px; }
.contact-pick-title { color: #555; flex: 1; font-size: 12px; }
.contact-pick-email { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #2d5a47; }
.btn-select-all {
  align-self: flex-start; padding: 4px 12px; background: none; border: 1px solid #ccc;
  border-radius: 4px; font-size: 12px; color: #555; cursor: pointer; margin-top: 2px;
}
.btn-select-all:hover { border-color: #2d5a47; color: #2d5a47; }

/* Card modal green header bar */
#card-modal .modal-header {
  background: #2d5a47 !important;
  padding: 16px 24px !important;
  border-radius: 8px 8px 0 0 !important;
  margin: 0 !important;
}
#card-modal .modal-header h2 { color: #fff !important; }
#card-modal .close-modal { color: #fff !important; opacity: 0.8; }
#card-modal .close-modal:hover { opacity: 1; }

/* Undo the green on cc-top (org name section) */
.cc-top {
  background: transparent !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.cc-org-name { color: #2d5a47 !important; }
.cc-org-meta, .cc-org-meta a { color: #555 !important; }
.cc-org-phone, .cc-org-phone a { color: #333 !important; }

/* ===== CALLING CARD V2 — SECTION-BASED LAYOUT ===== */
.calling-card { font-family: 'DM Sans', sans-serif; }

.cc-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cc-section:last-child { border-bottom: none; }

.cc-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2d5a47;
  font-weight: 700;
  margin-bottom: 10px;
}

/* --- Header Section --- */
.cc-header-section { padding-top: 0 !important; }
.cc-header-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cc-org-name { font-family: 'Fraunces', serif; font-size: 22px; color: #1a1a1a !important; font-weight: 700; line-height: 1.2; }
.cc-org-meta { font-size: 13px; color: #555 !important; margin-top: 4px; }
.cc-org-meta a { color: #2d5a47 !important; text-decoration: none; }
.cc-pain-badge {
  padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; flex-shrink: 0; margin-left: 16px; margin-top: 4px;
}
.cc-pain-alignment { background: #c9a227; color: #fff; }
.cc-pain-discovery { background: #2d5a47; color: #fff; }
.cc-pain-exec { background: #b45050; color: #fff; }
.cc-pain-dev { background: #6450b4; color: #fff; }
.cc-opener-line { font-size: 14px; color: #333; margin-top: 8px; font-style: italic; }

/* --- Action Section (call/email buttons) --- */
.cc-action-section { padding: 12px 0 !important; }
.cc-action-grid { display: flex; gap: 10px; }
.cc-action-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 12px; border-radius: 10px; text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s; cursor: pointer;
  min-width: 0;
}
.cc-action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.cc-action-call { background: #2d5a47; color: #fff; }
.cc-action-alt { background: #f5f3f0; color: #333; border: 1px solid #ddd; }
.cc-action-email { background: #c9a227; color: #fff; }
.cc-action-icon { font-size: 20px; }
.cc-action-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cc-action-number { font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* --- Contact Section --- */
.cc-contact-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #f5f3f0; border-radius: 8px;
}
.cc-contact-main { display: flex; flex-direction: column; gap: 2px; }
.cc-contact-name { font-weight: 700; font-size: 15px; color: #1a1a1a !important; }
.cc-contact-title { font-size: 13px; color: #555 !important; }
.cc-contact-links { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #333; text-align: right; }
.cc-contact-links a { color: #2d5a47; text-decoration: none; }
.cc-more-contacts { margin-top: 8px; }
.cc-contact-row-sm {
  display: flex; gap: 10px; align-items: center; padding: 6px 16px;
  font-size: 12px; color: #444; border-left: 2px solid #e0ddd8;
}
.cc-contact-row-sm strong { color: #1a1a1a; min-width: 100px; }
.cc-contact-row-sm a { color: #2d5a47; text-decoration: none; font-size: 11px; }

/* --- Stats Grid --- */
.cc-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.cc-stat-card {
  text-align: center; padding: 10px 8px; background: #f5f3f0; border-radius: 8px;
  border: 1px solid transparent;
}
.cc-stat-highlight { border-color: #c9a227; background: rgba(201,162,39,0.06); }
.cc-stat-card .cc-stat-val { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: #1a1a1a; }
.cc-stat-highlight .cc-stat-val { color: #8a6d0f; }
.cc-stat-card .cc-stat-label { font-size: 10px; text-transform: uppercase; color: #666; letter-spacing: 0.5px; margin-top: 2px; }

/* --- Intel Section --- */
.cc-intel-notes {
  font-size: 14px; color: #1a1a1a; padding: 12px 16px; line-height: 1.5;
  background: rgba(201,162,39,0.06); border-left: 3px solid #c9a227; border-radius: 0 8px 8px 0;
}
.cc-lost-block { margin-top: 12px; }
.cc-lost-label { font-size: 12px; font-weight: 700; color: #b45050; margin-bottom: 6px; }
.cc-lost-item { font-size: 13px; color: #333; padding: 4px 0; font-family: 'JetBrains Mono', monospace; }

/* --- Outcome Section --- */
.cc-outcome-section { background: rgba(45,90,71,0.03); margin: 0 -28px; padding: 16px 28px !important; border-radius: 0; }
.cc-outcome-grid { display: flex; flex-direction: column; gap: 8px; }
.cc-outcome-select { font-size: 14px !important; padding: 10px 12px !important; }
.cc-update-contact { margin-top: 10px; font-size: 13px; color: #555; cursor: pointer; }
.cc-update-contact summary { font-weight: 600; color: #2d5a47; padding: 6px 0; }
.cc-update-contact .cc-collect-row { margin-top: 8px; }

/* --- Objection Handles --- */
.cc-objections { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px !important; border-bottom: none !important; }
.cc-objection { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.cc-obj-q { color: #1a1a1a; font-weight: 700; white-space: nowrap; }
.cc-obj-a { color: #2d5a47; font-weight: 600; }

/* Add contact button & form */
.cc-add-contact-btn {
  display: inline-block; margin-top: 10px; padding: 6px 14px;
  background: none; border: 1px dashed #2d5a47; border-radius: 6px;
  color: #2d5a47; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cc-add-contact-btn:hover { background: rgba(45,90,71,0.06); }
.cc-add-contact-form { margin-top: 10px; padding: 12px; background: #f5f3f0; border-radius: 8px; }

/* LinkedIn action button */
.cc-action-linkedin { background: #0a66c2; color: #fff; }

/* Activity history in calling card */
.cc-activity-list { display: flex; flex-direction: column; gap: 4px; }
.cc-activity-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: #f5f3f0; border-radius: 6px; font-size: 12px;
}
.cc-activity-icon { flex-shrink: 0; }
.cc-activity-type { font-weight: 700; color: #2d5a47; min-width: 55px; text-transform: capitalize; }
.cc-activity-notes { flex: 1; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-activity-date { color: #666; font-family: 'JetBrains Mono', monospace; font-size: 11px; flex-shrink: 0; }
.cc-activity-by { color: #888; font-size: 11px; flex-shrink: 0; }
.cc-activity-more { font-size: 11px; color: #888; padding: 4px 10px; }
.cc-transcript-btn { background: #2d5a47; border: none; border-radius: 4px; color: #fff; font-size: 11px; padding: 2px 6px; cursor: pointer; flex-shrink: 0; }
.cc-transcript-btn:hover { background: #3d7a5f; }
.cc-activity-row-wrap { display: flex; flex-direction: column; gap: 0; }
.cc-activity-summary { font-size: 11px; color: #888; padding: 2px 10px 4px 32px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #ebe9e5; border-radius: 0 0 6px 6px; margin-top: -4px; }
.cc-activity-summary:hover { color: #2d5a47; }
.transcript-speaker { font-weight: 700; display: inline-block; margin-right: 6px; }
.transcript-speaker-Nick { color: #89b4fa; }
.transcript-speaker-Other { color: #a6e3a1; }
.cc-activity-empty { font-size: 13px; color: #999; font-style: italic; }

/* Card modal layout fix */
#card-modal { overflow: visible; }
#card-modal .modal-body { overflow-y: auto; max-height: calc(90vh - 60px); padding: 24px; }

/* Selected row highlight */
.selected-row { background: var(--primary-lightest) !important; }
.prospect-cb { width: 16px; height: 16px; cursor: pointer; }

/* Data availability toggles */
.data-toggle { display:flex; align-items:center; gap:6px; cursor:pointer; font-size:13px; color:var(--text-secondary, #94a3b8); user-select:none; }
.data-toggle input[type="checkbox"] { width:16px; height:16px; accent-color:var(--primary, #6366f1); cursor:pointer; }
.data-toggle:has(input:checked) .data-toggle-label { color:var(--text-primary, #e2e8f0); font-weight:500; }
.data-toggle-label { transition: color 0.15s; }
