/* ═══════════════════════════════════════════════════════════════════════
   CHECKLISTAS — ESTILOS
   Paleta clara minimalista. Acento dourado sutil pra hierarquia.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces (paleta neutra clara) */
  --bg: #fafafa;
  --bg2: #f4f4f5;
  --surface: #ffffff;
  --surface2: #f9fafb;
  --border: #e4e4e7;
  --border2: #d4d4d8;

  /* Acento (verde da logo Checklistas — nomes --gold mantidos por legado) */
  --gold: #1f9d4d;
  --gold2: #27b357;
  --gold-soft: rgba(31, 157, 77, 0.08);
  --gold-medium: rgba(31, 157, 77, 0.18);

  /* Semânticas */
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --orange: #ea580c;
  --red: #dc2626;
  --teal: #0d9488;
  --pink: #db2777;

  /* Texto (escala clara) */
  --text: #18181b;
  --text2: #52525b;
  --text3: #a1a1aa;

  /* Tints sutis pra estados (badges, rows quentes/mornas/frias) */
  --hot: #fef2f2;
  --warm: #fffbeb;
  --cold: #eff6ff;
  --done: #f0fdf4;

  /* Sombras (substituem os glows escuros) */
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04), 0 1px 1px rgba(24, 24, 27, 0.03);
  --shadow-md: 0 2px 4px rgba(24, 24, 27, 0.04), 0 4px 12px rgba(24, 24, 27, 0.05);
  --shadow-lg: 0 4px 8px rgba(24, 24, 27, 0.04), 0 12px 32px rgba(24, 24, 27, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  min-height: 100vh;
  /* PWA: respeita notch do iPhone */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
/* Header também respeita o notch */
.header {
  padding-top: env(safe-area-inset-top);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── GATE ── */
.gate {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 32px;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
}
.gate-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.gate-logo::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.gate-title { font-size: 14px; color: var(--text2); margin-top: -6px; }
.gate-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
}
.gate-input:focus { border-color: var(--gold); }
.gate-input::placeholder { letter-spacing: 0; color: var(--text3); font-family: 'DM Sans', sans-serif; }
.gate-btn {
  width: 100%;
  background: var(--gold); color: #0d0a00;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 13px;
  border: none; border-radius: 8px;
  padding: 13px; cursor: pointer;
  transition: opacity .15s;
}
.gate-btn:hover { opacity: .85; }
.gate-error { color: var(--red); font-size: 12px; display: none; text-align: center; }
.gate.hidden { display: none; }

/* ── HEADER ── */
.header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.logo::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.logo sub {
  font-size: 10px; font-weight: 400;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .5px;
  margin-left: 2px;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text2);
}
.user-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.sync-indicator {
  font-size: 10px;
  color: var(--text3);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sync-indicator.syncing { color: var(--blue); border-color: var(--blue); }
.sync-indicator.error { color: var(--red); border-color: var(--red); }
.sync-indicator.ok { color: var(--green); }

/* ── TABS ── */
.tabs-bar {
  display: flex;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab-btn {
  font-family: 'Syne', sans-serif;
  font-size: 12px; font-weight: 700;
  padding: 11px 18px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .3px;
  transition: all .15s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-btn .badge {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  background: var(--red); color: #fff;
}

/* ── MAIN LAYOUT: BOARDS ── */
.boards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
}
.boards-row.boards-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  min-height: 360px;
}
.board-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.board-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800;
  letter-spacing: .3px;
}
.board-title.acao { color: var(--orange); }
.board-title.followup { color: var(--purple); }
.board-counter {
  font-size: 11px;
  color: var(--text2);
  padding: 4px 10px;
  background: var(--bg2);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
}
.board-empty {
  text-align: center;
  color: var(--text3);
  padding: 48px 20px;
  font-size: 13px;
}

/* ── LEAD CARD (dentro de board) ── */
.lead-card {
  display: flex; flex-direction: column; gap: 14px;
}
.lead-big-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.lead-big-phone {
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  color: var(--text2);
}
.lead-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
}
.lead-tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.lead-tag.origin-rua { color: var(--red); border-color: var(--red); }
.lead-tag.origin-indicacao { color: var(--green); border-color: var(--green); }
.lead-tag.origin-proximos { color: var(--teal); border-color: var(--teal); }
.lead-tag.origin-corujao { color: var(--blue); border-color: var(--blue); }
.lead-tag.origin-trafego_pago { color: var(--pink); border-color: var(--pink); }
.lead-tag.origin-uber { color: var(--purple); border-color: var(--purple); }
.lead-tag.temp-hot { color: var(--red); border-color: var(--red); }
.lead-tag.temp-warm { color: var(--orange); border-color: var(--orange); }
.lead-tag.temp-cold { color: var(--blue); border-color: var(--blue); }

