:root {
  /* Paleta da marca Lead Hunter: azul elétrico + violeta sobre navy, prata nos neutros */
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --border: #e3e6f0;
  --border-strong: #cdd2e1;
  --text: #0e1324;
  --text-2: #454c63;
  --text-3: #676f89;
  --sidebar: #0a0f1f;
  --sidebar-2: #161e36;
  --sidebar-border: #1e2742;
  --sidebar-text: #b4bdd6;
  --primary: #3a5ff2;
  --primary-600: #2a4bd4;
  --primary-50: #edf1ff;
  --primary-border: #c9d4fb;
  --primary-text: #2440b8;
  --accent: #8b3dff;
  --accent-50: #f3ecff;
  --brand-gradient: linear-gradient(135deg, #2f7bff 0%, #6a4dff 55%, #9b3dff 100%);
  --success: #12a150;
  --success-hover: #0e8a44;
  --success-50: #e7f7ee;
  --success-border: #bfe8d0;
  --success-text: #0b6d37;
  --warning: #eb6834;
  --warning-50: #fdf0ea;
  --warning-border: #f7cdbb;
  --warning-text: #a8431a;
  --danger: #d92d20;
  --danger-50: #fdecea;
  --danger-border: #f6c7c3;
  --danger-text: #a8231a;
  --yellow: #eda100;
  --yellow-50: #fef6e0;
  --yellow-border: #f6dea0;
  --yellow-text: #805600;
  --row-hover: #f9faff;
  --kanban-bg: #eceef6;
  --backdrop: rgba(8, 12, 28, .5);
  --toast-bg: #0e1324;
  --chart-text: #676f89;
  --chart-grid: #eceef4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 19, 36, .05);
  --shadow-lg: 0 12px 32px rgba(14, 19, 36, .16);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
/* Tema escuro: segue o sistema (automático) ou a escolha explícita do usuário */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #070b16;
  --surface: #0e1426;
  --surface-2: #131a2f;
  --border: #212a44;
  --border-strong: #2e3a5c;
  --text: #e9edf9;
  --text-2: #b7bed5;
  --text-3: #8890ab;
  --sidebar: #050811;
  --sidebar-2: #141b31;
  --sidebar-border: #1a2238;
  --sidebar-text: #aab3cf;
  --primary: #5577ff;
  --primary-600: #6f8cff;
  --primary-50: rgba(85, 119, 255, .14);
  --primary-border: rgba(85, 119, 255, .4);
  --primary-text: #a9bbff;
  --accent: #a066ff;
  --accent-50: rgba(160, 102, 255, .15);
  --success: #1fb862;
  --success-hover: #27c96d;
  --success-50: rgba(31, 184, 98, .14);
  --success-border: rgba(31, 184, 98, .4);
  --success-text: #6ee09f;
  --warning: #f07a48;
  --warning-50: rgba(240, 122, 72, .14);
  --warning-border: rgba(240, 122, 72, .42);
  --warning-text: #ffab86;
  --danger: #f05248;
  --danger-50: rgba(240, 82, 72, .14);
  --danger-border: rgba(240, 82, 72, .42);
  --danger-text: #ff9a92;
  --yellow: #f0b429;
  --yellow-50: rgba(240, 180, 41, .14);
  --yellow-border: rgba(240, 180, 41, .4);
  --yellow-text: #ffd36e;
  --row-hover: #141c33;
  --kanban-bg: #0b1122;
  --backdrop: rgba(0, 0, 0, .62);
  --toast-bg: #1d2642;
  --chart-text: #8890ab;
  --chart-grid: #1c2440;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070b16;
  --surface: #0e1426;
  --surface-2: #131a2f;
  --border: #212a44;
  --border-strong: #2e3a5c;
  --text: #e9edf9;
  --text-2: #b7bed5;
  --text-3: #8890ab;
  --sidebar: #050811;
  --sidebar-2: #141b31;
  --sidebar-border: #1a2238;
  --sidebar-text: #aab3cf;
  --primary: #5577ff;
  --primary-600: #6f8cff;
  --primary-50: rgba(85, 119, 255, .14);
  --primary-border: rgba(85, 119, 255, .4);
  --primary-text: #a9bbff;
  --accent: #a066ff;
  --accent-50: rgba(160, 102, 255, .15);
  --success: #1fb862;
  --success-hover: #27c96d;
  --success-50: rgba(31, 184, 98, .14);
  --success-border: rgba(31, 184, 98, .4);
  --success-text: #6ee09f;
  --warning: #f07a48;
  --warning-50: rgba(240, 122, 72, .14);
  --warning-border: rgba(240, 122, 72, .42);
  --warning-text: #ffab86;
  --danger: #f05248;
  --danger-50: rgba(240, 82, 72, .14);
  --danger-border: rgba(240, 82, 72, .42);
  --danger-text: #ff9a92;
  --yellow: #f0b429;
  --yellow-50: rgba(240, 180, 41, .14);
  --yellow-border: rgba(240, 180, 41, .4);
  --yellow-text: #ffd36e;
  --row-hover: #141c33;
  --kanban-bg: #0b1122;
  --backdrop: rgba(0, 0, 0, .62);
  --toast-bg: #1d2642;
  --chart-text: #8890ab;
  --chart-grid: #1c2440;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; color: #fff; font-weight: 700; font-size: 17px; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; margin-bottom: 2px; }
.nav a:hover { background: var(--sidebar-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--brand-gradient); color: #fff; box-shadow: 0 4px 14px rgba(90, 80, 255, .35); }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--sidebar-border); font-size: 12px; }
.sidebar-foot .user { color: #fff; font-weight: 600; font-size: 13px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; z-index: 30; }
.topbar .title { font-weight: 600; font-size: 16px; flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px; max-width: 1500px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-3); }

/* ---------- Components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; position: relative; overflow: hidden; }
.kpi .label { color: var(--text-3); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kpi.accent-blue { border-top: 3px solid var(--primary); }
.kpi.accent-green { border-top: 3px solid var(--success); }
.kpi.accent-orange { border-top: 3px solid var(--warning); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-hover); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-icon { width: 32px; padding: 0; height: 32px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btn-group .btn.active { background: var(--primary-50); color: var(--primary); border-color: var(--primary); z-index: 1; }

label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-2); min-width: 0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px; min-height: 36px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
textarea { resize: vertical; min-height: 70px; }
input[type=checkbox] { width: 16px; height: 16px; min-height: 0; accent-color: var(--primary); cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--text-3); margin: 18px 0 10px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.blue { background: var(--primary-50); color: var(--primary-text); border-color: var(--primary-border); }
.badge.green { background: var(--success-50); color: var(--success-text); border-color: var(--success-border); }
.badge.orange { background: var(--warning-50); color: var(--warning-text); border-color: var(--warning-border); }
.badge.red { background: var(--danger-50); color: var(--danger-text); border-color: var(--danger-border); }
.badge.yellow { background: var(--yellow-50); color: var(--yellow-text); border-color: var(--yellow-border); }
.badge.gray { }
.temp-quente { background: var(--warning-50); color: var(--warning-text); border-color: var(--warning-border); }
.temp-morno { background: var(--yellow-50); color: var(--yellow-text); border-color: var(--yellow-border); }
.temp-frio { background: var(--primary-50); color: var(--primary-text); border-color: var(--primary-border); }
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-bar { width: 44px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.score-bar > span { display: block; height: 100%; border-radius: 3px; }
.stars { color: var(--yellow); letter-spacing: 1px; font-size: 12px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 12px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th .arrow { font-size: 10px; margin-left: 3px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--row-hover); }
.table tr.selected td { background: var(--primary-50); }
.table td.name { font-weight: 600; max-width: 260px; }
.table td.name .sub { font-weight: 400; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .w-check { width: 36px; }
.ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty svg { width: 40px; height: 40px; color: var(--border-strong); margin-bottom: 8px; }
.empty h3 { color: var(--text); margin-bottom: 4px; }

.bulkbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--primary-50); border-bottom: 1px solid var(--primary-border); flex-wrap: wrap; }

/* Cards view */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; padding: 16px; }
.lead-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.lead-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.lead-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-card .meta { font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; gap: 3px; }

.map { height: 560px; border-radius: 0 0 var(--radius) var(--radius); }
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 340px; }

/* Progress */
.progress { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s; }
.progress.done > span { background: var(--success); }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.stat-row div { font-size: 12px; color: var(--text-3); }
.stat-row b { display: block; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.log { max-height: 180px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin-top: 12px; }
.log .warn { color: var(--warning-text); } .log .error { color: var(--danger); }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.alert.info { background: var(--primary-50); border-color: var(--primary-border); color: var(--primary-text); }
.alert.warn { background: var(--warning-50); border-color: var(--warning-border); color: var(--warning-text); }
.alert.success { background: var(--success-50); border-color: var(--success-border); color: var(--success-text); }
.alert.error { background: var(--danger-50); border-color: var(--danger-border); color: var(--danger-text); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kcol { background: var(--kanban-bg); border-radius: var(--radius); padding: 10px; min-height: 300px; }
.kcol.drag-over { background: var(--primary-50); outline: 2px dashed var(--primary); }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.kcol-head .sum { font-weight: 500; color: var(--text-3); font-size: 12px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .5; }
.kcard .t { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.kcard .m { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 6px; align-items: center; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: var(--backdrop); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); animation: pop .16s; }
.modal.lg { max-width: 980px; }
.modal.md { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 10px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -4px 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-color: var(--primary); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.timeline .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; word-break: break-word; }

/* Toasts & notifications */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: calc(100vw - 32px); }
.toast { background: var(--toast-bg); color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 380px; display: flex; gap: 10px; align-items: flex-start; animation: pop .18s; }
.toast.success { background: #0b6331; } .toast.error { background: #912018; } .toast.warn { background: #8f3612; }
.notif-btn { position: relative; }
.notif-btn .count { position: absolute; top: -4px; right: -4px; background: var(--warning); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
.dropdown { position: absolute; right: 0; top: 44px; width: 340px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; z-index: 60; }
.dropdown .item { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.dropdown .item.unread { background: var(--primary-50); }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 30% 20%, #1a2150 0%, #0a0f1f 55%, #05070f 100%); }
.auth .card { width: 100%; max-width: 400px; padding: 28px; }
.auth .brand { color: var(--text); padding: 0 0 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--primary-50); color: var(--primary-600); border-radius: 999px; font-size: 12px; font-weight: 500; }
.legend-inline { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend-inline span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .g2, .g4 { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .map { height: 420px; }
  .modal-backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100vh; }
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .layout { display: block; }
}

/* ---------- Marca e tema ---------- */
.brand-logo { background: none; width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand .name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name b { font-weight: 800; letter-spacing: .07em; font-size: 15px; background: linear-gradient(180deg, #ffffff, #aeb9d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .name small { font-weight: 600; font-size: 9px; letter-spacing: .26em; color: #8ea2ff; margin-top: 4px; }
.auth-logo { display: block; width: 168px; height: 168px; margin: -6px auto 12px; border-radius: 22px; object-fit: cover; box-shadow: 0 10px 40px rgba(80, 90, 255, .35); }
.theme-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface-2); }
.theme-switch button { border: 0; background: none; color: var(--text-3); width: 30px; height: 28px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.btn-primary { background: var(--brand-gradient); border-color: transparent; }
.btn-primary:hover { background: var(--brand-gradient); filter: brightness(1.08); }
.btn-group .btn.active { background: var(--primary-50); color: var(--primary-text); border-color: var(--primary); }
.tabs button.active { color: var(--primary-text); }
.progress > span { background: var(--brand-gradient); }
.kpi.accent-blue { border-top-color: var(--primary); }
.leaflet-container { background: var(--surface-2); }
.logo-preview { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); background: #0a0f1f; }

/* ---------- Buscar empresas: formulário + buscas recentes ---------- */
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.recent-list { max-height: 560px; overflow-y: auto; }
.recent-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.recent-item:hover { background: var(--row-hover); }
.recent-item.active { background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary); }
.recent-item .t { font-weight: 600; font-size: 13px; padding-right: 30px; }
.recent-item .m { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.recent-item .del { position: absolute; right: 8px; top: 8px; }
details.refine > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 0 2px; }
details.refine > summary::-webkit-details-marker { display: none; }
details.refine > summary::before { content: '▸'; transition: transform .15s; display: inline-block; }
details.refine[open] > summary::before { transform: rotate(90deg); }
.result-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; }
.result-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 12px; font: inherit; font-weight: 500; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.result-tabs button.active { color: var(--primary-text); border-color: var(--primary); }
.result-tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .search-layout { grid-template-columns: 1fr; } .recent-list { max-height: 320px; } }

/* ---------- Seletor de ofertas ---------- */
.offer-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.offer-picker .chips { flex: 1; }
.chip-x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 4px; opacity: .7; }
.chip-x:hover { opacity: 1; }
.offer-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.offer-opt:hover { background: var(--row-hover); }
.offer-opt input { margin-top: 2px; flex-shrink: 0; }

/* ================= LeadMap — preto, branco e rosa ================= */
:root {
  --primary: #d6127a;
  --primary-600: #b80f69;
  --primary-50: #fde8f3;
  --primary-border: #f5b6d8;
  --primary-text: #a80d5f;
  --accent: #ff3fa8;
  --accent-50: #fff0f8;
  --brand-gradient: linear-gradient(135deg, #ff4fb0 0%, #e8157f 55%, #b30d63 100%);
  --sidebar: #000000;
  --sidebar-2: #17171b;
  --sidebar-border: #1d1d21;
  --sidebar-text: #c9c9d1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #000000;
  --surface: #0c0c0e;
  --surface-2: #141417;
  --border: #232327;
  --border-strong: #35353b;
  --text: #ffffff;
  --text-2: #d6d6dc;
  --text-3: #9b9ba4;
  --sidebar: #000000;
  --sidebar-2: #17171b;
  --sidebar-border: #1d1d21;
  --sidebar-text: #c9c9d1;
  --primary: #ff2d95;
  --primary-600: #ff5aad;
  --primary-50: rgba(255, 45, 149, .14);
  --primary-border: rgba(255, 45, 149, .45);
  --primary-text: #ff8cc6;
  --accent: #ff5aad;
  --accent-50: rgba(255, 90, 173, .15);
  --brand-gradient: linear-gradient(135deg, #ff4fb0 0%, #e8157f 55%, #b30d63 100%);
  --row-hover: #141417;
  --kanban-bg: #08080a;
  --backdrop: rgba(0, 0, 0, .72);
  --toast-bg: #1b1b20;
  --chart-text: #9b9ba4;
  --chart-grid: #1f1f24;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0c0c0e;
  --surface-2: #141417;
  --border: #232327;
  --border-strong: #35353b;
  --text: #ffffff;
  --text-2: #d6d6dc;
  --text-3: #9b9ba4;
  --sidebar: #000000;
  --sidebar-2: #17171b;
  --sidebar-border: #1d1d21;
  --sidebar-text: #c9c9d1;
  --primary: #ff2d95;
  --primary-600: #ff5aad;
  --primary-50: rgba(255, 45, 149, .14);
  --primary-border: rgba(255, 45, 149, .45);
  --primary-text: #ff8cc6;
  --accent: #ff5aad;
  --accent-50: rgba(255, 90, 173, .15);
  --brand-gradient: linear-gradient(135deg, #ff4fb0 0%, #e8157f 55%, #b30d63 100%);
  --row-hover: #141417;
  --kanban-bg: #08080a;
  --backdrop: rgba(0, 0, 0, .72);
  --toast-bg: #1b1b20;
  --chart-text: #9b9ba4;
  --chart-grid: #1f1f24;
  color-scheme: dark;
}
.nav a.active { box-shadow: 0 4px 16px rgba(255, 45, 149, .35); }
.btn-primary { color: #fff; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.1); }
.auth { background: radial-gradient(ellipse at 50% 0%, #3a0a24 0%, #0a0a0c 55%, #000 100%); }
.brand { padding: 16px 14px 14px; }
.brand-banner { display: block; width: 100%; max-width: 212px; height: auto; }
.auth-logo { width: 100%; height: auto; max-width: 360px; border-radius: 12px; box-shadow: 0 12px 40px rgba(255, 45, 149, .25); object-fit: contain; background: #000; }
.logo-preview { width: 200px; height: auto; object-fit: contain; background: #000; }
/* temperatura mantém o significado: frio = azulado, morno = amarelo, quente = laranja */
.temp-frio { background: rgba(110, 140, 255, .12); color: #4a63d8; border-color: rgba(110, 140, 255, .35); }
:root[data-theme="dark"] .temp-frio { color: #a9b8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .temp-frio { color: #a9b8ff; } }
/* Corta a margem preta da arte para a logo aparecer maior no menu (navegadores sem suporte mostram a arte inteira) */
.brand-banner { object-view-box: inset(13% 13% 12% 14%); aspect-ratio: 1460 / 375; object-fit: contain; max-width: 210px; }
.auth-logo { object-view-box: inset(13% 12% 12% 13%); aspect-ratio: 1500 / 375; padding: 10px 14px; }

/* ================= Dashboard LeadMap ================= */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.dash-head p { margin: 4px 0 0; color: var(--text-2); }
.dash-ic { width: 18px; height: 18px; flex-shrink: 0; }

.dash-kpis { display: grid; gap: 12px; }
.dash-kpis.row7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dash-kpis.row8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.dash-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px 10px; min-width: 0; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.dash-kpi:hover { border-color: var(--primary-border); transform: translateY(-1px); }
.dash-kpi-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-kpi-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 8px; }
.dash-kpi-value { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.dash-kpi .spark { width: 46%; max-width: 96px; height: 34px; flex-shrink: 0; }
.trend { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 4px; }
.trend.up { color: #22c55e; }
.trend.down { color: #ff4d6d; }
.trend.flat { color: var(--text-3); }

.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dash-card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dash-card-head select { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 12px; background-color: var(--surface-2); }
.dash-link { font-size: 12.5px; color: var(--primary-text); font-weight: 500; }

.dash-grid-a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.dash-grid-b { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Funil */
.funnel { display: grid; grid-template-columns: 42% 1fr; gap: 12px; align-items: center; }
.funnel-svg { width: 100%; height: 240px; }
.funnel-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.funnel-list li { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; align-items: center; padding: 6px 0; }
.funnel-list a { color: var(--text-2); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.funnel-list a:hover { color: var(--text); }
.funnel-list .muted { text-align: right; font-size: 11.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Distribuição (donut) */
.donut-wrap { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.donut { position: relative; width: 130px; height: 130px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-size: 24px; line-height: 1; }
.donut-center span { font-size: 12px; color: var(--text-2); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.legend-row { display: grid; grid-template-columns: 12px 1fr auto 44px; gap: 8px; align-items: center; color: var(--text); text-decoration: none; }
.legend-row:hover { color: var(--primary-text); text-decoration: none; }
.legend-row .muted { text-align: right; }

/* Oportunidades rápidas */
.opp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opp { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color .15s; }
.opp:hover { border-color: var(--primary); text-decoration: none; }
.opp b { display: block; font-size: 17px; line-height: 1.1; }
.opp span span { font-size: 11.5px; color: var(--text-2); }
.opp .dash-ic { width: 20px; height: 20px; }
.opp > .dash-ic:last-child { width: 14px; height: 14px; color: var(--text-3); }

/* Últimos leads */
.dash-table td, .dash-table th { padding: 9px 10px; }
.dash-table th { background: transparent; }
.co { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.co a { color: var(--text); font-weight: 500; }
.co-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff4fb0, #8b5cf6); flex-shrink: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand-gradient); flex-shrink: 0; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.score-pill { display: inline-block; min-width: 36px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.score-pill.good { background: rgba(34, 197, 94, .18); color: #4ade80; }
.score-pill.mid { background: rgba(251, 191, 36, .18); color: #fbbf24; }
.score-pill.low { background: rgba(148, 163, 184, .15); color: var(--text-2); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.t-quente { background: rgba(255, 45, 149, .15); color: #ff6eb4; }
.pill.t-morno { background: rgba(255, 159, 67, .15); color: #ffad60; }
.pill.t-frio { background: rgba(139, 92, 246, .15); color: #b49bff; }

/* Filtros no topo */
.topbar-extra { display: flex; align-items: center; }
.dash-filters { display: flex; align-items: center; gap: 8px; }
.dash-filters input, .dash-filters select { width: auto; min-height: 34px; padding: 5px 10px; font-size: 13px; background-color: var(--surface); }
.dash-select { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding-left: 10px; background: var(--surface); }
.dash-select select { border: 0; box-shadow: none; padding-left: 0; min-height: 32px; }
.dash-select .dash-ic { width: 16px; height: 16px; color: var(--text-2); }

/* Menu lateral: cartão de IA e usuário */
.nav a { padding: 10px 14px; font-size: 14.5px; }
.promo-card { margin: 10px 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 45, 149, .35); background: radial-gradient(120% 120% at 0% 0%, rgba(255, 45, 149, .22), rgba(255, 45, 149, .04) 60%), #0b0b0d; color: #fff; }
.promo-card b { display: block; font-size: 15px; line-height: 1.25; }
.promo-card p { margin: 6px 0 10px; font-size: 12.5px; color: #c9c9d1; }
.promo-crown { color: #ff4fb0; font-size: 18px; margin-bottom: 4px; }
.sidebar-foot .user-row { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.sidebar-foot .user-row:hover { text-decoration: none; opacity: .9; }
.sidebar-foot .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sidebar-foot .role { font-size: 12px; color: var(--sidebar-text); }
.sidebar-foot .chev { color: var(--sidebar-text); font-size: 20px; }

@media (max-width: 1400px) {
  .dash-kpis.row7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-kpis.row8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-grid-a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-grid-a > .dash-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .topbar { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .topbar-extra { order: 10; width: 100%; overflow-x: auto; }
  .dash-filters { flex-wrap: wrap; }
  .dash-grid-b, .dash-grid-a, .dash-grid-a > .dash-col { grid-template-columns: 1fr; }
  .dash-kpis.row7, .dash-kpis.row8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 760px) { .promo-card { display: none; } }
@media (max-width: 1280px) {
  .topbar { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .topbar-extra { order: 10; width: 100%; overflow-x: auto; }
  .dash-filters { flex-wrap: wrap; }
}
.dash-kpi-head { white-space: normal; overflow: visible; line-height: 1.25; min-height: 32px; align-items: flex-start; }
.dash-kpi-head .dash-ic { margin-top: 1px; }

/* ================= Buscar empresas (layout v2) ================= */
.sv2 { position: relative; }
.sv2::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px 300px at 90% 8%, rgba(255, 45, 149, .10), transparent 70%), radial-gradient(500px 300px at 100% 70%, rgba(255, 45, 149, .07), transparent 70%); }
.sv2 > * { position: relative; z-index: 1; }
.si { width: 20px; height: 20px; flex-shrink: 0; }
.sv2-head { margin-bottom: 18px; }
.sv2-head h1 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sv2-head .grad { background: linear-gradient(90deg, #ff4fb0, #ff2d95); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv2-head p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; }

.sv2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; max-width: 1160px; }
.sv2-kpi { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sv2-kpi .label { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.sv2-kpi .value { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 4px 0 6px; }
.sv2-kpi .sub { font-size: 13px; color: var(--text-2); }
.sv2-kpi-ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.sv2-kpi-ic .si { width: 24px; height: 24px; }
.sv2-kpi.tone-pink { border-color: rgba(255, 45, 149, .7); box-shadow: 0 0 0 1px rgba(255, 45, 149, .25), 0 8px 30px rgba(255, 45, 149, .12); }
.tone-pink .sv2-kpi-ic { background: rgba(255, 45, 149, .14); color: #ff4fb0; }
.tone-violet .sv2-kpi-ic { background: rgba(139, 92, 246, .16); color: #a78bfa; }
.sv2-kpi.tone-violet { border-color: rgba(139, 92, 246, .35); }
.sv2-kpi.tone-green { border-color: rgba(34, 197, 94, .45); }
.tone-green .sv2-kpi-ic { background: rgba(34, 197, 94, .14); color: #22c55e; }

.sv2-form { background: var(--surface); border: 1px solid rgba(255, 45, 149, .6); border-radius: 16px; padding: 22px 24px; box-shadow: 0 0 0 1px rgba(255, 45, 149, .15), 0 10px 40px rgba(255, 45, 149, .08); }
.sv2-offer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; margin-bottom: 12px; }
.sv2-offer-head .si { width: 24px; height: 24px; }
.sv2-offer-head .muted { font-size: 15px; }
.sv2-offers .offer-picker { border: 0; padding: 0; background: none; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
.sv2-offers .offer-picker .chips { min-height: 46px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sv2-offers .offer-picker .chips .muted { font-size: 14.5px; }
.sv2-offers .offer-picker [data-pick] { height: 46px; padding: 0 18px; font-size: 15px; font-weight: 600; border-radius: 10px; border-color: var(--border-strong); background: var(--surface-2); }

.sv2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 20px; }
.sv2-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sv2-label { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; color: var(--text); }
.sv2-label small { font-size: 14px; font-weight: 400; color: var(--text-2); }
.sv2-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.sv2-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.sv2-input .si { color: var(--text-2); }
.sv2-input input, .sv2-input select { border: 0; background: transparent; box-shadow: none !important; padding: 0; min-height: 0; height: 100%; font-size: 15px; }

.sv2-info { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.sv2-info .si { margin-top: 1px; }
.sv2-refine { margin-top: 10px; }
.sv2-refine > summary { padding: 12px 6px; gap: 12px; font-size: 15.5px; }
.sv2-refine > summary .muted { font-weight: 400; font-size: 14.5px; }

.sv2-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.sv2-btn-outline, .sv2-btn-main { height: 50px; padding: 0 22px; font-size: 15.5px; font-weight: 600; border-radius: 10px; }
.sv2-btn-outline { background: transparent; border-color: var(--border-strong); }
.sv2-btn-main { min-width: 200px; box-shadow: 0 8px 24px rgba(255, 45, 149, .3); }
.sv2-provider { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.sv2-provider .si { width: 18px; height: 18px; }

.sv2-recent { background: var(--surface); border: 1px solid rgba(255, 45, 149, .45); border-radius: 16px; overflow: hidden; }
.sv2-recent-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.sv2-recent-head .si { width: 24px; height: 24px; }
.sv2-recent-head h3 { flex: 1; font-size: 17px; }
.sv2-count { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; }
.sv2-count:empty { display: none; }
.sv2-recent .recent-item { padding: 16px 20px; }
.sv2-recent .recent-item .t { font-size: 15px; }
.sv2-recent .recent-item .m { font-size: 13.5px; margin-top: 4px; }
.sv2-recent .recent-item .del { top: 50%; transform: translateY(-50%); right: 14px; color: #ff4d6d; }
.sv2-recent .recent-item .del .si { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .sv2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sv2-head h1 { font-size: 30px; }
  .sv2-grid { grid-template-columns: 1fr; }
  .sv2-offers .offer-picker { grid-template-columns: 1fr; }
  .sv2-kpis { grid-template-columns: 1fr; }
  .sv2-form { padding: 16px; }
}

/* Campo de ofertas: digitar com sugestões */
.offer-type { position: relative; cursor: text; }
.offer-input { flex: 1; min-width: 180px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 2px !important; min-height: 28px !important; font-size: 14.5px; color: var(--text); }
.offer-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 320px; overflow-y: auto; }
.offer-sug { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.offer-sug.active, .offer-sug:hover { background: var(--primary-50); }
.offer-sug.empty { cursor: default; color: var(--text-2); }
.offer-sug.empty:hover { background: none; }
.offer-picker .chips { cursor: text; }

/* Lista nativa dos <select>: no Windows ela herda o fundo transparente e fica branca com texto branco */
select option, select optgroup { background-color: var(--surface, #111114); color: var(--text, #fff); }
select option:checked { background-color: var(--primary, #ff2d95); color: #fff; }
select option:disabled { color: var(--text-3, #777); }

/* ================= Leads Captados (LeadMap) ================= */
.lc { display: flex; flex-direction: column; gap: 16px; }
.lc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lc-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.lc-head p { margin: 4px 0 0; color: var(--text-2); }
.lc-head .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.lc-filter-btn { position: relative; }
.lc-dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ff2d95; }

.lc-kpis { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1.45fr)); gap: 12px; }
.lc-kpi { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; }
a.lc-kpi:hover { text-decoration: none; }
.lc-kpi-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); align-self: start; }
.lc-kpi-ic .dash-ic { width: 22px; height: 22px; }
.lc-kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.lc-kpi-label { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-kpi .dash-kpi-value { font-size: 26px; margin: 2px 0; }
.lc-kpi-foot { display: flex; gap: 6px; align-items: baseline; font-size: 12px; white-space: nowrap; }
.lc-kpi-foot .trend { margin: 0; }
.lc-kpi { position: relative; }
.lc-kpi .spark { position: absolute; right: 14px; bottom: 14px; width: 34%; max-width: 90px; height: 32px; }
.lc-ring { width: 56px; height: 56px; }
.lc-ring circle, .ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }

.lc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.lc-main { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; min-width: 0; }
.lc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.lc-bar1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lc-tabs, .lc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lc-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.lc-tab span { background: var(--surface-2); border-radius: 7px; padding: 2px 8px; font-size: 12px; }
.lc-tab.active { background: #ff2d95; border-color: #ff2d95; color: #fff; }
.lc-tab.active span { background: rgba(255, 255, 255, .22); }
.lc-seg-btns { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.lc-seg-btns button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; background: transparent; color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.lc-seg-btns button + button { border-left: 1px solid var(--border-strong); }
.lc-seg-btns button.active { background: rgba(255, 45, 149, .14); color: #ff6eb4; box-shadow: inset 0 0 0 1px #ff2d95; }
.lc-seg-btns svg, .lc-actions .btn svg { width: 16px; height: 16px; }

.lc-bar2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lc-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: var(--surface-2); }
.lc-search svg { width: 17px; height: 17px; color: var(--text-2); flex-shrink: 0; }
.lc-search input { border: 0; background: transparent; box-shadow: none; min-height: 40px; padding: 0; }
.lc-bar2 select { width: auto; min-width: 120px; max-width: 190px; min-height: 42px; background-color: var(--surface-2); }
.lc-clear { margin-left: auto; min-height: 42px; color: var(--text-2); }
.lc-clear .dash-ic { width: 15px; height: 15px; }

.lc-table th { background: transparent; font-size: 12.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.lc-table td { padding: 10px 10px; font-size: 13px; vertical-align: middle; }
.lc-table tbody tr { border-bottom: 1px solid var(--border); }
.lc-sort { margin-left: 4px; font-size: 10px; color: var(--text-3); }
.lc-sort.on { color: #ff6eb4; }
.lc-co { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.lc-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.lc-two { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lc-two > .muted { font-size: 11.5px; }
.lc-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lc-name a { color: var(--text); }
.lc-ext { color: var(--text-2); display: inline-flex; }
.lc-ext .dash-ic { width: 13px; height: 13px; }
.lc-offer { color: #ff6eb4; }
.lc-table td .lc-two .ellipsis { max-width: 170px; }
.lc-score { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.ring { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; flex-shrink: 0; }
.ring svg { position: absolute; inset: 0; width: 32px; height: 32px; }
.ring circle { stroke-width: 3; }
.ring b { font-size: 11.5px; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 5px; }
.pill .dash-ic { width: 13px; height: 13px; }
.lc-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text); white-space: nowrap; }
.wa-ic { width: 16px; height: 16px; flex-shrink: 0; }
.lc-owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lc-status { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; }
.s-novo { background: #2563eb; }
.s-contactado { background: #15803d; }
.s-reuniao { background: #0e7490; }
.s-proposta { background: #b45309; }
.s-negociacao { background: #7c3aed; }
.s-fechado { background: #16a34a; }
.s-perdido { background: #b91c1c; }
.lc-kebab { border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.lc-kebab:hover { background: var(--surface-2); color: var(--text); }
.lc-pop { position: fixed; z-index: 1000; min-width: 230px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.lc-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--text); font-size: 13.5px; text-align: left; border-radius: 8px; cursor: pointer; }
.lc-pop button:hover { background: var(--surface-2); }
.lc-pop button svg { width: 16px; height: 16px; }
.lc-pop button.danger { color: #ff4d6d; }
.lc-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

.lc-pag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.lc-pag select { width: auto; min-height: 38px; }
.lc-pag .btn { min-height: 38px; }
.lc-pg { min-width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--text); font-weight: 600; cursor: pointer; }
.lc-pg:hover { background: var(--surface-2); }
.lc-pg.active { background: #ff2d95; color: #fff; }
.lc-gap { color: var(--text-3); padding: 0 2px; }

.lc-chart { height: 150px; }
.lc-sub { font-size: 14px; margin: 14px 0 10px; }
.lc-seg { display: grid; grid-template-columns: 82px 1fr 38px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text); padding: 5px 0; text-decoration: none; }
.lc-seg:hover { text-decoration: none; color: #ff6eb4; }
.lc-seg-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lc-seg-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff2d95, #ff6eb4); }
.lc-seg b { text-align: right; font-weight: 600; }
.lc-badge { min-width: 22px; height: 22px; border-radius: 99px; background: #ff2d95; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.lc-rem { display: grid; grid-template-columns: 10px 1fr 16px; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.lc-rem:first-child { border-top: 0; }
.lc-rem:hover { text-decoration: none; color: #ff6eb4; }
.lc-rem b { display: block; font-size: 13.5px; font-weight: 600; }
.lc-rem .muted { font-size: 12px; }
.lc-rem.zero { opacity: .55; }
.lc-rem .dash-ic { width: 15px; height: 15px; color: var(--text-2); }

@media (max-width: 1360px) { .lc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .lc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .lc-layout { grid-template-columns: 1fr; } .lc-side { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .lc-kpis { grid-template-columns: 1fr; }
  .lc-side { grid-template-columns: 1fr; }
  .lc-bar2 select { flex: 1 1 140px; max-width: none; }
  .lc-clear { margin-left: 0; }
}

/* Funil: empresa de cada negócio (RD9 / Nexis Hub / conjunto) */
.co-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.co-rd9 { background: rgba(251, 146, 60, .15); color: #fb923c; border-color: rgba(251, 146, 60, .35); }
.co-nexis { background: rgba(255, 45, 149, .15); color: #ff6eb4; border-color: rgba(255, 45, 149, .35); }
.co-both { background: rgba(139, 92, 246, .16); color: #b49bff; border-color: rgba(139, 92, 246, .38); }
.co-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.co-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.co-card b { color: var(--text); }
.co-card:hover, .co-card.active { border-color: #ff2d95; }
.co-note { margin-left: 4px; }
.kcol-co { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 6px 8px; }
.k-offer { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; font-size: 11.5px; color: var(--text-2); min-width: 0; }
/* Cartões de Leads Captados mais compactos para caberem numa linha (como no modelo) */
.lc-kpi { gap: 10px; padding: 14px 14px; }
.lc-kpi-ic { width: 40px; height: 40px; }
.lc-kpi-ic .dash-ic { width: 20px; height: 20px; }
.lc-kpi .dash-kpi-value { font-size: 24px; }
.lc-ring { width: 50px; height: 50px; }
.lc-kpi .spark { width: 32%; max-width: 84px; height: 30px; bottom: 12px; right: 12px; }
.lc-kpi-foot .muted { overflow: hidden; text-overflow: ellipsis; }
.lc-kpi:has(.spark) .lc-kpi-foot { padding-right: calc(32% - 6px); }
/* Tabela de Leads Captados compacta: cabe inteira em telas ~1600px (como no modelo) */
.lc-layout { grid-template-columns: minmax(0, 1fr) 270px; }
.lc-table th, .lc-table td { padding: 9px 6px; font-size: 12.5px; }
.lc-table th:first-child, .lc-table td:first-child { padding-left: 4px; width: 28px; }
.lc-table .lc-menu-cell, .lc-table th:last-child { width: 30px; padding-right: 2px; }
.lc-co { min-width: 170px; gap: 8px; }
.lc-logo { width: 28px; height: 28px; font-size: 13px; }
.lc-table td .lc-two .ellipsis { max-width: 130px; }
.lc-phone { gap: 5px; }
.lc-owner { gap: 6px; }
.lc-status { padding: 4px 9px; }
.lc-main { padding: 14px 12px; }
.lc-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; }
.lc-table th, .lc-table td { padding-left: 5px; padding-right: 5px; }
.lc-table th { font-size: 12px; }
.lc-sort { margin-left: 2px; }
.lc-seg { grid-template-columns: 72px 1fr 34px; }

/* ================= Qualificação com IA (LeadMap) ================= */
.qa { display: flex; flex-direction: column; gap: 16px; }
.qa-hero { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 6px 0 10px; isolation: isolate; }
.qa-hero::after { content: ""; position: absolute; z-index: -1; right: -24px; top: -40px; width: 70%; height: 170px; pointer-events: none;
  background: radial-gradient(60% 70% at 70% 40%, rgba(255, 45, 149, .28), transparent 70%), radial-gradient(40% 50% at 95% 10%, rgba(139, 92, 246, .22), transparent 70%); filter: blur(6px); }
.qa-hero-ic { color: #ff2d95; margin-top: 2px; }
.qa-hero-ic .dash-ic { width: 40px; height: 40px; }
.qa-hero h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.qa-hero p { margin: 4px 0 0; color: var(--text-2); }

.qa-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(251, 146, 60, .55); background: rgba(251, 146, 60, .08); color: var(--text-2); font-size: 14px; }
.qa-alert > .dash-ic { width: 22px; height: 22px; color: #fb923c; flex-shrink: 0; }
.qa-alert b { color: #fb923c; }
.qa-alert a { color: #ff4fb0; }
.qa-x { margin-left: auto; border: 0; background: transparent; color: #ff4fb0; cursor: pointer; display: inline-flex; padding: 4px; border-radius: 6px; }
.qa-x:hover { background: rgba(255, 45, 149, .12); }

.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: stretch; }
.qa-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; min-width: 0; }
.qa-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.qa-card-head h3 { font-size: 17px; }
.qa-card-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.qa-card-head > div { flex: 1; min-width: 0; }
.qa-box { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 45, 149, .12); border: 1px solid rgba(255, 45, 149, .35); color: #ff4fb0; }
.qa-box .dash-ic { width: 22px; height: 22px; }

.qa-card textarea { min-height: 120px; resize: vertical; background: var(--surface-2); }
.qa-count { text-align: right; font-size: 12px; color: var(--text-3); margin: 4px 0 8px; }
.qa-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid #ff2d95;
  background: linear-gradient(180deg, rgba(255, 45, 149, .22), rgba(255, 45, 149, .08)); color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.qa-btn-outline:hover:not(:disabled) { background: rgba(255, 45, 149, .3); }
.qa-btn-outline:disabled { opacity: .55; cursor: not-allowed; }
.qa-btn-outline .dash-ic { width: 18px; height: 18px; }
.qa-btn-outline.wide { width: 100%; justify-content: flex-start; }
.qa-n { background: #ff2d95; color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 12px; }

.qa-crit-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.qa-crit-title .dash-ic { width: 18px; height: 18px; color: #ff4fb0; }
.qa-crit-title::after { content: ""; flex: 1; height: 1px; background: var(--border); order: 2; }
.qa-crit-title a { order: 3; font-size: 11.5px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); }
.qa-crit { list-style: none; margin: 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.qa-crit li { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 3px 0; font-size: 13px; color: var(--text-2); }
.qa-crit .dot { width: 7px; height: 7px; background: #ff2d95; }
.qa-crit b { color: #ff4fb0; font-weight: 600; }
.qa-crit b.neg { color: #ff4d6d; }

.qa-table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: auto; max-height: 460px; }
.qa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qa-table th { text-align: left; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 12px; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.qa-table th + th { border-left: 1px solid var(--border); }
.qa-table th.sortable { cursor: pointer; }
.qa-table th span { margin-left: 6px; color: var(--text-3); font-size: 10px; display: inline-flex; vertical-align: middle; }
.qa-table th span .dash-ic { width: 13px; height: 13px; }
.qa-table th span.on { color: #ff6eb4; }
.qa-table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.qa-table td + td { border-left: 1px solid var(--border); }
.qa-table tr.selected td { background: rgba(255, 45, 149, .06); }
.qa-co { display: flex; align-items: center; gap: 12px; }
.qa-co a { color: #ff4fb0; font-weight: 600; }
.qa-co small { display: block; color: var(--text-2); font-size: 12px; margin-top: 1px; }
.qa-av { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, rgba(255, 45, 149, .55), rgba(139, 92, 246, .35)); }
.qa-site { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.qa-site .dash-ic { width: 15px; height: 15px; }
.qa-site.ok { border-color: rgba(34, 197, 94, .45); color: #4ade80; }
.qa-site.bad { border-color: rgba(251, 146, 60, .5); color: #fb923c; }
a.qa-site:hover { text-decoration: none; background: var(--surface-2); }
.qa-rating { white-space: nowrap; color: #fbbf24; }
.qa-rating small { color: var(--text-3); }
.qa-score { display: inline-flex; align-items: center; gap: 12px; }
.qa-bar { width: 60px; height: 6px; border-radius: 99px; background: var(--border-strong); overflow: hidden; }
.qa-bar span { display: block; height: 100%; border-radius: 99px; background: #ff2d95; }
.qa-score b { font-size: 15px; min-width: 22px; }
.qa-foot { padding: 14px 2px 0; color: var(--text-2); font-size: 13px; }
.qa-order { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; white-space: nowrap; margin-top: 10px; }
.qa-order .dash-ic { width: 18px; height: 18px; }

.qa-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; color: var(--text-2); font-size: 13.5px; }
.qa-empty b { color: var(--text); font-size: 15px; }
.qa-empty > .dash-ic { width: 30px; height: 30px; color: #ff4fb0; }
.qa-empty.dashed { border: 1px dashed var(--border-strong); border-radius: 12px; }
.qa-empty-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ff2d95; background: radial-gradient(circle, rgba(255, 45, 149, .25), rgba(255, 45, 149, .05)); color: #ff4fb0; box-shadow: 0 0 24px rgba(255, 45, 149, .35); margin-bottom: 6px; }
.qa-empty-ic .dash-ic { width: 30px; height: 30px; }
.qa-empty span { max-width: 430px; }

.qa-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.qa-lead { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.qa-lead:hover { border-color: #ff2d95; }
.qa-lead-top { display: flex; align-items: center; gap: 10px; }
.qa-lead-name { flex: 1; min-width: 0; }
.qa-lead-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-lead-name small { color: var(--text-2); font-size: 12px; }
.qa-big { font-size: 22px; font-weight: 700; color: #ff4fb0; }
.qa-lead-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.qa-lead-offer { font-size: 12.5px; font-weight: 600; }
.qa-lead-offer small { display: block; color: var(--text-3); font-weight: 500; font-size: 11px; }
.qa-lead-link { display: inline-flex; align-items: center; gap: 6px; color: #ff4fb0; font-size: 12.5px; font-weight: 600; }
.qa-lead-link .dash-ic { width: 14px; height: 14px; }

@media (max-width: 1250px) { .qa-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .qa-card-head { flex-wrap: wrap; }
  .qa-card-head .qa-btn-outline, .qa-order { width: 100%; }
  .qa-hero::after { width: 100%; }
}

/* ================= Funil Comercial (LeadMap) ================= */
.fn { display: flex; flex-direction: column; gap: 16px; }
.fn-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fn-head .grad { background: linear-gradient(90deg, #ff4fb0, #ff2d95); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fn-head p { margin: 6px 0 0; color: var(--text-2); font-size: 16px; }

.fn-filters { display: flex; gap: 14px; flex-wrap: wrap; }
.fn-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); flex: 0 1 260px; min-width: 200px; }
.fn-field .dash-ic { width: 20px; height: 20px; color: #ff4fb0; flex-shrink: 0; }
.fn-field input, .fn-field select { border: 0; box-shadow: none; background-color: transparent; min-height: 44px; padding-left: 0; font-size: 14.5px; }
.fn-field:focus-within { border-color: #ff2d95; }
.fn-search { flex-basis: 290px; border-color: rgba(255, 45, 149, .6); }
.fn-search .dash-ic { color: var(--text-2); }

.fn-co { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 14px; }
.fn-co-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; text-align: left; cursor: pointer; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), var(--surface); color: var(--text); font: inherit; }
.fn-co-card:hover, .fn-co-card.active { box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.fn-co-ic { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.fn-co-ic .dash-ic { width: 24px; height: 24px; }
.fn-co-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--text-2); }
.fn-co-txt b { color: var(--c); font-size: 14px; }
.fn-co-txt strong { color: var(--text); margin-left: 4px; }
.fn-co-txt strong:first-child { margin-left: 0; }
.fn-co-card .spark { margin-left: auto; width: 64px; height: 36px; flex-shrink: 0; }
.fn-co-note { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; }
.fn-co-note .dash-ic { width: 22px; height: 22px; color: #ff4fb0; flex-shrink: 0; }

.fn-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.fn-board::-webkit-scrollbar { height: 10px; }
.fn-board::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.fn-col { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); background: var(--surface); padding: 14px; min-height: 420px; transition: border-color .15s, box-shadow .15s; }
.fn-col.drag-over { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 24px color-mix(in srgb, var(--c) 25%, transparent); }
.fn-col-head { display: flex; align-items: center; gap: 10px; }
.fn-col-head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-col-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.fn-col-ic .dash-ic { width: 20px; height: 20px; }
.fn-count { min-width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; padding: 0 8px; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border-strong); }
.fn-kebab { margin-left: auto; border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.fn-kebab:hover { background: var(--surface-2); color: var(--text); }
.fn-kebab .dash-ic { width: 18px; height: 18px; }
.fn-progress { height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, var(--surface-2)); margin: 14px 0 12px; overflow: hidden; }
.fn-progress span { display: block; height: 100%; border-radius: 99px; background: var(--c); min-width: 0; }
.fn-col-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 12px; color: var(--text-2); }
.fn-col-co { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.fn-drop { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fn-empty { flex: 1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px 16px;
  border: 1px dashed color-mix(in srgb, #ff2d95 55%, transparent); border-radius: 10px; color: var(--text-2); font-size: 13.5px; }
.fn-empty .dash-ic { width: 40px; height: 40px; color: #ff4fb0; stroke-width: 1.6; margin-bottom: 4px; }
.fn-empty b { color: var(--text); font-size: 14.5px; }
.fn-empty a { color: #ff4fb0; }

.fn-card { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 10px; padding: 12px; cursor: grab; display: flex; flex-direction: column; gap: 6px; }
.fn-card:hover, .fn-card:focus-visible { border-color: var(--c); outline: none; }
.fn-card:active { cursor: grabbing; }
.fn-card.dragging { opacity: .45; }
.fn-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.fn-card-top b { font-size: 13.5px; line-height: 1.3; }
.fn-score { min-width: 30px; text-align: center; border-radius: 7px; padding: 1px 6px; font-size: 12px; font-weight: 700; background: rgba(255, 45, 149, .14); color: #ff6eb4; }
.fn-card .k-offer { margin: 0; }
.fn-card-sub { font-size: 12px; color: var(--text-2); }
.fn-card-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.fn-value { font-size: 13px; color: #4ade80; }
.fn-card-foot { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.fn-pop-title { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }

@media (max-width: 1300px) { .fn-co { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fn-co-note { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .fn-co { grid-template-columns: 1fr; }
  .fn-field { flex: 1 1 100%; }
  .fn-board { grid-auto-columns: 82%; }
}

.fn-co-nums { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; }
.fn-co-nums > span { white-space: nowrap; }
.fn-co-txt strong { margin-left: 0; margin-right: 3px; }
.fn-board { grid-auto-columns: minmax(268px, 1fr); }
.fn-col-head { gap: 8px; }
.fn-col-head b { font-size: 14.5px; }

/* ================= Campanhas (LeadMap) ================= */
.cp { display: flex; flex-direction: column; gap: 16px; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cp-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.cp-head p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.cp-head-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-head-actions .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.cp-btn-wa { display: inline-flex; align-items: center; gap: 8px; }
.cp-btn-new .dash-ic { width: 18px; height: 18px; }
.wa-ic.big { width: 44px; height: 44px; }

.cp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cp-kpi { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--c); min-width: 0; }
.cp-kpi-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); grid-row: span 1; }
.cp-kpi-ic .dash-ic { width: 22px; height: 22px; }
.cp-kpi > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.cp-kpi b { font-size: 25px; line-height: 1.1; }
.cp-kpi > div:nth-child(2) span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-kpi-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; font-size: 12px; white-space: nowrap; }
.cp-kpi-foot .trend { margin: 0; }

.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.cp-layout.full { grid-template-columns: minmax(0, 1fr); }
.cp-layout.full .cp-side { display: none; }
.cp-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-width: 0; }

.cp-tabs { display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); overflow-x: auto; }
.cp-tab { position: relative; border: 0; background: transparent; color: var(--text); font-weight: 500; font-size: 14px; padding: 10px 20px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.cp-tab:hover { background: var(--surface-2); }
.cp-tab.active { background: #ff2d95; color: #fff; font-weight: 600; }
.cp-dot { min-width: 20px; height: 20px; border-radius: 99px; background: #ff2d95; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.cp-tab.active .cp-dot { background: #fff; color: #ff2d95; }

.cp-title { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.cp-sub { font-size: 15px; margin: 20px 0 10px; }
.cp-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-filters select { width: auto; min-height: 40px; background-color: var(--surface-2); }
.cp-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: var(--surface-2); max-width: 320px; }
.cp-search .dash-ic { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }
.cp-search input { border: 0; background: transparent; box-shadow: none; min-height: 38px; padding: 0; }

.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-table th { text-align: left; color: var(--text-2); font-weight: 600; font-size: 12.5px; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.cp-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cp-table.sm td { padding: 8px 10px; }
.cp-table .r { text-align: right; }
.cp-table .c { text-align: center; }
.cp-table td small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.cp-name { color: var(--text); font-weight: 600; }
.cp-name:hover { color: #ff6eb4; }
.cp-chs { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cp-chs .wa-ic, .cp-chic .dash-ic { width: 18px; height: 18px; }
.cp-chic { display: inline-flex; }
.cp-chname { color: var(--text-2); }
.cp-prog { display: inline-flex; align-items: center; gap: 10px; }
.cp-bar { width: 80px; height: 7px; border-radius: 99px; background: var(--border-strong); overflow: hidden; }
.cp-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff2d95, #ff6eb4); }
.cp-owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cp-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cp-kebab { border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer; padding: 4px; border-radius: 8px; display: inline-flex; }
.cp-kebab:hover { color: var(--text); background: var(--surface-2); }
.cp-kebab .dash-ic { width: 16px; height: 16px; }
.cp-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.cp-st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cp-st.ok { color: #4ade80; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .3); }
.cp-st.warn { color: #fbbf24; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); }
.cp-st.off { color: var(--text-2); background: var(--surface-2); border-color: var(--border-strong); }
.cp-st.done { color: #b49bff; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .3); }
.cp-st.info { color: #60a5fa; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .3); }
.cp-st.bad { color: #ff6eb4; background: rgba(255, 45, 149, .12); border-color: rgba(255, 45, 149, .3); }
.cp-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2); }

.cp-pag { display: flex; align-items: center; gap: 6px; padding-top: 12px; font-size: 13px; }
.cp-pg { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; font-weight: 600; }
.cp-pg.active { background: #ff2d95; border-color: #ff2d95; color: #fff; }
.cp-pg:disabled { opacity: .4; cursor: default; }

.cp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 16px; color: var(--text-2); font-size: 13.5px; }
.cp-empty.sm { padding: 20px 12px; }
.cp-empty > .dash-ic { width: 34px; height: 34px; color: #ff4fb0; }
.cp-empty b { color: var(--text); font-size: 15px; }
.cp-empty span { max-width: 460px; }
.cp-empty .btn { margin-top: 6px; }

/* lateral */
.cp-wa-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.cp-wa-head h3 { font-size: 16px; }
.cp-wa-acc { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cp-wa-acc > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-wa-acc span { color: var(--text-2); font-size: 12.5px; }
.cp-wa-acc .btn .dash-ic { width: 14px; height: 14px; }
.cp-wa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cp-wa-stats div { border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; text-align: center; background: var(--surface-2); }
.cp-wa-stats b { display: block; font-size: 16px; }
.cp-wa-stats span { font-size: 11px; color: var(--text-2); }
.cp-note { display: flex; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--text-3); }
.cp-note .dash-ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.cp-steps { list-style: none; margin: 0; padding: 0; }
.cp-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
.cp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 2px; width: 2px; background: var(--border-strong); }
.cp-steps b { display: block; font-size: 14px; }
.cp-steps span { font-size: 12.5px; color: var(--text-2); }
.cp-step-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid var(--c, #ff2d95); background: color-mix(in srgb, var(--c, #ff2d95) 14%, transparent); color: var(--c, #ff2d95); }
.cp-step-ic .dash-ic, .cp-step-ic .wa-ic { width: 20px; height: 20px; }

/* parte de baixo */
.cp-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cp-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cp-sec-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cp-count { min-width: 22px; height: 22px; border-radius: 99px; background: #ff2d95; color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.cp-link { color: #ff4fb0; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.cp-link .dash-ic { width: 14px; height: 14px; }
.cp-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-lead b { display: block; font-size: 13px; }
.cp-msg { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.cp-btn-do { border-color: #ff2d95; color: #ff6eb4; }
.cp-btn-do:hover { background: rgba(255, 45, 149, .12); }

/* executar ação */
.cp-do { display: flex; flex-direction: column; gap: 12px; }
.cp-do-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.cp-do-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cp-do-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-do-links .btn { display: inline-flex; align-items: center; gap: 6px; }
.cp-do-links .dash-ic { width: 16px; height: 16px; }
.cp-alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; align-items: flex-start; }
.cp-alert .dash-ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.cp-alert.warn { background: rgba(251, 146, 60, .08); border: 1px solid rgba(251, 146, 60, .45); color: var(--text-2); }
.cp-alert.warn .dash-ic { color: #fb923c; }
.cp-alert.ok { background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .35); color: var(--text-2); }
.cp-alert.ok .dash-ic { color: #4ade80; }

/* detalhe */
.cp-detail-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-mini-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cp-mini-kpis div { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); min-width: 0; }
.cp-mini-kpis b { display: block; font-size: 19px; }
.cp-mini-kpis span { font-size: 11.5px; color: var(--text-2); }
.cp-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.cp-subtabs button { border: 0; background: transparent; color: var(--text-2); padding: 9px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.cp-subtabs button.active { color: #ff6eb4; border-bottom-color: #ff2d95; }
.cp-due { color: #ff6eb4; }
.cp-timeline { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.cp-timeline li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.cp-hsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cp-hsteps li { flex: 0 0 210px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--border)); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; position: relative; }
.cp-hsteps li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; color: var(--text-3); }
.cp-hsteps .cp-step-ic { width: 34px; height: 34px; margin-bottom: 4px; }
.cp-hsteps b { font-size: 13.5px; }
.cp-hsteps p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.cp-cadrow { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.cp-cadrow-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-presets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.cp-preset { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px; }
.cp-preset > b { display: block; margin-bottom: 10px; }
.cp-preset .cp-hsteps li { flex-basis: 170px; }

/* assistente */
.cp-wz-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cp-wz-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.cp-wz-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; }
.cp-wz-steps li.active { border-color: #ff2d95; color: var(--text); }
.cp-wz-steps li.active span { background: #ff2d95; color: #fff; }
.cp-wz-steps li.done span { background: rgba(34, 197, 94, .2); color: #4ade80; }
.cp-wz-foot { display: flex; gap: 8px; width: 100%; align-items: center; }
.cp-radio { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cp-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; font-weight: 500; }
.cp-radio label:has(input:checked) { border-color: #ff2d95; background: rgba(255, 45, 149, .1); }
.cp-radio input { width: auto; min-height: 0; }
.cp-presets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cp-builder { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cp-bstep { border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.cp-bstep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cp-bstep-head .cp-step-ic { width: 32px; height: 32px; }
.cp-bstep-head select { width: auto; min-height: 36px; }
.cp-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.cp-inline input { width: 64px; min-height: 34px; padding: 4px 8px; }
.cp-icbtn { border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); border-radius: 8px; padding: 5px; cursor: pointer; display: inline-flex; }
.cp-icbtn:disabled { opacity: .35; cursor: default; }
.cp-icbtn.danger:hover { color: #ff4d6d; border-color: #ff4d6d; }
.cp-icbtn .dash-ic { width: 15px; height: 15px; }
.cp-vars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.cp-vars button { border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; font-family: ui-monospace, monospace; }
.cp-vars button:hover { border-color: #ff2d95; color: #ff6eb4; }
.cp-vars .cp-prevmsg { font-family: inherit; border-style: solid; margin-left: auto; }
.cp-bubble { margin-top: 10px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3); font-size: 13px; line-height: 1.45; }
.cp-bubble small { display: block; color: var(--text-3); margin-bottom: 4px; }
.cp-warnline { display: flex; gap: 6px; align-items: center; font-size: 12px; color: #fbbf24; margin: 6px 0 0; }
.cp-warnline .dash-ic { width: 14px; height: 14px; }
.cp-preview .cp-mini-kpis { margin-bottom: 10px; }
.cp-sample { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-sample span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
.cp-sample small { color: var(--text-3); }
.cp-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cp-review > div { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.cp-review span { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.cp-review small { color: var(--text-2); font-size: 12.5px; }

/* caixa de entrada */
.cp-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); padding: 0; min-height: 600px; overflow: hidden; }
.cp-inbox-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.cp-inbox-tools { display: flex; gap: 8px; padding: 12px; }
.cp-inbox-tools .cp-search { max-width: none; }
.cp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 12px; border-bottom: 1px solid var(--border); }
.cp-chips button { border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.cp-chips button.active { border-color: #ff2d95; color: #fff; background: rgba(255, 45, 149, .2); }
.cp-convs { overflow: auto; max-height: 640px; }
.cp-conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.cp-conv:hover { background: var(--surface-2); }
.cp-conv.active { background: rgba(255, 45, 149, .1); box-shadow: inset 3px 0 0 #ff2d95; }
.cp-conv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-conv-txt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-conv-txt small { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cp-conv-meta small { color: var(--text-3); font-size: 11px; white-space: nowrap; }
.cp-thread { display: flex; flex-direction: column; min-width: 0; }
.cp-thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cp-thread-head .cp-av { width: 36px; height: 36px; font-size: 14px; }
.cp-thread-head small { display: block; color: var(--text-2); font-size: 12px; }
.cp-thread-head select { width: auto; min-height: 34px; font-size: 13px; }
.cp-thread-info { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.cp-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 460px; }
.cp-bub { max-width: 75%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.cp-bub small { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: var(--text-3); flex-wrap: wrap; }
.cp-bub small .wa-ic, .cp-bub small .dash-ic { width: 12px; height: 12px; }
.cp-bub.in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cp-bub.out { align-self: flex-end; background: rgba(255, 45, 149, .14); border: 1px solid rgba(255, 45, 149, .3); border-bottom-right-radius: 4px; }
.cp-compose { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cp-compose-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cp-compose-top select { width: auto; min-height: 34px; }
.cp-compose-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-compose-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.cp-compose-actions .dash-ic { width: 16px; height: 16px; }
.cp-pick { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.cp-pick button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.cp-pick button:hover { border-color: #ff2d95; }
.cp-pick small { display: block; color: var(--text-2); font-size: 12px; }

/* modelos */
.cp-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cp-tpl { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.cp-tpl-head { display: flex; align-items: center; gap: 8px; }
.cp-tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-tpl p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; max-height: 140px; overflow: hidden; }
.cp-tpl mark { background: rgba(255, 45, 149, .18); color: #ff6eb4; border-radius: 4px; padding: 0 3px; }

/* resultados e configurações */
.cp-chart { height: 220px; margin-bottom: 8px; }
.cp-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-check { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.cp-check b { color: var(--text); }
.cp-connect { display: flex; flex-direction: column; gap: 8px; }
.cp-supp-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-supp-form input { flex: 1 1 200px; }
.cp-supp-form select { width: auto; }

@media (max-width: 1500px) { .cp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1250px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-side { display: grid; grid-template-columns: 1fr 1fr; }
  .cp-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cp-inbox { grid-template-columns: 1fr; }
  .cp-inbox-list { border-right: 0; border-bottom: 1px solid var(--border); }
  .cp-convs { max-height: 260px; }
  .cp-mini-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-side { grid-template-columns: 1fr; }
  .cp-tab { padding: 9px 12px; }
}

/* Usuário no topo (todas as telas) */
.top-user { position: relative; }
.top-user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 4px 6px; border-radius: 10px; font: inherit; }
.top-user-btn:hover { background: var(--surface-2); }
.top-user-btn .avatar { width: 34px; height: 34px; font-size: 14px; }
.top-user-btn .who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.top-user-btn .who b { font-size: 13.5px; }
.top-user-btn .who small { font-size: 12px; color: var(--text-2); }
.top-user-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); z-index: 50; display: flex; flex-direction: column; }
.top-user-menu.hidden { display: none; }
.top-user-menu a, .top-user-menu button { padding: 9px 10px; border-radius: 8px; color: var(--text); background: transparent; border: 0; text-align: left; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.top-user-menu a:hover, .top-user-menu button:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 760px) { .top-user-btn .who { display: none; } }

/* Campanhas: seleção, ações em massa, paginação */
.cp-chk { width: 34px; }
.cp-chk input { width: 16px; height: 16px; min-height: 0; }
.cp-table tr.selected td { background: rgba(255, 45, 149, .06); }
.cp-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 10px; border-radius: 10px; border: 1px solid rgba(255, 45, 149, .4); background: rgba(255, 45, 149, .08); font-size: 13px; }
.cp-pag select { width: auto; min-height: 32px; padding: 2px 28px 2px 10px; font-size: 12.5px; margin-left: 8px; }
.cp-table td.num small { font-weight: 400; }

/* Cadência lateral com setas entre as etapas (como no modelo) */
.cp-steps li { padding-bottom: 26px; }
.cp-steps li:not(:last-child)::after { content: "↓"; left: 14px; top: 42px; bottom: auto; width: auto; background: none; color: var(--text-3); font-size: 14px; line-height: 1; }

/* Conversas que precisam de atenção: largura toda, duas colunas */
.cp-attn-card .cp-sec-head h3 { font-size: 17px; }
.cp-attn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cp-attn th { font-size: 12px; padding: 8px; }
.cp-attn td { padding: 7px 8px; font-size: 12.5px; }
.cp-attn .cp-msg { max-width: 190px; }
.cp-attn .cp-lead b { font-size: 12.5px; }
.cp-attn .cp-lead small { font-size: 11px; }
.cp-attn .cp-kebab { padding: 3px; }
.cp-act { min-width: 96px; justify-content: center; background: var(--surface); border: 1px solid var(--border-strong); }
.cp-act:hover { border-color: #ff2d95; }
@media (max-width: 1250px) { .cp-attn-grid { grid-template-columns: 1fr; } }

/* Conversas: colunas fixas para caber em duas metades sem quebrar */
.cp-attn-grid .cp-table-wrap { overflow: hidden; }
.cp-attn { table-layout: fixed; }
.cp-attn th:nth-child(1) { width: 30%; }
.cp-attn th:nth-child(3) { width: 46px; }
.cp-attn th:nth-child(4) { width: 62px; }
.cp-attn th:nth-child(5) { width: 112px; }
.cp-attn th:nth-child(6) { width: 104px; }
.cp-attn th:nth-child(7) { width: 34px; }
.cp-attn td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-attn .cp-lead > span { min-width: 0; overflow: hidden; }
.cp-attn .cp-lead b, .cp-attn .cp-lead small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-attn .cp-msg { max-width: none; }
.cp-attn .cp-act { min-width: 0; width: 100%; padding-left: 6px; padding-right: 6px; }
/* Rótulos dos cartões do topo podem ocupar 2 linhas */
.cp-kpi > div:nth-child(2) span { white-space: normal; line-height: 1.25; }
.cp-attn th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-attn th:nth-child(3), .cp-attn td:nth-child(3) { text-align: center; padding-left: 12px; }

/* ================= Agenda e Tarefas (LeadMap) ================= */
.ag { display: flex; flex-direction: column; gap: 16px; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ag-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ag-head p { margin: 6px 0 0; color: var(--text-2); }
.ag-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-tb { min-height: 40px; padding: 0 16px; font-weight: 600; }
.ag-tb.on { border-color: #ff2d95; color: #ff6eb4; }
.ag-ic { padding: 0; width: 40px; justify-content: center; }
.ag-ic .dash-ic { width: 16px; height: 16px; }
.ag-date { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 10px; background: var(--surface); min-height: 40px; }
.ag-date .dash-ic { width: 16px; height: 16px; color: var(--text-2); }
.ag-date input { border: 0; background: transparent; box-shadow: none; min-height: 38px; padding: 0; width: 130px; color-scheme: dark; }
.ag-owner { width: auto; min-height: 40px; min-width: 190px; background-color: var(--surface); }
.ag-split { display: inline-flex; }
.ag-split .btn { min-height: 42px; }
.ag-split .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; padding: 0 18px; }
.ag-split-arrow { border-top-left-radius: 0; border-bottom-left-radius: 0; padding: 0 10px; border-left: 1px solid rgba(255, 255, 255, .25); }
.ag-split .dash-ic { width: 16px; height: 16px; }

.ag-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ag-kpi { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--surface); text-align: left; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.ag-kpi:hover { box-shadow: 0 0 0 1px var(--c); }
.ag-kpi-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.ag-kpi-ic .dash-ic { width: 24px; height: 24px; }
.ag-kpi-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.ag-kpi-txt b { font-size: 24px; line-height: 1.1; }
.ag-kpi-txt > span { font-size: 13px; font-weight: 600; }
.ag-kpi-txt small { font-size: 12px; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.ag-kpi-txt small .trend { margin: 0; }
.ag-late-txt { color: #ff4d6d; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.ag-late-txt .dash-ic { width: 13px; height: 13px; }

.ag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ag-main { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 0 14px; min-width: 0; overflow: hidden; }
.ag-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.ag-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ag-tab .dash-ic { width: 16px; height: 16px; }
.ag-tab:hover { background: var(--surface-2); }
.ag-tab.active { background: #ff2d95; color: #fff; font-weight: 600; }

.ag-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 14px 10px; }
.ag-views { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; padding: 3px; gap: 2px; background: var(--surface-2); }
.ag-views button { border: 0; background: transparent; color: var(--text-2); padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ag-views button.active { background: #ff2d95; color: #fff; }
.ag-title { flex: 1; text-align: center; font-size: 16px; min-width: 200px; }
.ag-search { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 10px; min-height: 40px; background: var(--surface); }
.ag-search .dash-ic { width: 16px; height: 16px; color: var(--text-2); }
.ag-search input { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 36px; width: 0; transition: width .15s; }
.ag-search:focus-within input, .ag-search.open input { width: 150px; }
.ag-toolbar .btn-primary { min-height: 40px; }
.ag-toolbar .btn-primary .dash-ic { width: 16px; height: 16px; }

/* dia / semana */
.ag-cal { max-height: 640px; overflow: auto; padding: 0 14px; }
.ag-day { display: grid; grid-template-columns: 52px minmax(0, 1fr); position: relative; padding: 8px 0 14px; }
.ag-hours { position: relative; }
.ag-hours span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 12.5px; color: var(--text-2); }
.ag-grid { position: relative; border-left: 1px solid var(--border); cursor: copy; }
.ag-grid.over { background: rgba(255, 45, 149, .05); }
.ag-slot { height: 52px; }
.ag-now { position: absolute; left: -6px; right: 0; height: 2px; background: #ff4d6d; z-index: 3; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; }
.ag-empty-day { position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: var(--text-3); font-size: 13px; pointer-events: none; }
.ag-ev-wrap { position: absolute; z-index: 2; }
.ag-ev { height: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-left: 3px solid var(--c);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 12%, transparent)); cursor: pointer; overflow: hidden; color: var(--text); }
.ag-ev:hover { box-shadow: 0 0 0 1px var(--c), 0 4px 16px color-mix(in srgb, var(--c) 30%, transparent); }
.ag-ev.dragging { opacity: .45; }
.ag-ev.done { opacity: .55; }
.ag-ev.done b { text-decoration: line-through; }
.ag-ev.late { border-left-color: #ff4d6d; }
.ag-ev-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.ag-ev-ic .dash-ic { width: 18px; height: 18px; }
.ag-ev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ag-ev-txt b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev-txt small { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev-av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.ag-ev-av.lg { width: 38px; height: 38px; font-size: 15px; }
.ag-ev.compact { padding: 2px 6px; gap: 6px; }
.ag-ev.compact .ag-ev-ic { width: 20px; height: 20px; border-radius: 5px; }
.ag-ev.compact .ag-ev-ic .dash-ic { width: 12px; height: 12px; }
.ag-ev.compact .ag-ev-txt b { font-size: 11.5px; }
.ag-notime { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 0 12px; font-size: 13px; }
.ag-week { min-width: 760px; }
.ag-week-head { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); position: sticky; top: 0; background: var(--surface); z-index: 4; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ag-week-head button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px; border-radius: 8px; }
.ag-week-head button b { display: block; font-size: 16px; color: var(--text); }
.ag-week-head button.today b { color: #ff4fb0; }
.ag-week-head button.sel { background: var(--surface-2); }
.ag-week-body { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); padding: 8px 0 14px; }

/* mês */
.ag-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding-bottom: 6px; }
.ag-month-wd { text-align: center; font-size: 12px; color: var(--text-2); font-weight: 600; padding: 4px 0; }
.ag-mday { min-height: 104px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; background: var(--surface-2); cursor: copy; min-width: 0; }
.ag-mday.out { opacity: .45; }
.ag-mday.today { border-color: #ff2d95; }
.ag-mday.over { background: rgba(255, 45, 149, .08); }
.ag-mnum { align-self: flex-start; border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.ag-mday.today .ag-mnum { background: #ff2d95; color: #fff; }
.ag-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--text); border-radius: 5px; padding: 2px 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-family: inherit; }
.ag-notime .ag-chip { width: auto; }
.ag-chip.done { opacity: .5; text-decoration: line-through; }
.ag-chip.late { border-left-color: #ff4d6d; }
.ag-more { border: 0; background: transparent; color: #ff6eb4; font-size: 11.5px; cursor: pointer; text-align: left; padding: 0 4px; }

/* lista / equipe */
.ag-pane-pad { padding: 0 14px; }
.ag-group { padding: 0 14px; margin-bottom: 14px; }
.ag-group h4 { font-size: 13px; color: var(--text-2); margin: 6px 0 8px; text-transform: capitalize; }
.ag-row { display: grid; grid-template-columns: 20px 34px 92px minmax(0, 1fr) auto 150px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 10px; margin-bottom: 6px; background: var(--surface-2); }
.ag-row input[type=checkbox] { width: 16px; height: 16px; min-height: 0; }
.ag-row.done { opacity: .55; }
.ag-row.done .ag-row-title b { text-decoration: line-through; }
.ag-row.late { border-color: rgba(255, 77, 109, .45); border-left-color: #ff4d6d; }
.ag-row-time { font-size: 13px; color: var(--text-2); }
.ag-row-title { color: var(--text); min-width: 0; }
.ag-row-title b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row-title small { color: var(--text-2); font-size: 12px; }
.ag-row-user { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.ag-qa { min-width: 86px; justify-content: center; border-color: var(--border-strong); }
.ag-done-tag { font-size: 12px; color: #4ade80; }
.ag-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; color: var(--text-2); text-align: center; }
.ag-empty .dash-ic { width: 32px; height: 32px; color: #ff4fb0; }
.ag-empty b { color: var(--text); }
.ag-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; padding: 0 14px; }
.ag-member { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.ag-member-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ag-member-head > div { flex: 1; min-width: 0; }
.ag-member-head small { display: block; color: var(--text-2); font-size: 12px; }
.ag-member .ag-row { grid-template-columns: 20px 34px 80px minmax(0, 1fr) auto; }
.ag-member .ag-row-user, .ag-member .ag-late-txt { display: none; }

/* kanban */
.ag-kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; padding: 0 14px; overflow-x: auto; }
.ag-kcol { border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 12px; padding: 10px; background: var(--surface-2); min-height: 320px; display: flex; flex-direction: column; gap: 8px; }
.ag-kcol.over { box-shadow: 0 0 0 1px var(--c); }
.ag-kcol-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.ag-kcol-head span { min-width: 24px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12px; padding: 0 6px; }
.ag-kcard { border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 9px; padding: 8px 10px; background: var(--surface); cursor: grab; display: flex; flex-direction: column; gap: 3px; }
.ag-kcard.dragging { opacity: .45; }
.ag-kcard.done { opacity: .6; }
.ag-kcard-top { display: flex; align-items: center; gap: 8px; }
.ag-kcard-top .ag-ev-ic { width: 24px; height: 24px; border-radius: 6px; }
.ag-kcard-top .ag-ev-ic .dash-ic { width: 13px; height: 13px; }
.ag-kcard-top b { font-size: 12.5px; }
.ag-kcard small { font-size: 11.5px; color: var(--text-2); }
.ag-kempty { color: var(--text-3); font-size: 12px; text-align: center; padding: 16px 4px; border: 1px dashed var(--border-strong); border-radius: 8px; }

/* lateral */
.ag-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ag-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.ag-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.ag-card-head h3 { font-size: 16px; }
.ag-red { color: #ff4d6d; }
.ag-link { color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.ag-link:hover { color: #ff6eb4; }
.ag-link .dash-ic { width: 14px; height: 14px; }
.ag-late { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.ag-late:first-of-type { border-top: 0; }
.ag-late .ag-ev-ic { width: 38px; height: 38px; }
.ag-late a { color: var(--text); min-width: 0; }
.ag-late b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-late small { color: #ff4d6d; font-size: 12px; }
.ag-mini-nav { border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.ag-mini-nav:hover { background: var(--surface-2); }
.ag-mini-nav .dash-ic { width: 16px; height: 16px; }
.ag-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ag-mini .wd { font-size: 12px; color: var(--text-2); padding: 4px 0; }
.ag-mini button { position: relative; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; height: 32px; border-radius: 8px; cursor: pointer; }
.ag-mini button:hover { background: var(--surface-2); }
.ag-mini button.out { color: var(--text-3); }
.ag-mini button.today { box-shadow: inset 0 0 0 1px #ff2d95; }
.ag-mini button.sel { background: #ff2d95; color: #fff; font-weight: 700; }
.ag-mini button i { position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #ff6eb4; transform: translateX(-50%); }
.ag-mini button i.late { background: #ff4d6d; }
.ag-mini button.sel i { background: #fff; }
.ag-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ag-types button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px 2px; border-radius: 10px; }
.ag-types button:hover { background: var(--surface-2); }
.ag-types button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ag-types button.off { opacity: .45; }
.ag-types .ag-ev-ic { width: 40px; height: 40px; border-radius: 10px; }
.ag-pop-title { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.ag-chk { width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: 4px; display: inline-block; }
.ag-chk.on { background: #ff2d95; border-color: #ff2d95; }

/* janela de tarefa */
.ag-form { display: flex; flex-direction: column; gap: 14px; }
.ag-type-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-type-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; }
.ag-type-pick label:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ag-type-pick input { display: none; }
.ag-type-pick .ag-ev-ic { width: 26px; height: 26px; border-radius: 7px; }
.ag-type-pick .ag-ev-ic .dash-ic { width: 15px; height: 15px; }
.ag-times span { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.ag-times input { min-width: 0; color-scheme: dark; }
.ag-done-field .check { min-height: 40px; display: flex; align-items: center; gap: 8px; }
.ag-modal-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-modal-links:empty { display: none; }
.ag-modal-links .btn { display: inline-flex; align-items: center; gap: 6px; }
.ag-modal-links .dash-ic { width: 15px; height: 15px; }
:root[data-theme="light"] .ag-date input, :root[data-theme="light"] .ag-times input { color-scheme: light; }

@media (max-width: 1500px) { .ag-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .ag-layout { grid-template-columns: 1fr; } .ag-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 760px) {
  .ag-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-row { grid-template-columns: 20px 34px minmax(0, 1fr) auto; }
  .ag-row-time, .ag-row-user { display: none; }
  .ag-title { order: 10; flex-basis: 100%; }
  .ag-team { grid-template-columns: 1fr; }
}

/* ================= Relatórios (LeadMap) ================= */
.rp { display: flex; flex-direction: column; gap: 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rp-title { display: flex; align-items: center; gap: 16px; }
.rp-title-ic { color: #ff2d95; display: inline-flex; }
.rp-title-ic .dash-ic { width: 38px; height: 38px; }
.rp-title h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.rp-title p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.rp-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rp-tools select, .rp-tools input { width: auto; min-height: 46px; background-color: var(--surface); border-radius: 10px; font-size: 15px; }
.rp-tools select { min-width: 170px; }
.rp-tools input[type=date] { color-scheme: dark; min-width: 160px; }
:root[data-theme="light"] .rp-tools input[type=date] { color-scheme: light; }
.rp-btn { min-height: 46px; padding: 0 16px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.rp-btn .dash-ic { width: 18px; height: 18px; }

.rp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.rp-kpi { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 22px 20px; min-height: 116px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); min-width: 0; }
.rp-kpi.hl { border-color: #ff2d95; background: linear-gradient(150deg, rgba(255, 45, 149, .2), rgba(255, 45, 149, .04) 60%), var(--surface); box-shadow: 0 0 22px rgba(255, 45, 149, .18); }
.rp-kpi.warm { border-color: rgba(251, 146, 60, .55); }
.rp-kpi.ok { border-color: rgba(34, 197, 94, .55); }
.rp-kpi.cost { border-color: rgba(168, 85, 247, .6); }
.rp-kpi-ic { color: var(--c); display: inline-flex; margin-top: 4px; }
.rp-kpi-ic .dash-ic { width: 30px; height: 30px; }
.rp-kpi-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-kpi-txt span { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-kpi-txt b { font-size: 28px; line-height: 1; }
.rp-kpi.cost .rp-kpi-txt b { font-size: 27px; }
.rp-kpi-txt small { font-size: 13px; color: var(--text-2); }
.rp-mini { position: absolute; right: 20px; bottom: 26px; display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.rp-mini i { width: 4px; border-radius: 2px; background: var(--c); }

.rp-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; min-width: 0; }
.rp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rp-card-head h3 { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.rp-h-ic { color: #ff2d95; display: inline-flex; }
.rp-h-ic .dash-ic { width: 24px; height: 24px; }
.rp-top { width: auto; min-height: 32px; border: 0; background-color: transparent; box-shadow: none; font-size: 13.5px; padding-right: 28px; cursor: pointer; }
.rp-chart { height: 220px; padding: 18px 24px 10px; }
.rp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; color: var(--text-2); text-align: center; }
.rp-empty .dash-ic { width: 32px; height: 32px; color: #ff4fb0; }
.rp-empty b { color: var(--text); }
.rp-pad { padding: 16px 24px; margin: 0; }
.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rp-table th { text-align: left; font-weight: 500; color: var(--text-2); padding: 14px 24px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rp-table td { padding: 12px 24px; border-bottom: 1px solid var(--border); }
.rp-table tbody tr:last-child td { border-bottom: 0; }
.rp-table tr[data-go] { cursor: pointer; }
.rp-table tr[data-go]:hover td, .rp-table tr[data-go]:focus td { background: rgba(255, 45, 149, .06); outline: none; }
.rp-total td { background: var(--surface-2); font-weight: 600; }
.rp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rp-grid2 .rp-table th, .rp-grid2 .rp-table td { padding: 10px 24px; }

@media (max-width: 1500px) { .rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .rp-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-title h1 { font-size: 26px; }
  .rp-tools select, .rp-tools input { flex: 1 1 140px; }
}
.rp-kpi-txt b { white-space: nowrap; }
.rp-kpi.cost .rp-kpi-txt b { font-size: 24px; }

/* ================= Manual ================= */
.mn { display: flex; flex-direction: column; gap: 18px; }
.mn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mn-title { display: flex; align-items: center; gap: 16px; }
.mn-title-ic { color: #ff2d95; display: inline-flex; }
.mn-title-ic .dash-ic { width: 38px; height: 38px; }
.mn-title h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.mn-title p { margin: 6px 0 0; color: var(--text-2); }
.mn-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mn-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: var(--surface); min-height: 44px; min-width: 320px; }
.mn-search .dash-ic { width: 17px; height: 17px; color: var(--text-2); }
.mn-search input { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 40px; }
.mn-pdf { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.mn-pdf .dash-ic { width: 18px; height: 18px; }

.mn-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.mn-toc { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); max-height: calc(100vh - 110px); overflow: auto; }
.mn-toc > b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 2px 8px 8px; }
.mn-toc a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; text-decoration: none; }
.mn-toc a span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface-2); flex-shrink: 0; }
.mn-toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.mn-toc a.active { background: rgba(255, 45, 149, .12); color: #ff6eb4; }
.mn-toc a.active span { background: #ff2d95; color: #fff; }
.mn-toc a.dim { opacity: .35; }

.mn-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mn-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; scroll-margin-top: 80px; }
.mn-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.mn-sec-head h2 { font-size: 22px; font-weight: 700; flex: 1; min-width: 200px; }
.mn-num { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #ff2d95; color: #fff; font-weight: 800; flex-shrink: 0; }
.mn-open { display: inline-flex; align-items: center; gap: 6px; }
.mn-open .dash-ic { width: 14px; height: 14px; }
.mn-summary { margin: 0 0 16px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.mn-fig { margin: 0 0 18px; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; }
.mn-fig img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover; object-position: top; }
.mn-fig figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-top: 1px solid var(--border); }
.mn-fig figcaption .dash-ic { width: 14px; height: 14px; }
.mn-fig:hover { border-color: #ff2d95; }
.mn-block { margin-bottom: 14px; }
.mn-block h3 { font-size: 16px; color: #ff6eb4; margin: 0 0 8px; }
.mn-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; line-height: 1.55; color: var(--text); }
.mn-list li::marker { color: #ff4fb0; font-weight: 700; }
.mn-list b { color: var(--text); }
.mn-qa { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; margin-bottom: 8px; background: var(--surface-2); }
.mn-qa summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.mn-qa p { margin: 0 0 12px; color: var(--text-2); line-height: 1.55; }
.mn-tip { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.mn-tip > .dash-ic { width: 20px; height: 20px; color: #fbbf24; flex-shrink: 0; margin-top: 2px; }
.mn-tip b { color: #fbbf24; }
.mn-tip p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.mn-none { text-align: center; color: var(--text-2); padding: 30px; }
.mn-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); z-index: 20; }
.mn-top:hover { border-color: #ff2d95; color: #ff6eb4; }
.mn-top .dash-ic { width: 18px; height: 18px; }
.mn-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .88); display: flex; align-items: flex-start; justify-content: center; padding: 30px; overflow: auto; cursor: zoom-out; }
.mn-lightbox figure { margin: 0; max-width: 1600px; width: 100%; }
.mn-lightbox img { width: 100%; height: auto; border-radius: 10px; }
.mn-lightbox figcaption { color: #ddd; text-align: center; margin-top: 10px; font-size: 13px; }

@media (max-width: 1000px) {
  .mn-layout { grid-template-columns: 1fr; }
  .mn-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .mn-toc > b { width: 100%; }
  .mn-search { min-width: 0; flex: 1 1 220px; }
}
@media (max-width: 640px) { .mn-sec { padding: 16px; } .mn-title h1 { font-size: 24px; } }
@media print { .mn-toc, .mn-tools, .mn-top, .mn-open { display: none !important; } .mn-layout { grid-template-columns: 1fr; } }

/* Busca: abas de região (Brasil, EUA e Canadá, América Latina, Europa) */
.sv2-regions { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.sv2-region { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.sv2-region svg { width: 16px; height: 16px; }
.sv2-region:hover { color: var(--text); background: var(--surface); }
.sv2-region.active { background: #ff2d95; color: #fff; }
.sv2-geo-tip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 4px 0 12px; border-radius: 10px; border: 1px solid rgba(59, 130, 246, .4); background: rgba(59, 130, 246, .08); color: var(--text-2); font-size: 13px; line-height: 1.5; }
.sv2-geo-tip svg { width: 18px; height: 18px; flex-shrink: 0; color: #60a5fa; margin-top: 1px; }
.lc-country { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: rgba(59, 130, 246, .15); color: #60a5fa; }
.sv2-region svg { color: #ff2d95; stroke: #ff2d95; }
.sv2-region.active svg { color: #fff; stroke: #fff; }
/* Autorização de custo da pesquisa */
.sv2-auth-total { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 12px; border: 1px solid var(--primary-border); background: var(--primary-50); text-align: center; }
.sv2-auth-total span { font-size: 12.5px; color: var(--text-2); }
.sv2-auth-total b { font-size: 28px; line-height: 1.15; color: var(--text); }
.sv2-auth-total small { font-size: 14px; color: var(--text-2); }
.sv2-auth-list { margin: 14px 0 0; display: grid; gap: 0; }
.sv2-auth-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sv2-auth-list > div:last-child { border-bottom: 0; }
.sv2-auth-list dt { color: var(--text-2); }
.sv2-auth-list dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; }

/* ===================== Painel de Vendas (sl-) ===================== */
.sl { display: flex; flex-direction: column; gap: 18px; --pk: #ec0b83; --pk2: #ff2999; }
.sl-ic { width: 20px; height: 20px; flex-shrink: 0; }
.sl-head { display: flex; align-items: center; gap: 18px; }
.sl-head-ic { color: var(--pk2); display: inline-flex; }
.sl-head-ic .sl-ic { width: 44px; height: 44px; }
.sl-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sl-head p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.sl-alert { margin: 0; }
.sl-link { background: none; border: 0; padding: 0; color: var(--pk2); font-weight: 600; cursor: pointer; font-size: 13px; }
.sl-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sl-kpi { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); min-width: 0; transition: border-color .2s; }
.sl-kpi:first-child { border-color: rgba(236, 11, 131, .55); box-shadow: 0 0 22px rgba(236, 11, 131, .12); }
.sl-kpi-ic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.sl-kpi-ic .sl-ic { width: 28px; height: 28px; }
.sl-kpi-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sl-kpi-txt span { font-size: 13.5px; color: var(--text-2); }
.sl-kpi-txt b { font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sl-kpi-txt small { font-size: 12.5px; color: var(--text-3); }
.sl-kpi-link { background: none; border: 0; padding: 0; text-align: left; color: var(--pk2); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 2px; }
.sl-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; min-width: 0; }
.sl-card-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 10px; flex-wrap: wrap; }
.sl-card-head h3 { font-size: 19px; }
.sl-card-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.sl-h-ic { color: var(--pk2); display: inline-flex; }
.sl-h-ic .sl-ic { width: 28px; height: 28px; }
.sl-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sl-grid3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sl-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 22px 4px; }
.sl-type { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.sl-type small { color: var(--text-3); font-size: 12px; line-height: 1.4; }
.sl-type.active { border-color: var(--pk); background: rgba(236, 11, 131, .1); box-shadow: inset 0 0 0 1px var(--pk); }
.sl-packs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 14px 22px 6px; }
.sl-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sl-pack:hover { transform: translateY(-2px); border-color: rgba(236, 11, 131, .5); }
.sl-pack b { font-size: 26px; line-height: 1; }
.sl-pack span { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.sl-pack strong { font-size: 15px; }
.sl-pack small { font-size: 11.5px; color: var(--text-3); }
.sl-pack s { font-size: 11px; color: var(--text-3); }
.sl-pack.active { border-color: var(--pk2); background: linear-gradient(160deg, rgba(236, 11, 131, .22), rgba(236, 11, 131, .05) 70%), var(--surface-2); box-shadow: 0 0 18px rgba(236, 11, 131, .25); }
.sl-pack-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--pk); color: #fff; display: grid; place-items: center; }
.sl-pack-check .sl-ic { width: 13px; height: 13px; }
.sl-rib { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--pk); color: #fff; }
.sl-rib.gold { background: #f59e0b; color: #1a1205; }
.sl-rib.promo { background: #22c55e; color: #04220f; }
.sl-stepper { display: flex; align-items: center; gap: 12px; padding: 10px 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.sl-stepper small { color: var(--text-3); }
.sl-step { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.sl-step button { width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); border: 0; color: var(--text); cursor: pointer; }
.sl-step button:disabled { opacity: .4; cursor: not-allowed; }
.sl-step input { width: 76px; height: 38px; min-height: 38px; border: 0; border-radius: 0; text-align: center; font-weight: 700; background: var(--surface); }
.sl-sum-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 8px 22px 22px; }
.sl-sum { margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 6px 16px; }
.sl-sum > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sl-sum > div:last-child { border-bottom: 0; }
.sl-sum dt { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.sl-sum dt .sl-ic { width: 17px; height: 17px; color: var(--text-3); }
.sl-sum dd { margin: 0; font-weight: 600; text-align: right; }
.sl-sum .total dd { font-size: 22px; font-weight: 800; color: var(--pk2); }
.sl .green, .sl-tab-body .green { color: #22c55e; }
.sl .red, .sl-tab-body .red { color: #f43f5e; }
.sl-buy { display: flex; flex-direction: column; gap: 10px; }
.sl-save { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 10px; border: 1px solid rgba(236, 11, 131, .5); background: linear-gradient(150deg, rgba(236, 11, 131, .25), rgba(236, 11, 131, .04) 70%); color: var(--pk2); }
.sl-save > .sl-ic { width: 26px; height: 26px; margin-top: 2px; }
.sl-save div { display: flex; flex-direction: column; gap: 2px; }
.sl-save span { font-size: 12.5px; }
.sl-save b { font-size: 24px; color: var(--text); }
.sl-save small { font-size: 12px; color: var(--text-2); }
.sl-btn-buy, .sl-btn-out { min-height: 46px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sl-btn-buy { background: linear-gradient(90deg, var(--pk), var(--pk2)); border: 0; box-shadow: 0 6px 22px rgba(236, 11, 131, .35); }
.sl-btn-buy:disabled { box-shadow: none; opacity: .55; }
.sl-btn-out { background: transparent; border: 1px solid var(--border-strong); }
.sl-btn-buy .sl-ic, .sl-btn-out .sl-ic { width: 18px; height: 18px; }
.sl-rule, .sl-note { margin: 0; font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.sl-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pk2); padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(236, 11, 131, .4); background: rgba(236, 11, 131, .08); }
.sl-chip .sl-ic { width: 15px; height: 15px; }
.sl-table-wrap { overflow-x: auto; padding: 4px 12px 0; }
.sl-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.sl-table th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 6px 9px; }
.sl-table td { padding: 11px 9px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
.sl-table td:first-child { border-left: 1px solid var(--border); border-radius: 10px 0 0 10px; }
.sl-table td:last-child { border-right: 1px solid var(--border); border-radius: 0 10px 10px 0; text-align: right; }
.sl-table tr { cursor: pointer; }
.sl-table tr:hover td { border-color: rgba(236, 11, 131, .4); }
.sl-table tr.sel td, .sl-table tr.pop td { border-color: var(--pk); background: rgba(236, 11, 131, .1); }
.sl-table tr.best td { border-color: rgba(245, 158, 11, .7); background: rgba(245, 158, 11, .08); }
.sl-table td .sl-ic.gold { color: #f59e0b; width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.sl-tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; white-space: nowrap; border-radius: 99px; background: var(--pk); color: #fff; }
.sl-tag.gold { background: #f59e0b; color: #1a1205; }
.sl-foot { font-size: 12.5px; color: var(--text-3); padding: 8px 22px 18px; margin: 0; }
.sl-steps { list-style: none; margin: 0; padding: 8px 22px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sl-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.sl-num { width: 24px; height: 24px; border-radius: 50%; background: var(--pk); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sl-step-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface-2); }
.sl-steps b { font-size: 13.5px; }
.sl-steps small { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.sl-adv { list-style: none; margin: 0; padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.sl-adv li { display: flex; gap: 12px; align-items: flex-start; }
.sl-adv li > span { width: 26px; height: 26px; border-radius: 50%; background: var(--pk); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.sl-adv li > span .sl-ic { width: 14px; height: 14px; }
.sl-adv b { font-size: 14px; display: block; }
.sl-adv small { font-size: 12.5px; color: var(--text-3); }
.sl-recent { list-style: none; margin: 0; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.sl-recent button { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; }
.sl-recent small { display: block; color: var(--text-3); font-size: 12px; }
.sl-recent .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sl-tabs-card { overflow: hidden; }
.sl-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.sl-tabs button { background: none; border: 0; padding: 10px 14px; color: var(--text-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.sl-tabs button.active { color: var(--pk2); border-bottom-color: var(--pk2); }
.sl-tabs button:not(.adm) + .adm { margin-left: 14px; position: relative; }
.sl-tabs button:not(.adm) + .adm::before { content: ""; position: absolute; left: -9px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
.sl-tab-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.sl-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sl-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); }
.sl-f input, .sl-f select { min-height: 38px; width: auto; min-width: 140px; }
.sl-f input[type=date] { color-scheme: dark; }
:root[data-theme="light"] .sl-f input[type=date] { color-scheme: light; }
.sl-grow { flex: 1; }
.sl-actions { white-space: nowrap; text-align: right; }
.sl-usage-sum { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.sl-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sl-mini { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sl-mini span { font-size: 12.5px; color: var(--text-2); }
.sl-mini b { font-size: 21px; }
.sl-mini small { font-size: 11.5px; color: var(--text-3); }
.sl-mini.pink { border-color: rgba(236, 11, 131, .55); }
.sl-mini.green { border-color: rgba(34, 197, 94, .5); }
.sl-mini.orange { border-color: rgba(251, 146, 60, .6); }
.sl-mini.red { border-color: rgba(244, 63, 94, .6); }
.sl-fin-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.sl-pk-block { display: flex; flex-direction: column; gap: 8px; }
.sl-pk-block .sl-card-head { padding: 4px 0; }
.sl-pk-table input, .sl-pk-table select { min-height: 34px; padding: 4px 8px; min-width: 90px; }
.sl-pk-table input[type=checkbox] { min-width: 0; min-height: 0; }
.sl-pk-save { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sl-cfg { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; align-items: end; }
.sl-cfg-note { grid-column: 1 / -1; }
.sl-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.sl-howto { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; background: var(--surface-2); }
.sl-howto ol { padding-left: 18px; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.sl-audit { max-width: 420px; word-break: break-word; color: var(--text-3); }
.sl-dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.sl-dl dt { color: var(--text-3); }
.sl-dl dd { margin: 0; }
.sl-plain { margin: 0; padding-left: 18px; font-size: 13.5px; }
.sl-co { display: flex; flex-direction: column; gap: 14px; }
.sl-co-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(236, 11, 131, .5); background: rgba(236, 11, 131, .08); }
.sl-co-sum span { font-weight: 700; display: block; }
.sl-co-sum small { color: var(--text-3); }
.sl-co-sum b { font-size: 24px; color: #ff2999; }
.sl-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sl-pay-opt { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--border-strong); cursor: pointer; }
.sl-pay-opt:has(input:checked) { border-color: #ec0b83; background: rgba(236, 11, 131, .08); }
.sl-pay-opt input { width: auto; min-height: 0; }
.sl-pay-opt small { display: block; font-size: 12px; color: var(--text-3); }
.sl-pix { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.sl-pix-qr { background: #fff; border-radius: 12px; padding: 10px; display: grid; place-items: center; min-height: 220px; }
.sl-pix-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.sl-pix-info { display: flex; flex-direction: column; gap: 10px; }
.sl-pix-val { font-size: 30px; color: #ff2999; }
.sl-pix-info textarea { font-family: ui-monospace, monospace; font-size: 12px; resize: none; }
.sl-wait { display: inline-flex; align-items: center; gap: 8px; color: #f59e0b; font-weight: 600; font-size: 13.5px; }
.sl-wait .sl-ic { animation: sl-spin 2.4s linear infinite; }
@keyframes sl-spin { to { transform: rotate(360deg); } }
.sl-wait-box, .sl-ok, .sl-fail { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sl-ok > .sl-ic { width: 48px; height: 48px; color: #fff; background: #22c55e; border-radius: 50%; padding: 10px; }
.sl-skel { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sl-sk 1.2s ease-in-out infinite; }
@keyframes sl-sk { to { background-position: -200% 0; } }
.sl-dash-credit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(236, 11, 131, .45); background: linear-gradient(120deg, rgba(236, 11, 131, .14), transparent 70%), var(--surface); margin-bottom: 16px; font-size: 14px; }
.sl-dash-credit b { font-size: 18px; color: #ff2999; }
.sl-dash-credit .sl-grow { flex: 1; }
@media (prefers-reduced-motion: reduce) { .sl-wait .sl-ic, .sl-skel { animation: none; } .sl-pack { transition: none; } }
@media (max-width: 1400px) { .sl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sl-grid3 { grid-template-columns: 1fr 1fr; } .sl-grid3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .sl-grid, .sl-fin-grid, .sl-pay-grid { grid-template-columns: 1fr; } .sl-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; } }
@media (max-width: 720px) {
  .sl-kpis { grid-template-columns: 1fr 1fr; } .sl-kpi { padding: 14px; gap: 10px; } .sl-kpi-ic { width: 42px; height: 42px; } .sl-kpi-txt b { font-size: 22px; }
  .sl-grid3 { grid-template-columns: 1fr; } .sl-sum-grid, .sl-types, .sl-pay, .sl-pix { grid-template-columns: 1fr; } .sl-steps { grid-template-columns: 1fr 1fr; }
  .sl-head h1 { font-size: 26px; } .sl-head-ic .sl-ic { width: 34px; height: 34px; } .sl-dl { grid-template-columns: 1fr; }
  .sl-pix-qr { max-width: 240px; } .sl-chip { margin-left: 0; }
}
@media (max-width: 420px) { .sl-kpis { grid-template-columns: 1fr; } .sl-packs { grid-template-columns: 1fr 1fr; } }
.sv2-limit { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.sv2-limit input { width: 110px; min-height: 42px; }
.mn-switch { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); flex-wrap: wrap; }
.mn-switch a { padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); text-decoration: none; }
.mn-switch a small { font-weight: 500; font-size: 11px; opacity: .8; margin-left: 4px; }
.mn-switch a.active { background: #ec0b83; color: #fff; }
.us { display: flex; flex-direction: column; gap: 16px; }
.us-roles ul { margin: 8px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.auth .card.auth-wide { max-width: 560px; }
.auth-terms { align-items: flex-start; font-size: 13px; }
.auth-terms a { color: #ff2999; }
.sv2-lock-banner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 16px; border-radius: 12px; border: 1px solid rgba(236, 11, 131, .55); background: linear-gradient(120deg, rgba(236, 11, 131, .18), rgba(236, 11, 131, .04) 70%), var(--surface); flex-wrap: wrap; }
.sv2-lock-banner b { font-size: 16px; }
.sv2-lock-banner p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; max-width: 640px; }
.sv2-lock-banner > div:nth-child(2) { flex: 1; min-width: 240px; }
.sv2-lock-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #ec0b83; color: #fff; flex-shrink: 0; }
.sv2-lock-ic svg { width: 22px; height: 22px; }
.sv2-locked .sv2-grid, .sv2-locked .sv2-refine, .sv2-locked .sv2-actions, .sv2-locked .sv2-offer-head, .sv2-locked .sv2-offers { opacity: .45; pointer-events: none; filter: grayscale(.3); }
.sl-types.one { grid-template-columns: 1fr; }
.sl-fee-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 0 16px 12px; }
.sl-fee-form .sl-f input { min-width: 110px; }
.sl-fin-tabs { padding-top: 6px; }
.sl-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sl-alert-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 13px; }
.sl-alert-item span { color: var(--text-2); font-size: 12.5px; }
.sl-alert-item.red { border-color: rgba(244, 63, 94, .6); background: rgba(244, 63, 94, .08); }
.sl-alert-item.orange { border-color: rgba(251, 146, 60, .6); background: rgba(251, 146, 60, .08); }
.sl-alert-item.green { border-color: rgba(22, 199, 132, .5); background: rgba(22, 199, 132, .07); cursor: default; }
.sl-json { max-height: 320px; overflow: auto; font-size: 12px; background: var(--surface-2); padding: 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
