/* ============================================
   Gazellia Sales Platform
   Dark theme, gold accents, clean internal tool
   ============================================ */

:root {
  --gold: #E8B931;
  --gold-bright: #F2C31C;
  --gold-dim: #C49B1A;
  --gold-subtle: rgba(232, 185, 49, 0.06);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --purple: #c084fc;
  --purple-dim: rgba(192, 132, 252, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --bg: #08080A;
  --bg-elevated: #0C0C0F;
  --bg-card: #111114;
  --bg-card-hover: #161619;
  --border: #1A1A1E;
  --border-light: #242429;
  --text: #F0F0F2;
  --text-secondary: #9E9EA8;
  --text-muted: #5C5C66;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-width: 1280px;
  --nav-height: 56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Typography ---- */
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.btn-primary { background: var(--gold); color: #08080A; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; }
.btn-full { width: 100%; }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height); background: rgba(8,8,10,0.92);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-img { height: 20px; }
.nav-logo-text { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; }
.nav-badge {
  font-size: 0.6rem; padding: 2px 6px; background: var(--gold-subtle);
  border: 1px solid rgba(232,185,49,0.2); border-radius: 4px;
  color: var(--gold); letter-spacing: 0.06em; vertical-align: middle;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.78rem; color: var(--text-muted); padding: 6px 12px;
  border-radius: var(--radius-sm); transition: all 0.15s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--gold); background: var(--gold-subtle); }
.nav-search-icon { display: flex; align-items: center; }
.nav-admin { color: var(--purple) !important; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.cost-tracker { display: flex; gap: 6px; }
.cost-badge {
  display: flex; flex-direction: column; align-items: center;
  padding: 3px 10px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-width: 56px; cursor: default;
}
.cost-badge:hover { border-color: var(--border-light); }
.cost-badge-label { font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.cost-badge-value { font-size: 0.82rem; font-weight: 800; line-height: 1.1; }
.cost-badge-cap { font-size: 0.6rem; font-weight: 400; color: var(--text-muted); }
.cost-badge-cost { font-size: 0.55rem; color: var(--text-muted); }
.nav-credits {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.75rem; cursor: pointer;
}
.nav-credits:hover { border-color: var(--border-light); }
.credit-count { font-weight: 800; font-size: 0.95rem; }
.credit-label { color: var(--text-muted); font-size: 0.7rem; }
.credit-set-link {
  color: var(--text-muted); font-size: 0.65rem; cursor: pointer;
  margin-left: 4px; text-decoration: underline;
}
.credit-set-link:hover { color: var(--gold); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user-name { font-size: 0.78rem; color: var(--text-secondary); }
.nav-logout {
  font-size: 0.72rem; color: var(--text-muted); background: none;
  border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.nav-logout:hover { color: var(--text); border-color: var(--text-muted); }

/* ---- Main ---- */
.main {
  max-width: var(--max-width); margin: 0 auto; padding: 24px 20px;
}

/* ---- Login ---- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 360px; padding: 40px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.login-logo { height: 40px; margin: 0 auto 20px; }
.login-card h1 { margin-bottom: 4px; }
.login-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.login-card input {
  width: 100%; padding: 10px 14px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.85rem; transition: border-color 0.15s;
}
.login-card input:focus { outline: none; border-color: var(--gold-dim); }
.login-card input::placeholder { color: var(--text-muted); }
.login-card .btn { margin-top: 8px; padding: 11px; }
.login-footer { font-size: 0.7rem; color: var(--text-muted); margin-top: 24px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: all 0.2s;
}
.card:hover { background: var(--bg-card-hover); }
.card.gold-border { border-color: rgba(232,185,49,0.25); }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-2px); border-color: var(--border-light); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; font-size: 0.65rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
}
.badge.gold { background: var(--gold-subtle); color: var(--gold); border: 1px solid rgba(232,185,49,0.2); }
.badge.green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.badge.blue { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }
.badge.purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(192,132,252,0.2); }
.badge.red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* ---- Stat Cards ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { text-align: center; padding: 16px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-card .stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Dashboard ---- */
.dashboard-welcome { margin-bottom: 24px; }
.dashboard-welcome h1 { font-size: 1.4rem; }

.track-tabs {
  display: flex; gap: 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.track-tab {
  padding: 10px 20px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.track-tab:hover { color: var(--text-secondary); }
.track-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.track-count {
  font-size: 0.68rem; background: var(--bg); padding: 1px 6px;
  border-radius: 100px; margin-left: 6px; color: var(--text-muted);
  font-weight: 400;
}
.track-desc {
  margin-bottom: 16px; padding: 10px 14px;
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.track-desc p { margin: 0; }

/* ---- Lead Feed ---- */
.lead-feed { display: flex; flex-direction: column; gap: 10px; }
/* Full width and thumb-sized: it sits at the end of a long scroll, which is exactly where
   a small target is hardest to hit. */
.lead-more { width: 100%; padding: 14px; margin-top: 4px; }
.lead-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 24px; cursor: pointer;
}
.lead-card:hover { border-color: var(--border-light); }
.lead-card.high-fit { border-left: 3px solid var(--gold); }
.lead-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.lead-card-company { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.lead-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.lead-card-score-wrap { flex-shrink: 0; }
.lead-card-score {
  font-size: 0.9rem; font-weight: 800;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border);
}
.lead-card-score.high { color: var(--gold); border-color: var(--gold); background: var(--gold-subtle); }
.lead-card-score.med { color: var(--blue); border-color: var(--blue); background: var(--blue-dim); }
.lead-card-score.low { color: var(--text-muted); }

.lead-card-why {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
  padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold-dim);
}
.why-label { font-weight: 600; color: var(--gold); margin-right: 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.why-text { }

.lead-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.lead-card-tags { display: flex; align-items: center; gap: 8px; }
.lead-card-service { font-size: 0.75rem; color: var(--text-muted); }
.lead-card-value { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.lead-card-btn { align-self: flex-end; }
.lead-card-angle {
  font-size: 0.75rem; color: var(--text-muted); font-style: italic;
  margin-top: 6px;
}
.angle-label { font-weight: 600; color: var(--text-secondary); font-style: normal; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Lead Profile ---- */
.lead-profile-back { margin-bottom: 16px; }
.lead-profile-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.lead-company-header { margin-bottom: 0; }
.lead-company-name { font-size: 1.3rem; margin-bottom: 4px; }
.lead-domain { font-size: 0.78rem; color: var(--gold); }
.lead-company-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.lead-meta-item { font-size: 0.78rem; color: var(--text-secondary); }
.card-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-pill { font-size: 0.7rem !important; padding: 4px 10px !important; background: var(--bg) !important; border: 1px solid var(--border) !important; color: var(--text-secondary) !important; text-transform: none !important; }
.lead-profile-left > .card { margin-bottom: 10px; padding: 16px 20px; }
.lead-profile-right > .card { margin-bottom: 10px; padding: 16px 20px; }
.lead-profile-right > .deal-angle-card { margin-bottom: 10px; }
.muted { color: var(--text-muted); font-size: 0.82rem; }
.note-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.note-textarea {
  width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: 0.82rem; resize: vertical; min-height: 70px;
}
.note-textarea:focus { outline: none; border-color: var(--gold-dim); }
.note-form .btn { align-self: flex-end; }
.lead-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.lead-header { margin-bottom: 20px; }
.lead-header h2 { margin-bottom: 4px; }
.lead-header-meta { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--text-secondary); }
.tech-stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tech-badge {
  font-size: 0.7rem; padding: 4px 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px; color: var(--text-secondary);
}
.contacts-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.contact-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.contact-name { font-size: 0.85rem; font-weight: 500; }
.contact-title { font-size: 0.75rem; color: var(--text-muted); }
.contact-actions { display: flex; gap: 8px; }
.contact-actions a {
  font-size: 0.72rem; color: var(--gold); padding: 3px 8px;
  border: 1px solid rgba(232,185,49,0.2); border-radius: 4px;
}
.contact-actions a:hover { background: var(--gold-subtle); }

/* Stage pills */
.stage-pills { display: flex; gap: 4px; margin: 20px 0; }
.stage-pill {
  padding: 6px 14px; font-size: 0.72rem; font-weight: 600;
  border-radius: 100px; cursor: pointer; transition: all 0.15s;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
}
.stage-pill:hover { border-color: var(--text-muted); color: var(--text); }
.stage-pill.active { background: var(--gold); color: #08080A; border-color: var(--gold); }

/* Deal angle card */
.deal-angle-card {
  background: var(--bg-card); border: 2px solid rgba(232,185,49,0.3);
  border-radius: var(--radius-lg); padding: 24px; position: relative;
  overflow: hidden;
}
.deal-angle-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
}
.deal-angle-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.deal-angle-service { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.deal-angle-price { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.deal-angle-reasons { list-style: none; margin: 12px 0; }
.deal-angle-reasons li {
  font-size: 0.78rem; color: var(--text-secondary); padding: 3px 0 3px 16px;
  position: relative;
}
.deal-angle-reasons li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dim);
}

/* ---- Notes ---- */
.notes-section { margin-top: 24px; }
.notes-timeline { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.note-item { padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.note-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.note-text { font-size: 0.82rem; color: var(--text-secondary); }
.note-input {
  width: 100%; padding: 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: 0.82rem; resize: vertical; min-height: 60px; margin-top: 8px;
}
.note-input:focus { outline: none; border-color: var(--gold-dim); }

/* ---- Kanban ---- */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; min-height: 500px; }
.kanban-col {
  background: var(--bg-elevated); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 12px; min-height: 400px;
}
.kanban-col-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.kanban-col-title { font-size: 0.78rem; font-weight: 600; }
.kanban-col-count {
  font-size: 0.65rem; background: var(--bg-card); padding: 2px 8px;
  border-radius: 100px; color: var(--text-muted);
}
.kanban-cards { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kanban-card {
  padding: 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: grab; transition: all 0.15s;
  font-size: 0.82rem;
}
.kanban-card:active { cursor: grabbing; opacity: 0.7; }
.kanban-card:hover { border-color: var(--border-light); }
.kanban-card-company { font-weight: 600; margin-bottom: 2px; }
.kanban-card-contact { font-size: 0.72rem; color: var(--text-muted); }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kanban-card-value { font-size: 0.75rem; color: var(--gold); font-weight: 600; }
.kanban-col.drag-over { background: rgba(232,185,49,0.04); border-color: rgba(232,185,49,0.2); }

/* ---- Pitch Templates ---- */
.pitch-tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pitch-tab {
  padding: 12px 24px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border: none; background: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
/* No hover color change — keeps text readable */
.pitch-tab:hover { color: var(--text-secondary); }
.pitch-tab.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
  background: none !important;
}

.pitch-content { max-width: 780px; }
.pitch-content > .card,
.pitch-content > .pitch-services-grid,
.pitch-content > div > .card { margin-bottom: 16px; padding: 20px 24px; }
.pitch-content .card-title { margin-bottom: 12px; font-size: 0.88rem; }

.pitch-why p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.pitch-services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.pitch-services-grid .card-title { grid-column: 1 / -1; }
.pitch-service-card { padding: 16px !important; }
.pitch-service-card h4 { font-size: 0.82rem; color: var(--gold); margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.pitch-service-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

.script-block {
  background: var(--bg); border-left: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.75;
  font-style: italic; margin-bottom: 10px;
}
.copy-script-btn { margin-top: 0; }

.pain-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.pain-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.82rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.pain-item:last-child { border-bottom: none; }
.pain-item input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--gold); flex-shrink: 0;
}

.proof-list { list-style: none; }
.proof-list li {
  padding: 6px 0 6px 18px; font-size: 0.82rem; color: var(--text-secondary);
  position: relative; line-height: 1.6;
}
.proof-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dim);
}
.proof-list.gold-accent li::before { background: var(--gold); }

.objection-list { display: flex; flex-direction: column; gap: 6px; }
.objection-item { }
.objection-toggle {
  width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.82rem;
  font-weight: 500; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); font-family: inherit; text-align: left;
  transition: border-color 0.15s;
}
.objection-toggle:hover { border-color: var(--border-light); }
.objection-q { flex: 1; }
.objection-arrow { color: var(--text-muted); font-size: 0.75rem; margin-left: 8px; }
.objection-answer {
  padding: 10px 14px; font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.7; border-left: 2px solid var(--gold-dim); margin: 4px 0 4px 14px;
  display: none;
}
.objection-item.open .objection-answer { display: block; }

/* ---- Service Reference ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.pricing-card { text-align: center; padding: 28px 20px; }
.pricing-card.recommended { border-color: rgba(232,185,49,0.3); }
.pricing-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.pricing-price { font-size: 2rem; font-weight: 800; color: var(--gold); }
.pricing-period { font-size: 0.72rem; color: var(--text-muted); }
.pricing-features { list-style: none; text-align: left; margin-top: 16px; }
.pricing-features li {
  padding: 5px 0 5px 16px; font-size: 0.78rem; color: var(--text-secondary);
  position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green);
}
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.addon-card { padding: 16px; }
.addon-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.addon-price { font-size: 0.78rem; color: var(--gold); font-weight: 600; }

/* ---- Discovery ---- */
.search-bar {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.search-input {
  flex: 1; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 0.85rem;
}
.search-input:focus { outline: none; border-color: var(--gold-dim); }
.smart-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.smart-list-btn {
  padding: 14px; text-align: left; cursor: pointer; transition: all 0.15s;
}
.smart-list-btn:hover { border-color: var(--gold-dim); transform: translateY(-1px); }
.smart-list-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.smart-list-desc { font-size: 0.72rem; color: var(--text-muted); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-card { padding: 16px; }
.result-company { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.result-industry { font-size: 0.75rem; color: var(--text-muted); }
.result-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }

/* ---- Loading ---- */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--text-muted); font-size: 0.85rem;
}
.loading::before {
  content: ''; width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.6s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Toast ---- */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.82rem; animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast-info { background: var(--blue-dim); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }
.toast-error { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.toast-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 20px; }
.section-tag {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 4px; display: block;
}
.section-header h2 { margin-bottom: 4px; }
.section-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ---- Comparison Table ---- */
.comparison-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.comparison-table th {
  text-align: left; padding: 10px 14px; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 10px 14px; font-size: 0.82rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.comparison-table .highlight { color: var(--gold); font-weight: 600; }
.comparison-table .strike { text-decoration: line-through; color: var(--text-muted); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* ---- Call Coach ---- */
.coach-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 12px;
}
.coach-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.coach-header h3 { font-size: 0.88rem; margin: 0; }
.coach-status {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); padding: 3px 10px;
  border-radius: 100px; background: var(--bg); border: 1px solid var(--border);
}
.coach-status.listening {
  color: var(--red); background: var(--red-dim);
  border-color: rgba(239,68,68,0.2); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.coach-instructions { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.coach-unsupported { font-size: 0.82rem; color: var(--text-muted); }

.coach-transcript-section {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
}
.coach-transcript-section h4 {
  font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 8px; font-weight: 600;
}
.coach-transcript-log {
  max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.transcript-line {
  font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5;
}
.transcript-time {
  font-size: 0.65rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
}

.coach-suggestions { display: flex; flex-direction: column; gap: 8px; }
.coach-suggestion-placeholder {
  font-size: 0.78rem; color: var(--text-muted); text-align: center;
  padding: 20px; font-style: italic;
}

.coach-card {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold); background: var(--bg);
  animation: slideIn 0.3s ease;
}
.coach-card-response { border-left-color: var(--green); }
.coach-card-objection { border-left-color: var(--red); }
.coach-card-tip { border-left-color: var(--gold); }
.coach-card-opening { border-left-color: var(--blue); }

.coach-card-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px;
}
.coach-card-response .coach-card-label { color: var(--green); }
.coach-card-objection .coach-card-label { color: var(--red); }
.coach-card-opening .coach-card-label { color: var(--blue); }

.coach-card-text {
  font-size: 0.82rem; color: var(--text); line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .lead-layout { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .smart-list-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  /* TWO ACROSS, NOT ONE. Four stat cards stacked one per row ate roughly half an 844px
     phone screen before a single lead was visible — a summary that costs you the thing it
     is summarising. They are four short numbers; they fit side by side. */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px 10px; }
  .stat-card .stat-value { font-size: 1.5rem; }
  .smart-list-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .knowledge-offers-grid { grid-template-columns: 1fr !important; }
  .knowledge-demos-grid { grid-template-columns: 1fr !important; }
}

/* ---- Knowledge Hub ---- */
.knowledge-page { max-width: 1100px; margin: 0 auto; }
.knowledge-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.knowledge-pane { display: flex; flex-direction: column; gap: 14px; }
.knowledge-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; flex-wrap: wrap;
}
.knowledge-contact { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-facts-table { width: 100%; border-collapse: collapse; }
.quick-facts-table tr { border-bottom: 1px solid var(--border); }
.quick-facts-table tr:last-child { border-bottom: none; }
.quick-facts-table td { padding: 8px 0; font-size: 0.85rem; }
.qf-label {
  color: var(--text-muted); width: 35%; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.qf-value { color: var(--text); }
.knowledge-offers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}
.knowledge-offer-card { display: flex; flex-direction: column; }
.knowledge-demos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.knowledge-demo-card { display: flex; flex-direction: column; }
.knowledge-body .pitch-tabs { margin-top: 8px; }

/* ---- Campaign filter pills (Model A / B) ---- */
.campaign-pill {
  background: var(--bg-card, #0F1018);
  color: var(--text-secondary, #C9C9BC);
  border: 1px solid var(--cardBorder, #2a2e40);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s;
}
.campaign-pill:hover { border-color: var(--gold, #E8B931); color: var(--text, #F4F4EE); }
.campaign-pill.active {
  background: rgba(232, 185, 49, 0.15);
  border-color: var(--gold, #E8B931);
  color: var(--gold, #E8B931);
}

/* ---- Recording consent gate (call coach) ---- */
.consent-gate {
  border: 1px solid var(--border-light, #242429);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-elevated, #0C0C0F);
  padding: 14px;
  margin-bottom: 14px;
}
.consent-gate-blocked { border-color: var(--red, #ef4444); }
.consent-gate-seller-only { border-color: var(--gold, #E8B931); }
.consent-gate-full { border-color: var(--green, #34d399); }
.consent-gate-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.consent-gate-header h4 { margin: 0; font-size: 14px; letter-spacing: 0.2px; }
.consent-mode-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--red-dim, rgba(239,68,68,0.12)); color: var(--red, #ef4444);
}
.consent-mode-seller-only { background: rgba(232,185,49,0.15); color: var(--gold, #E8B931); }
.consent-mode-full { background: var(--green-dim, rgba(52,211,153,0.12)); color: var(--green, #34d399); }

.consent-banner {
  border-radius: var(--radius-sm, 8px);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  background: var(--bg-card, #111114);
  border-left: 3px solid var(--border-light, #242429);
}
.consent-banner-all-party {
  background: var(--red-dim, rgba(239,68,68,0.12));
  border-left-color: var(--red, #ef4444);
}
.consent-banner-title { font-weight: 700; margin-bottom: 6px; }
.consent-banner-reasons { margin: 0 0 6px 16px; padding: 0; color: var(--text-secondary, #9E9EA8); }
.consent-banner-reasons li { margin: 2px 0; }
.consent-banner-foot { font-size: 11px; color: var(--text-muted, #5C5C66); }

.consent-state-title { font-weight: 600; margin-bottom: 8px; }
.consent-state p { margin: 0 0 10px; font-size: 13px; color: var(--text-secondary, #9E9EA8); }
.consent-script {
  margin: 0 0 12px; padding: 10px 12px;
  border-left: 3px solid var(--gold, #E8B931);
  background: var(--gold-subtle, rgba(232,185,49,0.06));
  font-size: 15px; line-height: 1.5;
}
.consent-btn { margin-right: 8px; margin-bottom: 4px; }
.consent-gate-reason { margin-top: 8px; font-size: 12px; color: var(--text-muted, #5C5C66); }

.coach-start-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 640px) {
  .consent-script { font-size: 17px; }
  .consent-btn { width: 100%; margin-right: 0; }
}

/* ---- Brand routing (one cockpit, two companies) ---- */
.brand-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  color: var(--brand-color, #5C5C66);
  border: 1px solid var(--brand-color, #5C5C66);
  background: transparent;
}
.brand-pill-unassigned { opacity: 0.65; }

.brand-picker {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border, #1A1A1E);
}
.brand-picker-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.brand-picker-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted, #5C5C66);
}
.brand-why { font-size: 12px; color: var(--text-secondary, #9E9EA8); margin-bottom: 10px; }
.brand-why-who { color: var(--text-muted, #5C5C66); }
.brand-options { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.brand-option {
  flex: 1 1 120px;
  padding: 8px 12px; border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-light, #242429);
  background: var(--bg-card, #111114);
  color: var(--text-secondary, #9E9EA8);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.brand-option:hover { border-color: var(--brand-color); color: var(--brand-color); }
.brand-option.active {
  border-color: var(--brand-color); color: var(--brand-color);
  background: color-mix(in srgb, var(--brand-color) 12%, transparent);
}
.brand-reason-input {
  width: 100%; padding: 8px 10px; font-size: 13px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-light, #242429);
  background: var(--bg, #08080A); color: var(--text, #F0F0F2);
}
.brand-picker-foot { margin-top: 6px; font-size: 11px; color: var(--text-muted, #5C5C66); }

/* ---- INBOUND / SOURCED ---- */
.list-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border-light, #242429);
  color: var(--text-secondary, #9E9EA8);
}
.list-pill-inbound { color: var(--green, #34d399); border-color: var(--green, #34d399); }
.list-pill-sourced { color: var(--text-muted, #5C5C66); }
.list-pill-promoted { color: var(--gold, #E8B931); border-color: var(--gold, #E8B931); }
.lead-list-row { margin-top: 10px; }
.list-why { margin-top: 6px; font-size: 12px; color: var(--text-secondary, #9E9EA8); }
.list-why-who { color: var(--text-muted, #5C5C66); }

.promote-control { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.promote-reason-input {
  flex: 1 1 240px; padding: 8px 10px; font-size: 13px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-light, #242429);
  background: var(--bg, #08080A); color: var(--text, #F0F0F2);
}
.promote-foot { flex-basis: 100%; font-size: 11px; color: var(--text-muted, #5C5C66); }

/* ---- Routing recommendation (qualification) ---- */
.rec {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-card, #111114);
  border-left: 3px solid var(--border-light, #242429);
  font-size: 13px;
}
.rec-aiguys { border-left-color: var(--gold, #E8B931); }
.rec-gazellia { border-left-color: var(--blue, #60a5fa); }
.rec-disqualify {
  border-left-color: var(--red, #ef4444);
  background: var(--red-dim, rgba(239,68,68,0.12));
}
/* The scorer declining to guess. Deliberately the quietest of the four: it is neither a
   recommendation nor a warning, it is a lead waiting on a human. */
.rec-unrouted { border-left-color: var(--border-light, #242429); }
.rec-head { font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-confidence {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px;
  background: var(--bg-elevated, #0C0C0F); color: var(--text-muted, #5C5C66);
}
.rec-confidence-high { color: var(--green, #34d399); }
.rec-confidence-medium { color: var(--gold, #E8B931); }
.rec-reasons { margin: 0 0 8px 16px; padding: 0; color: var(--text-secondary, #9E9EA8); }
.rec-reasons li { margin: 3px 0; }
.lead-card-why.why-now { border-left: 2px solid var(--green, #34d399); padding-left: 10px; }

/* ---- Email composer ---- */
.composer {
  margin-top: 16px; padding: 14px;
  border: 1px solid var(--border-light, #242429);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-elevated, #0C0C0F);
}
.composer-blocked { border-style: dashed; color: var(--text-secondary, #9E9EA8); }
.composer-head { font-weight: 600; margin-bottom: 10px; }
.composer-identity { font-size: 12px; color: var(--text-secondary, #9E9EA8); margin-bottom: 10px; }
.composer-label {
  display: inline-block; margin-right: 4px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted, #5C5C66);
}
.composer-identity .composer-label:not(:first-child) { margin-left: 12px; }
.composer-warn { color: var(--gold, #E8B931); margin-left: 12px; }
.composer-subject, .composer-body {
  width: 100%; margin-bottom: 8px; padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border-light, #242429);
  background: var(--bg, #08080A); color: var(--text, #F0F0F2);
  font-size: 13px; font-family: inherit;
}
.composer-body { line-height: 1.55; resize: vertical; }
.composer-style { font-size: 12px; margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.composer-style-ok { color: var(--green, #34d399); }
.composer-style-problem { color: var(--gold, #E8B931); }
.composer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-foot { margin-top: 10px; font-size: 11px; color: var(--text-muted, #5C5C66); line-height: 1.5; }

/* ---- Suppression ---- */
.suppression-notice {
  margin-bottom: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  background: var(--red-dim, rgba(239,68,68,0.12));
  border-left: 3px solid var(--red, #ef4444);
  font-size: 13px; line-height: 1.5;
}

/* ---- Analytics ---- */
.analytics-funnels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.funnel {
  padding: 16px; border-radius: var(--radius, 12px);
  background: var(--bg-card, #111114); border: 1px solid var(--border, #1A1A1E);
}
.funnel h3 { margin: 0 0 4px; font-size: 15px; }
.funnel-note, .funnel-empty { font-size: 12px; color: var(--text-muted, #5C5C66); margin: 0 0 12px; line-height: 1.5; }
.funnel-rows { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; }
.funnel-label { font-size: 12px; color: var(--text-secondary, #9E9EA8); }
.funnel-bar { height: 8px; border-radius: 999px; background: var(--bg, #08080A); overflow: hidden; }
.funnel-bar-fill { height: 100%; background: var(--gold, #E8B931); }
.funnel-count { font-size: 13px; font-weight: 600; text-align: right; }
.funnel-rate { grid-column: 1 / -1; font-size: 11px; color: var(--text-muted, #5C5C66); padding-left: 88px; }
.funnel-close { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border, #1A1A1E); font-size: 13px; }
.rate-pct { font-weight: 600; color: var(--text, #F0F0F2); }
.rate-of { color: var(--text-muted, #5C5C66); }
.rate-thin { color: var(--gold, #E8B931); }
.rate-empty { color: var(--text-muted, #5C5C66); font-style: italic; }
.analytics-cost {
  margin-top: 16px; padding: 16px; border-radius: var(--radius, 12px);
  background: var(--bg-card, #111114); border: 1px solid var(--border, #1A1A1E);
}
.analytics-cost h3 { margin: 0 0 8px; font-size: 15px; }
.cost-figure { font-size: 26px; font-weight: 700; }
.cost-per-lead { font-size: 13px; color: var(--text-secondary, #9E9EA8); margin-top: 2px; }
.cost-caveat { margin: 10px 0 0; font-size: 11px; color: var(--text-muted, #5C5C66); line-height: 1.5; }

/* ═══════════ PHONE ═══════════
   The seller works standing up, often with the phone on speaker at arm's length.
   Everything below assumes a thumb, not a mouse. */

/* The bottom bar. `.nav-links` is hidden under 768px, which used to leave a phone with no
   navigation at all — this replaces it, in thumb reach, above the home indicator. */
.mobile-tabs { display: none; }

@media (max-width: 768px) {
  .mobile-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--bg-elevated, #0C0C0F);
    border-top: 1px solid var(--border, #1A1A1E);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 4px 7px;
    min-height: 52px;                    /* a thumb target, not a link */
    text-decoration: none;
    color: var(--text-muted, #5C5C66);
    font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  }
  .mobile-tab-icon { font-size: 19px; line-height: 1; }
  .mobile-tab.active { color: var(--gold, #E8B931); }

  /* Nothing may hide behind the bar. */
  .main, .page-content { padding-bottom: 76px; }

  /* Touch targets everywhere else. */
  .btn, .stage-pill, .track-tab, .brand-option, .campaign-pill { min-height: 44px; }
  .btn-sm { min-height: 38px; }

  /* Inputs at 16px or iOS zooms the whole page when they focus. */
  input, select, textarea,
  .brand-reason-input, .promote-reason-input, .composer-subject, .composer-body { font-size: 16px; }

  .lead-profile-layout { grid-template-columns: 1fr; }
  .analytics-funnels { grid-template-columns: 1fr; }
  .features, .grid2, .grid3 { grid-template-columns: 1fr; }
}

/* Arm's length: on a phone the coach is read from across a desk with the call on speaker,
   so its cards get real type rather than UI type. */
@media (max-width: 640px) {
  .coach-card-text { font-size: 19px; line-height: 1.45; }
  .coach-card-label { font-size: 11px; letter-spacing: 0.09em; }
  .coach-panel { padding: 14px 12px; }
  .coach-transcript-log { max-height: 30vh; }

  /* The consent script is read out loud — it is the largest thing on the screen. */
  .consent-script { font-size: 18px; line-height: 1.5; }
  .consent-btn { width: 100%; margin-right: 0; }

  .brand-options { flex-direction: column; }
  .composer-actions .btn { flex: 1 1 100%; }
}

/* ============================================
   Visits — the field ops calendar
   The two states that must read from across a car park are "not ready" and "double-booked".
   Everything else on the card is reference.
   ============================================ */

.calendar h2 { margin-bottom: 16px; }
.visit-section { margin-bottom: 24px; }
.visit-section h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0.02em; }
.visit-section-note, .visit-empty, .visit-booking-empty, .visit-booking-note {
  font-size: 12px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5;
}
.visit-section-overdue h3 { color: var(--red); }

.visit-card {
  padding: 14px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--border-light);
  border-radius: var(--radius);
}
.visit-brand-aiguys { border-left-color: var(--gold); }
.visit-brand-gazellia { border-left-color: var(--blue); }

.visit-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.visit-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.visit-company { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; }
.visit-company:hover { color: var(--gold); }
.visit-brand-chip {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: var(--gold-subtle); color: var(--text-secondary);
}
.visit-where, .visit-who { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.visit-notes { font-size: 12px; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.5; }

.visit-readiness { margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-sm); font-size: 13px; }
.visit-ready { background: var(--green-dim); color: var(--green); font-weight: 600; }
.visit-blocked { background: var(--red-dim); color: var(--text); }
.visit-blocked ul { margin: 6px 0 0; padding-left: 18px; }
.visit-blocked li { margin-bottom: 4px; line-height: 1.45; }
.visit-overdue { background: var(--red-dim); color: var(--text); font-weight: 600; }
.visit-clash {
  margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-sm);
  background: var(--red-dim); border: 1px solid var(--red); color: var(--text);
  font-size: 13px; line-height: 1.45;
}

.visit-docs { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.visit-doc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 9px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 12px;
}
.visit-doc-name { font-weight: 600; color: var(--text); }
.visit-doc-when { color: var(--text-muted); flex: 1 1 auto; }
.visit-doc-state {
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.visit-doc-outstanding .visit-doc-state { background: var(--red-dim); color: var(--red); }
.visit-doc-sent .visit-doc-state { background: var(--gold-subtle); color: var(--gold); }
.visit-doc-signed .visit-doc-state { background: var(--green-dim); color: var(--green); }
.visit-doc-actions { display: inline-flex; align-items: center; gap: 6px; }
.visit-doc-mark { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-set {
  background: none; border: 1px solid var(--border-light); color: var(--text-secondary);
  border-radius: 4px; padding: 3px 8px; font-size: 11px; cursor: pointer;
}
.doc-set:hover { border-color: var(--gold); color: var(--gold); }

.visit-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.visit-action {
  background: none; border: 1px solid var(--border-light); color: var(--text-secondary);
  border-radius: var(--radius-sm); padding: 7px 12px; font-size: 12px; cursor: pointer;
}
.visit-complete { border-color: var(--green); color: var(--green); }
.visit-cancel:hover { border-color: var(--red); color: var(--red); }
.visit-action-blocked { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.visit-closed {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.visit-closed-day { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.visit-closed-company { flex: 1 1 auto; color: var(--text-secondary); }
.visit-closed-completed .visit-closed-status { color: var(--green); }
.visit-closed-cancelled .visit-closed-status,
.visit-closed-no-show .visit-closed-status { color: var(--text-muted); }

.visit-booking {
  padding: 14px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.visit-booking h3 { margin: 0 0 10px; font-size: 14px; }
.visit-booking-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.visit-booking-fields label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.visit-booking-fields input, .visit-booking-fields select, .visit-booking-fields textarea {
  background: var(--bg-elevated); border: 1px solid var(--border-light); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; text-transform: none;
  letter-spacing: normal;
}
.visit-booking-notes { grid-column: 1 / -1; }

/* On a phone this is read standing outside the building, so the two things that decide
   whether to knock get real type and the actions get thumb targets. */
@media (max-width: 640px) {
  .visit-company { font-size: 18px; }
  .visit-readiness, .visit-clash { font-size: 15px; line-height: 1.5; }
  .visit-doc { font-size: 13px; }
  .visit-action, .doc-set { min-height: 44px; padding: 10px 14px; }
  .visit-doc-when { flex-basis: 100%; }
}

/* ============================================
   Opt-out — the write side of suppression
   The standing notice has to be the loudest thing on a lead.  The control that creates one
   is deliberately quiet: it is permanent, and it should take a decision to reach.
   ============================================ */

.opt-out { margin-top: 12px; }

.opt-out-open {
  background: none; border: 1px solid var(--border-light); color: var(--text-muted);
  border-radius: var(--radius-sm); padding: 7px 12px; font-size: 12px; cursor: pointer;
}
.opt-out-open:hover { border-color: var(--red); color: var(--red); }

.opt-out-standing {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--red-dim); border: 1px solid var(--red);
}
.opt-out-standing-title { font-weight: 700; color: var(--red); letter-spacing: 0.02em; }
.opt-out-standing-reason { margin-top: 5px; color: var(--text); font-size: 13px; line-height: 1.5; }
.opt-out-standing-meta { margin-top: 6px; font-size: 11px; color: var(--text-secondary); }

.opt-out-form {
  margin-top: 10px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border-light);
}
.opt-out-types { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.opt-out-type {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer;
}
.opt-out-type:hover { border-color: var(--border-light); }
.opt-out-type input { grid-row: span 2; }
.opt-out-type-label { font-size: 13px; color: var(--text); font-weight: 600; }
.opt-out-type-hint { font-size: 11px; color: var(--text-muted); }

.opt-out-reason-label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.opt-out-reason-label textarea {
  background: var(--bg); border: 1px solid var(--border-light); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 10px; font-size: 13px;
  text-transform: none; letter-spacing: normal; resize: vertical;
}
.opt-out-required { color: var(--red); }
.opt-out-reason-why, .opt-out-scope-intro {
  font-size: 11px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5;
}
.opt-out-scope-intro { margin-top: 12px; }

.opt-out-identities { list-style: none; margin: 6px 0 0; padding: 0; }
.opt-out-identity {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.opt-out-identity-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); min-width: 52px;
}
.opt-out-identity code { color: var(--text); font-size: 12px; }
.opt-out-identity-scope { font-size: 11px; color: var(--gold); }

.opt-out-permanent {
  margin: 12px 0 0; padding: 9px 11px; border-radius: var(--radius-sm);
  background: var(--red-dim); color: var(--text); font-size: 12px; line-height: 1.5;
}
.opt-out-blocked { margin: 0; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.opt-out-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.btn-danger {
  background: var(--red); border: 1px solid var(--red); color: #fff;
  border-radius: var(--radius-sm); padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-danger:disabled { opacity: 0.55; cursor: default; }

@media (max-width: 640px) {
  .opt-out-standing-reason { font-size: 15px; }
  .opt-out-open, .btn-danger { min-height: 44px; }
  .opt-out-type { padding: 11px 12px; }
}

/* ============================================
   Unsent work
   The badge exists because a queue nobody can see reads exactly like a write that landed.
   ============================================ */

.queue-badge-empty { display: none; }
.queue-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  background: var(--gold-subtle); border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.queue-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: queue-pulse 2s ease-in-out infinite;
}
.queue-badge-count { font-variant-numeric: tabular-nums; }
.queue-badge-label { text-transform: uppercase; }

@keyframes queue-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .queue-badge-dot { animation: none; }
}

@media (max-width: 640px) {
  .queue-badge { min-height: 32px; }
  .queue-badge-label { display: none; }
}

/* ============================================
   Admin — the roster, and the screen the nav link never had
   ============================================ */

.admin-intro, .admin-note {
  max-width: 62ch; font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.admin-intro { margin: 0 0 28px; }
.admin-section { margin-bottom: 34px; }
.admin-section h3 {
  font-size: 14px; letter-spacing: 0.02em; margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.admin-count {
  font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.admin-error { color: var(--red); font-size: 14px; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.admin-table th {
  text-align: left; padding: 10px 14px; background: var(--bg-elevated);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-name { color: var(--text); font-weight: 600; }
.admin-email, .admin-date { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.admin-you {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 0 5px; margin-left: 4px;
}
.admin-role {
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; background: var(--bg-elevated); color: var(--text-secondary);
}
.admin-role-admin { background: var(--gold-subtle); color: var(--gold); }

.admin-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 12px;
}
/* `hidden` must win over any display we set here.  A class selector beats the browser's
   built-in [hidden] rule, so `el.hidden = true` on a styled label does nothing at all —
   which is how the manager-only Company field sat visible next to a Seller role. */
.admin-form label[hidden], [hidden] { display: none !important; }

.admin-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.admin-form input, .admin-form select {
  background: var(--bg-elevated); border: 1px solid var(--border-light); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13px;
  text-transform: none; letter-spacing: normal;
}
.admin-role-field { grid-column: 1 / -1; }
.admin-note { margin: 0 0 14px; }

@media (max-width: 640px) {
  .admin-form input, .admin-form select { min-height: 44px; }
}

/* ============================================
   The coach deck — one card at a time
   The seller is holding this against a live call.  They can read one thing.
   ============================================ */

.coach-deck { display: flex; flex-direction: column; gap: 10px; }
.coach-deck-updated {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-subtle); color: var(--gold);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.coach-deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.coach-deck-btn {
  min-width: 44px; min-height: 44px;
  background: none; border: 1px solid var(--border-light); color: var(--text-secondary);
  border-radius: var(--radius-sm); font-size: 22px; line-height: 1; cursor: pointer;
}
.coach-deck-btn:disabled { opacity: 0.3; cursor: default; }
.coach-dots { display: flex; gap: 6px; align-items: center; }
.coach-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-light); transition: background 0.15s, transform 0.15s;
}
.coach-dot.active { background: var(--gold); transform: scale(1.35); }
.coach-dot-response.active, .coach-dot-warning.active { background: var(--green); }
.coach-dot-objection.active { background: var(--red); }
.coach-deck-count {
  text-align: center; font-size: 11px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .coach-dot { transition: none; }
}

/* On a phone the card is the screen.  Arm's length type, and the transcript gets out of
   the way — it is a record, not something anyone reads mid-call. */
@media (max-width: 640px) {
  .coach-deck .coach-card { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; }
  .coach-deck .coach-card-text { font-size: 22px; line-height: 1.4; }
  .coach-deck .coach-card-label { font-size: 11px; letter-spacing: 0.1em; }
  .coach-transcript-section { margin-top: 16px; }
  .coach-transcript-section h4 { font-size: 12px; color: var(--text-muted); }
  .coach-transcript-log { max-height: 18vh; }
}

/* ============================================
   Company filter
   `brand` lived on the record and on the routing door since phase 1 and had never appeared
   on a screen the seller works from.  The counts sit in the option labels because a filter
   that silently empties the page is how someone concludes the app is broken.
   ============================================ */

.brand-filter {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-muted);
}
.brand-filter select { padding: 4px 8px; }
.brand-filter-note {
  flex-basis: 100%; font-size: 11px; color: var(--text-muted); line-height: 1.5;
}
.pipeline-controls { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* A suggestion is not a decision, and must never read as one. */
.brand-suggested {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-subtle); border: 1px dashed var(--gold);
}

@media (max-width: 640px) {
  .brand-filter select { min-height: 40px; }
  .pipeline-controls { justify-content: stretch; }
}

/* ============================================
   Dialer + call outcomes  (phase 7)
   The call is bridged, so the two things on screen that matter are what the prospect will
   see as a caller ID, and what is being recorded.  Both are stated in words.
   ============================================ */

.dialer {
  margin-top: 12px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--border-light);
}
.dialer-empty { color: var(--text-muted); font-size: 12px; }
.dialer-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dialer-field {
  display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.dialer-field input {
  background: var(--bg); border: 1px solid var(--border-light); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 10px; font-size: 16px;
  text-transform: none; letter-spacing: normal;
}
.dialer-call { white-space: nowrap; }
.dialer-recording {
  margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.5;
}
.dialer-recording-dual { background: var(--red-dim); color: var(--text); }
.dialer-recording-seller-only { background: var(--gold-subtle); color: var(--text); }
.dialer-recording-none { background: var(--bg-card); color: var(--text-secondary); }
.dialer-note {
  margin-top: 8px; font-size: 11px; color: var(--gold); line-height: 1.5;
}
.dialer-how { margin: 8px 0 0; font-size: 11px; color: var(--text-muted); line-height: 1.5; }

.outcomes { margin-top: 14px; }
.outcomes-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 8px;
}
.outcomes-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.outcome-btn {
  background: none; border: 1px solid var(--border-light); color: var(--text-secondary);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; cursor: pointer;
}
.outcome-btn:hover { border-color: var(--gold); color: var(--gold); }
.outcome-btn.selected { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.outcomes-notes {
  width: 100%; margin-top: 8px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 9px 10px; font-size: 16px; resize: vertical;
}
.outcomes-saved { margin-top: 6px; font-size: 12px; color: var(--green); }

/* She is standing outside a building with the phone in one hand. */
@media (max-width: 640px) {
  .outcome-btn { min-height: 48px; flex: 1 1 45%; }
  .dialer-call { width: 100%; min-height: 48px; }
  .dialer-recording { font-size: 14px; }
}

/* ---- Admin: budget caps + suppression (spec 10.8) ---- */
.cap-input { width: 90px; padding: 4px 8px; background: var(--bg-2, #101014); color: var(--text, #E8E8EC); border: 1px solid var(--border, #1A1A1E); border-radius: 4px; }
.cap-cost { display: block; font-size: 11px; color: var(--text-muted, #5C5C66); }
.cap-used { font-size: 13px; color: var(--text-muted, #5C5C66); }
/* "at cap" and "stopped" are the states that explain an empty lead pool, so they read as
   states rather than as decoration. */
.cap-hit { color: var(--accent, #E8B04B); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.cap-stopped { color: #E06C6C; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.cap-left { color: var(--text-muted, #5C5C66); font-size: 12px; }
.admin-saved { color: #6CC66C; font-size: 13px; margin: 8px 0; }
.supp-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.supp-permanent { color: #E06C6C; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.supp-touch { color: var(--text-muted, #5C5C66); font-size: 12px; }
/* ---- Post-call draft (spec 9) ---- */
.outcomes-note-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 4px; }
.outcomes-note-head label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted, #5C5C66); }
.outcome-draft {
  padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 12px;
  background: transparent; color: var(--accent, #E8B04B);
  border: 1px solid var(--accent, #E8B04B);
}
.outcome-draft:disabled { opacity: 0.5; cursor: default; }
.outcomes-draft-meta { margin-top: 8px; }
.wrapup-next { font-size: 13px; margin: 6px 0; color: var(--text, #E8E8EC); }
.wrapup-why { display: block; font-size: 12px; color: var(--text-muted, #5C5C66); }
.wrapup-commitments { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: var(--text-muted, #5C5C66); }
/* Seller-only means one half of the conversation was never captured. Say it in the colour
   that means "read this", not as a footnote. */
.wrapup-warn {
  margin: 6px 0; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5;
  border: 1px solid var(--accent, #E8B04B); color: var(--accent, #E8B04B);
}
.wrapup-none, .wrapup-edit { font-size: 12px; color: var(--text-muted, #5C5C66); margin: 6px 0 0; }
/* ---- Replies (Inbox, spec 10.5) ---- */
.inbox-head { display: flex; align-items: baseline; gap: 12px; }
.inbox-unread {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--accent, #E8B04B);
}
.inbox-warn {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--accent, #E8B04B); color: var(--accent, #E8B04B); font-size: 13px;
}
.inbox-tabs { display: flex; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.inbox-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-muted, #5C5C66);
  border: 1px solid var(--border, #1A1A1E); font-size: 13px;
}
.inbox-tab.active { color: var(--text, #E8E8EC); border-color: var(--text, #E8E8EC); }
.inbox-badge {
  min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--accent, #E8B04B); color: #16161A; text-align: center;
}
.inbox-empty, .inbox-loading, .inbox-error {
  color: var(--text-muted, #5C5C66); font-size: 14px; line-height: 1.6; margin: 16px 0;
}
.inbox-error { color: #E06C6C; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-row { border-bottom: 1px solid var(--border, #1A1A1E); }
.inbox-row-head {
  display: grid; grid-template-columns: 10px minmax(140px, 1fr) 2fr auto;
  gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 4px; background: transparent; border: 0; color: inherit; font: inherit;
}
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.inbox-row.is-unread .inbox-dot { background: var(--accent, #E8B04B); }
.inbox-row.is-unread .inbox-subject { font-weight: 600; color: var(--text, #E8E8EC); }
.inbox-row.is-read { opacity: 0.72; }
.inbox-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inbox-who strong { font-size: 14px; }
.inbox-company { font-size: 12px; color: var(--text-muted, #5C5C66); }
.inbox-subject {
  font-size: 14px; color: var(--text-muted, #5C5C66);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.inbox-when { font-size: 12px; color: var(--text-muted, #5C5C66); }
.inbox-body { padding: 0 4px 14px; }
/* The frame is the security boundary, not the styling. See inbox.js. */
.inbox-body-frame {
  width: 100%; min-height: 240px; border: 1px solid var(--border, #1A1A1E);
  border-radius: 6px; background: #FFF;
}
.inbox-lead-link {
  display: inline-block; margin: 0 4px 14px; font-size: 13px;
  color: var(--accent, #E8B04B); text-decoration: none;
}
.inbox-lead-link:hover { text-decoration: underline; }

@media (max-width: 700px) {
  /* On a phone the seller is holding this against a live call: sender and subject stack,
     and the subject stops being clipped to nothing. */
  .inbox-row-head { grid-template-columns: 10px 1fr; grid-template-areas: "dot who" ". subject" ". meta"; row-gap: 4px; }
  .inbox-dot { grid-area: dot; }
  .inbox-who { grid-area: who; }
  .inbox-subject { grid-area: subject; white-space: normal; }
  .inbox-meta { grid-area: meta; }
}

/* ---- Sourcing (spec 10.6) ---- */
.sourcing-counts { display: flex; gap: 24px; margin: 16px 0 8px; flex-wrap: wrap; }
.sourcing-count { display: flex; flex-direction: column; }
.sourcing-count strong { font-size: 26px; line-height: 1.1; }
.sourcing-count span { font-size: 12px; color: var(--text-muted, #5C5C66); text-transform: uppercase; letter-spacing: 0.5px; }
/* "waiting on review" is the number that means the seller's pool is not growing. */
.sourcing-count.is-waiting strong { color: var(--accent, #E8B04B); }
.sourcing-empty { color: var(--text-muted, #5C5C66); font-size: 14px; line-height: 1.6; margin: 12px 0; }
.sourcing-warn { margin: 8px 0; padding: 10px 12px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--accent, #E8B04B); color: var(--accent, #E8B04B); }
.sourcing-name { font-weight: 600; }
.sourcing-nodomain { color: var(--text-muted, #5C5C66); font-size: 12px; font-style: italic; }
.sourcing-dq { color: #E06C6C; font-size: 12px; }
.sourcing-actions { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.sourcing-reason { flex: 1; min-width: 200px; padding: 8px 10px; border-radius: 4px;
  background: var(--bg-2, #101014); color: var(--text, #E8E8EC); border: 1px solid var(--border, #1A1A1E); }
.sourcing-lists { list-style: none; margin: 8px 0; padding: 0; }
.sourcing-lists li { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--border, #1A1A1E); }
.sourcing-lists li.is-selected { color: var(--accent, #E8B04B); }
.sourcing-lists button { background: transparent; border: 0; color: inherit; cursor: pointer; font: inherit; }
.list-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px;
  background: var(--border, #1A1A1E); color: var(--text-muted, #5C5C66); }
.list-remove { color: var(--text-muted, #5C5C66); font-size: 16px; }
.list-filters { font-size: 12px; color: var(--text-muted, #5C5C66); }
.sourcing-builder { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.sourcing-builder label { display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted, #5C5C66); }
.sourcing-builder input, .sourcing-builder select { padding: 6px 8px; border-radius: 4px; min-width: 130px;
  background: var(--bg-2, #101014); color: var(--text, #E8E8EC); border: 1px solid var(--border, #1A1A1E); }
.sourcing-preview { font-size: 13px; color: var(--text-muted, #5C5C66); margin-top: 8px; }

/* ---- Call history: consent, recording and what was said ----
   Phase 6 has written call records since August and nothing rendered them.  The
   transcript block deliberately has a "withheld" state with its own styling: a call where
   consent was declined must LOOK different from one that simply has no words yet. */

.lead-calls-section { margin-top: 16px; }

.call-count {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card-hover); border-radius: 999px; padding: 1px 7px; margin-left: 4px;
}

.call-item { border-top: 1px solid var(--border); padding: 10px 0; }
.call-item:first-of-type { border-top: none; }

.call-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  cursor: pointer; list-style: none; font-size: 0.85rem;
}
.call-summary::-webkit-details-marker { display: none; }
.call-summary::before {
  content: '▸'; color: var(--text-muted); font-size: 0.7rem; transition: transform 0.15s ease;
}
.call-item[open] .call-summary::before { transform: rotate(90deg); }

.call-when { font-weight: 600; }
.call-duration { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.call-outcome {
  text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.08em; font-weight: 600;
  color: var(--green); background: var(--green-dim); border-radius: var(--radius-sm); padding: 2px 6px;
}

.call-mode { font-size: 0.7rem; padding: 2px 7px; border-radius: 999px; }
.call-mode-full { color: var(--green); background: var(--green-dim); }
/* Not an error state.  Declining consent is a legitimate outcome and should not read as
   a failure, so this is muted rather than red. */
.call-mode-limited { color: var(--text-secondary); background: var(--bg-card-hover); }

.call-body { padding: 10px 0 4px 16px; }
.call-notes { margin: 8px 0; font-size: 0.85rem; }
.call-recording-link { color: var(--gold); text-decoration: underline; font-size: 0.85rem; }

.call-transcript {
  margin-top: 10px; padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  max-height: 320px; overflow-y: auto;
}
.call-transcript .transcript-line { display: flex; gap: 8px; padding: 2px 0; font-size: 0.85rem; line-height: 1.5; }
.call-transcript .transcript-time {
  color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  flex-shrink: 0; padding-top: 1px;
}
.call-transcript .transcript-text { color: var(--text); }

.call-transcript-withheld {
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--border-light); border-radius: var(--radius-sm);
}
.call-transcript-withheld-label {
  display: inline-block; margin-bottom: 4px;
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--text-secondary);
}
.call-transcript-none { margin-top: 10px; font-size: 0.85rem; }

/* ---- Admin console ----
   Tabs over one route rather than five routes, because these four questions ("who has a
   login", "what did they do", "what calls happened", "who is a customer") are one job. */

.console-tabs { display: flex; gap: 4px; margin: 14px 0 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.console-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-secondary); padding: 8px 14px; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; font-family: inherit;
}
.console-tab:hover { color: var(--text); }
.console-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.console-filter { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.console-stats {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 14px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.console-stats span { white-space: nowrap; }

/* ---- People ---- */
.people-table td { vertical-align: top; }
.person-name { font-weight: 600; }
.person-email { font-size: 0.78rem; color: var(--text-muted); }
.person-you { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.person-seen, .person-created { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; }
.person-actions { text-align: right; white-space: nowrap; }
/* A disabled row must not look like a working one at a glance. */
.person-disabled { opacity: 0.5; }
.person-disabled .person-name::after { content: ' — disabled'; color: var(--text-muted); font-weight: 400; }

.role-chip, .scope-chip {
  display: inline-block; font-size: 0.68rem; padding: 2px 7px; border-radius: 999px;
  font-weight: 600; white-space: nowrap;
}
.role-admin { color: var(--gold); background: var(--gold-subtle); }
.role-manager { color: var(--green); background: var(--green-dim); }
.role-rep, .role-user { color: var(--text-secondary); background: var(--bg-card-hover); }
/* The confinement, which is the most important fact about a manager row. */
.scope-chip { color: var(--blue); background: rgba(96,165,250,0.12); margin-left: 4px; }

/* ---- The one moment a password is visible ---- */
.password-reveal {
  margin: 12px 0 18px; padding: 14px 16px;
  border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--gold-subtle);
}
.password-reveal-head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.password-reveal-value {
  font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; font-weight: 600;
  color: var(--gold-bright); margin: 8px 0; user-select: all; letter-spacing: 0.02em;
}
.password-reveal-note { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 10px; }

/* ---- Activity ---- */
.activity-summary { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 16px; }
.activity-summary-item {
  display: flex; gap: 14px; align-items: baseline; font-size: 0.8rem;
  padding: 6px 10px; background: var(--bg-elevated); border-radius: var(--radius-sm);
}
.asi-name { font-weight: 600; min-width: 150px; }
.asi-events, .asi-calls { color: var(--text-secondary); }
.asi-seen { margin-left: auto; color: var(--text-muted); }

.activity-feed { max-height: 620px; overflow-y: auto; }
.activity-row {
  display: grid; grid-template-columns: 130px 150px 150px 1fr; gap: 10px;
  padding: 6px 0; border-top: 1px solid var(--border); font-size: 0.82rem; align-items: baseline;
}
.activity-row:first-child { border-top: none; }
.activity-when { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.activity-who { font-weight: 600; }
.activity-what { color: var(--text-secondary); }
.activity-detail { color: var(--text-muted); overflow-wrap: anywhere; }
/* A failed sign-in is the one row worth catching an eye. */
.activity-warn .activity-what { color: var(--gold); }

.attributed { color: var(--green); }

@media (max-width: 720px) {
  .activity-row { grid-template-columns: 1fr; gap: 2px; }
  .asi-name { min-width: 0; }
  .console-stats { gap: 10px; }
}

/* ---- Borrowed session banner ----
   A borrowed session looks exactly like the real one, which is the point and also the
   danger: acting on a prospect while forgetting whose account you are in is how a real
   person gets a text signed by the wrong name.  Unmissable on purpose. */
.impersonation-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--gold); color: #0A0A0C;
  font-size: 0.82rem; font-weight: 500;
}
.impersonation-banner strong { font-weight: 700; }
.impersonation-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #0A0A0C; flex-shrink: 0;
  animation: impersonation-pulse 2s ease-in-out infinite;
}
@keyframes impersonation-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.impersonation-end {
  margin-left: auto; background: #0A0A0C; color: var(--gold);
  border: none; border-radius: var(--radius-sm); padding: 4px 10px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.impersonation-end:hover { background: #1A1A1E; }

/* The banner pushes the sticky nav down rather than sitting under it. */
.impersonation-banner + .nav { top: 0; }

@media (prefers-reduced-motion: reduce) {
  .impersonation-dot { animation: none; }
}

/* ---- Inline account editor ----
   In the row rather than in a modal, so it is never ambiguous WHICH account is being
   changed.  A dialog headed "Role" with no name attached is how the wrong person gets
   demoted. */
.person-editor-row td { padding: 0 !important; }
.person-editor {
  padding: 14px 16px; margin: 4px 0 10px;
  background: var(--bg-elevated); border: 1px solid var(--gold-dim); border-radius: var(--radius);
}
.person-editor-head { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.person-editor-head strong { color: var(--text); }
.person-editor-actions { display: flex; gap: 8px; margin-top: 4px; }

/* ---- Ad Leads and Cold Call ----
   The two lists the ~5,080-lead feed was split into.  They share a row shape on purpose:
   the same eye lands on both screens in the same morning, and a caller should not have to
   re-learn where the phone number is.  What differs is what leads each row — the task an ad
   lead asked us to kill, versus what a cold prospect does for a living.

   Both page at 20 rows (see ad-leads.js).  The feed once rendered every lead it had, which
   was an 86,000px page on a phone; the cold list is thousands long, so the bound is not
   optional here. */
.ad-leads-head, .cold-call-head { margin-bottom: 14px; }
.ad-leads-count, .cold-call-count {
  margin: 4px 0 0; font-size: 0.88rem; color: var(--text-muted, #5C5C66);
}
.ad-leads-count strong, .cold-call-count strong {
  color: var(--text, #E8E8EC); font-size: 1.05rem;
}
.ad-leads-waiting, .cold-call-dialable { color: var(--gold, #E8B931); margin-left: 6px; }
.ad-leads-warn, .cold-call-warn {
  margin: 0 0 12px; padding: 8px 12px; font-size: 0.82rem; line-height: 1.5;
  color: var(--gold, #E8B931);
  background: rgba(232, 185, 49, 0.08); border-radius: var(--radius-sm, 6px);
}
/* THE STATUS TABS THAT USED TO SIT HERE ARE GONE.  Seven of them shipped on 2026-09-23 and
   Chris used them the same day: "too many tabs.  we only have brandie as a customer thats
   it."  The state they held is a badge on each row now (.ad-lead-badge, below) and the
   customers have their own screen, so there is nothing left to select.

   Deleted rather than left unlinked: a rule with no markup behind it is how a screen gets
   rebuilt by accident six months later. */

/* Where everybody who left this list went.  One line, quiet, because it is reassurance and
   not work — and it is the difference between a shorter list and a list that lost somebody. */
.ad-leads-moved { color: var(--text-muted, #5C5C66); }
/* The good ending: every hand-raiser on this screen has bought.  Reads as a sentence. */
.ad-leads-empty-all-customers { max-width: 46rem; }

.cold-call-gate {
  margin: 4px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted, #5C5C66);
}
.ad-leads-empty, .cold-call-empty {
  color: var(--text-muted, #5C5C66); font-size: 14px; line-height: 1.6; margin: 16px 0;
}
.ad-leads-list, .cold-call-list { list-style: none; margin: 0; padding: 0; }
.ad-lead-row, .cold-call-row {
  padding: 14px 14px 12px; margin-bottom: 10px; cursor: pointer;
  background: var(--bg-elevated, #0C0C0F);
  border: 1px solid var(--border, #1A1A1E); border-radius: var(--radius, 8px);
}
.ad-lead-row:hover, .cold-call-row:hover { border-color: var(--gold-dim, #4A3A12); }
.ad-lead-top, .cold-call-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.ad-lead-who, .cold-call-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-lead-name, .cold-call-name { font-size: 15px; color: var(--text, #E8E8EC); }
.ad-lead-age, .cold-call-where { font-size: 12px; color: var(--text-muted, #5C5C66); }

/* THE BADGE IS WHERE THE SEVEN TABS WENT.  It says what state this lead is in, on the row,
   so nobody has to go and find the closed ones — which was the original complaint.  The
   bucket class still styles the row, because the bucket is WHY the row is where it is in
   the order, and a sort nobody can explain gets overridden by hand within a week. */
.ad-lead-badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05); color: var(--text-muted, #5C5C66);
}
/* Waiting on a human.  Gold is the only colour on this screen that means "do this now". */
.ad-lead-badge.badge-never-phoned { background: rgba(232, 185, 49, 0.16); color: var(--gold, #E8B931); }
.ad-lead-badge.badge-called { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.ad-lead-badge.badge-booked { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
/* A legal do-not-contact, and it must not be mistakable for one more grey status.  Red,
   outlined, and it says the words as well — a colour alone is not a warning. */
.ad-lead-badge.badge-opted-out {
  background: rgba(248, 113, 113, 0.16); color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
}
/* The number on a do-not-contact row is shown and is not a link.  Struck through, so a
   thumb reaching for it is told why nothing happened. */
.ad-lead-tel-blocked {
  color: #f87171; text-decoration: line-through; cursor: not-allowed;
}
/* Closed and opted-out rows are still readable, just visibly finished. */
.ad-lead-row.bucket-4, .ad-lead-row.bucket-5 { opacity: 0.66; }

/* The sentence the whole screen exists for: what they said they want killed. */
.ad-lead-goal { margin: 10px 0 8px; font-size: 14px; line-height: 1.5; color: var(--text, #E8E8EC); }
.ad-lead-goal-label, .ad-lead-ad-label, .cold-call-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted, #5C5C66); margin-right: 4px;
}
.ad-lead-goal-missing { color: var(--text-muted, #5C5C66); font-style: italic; }
.ad-lead-contact, .cold-call-contact {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px;
}
.ad-lead-tel, .ad-lead-mail, .cold-call-tel { color: var(--gold, #E8B931); text-decoration: none; }
.ad-lead-tel:hover, .ad-lead-mail:hover, .cold-call-tel:hover { text-decoration: underline; }
.ad-lead-nophone, .cold-call-nophone { color: var(--text-muted, #5C5C66); font-size: 12px; }
.ad-lead-status { font-size: 12px; color: var(--text-secondary, #9E9EA8); }
.ad-lead-booking { margin: 8px 0 6px; font-size: 13px; }
.ad-lead-booked { color: #34d399; }
.ad-lead-unbooked { color: var(--text-muted, #5C5C66); }
.ad-lead-outreach { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.ad-lead-outreach-head { font-size: 11px; letter-spacing: 0.02em; color: var(--text-muted, #5C5C66); }
.ad-lead-outreach-body {
  font-size: 13px; line-height: 1.45; color: var(--text-secondary, #9E9EA8);
  border-left: 2px solid var(--border, #1A1A1E); padding-left: 8px;
}
.ad-lead-outreach-none { font-size: 12px; color: var(--text-muted, #5C5C66); }
.ad-lead-ad { margin-top: 6px; font-size: 12px; color: var(--text-muted, #5C5C66); }
.ad-lead-open, .cold-call-open {
  display: inline-block; margin-top: 10px; font-size: 13px;
  color: var(--gold, #E8B931); text-decoration: none;
}
.ad-lead-open:hover, .cold-call-open:hover { text-decoration: underline; }

.cold-call-fit {
  flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--text-muted, #5C5C66);
}
.cold-call-fit.high { color: #34d399; }
.cold-call-fit.med { color: var(--gold, #E8B931); }
.cold-call-angle, .cold-call-whynow, .cold-call-why {
  margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--text-secondary, #9E9EA8);
}
.cold-call-pains { margin: 8px 0 0; padding-left: 18px; }
.cold-call-pains li {
  font-size: 12.5px; line-height: 1.5; color: var(--text-muted, #5C5C66); margin-bottom: 2px;
}
.ad-leads-more, .cold-call-more { display: block; width: 100%; margin: 6px 0 4px; }

/* Two words, not an icon.  See NAV_CLASSES in shared/header.js. */
.nav-work { font-weight: 600; }

/* CUSTOMERS — the third list, and today it has one row in it.

   The whole styling problem here is that a one-row list looks exactly like a list that
   failed to load.  So the row is WIDER and calmer than a lead row: this is a record you
   read before a meeting, not a queue you work down at speed, and making it look busy would
   be making it look like the other two screens for no reason. */
.customers-count { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary, #9E9EA8); }
/* The sentence that stops one row reading as a bug.  It is quiet on purpose. */
.customers-note { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted, #5C5C66); }
.customers-empty, .customers-warn {
  color: var(--text-muted, #5C5C66); font-size: 14px; line-height: 1.6; margin: 16px 0;
  max-width: 46rem;
}
.customers-warn { color: var(--gold, #E8B931); }
.customers-list { list-style: none; margin: 16px 0 0; padding: 0; }
.customer-row {
  padding: 16px; margin-bottom: 12px; cursor: pointer;
  background: var(--bg-elevated, #0C0C0F);
  border: 1px solid var(--border, #1A1A1E); border-radius: var(--radius, 8px);
}
.customer-row:hover { border-color: var(--gold-dim, #4A3A12); }
.customer-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.customer-name { font-size: 16px; color: var(--text, #E8E8EC); }
.customer-closed { flex-shrink: 0; font-size: 12px; color: var(--text-muted, #5C5C66); }
.customer-company { margin-top: 2px; font-size: 13px; color: var(--text-secondary, #9E9EA8); }
.customer-bought { margin: 10px 0 8px; font-size: 14px; line-height: 1.5; color: var(--text, #E8E8EC); }
.customer-bought-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted, #5C5C66); margin-right: 4px;
}
.customer-bought-missing { color: var(--text-muted, #5C5C66); font-style: italic; }
.customer-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.customer-tel, .customer-mail { color: var(--gold, #E8B931); text-decoration: none; }
.customer-tel:hover, .customer-mail:hover { text-decoration: underline; }
.customer-nophone { color: var(--text-muted, #5C5C66); }
/* NOT the red do-not-contact badge on the ad leads screen, and deliberately not shaped like
   it.  This flag was stamped by us four milliseconds after she bought, to keep a customer
   out of a cold-outreach ladder.  A human may ring her.  See the header of customers.js. */
.customer-suppressed {
  margin-top: 10px; padding: 6px 10px; border-radius: var(--radius-sm, 6px);
  font-size: 12px; line-height: 1.5;
  color: var(--text-secondary, #9E9EA8); background: rgba(255, 255, 255, 0.04);
}
.customer-last { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; }
.customer-last-head {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted, #5C5C66);
}
.customer-last-body { font-size: 13px; line-height: 1.5; color: var(--text-secondary, #9E9EA8); }
.customer-last-none { font-size: 13px; color: var(--text-muted, #5C5C66); }
.customer-open {
  display: inline-block; margin-top: 12px; font-size: 13px;
  color: var(--gold, #E8B931); text-decoration: none;
}
.customer-open:hover { text-decoration: underline; }

@media (max-width: 640px) {
  /* A phone holds one column.  The state badge drops under the name rather than squeezing
     it to three characters, and the fit score stays on the right where a caller's thumb
     already expects it. */
  .ad-lead-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ad-lead-row, .cold-call-row { padding: 12px 12px 10px; }
  .ad-lead-goal { font-size: 15px; }
  .ad-lead-tel, .cold-call-tel { font-size: 15px; }
  .customer-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .customer-tel { font-size: 15px; }
  /* Five thumb targets on a 320px screen: the labels must not wrap into two lines. */
  .mobile-tab { font-size: 10px; }
  .mobile-tab-label { white-space: nowrap; }
}
