:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --border: rgba(17, 17, 19, 0.08);
  --border-2: rgba(17, 17, 19, 0.14);
  --text: #111113;
  --muted: #5d5d66;
  --muted-2: #8a8a94;
  --brand: #ea580c;
  --brand-2: #f97316;
  --brand-soft: rgba(234, 88, 12, 0.10);
  --accent: #b45309;
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, 0.10);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.10);
  --red: #dc2626;
  --purple-soft: rgba(180, 83, 9, 0.10);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-top: 0;
}
/* Reserve clearance at the top of the page only when the demo-switcher is
   actually shown (Magna admins + ?demo=1 dev flag). */
html.show-demo-switcher body { padding-top: 52px; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: var(--text); }
a { color: var(--brand-2); text-decoration: none; cursor: pointer; }
h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
strong { font-weight: 600; }

.app { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }

/* ───────── SIDEBAR (agency view) ───────── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 15px; letter-spacing: -0.02em;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.big { width: 52px; height: 52px; border-radius: 14px; }
.brand-mark.big svg { width: 30px; height: 30px; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 14px; }
.brand-sub { color: var(--muted); font-size: 12px; }

.search input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; font-size: 13px; color: var(--text);
}
.search input:focus { outline: none; border-color: var(--border-2); }
.search input::placeholder { color: var(--muted-2); }

.section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); font-weight: 600; padding: 10px 8px 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.count { color: var(--muted); font-weight: 500; }

.client-list { display: flex; flex-direction: column; gap: 2px; }
.client-item {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 10px; text-align: left; transition: background 0.12s ease;
}
.client-item:hover { background: rgba(17,17,19,0.04); }
.client-item.active { background: rgba(234, 88, 12, 0.10); }
.client-item.active .c-name { color: var(--brand); }

.c-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: #efeeec; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.c-avatar.md { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.c-avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.c-avatar.blue { background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; }

.c-meta { flex: 1; min-width: 0; }
.c-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.c-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dot-green, .dot-amber { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.dot-green.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.add-client {
  padding: 10px; margin-top: 6px; border-radius: 10px;
  border: 1px dashed var(--border-2); color: var(--muted);
  font-size: 12.5px; font-weight: 500; transition: all 0.12s;
}
.add-client:hover { border-color: var(--brand); color: var(--brand-2); }

.agency-footer {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--surface-2); border-radius: 10px;
}
.team-avatars { display: flex; }
.team-avatars .avatar { margin-left: -6px; border: 2px solid var(--surface-2); }
.team-avatars .avatar:first-child { margin-left: 0; }
.footer-text { font-size: 12px; line-height: 1.35; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.avatar.sm { width: 26px; height: 26px; font-size: 9.5px; }

/* ───────── MAIN ───────── */
.main { padding: 20px 28px 80px; max-width: 900px; width: 100%; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.client-pill {
  display: flex; align-items: center; gap: 12px;
}
.client-pill .c-name { font-size: 15px; font-weight: 700; }
.client-pill .c-sub { font-size: 12px; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); margin-left: 6px;
  padding: 3px 9px; background: var(--green-soft); color: var(--green);
  border-radius: 999px; font-weight: 500;
}

.icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface-2); color: var(--muted);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(17,17,19,0.06); color: var(--text); }

/* Tabs */
.tabs {
  display: flex; gap: 2px; padding: 4px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 18px; overflow-x: auto;
}
.tab {
  flex: 1; padding: 8px 14px; font-size: 13px; font-weight: 500;
  color: var(--muted); border-radius: 9px; white-space: nowrap;
  transition: all 0.12s;
}
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border-2), 0 1px 2px rgba(17,17,19,0.04); }

/* Views */
.view { display: none; flex-direction: column; gap: 14px; }
.view.active { display: flex; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.card.accent { background: linear-gradient(180deg, rgba(234, 88, 12, 0.04), var(--surface)); border-color: rgba(234, 88, 12, 0.18); }
.card.no-pad { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Chips */
.chip {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.01em; white-space: nowrap;
}
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.neutral { background: rgba(17,17,19,0.05); color: var(--muted); }
.chip.purple { background: var(--purple-soft); color: var(--accent); }
.chip.xs { font-size: 10px; padding: 2px 7px; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; }
.stat-sub { color: var(--muted-2); font-size: 12px; font-weight: 500; }
.stat-sub.accent-green { color: var(--green); }
.accent-green { color: var(--green); }

/* Mini tiles */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mini-tile {
  background: #fafaf9; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px;
}
.mini-label { font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.mini-value { font-size: 14px; font-weight: 600; }

/* Buttons */
.btn {
  border: 1px solid var(--border-2); background: #fff; color: var(--text);
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  transition: all 0.12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 1px 1px rgba(17,17,19,0.03);
}
.btn:hover { background: #fafaf9; border-color: rgba(17,17,19,0.22); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn.primary:hover { background: #000; border-color: #000; }
.btn.accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.accent:hover { background: #c2410c; border-color: #c2410c; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.btn-wide { flex: 1; }
.btn.btn-block { width: 100%; margin-top: 10px; }
.row-btns { display: flex; gap: 8px; }

/* Lead list */
.lead-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.lead-list.full li { padding: 12px 16px; }
.lead-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.lead-list li:last-child { border-bottom: none; }
.lead-body { flex: 1; min-width: 0; }
.lead-top { font-size: 13.5px; font-weight: 500; }
.lead-top strong { font-weight: 700; }
.lead-top span { color: var(--muted); }
.lead-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.muted { color: var(--muted); }
.muted.small { font-size: 12px; }
.muted.tiny { font-size: 11px; }

/* Billing */
.billing-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* SMS strip */
.sms-strip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.22);
  align-self: flex-start;
}

/* Chip row (filters) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-2);
  background: #fff; font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }

/* Prompt box */
.prompt-box {
  width: 100%; min-height: 100px; resize: vertical; padding: 14px;
  border: 1px solid var(--border-2); border-radius: 12px; font-size: 14px;
  background: #fafaf9; line-height: 1.55; color: var(--text);
}
.prompt-box:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15); }
.prompt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap;
}

