/* FIELDCAST owner review console — mobile-first, dark, brand orange. Matches the login email look. */
:root {
  --bg: #0d1b12;
  --surface: #14261a;
  --surface-2: #1a3123;
  --border: #2b4632;
  --border-soft: #223a2a;
  --text: #eaf3ec;
  --muted: #9fb6a6;
  --accent: #ff6a2b;
  --accent-ink: #1a0d05;
  --danger: #ff6a6a;
  --ok: #4ade80;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(14px);
  background: rgba(13, 27, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.brand-sub { color: var(--muted); font-size: 14px; margin-right: auto; }
.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.ghost:hover { color: var(--text); border-color: var(--muted); }

.view { max-width: 640px; margin: 0 auto; padding: 16px; }

/* login */
.login-card { text-align: center; padding: 28px 22px; }
.login-card h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.02em; }
#login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
#email {
  padding: 15px 16px; font-size: 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
#email:focus { outline: none; border-color: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* queue */
.queue-meta { color: var(--muted); font-size: 13px; margin: 4px 2px 14px; }
.queue { display: flex; flex-direction: column; gap: 16px; }

.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--border-soft);
}
.platform {
  font-weight: 800; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 9px; border-radius: 999px;
}
.biz { color: var(--muted); font-size: 13px; margin-right: auto; }
.verdict-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.verdict-chip.pass { color: var(--ok); background: rgba(74, 222, 128, 0.12); }
.verdict-chip.flag { color: var(--danger); background: rgba(255, 106, 106, 0.12); }
.verdict-chip.exc  { color: var(--accent); background: rgba(255, 106, 43, 0.14); }

.captions { padding: 8px 12px 4px; }
.cap {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.cap:hover { background: var(--surface-2); }
.cap.sel { border-color: var(--accent); background: var(--surface-2); }
.cap-radio {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; border: 2px solid var(--border);
}
.cap.sel .cap-radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface-2); }
.cap-body { flex: 1; min-width: 0; }
.cap-text { font-size: 16px; line-height: 1.45; }
.cap-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.cap-tags { color: var(--accent); opacity: 0.8; }

.edit-area {
  margin: 4px 12px 0; display: none;
}
.edit-area.open { display: block; }
.edit-area textarea {
  width: 100%; min-height: 84px; padding: 12px; font: inherit; font-size: 16px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical;
}
.edit-area textarea:focus { outline: none; border-color: var(--accent); }
.edit-hint { color: var(--muted); font-size: 12px; margin: 6px 2px 0; }

.actions {
  display: flex; gap: 10px; padding: 14px 16px 16px;
}
button.primary, button.secondary, button.subtle {
  flex: 1; padding: 14px; font-size: 15px; font-weight: 800;
  border-radius: 12px; border: none; cursor: pointer; letter-spacing: -0.01em;
}
button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:active { transform: translateY(1px); }
button.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); flex: 0 0 auto; padding: 14px 16px; }
button.subtle { background: transparent; color: var(--muted); border: 1px solid var(--border); flex: 0 0 auto; padding: 14px 16px; }
button:disabled { opacity: 0.5; cursor: default; }

.block-note {
  margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 106, 106, 0.1); color: var(--danger); font-size: 13px;
}

/* empty */
.empty { text-align: center; padding: 60px 20px; }
.empty-emoji { font-size: 42px; }
.empty h2 { margin: 12px 0 6px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 18px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); z-index: 20;
  animation: rise 0.2s ease;
}
.toast.err { border-color: var(--danger); color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 560px) {
  .login-card h1 { font-size: 28px; }
}

/* ── dashboard sections ─────────────────────────────────────────────────────── */
.section { max-width: 640px; margin: 0 auto; padding: 6px 16px 22px; }
.section-h { font-size: 19px; margin: 18px 2px 2px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.section-sub { margin: 2px 2px 14px; font-size: 13px; }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }

