:root {
  --primary: #A66445;
  --secondary: #F5F5DC;
  --accent: #800020;
  --dark: #191919;
  --light: #FFFFFA;

  --primary-soft: rgba(166, 100, 69, 0.12);
  --shadow: 0 8px 30px rgba(25, 25, 25, 0.08);
  --radius: 14px;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--secondary);
  color: var(--dark);
  line-height: 1.5;
  min-height: 100vh;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: var(--light);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--primary);
  color: var(--light);
  border-radius: 12px;
  font-family: "Fraunces", serif;
  font-size: 26px; font-weight: 600;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Fraunces", serif; font-size: 20px; letter-spacing: .3px; }
.brand-text span { font-size: 12px; color: var(--primary); letter-spacing: 1.5px; text-transform: uppercase; }
.tagline { color: rgba(255, 255, 250, 0.6); font-size: 14px; }

/* ---------- Nav tabs ---------- */
.nav-tabs { display: flex; gap: 6px; }
.nav-tab {
  background: transparent;
  color: rgba(255, 255, 250, 0.7);
  border: 1px solid rgba(255, 255, 250, 0.15);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.nav-tab:hover { color: var(--light); border-color: rgba(255, 255, 250, 0.4); }
.nav-tab.active { background: var(--primary); color: var(--light); border-color: var(--primary); }
.nav-badge {
  background: rgba(255, 255, 250, 0.18);
  color: var(--light);
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid; place-items: center;
}
.nav-tab.active .nav-badge { background: var(--accent); }

/* ---------- Layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 32px; }

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
}
.search-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 200px; }
.field label { font-size: 13px; font-weight: 600; color: var(--primary); }
.field input {
  padding: 13px 15px;
  border: 1.5px solid #e4ddc9;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--light);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: #8f5238; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--accent); color: var(--light); }

/* ---------- Summary bar ---------- */
.summary {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.summary-stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: "Fraunces", serif; font-size: 28px; color: var(--primary); line-height: 1; }
.stat-loc { font-family: "Fraunces", serif; font-size: 18px; color: var(--dark); max-width: 260px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9a8f78; margin-top: 4px; }

/* ---------- Results / lead cards ---------- */
.results { display: grid; gap: 16px; }
.lead-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  border-left: 5px solid var(--primary);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
}
.lead-card[data-priority="High"] { border-left-color: var(--accent); }
.lead-card[data-priority="Low"] { border-left-color: #c9bfa6; }

.lead-head h3 { font-family: "Fraunces", serif; font-size: 20px; margin-bottom: 4px; }
.lead-meta { font-size: 14px; color: #6b6256; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.lead-meta a { color: var(--primary); text-decoration: none; font-weight: 500; }
.lead-meta a:hover { text-decoration: underline; }
.lead-meta .muted { color: #b3a98f; }

.opp { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
.chip.revenue { background: rgba(128, 0, 32, .1); color: var(--accent); }
.chip.ghost { background: transparent; border: 1px solid #e4ddc9; color: #6b6256; text-decoration: none; }
.chip.tier { text-transform: uppercase; letter-spacing: .5px; }
.chip.tier.Premium { background: rgba(128, 0, 32, .12); color: var(--accent); }
.chip.tier.Standard { background: rgba(166, 100, 69, .14); color: var(--primary); }
.chip.tier.Basic { background: rgba(25, 25, 25, .08); color: #6b6256; }
.reasons { margin-top: 12px; font-size: 13px; color: #6b6256; list-style: none; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.reasons .pts {
  flex: none;
  font-weight: 700; font-size: 11px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  min-width: 34px; text-align: center;
}

/* score + priority block */
.lead-score { text-align: center; min-width: 92px; }
.score-ring {
  width: 64px; height: 64px; margin: 0 auto 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-size: 22px; font-weight: 600;
  color: var(--light);
  background: var(--primary);
}
.lead-card[data-priority="High"] .score-ring { background: var(--accent); }
.lead-card[data-priority="Low"] .score-ring { background: #b3a98f; }
.priority-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.priority-tag.High { color: var(--accent); }
.priority-tag.Medium { color: var(--primary); }
.priority-tag.Low { color: #9a8f78; }

/* ---------- States ---------- */
.hidden { display: none !important; }
.save-banner {
  position: sticky; top: 0; z-index: 100;
  background: #b84a2a; color: #fff;
  font-size: 13px; font-weight: 600; text-align: center;
  padding: 10px 16px;
}

.state {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 24px;
  text-align: center;
  color: #6b6256;
}
.state h2 { font-family: "Fraunces", serif; color: var(--dark); margin-bottom: 8px; }

.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state { border-left: 5px solid var(--accent); text-align: left; }
.error-state h2 { color: var(--accent); }

/* Add-to-pipeline button on search cards */
.btn-add {
  margin-top: 12px;
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 9px 14px;
  border-radius: 9px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-add:hover { background: #8f5238; }
.btn-add.added { background: transparent; color: #7a9a6b; border: 1px solid #cdd9c4; cursor: default; }

/* ---------- Pipeline: summary cards (Phase 3) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 3px solid var(--primary);
}
.card.accent { border-top-color: #7a9a6b; }
.card.lost { border-top-color: #b3a98f; }
.card.value { border-top-color: var(--accent); background: var(--dark); grid-column: span 2; }
.card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9a8f78; }
.card.value .card-label { color: rgba(255, 255, 250, 0.55); }
.card-num { font-family: "Fraunces", serif; font-size: 30px; line-height: 1; color: var(--dark); }
.card.value .card-num { color: var(--light); font-size: 26px; }
.card.accent .card-num { color: #5e7d50; }
.card.lost .card-num { color: #9a8f78; }
.card-sub { font-size: 11px; color: #9a8f78; margin-top: 4px; }

/* Lead temperature badge */
.temp-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 10px; border-radius: 999px;
}
.temp-badge.HOT  { background: #fbe4dc; color: #b84a2a; }
.temp-badge.WARM { background: #fbf0d6; color: #997400; }
.temp-badge.COLD { background: #e7eaed; color: #6b7280; }

/* Response rate by temperature */
.temp-breakdown {
  background: var(--light); border: 1px solid #ece5d3; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 24px;
}
.tb-title { font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.tb-sub { font-size: 12px; color: #9a8f78; margin-bottom: 14px; }
.tb-rows { display: flex; flex-direction: column; gap: 10px; }
.tb-row { display: flex; align-items: center; gap: 12px; }
.tb-row .temp-badge { width: 56px; text-align: center; flex-shrink: 0; }
.tb-bar-wrap { flex: 1; background: #f0ebdf; border-radius: 999px; height: 10px; overflow: hidden; }
.tb-bar { height: 100%; border-radius: 999px; transition: width .3s; }
.tb-bar.HOT  { background: #b84a2a; }
.tb-bar.WARM { background: #b58800; }
.tb-bar.COLD { background: #9aa0a8; }
.tb-stat { font-size: 12px; color: #6b6256; width: 96px; text-align: right; flex-shrink: 0; }

/* Contact strategy block (lead detail) */
.strategy-block {
  background: #f8f5ee; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.strategy-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.strategy-reason { font-size: 12px; color: #6b6256; }
.strategy-line { display: flex; gap: 8px; font-size: 13px; color: #4f4a40; margin-top: 4px; }
.strategy-label {
  flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--primary); width: 48px;
}

/* ---------- Pipeline: board ---------- */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.board-col {
  background: rgba(255, 255, 250, 0.55);
  border: 1px solid #e9e2cf;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 120px;
}
.col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #e9e2cf;
  margin-bottom: 12px;
}
.col-title { font-size: 13px; font-weight: 600; color: var(--dark); }
.col-count {
  font-size: 11px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; display: inline-grid; place-items: center;
}
.col-list { display: flex; flex-direction: column; gap: 10px; }
.col-empty { color: #c9bfa6; text-align: center; font-size: 13px; padding: 8px 0; }

/* Dashboard temperature cards — HOT commands attention */
.card.hot-card  { border-top: 3px solid #b84a2a; }
.card.warm-card { border-top: 3px solid #b58800; }
.card.cold-card { border-top: 3px solid #9aa0a8; }
.card.hot-card .card-num  { color: #b84a2a; }
.card.warm-card .card-num { color: #b58800; }
.card.cold-card .card-num { color: #6b7280; }

/* Pipeline toolbar: search + filters + bulk actions */
.pl-toolbar { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.pl-tools-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-search {
  flex: 1 1 240px; min-width: 200px; font-family: inherit; font-size: 13px;
  padding: 8px 12px; border: 1px solid #e0d8c4; border-radius: 8px; background: var(--light);
}
.pl-filter {
  font-family: inherit; font-size: 12px; padding: 7px 10px;
  border: 1px solid #e0d8c4; border-radius: 8px; background: var(--light); color: var(--dark);
}
.pl-score { font-size: 12px; color: #6b6256; display: flex; align-items: center; gap: 6px; }
.pl-score input { width: 64px; font-family: inherit; font-size: 12px; padding: 6px 8px; border: 1px solid #e0d8c4; border-radius: 8px; }
.pl-bulk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--primary-soft); border-radius: 10px; padding: 10px 14px;
}
.pl-bulk-count { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Temperature board (HOT | WARM | COLD), HOT visually dominant */
.board.temp-board { grid-auto-columns: minmax(260px, 1fr); }
.tcol { background: rgba(255,255,250,.55); border: 1px solid #e9e2cf; border-radius: var(--radius); padding: 12px; min-height: 140px; }
.tcol.HOT  { background: #fdf3ef; border-color: #f0d6cc; box-shadow: 0 4px 16px rgba(184,74,42,.08); }
.tcol.WARM { background: #fdf8ec; border-color: #f0e4c4; }
.tcol.COLD { background: #f4f5f6; opacity: .92; }
.tcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 12px; border-bottom: 1px solid #e9e2cf; margin-bottom: 12px; }
.tcol-count { font-size: 13px; font-weight: 700; color: #6b6256; }
.tcol-list { display: flex; flex-direction: column; gap: 10px; }

/* Cards by temperature */
.pcard { position: relative; }
.pcard-check { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; cursor: pointer; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pcard-activity { font-size: 11px; color: #9a8f78; margin-top: 4px; }
.pcard.HOT  { border-left-color: #b84a2a; }
.pcard.WARM { border-left-color: #b58800; }
.pcard.COLD { border-left-color: #c2c6cc; }
.pcard.HOT .pcard-score  { background: #b84a2a; }
.pcard.WARM .pcard-score { background: #b58800; }
.pcard.COLD { padding-top: 12px; }
.pcard.COLD .pcard-name { font-size: 13px; }

.pcard {
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(25, 25, 25, 0.06);
  border-left: 4px solid var(--primary);
  padding: 12px 13px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(25, 25, 25, 0.1); }
.pcard[data-priority="High"] { border-left-color: var(--accent); }
.pcard[data-priority="Low"] { border-left-color: #c9bfa6; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pcard-name { font-size: 14px; line-height: 1.3; }
.pcard-score {
  flex: none;
  font-family: "Fraunces", serif; font-size: 13px; font-weight: 600;
  color: var(--light); background: var(--primary);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
}
.pcard[data-priority="High"] .pcard-score { background: var(--accent); }
.pcard[data-priority="Low"] .pcard-score { background: #b3a98f; }
.pcard-value { font-weight: 700; color: var(--accent); font-size: 14px; margin: 8px 0 6px; }
.pcard .chip.tier { margin-bottom: 8px; }
.pcard-action { font-size: 12px; color: #6b6256; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard-action.muted { color: #b3a98f; }
.pcard-action-label { font-weight: 600; color: var(--primary); }

/* ---------- Follow-Up Center ---------- */
.followup {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.followup-head { margin-bottom: 18px; }
.followup-head h2 { font-family: "Fraunces", serif; font-size: 20px; color: var(--dark); }
.followup-head p { font-size: 13px; color: #9a8f78; margin-top: 2px; }
.followup-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.fu-col {
  border: 1px solid #e9e2cf;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 250, 0.6);
}
.fu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid #e9e2cf;
}
.fu-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.fu-col.overdue .fu-title { color: var(--accent); }
.fu-col.today .fu-title { color: var(--primary); }
.fu-col.upcoming .fu-title { color: #5e7d50; }
.fu-count {
  font-size: 12px; font-weight: 700;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.fu-col.overdue .fu-count { background: rgba(128, 0, 32, .12); color: var(--accent); }
.fu-col.upcoming .fu-count { background: rgba(94, 125, 80, .15); color: #5e7d50; }

.fu-list { display: flex; flex-direction: column; gap: 8px; }
.fu-empty { color: #c9bfa6; font-size: 13px; text-align: center; padding: 10px 0; }
.fu-item {
  background: var(--light);
  border-radius: 9px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 5px rgba(25, 25, 25, 0.05);
  padding: 10px 11px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s;
}
.fu-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(25, 25, 25, 0.1); }
.fu-item[data-priority="High"] { border-left-color: var(--accent); }
.fu-item[data-priority="Low"] { border-left-color: #c9bfa6; }
.fu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fu-name { font-size: 13px; line-height: 1.3; }
.fu-date { flex: none; font-size: 11px; font-weight: 700; color: #9a8f78; white-space: nowrap; }
.fu-col.overdue .fu-date { color: var(--accent); }
.fu-col.today .fu-date { color: var(--primary); }
.fu-action { font-size: 12px; color: #6b6256; margin: 5px 0 6px; }
.fu-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--primary); background: var(--primary-soft);
  padding: 2px 8px; border-radius: 999px;
}

@media (max-width: 720px) {
  .followup-cols { grid-template-columns: 1fr; }
}

/* ---------- Lead detail modal ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(25, 25, 25, 0.5);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  padding: 24px; z-index: 50;
}
.modal {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(25, 25, 25, 0.3);
  width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  font-size: 26px; line-height: 1; color: #9a8f78;
  cursor: pointer;
}
.modal-close:hover { color: var(--dark); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-head h2 { font-family: "Fraunces", serif; font-size: 24px; color: var(--dark); }
.modal-sub { color: #6b6256; font-size: 14px; margin-top: 4px; }
.detail-score { text-align: center; flex: none; }
.detail-score .score-ring { width: 56px; height: 56px; font-size: 20px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }

.modal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid #ece5d3;
}
.mfield { display: flex; flex-direction: column; gap: 6px; }
.mfield.full { grid-column: 1 / -1; }
.mfield span { font-size: 12px; font-weight: 600; color: var(--primary); }
.mfield select, .mfield input, .mfield textarea {
  padding: 11px 13px;
  border: 1.5px solid #e4ddc9;
  border-radius: 9px;
  font-family: inherit; font-size: 14px;
  background: var(--light); color: var(--dark);
  resize: vertical;
}
.mfield select:focus, .mfield input:focus, .mfield textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.modal-reasons { margin-top: 22px; }
.modal-reasons h4 { font-size: 13px; color: var(--primary); margin-bottom: 8px; }
/* ---------- Outreach block (in lead detail) ---------- */
.outreach-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ece5d3; }
.outreach-block h4 { font-size: 13px; color: var(--primary); margin-bottom: 12px; }
.ot-channel {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--primary-soft); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 14px;
}
.ot-channel-name { font-weight: 700; font-size: 14px; color: var(--primary); }
.ot-channel-why { font-size: 12px; color: #6b6256; }

.ot-msg {
  border: 1px solid #e9e2cf; border-radius: 10px;
  padding: 11px 13px; margin-bottom: 10px; background: var(--light);
}
.ot-msg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ot-msg-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); }
.ot-copy {
  background: transparent; border: 1px solid var(--primary); color: var(--primary);
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 3px 11px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.ot-copy:hover { background: var(--primary); color: var(--light); }
.ot-msg-body { font-size: 13px; color: #4f4a40; line-height: 1.5; white-space: pre-wrap; }

/* Outreach response-quality score */
.ot-quality {
  border: 1px solid #e9e2cf; border-radius: 10px;
  padding: 13px 14px; margin-bottom: 14px; background: #fbf9f3;
}
.ot-q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ot-q-score {
  font-family: "Fraunces", serif; font-size: 26px; line-height: 1; font-weight: 600;
}
.ot-q-score[data-level="high"] { color: #3a7d44; }
.ot-q-score[data-level="mid"]  { color: #b58800; }
.ot-q-score[data-level="low"]  { color: #b84a2a; }
.ot-q-headtext { display: flex; flex-direction: column; gap: 2px; }
.ot-q-label { font-size: 13px; font-weight: 700; color: var(--primary); }
.ot-q-sub { font-size: 11px; color: #9a8f78; }
.ot-q-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ot-q-dim { font-size: 11px; color: #6b6256; width: 96px; flex-shrink: 0; }
.ot-q-bar-wrap { flex: 1; background: #efe9da; border-radius: 999px; height: 7px; overflow: hidden; }
.ot-q-bar { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }
.ot-q-val { font-size: 11px; color: #6b6256; width: 26px; text-align: right; flex-shrink: 0; }
.ot-q-reason { font-size: 12px; color: #6b6256; line-height: 1.45; margin-top: 8px; }

.ot-next {
  display: flex; flex-direction: column; gap: 3px;
  border-left: 3px solid var(--accent); padding: 6px 0 6px 12px; margin: 14px 0 12px;
}
.ot-next-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }
.ot-next span:last-child { font-size: 13px; color: #4f4a40; }
.ot-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ot-social-label { font-size: 12px; font-weight: 600; color: #9a8f78; }

/* Confidence score */
.ot-confidence {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  background: #f8f5ee; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px;
}
.ot-conf-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9a8f78; }
.ot-conf-score { font-size: 16px; font-weight: 700; }
.ot-conf-score[data-level="high"] { color: #3a7d44; }
.ot-conf-score[data-level="mid"]  { color: #b58800; }
.ot-conf-score[data-level="low"]  { color: #b84a2a; }
.ot-conf-reason { font-size: 12px; color: #6b6256; }

/* Decision maker */
.ot-dm {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid #d6cdb8; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.ot-dm-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); }
.ot-dm-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ot-dm-info strong { font-size: 14px; color: #1e1a14; }
.ot-dm-role { font-size: 12px; color: #6b6256; }
.ot-dm-src { font-size: 11px; color: #9a8f78; text-decoration: none; }
.ot-dm-src:hover { text-decoration: underline; }

/* Enrichment loading state */
.ot-loading {
  font-size: 13px; color: #9a8f78; font-style: italic;
  padding: 10px 0; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ---------- Lead-detail tabs ---------- */
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid #ece5d3; margin: 18px 0 18px; padding-bottom: 0;
}
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #9a8f78;
  padding: 8px 10px; cursor: pointer; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* key/value rows + why lines used across the new tabs */
.kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f2ecde; font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv-label { flex: 0 0 150px; color: #9a8f78; font-weight: 600; }
.kv-value { color: #4f4a40; }
.kv-value.pos { color: #5e7d50; font-weight: 600; }
.kv-value.neg { color: #b84a2a; font-weight: 600; }
.kv-value.hl { color: var(--primary); font-weight: 700; }
.why-line { display: flex; gap: 8px; margin: 4px 0 14px; font-size: 12px; color: #6b6256; }
.why-label {
  flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--accent); padding-top: 1px;
}
.audit-note { font-size: 12px; color: #9a8f78; font-style: italic; margin-top: 10px; }

/* playbook / roadmap blocks */
.pb-block { margin-bottom: 16px; }
.pb-block h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 8px; }
.pb-body { font-size: 13px; color: #4f4a40; line-height: 1.55; }
.pb-list { margin: 0 0 0 18px; }
.pb-list li { font-size: 13px; color: #4f4a40; line-height: 1.5; margin-bottom: 5px; }
.pb-obj { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 8px; }
.pb-resp { font-size: 13px; color: #4f4a40; line-height: 1.5; margin-bottom: 4px; }

.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.modal-actions .spacer { flex: 1; }
.btn-text {
  background: none; border: none;
  color: var(--accent); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}
.saved-hint { color: #5e7d50; font-size: 13px; font-weight: 600; }

@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { justify-content: center; }
  .tagline { display: none; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-score { text-align: left; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .score-ring { margin: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
}

.card-num.multi-currency { font-size: 18px; line-height: 1.3; }

/* Pricing & ROI panel (strategy tab) */
.pricing-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ece5d3; }
.pricing-block h5 { font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.pricing-roi { font-size: 12.5px; color: #6b6256; line-height: 1.5; margin-top: 8px; font-style: italic; }

/* Website audit checklist */
.audit-score { display:flex; align-items:baseline; gap:10px; background:#f8f5ee; border-radius:8px; padding:10px 14px; margin:12px 0; }
.audit-score-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#9a8f78; }
.audit-score-num { font-size:20px; font-weight:700; font-family:"Fraunces",serif; }
.audit-score-num[data-level="high"]{ color:#3a7d44; } .audit-score-num[data-level="mid"]{ color:#b58800; } .audit-score-num[data-level="low"]{ color:#b84a2a; }
.audit-checks { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.audit-check { display:flex; gap:10px; align-items:flex-start; }
.ac-mark { flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; }
.audit-check.pass .ac-mark { background:#3a7d44; } .audit-check.fail .ac-mark { background:#b84a2a; }
.ac-label { display:block; font-weight:600; font-size:14px; }
.ac-detail { display:block; font-size:12.5px; color:#6b6256; }
.ac-fix { display:block; font-size:12px; color:var(--primary); margin-top:2px; }
.audit-sub { font-size:13px; color:var(--primary); margin:6px 0 8px; }
.audit-fixes { margin:0 0 12px 18px; font-size:13.5px; color:#4f4a40; }
.audit-fixes li { margin-bottom:5px; }

/* ---------- Funnel-stage Kanban (Phase 7) ---------- */
.board.funnel-board { grid-auto-columns: minmax(220px, 1fr); }
.fcol { background: rgba(255,255,250,.6); border: 1px solid #e9e2cf; border-radius: var(--radius); padding: 12px; min-height: 140px; }
.fcol.won  { background: #f1f7f0; border-color: #cfe3cb; }
.fcol.lost { background: #f4f5f6; opacity: .9; }
.fcol-head { padding: 2px 2px 10px; border-bottom: 1px solid #e9e2cf; margin-bottom: 12px; }
.fcol-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fcol-title { font-size: 13px; font-weight: 700; color: var(--dark); }
.fcol-count { font-size: 12px; font-weight: 700; color: #6b6256; background: var(--primary-soft); border-radius: 999px; min-width: 22px; height: 20px; padding: 0 7px; display: inline-grid; place-items: center; }
.fcol.won .fcol-count { background: rgba(58,125,68,.15); color: #3a7d44; }
.fcol-value { display: block; font-size: 12px; color: #9a8f78; margin-top: 4px; font-weight: 600; }
.fcol-list { display: flex; flex-direction: column; gap: 10px; }

/* card sub-row: temperature badge + value */
.pcard-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 6px; }
.pcard-value-inline { font-family: "Fraunces", serif; font-size: 15px; font-weight: 600; color: var(--dark); }
.pcard .temp-badge { font-size: 10px; padding: 2px 8px; }

/* Revenue-leak (ROI) panel */
.leak-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ece5d3; }
.leak-block h5 { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.leak-eq { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.leak-part { background: #f8f5ee; border-radius: 8px; padding: 10px 14px; text-align: center; flex: 1; min-width: 86px; }
.leak-big { display: block; font-family: "Fraunces", serif; font-size: 20px; font-weight: 600; color: var(--dark); }
.leak-part:last-of-type .leak-big { color: var(--accent); }
.leak-lab { display: block; font-size: 11px; color: #9a8f78; margin-top: 3px; }
.leak-op { align-self: center; font-size: 18px; font-weight: 700; color: #b3a98f; }
.leak-year { margin-top: 12px; font-family: "Fraunces", serif; font-size: 17px; color: var(--accent); }
.leak-basis { font-size: 12.5px; color: #6b6256; margin-top: 8px; }
.leak-note { font-size: 11.5px; color: #9a8f78; font-style: italic; margin-top: 6px; }

/* Proposal generator */
.prop-head { border-bottom: 2px solid var(--primary); padding-bottom: 10px; margin-bottom: 14px; }
.prop-title { font-family: "Fraunces", serif; font-size: 22px; color: var(--primary); }
.prop-for { font-size: 13px; color: #9a8f78; margin-top: 2px; }
.prop-summary { font-size: 15px; color: #4f4a40; margin-bottom: 8px; }
.prop-sec { font-size: 13px; color: var(--accent); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .5px; }
.prop-list { margin: 0 0 4px 18px; font-size: 14px; color: #4f4a40; }
.prop-list li { margin-bottom: 5px; }
.prop-body { font-size: 14.5px; color: #4f4a40; }
.prop-timeline { display: flex; flex-direction: column; gap: 8px; }
.prop-tl-row { display: flex; gap: 12px; }
.prop-tl-phase { flex: none; width: 180px; font-weight: 600; font-size: 13.5px; color: var(--dark); }
.prop-tl-detail { font-size: 13.5px; color: #6b6256; }
.prop-invest { background: #f8f5ee; border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--dark); display: grid; gap: 4px; }
.prop-next { margin-top: 16px; border-left: 3px solid var(--accent); padding: 6px 0 6px 12px; font-size: 14.5px; color: #4f4a40; }
.prop-note { font-size: 11.5px; color: #9a8f78; font-style: italic; margin: 12px 0 14px; }
@media(max-width:600px){ .prop-tl-row{flex-direction:column;gap:2px} .prop-tl-phase{width:auto} }

/* Pipeline segment tabs (HOT/WARM/COLD/WON/LOST) */
.pl-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-bottom: 22px; }
.pl-seg { text-align: left; background: var(--light); border: 1px solid #e9e2cf; border-radius: 12px; padding: 14px 16px; cursor: pointer; font-family: inherit; transition: border-color .15s, transform .05s, box-shadow .15s; }
.pl-seg:hover { box-shadow: var(--shadow); }
.pl-seg.active { border-width: 2px; }
.pl-seg.HOT.active { border-color: #b84a2a; } .pl-seg.WARM.active { border-color: #b58800; } .pl-seg.COLD.active { border-color: #8a8f98; }
.pl-seg.won.active { border-color: #3a7d44; } .pl-seg.lost.active { border-color: #9a8f78; }
.pl-seg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pl-seg-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #6b6256; }
.pl-seg.HOT .pl-seg-label { color: #b84a2a; } .pl-seg.WARM .pl-seg-label { color: #b58800; } .pl-seg.won .pl-seg-label { color: #3a7d44; }
.pl-seg-count { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; color: var(--dark); }
.pl-seg-rev { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 6px; }
.pl-seg-close { font-size: 11px; color: #9a8f78; margin-top: 2px; }
@media(max-width:760px){ .pl-segments{grid-auto-flow:row;grid-template-columns:repeat(2,1fr);grid-auto-columns:unset} }

/* Revenue Opportunity card (centerpiece, overview tab) */
.rev-card { background: linear-gradient(135deg, #2b2620, #3a2f23); color: #f3ede0; border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.rev-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.rev-figs { display: flex; gap: 28px; flex-wrap: wrap; margin: 12px 0 6px; }
.rev-fig-val { display: block; font-family: "Fraunces", serif; font-size: 26px; font-weight: 600; color: #fff; line-height: 1.1; }
.rev-fig-lab { display: block; font-size: 12px; color: #b9ad99; margin-top: 3px; }
.rev-conf { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.rev-conf-lab { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #b9ad99; }
.rev-conf-val { font-size: 12px; font-weight: 700; color: #f3ede0; }
.rev-breakdown { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.rev-bd-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.rev-bd-factor { color: #d9cfbc; }
.rev-bd-range { color: #fff; font-weight: 600; white-space: nowrap; }
.rev-note { font-size: 11px; color: #9a8f78; font-style: italic; margin-top: 12px; }

/* ============================ BRAND & SOCIAL ============================ */
.social-form { display: flex; flex-direction: column; gap: 18px; }
.soc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.soc-field { display: flex; flex-direction: column; gap: 7px; }
.soc-field.soc-full { grid-column: 1 / -1; }
.soc-field > span { font-size: 13px; font-weight: 600; color: var(--primary); }
.soc-field > span em { color: var(--accent); font-style: normal; }
.soc-field > span small { color: #9a8f78; font-weight: 500; }
.soc-field input, .soc-field select, .soc-field textarea {
  padding: 12px 14px; border: 1.5px solid #e4ddc9; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--light); width: 100%;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.soc-field input:focus, .soc-field select:focus, .soc-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.soc-story-opt { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  border-top: 1px dashed #e4ddc9; padding-top: 16px; }
.soc-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--dark); cursor: pointer; }
.soc-check input { width: 17px; height: 17px; accent-color: var(--primary); }

/* Output export toolbar */
.soc-report-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--dark); color: var(--light); border-radius: var(--radius); padding: 18px 22px; flex-wrap: wrap; }
.soc-report-title { font-family: "Fraunces", serif; font-size: 19px; color: var(--light); }
.soc-report-meta { font-size: 12.5px; color: rgba(255,255,250,.6); margin-top: 2px; }
.soc-export { padding: 11px 20px; }

/* Output cards */
.soc-card { background: var(--light); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 26px; }
.soc-h { font-family: "Fraunces", serif; font-size: 20px; color: var(--dark); margin-bottom: 6px; }
.soc-sub { color: #6b6256; font-size: 14px; margin-bottom: 16px; }
.soc-tip { color: #6b6256; font-size: 13px; margin-top: 12px; background: #f8f5ee; border-radius: 8px; padding: 10px 12px; }

/* Bio variants */
.soc-bio { border: 1.5px solid #ece5d5; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.soc-bio-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.soc-bio-name { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); }
.soc-bio-len { font-size: 12px; font-weight: 600; color: #3a7d44; }
.soc-bio-len.over { color: #b84a2a; }
.soc-bio-text { font-size: 15px; line-height: 1.5; color: var(--dark); white-space: pre-wrap; }
.soc-bio-why { font-size: 12.5px; color: #8a8073; margin: 6px 0 10px; }
.soc-copy { padding: 7px 14px; font-size: 13px; }

/* Strategy pillars */
.soc-pillar { margin-bottom: 16px; }
.soc-pillar-top { display: flex; justify-content: space-between; align-items: baseline; }
.soc-pillar-name { font-weight: 700; font-size: 14px; color: var(--dark); }
.soc-pillar-pct { font-family: "Fraunces", serif; font-weight: 600; color: var(--primary); }
.soc-bar { height: 8px; background: #efe9da; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.soc-bar-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.soc-pillar-purpose { font-size: 13.5px; color: #574f44; }
.soc-pillar-formats { font-size: 12.5px; color: #9a8f78; margin-top: 2px; }

/* Calendar */
.soc-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.soc-week { font-family: "Fraunces", serif; font-size: 15px; color: var(--primary); margin: 16px 0 8px; }
.soc-post { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #f0ebdd; }
.soc-post-day { font-weight: 700; font-size: 12px; color: #fff; background: var(--dark); border-radius: 7px;
  padding: 5px 0; width: 44px; text-align: center; height: fit-content; flex-shrink: 0; }
.soc-post-body { flex: 1; }
.soc-post-tags { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.soc-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  border-radius: 999px; padding: 2px 9px; }
.soc-tag-format { background: #efe9da; color: #6b6256; }
.soc-tag.pillar-educate { background: #e3eef0; color: #2e6b75; }
.soc-tag.pillar-proof { background: #e6f0e6; color: #3a7d44; }
.soc-tag.pillar-connect { background: #f3e9e0; color: #a66445; }
.soc-tag.pillar-offer { background: #f6e0e0; color: var(--accent); }
.soc-tag.pillar-authority { background: #ece3f0; color: #6b4a8a; }
.soc-post-hook { font-size: 14px; color: var(--dark); font-weight: 500; }
.soc-post-cta { font-size: 12.5px; color: #8a8073; margin-top: 2px; }

/* Brand story */
.soc-story { padding: 12px 0; border-top: 1px solid #f0ebdd; }
.soc-story-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--primary); margin-bottom: 4px; }
.soc-story-text { font-size: 14.5px; line-height: 1.55; color: #3a342c; }

/* Principles */
.soc-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.soc-pgroup-title { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.soc-pgroup ul { padding-left: 18px; }
.soc-pgroup li { font-size: 13.5px; color: #574f44; margin-bottom: 5px; line-height: 1.45; }

/* ============================== COPY STUDIO ============================= */
.copy-picker { border-top: 1px dashed #e4ddc9; padding-top: 16px; }
.copy-picker-title { font-size: 13px; font-weight: 600; color: var(--primary); display: block; margin-bottom: 12px; }
.copy-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.copy-pick-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9a8f78; margin-bottom: 8px; }
.copy-pick { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.copy-pick input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.copy-pick span { display: flex; flex-direction: column; }
.copy-pick strong { font-size: 13px; color: var(--dark); }
.copy-pick small { font-size: 11.5px; color: #9a8f78; line-height: 1.35; }

.copy-block { padding: 9px 0; border-top: 1px solid #f0ebdd; }
.copy-block:first-child { border-top: none; }
.copy-block-label { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: 4px; }
.copy-headline { font-family: "Fraunces", serif; font-size: 19px; color: var(--dark); line-height: 1.3; }
.copy-text { font-size: 14.5px; color: #3a342c; line-height: 1.55; }
.copy-list { padding-left: 18px; margin: 2px 0; }
.copy-list li { font-size: 14px; color: #3a342c; margin-bottom: 4px; }
.copy-cta { display: inline-block; background: var(--primary); color: var(--light); font-weight: 600; font-size: 13.5px; border-radius: 999px; padding: 6px 16px; }
.copy-section { font-family: "Fraunces", serif; font-size: 14px; color: var(--accent); margin: 14px 0 2px; }

@media (max-width: 900px) { .copy-assets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .soc-grid, .soc-principles { grid-template-columns: 1fr; }
  .copy-assets { grid-template-columns: 1fr; }
}

/* Discovered contact email — make it pop (the thing you act on) */
.chip.email { background: rgba(58,125,68,.14); color: #2f6b3a; font-weight: 700; text-decoration: none; }
.chip.email:hover { background: rgba(58,125,68,.22); }

/* 5-touch sequence cards — subtle left accent so the cadence reads as a series */
.ot-msg.seq-card { border-left: 3px solid var(--primary); }

/* ============================================================
   BUSINESS GROWTH AUDIT — the core value engine's report tab
   ============================================================ */
.ga-loading { display: grid; place-items: center; gap: 12px; padding: 48px 0; color: #8a8073; }

/* Executive header */
.ga-head { display: flex; gap: 18px; align-items: center; background: var(--dark); color: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.ga-ring { width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 5px solid #3a7d44; }
.ga-ring.mid { border-color: #d6a72e; } .ga-ring.low { border-color: #e0663f; } .ga-ring.na { border-color: #6b6256; }
.ga-ring-num { font-size: 30px; font-weight: 800; line-height: 1; }
.ga-ring-lab { font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: #b9ad99; }
.ga-head-body { flex: 1; }
.ga-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ga-title { margin: 0; font-size: 19px; }
.ga-priority { font-size: 11px; font-weight: 800; letter-spacing: .5px; border-radius: 99px; padding: 4px 12px; }
.ga-priority.hot { background: #e0663f; } .ga-priority.medium { background: #d6a72e; color: #191919; } .ga-priority.low { background: #3a7d44; }
.ga-summary { margin: 8px 0 0; color: #d8cfc0; font-size: 13.5px; line-height: 1.5; }

/* Action bar */
.ga-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ga-actions .btn-primary, .ga-actions .btn-outline { text-decoration: none; display: inline-flex; align-items: center; }
.ga-attach-note { font-size: 11.5px; color: #9a8f78; margin: 0 0 14px; }

/* Audit status tracking */
.ga-track { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ga-track-step { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9a8f78; background: #f4efe6; border-radius: 99px; padding: 4px 10px; }
.ga-track-step.done { background: rgba(58,125,68,.14); color: #2f6b3a; font-weight: 700; }
.ga-track-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-content: center; font-size: 9px; }
.ga-track-step.done .ga-track-dot { background: #3a7d44; color: #fff; border-color: #3a7d44; }

/* Scorecard grid */
.ga-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.ga-card { position: relative; border: 1px solid #ece5d5; border-radius: 12px; padding: 12px 8px; text-align: center; }
.ga-card-score { display: block; font-size: 24px; font-weight: 800; color: #6b6256; }
.ga-card.high .ga-card-score { color: #3a7d44; } .ga-card.mid .ga-card-score { color: #b58800; } .ga-card.low .ga-card-score { color: #b84a2a; }
.ga-card-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: #8a8073; }
.ga-card-tag { position: absolute; top: 6px; right: 6px; font-size: 8px; text-transform: uppercase; background: #efe9da; color: #9a8f78; border-radius: 99px; padding: 1px 6px; }

/* Revenue opportunity */
.ga-rev { background: linear-gradient(135deg, #191919, #33261f); color: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.ga-rev-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: #b9ad99; }
.ga-rev-figs { display: flex; gap: 26px; flex-wrap: wrap; margin: 8px 0 10px; }
.ga-rev-val { display: block; font-size: 22px; font-weight: 800; }
.ga-rev-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #b9ad99; }
.ga-rev-framing { margin: 0; font-size: 12.5px; color: #d8cfc0; line-height: 1.55; }

/* Category detail */
.ga-cat { border: 1px solid #ece5d5; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ga-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ga-cat-title { font-weight: 700; font-size: 14px; }
.ga-cat-score { font-size: 12px; font-weight: 800; color: #6b6256; }
.ga-cat-score.high { color: #3a7d44; } .ga-cat-score.mid { color: #b58800; } .ga-cat-score.low { color: #b84a2a; }
.ga-find { display: flex; gap: 9px; padding: 6px 0; border-top: 1px solid #f4efe6; font-size: 13px; }
.ga-find-mk { font-weight: 800; width: 16px; flex: none; text-align: center; }
.ga-find.good .ga-find-mk { color: #3a7d44; } .ga-find.gap .ga-find-mk { color: #b84a2a; } .ga-find.na .ga-find-mk { color: #b9ad99; }
.ga-find-text { color: #4a443b; }
.ga-find-flag { display: inline-block; margin-left: 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; background: #f3e9e0; color: #A66445; border-radius: 99px; padding: 1px 7px; vertical-align: middle; }
.ga-cat-note { margin: 8px 0 0; font-size: 11.5px; color: #9a8f78; font-style: italic; }

/* SWOT */
.ga-sec-title { margin: 22px 0 10px; font-size: 15px; color: var(--primary); }
.ga-swot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.ga-swot-q { border: 1px solid #ece5d5; border-radius: 12px; padding: 10px 14px; }
.ga-swot-q h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ga-swot-q.s h5 { color: #3a7d44; } .ga-swot-q.w h5 { color: #b84a2a; } .ga-swot-q.o h5 { color: #A66445; } .ga-swot-q.r h5 { color: #800020; }
.ga-swot-q ul { margin: 0; padding-left: 18px; } .ga-swot-q li { font-size: 12.5px; color: #574f44; margin-bottom: 4px; }

/* Opportunities + services */
.ga-opp, .ga-svc { border: 1px solid #ece5d5; border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; }
.ga-opp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ga-opp-title { font-weight: 700; font-size: 13.5px; }
.ga-opp-meta { font-size: 11px; color: #A66445; font-weight: 700; white-space: nowrap; }
.ga-opp-benefit, .ga-svc-line { margin: 4px 0 0; font-size: 12.5px; color: #574f44; }
.ga-foot-note { margin: 20px 0 4px; font-size: 11px; color: #9a8f78; border-top: 1px solid #E6DDCA; padding-top: 12px; }

@media (max-width: 640px) {
  .ga-grid { grid-template-columns: repeat(2, 1fr); }
  .ga-swot { grid-template-columns: 1fr; }
  .ga-head { flex-direction: column; text-align: center; }
}

/* Priority matrix */
.ga-matrix { border: 1px solid #ece5d5; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.ga-pm-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #f4efe6; font-size: 13px; }
.ga-pm-row:first-child { border-top: none; }
.ga-pm-sev { flex: none; width: 66px; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; border-radius: 99px; padding: 3px 0; color: #fff; }
.ga-pm-sev.critical { background: #b84a2a; } .ga-pm-sev.high { background: #c47a1e; } .ga-pm-sev.medium { background: #b58800; } .ga-pm-sev.low { background: #6b8f4a; }
.ga-pm-title { flex: 1; color: #3a352e; font-weight: 600; }
.ga-pm-area { flex: none; font-size: 11px; color: #9a8f78; }

/* Growth Audit quick-action button on pipeline cards */
.pcard-audit-btn { margin-top: 10px; width: 100%; background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(166,100,69,.25); border-radius: 8px; padding: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s; }
.pcard-audit-btn:hover { background: rgba(166,100,69,.2); }

@media (max-width: 640px) {
  .ga-pm-area { display: none; }
}

/* ============================================================
   AUDIT REQUESTS dashboard — inbound public-audit funnel
   ============================================================ */
.audits-head { margin-bottom: 18px; }
.audits-head h2 { margin: 0 0 4px; font-size: 22px; }
.audits-head p { margin: 0; color: #8a8073; font-size: 14px; max-width: 720px; }

/* Funnel summary strip */
.audits-funnel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 22px; }
.af-cell { border: 1px solid #ece5d5; border-radius: 10px; padding: 12px 8px; text-align: center; background: #fff; }
.af-cell.won { border-color: rgba(58,125,68,.4); background: rgba(58,125,68,.06); }
.af-cell.lost { border-color: rgba(184,74,42,.35); background: rgba(184,74,42,.05); }
.af-count { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.af-cell.won .af-count { color: #3a7d44; } .af-cell.lost .af-count { color: #b84a2a; }
.af-label { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: #8a8073; }

/* Request cards */
.audits-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.areq-card { border: 1px solid #ece5d5; border-radius: 14px; padding: 16px; background: #fff; box-shadow: var(--shadow); }
.areq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.areq-name { font-weight: 700; font-size: 16px; }
.areq-sub { font-size: 12px; color: #9a8f78; margin-top: 2px; }
.areq-stage { flex: none; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; border-radius: 99px; padding: 4px 10px; background: #efe9da; color: #6b6256; }
.areq-stage.s-requested { background: #efe9da; color: #6b6256; }
.areq-stage.s-audit-generated { background: #f3e9e0; color: #A66445; }
.areq-stage.s-audit-sent { background: rgba(166,100,69,.16); color: #A66445; }
.areq-stage.s-follow-up-scheduled { background: #fff3d6; color: #b58800; }
.areq-stage.s-discovery-booked { background: #e3eefb; color: #2f6bb0; }
.areq-stage.s-proposal-sent { background: #e8e0f5; color: #6b4aa0; }
.areq-stage.s-won { background: rgba(58,125,68,.16); color: #2f6b3a; }
.areq-stage.s-lost { background: rgba(184,74,42,.14); color: #b84a2a; }
.areq-contact { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.areq-chip { font-size: 11.5px; background: #f4efe6; color: #574f44; border-radius: 99px; padding: 3px 9px; }
.areq-chip.ghost { background: #fff; border: 1px solid #ece5d5; color: #8a8073; }
.areq-rev { display: flex; align-items: baseline; gap: 8px; padding: 8px 11px; background: var(--dark); color: #fff; border-radius: 9px; margin-bottom: 12px; }
.areq-rev-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #b9ad99; }
.areq-rev-val { font-size: 16px; font-weight: 800; }
.areq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-outline.sm { font-size: 12px; padding: 7px 11px; text-decoration: none; display: inline-flex; align-items: center; }
.areq-select { font-size: 12px; padding: 7px 9px; border: 1px solid #ece5d5; border-radius: 8px; background: #fff; color: #574f44; margin-left: auto; }
.audits-empty { text-align: center; padding: 48px 20px; color: #8a8073; grid-column: 1 / -1; }
.audits-empty h3 { margin: 0 0 6px; color: #3a352e; }
.audits-url { display: inline-block; margin-top: 8px; background: #f4efe6; padding: 8px 14px; border-radius: 8px; font-size: 13px; color: var(--primary); }

@media (max-width: 760px) {
  .audits-funnel { grid-template-columns: repeat(4, 1fr); }
}

/* Local ranking input panel in the lead detail */
.rank-panel { margin-top: 14px; border: 1px solid #ece5d5; border-radius: 10px; padding: 4px 14px; background: #faf7f1; }
.rank-panel > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--primary); padding: 8px 0; list-style: none; }
.rank-panel > summary::-webkit-details-marker { display: none; }
.rank-panel[open] > summary { border-bottom: 1px solid #f0ebdd; margin-bottom: 8px; }
.rank-hint { font-size: 12px; color: #9a8f78; margin: 4px 0 8px; }

/* Growth Audit — ready-to-send message + optional ranking editor */
.ga-send { border: 1px solid rgba(58,125,68,.3); background: rgba(58,125,68,.05); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.ga-dm-box { width: 100%; margin-top: 8px; border: 1px solid #dcd3c2; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 13px; line-height: 1.5; color: #3a352e; background: #fffef9; resize: vertical; }
.ga-send-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ga-rank { border: 1px solid #ece5d5; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.ga-rank > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--primary); list-style: none; }
.ga-rank > summary::-webkit-details-marker { display: none; }
.ga-rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.ga-rank-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #8a8073; }
.ga-rank-field input { border: 1px solid #dcd3c2; border-radius: 7px; padding: 7px 9px; font: inherit; font-size: 13px; }
@media (max-width: 640px) { .ga-rank-grid { grid-template-columns: 1fr; } }