.diff-log {
  margin-top: 14px; padding: 14px; background: #fafaf9;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px;
  display: flex; flex-direction: column; gap: 6px; color: var(--text);
}
.diff-line { display: flex; gap: 8px; align-items: flex-start; }
.diff-line code { background: rgba(17,17,19,0.05); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.diff-line.add span { color: var(--green); font-weight: 700; }
.diff-line.ok span { color: var(--blue); font-weight: 700; }

/* Browser frame */
.browser-frame { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f1f1ef; border-bottom: 1px solid var(--border); }
.b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot.r { background: #ef4444; } .b-dot.y { background: #f59e0b; } .b-dot.g { background: #22c55e; }
.url-bar { margin-left: 8px; flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--muted); }

.emergency-banner {
  background: #fef3c7; color: #78350f; padding: 10px 24px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.emergency-banner a { color: #78350f; text-decoration: underline; }

.mini-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid #eee; background: #fff; color: #0a0a0c;
}
.mini-nav > div { display: flex; gap: 18px; align-items: center; }
.mini-nav a { color: #0a0a0c; font-size: 13px; font-weight: 500; }
.mini-cta { background: #6366f1; color: #fff !important; padding: 6px 14px; border-radius: 6px; font-size: 12.5px; }
.mini-hero {
  padding: 40px 24px 44px; text-align: center;
  background: radial-gradient(circle at 30% 20%, #eef2ff 0%, #fff 60%);
  color: #0a0a0c;
}
.mini-hero h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; color: #0a0a0c; }
.mini-hero p { color: #555; max-width: 480px; margin: 0 auto 16px; }
.mini-cta-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.mini-btn-primary { background: #6366f1; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.mini-btn-ghost { background: #fff; border: 1px solid #ddd; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; color: #0a0a0c; }
.mini-trust { color: #92400e; font-size: 12.5px; font-weight: 500; }

/* History */
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.history li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.history li:last-child { border-bottom: none; }

/* Review flow */
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-step {
  display: flex; gap: 14px; padding: 14px; align-items: flex-start;
  background: #fafaf9; border: 1px solid var(--border); border-radius: 12px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.step-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.flow-arrow { text-align: center; color: var(--muted-2); font-size: 20px; }
.stars-preview { margin-top: 6px; display: flex; gap: 2px; }
.star { color: var(--amber); font-size: 18px; }

.flow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-branch {
  padding: 14px; border-radius: 12px;
}
.flow-branch.good { background: var(--green-soft); border: 1px solid rgba(22, 163, 74, 0.25); }
.flow-branch.bad { background: var(--amber-soft); border: 1px solid rgba(217, 119, 6, 0.25); }
.branch-label {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
  background: rgba(17,17,19,0.06);
}
.flow-branch.good .branch-label { color: var(--green); }
.flow-branch.bad .branch-label { color: var(--amber); }

/* KV */
.kv { display: flex; flex-direction: column; margin-top: 10px; }
.kv > div {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.kv > div:first-child { border-top: none; }
.kv span { color: var(--muted); }

/* Stripe */
.stripe-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: #fafaf9;
  border: 1px solid var(--border); border-radius: 12px;
}
.stripe-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #635bff, #a78bfa);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; font-style: italic;
}
.grow { flex: 1; min-width: 0; }

/* Domain */
.domain-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.dtab {
  flex: 1; padding: 7px; font-size: 12.5px; font-weight: 500;
  border-radius: 7px; color: var(--muted);
}
.dtab.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(17,17,19,0.05); }

.domain-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: #fafaf9;
  border: 1px solid var(--border); border-radius: 12px;
}
.search-domain {
  display: flex; gap: 8px; margin-top: 14px;
}
.search-domain input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border-2);
  border-radius: 10px; background: #fff; font-size: 13px; color: var(--text);
}
.search-domain input:focus { outline: none; border-color: var(--brand); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field span { font-size: 12px; color: var(--muted); font-weight: 500; }
.field input {
  padding: 10px 14px; border: 1px solid var(--border-2); border-radius: 10px;
  font-size: 13.5px; background: #fff; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }

/* Toggle row */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 500;
}
.toggle-row.inline { padding: 0; border: none; }
.toggle-row input { display: none; }
.toggle-row em {
  width: 36px; height: 22px; background: #d9d9d5; border-radius: 999px;
  position: relative; transition: background 0.2s; display: inline-block;
}
.toggle-row em::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-row input:checked + em { background: var(--brand); }
.toggle-row input:checked + em::after { transform: translateX(14px); }

/* Team */
.team-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.team-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #fff; border: 1px solid var(--border-2);
  color: var(--text); border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px rgba(17,17,19,0.12);
  max-width: 380px; transform: translateY(120%); opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); z-index: 100;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon {
  font-size: 16px; color: var(--brand);
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.toast-title { font-weight: 600; font-size: 13.5px; }
.toast-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ───────── DEMO SWITCHER ───────── */
/* Hidden by default · gate.js opts in by setting html.show-demo-switcher
   for Magna admins or when the URL carries ?demo=1 (dev override). */
.demo-switcher { display: none; }
html.show-demo-switcher .demo-switcher {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 5px 10px; display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; z-index: 200;
  box-shadow: 0 8px 30px rgba(17,17,19,0.10);
}
.demo-switcher span { color: var(--muted-2); padding: 0 6px; font-weight: 500; }
.demo-switcher a {
  color: var(--muted); padding: 5px 10px; border-radius: 999px;
  font-weight: 500; transition: all 0.12s;
}
.demo-switcher a:hover { background: rgba(17,17,19,0.06); color: var(--text); }
.demo-switcher a.active { background: var(--brand); color: #fff; }
html.is-contractor .sidebar,
html.is-contractor .admin-sidebar { top: 0; height: 100vh; }
html.is-contractor .impersonate-banner { top: 0; }
html.is-contractor body:has(.impersonate-banner:not([style*="none"])) { padding-top: 44px; }

/* ───────── NEXT-CALL PILL (mobile only) ───────── */
/* A floating bottom pill showing the highest-priority lead with tap-to-call.
   Only rendered on small screens — desktops have the full pipeline kanban. */
.next-call-pill {
  display: none;
  position: fixed; z-index: 45;
  left: 8px; right: 8px; bottom: 70px; /* sits above the mobile .tabs bar */
  padding: 10px 12px; gap: 12px; align-items: center;
  background: var(--brand); color: #fff; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(234,88,12,0.35);
  text-decoration: none; font-weight: 600;
}
.next-call-pill[hidden] { display: none !important; }
.ncp-icon { font-size: 20px; flex-shrink: 0; }
.ncp-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ncp-label { font-size: 10px; letter-spacing: 0.08em; opacity: 0.8; text-transform: uppercase; }
.ncp-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncp-chev { font-size: 24px; opacity: 0.8; flex-shrink: 0; }
@media (max-width: 900px) {
  .next-call-pill:not([hidden]) { display: flex; }
}

/* ───────── NOTIFICATION RECIPIENTS LIST ───────── */
.nr-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
}
.nr-row .grow { min-width: 0; }
.nr-row .f-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nr-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ───────── PIPELINE EMPTY STATE ───────── */
.pipeline-empty {
  grid-column: 1 / -1;
  background: var(--surface); border: 1px dashed var(--border-2); border-radius: 16px;
  padding: 40px 28px; text-align: center;
}
.pe-icon { font-size: 38px; margin-bottom: 10px; }
.pe-title { font-size: 20px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.pe-sub   { max-width: 520px; margin: 0 auto 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pe-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.pe-steps { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin: 0 auto; text-align: left; }
.pe-step  { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); }
.pe-step-n {
  background: var(--brand); color: #fff; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* ───────── DEV-ONLY HELPERS ─────────
   Blocks inside the app that should never reach real users (demo-account
   quick-login list, internal debug rows, etc.). Mirrors .demo-switcher:
   hidden by default, shown only when gate.js flags show-demo-switcher. */
.dev-only { display: none !important; }
html.show-demo-switcher .dev-only { display: block !important; }

/* ───────── RESUME-SETUP BANNER ───────── */
.resume-banner {
  position: sticky; top: 0; z-index: 60;
  background: #fff7ed; border-bottom: 1px solid #fed7aa;
}
.resume-banner[hidden] { display: none; }
.rb-inner {
  max-width: 980px; margin: 0 auto; display: flex; align-items: center;
  gap: 12px; padding: 10px 20px; font-size: 13px;
}
.rb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.rb-text { flex: 1; color: var(--text); }
.rb-cta {
  color: var(--brand); font-weight: 600; text-decoration: none;
  padding: 4px 8px; border-radius: 6px; transition: background 0.12s;
}
.rb-cta:hover { background: rgba(234,88,12,0.08); }
.rb-close {
  background: transparent; border: none; color: var(--muted-2);
  font-size: 20px; line-height: 1; padding: 0 4px; cursor: pointer;
}
.rb-close:hover { color: var(--text); }

/* ───────── PASSWORD STRENGTH ───────── */
.pw-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pw-bar { flex: 1; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.pw-fill { height: 100%; width: 0%; background: var(--red); transition: width 0.2s ease, background 0.2s ease; }
.pw-fill.weak   { width: 25%; background: var(--red); }
.pw-fill.fair   { width: 50%; background: #f59e0b; }
.pw-fill.good   { width: 75%; background: #3b82f6; }
.pw-fill.strong { width: 100%; background: #10b981; }
.pw-label { min-width: 80px; text-align: right; font-size: 11.5px; }

/* ───────── AUTH / SIGNUP ───────── */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-shell {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
  max-width: 1400px; margin: 0 auto;
}
/* Signup has no marketing aside — collapse to a single centered column
   so the form is the only thing on the page. */
.auth-shell:not(:has(.auth-aside)) { grid-template-columns: 1fr; max-width: 760px; }
.auth-shell:not(:has(.auth-aside)) .auth-main { margin: 0 auto; }
.signup-brand { margin-bottom: 32px; }
.stripe-handoff {
  border: 1px solid var(--border-2); border-radius: 12px;
  padding: 14px 16px; background: #fafaff; margin: 4px 0 14px;
}
.stripe-handoff-row { display: flex; gap: 14px; align-items: flex-start; }
.stripe-handoff-row svg { flex-shrink: 0; margin-top: 2px; }
.stripe-handoff-title { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.auth-aside {
  padding: 60px 56px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(180deg, rgba(234,88,12,0.05), transparent 70%);
  border-right: 1px solid var(--border);
}
.auth-aside .hero {
  font-size: 38px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin: 10px 0 0;
}
.hero-sub { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.auth-feat { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-feat li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text); }
.feat-ic { font-size: 16px; }
.auth-quote {
  margin-top: auto; padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  display: flex; gap: 12px; align-items: flex-start;
}
.quote-body { font-size: 13.5px; line-height: 1.5; }

.auth-main { padding: 60px 56px; max-width: 620px; width: 100%; }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.step {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted-2); font-size: 12.5px; font-weight: 500;
}
.step span {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}
.step.active { color: var(--text); }
.step.active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--border-2); }

.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-main h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-main .muted { margin-bottom: 22px; }

.auth-form { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 12px; }
.field-row:has(.field:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.field select {
  padding: 11px 14px; border: 1px solid var(--border-2); border-radius: 10px;
  background: #fff; color: var(--text); font-size: 13.5px;
  font-family: inherit; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235d5d66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.inline-input { display: flex; align-items: stretch; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; overflow: hidden; }
.inline-input input { border: none; flex: 1; background: transparent; padding: 11px 14px; font-size: 13.5px; color: var(--text); }
.inline-input input:focus { outline: none; }
.inline-input .suffix { padding: 11px 14px; background: #fafaf9; color: var(--muted); font-size: 13.5px; border-left: 1px solid var(--border); }

.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.02em; }
.auth-actions { display: flex; gap: 10px; margin-top: 8px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 12.5px; color: var(--muted); }
.checkbox-row input { margin-top: 2px; }
.trust-row { display: flex; gap: 18px; justify-content: center; margin-top: 14px; color: var(--muted-2); font-size: 12px; flex-wrap: wrap; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.plan input { display: none; }
.plan-card {
  position: relative; padding: 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.plan-card:hover { border-color: var(--border-2); }
.plan input:checked + .plan-card, .plan.selected .plan-card { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234,88,12,0.18); }
.plan-card.featured { border-color: var(--brand); background: linear-gradient(180deg, rgba(234,88,12,0.06), var(--surface)); }
.plan-badge {
  position: absolute; top: -10px; left: 14px;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-name { font-weight: 700; font-size: 15px; }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; }
.plan-price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.plan ul li.dim { color: var(--muted-2); }

/* Summary */
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.sum-row.total { font-size: 16px; font-weight: 600; }
.sum-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ───────── ONBOARDING ───────── */
.onboard-shell { max-width: 960px; margin: 0 auto; padding: 50px 28px 80px; display: flex; flex-direction: column; gap: 20px; }
.onboard-header { display: flex; align-items: center; justify-content: space-between; }
.onboard-user { display: flex; align-items: center; gap: 10px; }
.welcome-hero { text-align: center; padding: 20px 0; }
.welcome-hero .confetti { font-size: 34px; }
.welcome-hero h1 { font-size: 34px; letter-spacing: -0.02em; margin: 8px 0 8px; }

.big-status { padding: 22px; }
.status-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.status-head h3 { font-size: 20px; letter-spacing: -0.01em; margin: 8px 0 4px; }
.team-assigned { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.progress-track { display: flex; align-items: center; gap: 4px; margin: 10px 0; }
.p-step { text-align: center; flex: 0 0 auto; width: 120px; }
.p-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-2);
  color: var(--muted); margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.p-step.done .p-dot { background: var(--green); border-color: var(--green); color: #fff; }
.p-step.active .p-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(234,88,12,0.18); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(234,88,12,0.18); } 50% { box-shadow: 0 0 0 8px rgba(234,88,12,0.10); } }
.p-label { font-weight: 600; font-size: 12.5px; }
.p-sub { color: var(--muted); font-size: 11.5px; }
.p-line { flex: 1; height: 2px; background: var(--border); margin-top: -28px; }

.build-notice {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; background: var(--green-soft);
  border: 1px solid rgba(34,197,94,0.22); border-radius: 10px;
  font-size: 13px; color: var(--text); margin-top: 10px;
}

.section-head { margin-top: 14px; }
.section-head h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 4px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.feature-card.done { background: linear-gradient(180deg, rgba(22,163,74,0.05), var(--surface)); }
.f-ic { font-size: 22px; width: 40px; text-align: center; }
.f-body { flex: 1; min-width: 0; }
.f-title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }

.feature-tour { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tour-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.tour-ic {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tour-ic.blue { background: var(--blue-soft); }
.tour-ic.amber { background: var(--amber-soft); }
.tour-ic.green { background: var(--green-soft); }
.tour-ic.purple { background: var(--purple-soft); }
.tour-card p { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.link-arrow { color: var(--brand-2); font-size: 13px; font-weight: 500; }

.onboard-footer { text-align: center; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.onboard-footer .btn { max-width: 360px; }
.onboard-footer .btn:disabled { opacity: 0.55; cursor: not-allowed; }
.center { text-align: center; }

/* ── Onboarding checklist ── */
.onboard-progress { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.progress-label { letter-spacing: 0.02em; }
.progress-label #progress-count { color: var(--text); font-weight: 600; }
.progress-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2, var(--brand))); border-radius: 999px; transition: width 220ms ease; }

.checklist-block { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.checklist-block-head { display: flex; align-items: center; gap: 10px; }
.chip.muted { background: rgba(0,0,0,0.05); color: var(--muted); }
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2, #fafafa); }
.checklist-item .ci-icon { font-size: 22px; line-height: 1; }
.checklist-item .ci-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.checklist-item .ci-btn { white-space: nowrap; }
.checklist-item .ci-skip { color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; margin-left: 10px; }
.checklist-item .ci-skip:hover { color: var(--text); }
.checklist-item.done { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.06); }
.checklist-item.done .ci-btn { background: rgba(34,197,94,0.12); color: #166534; border-color: transparent; opacity: 1; cursor: default; }
.checklist-item.skipped { opacity: 0.7; }
.checklist-item.skipped .ci-btn { background: rgba(0,0,0,0.04); color: var(--muted); }

/* Gmail-style flat to-do list: single container, dividers between rows, red dot marks required. */
.todo-list { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,17,19,0.03); }
.todo-list .checklist-item {
  border: none; border-radius: 0; background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  grid-template-columns: 14px 32px 1fr auto auto;
  gap: 14px;
  transition: background 120ms ease;
}
.todo-list .checklist-item:last-child { border-bottom: none; }
.todo-list .checklist-item:hover { background: rgba(0,0,0,0.015); }
.todo-list .checklist-item.done { background: rgba(34,197,94,0.05); }
.todo-list .checklist-item.done:hover { background: rgba(34,197,94,0.08); }
.todo-list .checklist-item.skipped { background: rgba(0,0,0,0.02); opacity: 0.75; }
.todo-list .checklist-item .ci-icon { font-size: 20px; text-align: center; }
.todo-list .checklist-item .ci-title { font-size: 14px; }

.req-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: transparent; flex-shrink: 0;
}
.req-dot-inline { vertical-align: middle; margin-right: 4px; }
.checklist-item.required .req-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: req-pulse 2.2s ease-in-out infinite;
}
.section-head .req-dot-inline {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}
@keyframes req-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08); }
}

/* ───────── VIDEO ───────── */
.video-card { padding: 18px; }
.video-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; align-items: flex-start; }
.video-head h3 { font-size: 18px; letter-spacing: -0.01em; margin: 8px 0 4px; }
.video-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ───────── MODAL ───────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17,17,19,0.40);
  backdrop-filter: blur(6px); z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border: 1px solid var(--border-2);
  border-radius: 16px; padding: 24px; max-width: 480px; width: 100%;
  box-shadow: 0 30px 60px rgba(17,17,19,0.22);
  animation: modalIn 0.2s cubic-bezier(0.2,0.9,0.3,1.1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .muted { margin-bottom: 16px; }
.modal .row-btns { justify-content: flex-end; margin-top: 18px; }

/* ───────── AUTOMATIONS ───────── */
.auto-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; align-self: flex-start; }
.a-tab { padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-radius: 7px; }
.a-tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }

.auto-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(17,17,19,0.03); }
.auto-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.auto-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.auto-ic.sms { background: var(--green-soft); }
.auto-ic.email { background: var(--blue-soft); }
.auto-ic.workflow { background: var(--purple-soft); }
.auto-preview {
  padding: 10px 12px; background: #fafaf9; border: 1px solid var(--border);
  border-left: 3px solid var(--brand); border-radius: 8px;
  color: var(--muted); font-size: 12.5px; font-family: inherit; margin-bottom: 10px;
  line-height: 1.5;
}
.auto-stats { display: flex; gap: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.auto-stats strong { color: var(--text); font-weight: 600; margin-left: 3px; }

/* Source row (Leads) */
.source-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.src-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.src-ic.blue { background: var(--blue-soft); }
.src-ic.amber { background: var(--amber-soft); }

/* ───────── ADMIN ───────── */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto;
}
.brand-mark.admin { background: linear-gradient(135deg, #111113, #3f3f46); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-tab {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 500;
  text-align: left; transition: all 0.12s;
}
.admin-tab:hover { background: rgba(17,17,19,0.05); color: var(--text); }
.admin-tab.active { background: var(--text); color: #fff; font-weight: 600; }
.admin-tab.active .count { background: rgba(255,255,255,0.16); color: #fff; }
.admin-tab .count {
  margin-left: auto; background: rgba(17,17,19,0.07); color: var(--muted);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.admin-tab .count.hot { background: rgba(220,38,38,0.15); color: var(--red); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 14px; }

.admin-main { padding: 28px 32px 60px; max-width: 1400px; width: 100%; overflow-x: hidden; }
.admin-view { display: none; flex-direction: column; gap: 18px; }
.admin-view.active { display: flex; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.admin-header h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 4px; }
.admin-header p { margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }

.activity, .attention { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.activity li, .attention li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.activity li:last-child, .attention li:last-child { border-bottom: none; }
.a-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.a-ic.green { background: var(--green-soft); color: var(--green); }
.a-ic.blue { background: var(--blue-soft); color: var(--blue); }
.a-ic.amber { background: var(--amber-soft); color: var(--amber); }
.a-ic.purple { background: var(--purple-soft); color: var(--accent); }
.a-ic.red { background: rgba(239,68,68,0.16); color: var(--red); }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 12px 18px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted-2); font-weight: 600;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafaf9; }
.c-row { display: flex; align-items: center; gap: 10px; }
.chip.red { background: rgba(220,38,38,0.12); color: var(--red); }

.spark-dark { width: 100%; height: 160px; }
.spark-dark svg { width: 100%; height: 100%; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; overflow-x: auto; }
.kan-col {
  background: #fafaf9; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 400px;
}
.kan-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.kan-head h4 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.kan-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: grab;
  box-shadow: 0 1px 2px rgba(17,17,19,0.04);
}
.kan-card:hover { border-color: var(--border-2); }
.kan-card.done { opacity: 0.75; }
.kan-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.kan-bar { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.kan-bar > div { height: 100%; background: var(--brand); }
.kan-empty { padding: 16px; text-align: center; color: var(--muted-2); font-size: 12px; }
.avatar.tiny { width: 22px; height: 22px; font-size: 9px; }

/* Tickets */
.ticket-list { list-style: none; padding: 0; margin: 0; }
.ticket-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.ticket-list li:last-child { border-bottom: none; }
.t-sev { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.t-sev.red { background: var(--red); }
.t-sev.amber { background: var(--amber); }
.t-sev.blue { background: var(--blue); }
.t-sev.green { background: var(--green); }

/* Team list padded */
.team-list.padded li { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.team-list.padded li:last-child { border-bottom: none; }

/* ── Sub-account grid (admin Overview) ── */
.subs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.sub-card {
  text-align: left; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.sub-card:hover {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(17,17,19,0.08);
}
.sub-head { display: flex; align-items: center; gap: 10px; }
.sub-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.sub-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 10px; background: #fafaf9; border-radius: 10px;
}
.sub-stats strong { font-size: 16px; display: block; margin-top: 2px; }
.sub-foot { border-top: 1px solid var(--border); padding-top: 8px; }

/* ── Health & onboarding (admin) ── */
.health-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px;
}
.health-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.hc-head { display: flex; align-items: center; gap: 10px; }
.hc-foot { display: flex; justify-content: flex-end; gap: 8px; }
.health-reasons { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
.health-onb { display: flex; flex-direction: column; gap: 4px; }

.health-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent;
}
.health-pill strong { font-size: 14px; font-weight: 800; }
.health-pill.green { background: var(--green-soft); color: var(--green); border-color: rgba(22,163,74,0.2); }
.health-pill.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(217,119,6,0.25); }
.health-pill.red   { background: rgba(220,38,38,0.10); color: var(--red); border-color: rgba(220,38,38,0.24); }
.health-pill.xs { padding: 2px 7px; font-size: 10px; gap: 3px; }
.health-pill.xs strong { font-size: 11px; }

/* onboarding playbook rows */
.onboard-list { list-style: none; margin: 0; padding: 0; }
.onboard-list li {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.onboard-list li:last-child { border-bottom: none; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px; }
.check {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: #fafaf9; border: 1px solid var(--border);
  color: var(--muted); font-weight: 500;
}
.check.done { background: var(--green-soft); color: var(--green); border-color: rgba(22,163,74,0.2); }

/* ── Referral (admin + client) ── */
.ref-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--brand-soft); color: var(--brand);
  padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px;
}

.refer-card {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  border-color: rgba(234,88,12,0.3) !important;
}
.refer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center;
  margin-top: 6px;
}
.refer-code-big {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 24px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--brand); margin-top: 4px;
}
.refer-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: #fff; border: 1px solid rgba(234,88,12,0.18); border-radius: 10px;
  padding: 12px;
}
.refer-stats strong { font-size: 18px; display: block; margin-top: 2px; color: var(--text); }

@media (max-width: 640px) {
  .refer-grid { grid-template-columns: 1fr; }
}

/* ── Inbox-style Overview · email-inbox scan pattern ── */
.goal-strip {
  background: linear-gradient(180deg, rgba(234,88,12,0.06), transparent);
  border: 1px solid rgba(234,88,12,0.18);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.gs-label { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 10.5px; color: var(--brand); }
.gs-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.gs-headline { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.gs-bar { height: 4px; background: rgba(234,88,12,0.12); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.gs-bar > div { height: 100%; background: linear-gradient(90deg, var(--brand), #fb923c); transition: width 0.4s; }

.inbox-section { margin-bottom: 24px; }
.inbox-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 10px; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.inbox-heading h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; margin: 0; }

.inbox {
  list-style: none; padding: 0; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.inbox-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.inbox-item:last-child { border-bottom: none; }
.inbox-item:hover { background: #fafaf9; }
.inbox-item .ib-icon {
  width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  border: 1px solid var(--border);
}
.inbox-item.ib-red   .ib-icon { background: rgba(220,38,38,0.10); color: var(--red); border-color: rgba(220,38,38,0.24); }
.inbox-item.ib-amber .ib-icon { background: var(--amber-soft);      color: var(--amber); border-color: rgba(217,119,6,0.24); }
.inbox-item.ib-green .ib-icon { background: var(--green-soft);      color: var(--green); border-color: rgba(22,163,74,0.24); }
.inbox-item.ib-blue  .ib-icon { background: var(--blue-soft);       color: var(--blue);  border-color: rgba(37,99,235,0.24); }

.inbox-item .ib-body { flex: 1; min-width: 0; }
.inbox-item .ib-title {
  font-weight: 600; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-item .ib-snippet {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.inbox-item .ib-time { color: var(--muted-2); font-size: 11.5px; flex-shrink: 0; }
.inbox-item .ib-action { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.inbox-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; }

.inbox-footer { margin-top: 14px; }

/* Slim admin header when Overview is inbox-style */
.admin-header-slim { margin-bottom: 18px; }
.admin-header-slim h1 { font-size: 22px; }

/* ── Integrations tab (contractor) ── */
.ig-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 6px 2px 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.ig-stats { display: flex; gap: 18px; }
.ig-stat { text-align: right; line-height: 1.1; }
.ig-stat strong { font-size: 22px; font-weight: 800; display: block; }

.ig-category { margin-bottom: 26px; }
.ig-category h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700; margin: 0 0 10px;
}
.ig-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px;
}
.ig-grid.single { grid-template-columns: 1fr; max-width: 560px; }

/* ── Goal strip · quiet, clickable ── */
.goal-strip { cursor: pointer; transition: border-color 0.12s; margin-top: 18px; }
.goal-strip:hover { border-color: rgba(234,88,12,0.35); }
.goal-strip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Profile / billing row ── */
.billing-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.billing-row .cancel-link {
  color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer;
}
.billing-row .cancel-link:hover { color: var(--red); }

/* ── Team list ── */
.team-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.team-row:last-child { border-bottom: 0; }

/* ── Notification toggle rows ── */
.notif-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
}

/* ── Cancel flow: reasons ── */
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all 0.12s;
}
.reason-row:hover { border-color: var(--border-2); background: #fafaf9; }
.reason-row input { accent-color: var(--brand); }

/* ── Cancel flow: impact stats ── */
.impact-stat {
  padding: 12px 14px; border-left: 3px solid var(--brand);
  background: #fafaf9; margin-bottom: 10px; border-radius: 6px;
}
.impact-stat .is-num { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.impact-note {
  margin-top: 16px; padding: 14px; background: #fef2f2;
  border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; line-height: 1.5;
  color: #991b1b;
}

/* ── Save offer ── */
.save-hero {
  padding: 20px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
}
.save-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--brand); color: white; font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.save-pricing { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.save-pricing .old-price { text-decoration: line-through; color: var(--muted); font-size: 20px; }
.save-pricing .new-price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
.save-because {
  padding: 14px 16px; background: #fafaf9; border-radius: 10px;
  font-size: 13px; line-height: 1.6;
}

.btn.danger { background: var(--red); color: white; border-color: var(--red); }
.btn.danger:hover { background: #b91c1c; }

/* ── Onboarding: start clean card ── */
.start-clean { margin-top: 18px; }
.start-clean .sc-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.start-clean .sc-ic { font-size: 28px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.start-clean .sc-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; background: #fafaf9;
  font-size: 13.5px;
}
.start-clean .sc-toggle input { accent-color: var(--brand); }

/* ── Referral modal ── */
.ref-hero {
  text-align: center; padding: 22px 18px 20px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid #fed7aa; border-radius: 16px; margin-bottom: 18px;
}
.ref-hero-label {
  font-size: 10.5px; letter-spacing: 0.1em; font-weight: 700;
  color: var(--brand); margin-bottom: 8px;
}
.ref-hero-num {
  font-size: 48px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--brand); line-height: 1; margin-bottom: 8px;
}
.ref-hero-sub { font-size: 13.5px; color: var(--muted); line-height: 1.5; max-width: 360px; margin: 0 auto; }

.ref-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 18px;
}
.ref-stat {
  padding: 12px; text-align: center;
  border: 1px solid var(--border); border-radius: 12px; background: white;
}
.rs-num { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.rs-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-top: 2px; }

.ref-share { margin-bottom: 18px; }
.ref-share-label {
  font-size: 10.5px; letter-spacing: 0.08em; font-weight: 700;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
}
.ref-link-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 10px;
}
.ref-link {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fafaf9; font-size: 13.5px;
  color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ref-list-section { margin-bottom: 18px; }
.ref-list {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--border); border-radius: 12px; background: white;
}
.ref-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.ref-row:last-child { border-bottom: 0; }

.ref-rules-list {
  margin: 0; padding: 12px 14px 14px 32px; background: #fafaf9;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 13px; line-height: 1.6; color: var(--text);
}
.ref-rules-list li { margin-bottom: 4px; }

@media (max-width: 640px) {
  .ref-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Twilio connect: compliance block ── */
.tw-compliance {
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid #fed7aa; border-radius: 12px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.twc-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--brand); margin-bottom: 8px;
}
.twc-body { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.twc-body ul { margin: 6px 0 8px; padding-left: 18px; }
.twc-body li { margin-bottom: 2px; }
.twc-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #fed7aa;
  font-size: 13px; cursor: pointer;
}
.twc-check input { margin-top: 2px; accent-color: var(--brand); }

/* ── In-app call modal ── */
.call-ui {
  text-align: center; padding: 12px 6px 4px;
}
.call-ui .call-status {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--brand); margin-bottom: 18px;
}
.call-ui[data-state="active"] .call-status { color: var(--green); }
.call-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: white;
  background: linear-gradient(180deg, var(--brand), #c2410c);
  animation: pulseRing 1.4s ease-out infinite;
}
.call-ui[data-state="active"] .call-avatar {
  animation: none; background: linear-gradient(180deg, #16a34a, #15803d);
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(234,88,12,0.35); }
  70%  { box-shadow: 0 0 0 16px rgba(234,88,12,0); }
  100% { box-shadow: 0 0 0 0 rgba(234,88,12,0); }
}
.call-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.call-number { font-size: 14px; color: var(--muted); margin-top: 2px; }
.call-from { margin-top: 6px; }
.call-timer {
  font-size: 28px; font-weight: 700; margin: 18px 0 4px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.call-ui[data-state="ringing"] .call-timer { color: var(--muted); }
.call-controls {
  display: flex; justify-content: center; gap: 14px; margin: 14px 0 12px;
}
.call-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border);
  background: white; cursor: pointer; font-size: 22px;
  transition: transform 0.1s, background 0.12s;
}
.call-btn:hover { background: #fafaf9; }
.call-btn:active { transform: scale(0.94); }
.call-btn.active { background: var(--amber-soft); border-color: var(--amber); }
.call-btn.hangup {
  background: var(--red); border-color: var(--red); color: white;
  transform: rotate(135deg);
}
.call-btn.hangup:hover { background: #b91c1c; }
.call-recnote {
  margin-top: 6px; padding: 10px 12px; background: #fafaf9;
  border-radius: 8px; line-height: 1.45;
}

/* ── Cancel flow: step dots ── */
.cx-step-dots { display: flex; gap: 5px; margin-bottom: 20px; justify-content: center; }
.cx-step-dots .dot {
  width: 22px; height: 3px; border-radius: 999px;
  background: var(--border); transition: background 0.2s;
}
.cx-step-dots .dot.active { background: var(--brand); }
.cx-step-dots .dot.done   { background: var(--brand); opacity: 0.45; }

/* ── Cancel flow: single-point slide ── */
.cx-slide {
  text-align: center; padding: 8px 6px 4px;
}
.cx-slide .cx-icon {
  font-size: 44px; line-height: 1; margin-bottom: 18px;
}
.cx-slide .cx-headline {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text); margin-bottom: 10px; line-height: 1.25;
}
.cx-slide .cx-sub {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  max-width: 400px; margin: 0 auto;
}
.cx-slide .save-badge { margin-bottom: 16px; }
.cx-slide.cx-danger {
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
  border: 1px solid #fecaca;
  border-radius: 14px;
  text-align: left;
}
.cx-slide.cx-danger .cx-icon {
  display: inline-block; width: 56px; height: 56px; line-height: 56px;
  font-size: 30px; text-align: center; margin-bottom: 14px;
  background: #fee2e2; border-radius: 50%;
}
.cx-slide.cx-danger .cx-headline {
  color: #991b1b; font-size: 20px; text-align: left;
}
.cx-slide.cx-danger .cx-sub {
  text-align: left; color: var(--text); font-size: 14px;
  max-width: none; margin: 0 0 14px;
}
.cx-danger-sub {
  margin-top: 10px; padding: 12px 14px;
  background: white; border: 1px solid #fecaca; border-radius: 10px;
  font-size: 12.5px; line-height: 1.65; color: #7f1d1d;
}
.cx-danger-sub strong { color: #991b1b; }

.cx-slide .cx-pricing {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.cx-pricing .old-price {
  text-decoration: line-through; color: var(--muted); font-size: 20px;
}
.cx-pricing .new-price {
  font-size: 44px; font-weight: 800; letter-spacing: -0.025em; color: var(--brand);
}
.cx-pricing .per-mo { color: var(--muted); font-size: 15px; }

/* ── Lead modal · SMS + Email messaging ── */
.msg-section { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.msg-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.msg-tab {
  padding: 7px 12px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.12s;
}
.msg-tab:hover { color: var(--text); }
.msg-tab.active { background: var(--text); color: var(--surface); border-color: var(--text); font-weight: 600; }
.msg-pane { display: none; flex-direction: column; gap: 10px; }
.msg-pane.active { display: flex; }

.msg-thread {
  max-height: 280px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; background: #fafaf9;
  display: flex; flex-direction: column; gap: 8px;
}
.msg-empty { padding: 28px 10px; text-align: center; }

.msg-bubble {
  max-width: 85%; padding: 9px 12px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.4;
}
.msg-bubble.out { align-self: flex-end; background: var(--text); color: var(--surface); border-bottom-right-radius: 4px; }
.msg-bubble.in  { align-self: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-bubble .msg-subj { font-weight: 700; margin-bottom: 4px; font-size: 13px; }
.msg-bubble.out .msg-meta { color: rgba(255,255,255,0.6); margin-top: 4px; }
.msg-bubble.in .msg-meta { margin-top: 4px; }

.msg-compose {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--surface);
}
.msg-subject {
  border: 0; border-bottom: 1px solid var(--border); padding: 6px 4px;
  font-size: 14px; font-weight: 500; background: transparent; outline: none;
}
.msg-compose .prompt-box { border: 0; padding: 4px; resize: vertical; }
.msg-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }

.msg-connect-prompt {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border: 1px dashed var(--border); border-radius: 12px;
  background: #fafaf9;
}
.msg-connect-prompt > div:first-child { flex: 1; }

@media (max-width: 640px) {
  .msg-thread { max-height: 220px; }
  .msg-connect-prompt { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ── Automation list · simple toggle rows ── */
.auto-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.auto-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.auto-row:last-child { border-bottom: 0; }
.auto-row .auto-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; background: #f5f5f4; margin-top: 2px; }
.auto-row .f-title { font-weight: 600; font-size: 14px; letter-spacing: -0.005em; }
.auto-row .grow { min-width: 0; }
.auto-summary { margin-top: 2px; line-height: 1.45; }
.auto-preview {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5;
  border: 1px solid var(--border);
}
.auto-preview.sms { background: var(--green-soft); border-color: rgba(22,163,74,0.2); }
.auto-preview.email { background: var(--blue-soft); border-color: rgba(37,99,235,0.18); }
.auto-preview-label {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-right: 8px; color: var(--muted); opacity: 0.8;
}
.auto-preview-body { color: var(--text); white-space: pre-wrap; }
.auto-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-top: 4px;
}

/* ── Merge field editor ── */
.auto-channel-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 12px;
}
.merge-panel {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #fafaf9;
}
.merge-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--muted); margin-bottom: 10px;
}
.merge-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.merge-chip {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: white; cursor: pointer; font-size: 12.5px; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--brand); transition: all 0.12s;
}
.merge-chip:hover { background: var(--brand); color: white; border-color: var(--brand); }
.merge-hint { line-height: 1.5; }
.merge-hint code { background: white; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); font-size: 11px; }

.auto-preview-block {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(22,163,74,0.22); border-radius: 12px;
  background: var(--green-soft);
}
.apb-head {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: #15803d; margin-bottom: 6px;
}
.apb-body {
  font-size: 13.5px; line-height: 1.55; color: var(--text);
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .auto-row { flex-wrap: wrap; }
  .auto-actions { margin-left: auto; }
}
.ig-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17,17,19,0.03);
  transition: border-color 0.12s;
}
.ig-card:hover { border-color: var(--border-2); }
.ig-card.on { background: linear-gradient(180deg, rgba(22,163,74,0.04), var(--surface)); border-color: rgba(22,163,74,0.28); }
.ig-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  border: 1px solid var(--border);
}
.ig-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.ig-desc { color: var(--muted); font-size: 12.5px; margin: 4px 0 6px; line-height: 1.4; }
.ig-scope code { font-size: 11px; background: #fafaf9; padding: 1px 5px; border-radius: 4px; }
.ig-action { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

@media (max-width: 640px) {
  .ig-grid { grid-template-columns: 1fr; }
  .ig-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Calendar / Meetings (client CRM) ── */
.connect-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.connector-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.connector-ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}

.meeting-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.meeting-list li {
  display: flex; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.meeting-list li:last-child { border-bottom: none; }
.meeting-time { flex-shrink: 0; min-width: 160px; }
.m-date { font-weight: 700; font-size: 12.5px; }

.sub-tab-count {
  display: inline-block; min-width: 16px; padding: 1px 6px; margin-left: 4px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 700; text-align: center;
}
.sub-tab-count:empty { display: none; }

@media (max-width: 640px) {
  .connect-row { grid-template-columns: 1fr; }
  .meeting-list li { flex-direction: column; }
  .meeting-time { min-width: 0; }
}

/* ── Messages list (admin) ── */
.msg-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.msg-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.msg-list li:last-child { border-bottom: none; }
.msg-ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 40px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .auth-main { padding: 32px 24px; }
  .plan-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 220px 1fr; }
  .admin-main { padding: 20px 20px 60px; }
  .stat-row.four { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .main { padding: 60px 14px 96px; max-width: 100%; }
  .admin-main { padding: 60px 14px 60px; }
  .topbar { padding-bottom: 14px; margin-bottom: 14px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .feature-grid, .feature-tour { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .progress-track { overflow-x: auto; }
  .p-step { width: 100px; }
  .onboard-shell { padding: 60px 14px 60px; }
  .todo-list .checklist-item { grid-template-columns: 10px 28px 1fr; padding: 12px 14px; row-gap: 8px; }
  .todo-list .checklist-item .ci-btn { grid-column: 2 / -1; justify-self: start; }
  .todo-list .checklist-item .ci-skip { grid-column: 2 / -1; justify-self: start; margin-left: 0; }
  .demo-switcher { font-size: 10.5px; padding: 4px 6px; flex-wrap: wrap; }
  .demo-switcher a { padding: 4px 8px; }
  .demo-switcher span { display: none; }
  .stat { padding: 12px; }
  .stat-value { font-size: 22px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .flow-split { grid-template-columns: 1fr; }
  .tabs {
    position: fixed; left: 8px; right: 8px; bottom: 10px; z-index: 50;
    background: var(--surface); backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(17,17,19,0.15);
  }
  .tab { font-size: 12px; padding: 10px 6px; }
  .toast { left: 12px; right: 12px; bottom: 84px; max-width: none; }
}

@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:nth-child(3) { grid-column: 1 / -1; }
  .mini-grid { grid-template-columns: 1fr; }
}

/* ───────── HTML UPLOAD (admin only) ───────── */
.drop-zone {
  border: 2px dashed var(--border-2); border-radius: 14px; padding: 32px;
  background: #fafaf9; text-align: center; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.drop-zone.dragging { background: var(--brand-soft); border-color: var(--brand); }
.drop-zone .drop-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.drop-zone h4 { margin: 0; font-size: 15px; font-weight: 600; }
.drop-zone .hint { font-size: 12.5px; color: var(--muted); }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.file-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  font-size: 12.5px;
}
.file-row .f-size { color: var(--muted); margin-left: auto; }
.file-row .f-check { color: var(--green); font-weight: 700; }

/* ───────── CRM SUB-TABS ───────── */
.sub-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  padding: 0; margin-bottom: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.12s;
  white-space: nowrap; flex-shrink: 0;
}
.sub-tab:hover { color: var(--text); }
.sub-tab.active { color: var(--text); border-bottom-color: var(--brand); font-weight: 600; }

.sub-view { display: none; flex-direction: column; gap: 14px; }
.sub-view.active { display: flex; }

/* ───────── ACCOUNT MENU (buried billing) ───────── */
.account-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px; cursor: pointer;
  transition: background 0.12s;
}
.account-menu-trigger:hover { background: rgba(17,17,19,0.04); }
.account-menu-trigger .muted { font-size: 11px; }

.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(17,17,19,0.14);
  min-width: 220px; padding: 6px; display: none; z-index: 120;
}
.account-menu.open { display: block; }
.account-menu a {
  display: block; padding: 9px 12px; font-size: 13px; color: var(--text);
  border-radius: 8px; font-weight: 500;
}
.account-menu a:hover { background: var(--surface-2); }
.account-menu .sep { height: 1px; background: var(--border); margin: 4px 8px; }
.account-menu .faded { color: var(--muted-2); font-size: 11.5px; }
.account-wrap { position: relative; }

/* ───────── CLIENT SITE-VIEWER (Magna uploads, client views) ───────── */
.site-status-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--brand-soft); border: 1px solid rgba(234,88,12,0.18);
  border-radius: 12px;
}
.site-status-bar .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ───────── HIDDEN BILLING STYLES ───────── */
.billing-hidden {
  font-size: 10.5px; color: var(--muted-2); text-align: center;
  padding: 10px 0 4px; opacity: 0.65;
}
.billing-hidden a { color: var(--muted-2); text-decoration: underline; }
.billing-hidden a:hover { color: var(--muted); }