/* stat strip */
.stats { max-width: 640px; margin: 14px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat-n { font-size: 24px; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.2; }

/* onboarding */
.onboard-card { text-align: center; padding: 30px 22px; }
.onboard-emoji { font-size: 40px; }
.onboard-card h2 { margin: 10px 0 8px; font-size: 22px; }

/* shot cards */
.cards { display: flex; flex-direction: column; gap: 14px; }
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.shot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.shot-type { font-weight: 800; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.shot-prop { color: var(--muted); font-size: 13px; margin-right: auto; }
.shot-hold { color: var(--muted); font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.shot-instruction { font-size: 16px; line-height: 1.45; font-weight: 600; }
.shot-framing { color: var(--muted); font-size: 13px; margin-top: 6px; }
.shot-why { color: var(--muted); font-size: 13px; margin-top: 8px; font-style: italic; }
.shot-coach { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; background: rgba(255,106,43,0.08); border-radius: 10px; font-size: 14px; line-height: 1.45; }
.coach-emoji { flex: 0 0 auto; }

/* recent posts */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; }
.recent-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.recent-cap { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform.sm { font-size: 10px; padding: 3px 7px; }
.status-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: 0 0 auto; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.status-chip.s-published { color: var(--ok); border-color: rgba(74,222,128,0.3); }
.status-chip.s-approved { color: var(--accent); border-color: rgba(255,106,43,0.3); }
.status-chip.s-in_review { color: #ffd27a; border-color: rgba(255,210,122,0.3); }
.empty-inline { text-align: center; padding: 20px; font-size: 14px; }

/* ready to publish */
.publish-list { display: flex; flex-direction: column; gap: 12px; }
.pub-row { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.pub-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pub-warn { font-size: 11px; font-weight: 700; color: #ffd27a; background: rgba(255,210,122,0.12); padding: 3px 9px; border-radius: 999px; }
.pub-note { font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.pub-cap { font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
.pub-row button.act-publish { width: 100%; padding: 13px; font-size: 15px; font-weight: 800; border-radius: 12px; border: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.pub-row button.act-publish:disabled { opacity: 0.55; cursor: default; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* settings: brand kit + accounts */
.settings-card { padding: 20px; }
.logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.logo-preview { width: 96px; height: 96px; flex: 0 0 96px; border: 1px dashed var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; text-align: center; background: var(--bg); overflow: hidden; }
.logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-actions { flex: 1; }
.logo-upload-btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 11px 18px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.field-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.corner-grid { display: grid; grid-template-columns: 64px 64px; grid-template-rows: 96px 96px; gap: 8px; }
.corner { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.corner::after { content: ''; position: absolute; width: 22px; height: 14px; background: var(--muted); border-radius: 3px; opacity: 0.5; }
.corner[data-c="TL"]::after { top: 8px; left: 8px; }
.corner[data-c="TR"]::after { top: 8px; right: 8px; }
.corner[data-c="BL"]::after { bottom: 8px; left: 8px; }
.corner[data-c="BR"]::after { bottom: 8px; right: 8px; }
.corner.sel { border-color: var(--accent); }
.corner.sel::after { background: var(--accent); opacity: 1; }
.accounts-list { display: flex; flex-direction: column; gap: 10px; }
.account-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.account-left { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.account-name { font-weight: 700; font-size: 15px; }
.account-handle { color: var(--ok); font-size: 12px; }
.account-row button { flex: 0 0 auto; padding: 9px 16px; font-size: 13px; font-weight: 700; border-radius: 10px; cursor: pointer; }
.account-row button.secondary { background: var(--accent); color: var(--accent-ink); border: none; }
.account-row button.subtle { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.topbar .ghost + .ghost { margin-left: 0; }

/* what's working (learned weights + top post) */
.stats-btn { font-size: 12px; padding: 5px 10px; margin-left: auto; }
.weights-list { display: flex; flex-direction: column; gap: 12px; }
.weight-row { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; }
.weight-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.weight-name { font-weight: 700; font-size: 15px; }
.weight-tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.weight-tag.up { color: var(--ok); background: rgba(74,222,128,0.12); }
.weight-tag.down { color: var(--muted); background: var(--surface-2); }
.weight-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.weight-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ffb07a); border-radius: 999px; transition: width .3s; }
.top-post { background: var(--surface-2); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.top-post-label { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.03em; }
.top-post-cap { font-size: 15px; margin: 6px 0 10px; line-height: 1.4; }
.top-post-stats { display: flex; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* plan-steering note (learning made visible) */
.steer-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; color: var(--text); }
.steer-emoji { flex: 0 0 auto; }

/* speed-to-lead inbox */
.leads-list { display: flex; flex-direction: column; gap: 12px; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow); }
.lead-card.new { border-color: var(--accent); }
.lead-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lead-name { font-weight: 800; font-size: 16px; }
.lead-src { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; margin-left: auto; }
.lead-wants { color: var(--text); font-size: 14px; margin-bottom: 4px; }
.lead-contact { margin: 4px 0 12px; }
.lead-link { color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.lead-actions { display: flex; gap: 8px; }
.lead-actions button { flex: 1; padding: 11px; font-size: 14px; font-weight: 700; border-radius: 10px; cursor: pointer; }
.lead-actions button.primary { background: var(--accent); color: var(--accent-ink); border: none; flex: 2; }
.lead-actions button.subtle { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.lead-reply { margin: 10px 0 4px; }
.lead-reply-text { width: 100%; min-height: 72px; padding: 12px; font: inherit; font-size: 15px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical; }
.lead-reply-send { display: flex; gap: 8px; margin-top: 8px; }
.send-link { flex: 2; text-align: center; padding: 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; font-size: 14px; }
.lead-reply-send button.subtle { flex: 1; padding: 12px; border-radius: 10px; background: transparent; color: var(--muted); border: 1px solid var(--border); font-weight: 700; cursor: pointer; }

/* self-serve onboarding wizard */
.onboard-card .fld { display: block; text-align: left; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.onboard-card .fld input, .onboard-card select { width: 100%; margin-top: 6px; padding: 13px; font-size: 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.onboard-card .fld input:focus, .onboard-card select:focus { outline: none; border-color: var(--accent); }
.fld-row { display: flex; gap: 10px; }
.fld-row .fld { flex: 1; }
.fld-row .small-fld { flex: 0 0 90px; }
.onboard-card .primary { width: 100%; margin-top: 20px; padding: 15px; font-size: 16px; font-weight: 800; border: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.onboard-card .primary:disabled { opacity: .6; }
.job-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 10px 0; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px; }
.job-row select, .job-row input { padding: 12px; font-size: 15px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.add-job { width: 100%; margin-top: 6px; padding: 12px; font-size: 14px; font-weight: 700; border-radius: 10px; background: transparent; color: var(--muted); border: 1px dashed var(--border); cursor: pointer; }

/* plan / subscribe */
.plan-tiers { display: flex; flex-direction: column; gap: 12px; }
.tier-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; }
.tier-name { font-weight: 800; font-size: 17px; }
.tier-price { color: var(--accent); font-weight: 800; font-size: 16px; }
.tier-blurb { margin: 4px 0 12px; }
.tier-card button.primary { width: 100%; padding: 13px; font-weight: 800; border: none; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.tier-card button:disabled { opacity: .6; }

/* ── account-connect picker (self-serve, audit E5) ─────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6, 14, 9, 0.72);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  animation: sheet-fade 0.15s ease-out;
}
@media (min-width: 560px) { .sheet-overlay { align-items: center; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  animation: sheet-rise 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sheet-rise { from { transform: translateY(16px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.sheet-title { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.sheet-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; max-height: 52vh; overflow-y: auto; }
.sheet-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  color: var(--text); border-radius: 12px; padding: 13px 15px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.sheet-choice:hover { border-color: var(--accent); background: #1e3728; }
.sheet-choice.busy { opacity: 0.6; cursor: progress; }
.sheet-choice-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-choice-plat { flex-shrink: 0; text-transform: capitalize; }
.sheet-cancel { align-self: stretch; margin-top: 2px; }

/* ── Post to Google (GBP drafts, audit N9) ─────────────────────────────────── */
.gbp-list { display: flex; flex-direction: column; gap: 12px; }
.gbp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.gbp-body { color: var(--text); font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.gbp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gbp-actions .primary, .gbp-actions .secondary {
  flex: 1 1 auto; min-width: 130px; text-align: center;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.gbp-open { padding: 11px 16px; border-radius: 10px; }

/* GBP connect banner + published state (audit N9 real API) */
.gbp-connect {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 4px;
}
.gbp-connect-txt { font-size: 14px; color: var(--text); flex: 1 1 220px; }
.gbp-connect .primary { flex: 0 0 auto; }
.gbp-card.gbp-done { opacity: .62; border-color: var(--ok); }
.gbp-card.gbp-done .gbp-open { background: var(--ok); border-color: var(--ok); cursor: default; }

/* Review preview — SEE the reel before approving (audit #8) */
.post-preview { position: relative; margin: 4px 0 12px; border-radius: 12px; overflow: hidden; background: #000; }
.post-video { width: 100%; max-height: 420px; display: block; background: #000; border-radius: 12px; }
.preview-hook {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; pointer-events: none;
  background: rgba(0,0,0,.6); color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 7px 10px; border-radius: 6px; width: fit-content; max-width: 88%;
}
.post-passes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pass-badge {
  font-size: 12px; font-weight: 700; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px 10px;
}

/* ── analytics panel (audit #5) ─────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: var(--space-4); }
.a-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.a-big { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.a-sub { font-size: 13px; }
.sparkline { margin-top: 4px; width: 100%; height: 44px; }
.spark-svg { width: 100%; height: 44px; display: block; }
.spark-area { fill: color-mix(in oklch, var(--accent), transparent 82%); stroke: none; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--accent); }
.funnel { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.funnel-row { display: grid; grid-template-columns: 74px 1fr 28px; align-items: center; gap: 10px; }
.funnel-label { font-size: 13px; color: var(--muted); }
.funnel-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 999px; transition: width .5s ease; min-width: 3px; }
.f-new { background: var(--accent); }
.f-contacted { background: var(--accent-2, #ffd23f); }
.f-won { background: var(--ok); }
.funnel-n { font-size: 14px; font-weight: 800; text-align: right; }
@media (max-width: 720px) { .analytics-grid { grid-template-columns: 1fr; } }

/* ── lead urgency badge (audit #12) ─────────────────────────────────────────── */
.lead-age { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.age-hot { background: color-mix(in oklch, var(--ok), transparent 78%); color: var(--ok); }
.age-warm { background: color-mix(in oklch, var(--accent-2, #ffd23f), transparent 78%); color: var(--accent-2, #ffd23f); }
.age-cold { background: color-mix(in oklch, var(--danger, #ff6a6a), transparent 74%); color: var(--danger, #ff6a6a); animation: agePulse 1.8s ease-in-out infinite; }
@keyframes agePulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ── celebratory confetti (audit #7) ────────────────────────────────────────── */
.confetti-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.confetti-bit { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: .95; animation: confettiFall 2.4s linear forwards; }
@keyframes confettiFall { 0% { transform: translateY(-12px) rotate(0); opacity: 1; } 100% { transform: translateY(102vh) rotate(560deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confetti-layer { display: none; } .age-cold { animation: none; } }
