:root {
  --brand-primary: #5a60e1;
  --brand-secondary: #313131;
  --brand-accent-blue: #5960ff;
  --brand-gray-mid: #727272;
  --brand-gray-light: #e2e7eb;
  --brand-coral: #ff7a5a;
  --brand-white: #ffffff;
  --brand-deep-violet: #5b50d6;
  --brand-soft-lavender: #7b72e8;
  --brand-deep-navy: #0E1A2A;
  --brand-dark-slate: #1a2b3c;

  --tint: #f1f2fd;
  --page: #f6f7f9;
  --text-muted: #636363;
  --coral-text: #c2452a;
  --coral-tint: #fff1ed;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--brand-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
h1 { font-weight: 800; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; color: var(--brand-primary); text-wrap: balance; }
h2 { font-weight: 800; font-size: 16px; letter-spacing: .04em; color: var(--brand-primary); }
h3 { font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
p { margin: 0; }
.muted { color: var(--text-muted); }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; background: var(--brand-white); border-bottom: 1px solid var(--brand-gray-light);
  position: sticky; top: 0; z-index: 5;
}
.topbar-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { height: 38px; width: auto; display: block; }
.product { font-family: var(--font-heading); font-weight: 500; font-size: 15px; padding-left: 14px; border-left: 1px solid var(--brand-gray-light); white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.badge-demo { font-size: 13px; color: var(--coral-text); background: var(--coral-tint); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
.card { background: var(--brand-white); border: 1px solid var(--brand-gray-light); border-radius: var(--radius); padding: 24px; }

/* Buttons */
.btn { font-family: var(--font-heading); font-weight: 500; font-size: 14px; border-radius: 8px; padding: 9px 16px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-deep-violet); }
.btn-ghost { background: #fff; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-ghost:hover { background: var(--tint); }
.btn-lg { font-size: 16px; padding: 13px 20px; width: 100%; }
.btn:focus-visible, .tab:focus-visible, .account:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--brand-soft-lavender); outline-offset: 2px; }

/* Set-up */
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.setup-intro { padding-top: 16px; }
.setup-intro > p { margin-top: 16px; font-size: 18px; color: var(--text-muted); max-width: 52ch; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--text-muted); max-width: 52ch; }
.steps li strong { color: var(--brand-secondary); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint); color: var(--brand-primary); font-family: var(--font-heading); font-weight: 800;
  display: grid; place-items: center;
}

form.card { display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 700; font-size: 14px; padding: 0; }
.field > legend { margin-bottom: 6px; }
.field small { color: var(--text-muted); font-size: 13px; }
input[type=text], input[type=number], select {
  font: inherit; color: inherit; width: 100%; padding: 10px 12px; background: #fff;
  border: 1px solid #c5ccd3; border-radius: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; padding: 7px 14px; border: 1px solid #c5ccd3; border-radius: 999px; font-size: 14px; background: #fff; }
.chips input:checked + span { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--brand-soft-lavender); outline-offset: 2px; }
.form-error { color: var(--coral-text); font-size: 14px; }