/* ───────── IMPERSONATION BANNER ───────── */
.impersonate-banner {
  position: fixed; top: 52px; left: 0; right: 0;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b;
  z-index: 150;
  padding: 8px 16px;
}
.ib-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #78350f;
}
.ib-dot { width: 8px; height: 8px; border-radius: 50%; background: #d97706; animation: pulse 1.8s ease-in-out infinite; }
.ib-text { flex: 1; }
.impersonate-banner .btn { background: #fff; border-color: #d97706; color: #78350f; }
body:has(.impersonate-banner:not([style*="none"])) { padding-top: 96px; }
body:has(.impersonate-banner:not([style*="none"])) .sidebar,
body:has(.impersonate-banner:not([style*="none"])) .admin-sidebar { top: 96px; height: calc(100vh - 96px); }

/* ───────── PIPELINE KANBAN (client CRM) ───────── */
.pipeline-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 2px 6px;
}
.pipeline-kanban { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage-col .kan-head h4 { font-size: 12px; }
.kan-drop {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 140px; padding: 4px 0;
}
.kan-drop.drop-over {
  background: var(--brand-soft); border-radius: 10px;
  outline: 2px dashed var(--brand); outline-offset: -4px;
}

.lead-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
  cursor: grab; box-shadow: 0 1px 2px rgba(17,17,19,0.04);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.lead-card:hover { border-color: var(--border-2); box-shadow: 0 2px 8px rgba(17,17,19,0.08); }
.lead-card:active { cursor: grabbing; }
.lead-card.dragging { opacity: 0.4; transform: scale(0.97); }
.lc-head { display: flex; gap: 10px; align-items: center; }
.lc-body { flex: 1; min-width: 0; }
.lc-name { font-size: 12.5px; line-height: 1.2; }
.lc-meta { font-size: 11px; }
.lc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }

.chip.xs { font-size: 10px; padding: 2px 7px; }

/* ───────── LARGE MODAL (lead editor, DNS, etc.) ───────── */
.modal.modal-lg { max-width: 560px; }
.modal-body { font-size: 13.5px; }
.modal-body .field { margin-bottom: 12px; }
.modal-body .row-btns { margin-top: 14px; }

/* ───────── GMB ROW ───────── */
.gmb-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
}