.checklist { display: flex; flex-direction: column; gap: 2px; }
.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.check-row:hover { border-color: var(--border2); }
.check-row.done {
  background: var(--done);
  border-color: #1e4a2e;
  color: var(--green);
}
.check-row.current {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.check-row.done .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #051810;
}
.check-row.current .check-box {
  border-color: var(--gold);
  color: var(--gold);
}
.check-label { flex: 1; }

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.action-buttons.three { grid-template-columns: 1fr 1fr 1fr; }
.btn {
  padding: 11px 12px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn:hover { border-color: var(--border2); }
.btn.wa { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; font-weight: 600; }
.btn.wa:hover { background: #dcfce7; border-color: #86efac; color: #14532d; }
.btn.phone { background: #eff6ff; border-color: #bfdbfe; color: var(--blue); font-weight: 600; }
.btn.phone:hover { background: #dbeafe; border-color: #93c5fd; }
.btn.sms { background: #f0fdfa; border-color: #99f6e4; color: var(--teal); font-weight: 600; }
.btn.sms:hover { background: #ccfbf1; border-color: #5eead4; }
.btn.tried { background: var(--surface2); color: var(--text2); }
.btn.danger { color: var(--red); border-color: #fecaca; background: #fef2f2; }
.btn.danger:hover { background: #fee2e2; border-color: #fca5a5; }
.btn.warn { color: var(--orange); border-color: #fed7aa; background: #fff7ed; }
.btn.warn:hover { background: #ffedd5; border-color: #fdba74; }
.btn.primary { background: var(--gold); color: #ffffff; border-color: var(--gold); font-weight: 600; }
.btn.primary:hover { background: #17813d; border-color: #17813d; }
.btn.success { background: #f0fdf4; color: var(--green); border-color: #86efac; font-weight: 600; }

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.nav-btn {
  flex: 1;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
}
.nav-btn:hover { border-color: var(--border2); color: var(--text); }

.lead-note-box {
  padding: 10px 12px;
  background: var(--bg2);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 100px;
  overflow-y: auto;
}

/* ── DASHBOARD BAR (totais rapidos) ── */
.dash-bar {
  display: flex; gap: 10px;
  padding: 12px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.dash-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex; flex-direction: column;
  min-width: 70px;
}
.dash-stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  line-height: 1;
}
.dash-stat-label {
  font-size: 9px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}
.dash-birthdays {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--text2);
  max-width: 350px;
  overflow: hidden;
}
.dash-birthdays.has-bday { border-color: var(--pink); color: var(--pink); }

/* ── LISTA CENTRAL ── */
.list-section {
  padding: 0 24px 80px;
}
.list-header {
  position: sticky; top: 56px;
  background: var(--bg);
  padding: 12px 0;
  z-index: 100;
  display: flex; gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.search-input {
  flex: 1; min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
}
.search-input:focus { border-color: var(--gold); }
.filter-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 10px;
  font-size: 12px;
  outline: none;
}
.filter-select:focus { border-color: var(--gold); }
.list-table {
  margin-top: 14px;
}
.list-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 120px 80px 80px 100px 60px;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.list-row > * { min-width: 0; overflow: hidden; }
.list-row:hover { background: var(--surface); }
.list-row.hot { border-left: 3px solid var(--red); }
.list-row.warm { border-left: 3px solid var(--orange); }
.list-row.cold { border-left: 3px solid var(--blue); }
.list-row.done { opacity: .5; }
.list-row.aguardando-row { background: rgba(74, 140, 255, 0.04); }
.list-row.aguardando-row:hover { background: rgba(74, 140, 255, 0.08); }
.list-num { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text3); white-space: nowrap; }
.list-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-phone { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-origin { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-stage { font-size: 10px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-temp { text-align: center; font-size: 16px; }
.list-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.list-empty { padding: 40px; text-align: center; color: var(--text3); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(10px);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 800;
}
.modal-subtitle { font-size: 11px; color: var(--text2); margin-top: 2px; font-family: 'Geist Mono', monospace; }
.modal-close {
  background: none; border: none;
  color: var(--text3); font-size: 20px;
  cursor: pointer; line-height: 1; padding: 4px;
}
.modal-close:hover { color: var(--text); }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── AI PANEL ── */
.ai-panel {
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
  border: 1px solid var(--purple);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.ai-panel h4 {
  color: var(--purple);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  margin-bottom: 8px;
}
.ai-panel .ai-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ai-level.alta { background: #fef2f2; color: var(--red); border: 1px solid var(--red); }
.ai-level.media { background: #fff7ed; color: var(--orange); border: 1px solid var(--orange); }
.ai-level.baixa { background: #f0fdf4; color: var(--green); border: 1px solid var(--green); }
.ai-panel ul { padding-left: 16px; margin: 6px 0; font-size: 12px; color: var(--text2); line-height: 1.6; }
.ai-panel .ai-summary { font-size: 12px; color: var(--text); line-height: 1.6; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.timeline-item {
  display: flex; gap: 10px;
  padding: 8px 10px;
  background: var(--bg2);
  border-left: 2px solid var(--border);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}
.timeline-item.whatsapp_sent { border-left-color: var(--green); }
.timeline-item.whatsapp_received { border-left-color: var(--teal); }
.timeline-item.tentei_contato { border-left-color: var(--orange); }
.timeline-item.stage_change { border-left-color: var(--gold); }
.timeline-item.ai_suggestion { border-left-color: var(--purple); }
.timeline-item.call { border-left-color: var(--blue); }
.timeline-date { color: var(--text3); font-family: 'Geist Mono', monospace; font-size: 10px; min-width: 85px; }
.timeline-content { flex: 1; color: var(--text2); line-height: 1.5; }

/* ── RELATORIOS ── */
.reports { padding: 20px 24px 80px; }
.reports-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.report-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
.bar-list { display: flex; flex-direction: column; gap: 8px; }
.bar-item { display: flex; flex-direction: column; gap: 4px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; }
.bar-label .v { font-family: 'Geist Mono', monospace; color: var(--text2); }
.bar-track { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); transition: width .3s; }

/* ── CHANGELOG ── */
.changelog-list { padding: 20px 24px; max-width: 700px; }
.changelog-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.changelog-version {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  color: var(--gold);
  font-weight: 800;
}
.changelog-date {
  font-size: 11px;
  color: var(--text3);
  font-family: 'Geist Mono', monospace;
  margin-left: 8px;
}
.changelog-title {
  font-size: 13px;
  color: var(--text);
  margin: 6px 0 10px;
}
.changelog-change {
  padding: 4px 0;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}
.changelog-change::before {
  content: '▸ ';
  color: var(--gold);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.toast.show { opacity: 1; }
.toast.error { border-color: var(--red); color: var(--red); }

/* ── IMPORT PANEL ── */
.import-panel { padding: 24px; max-width: 720px; }
.import-panel h2 { font-family: 'Syne', sans-serif; font-size: 17px; margin-bottom: 6px; }
.import-panel .sub { font-size: 12px; color: var(--text2); margin-bottom: 20px; line-height: 1.6; }
.import-hint { font-size: 11px; color: var(--text3); line-height: 1.7; margin-top: 8px; padding: 10px; background: var(--bg2); border-radius: 6px; }
.import-hint code {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Geist Mono', monospace;
  color: var(--teal);
}

/* ── ARCHIVE MODAL ── */
.archive-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.archive-card {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(31, 157, 77, 0.15);
}
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.archive-close {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.archive-close:hover { color: var(--text); border-color: var(--border2); }

/* ── SWIPE ANIMATION ao descartar lead no Quadro Ação ── */
.board-card.swiping-out {
  animation: swipeOut 320ms cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes swipeOut {
  0%   { transform: translateX(0) rotate(0); opacity: 1; }
  60%  { transform: translateX(40%) rotate(2deg); opacity: 0.6; }
  100% { transform: translateX(120%) rotate(4deg); opacity: 0; }
}
.board-card.swiping-in {
  animation: swipeIn 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes swipeIn {
  0%   { transform: translateX(-30%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Botão de arquivar destacado */
.btn-archive {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--orange);
  font-weight: 500;
}
.btn-archive:hover {
  background: #ffedd5;
  border-color: var(--orange);
}


.btn-mini {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 26px;
  padding: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text2);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  transition: all .12s;
}
.btn-mini:hover { border-color: var(--border2); color: var(--text); }
.btn-mini.wa:hover { color: var(--green); border-color: var(--green); background: #f0fdf4; }
.btn-mini.phone:hover { color: var(--blue); border-color: var(--blue); background: #eff6ff; }
.btn-mini.warn { color: var(--orange); }
.btn-mini.warn:hover { background: #fff7ed; border-color: var(--orange); }
.btn-mini.danger { color: var(--red); }
.btn-mini.danger:hover { background: #fef2f2; border-color: var(--red); }

/* Linha selecionada */
.list-row.selected {
  background: rgba(31, 157, 77, 0.08) !important;
  border-left-color: var(--gold);
}

/* ── BULK BAR (barra fixa de ações em lote) ── */
.bulk-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 400;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(31, 157, 77, 0.2);
  max-width: 95vw;
  flex-wrap: wrap;
}
.bulk-count {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}
.bulk-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .bulk-bar { padding: 8px 10px; gap: 8px; bottom: 8px; }
  .bulk-count { font-size: 11px; }
  .bulk-actions select, .bulk-actions button { font-size: 10px !important; padding: 4px 8px !important; }
}


/* ── KANBAN ── */

.kanban-content { padding: 16px 24px 60px; }
.kanban-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.kanban-stats { display: flex; gap: 16px; }
.kanban-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex; flex-direction: column;
}
.k-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 18px; line-height: 1;
}
.k-lbl {
  font-size: 9px; color: var(--text2);
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 3px;
}

.kanban-board {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  min-height: 60vh;
}
.kanban-col {
  flex: 0 0 270px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  max-height: 75vh;
}
.kanban-col-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 10px 10px 0 0;
  background: var(--surface);
}
.kanban-col-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 6px;
}
.kanban-col-count {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--text2);
}
.kanban-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .15s;
}
.kanban-col-body.drag-over {
  background: rgba(31, 157, 77, 0.08);
}
.kanban-empty {
  text-align: center;
  color: var(--text3);
  font-size: 11px;
  padding: 20px 0;
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: grab;
  transition: all .15s;
  position: relative;
}
.kanban-card:hover {
  border-color: var(--border2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }
.kanban-card.hot { border-left-color: var(--red); }
.kanban-card.warm { border-left-color: var(--orange); }
.kanban-card.cold { border-left-color: var(--blue); }
.kc-name {
  font-weight: 500; font-size: 13px;
  margin-bottom: 2px;
  line-height: 1.3;
}
.kc-phone {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
}
.kc-meta {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 6px;
}
.kc-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.kc-note {
  font-size: 11px;
  color: var(--text2);
  font-style: italic;
  padding: 6px 8px;
  background: var(--bg2);
  border-radius: 4px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.kc-actions {
  display: flex; gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 4px;
}
.kc-act {
  flex: 1;
  padding: 5px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .12s;
  color: var(--text);
}
.kc-act:hover { border-color: var(--border2); background: var(--surface2); }
.kc-act.wa:hover { color: var(--green); border-color: var(--green); }
.kc-act.phone:hover { color: var(--blue); border-color: var(--blue); }

@media (max-width: 700px) {
  .kanban-board { padding-bottom: 0; }
  .kanban-col { flex: 0 0 240px; }
}


/* ── SELETOR DE LISTA NOS QUADROS ── */
.board-list-picker { margin-bottom: 12px; }
.board-list-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text2);
  padding: 7px 10px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.board-list-select:focus, .board-list-select:hover { border-color: var(--gold); color: var(--text); }

.lead-tag.list-tag { color: var(--gold); border-color: rgba(31,157,77,.4); opacity: .9; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.list-name-cell { min-width: 0; overflow: hidden; }

@media (max-width: 900px) {
  .boards-row { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr 28px 60px !important; gap: 6px; }
  .list-row .list-num, .list-row .list-origin, .list-row .list-stage, .list-row .list-actions { display: none; }
}
@media (max-width: 600px) {
  .header { padding: 0 12px; }
  .dash-bar { padding: 10px 12px; }
  .boards-row { padding: 12px; gap: 12px; }
  .board { padding: 16px; }
  .lead-big-name { font-size: 18px; }
  .lead-big-phone { font-size: 13px; }
  .list-section { padding: 0 12px 80px; }
  .tab-btn { padding: 10px 12px; font-size: 11px; }
  .action-buttons, .action-buttons.three { grid-template-columns: 1fr 1fr; }
  .lead-tag.list-tag { max-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.2 — TAPA MOBILE-FIRST (black & gold refinado)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PRESS FEEDBACK universal ── */
.btn, .nav-btn, .check-row, .tab-btn, .filter-select, .lead-tag,
.bnav-item, .more-sheet-item, .dash-stat, .list-row,
button:not([disabled]) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active:not([disabled]),
.nav-btn:active,
.check-row:active,
.bnav-item:active,
.more-sheet-item:active,
.list-row:active {
  transform: scale(0.97);
  transition: transform .08s ease-out;
}
.btn { transition: transform .12s ease-out, border-color .15s, background .15s, box-shadow .15s; }

/* ── REFINAMENTO black & gold (versão light) ── */
body {
  background: var(--bg);
}
.btn.primary {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover { background: #17813d; border-color: #17813d; }
.btn.primary:active { box-shadow: none; }
.tab-btn.active { font-weight: 700; }
.check-row.current { box-shadow: 0 0 0 1px var(--gold-medium) inset; }

/* ── BEEFY WhatsApp button (light) ── */
.btn.wa {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: var(--shadow-sm);
}
.btn.wa:hover {
  background: #dcfce7;
  border-color: #3ecf6e;
  border-color: #4ade80;
  color: #14532d;
}
.btn.wa:active { transform: scale(0.97); }

/* ── DASHBAR compacta mobile (chips horizontais) ── */
@media (max-width: 700px) {
  .dash-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 8px 12px;
    gap: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .dash-bar::-webkit-scrollbar { display: none; }
  .dash-stat {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
    padding: 6px 10px;
    border-radius: 999px;
    scroll-snap-align: start;
  }
  .dash-stat-val { font-size: 14px; }
  .dash-stat-label { font-size: 9px; margin-top: 0; }
  .dash-birthdays {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    max-width: none;
  }
}

/* ── BOTTOM NAV (mobile only) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(24, 24, 27, 0.04);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 300;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
  align-items: end;
}
.bnav-item {
  background: none;
  border: none;
  color: var(--text3);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  min-height: 52px;
  font-family: inherit;
  transition: color .15s;
}
.bnav-item .bnav-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.bnav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
}
.bnav-item.active { color: var(--gold); }
.bnav-item.active::before {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}
.bnav-badge {
  position: absolute;
  top: 4px; right: 22%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg);
}
/* FAB Nova Lista (centro, destacado) */
.bnav-fab { position: relative; }
.bnav-fab-bubble {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-top: -22px;
  box-shadow:
    0 4px 12px rgba(184, 134, 42, 0.35),
    0 0 0 4px var(--bg);
  transition: transform .15s, box-shadow .15s;
}
.bnav-fab-bubble svg {
  width: 26px; height: 26px;
  stroke-width: 2.5;
}
.bnav-fab:active .bnav-fab-bubble {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(184, 134, 42, 0.3), 0 0 0 4px var(--bg);
}
.bnav-fab .bnav-fab-label {
  font-weight: 700;
  color: var(--gold);
  font-size: 10px;
  margin-top: 2px;
}
.bnav-fab.active .bnav-fab-bubble {
  box-shadow: 0 6px 16px rgba(184, 134, 42, 0.4), 0 0 0 4px var(--bg);
}
.bnav-fab.active::before { display: none; }

/* ── MAIS DRAWER ── */
.more-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.more-sheet-overlay.open { opacity: 1; pointer-events: auto; }
.more-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg2) 100%);
  border-top: 1px solid rgba(31,157,77,.18);
  border-radius: 18px 18px 0 0;
  padding: 8px 12px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.32,.72,0,1);
  max-height: 75vh;
  overflow-y: auto;
}
.more-sheet-overlay.open .more-sheet { transform: translateY(0); }
.more-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 6px auto 14px;
}
.more-sheet-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text3);
  padding: 0 4px 10px;
}
.more-sheet-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  position: relative;
  transition: background .15s;
}
.more-sheet-item:hover { background: var(--surface2); }
.more-sheet-item span:first-of-type { flex: 1; }
.more-sheet-item.more-sheet-danger { color: var(--red); margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; }
.more-sheet-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── STICKY ACTIONS no card do Quadro (mobile) ── */
@media (max-width: 700px) {
  /* Esconde top tabs no mobile, usa bottom nav */
  .tabs-bar { display: none; }

  /* Mostra bottom nav */
  .bottom-nav { display: grid; }

  /* Reserva espaço pro bottom nav */
  body { padding-bottom: 78px; }
  .list-section { padding-bottom: 100px; }

  /* Card do Quadro: ações mais beefy */
  .board { padding: 14px 12px; border-radius: 12px; }
  .lead-big-name { font-size: 20px; line-height: 1.15; }
  .lead-big-phone { font-size: 14px; }
  .lead-card { gap: 12px; }

  /* Ações primárias com altura confortável */
  .action-buttons .btn,
  .action-buttons.three .btn {
    min-height: 48px;
    font-size: 12px;
    padding: 8px 6px;
  }
  .action-buttons .btn.wa {
    min-height: 56px;
    font-size: 14px;
    font-weight: 700;
  }
  /* WhatsApp ocupa linha inteira no mobile pra dominar visualmente */
  .action-buttons.three {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .nav-btn { min-height: 44px; font-size: 11px; }

  /* Header reduzido */
  .header { height: 50px; }
  .logo { font-size: 14px; }
  .logo sub { display: none; }
  .user-chip { padding: 4px 10px 4px 6px; font-size: 11px; }
  .sync-indicator { font-size: 9px; padding: 3px 6px; }
}

/* ── NOVA LISTA evidence (CTA dourado pulsante quando vazio) ── */
.import-panel { position: relative; }
.import-panel h2::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

/* Hint flutuante quando não tem leads — direciona pra Nova Lista */
.empty-hint-banner {
  background: linear-gradient(135deg, rgba(31,157,77,.08), rgba(31,157,77,.02));
  border: 1px solid rgba(31,157,77,.25);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text2);
}
.empty-hint-banner-text { flex: 1; }
.empty-hint-banner-text strong { color: var(--gold); display: block; margin-bottom: 4px; font-family: 'Syne', sans-serif; font-size: 13px; }
.empty-hint-banner button {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #0d0a00;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31,157,77,.3);
}
.empty-hint-banner button:active { transform: scale(0.96); }

/* ── NAME EDIT INLINE PROMPT ── */
.name-edit-prompt {
  background: linear-gradient(135deg, rgba(31,157,77,.08), rgba(139,92,246,.04));
  border: 1px solid rgba(31,157,77,.3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.name-edit-prompt-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.name-edit-prompt-hint {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.5;
}
.name-edit-prompt input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.name-edit-prompt input:focus { border-color: var(--gold); }
.name-edit-prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.name-edit-prompt-actions .btn { flex: 1; min-height: 40px; font-size: 12px; }

/* ── SCROLL suave global ── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   v2.3 — OUTCOME MODAL (volta do WhatsApp/Ligação)
   ═══════════════════════════════════════════════════════════════════════ */
.outcome-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.outcome-overlay.open { opacity: 1; pointer-events: auto; }
.outcome-sheet {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg2) 100%);
  border-top: 1px solid rgba(31,157,77,.25);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(31,157,77,.08);
}
.outcome-overlay.open .outcome-sheet { transform: translateY(0); }

.outcome-handle {
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 8px auto 16px;
}
.outcome-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.outcome-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.outcome-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.outcome-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}
.outcome-close {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outcome-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.outcome-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 54px;
  transition: all .15s;
}
.outcome-opt:hover { border-color: var(--border2); background: var(--surface2); }
.outcome-opt:active { transform: scale(0.98); }
.outcome-opt .opt-emoji {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.outcome-opt .opt-label {
  flex: 1;
  line-height: 1.3;
}
.outcome-opt .opt-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  display: block;
}
.outcome-opt.opt-hot { border-color: rgba(240,64,96,.35); }
.outcome-opt.opt-hot:hover { background: rgba(240,64,96,.06); border-color: var(--red); }
.outcome-opt.opt-warm { border-color: rgba(245,158,11,.3); }
.outcome-opt.opt-warm:hover { background: rgba(245,158,11,.06); border-color: var(--orange); }
.outcome-opt.opt-cold { border-color: rgba(138,149,176,.2); }
.outcome-opt.opt-danger { border-color: rgba(240,64,96,.2); color: var(--text2); }
.outcome-opt.opt-danger:hover { background: rgba(240,64,96,.05); }

.outcome-note-wrap textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  min-height: 56px;
  resize: vertical;
  outline: none;
}
.outcome-note-wrap textarea:focus { border-color: var(--gold); }
.outcome-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.outcome-footer .btn { padding: 10px 20px; font-size: 12px; }

/* ── DUPLICIDADE entre listas (banner no card) ── */
.lead-dup-warning {
  background: linear-gradient(135deg, rgba(232,155,60,.1), rgba(232,155,60,.02));
  border: 1px solid rgba(232,155,60,.3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  color: #E89B3C;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lead-dup-warning::before {
  content: '⚠';
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.lead-dup-warning strong { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════
   v2.4 — CHECKLISTAS: painel de listas + report + outcomes timeline
   Cor âmbar (#E89B3C) separada do gold pra warnings.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PAINEL DE LISTAS ── */
.listas-panel {
  padding: 20px 24px 80px;
  max-width: 1100px;
}
.listas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.listas-loading {
  text-align: center;
  color: var(--text3);
  padding: 60px 20px;
  font-size: 13px;
}
.listas-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.listas-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.listas-empty-title { font-family: 'Syne', sans-serif; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.listas-empty-sub { font-size: 13px; line-height: 1.6; }
.listas-empty-soft { text-align: center; padding: 30px; color: var(--text3); font-size: 13px; }

.listas-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.listas-filters::-webkit-scrollbar { display: none; }
.listas-chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.listas-chip.active {
  background: var(--gold);
  color: #0d0a00;
  border-color: var(--gold);
  font-weight: 600;
}
.listas-chip:not(.active):hover { border-color: var(--border2); color: var(--text); }

/* ── CARD DE LISTA ── */
.listas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.lista-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s;
}
.lista-card:hover { border-color: var(--border2); }
.lista-card.completed { opacity: .85; }
.lista-card.archived { opacity: .6; }

.lista-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.lista-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
  min-width: 0;
}
.lista-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.lista-status-pill.status-running { background: var(--gold); color: #0d0a00; }
.lista-status-pill.status-done { background: rgba(46,204,143,.15); color: var(--green); border: 1px solid var(--green); }
.lista-status-pill.status-archived { background: var(--bg2); color: var(--text3); border: 1px solid var(--border); }

.lista-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text3);
}
.lista-origin-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.lista-card-date { font-family: 'Geist Mono', monospace; }

.lista-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lista-progress-num {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lista-num-big {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lista-num-total { font-size: 16px; color: var(--text3); font-weight: 600; }
.lista-num-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; }

.lista-progress-ring { flex-shrink: 0; }

.lista-progress-bar {
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
}
.lista-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width .4s ease-out;
}

.lista-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 6px;
}
.lista-deadline {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text2);
  border: 1px solid var(--border);
}
.lista-deadline.soon {
  color: #E89B3C;
  border-color: rgba(232,155,60,.4);
  background: rgba(232,155,60,.08);
}
.lista-deadline.expired {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  /* sem pulsação — estado estático de alta contraste */
}

.lista-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lista-cta {
  width: 100%;
  min-height: 44px;
}
.lista-card-more {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lista-mini {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 500;
}
.lista-mini-gold {
  color: var(--gold);
  border-color: rgba(31,157,77,.35);
  background: rgba(31,157,77,.04);
}
.lista-mini-gold:hover { background: rgba(31,157,77,.1); }
.lista-mini-conclude {
  color: var(--green);
  border-color: var(--green);
  background: rgba(46,204,143,.06);
}

/* ── DUPLICATE MODAL ── */
.dup-banner {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.dup-banner-block {
  background: linear-gradient(135deg, rgba(240,64,96,.1), rgba(240,64,96,.02));
  border: 1px solid var(--red);
  color: var(--red);
}
.dup-banner-warn {
  background: linear-gradient(135deg, rgba(232,155,60,.1), rgba(232,155,60,.02));
  border: 1px solid rgba(232,155,60,.4);
  color: #E89B3C;
}
.dup-banner strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.dup-banner-sub { font-size: 11px; color: var(--text2); line-height: 1.5; }
.dup-list {
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  font-size: 12px;
  color: var(--text2);
}
.dup-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dup-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

/* ── OUTCOMES HISTORY (no modal de perfil) ── */
.outcomes-section {
  margin-top: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.outcomes-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outcome-history-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left-width: 3px;
}
.outcome-history-item.opt-hot { border-left-color: var(--red); }
.outcome-history-item.opt-warm { border-left-color: #E89B3C; }
.outcome-history-item.opt-cold { border-left-color: var(--text3); }
.outcome-history-item.opt-danger { border-left-color: var(--red); opacity: .85; }
.outcome-history-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.outcome-history-body { flex: 1; min-width: 0; }
.outcome-history-headline {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
.outcome-list-tag {
  font-size: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 8px;
  color: var(--gold);
  margin-left: 6px;
  white-space: nowrap;
  font-weight: 400;
}
.outcome-history-meta {
  font-size: 10px;
  color: var(--text3);
  font-family: 'Geist Mono', monospace;
}
.outcome-history-note {
  font-size: 12px;
  color: var(--text2);
  font-style: italic;
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--bg2);
  border-radius: 6px;
  line-height: 1.5;
}

/* ── REPORT PREVIEW (modal) ── */
.report-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text);
}
.report-bar-label {
  font-size: 12px;
  color: var(--text);
}
.report-bar-track {
  height: 6px;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
}
.report-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
}
.report-bar-num {
  text-align: right;
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  color: var(--gold);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ── MOBILE refinements ── */
@media (max-width: 700px) {
  .listas-panel { padding: 16px 12px 90px; }
  .listas-header h2 { font-size: 16px; }
  .listas-grid { grid-template-columns: 1fr; gap: 10px; }
  .lista-card { padding: 14px; gap: 10px; }
  .lista-num-big { font-size: 24px; }
  .lista-card-more { gap: 4px; }
  .lista-mini { font-size: 10px; padding: 7px 6px; }
  .outcomes-section { padding: 10px; }
  .outcome-history-icon { font-size: 18px; }
  .outcome-history-headline { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.5 — LIGHT THEME — overrides finais (substitui glow escuro por sombras)
   ═══════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* Cards e surfaces — sombra sutil em vez de borda glow */
.board,
.modal,
.lista-card,
.gate-card,
.report-card,
.changelog-entry {
  box-shadow: var(--shadow-sm);
}
.lista-card:hover,
.report-card:hover { box-shadow: var(--shadow-md); }

/* Lead tags com tints suaves de fundo */
.lead-tag { background: var(--surface); }
.lead-tag.origin-rua, .lead-tag.temp-hot { background: #fef2f2; }
.lead-tag.origin-indicacao { background: #f0fdf4; }
.lead-tag.origin-proximos { background: #f0fdfa; }
.lead-tag.origin-corujao, .lead-tag.temp-cold { background: #eff6ff; }
.lead-tag.origin-trafego_pago { background: #fdf2f8; }
.lead-tag.origin-uber { background: #f5f3ff; }
.lead-tag.temp-warm { background: #fff7ed; }
.lead-tag.list-tag { background: var(--gold-soft); }

/* Linha selecionada em listas — destaque sutil */
.list-row.selected {
  background: var(--gold-soft) !important;
  border-left-color: var(--gold) !important;
}
.list-row.hot { border-left-color: var(--red); }
.list-row.warm { border-left-color: var(--orange); }
.list-row.cold { border-left-color: var(--blue); }

/* Sync indicator — fundo claro */
.sync-indicator { background: var(--bg2); border-color: var(--border); }

/* Dash-stat e dash-birthdays — superfícies claras */
.dash-bar { background: var(--bg2); }
.dash-stat, .dash-birthdays { background: var(--surface); box-shadow: var(--shadow-sm); }
.dash-birthdays.has-bday { background: #fdf2f8; }

/* Modal overlay — escurece levemente em vez de quase opaco */
.modal-overlay { background: rgba(24, 24, 27, 0.45); backdrop-filter: blur(4px); }
.outcome-overlay { background: rgba(24, 24, 27, 0.45); }
.more-sheet-overlay { background: rgba(24, 24, 27, 0.45); }

/* Outcome sheet com sombra ao topo */
.outcome-sheet, .more-sheet { box-shadow: var(--shadow-lg); }

/* Lead-note-box, timeline-item — superfícies claras */
.lead-note-box { background: var(--bg2); }
.timeline-item { background: var(--surface2); }

/* Toast no light — borda mais nítida, fundo branco */
.toast { background: var(--surface); color: var(--text); border-color: var(--green); box-shadow: var(--shadow-md); }
.toast.error { color: var(--red); border-color: var(--red); }

/* Nav button hover light */
.nav-btn { background: var(--surface); }
.nav-btn:hover { background: var(--surface2); border-color: var(--border2); }

/* Filter select / inputs */
.filter-select, .search-input { background: var(--surface); }

/* Logo com glow gold preservado (sutil) */
.logo::before { box-shadow: 0 0 4px rgba(184, 134, 42, 0.5); }

/* User chip light */
.user-chip { background: var(--bg2); }
.user-chip::before { box-shadow: 0 0 4px rgba(22, 163, 74, 0.4); }

/* AI panel hover (light) */
.ai-panel { box-shadow: var(--shadow-sm); }

/* Tab bar light */
.tabs-bar { background: var(--surface); }

/* Gate input + button */
.gate-input { background: var(--surface); border-color: var(--border); }
.gate-btn { box-shadow: var(--shadow-sm); }
.gate-card { box-shadow: var(--shadow-lg); }

/* Status pill — versão clara */
.lista-status-pill.status-running { color: #ffffff; }
.lista-status-pill.status-done { background: #f0fdf4; }
.lista-status-pill.status-archived { background: var(--bg2); }

/* Outcomes section background — claro */
.outcomes-section { background: var(--surface2); }
.outcome-history-item { background: var(--surface); }
.outcome-history-note { background: var(--bg2); }
.outcome-list-tag { background: var(--gold-soft); border-color: var(--gold-medium); }

/* Removendo highlights dark de imports e summary */
.dup-summary { background: var(--surface2); }
.import-hint { background: var(--bg2); }
.import-hint code { background: var(--surface); }
.changelog-entry { background: var(--surface); }
.report-card { background: var(--surface); }
.timeline-item { background: var(--surface); }
.timeline-item:hover { background: var(--surface2); }

/* Tipografia — antialiasing pra ficar nítido em telas Retina */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus ring (a11y) — gold sutil */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-medium);
  outline-offset: 2px;
}

/* IMPORT (v2.6) — métodos de importação em cards claros */
.import-quick-single {
  background: linear-gradient(135deg, var(--gold-soft), rgba(31,157,77,0.02));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.import-method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.import-method-photo {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-soft), transparent);
}
.import-method-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.import-method-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.import-method-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.import-method-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.import-file-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px;
  font-size: 12px;
  margin-top: 12px;
  cursor: pointer;
}
.import-file-input::file-selector-button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  font-family: inherit;
}

/* GATE de login (v2.5) — labels e error states */
.gate-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  font-weight: 600;
  margin-bottom: -6px;
  align-self: flex-start;
}
.gate-input { text-align: left; letter-spacing: normal; padding: 11px 14px; }
.gate-input:focus { box-shadow: 0 0 0 3px var(--gold-soft); }
.gate-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.gate-error { padding: 8px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; width: 100%; }

/* DASHBOARD (v2.5) — métricas de produção */
.dashboard-panel {
  padding: 20px 24px 80px;
  max-width: 1100px;
}
.dashboard-greet {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text);
}
.dashboard-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 20px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.dash-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 6px;
  font-weight: 600;
}
.dash-card-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash-card-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
}
.dash-card.dash-accent { border-color: var(--gold-medium); background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.dash-card.dash-green .dash-card-value { color: var(--green); }
.dash-card.dash-blue .dash-card-value { color: var(--blue); }

.dashboard-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.dashboard-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .dashboard-panel { padding: 16px 12px 90px; }
  .dashboard-greet { font-size: 18px; }
  .dash-card-value { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.7 — PAINEL DE GERÊNCIA (corujão)
   ═══════════════════════════════════════════════════════════════════════ */
.gerente-panel { padding: 16px 24px 90px; max-width: 880px; }
.gerente-subtabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gerente-subtabs::-webkit-scrollbar { display: none; }
.gsub-btn {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text2);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-family: inherit;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .15s;
  position: relative;
}
.gsub-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.gsub-btn .badge { background: var(--red); color: #fff; margin-left: 4px; }

/* Leaderboard */
.lb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lb-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.lb-row.lb-top { border-color: var(--gold-medium); background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.lb-rank { font-size: 20px; font-weight: 800; min-width: 36px; text-align: center; font-family: 'Syne', sans-serif; color: var(--text2); }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; color: var(--text); font-size: 14px; }
.lb-meta { font-size: 11px; color: var(--text2); margin: 2px 0 6px; }
.lb-bar { height: 5px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.lb-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); transition: width .4s; }
.lb-pts { text-align: right; min-width: 50px; }
.lb-pts-num { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.lb-pts-label { font-size: 10px; color: var(--text3); text-transform: uppercase; }
.lb-hint { font-size: 11px; color: var(--text3); margin-top: 16px; line-height: 1.6; padding: 10px; background: var(--bg2); border-radius: 8px; }

/* Validações */
.val-head { font-size: 13px; color: var(--text2); margin-bottom: 14px; font-weight: 600; }
.val-list { display: flex; flex-direction: column; gap: 12px; }
.val-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-sm); }
.val-card-top { display: flex; gap: 12px; align-items: flex-start; }
.val-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.val-outcome { font-weight: 700; color: var(--text); font-size: 14px; }
.val-pts { color: var(--gold); font-size: 12px; margin-left: 4px; }
.val-corretor { font-size: 12px; color: var(--text2); margin-top: 2px; }
.val-lista { font-size: 11px; color: var(--gold); margin-top: 3px; }
.val-note { font-size: 13px; color: var(--text2); font-style: italic; margin: 10px 0; padding: 8px 10px; background: var(--bg2); border-radius: 8px; line-height: 1.5; }
.val-print { width: 100%; max-height: 280px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); margin: 10px 0; cursor: zoom-in; background: var(--bg2); }
.val-noprint { font-size: 11px; color: var(--text3); font-style: italic; margin: 10px 0; }
.val-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 10px; }
.val-actions .btn { min-height: 46px; }

/* Atribuir */
.atribuir-form { max-width: 560px; }

@media (max-width: 700px) {
  .gerente-panel { padding: 14px 12px 90px; }
  .lb-pts-num { font-size: 20px; }
  .val-actions { grid-template-columns: 1fr 1fr; }
}

/* Outcome — anexo de print (corujão) */
.outcome-evidence { margin-top: 10px; padding: 10px; background: var(--gold-soft); border: 1px solid var(--gold-medium); border-radius: 10px; }
.outcome-evidence-label { display: block; font-size: 11px; color: var(--text2); margin-bottom: 8px; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════════════════
   v2.8 — DASHBOARD DO GERENTE: pulso por hora, atribuições, delete
   ═══════════════════════════════════════════════════════════════════════ */

/* Pulso do dia (barras por hora) */
.pulso-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 120px; padding-top: 16px;
}
.pulso-col {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 100%;
}
.pulso-num { font-size: 10px; color: var(--text2); font-variant-numeric: tabular-nums; height: 14px; }
.pulso-bar-track {
  flex: 1; width: 100%; max-width: 26px;
  background: var(--bg2); border-radius: 4px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.pulso-bar-fill {
  width: 100%; background: var(--border2);
  border-radius: 4px 4px 0 0;
  transition: height .4s ease-out;
  min-height: 0;
}
.pulso-bar-fill.corujao { background: linear-gradient(180deg, var(--gold2), var(--gold)); }
.pulso-hora { font-size: 9px; color: var(--text3); font-variant-numeric: tabular-nums; }
.pulso-hora.corujao { color: var(--gold); font-weight: 700; }

/* Lista de atribuições (painel gerência) */
.atr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px;
}
.atr-item.done { opacity: .65; }
.atr-item-info { flex: 1; min-width: 0; }
.atr-item-name {
  font-weight: 700; color: var(--text); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.atr-item-meta { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* Botão deletar lista */
.lista-mini-delete {
  color: var(--red);
  border-color: #fecaca;
  background: #fef2f2;
  flex: 0 0 auto;
  min-width: 40px;
}
.lista-mini-delete:hover { background: #fee2e2; border-color: var(--red); }

@media (max-width: 700px) {
  .pulso-chart { height: 90px; gap: 2px; }
  .pulso-num { font-size: 8px; }
  .pulso-hora { font-size: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v2.10 — MENU DO USUÁRIO (canto superior direito)
   ═══════════════════════════════════════════════════════════════════════ */
.user-menu-wrap { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px 6px 9px;
  font-size: 12px; font-weight: 600; color: var(--text);
  font-family: inherit; cursor: pointer;
  min-height: 36px;
  transition: border-color .15s, background .15s;
}
.user-menu-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.user-menu-btn[aria-expanded="true"] { border-color: var(--gold); background: var(--gold-soft); }
.user-menu-btn[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
.user-menu-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 4px rgba(22, 163, 74, 0.4);
  flex-shrink: 0;
}
.user-menu-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-chevron { color: var(--text3); transition: transform .15s; flex-shrink: 0; }

.user-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 400;
  animation: um-pop .14s ease-out;
}
@keyframes um-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.um-name { font-weight: 700; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-email { font-size: 11px; color: var(--text2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-role {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-medium);
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: none; border: none;
  padding: 11px 12px;
  font-size: 13px; font-weight: 500; color: var(--text);
  font-family: inherit; cursor: pointer;
  border-radius: 9px;
  text-align: left; text-decoration: none;
  min-height: 44px;
  transition: background .12s;
}
.user-menu-item:hover { background: var(--surface2); }
.user-menu-item:focus-visible { outline: 2px solid var(--gold-medium); outline-offset: -2px; }
.user-menu-item span { flex: 1; }
.user-menu-item.um-danger { color: var(--red); }
.user-menu-item.um-danger:hover { background: #fef2f2; }
.user-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

@media (max-width: 600px) {
  .user-menu { width: min(260px, calc(100vw - 24px)); }
  .user-menu-name { max-width: 80px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.0 — App do corretor enxuto (3 telas)
   ═══════════════════════════════════════════════════════════════════════ */
.bottom-nav.bottom-nav-3 { grid-template-columns: repeat(3, 1fr); }
.bottom-nav.bottom-nav-3 .bnav-item { padding: 8px 4px; }
/* tabs do corretor com mais respiro no desktop */
@media (min-width: 701px) {
  .tabs-bar { gap: 4px; padding: 0 24px; }
  .tabs-bar .tab-btn { font-size: 13px; padding: 14px 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.1 — MOBILE anti-zoom
   O iOS dá zoom automático ao focar um input com fonte < 16px e não volta
   sozinho — era o "zoom atrapalhando" relatado. Forçar 16px nos campos de
   texto no celular elimina o pulo. (!important pra vencer estilos inline.)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="password"], input[type="number"], input[type="date"],
  input[type="search"], select, textarea,
  .gate-input, .field input, .field textarea, .field select,
  .search-input, .filter-select {
    font-size: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   v3.2 — BUSCA DE LEAD (no Bater Lista) + registrar resultado no perfil
   ═══════════════════════════════════════════════════════════════════════ */
.lead-search-wrap { position: relative; padding: 12px 16px 0; }
.lead-search-wrap .search-input { width: 100%; }
.lead-search-results {
  position: absolute;
  left: 16px; right: 16px;
  top: calc(100% + 4px);
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}
.lead-search-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.lead-search-item:hover { background: var(--gold-soft); }
.lsi-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lsi-name { font-weight: 600; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsi-phone { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text2); }
.lsi-outcome { font-size: 10px; color: var(--text3); white-space: nowrap; flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.lead-search-empty { padding: 14px; text-align: center; color: var(--text3); font-size: 13px; }

.modal-outcome-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.modal-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.modal-outcome-grid .outcome-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  min-height: 44px;
}
.modal-outcome-grid .outcome-opt:hover { border-color: var(--gold); background: var(--gold-soft); }
.modal-outcome-grid .outcome-opt:disabled { opacity: .5; cursor: not-allowed; }
.modal-outcome-grid .opt-emoji { font-size: 18px; flex-shrink: 0; }
.modal-outcome-grid .opt-label { color: var(--text); line-height: 1.2; }

/* ═══════════════════════════════════════════════════════════════════════
   v3.3 — Executar / Verificar (tela de trabalho) + animações
   ═══════════════════════════════════════════════════════════════════════ */
.work-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 12px 16px 0;
}
.work-list-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--text); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-mode-toggle {
  display: inline-flex; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 999px; padding: 3px; gap: 2px;
  flex-shrink: 0;
}
.wmt-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px;
  color: var(--text2); padding: 7px 14px; border-radius: 999px;
  min-height: 36px;
}
.wmt-btn.active { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }

.work-timer {
  text-align: center; font-size: 11px; color: var(--text3);
  font-family: 'Geist Mono', monospace; padding: 8px 0 2px; min-height: 14px;
}
.work-timer.warn { color: var(--orange); font-weight: 600; }

/* Menu de verificação (qualificação) */
.verify-hint {
  font-size: 12px; color: var(--text2); line-height: 1.5;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.verify-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn.outcome-verify {
  display: flex; align-items: center; gap: 7px;
  justify-content: flex-start; text-align: left;
  min-height: 48px; font-size: 12px; font-weight: 600; line-height: 1.15;
}
.btn.outcome-verify .ov-emoji { font-size: 17px; flex-shrink: 0; }
.btn.outcome-verify.opt-hot { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.btn.outcome-verify.opt-warm { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.btn.outcome-verify.opt-cold { border-color: var(--border2); background: var(--surface); color: var(--text2); }
.btn.outcome-verify.opt-danger { border-color: #fecaca; background: #fef2f2; color: var(--red); }
.btn.outcome-verify:disabled { opacity: .5; cursor: not-allowed; }

/* Transição ao trocar de lead (entrada do card) */
.lead-card.card-enter { animation: card-in .26s cubic-bezier(.32,.72,0,1); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.lead-card.swiping-out { animation: card-out .24s ease forwards; }
@keyframes card-out {
  to { opacity: 0; transform: translateX(-24px) scale(.98); }
}

/* Feedback flutuante de "salvo" */
.save-flash {
  position: fixed; left: 50%; top: 30%;
  transform: translate(-50%, -6px);
  background: var(--gold); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; z-index: 700;
  transition: opacity .18s, transform .18s;
}
.save-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* Botões Executar / Verificar no card de lista */
.lista-cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.lista-cta-verify { background: var(--surface); color: var(--gold); border-color: var(--gold); font-weight: 700; }

@media (max-width: 700px) {
  .verify-menu { grid-template-columns: 1fr; }
}