/* Running */
.run-card { max-width: 620px; margin: 48px auto; }
.run-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.run-steps li { display: flex; gap: 12px; align-items: baseline; color: #9aa1a8; }
.run-steps li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; transform: translateY(1px); }
.run-steps li.active { color: var(--brand-secondary); }
.run-steps li.active::before { border-color: var(--brand-primary); border-top-color: transparent; animation: spin .7s linear infinite; }
.run-steps li.done { color: var(--brand-secondary); }
.run-steps li.done::before { background: var(--brand-primary); border-color: var(--brand-primary); }
.run-steps .result { margin-left: auto; font-weight: 700; color: var(--brand-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes spin { to { transform: translateY(1px) rotate(360deg); } }

/* Results */
.results-head p { margin-top: 8px; color: var(--text-muted); font-size: 17px; }

.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 28px; }
.funnel-step { background: #fff; border: 1px solid var(--brand-gray-light); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.funnel-step .num { font-family: var(--font-heading); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.funnel-step .lbl { font-weight: 700; margin-top: 4px; }
.funnel-step .sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.funnel-step.final { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.funnel-step.final .num, .funnel-step.final .sub { color: #fff; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--brand-gray-light); }
.tab { font-family: var(--font-heading); font-weight: 500; font-size: 15px; background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab[aria-selected=true] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab .count { display: inline-block; min-width: 22px; text-align: center; font-size: 12px; background: var(--brand-gray-light); color: var(--brand-secondary); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tab[aria-selected=true] .count { background: var(--brand-primary); color: #fff; }
.tab-note { margin: 12px 0 16px; color: var(--text-muted); }

.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.account-list { display: grid; gap: 8px; }
.account { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--brand-gray-light); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.account:hover { border-color: var(--brand-soft-lavender); }
.account[aria-current=true] { border-color: var(--brand-primary); box-shadow: inset 4px 0 0 var(--brand-primary); background: var(--tint); }
.account .name { font-weight: 700; }
.account .meta { grid-column: 1; font-size: 13px; color: var(--text-muted); }
.account .score { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.empty { padding: 20px; color: var(--text-muted); background: #fff; border: 1px dashed #c5ccd3; border-radius: var(--radius); }

.score { font-family: var(--font-heading); font-weight: 800; font-size: 15px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.score.hot { background: var(--brand-coral); color: var(--brand-deep-navy); }
.score.warm { background: var(--tint); color: var(--brand-primary); border: 1px solid #cfd1f6; }

.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .title { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.2; }
.detail-head .meta { color: var(--text-muted); margin-top: 2px; }
.temp { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.detail-section { margin-top: 22px; }
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.signals li { display: grid; grid-template-columns: 124px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 12px; background: var(--page); border-radius: 8px; }
.signals .type { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-primary); }
.signals .when { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.angle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.angle > div { border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 14px; }
.angle > div.pain { border-color: #ffd0c4; background: var(--coral-tint); }
.angle > div.pain h3 { color: var(--coral-text); }

.contact { border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 16px; margin-top: 10px; }
.contact-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.contact .who { font-weight: 700; }
.contact .role { color: var(--text-muted); }
.channel { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-primary); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.contact .approach { margin-top: 8px; }
.contact .approach b { color: var(--brand-secondary); }
.message { margin-top: 10px; padding: 12px 14px; background: var(--page); border-left: 3px solid var(--brand-primary); border-radius: 0 8px 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { font-size: 13px; padding: 6px 12px; }
.detail-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--brand-gray-light); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.detail-footer .done { color: var(--brand-primary); font-weight: 700; }

/* Pipeline */
.pipeline, .next { margin-top: 28px; }
.pipeline .muted, .next p { margin-top: 6px; }
.next p { color: var(--text-muted); max-width: 80ch; }
.pipeline-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; margin-top: 18px; align-items: start; }
.pipeline-inputs { display: grid; gap: 12px; }
.pipeline-inputs .field { grid-template-columns: 1fr 120px; align-items: center; }
.pipeline-inputs .field > span { font-weight: 400; }
.pipeline-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--page); border-radius: 8px; padding: 14px 16px; }
.stat .num { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 14px; color: var(--text-muted); }
.stat.hero { grid-column: 1 / -1; background: var(--brand-primary); color: #fff; }
.stat.hero .num { font-size: 38px; }
.stat.hero .lbl { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--brand-deep-navy); color: #fff; padding: 12px 18px; border-radius: 8px; max-width: min(560px, calc(100vw - 32px)); z-index: 10; box-shadow: 0 6px 24px rgba(14, 26, 42, .25); }

@media (max-width: 900px) {
  .setup-grid, .workspace, .pipeline-grid { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .angle { grid-template-columns: 1fr; }
  .account-list { grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 560px) {
  main { padding: 20px 16px 48px; }
  .topbar { padding: 10px 16px; }
  .product, .badge-demo { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .signals li { grid-template-columns: 1fr; gap: 2px; }
  .pipeline-out { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .run-steps li.active::before { animation: none; }
}

/* HubSpot-style workspace */
.crm { background: #fff; border: 1px solid var(--brand-gray-light); border-radius: var(--radius); overflow: hidden; }
.crm-bar { background: var(--brand-deep-navy); padding: 12px 20px 0; }
.crm-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #aeb6c2; margin-bottom: 6px; }
.crm-bar .tabs { border-bottom: 0; flex-wrap: wrap; }
.crm-bar .tab { color: #d5dae1; margin-bottom: 0; }
.crm-bar .tab[aria-selected=true] { color: #fff; border-bottom-color: var(--brand-coral); }
.crm-bar .tab .count { background: rgba(255,255,255,.16); color: #fff; }
.crm-body { padding: 20px; }
.view-note { color: var(--text-muted); margin-bottom: 14px; max-width: 90ch; }

.table-wrap { overflow-x: auto; border: 1px solid var(--brand-gray-light); border-radius: 8px; }
.crm-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.crm-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); background: var(--page); padding: 10px 14px; white-space: nowrap; }
.crm-table td { padding: 12px 14px; border-top: 1px solid var(--brand-gray-light); vertical-align: middle; }
.crm-table tbody tr { cursor: pointer; }
.crm-table tbody tr:hover, .camp-list li[data-open]:hover { background: var(--tint); }
.crm-table tr:focus-visible, .camp-list li:focus-visible, .back:focus-visible, .subtabs button:focus-visible { outline: 3px solid var(--brand-soft-lavender); outline-offset: -3px; }
.link { color: var(--brand-primary); font-weight: 700; cursor: pointer; }
.cell-sub { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; }
.tag { display: inline-block; font-size: 12px; background: var(--tint); color: var(--brand-deep-violet); border-radius: 4px; padding: 2px 7px; margin: 1px 0; white-space: nowrap; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 11px; }
.pill.hot { background: var(--coral-tint); color: var(--coral-text); }
.pill.warm, .pill.new { background: var(--tint); color: var(--brand-primary); }
.crm-table .score { width: 36px; height: 36px; font-size: 14px; }

.camp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.camp { border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 16px; }
.camp h3 { color: var(--brand-primary); }
.camp-list { list-style: none; margin: 12px 0 0; padding: 0; }
.camp-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--brand-gray-light); }
.camp-list li[data-open] { cursor: pointer; }
.camp-list .score { width: 34px; height: 34px; font-size: 13px; flex: none; }
.camp-list.aud b { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--brand-primary); font-variant-numeric: tabular-nums; }

.back { font: inherit; font-weight: 700; color: var(--brand-primary); background: none; border: 0; padding: 0 0 14px; cursor: pointer; }
.record { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 0; border: 1px solid var(--brand-gray-light); border-radius: 8px; }
.rec-left, .rec-right { padding: 18px; background: var(--page); }
.rec-left { border-right: 1px solid var(--brand-gray-light); border-radius: 8px 0 0 8px; }
.rec-right { border-left: 1px solid var(--brand-gray-light); border-radius: 0 8px 8px 0; }
.rec-mid { padding: 18px 20px 22px; min-width: 0; }
.rec-title { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.rec-title .title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1.2; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--brand-primary); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.rec-left h3, .rec-right h3 { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d6dce1; }
.rec-right h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.props { margin: 0; }
.props dt { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.props dd { margin: 0; font-weight: 700; }
.props .score { width: 36px; height: 36px; font-size: 14px; }
.assoc { background: #fff; border: 1px solid var(--brand-gray-light); border-radius: 6px; padding: 9px 11px; margin-top: 8px; font-weight: 700; font-size: 15px; }

.subtabs { display: flex; gap: 4px; border-bottom: 2px solid var(--brand-gray-light); margin-bottom: 16px; }
.subtabs button { font-family: var(--font-heading); font-weight: 500; font-size: 14px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px 14px; cursor: pointer; color: var(--text-muted); }
.subtabs button[aria-selected=true] { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.note-card { background: var(--tint); border: 1px solid #cfd1f6; border-radius: 8px; padding: 14px 16px; }
.note-card h3 { color: var(--brand-primary); }
.tl-title { margin: 20px 0 10px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--brand-gray-light); display: grid; gap: 12px; }
.timeline li { position: relative; border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 11px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary); border: 2px solid #fff; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; }
.tl-head .type { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-primary); }
.tl-head .when, .timeline .source { font-size: 13px; color: var(--text-muted); }
.rec-mid .angle { margin-bottom: 6px; }

@media (max-width: 900px) {
  .camp-grid, .record { grid-template-columns: 1fr; }
  .rec-left, .rec-right { border: 0; border-radius: 0; }
}

/* Three messages per contact */
.msg-block { margin-top: 14px; }
.msg-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.msg-label .routed { color: var(--brand-primary); background: var(--tint); border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.msg-block .message { margin-top: 6px; }
.msg-block .contact-actions { margin-top: 8px; }

/* Plain scores, filled intent levels, message actions */
.score-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill.hot { background: #c62828; color: #fff; }
.pill.warm { background: #f5a623; color: #2b1d00; }
.pill.cold { background: #2e7d32; color: #fff; }
.message.editing { background: #fff; outline: 2px solid var(--brand-primary); border-left-color: transparent; border-radius: 8px; }
.contact-actions { align-items: center; }
.sent { font-size: 13px; font-weight: 700; color: var(--brand-primary); }
.assoc-empty { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* Contact record */
.avatar.round { border-radius: 50%; }
.angle.one { grid-template-columns: 1fr; margin-top: 12px; }

/* Lead queue: list and board layouts */
.view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.view-head .view-note { margin: 0; flex: 1 1 320px; }
.layout-toggle { display: inline-flex; border: 1px solid var(--brand-primary); border-radius: 8px; overflow: hidden; flex: none; }
.layout-toggle button { font-family: var(--font-heading); font-weight: 500; font-size: 13px; padding: 6px 14px; background: #fff; color: var(--brand-primary); border: 0; cursor: pointer; }
.layout-toggle button[aria-pressed=true] { background: var(--brand-primary); color: #fff; }
.layout-toggle button:focus-visible, .lead-card:focus-visible { outline: 3px solid var(--brand-soft-lavender); outline-offset: -3px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-col { background: var(--page); border-radius: 8px; padding: 10px; min-height: 160px; display: grid; gap: 8px; align-content: start; }
.board-col h3 { margin: 2px 4px 4px; color: var(--brand-secondary); text-transform: none; letter-spacing: 0; font-size: 14px; }
.board-col h3 span { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.lead-card { background: #fff; border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 12px; cursor: pointer; font-size: 14px; }
.lead-card:hover { border-color: var(--brand-soft-lavender); }
.lead-card .link { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.lc-line { color: var(--brand-secondary); }
.lead-type { background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 12px; border-radius: 4px; padding: 1px 8px; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--brand-gray-light); }
.lc-tags .tag { background: #fdf3d7; color: var(--brand-secondary); font-weight: 700; }
.lc-level { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.lc-level i { width: 9px; height: 9px; border-radius: 50%; background: #c62828; }
.lc-next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--brand-gray-light); font-size: 13px; color: var(--text-muted); }

/* Campaigns: contact list */
.list-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.list-filters button { font: inherit; font-size: 14px; font-weight: 700; background: #fff; color: var(--brand-secondary); border: 1px solid #c5ccd3; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.list-filters button span { color: var(--text-muted); font-weight: 400; margin-left: 2px; }
.list-filters button[aria-pressed=true] { background: var(--page); border-color: var(--brand-secondary); }
.list-filters button:focus-visible { outline: 3px solid var(--brand-soft-lavender); outline-offset: 2px; }
.crm-table.list th { background: #fff; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--brand-secondary); border-bottom: 1px solid var(--brand-gray-light); }
.crm-table.list td { padding: 9px 14px; white-space: nowrap; }
.crm-table .check { width: 36px; padding-right: 0; }
.box { display: block; width: 16px; height: 16px; border: 1.5px solid #8a939c; border-radius: 4px; background: #fff; }
.avatar-sm { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-gray-light); color: var(--brand-secondary); font-size: 12px; font-weight: 700; margin-right: 10px; vertical-align: middle; }
.stage { display: inline-block; background: var(--brand-gray-light); border-radius: 4px; padding: 2px 9px; font-size: 13px; font-weight: 700; }
.tag.gold { background: #fdf3d7; color: var(--brand-secondary); font-weight: 700; }
.list-foot { margin-top: 12px; }
.list-foot span { display: inline-block; background: var(--page); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 14px; }
.aud-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aud-row > div { border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 12px 14px; font-weight: 700; }
.aud-row b { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .aud-row { grid-template-columns: 1fr; } }
.from-company { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.rec-mid > .contact { margin-top: 12px; }

/* Call guidance */
.guide { margin-top: 6px; padding: 14px 16px; background: var(--page); border-left: 3px solid var(--brand-coral); border-radius: 0 8px 8px 0; }
.guide h4 { font-family: var(--font-heading); font-weight: 500; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 6px; }
.guide ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.guide li p { margin-top: 2px; }
.guide .eg { color: var(--brand-deep-violet); }
.guide .sig-ref { font-size: 13px; color: var(--text-muted); }
.guide-role { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; background: #fff; border: 1px solid var(--brand-gray-light); border-radius: 8px; padding: 10px 12px; }
.guide-role b { color: var(--brand-primary); white-space: nowrap; }

/* Page navigation and ROI page */
.page-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.roi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; margin-top: 24px; align-items: start; }
.roi-inputs { display: grid; gap: 14px; }
.roi-inputs .field { grid-template-columns: 1fr 120px; align-items: center; }
.roi-inputs .field > span { font-weight: 400; }
.roi-sub { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--brand-gray-light); }
.roi-out { display: grid; gap: 14px; }
.roi-out .stat.hero { padding: 20px 22px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 110px; gap: 12px; align-items: center; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { background: var(--page); border-radius: 6px; height: 26px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #9aa1a8; border-radius: 6px; min-width: 2px; }
.bar-row.with i { background: var(--brand-primary); }
.bar-row.with span, .bar-row.with b { color: var(--brand-primary); font-weight: 700; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-top: 1px solid var(--brand-gray-light); text-align: right; font-variant-numeric: tabular-nums; }
.compare-table thead th { border-top: 0; font-size: 13px; color: var(--text-muted); }
.compare-table tbody th { text-align: left; font-weight: 400; }
.compare-table td.with { color: var(--brand-primary); font-weight: 700; }
.cap-note, .roi-note { font-size: 14px; margin-top: 12px; }
.roi-note { color: var(--text-muted); max-width: 90ch; }
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr; gap: 4px; } .bar-row b { text-align: left; } }
.guide { padding: 12px 14px; }
.guide ul { gap: 6px; margin-top: 8px; }
.guide .guide-role { display: inline-block; border: 0; background: var(--tint); border-radius: 999px; padding: 2px 11px; font-size: 13px; }

/* Lead queue mix, lead types and drag between stages */
.lead-type.outbound { background: #4a3f8f; }
.lead-type.inbound { background: #7b3fe4; }
.lead-type.intent { background: var(--brand-primary); }
.lead-card { cursor: grab; }
.lead-card.static .name, .crm-table .name { font-weight: 700; font-size: 15px; line-height: 1.3; display: block; margin-bottom: 6px; }
.crm-table .name { margin-bottom: 0; }
.crm-table tr.static { cursor: default; }
.crm-table tr.static:hover { background: none; }
.lc-level.warm i { background: #f5a623; }
.lc-level.cold i { background: #2e7d32; }
.board-col.over { outline: 2px dashed var(--brand-primary); outline-offset: -2px; background: var(--tint); }
.board { grid-auto-columns: 240px; }
.roi-wait { min-height: 220px; display: grid; place-items: center; text-align: center; }
.roi-inputs .form-error, .roi-inputs .btn-lg { grid-column: 1 / -1; }