/* ───────── GOOGLE LOGIN BUTTON ───────── */
.google-btn {
  background: #fff; border: 1px solid var(--border-2); color: var(--text);
  font-weight: 600; padding: 12px 18px; font-size: 14px;
}
.google-btn:hover { background: #fafaf9; border-color: rgba(17,17,19,0.24); }

.divider-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted-2); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; margin: 18px 0;
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ───────── LANDING PAGE ───────── */
.landing {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 32px 60px;
}
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 30px;
}
.landing-nav-right { display: flex; align-items: center; gap: 14px; }
.nav-link {
  font-size: 13.5px; color: var(--muted); font-weight: 500;
}
.nav-link:hover { color: var(--text); }

.landing-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center;
  padding: 40px 0 80px;
}
.landing-h1 {
  font-size: 56px; font-weight: 900; letter-spacing: -0.025em; line-height: 1.02;
  margin: 0 0 18px; color: var(--text);
}
.landing-sub {
  font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 540px;
}
.landing-sub.center { text-align: center; margin: 0 auto 28px; }
.landing-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.btn.lg { padding: 14px 22px; font-size: 14.5px; }
.landing-trust {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 12.5px; color: var(--muted);
}

.hero-mockup {
  transform: rotate(1deg);
  filter: drop-shadow(0 30px 40px rgba(17,17,19,0.12));
}

.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(17,17,19,0.18);
  aspect-ratio: 4/5;
  max-width: 460px;
  margin: 0 auto;
}
.hero-photo-main {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo-stat {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
}
.stat-badge {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgba(17,17,19,0.08);
  box-shadow: 0 8px 20px rgba(17,17,19,0.14);
  font-size: 12.5px;
}

/* TRADE PHOTO STRIP */
.trade-strip { padding: 40px 0 50px; text-align: center; }
.trade-strip > span { display: block; margin-bottom: 18px; }
.trade-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.trade-tile {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/5; box-shadow: 0 4px 14px rgba(17,17,19,0.08);
  transition: transform 0.2s ease;
}
.trade-tile:hover { transform: translateY(-3px); }
.trade-tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.95); }
.trade-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(17,17,19,0.78));
  color: #fff; font-size: 12px; font-weight: 700;
  text-align: left;
}

.how { padding: 80px 0 60px; text-align: center; }
.landing-h2 {
  font-size: 40px; font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 12px; color: var(--text);
}
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px; text-align: left;
}
.how-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; box-shadow: 0 1px 2px rgba(17,17,19,0.03);
}
.how-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.how-card h3 { font-size: 16px; margin: 0 0 6px; }
.how-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

.pricing { padding: 40px 0 60px; text-align: center; }
.pricing-card {
  max-width: 480px; margin: 30px auto 0;
  background: var(--surface); border: 2px solid var(--brand); border-radius: 18px;
  padding: 30px 28px; text-align: left;
  box-shadow: 0 12px 40px rgba(234,88,12,0.15);
  position: relative;
}
.pricing-card ul { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pricing-card .plan-price { font-size: 40px; margin: 10px 0 14px; }
.pricing-card .btn { margin-top: 10px; }

.login-section {
  padding: 60px 0;
  display: flex; justify-content: center;
}
.login-card {
  max-width: 440px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 34px;
  box-shadow: 0 10px 40px rgba(17,17,19,0.06);
}

.demo-accounts {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px dashed var(--border-2);
}
.demo-accounts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-acct {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left;
  transition: all 0.12s;
}
.demo-acct:hover { border-color: var(--brand); background: var(--brand-soft); }
.demo-acct strong { font-size: 12.5px; }

.landing-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 30px 0 10px; border-top: 1px solid var(--border); margin-top: 40px;
  gap: 20px; flex-wrap: wrap;
}

@media (max-width: 1000px) {
  .landing-hero { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .hero-photo { max-width: 320px; }
  .landing-h1 { font-size: 40px; }
  .landing-h2 { font-size: 30px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .trade-grid { grid-template-columns: repeat(3, 1fr); }
  .pipeline-kanban { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .how-grid { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .landing { padding: 20px 16px 40px; }
  .landing-nav-right .nav-link { display: none; }
}
