
:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --text:#12213d;
  --muted:#7486a3;
  --line:#dbe5f2;
  --accent:#1677ff;
  --accent-soft:#edf5ff;
  --success:#168a48;
  --warn:#b96708;
  --danger:#b83232;
  --radius:18px;
  --shadow:0 10px 30px rgba(24,49,83,.08);
  --layer-content:1;
  --layer-sticky:40;
  --layer-popover:60;
  --layer-drawer:80;
  --layer-modal:100;
  --layer-critical:120;
  --layer-toast:140;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}
.sidebar{background:#0f1b33;color:#fff;padding:26px 20px;display:flex;flex-direction:column}
.brand{font-size:22px;font-weight:800;margin-bottom:34px}
.brand-logo{display:inline-flex;align-items:center;background:transparent;border-radius:8px;padding:0;margin-bottom:8px}
.brand-logo img{display:block;width:122px;height:auto}
.brand small{display:block;font-size:11px;letter-spacing:.14em;color:#9fb1d0;margin-top:4px}
.nav a{display:block;padding:12px 14px;border-radius:12px;color:#cbd6ea;margin-bottom:7px;font-weight:700}
.nav a.active,.nav a:hover{background:rgba(255,255,255,.09);color:#fff}
.nav-settings{display:block;width:100%;border:0;background:transparent;color:#9fb1d0;text-align:left;padding:11px 14px;border-radius:12px;font-size:13px;font-weight:700;cursor:pointer}
.nav-settings:hover{background:rgba(255,255,255,.09);color:#fff}
.sidebar .foot{margin-top:auto;color:#92a7c9;font-size:13px;line-height:1.5}
.side-actions{display:grid;gap:8px;margin-top:18px}
.side-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:800;cursor:pointer}
.side-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.side-action.support{border:1px solid rgba(255,255,255,.16);background:transparent;color:#d9e2f1;box-shadow:none}
.side-action.logout{border:1px solid rgba(255,255,255,.16);background:transparent;color:#d9e2f1}
.side-action.support:hover,.side-action.logout:hover{background:#fff;color:#0f1b33;border-color:#fff;box-shadow:0 8px 18px rgba(255,255,255,.14)}
.main{padding:30px}
.topbar{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:24px}
.lead-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
h1{font-size:30px;margin:0 0 5px}
.sub{color:var(--muted);margin:0}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.metric-clickable{cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s}
.metric-clickable:hover,.metric-clickable:focus-visible{transform:translateY(-2px);border-color:#f26a21;box-shadow:0 8px 18px rgba(24,49,83,.1);outline:none}
.metric .label{font-size:13px;font-weight:800;color:#556a88}
.metric .value{font-size:30px;font-weight:800;margin-top:8px}
.metric .hint{font-size:12px;color:var(--muted);margin-top:3px}
.toolbar{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;gap:10px;margin-bottom:16px}
.search{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
select,.btn{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 14px}
.btn{font-weight:800;cursor:pointer}
.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn.support-submit{background:#f26a21;color:#fff;border-color:#f26a21;box-shadow:0 8px 18px rgba(242,106,33,.2)}
.btn.support-submit:hover{background:#d95712;border-color:#d95712}
.btn.report-export{background:#f26a21;color:#fff;border-color:#f26a21;box-shadow:0 8px 18px rgba(242,106,33,.2)}
.btn.report-export:hover{background:#d95712;border-color:#d95712}
.view-switch{display:flex;gap:4px;align-items:center;padding:4px;background:#f2f5fa;border:1px solid var(--line);border-radius:12px}
.view-btn{border:0;background:transparent;border-radius:9px;padding:8px 11px;font-size:12px;font-weight:800;color:var(--muted);cursor:pointer}
.view-btn.active{background:#13213b;color:#fff}
.report-btn{white-space:nowrap}
.archive-toggle{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:800;color:var(--muted);padding:0 3px;cursor:pointer}
.archive-toggle input{accent-color:#f26a21}
.tablewrap{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
table{width:100%;border-collapse:collapse}
th{background:#f8fafd;color:#71829b;font-size:11px;letter-spacing:.08em;text-transform:uppercase;text-align:left;padding:14px 16px}
td{padding:16px;border-top:1px solid #edf1f6;vertical-align:middle}
.lead-row{cursor:pointer;transition:background .15s}.lead-row:hover{background:#fbfcfe}
.lead-row.status-convertido{background:#f4fbf6}.lead-row.status-perdido{background:#fff6f6}.lead-row.status-convertido:hover{background:#edf8f1}.lead-row.status-perdido:hover{background:#fceded}
.scheduled-list{font-size:12px;font-weight:750;color:#326446;white-space:nowrap}.scheduled-list.overdue{color:#b13a3a}
.list-quick-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-2px 0 12px}.list-quick-filters[hidden]{display:none}.quick-filter{display:inline-flex;align-items:center;gap:6px;border:1px solid #dce4ee;background:#fff;color:#5f6f84;border-radius:999px;padding:7px 10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.quick-filter>span{width:6px;height:6px;border-radius:50%;background:#a8b3c2}.quick-filter b{font-size:10px;background:#eef2f6;border-radius:999px;padding:2px 5px}.quick-filter:hover,.quick-filter.active{border-color:#f26a21;color:#d95712;background:#fff7f1}.quick-filter.active>span{background:#f26a21}.quick-filter.attention>span{background:#d84a4a}.quick-filter.agenda>span{background:#329469}
.list-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 2px 0;color:#68788c;font-size:12px}.list-pagination[hidden]{display:none}.list-pagination div{display:flex;align-items:center;gap:9px}.list-pagination button,.kanban-more{border:1px solid #dce4ee;background:#fff;border-radius:9px;padding:8px 11px;color:#526174;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.list-pagination button:disabled{opacity:.45;cursor:default}.list-pagination b{font-size:11px}.kanban-more{width:100%;margin-top:4px;border-style:dashed;background:rgba(255,255,255,.6)}.kanban-more:hover{border-color:#f26a21;color:#d95712;background:#fff}.kanban-more small{font-weight:650;color:#8995a5}
.name{font-weight:800}
.meta{font-size:12px;color:var(--muted);margin-top:3px}
.badge{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;background:#edf2f8;color:#566a86}
.badge.novo{background:#edf5ff;color:#1368d4}
.badge.tentado{background:#f3f1ff;color:#6753b8}
.badge.contato{background:#fff5e8;color:#aa5a00}
.badge.qualificado{background:#eef8ff;color:#19739b}
.badge.agendado{background:#eef8f1;color:#167a42}
.badge.proposta{background:#fff2e8;color:#b65d17}
.badge.negociacao{background:#f4efff;color:#7147a8}
.badge.convertido{background:#e9f8ef;color:#0a7a3e}
.badge.perdido{background:#f8eeee;color:#a53737}
.badge.reativar{background:#fff8dc;color:#8a6a00}
.status-open{border:0;cursor:pointer;font:inherit}
.row-actions{display:flex;gap:7px;flex-wrap:wrap}
.small{padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:12px;font-weight:800;cursor:pointer}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#f7f9fc,#edf3fb)}
.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}
.login-logo{font-size:26px;font-weight:900;margin-bottom:4px}
.login-logo span{color:var(--accent)}
.login-card h1{font-size:25px;margin-top:26px}
.field{margin-top:14px}
.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px}
.field input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px}
.note{font-size:12px;color:var(--muted);line-height:1.5;margin-top:14px}
.modal{position:fixed;inset:0;z-index:var(--layer-modal);background:rgba(12,22,40,.42);display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal-card{width:min(520px,100%);background:#fff;border-radius:22px;padding:22px}
.report-card{width:min(560px,100%)}
.report-card h2{margin:4px 0 0;font-size:24px}
.report-card .support-head{margin-bottom:2px}
.report-card .report-period{margin:0 0 10px}
.print-header{display:none}
.report-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 4px}
.report-range{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:8px 10px;font-size:11px;font-weight:800;cursor:pointer}
.report-range.active{background:#13213b;color:#fff;border-color:#13213b}
.custom-range{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.custom-range[hidden]{display:none}
.custom-range .field{margin-top:8px}
.custom-range input{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 10px}
.report-period{font-size:13px;color:var(--muted);margin:4px 0 18px}
.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.report-item{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fbfcfe}
.report-item strong{display:block;font-size:24px}
.report-item span{font-size:12px;color:var(--muted);font-weight:700}
.report-total{display:flex;gap:28px;border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.report-total>div{display:grid;gap:4px}.report-total span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.05em}.report-total strong{font-size:20px;color:var(--ink)}
.report-leads{display:none;border-top:1px solid var(--line);margin-top:16px;padding-top:12px;max-height:190px;overflow:auto}
.report-lead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf1f6;font-size:13px}
.report-lead:last-child{border-bottom:0}
.report-lead strong{font-size:13px}
.report-lead .meta{margin-top:2px}
.reports-page{display:grid;gap:16px;max-width:1480px;margin:0 auto}
.reports-page[hidden]{display:none}
.reports-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:4px}
.reports-heading .kicker,.report-section-heading .kicker{color:#72839d;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.reports-heading h1{margin-top:5px}
.report-export-actions{display:flex;gap:9px;align-items:center}
.report-export-actions .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.report-export-actions svg{width:16px;height:16px}
.reports-period-panel,.report-section-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 20px;box-shadow:0 5px 18px rgba(24,49,83,.035)}
.reports-period-panel{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px 24px}
.reports-period-panel>div:first-child{display:grid;gap:2px;min-width:190px}
.reports-period-panel>div:first-child strong{font-size:13px}
.reports-period-panel .report-period{margin:0;font-size:11px}
.reports-period-panel .report-filters{justify-content:flex-end;margin:0}
.reports-period-panel .custom-range{grid-column:1/-1;justify-self:end;width:min(410px,100%);margin:0}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.report-kpi{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;min-height:128px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 5px 18px rgba(24,49,83,.035)}
.report-kpi span{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#70819a}
.report-kpi strong{font-size:29px;line-height:1.05;margin:10px 0 6px;color:#12213d}
.report-kpi small{font-size:11px;color:#8291a7}
.report-kpi:nth-child(2){border-top:3px solid #2f9a61}.report-kpi:nth-child(3){border-top:3px solid #f26a21}.report-kpi:nth-child(4){border-top:3px solid #13213b}
.report-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.report-section-heading h2{font-size:20px;margin:4px 0 0}
.report-section-heading>span{font-size:11px;color:#8291a7;text-align:right}
.commercial-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.commercial-results>div{background:#f8fafc;border:1px solid #e5ebf3;border-radius:14px;padding:16px}
.commercial-results span{display:block;font-size:11px;font-weight:850;color:#6f8097;text-transform:uppercase;letter-spacing:.06em}
.commercial-results strong{display:block;font-size:22px;margin-top:7px}
.commercial-results small{display:block;color:#8795a8;font-size:10px;margin-top:5px}
.report-funnel{display:grid;gap:12px}
.report-funnel-row{display:grid;grid-template-columns:minmax(140px,220px) minmax(100px,1fr) 44px;gap:14px;align-items:center}
.report-funnel-row>span{font-size:12px;font-weight:800;color:#4f6077}
.report-funnel-row>div{height:9px;background:#edf1f6;border-radius:999px;overflow:hidden}
.report-funnel-row i{display:block;height:100%;min-width:3px;background:linear-gradient(90deg,#f26a21,#ff965b);border-radius:999px}
.report-funnel-row strong{text-align:right;font-size:13px}
.report-table-wrap{overflow-x:auto;border:1px solid #e5ebf3;border-radius:14px}
.report-table{min-width:760px}
.report-table-head,.report-table-row{display:grid;grid-template-columns:minmax(240px,1.7fr) repeat(4,minmax(90px,.7fr));align-items:center;gap:10px;padding:12px 15px}
.report-table-head{background:#f7f9fc;color:#76869d;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.report-table-row{border-top:1px solid #edf1f6;font-size:12px;color:#53647b}
.report-table-row>span:first-child{color:#182740;font-weight:800}
.report-table-row>strong{color:#182740}
.report-table-row .source-name{display:flex;align-items:center;gap:10px}
.report-table-row .source-badge{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto}
.report-table-row .source-badge svg,.report-table-row .source-badge img{max-width:21px;max-height:21px}
.report-table-empty{padding:26px 15px;color:#7d8ba0;font-size:12px;text-align:center;border-top:1px solid #edf1f6}
.kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:12px;overflow-x:auto;padding-bottom:4px}
.kanban[hidden]{display:none}
.kanban-column{background:#edf2f8;border:1px solid var(--line);border-radius:16px;padding:12px;min-height:250px;transition:background .15s,border-color .15s}
.kanban-column[data-status="Novo"]{background:#f1f6ff}.kanban-column[data-status="Em contato"]{background:#fff8ed}.kanban-column[data-status="Agendado"]{background:#f1faf5}.kanban-column[data-status="Convertido"]{background:#eefaf3}.kanban-column[data-status="Perdido"]{background:#fbf2f2}
.kanban-column.drag-over{border-color:#f26a21;background:#fff5ee}
.kanban-column h3{margin:0 0 12px;font-size:13px;display:flex;justify-content:space-between;align-items:center}
.kanban-column h3 span{font-size:11px;color:var(--muted);background:#fff;border-radius:999px;padding:4px 7px}
.kanban-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:9px;box-shadow:0 4px 12px rgba(24,49,83,.05);cursor:grab;transition:transform .15s,box-shadow .15s}
.kanban-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(24,49,83,.1)}
.kanban-card:active{cursor:grabbing}
.kanban-card .name{font-size:13px}
.kanban-card .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kanban-card .small{width:100%;margin-top:10px}
.support-card h2{margin:4px 0 0;font-size:24px}
.support-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.support-status{min-height:20px;margin:12px 0 0;font-size:12px;color:var(--muted)}
.support-status.success{color:var(--success);font-weight:800}
.support-status.error{color:var(--danger);font-weight:800}
.settings-card{width:min(520px,100%);max-height:calc(100vh - 40px);overflow-y:auto}
.settings-note{font-size:13px;color:var(--muted);line-height:1.5;margin:4px 0 16px}
.settings-card>.flex{position:sticky;bottom:-22px;background:#fff;padding:12px 0 22px;margin:14px -22px -22px;border-top:1px solid var(--line)}
.settings-card #saveSettings{background:#f26a21;color:#fff;border-color:#f26a21;box-shadow:0 8px 18px rgba(242,106,33,.2)}
.settings-card #saveSettings:hover{background:#d95712;border-color:#d95712}
.utm-grid{margin-top:4px}.utm-card{max-height:calc(100vh - 40px);overflow-y:auto}.utm-status{min-height:18px;margin:10px 0 0;font-size:12px;color:var(--muted)}.utm-status.success{color:var(--success);font-weight:800}
.utm-card input:focus{border-color:#f26a21;box-shadow:0 0 0 3px rgba(242,106,33,.14);outline:0}
.utm-card #utmResult{background:#fffaf6}
.utm-card #generateUtm{background:#f26a21;color:#fff;border-color:#f26a21;box-shadow:0 8px 18px rgba(242,106,33,.2)}
.utm-card #generateUtm:hover{background:#d95712;border-color:#d95712}
.utm-card #copyUtm:hover{border-color:#f26a21;color:#b75316}
.utm-status.error{color:#b42318;font-weight:700}.utm-library-head,.utm-create-head{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.utm-library{display:grid;gap:10px}.utm-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e1e7ef;border-radius:10px;padding:13px 15px;background:#fff}.utm-item>div:first-child{display:grid;gap:4px}.utm-item strong{font-size:13px}.utm-item small{font-size:11px;color:var(--muted)}.utm-item-actions{display:flex;gap:6px;flex-shrink:0}.utm-item-actions button,.origin-sort button{border:1px solid #dbe3ee;background:#fff;border-radius:7px;padding:7px 10px;color:#536681;font-size:11px;font-weight:800;cursor:pointer}.utm-item-actions button:hover,.origin-sort button:hover,.origin-sort button.active{border-color:#f26a21;color:#f26a21}.utm-create{border-top:1px solid #e5eaf1;padding-top:5px}.utm-options{display:flex;flex-wrap:wrap;gap:7px}.utm-option{border:1px solid #dbe3ee;background:#fff;color:#536681;border-radius:8px;padding:9px 11px;font-weight:750;font-size:12px;cursor:pointer}.utm-option:hover,.utm-option.active{border-color:#f26a21;background:#fff6f0;color:#f26a21}.origin-sort{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:4px 0 16px;color:var(--muted);font-size:12px}.origin-sort span{margin-right:4px}.origins-card{max-width:760px}.origins-table{max-height:52vh;overflow-y:auto}
.stage-settings{display:grid;gap:8px}
.stage-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:13px;padding:12px 14px;background:#fbfcfe}
.stage-setting strong{font-size:13px}
.stage-setting small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.stage-switch{position:relative;width:42px;height:24px;flex:0 0 auto}
.stage-switch input{position:absolute;opacity:0;width:0;height:0}
.stage-slider{position:absolute;inset:0;border-radius:999px;background:#d7e0ec;cursor:pointer;transition:.15s}
.stage-slider:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.15s}
.stage-switch input:checked+.stage-slider{background:#f26a21}
.stage-switch input:checked+.stage-slider:before{transform:translateX(18px)}
.modal-card textarea{width:100%;min-height:110px;border:1px solid var(--line);border-radius:12px;padding:12px}
.schedule-fields{display:grid;grid-template-columns:1.4fr 1fr;gap:10px}
.schedule-fields input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff}
.lead-contact{background:#f7f9fc;border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0;font-size:14px;line-height:1.65}
.lead-contact strong{display:block;font-size:20px;color:var(--text);margin-bottom:2px}
.lead-contact a{color:#176bd4;font-weight:800}
.lead-utm{font-size:11px;color:var(--muted);margin:0 0 12px;line-height:1.5}
.lead-utm strong{color:#566a86}
.comments-title{font-size:13px;font-weight:900;margin:16px 0 8px}
.comments-list{display:grid;gap:8px;max-height:180px;overflow:auto;padding-right:3px}
.comment-item{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.comment-meta{font-size:11px;color:var(--muted);font-weight:800;margin-bottom:4px}
.comment-body{font-size:13px;line-height:1.45;white-space:pre-wrap}
.flex{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:14px}
.client-pill{font-size:13px;font-weight:800;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px}
.content-list{display:grid;gap:8px;max-height:260px;overflow:auto;padding-right:3px}
.content-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:13px;padding:11px 12px;background:#fbfcfe}
.content-row .meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:430px}
.content-row-actions{display:flex;gap:6px;flex:0 0 auto}

/* HIP GO — nova visão geral */
body{background:#f8fafc}
.sidebar{background:linear-gradient(155deg,#071a31 0%,#00172d 100%);padding:28px 16px 18px;box-shadow:8px 0 30px rgba(10,24,45,.08);position:relative;z-index:4}
.hipgo-lockup{display:flex;align-items:center;height:58px;margin:0 5px 28px;border-bottom:1px solid rgba(255,255,255,.08);padding:0 0 16px}
.hipgo-lockup img{display:block;width:205px;max-width:100%;height:44px;object-fit:contain;object-position:left center}
.nav{display:grid;gap:7px}.nav-page,.nav-settings{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#f1f5fb;text-align:left;padding:13px 16px;border-radius:10px;font-size:14px;font-weight:750;cursor:pointer}.nav-page.active,.nav-page:hover,.nav-settings:hover{background:linear-gradient(90deg,rgba(242,100,25,.2),rgba(255,255,255,.12));color:#ff6b1a}.nav-icon{width:20px;text-align:center;font-size:18px;color:currentColor;display:grid;place-items:center}.nav-icon img{display:block;width:20px;height:20px;object-fit:contain}.sidebar .foot{display:grid;gap:3px}.sidebar .foot>.nav-settings{color:#fff}.side-actions{border-top:1px solid rgba(255,255,255,.09);padding-top:11px}.side-action{justify-content:flex-start;border:0!important;background:transparent!important;color:#fff!important;font-size:13px}.side-action:hover{color:#ff6b1a!important;box-shadow:none!important}.side-action.support{margin-top:9px;border:1px solid rgba(242,100,25,.55)!important;padding:12px;color:#fff!important}.side-action.support span{display:grid;line-height:1.25}.side-action.support small{color:#fff;font-size:10px}.side-action.support span{color:#ff6b1a}.side-action.support b{margin-left:auto;color:#ff6b1a;font-size:18px}
.main{padding:0 28px 36px;min-width:0}.app-header{height:78px;margin:0 -28px 22px;padding:0 30px;border-bottom:1px solid #e7ebf1;background:#fff;display:flex;justify-content:flex-end;align-items:center;gap:28px}.notification-button{position:relative;border:0;background:transparent;font-size:22px;cursor:pointer}.notification-button span{position:absolute;right:-7px;top:-7px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#f26419;color:#fff;font-size:9px;font-weight:900}.account-block{display:flex;align-items:center;gap:10px;min-width:180px}.account-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#071a31;color:#fff;font-size:14px;font-weight:900}.account-block>span:nth-child(2){display:grid}.account-block strong{font-size:14px}.account-block small{font-size:11px;color:var(--muted)}.account-block>b{margin-left:auto}
.dashboard-page{max-width:1260px;margin:auto}.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.dashboard-heading h1{font-size:28px}.wave{font-size:23px}.period-select{min-width:190px;border:1px solid #dce3ec;background:#fff;border-radius:9px;padding:12px 15px;color:#15223b;font-weight:700}
.overview-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.overview-metric{min-height:126px;background:#fff;border:1px solid #e1e7ef;border-radius:10px;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:0 8px 24px rgba(18,33,61,.055)}.metric-icon{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:900}.metric-icon img{display:block;width:29px;height:29px;object-fit:contain}.metric-icon.orange{background:#fff0e8;color:#f26419}.metric-icon.blue{background:#e9f3ff;color:#1478ed}.metric-icon.green{background:#e8f7e9;color:#139b31}.overview-metric div{display:grid}.overview-metric small{font-size:12px;font-weight:800}.overview-metric strong{font-size:29px;line-height:1.15;margin:5px 0}.overview-metric p{margin:0;color:#65748d;font-size:11px}
.overview-grid{display:grid;grid-template-columns:360px 1fr;gap:20px;margin-top:20px}.overview-panel{background:#fff;border:1px solid #e1e7ef;border-radius:10px;box-shadow:0 8px 24px rgba(18,33,61,.055);overflow:hidden}.overview-panel h2{font-size:16px;padding:18px 20px;margin:0}.attention-row{width:calc(100% - 36px);margin:0 18px;border:0;border-bottom:1px solid #e9edf3;background:linear-gradient(90deg,#fff8f3,#fff);padding:15px 12px;display:flex;align-items:center;gap:12px;text-align:left;cursor:pointer}.attention-row>span:nth-child(2){display:grid;flex:1}.attention-row strong{font-size:13px}.attention-row small{font-size:11px;color:#65748d;margin-top:3px}.attention-row>.metric-icon{width:40px;height:40px;flex-basis:40px;font-size:17px}.attention-row>b{font-size:25px}.outline-orange{display:block;width:calc(100% - 36px);margin:16px 18px 18px;border:1px solid #ff6b1a;border-radius:7px;background:#fff;color:#f26419;padding:10px;font-weight:800;cursor:pointer}.panel-title{display:flex;align-items:center;justify-content:space-between;padding-right:20px}.panel-title h2{padding-bottom:13px}.panel-title button,.source-more{border:0;background:transparent;color:#f26419;font-weight:800;font-size:11px;cursor:pointer}.source-table{padding:0 20px}.source-head,.source-row{display:grid;grid-template-columns:2fr .75fr .9fr 1fr;align-items:center;gap:12px}.source-head{color:#65748d;font-size:11px;padding:7px 0;border-bottom:1px solid #e5eaf1}.source-row{min-height:55px;border-bottom:1px solid #edf0f4;font-size:12px}.source-name{display:flex;align-items:center;gap:10px;font-weight:750}.source-badge{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#f26419,#ffad64);font-size:11px;font-weight:900}.source-badge img{width:20px;height:20px;object-fit:contain;display:block}.source-rate{display:flex;align-items:center;gap:9px}.source-rate span{width:74px;height:3px;border-radius:99px;background:#e7ebf0;overflow:hidden}.source-rate i{display:block;height:100%;background:#f26419}.source-more{padding:12px 20px 16px}.leads-page[hidden],.dashboard-page[hidden]{display:none}
.privacy-panel{margin-top:16px;padding:18px 20px;border:1px solid #e1e7ef;border-radius:16px;background:linear-gradient(135deg,#fff,#fbfcfd);box-shadow:0 8px 24px rgba(18,33,61,.035)}.privacy-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.privacy-panel h2{margin:0;font-size:16px;letter-spacing:-.02em}.privacy-panel-head p{max-width:720px;margin:6px 0 0;color:#6d7c90;font-size:12px;line-height:1.5}.privacy-link{flex:0 0 auto;margin-top:2px;color:#e8611b;text-decoration:none;font-size:11px;font-weight:850;white-space:nowrap}.privacy-link:hover{text-decoration:underline}.privacy-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.privacy-points>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #edf0f4;border-radius:11px;background:#fff}.privacy-points strong{font-size:11px;color:#26384d}.privacy-points span{font-size:10px;line-height:1.4;color:#7a889a}

@media(max-width:980px){.shell{grid-template-columns:1fr}.sidebar{display:none}.cards{grid-template-columns:repeat(2,1fr)}.main{padding:18px}.tablewrap{overflow:auto}.toolbar{flex-wrap:wrap}.search{min-width:220px}.kanban{grid-template-columns:repeat(5,220px)}}
@media(max-width:980px){.app-header{margin:-18px -18px 18px;padding:0 18px}.overview-cards{grid-template-columns:repeat(2,1fr)}.overview-grid{grid-template-columns:1fr}}
@media(max-width:600px){.cards,.overview-cards{grid-template-columns:1fr}.toolbar{flex-direction:column}.topbar,.dashboard-heading{align-items:flex-start;flex-direction:column}.lead-top-actions{width:100%;justify-content:space-between}.period-select{width:100%}.view-switch,.report-btn,.toolbar select{width:100%}.view-btn{flex:1}.report-grid{grid-template-columns:1fr 1fr}.account-block{min-width:0}.account-block>span:nth-child(2),.account-block>b{display:none}.source-head,.source-row{grid-template-columns:1.6fr .7fr .8fr}.source-head span:nth-child(4),.source-row>div:nth-child(4){display:none}}
@media(max-width:700px){.privacy-panel-head{display:grid;gap:10px}.privacy-points{grid-template-columns:1fr}.privacy-link{justify-self:start}}
@media(max-width:980px){.report-kpis{grid-template-columns:repeat(2,1fr)}.reports-period-panel{grid-template-columns:1fr}.reports-period-panel .report-filters{justify-content:flex-start}.reports-period-panel .custom-range{grid-column:auto;justify-self:start}.reports-heading{align-items:flex-start}}
@media(max-width:640px){.reports-heading{display:grid}.report-export-actions{width:100%}.report-export-actions .btn{flex:1;justify-content:center}.report-kpis,.commercial-results{grid-template-columns:1fr}.report-kpi{min-height:108px}.report-funnel-row{grid-template-columns:110px minmax(80px,1fr) 34px}.report-section-heading{align-items:flex-start;display:grid}.report-section-heading>span{text-align:left}.reports-period-panel,.report-section-card{padding:15px}.reports-period-panel .custom-range{grid-template-columns:1fr;width:100%}}
@media print{
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  body{display:block!important}
  .shell,#leadModal,#supportModal,#settingsModal{display:none!important}
  #reportModal{position:static;display:block!important;background:#fff;padding:0}
  #reportModal .report-card{width:100%;max-width:none;box-shadow:none;border:0;padding:0}
  #reportModal .support-head .small,#reportModal .report-filters,#reportModal .custom-range,#reportModal .flex{display:none}
  .print-header{display:flex;align-items:center;gap:16px;border-bottom:2px solid #f26a21;padding-bottom:14px;margin-bottom:22px}
  .print-header img{width:112px;height:auto}
  .print-header div{display:grid;gap:3px}
  .print-header strong{font-size:20px;color:#12213d}
  .print-header span{font-size:11px;color:#7486a3}
  .report-card h2{font-size:26px}
  .report-leads{display:block;max-height:none;overflow:visible}
}


/* HIP GO — Gestão */
.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:26px 0 12px}
.section-head h2{margin:0;font-size:20px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.card h3{margin:0 0 4px;font-size:17px}
.empty{padding:34px;text-align:center;color:var(--muted)}
.tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-size:13px;font-weight:800;cursor:pointer}
.tab.active{background:#13213b;color:#fff;border-color:#13213b}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-grid .wide{grid-column:1/-1}
.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 13px;background:#fff}
.field small{display:block;margin-top:5px;color:var(--muted);line-height:1.35}
.modal-card.large{width:min(700px,100%);max-height:calc(100vh - 40px);overflow-y:auto}
.modal-card.large>.flex{position:sticky;bottom:-22px;background:#fff;padding:12px 0 22px;margin:14px -22px -22px;border-top:1px solid var(--line);z-index:2}
.linklike{font-size:12px;color:#166bd6;font-weight:800}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#1a9b55}
.kicker{font-size:11px;font-weight:900;letter-spacing:.08em;color:#7788a3;text-transform:uppercase}
.domain-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.domain-chip{font-size:11px;background:#f3f6fa;border:1px solid var(--line);border-radius:999px;padding:5px 8px;color:#5d708d}
.login-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.demo-choice{border:1px solid var(--line);background:#fff;padding:12px;border-radius:12px;text-align:left;cursor:pointer}
.demo-choice strong{display:block;font-size:13px}
.demo-choice span{font-size:11px;color:var(--muted)}
@media(max-width:760px){.grid2,.form-grid,.login-choices{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}}
.utm-option{display:inline-flex;align-items:center;gap:7px}.utm-option .brand-logo{width:20px;height:20px;object-fit:contain;display:block}.utm-option .lucide{width:19px;height:19px}.source-badge img{width:20px;height:20px;object-fit:contain;display:block}
.destination-lock{display:grid;gap:3px;border:1px solid #e1e7ef;border-radius:9px;background:#f8fafc;padding:12px 14px;color:#15233d;font-weight:750}.destination-lock small{color:var(--muted);font-size:11px;font-weight:500}
.utm-library{gap:8px}.utm-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;border-color:#e4e9f0;border-radius:12px;padding:12px 13px;box-shadow:0 1px 2px rgba(20,34,52,.025)}.utm-item:hover{border-color:#d5dde7;background:#fcfdfe}.utm-item-brand{display:grid;place-items:center;width:38px;height:38px;border:1px solid #edf0f4;border-radius:10px;background:#fff}.utm-item-brand .brand-logo{width:21px;height:21px;object-fit:contain}.utm-item-brand .lucide{width:20px;height:20px;color:#526579}.utm-item-main{min-width:0;display:grid;gap:4px}.utm-item-heading{display:flex;align-items:center;gap:8px;min-width:0}.utm-item-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.utm-item-heading span{flex:0 0 auto;border-radius:999px;background:#f3f5f8;padding:3px 7px;color:#5d6e82;font-size:9px;font-weight:800}.utm-item-context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53647a;font-size:11px}.utm-item-meta{display:flex;align-items:center;gap:10px;color:#8793a3;font-size:10px}.utm-item-meta span+span:before{content:"·";margin-right:10px}.utm-item-actions{align-items:center}.utm-item-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px}.utm-item-actions .lucide{width:15px;height:15px}.utm-item-actions .utm-copy-action{padding-inline:10px}.utm-item-actions .utm-delete-action{width:34px;padding:0;border-color:transparent;color:#9a3f3f}.utm-item-actions .utm-delete-action:hover{border-color:#efcaca;background:#fff5f5;color:#b42318}.utm-empty{display:grid;justify-items:center;gap:6px;padding:28px 16px;border:1px dashed #dbe2eb;border-radius:12px;color:#7b899b;text-align:center}.utm-empty .lucide{width:22px;height:22px}.utm-empty strong{font-size:12px;color:#4e6075}.utm-empty span{font-size:11px}@media(max-width:640px){.utm-item{grid-template-columns:34px minmax(0,1fr)}.utm-item-brand{width:34px;height:34px}.utm-item-actions{grid-column:1/-1;justify-content:flex-end;padding-top:8px;border-top:1px solid #eef1f4}.utm-item-actions .utm-copy-action{flex:1}.utm-item-heading{align-items:flex-start;flex-direction:column;gap:4px}.utm-item-meta{flex-wrap:wrap;gap:5px}.utm-item-meta span+span:before{margin-right:5px}}
.utm-item-actions .utm-delete-action{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;cursor:pointer}.utm-item-actions .utm-delete-action .lucide{pointer-events:none}
/* HIP GO 2026 — cards e atendimento lateral */
.lead-drawer-backdrop{position:fixed;inset:0;background:rgba(18,34,52,.22);z-index:80;opacity:0;pointer-events:none;transition:opacity .18s ease}
.lead-drawer-backdrop.open{opacity:1;pointer-events:auto}.lead-drawer{position:absolute;right:0;top:0;height:100%;width:min(560px,94vw);background:#fff;box-shadow:-18px 0 48px rgba(25,45,70,.16);padding:24px;overflow:auto;transform:translateX(100%);transition:transform .22s ease}
.lead-drawer-backdrop.open .lead-drawer{transform:translateX(0)}.drawer-head,.section-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.drawer-head h2{margin:3px 0 4px;font-size:25px}.drawer-sub{font-size:12px;color:var(--muted)}.drawer-close{border:0;background:#f3f6f9;border-radius:10px;width:36px;height:36px;font-size:23px;cursor:pointer}.drawer-actions{display:flex;gap:8px;margin:18px 0}.drawer-action{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-weight:700;font-size:12px;text-decoration:none;color:inherit;cursor:pointer}.drawer-action.primary{background:#eef8f2;border-color:#d5ebdd}.drawer-section{padding:18px 0;border-top:1px solid var(--line)}.drawer-section h3{font-size:13px;margin:0 0 12px}.drawer-section .lead-contact{line-height:1.7}.lead-interest{margin-top:10px;font-size:13px}.note-add{margin-top:8px}.comments-list{max-height:220px;overflow:auto}.history-list{display:grid;gap:7px}.history-item{font-size:12px;color:#516273;padding:8px 0;border-bottom:1px solid #eef2f5}.text-button{border:0;background:none;color:#516273;font-size:11px;cursor:pointer}.origin-section{font-size:13px}.origin-grid{display:grid;grid-template-columns:100px 1fr;gap:8px}.origin-grid span{color:var(--muted)}.tracking-details{margin-top:12px}.tracking-details summary{cursor:pointer;color:#526579;font-size:12px}.drawer-footer{position:sticky;bottom:-24px;background:#fff;padding:14px 0 4px;display:flex;justify-content:space-between;border-top:1px solid var(--line)}
.kanban-card{cursor:pointer!important;padding:14px!important}.kanban-card .card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.kanban-card .card-age{font-size:10px;color:var(--muted);white-space:nowrap}.kanban-card .name{font-size:14px;font-weight:800;margin-bottom:3px}.kanban-card .card-phone{font-size:12px;color:#536577}.kanban-card .card-interest{font-size:12px;margin:12px 0 8px}.kanban-card .card-context{font-size:11px;line-height:1.55;color:#536577}.kanban-card .card-context strong{color:#24384d}.kanban-card .last-note{margin-top:10px;padding-top:9px;border-top:1px solid #edf1f5;font-size:11px;color:#536577;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kanban-card .next-contact{margin-top:8px;font-size:11px;font-weight:700}.kanban-card .next-contact.overdue{color:#a34848}.kanban-card .card-actions{display:flex;justify-content:space-between;align-items:center;margin-top:11px}.kanban-card .wa-card{font-size:11px;font-weight:800;text-decoration:none;color:#263b4f}.kanban-card .dots{border:0;background:none;font-size:18px;color:#718093;cursor:pointer}
@media(max-width:640px){.lead-drawer{width:100vw;padding:18px}.drawer-footer{bottom:-18px}}

/* HIP GO — refinamento visual final 2026-08-25 */
:root{--bg:#f5f7fa;--panel:#fff;--text:#17243a;--muted:#6f7d91;--line:#e4e9f0;--radius:16px;--shadow:0 10px 28px rgba(18,33,61,.055);--orange:#f26a21;--navy:#101c32}
body{background:var(--bg);letter-spacing:-.005em}
.main{background:var(--bg)}
.sidebar{background:var(--navy);padding:28px 18px 20px;border-right:1px solid rgba(255,255,255,.04)}
.hipgo-lockup{margin:0 8px 34px}.hipgo-lockup img{display:block;width:132px;max-height:42px;object-fit:contain;object-position:left center}
.nav{display:grid;gap:4px}.nav-page,.nav a,.nav-settings{min-height:44px;border-radius:11px!important;margin:0!important;padding:11px 12px!important;transition:background .15s,color .15s,transform .15s}.nav-page:hover,.nav a:hover,.nav-settings:hover{transform:translateX(1px)}
.nav-page.active,.nav a.active{background:rgba(255,255,255,.095)!important;box-shadow:inset 2px 0 0 var(--orange)}
.nav-icon{opacity:.88}.nav-icon img{filter:saturate(.7)}
.app-header{background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid #e8edf3;box-shadow:none}
.dashboard-heading h1,.topbar h1{letter-spacing:-.035em}.dashboard-heading .sub,.topbar .sub{color:var(--muted)}
.overview-cards{gap:14px}.overview-metric{border:1px solid var(--line);border-radius:16px;box-shadow:none;padding:18px 18px;min-height:116px}.overview-metric:hover{border-color:#d8dfe8}.overview-metric strong{font-size:32px;letter-spacing:-.04em}.overview-metric small{text-transform:uppercase;letter-spacing:.055em;font-size:10px;color:#59697d}.overview-metric p{font-size:11px;color:#8190a3}.metric-icon{width:40px;height:40px;flex-basis:40px;border-radius:12px}.metric-icon img{width:19px;height:19px}
.overview-metric-clickable{cursor:pointer;transition:transform .15s,border-color .15s,box-shadow .15s}.overview-metric-clickable:hover,.overview-metric-clickable:focus-visible{transform:translateY(-2px);border-color:#f26a21;box-shadow:0 8px 18px rgba(24,49,83,.08);outline:none}
.overview-grid{gap:16px}.overview-panel{border:1px solid var(--line);border-radius:16px;box-shadow:none}.overview-panel h2{letter-spacing:-.02em}.attention-row{background:#fff;border-bottom:1px solid #eef1f5}.attention-row:hover{background:#fafbfc}.outline-orange{border-radius:10px}.source-head{color:#8995a5;text-transform:uppercase;letter-spacing:.05em;font-size:9px}.source-row{min-height:58px}
.cards{gap:12px}.metric{border:1px solid var(--line);border-radius:14px;box-shadow:none;background:#fff}.metric .label{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#66768b}.metric .value{letter-spacing:-.04em}.metric-clickable:hover{transform:none;border-color:#ccd6e2;box-shadow:none}
.toolbar{background:transparent;border:0;padding:0;margin:18px 0 14px;gap:8px}.search,.toolbar select{background:#fff;border:1px solid var(--line);border-radius:11px;min-height:42px}.search:focus,.toolbar select:focus{outline:0;border-color:#b9c5d3;box-shadow:0 0 0 3px rgba(23,36,58,.045)}.view-switch{background:#e9edf2;border-radius:11px;padding:3px}.view-btn{border:0;border-radius:8px;background:transparent;color:#68788c}.view-btn.active{background:#fff;color:#17243a;box-shadow:0 1px 3px rgba(20,34,52,.08)}
.kanban{gap:14px;align-items:start;padding:2px 2px 14px}.kanban-column,.kanban-column[data-status]{background:#eef1f5;border:0;border-radius:15px;padding:10px;min-height:320px}.kanban-column h3{padding:3px 3px 7px;margin:0 0 5px;font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#526174}.kanban-column h3 span{background:rgba(255,255,255,.72);font-size:10px}.kanban-column.drag-over{outline:2px solid rgba(242,106,33,.45);background:#f4eee9}
.kanban-column[data-status="Convertido"]{background:#edf8f1}.kanban-column[data-status="Perdido"]{background:#fbeeee}
.kanban-card{border:1px solid #e3e8ee!important;border-radius:13px!important;box-shadow:0 1px 2px rgba(20,34,52,.035)!important;padding:14px!important;margin-bottom:9px;transition:border-color .15s,box-shadow .15s,transform .15s}.kanban-card:hover{transform:translateY(-1px);border-color:#d4dce6!important;box-shadow:0 8px 20px rgba(20,34,52,.07)!important}.kanban-card .name{font-size:14px!important;letter-spacing:-.015em}.kanban-card .card-age{font-size:10px}.kanban-card .card-interest{color:#2c3d53}.kanban-card .card-context{margin-top:7px}.kanban-card .last-note{background:#f8f9fb;border:0;border-radius:8px;padding:8px 9px;margin-top:10px}.kanban-card .next-contact{display:inline-flex;border-radius:999px;background:#f3f5f7;padding:5px 8px;color:#56677b}.kanban-card .next-contact.overdue{background:#fff0ef;color:#a73b36}.kanban-card .card-actions{border-top:1px solid #f0f2f5;padding-top:10px}.kanban-card .wa-card{color:#217346}.kanban-card .dots{color:#8a96a5}
.tablewrap{border:1px solid var(--line);border-radius:15px;box-shadow:none}.tablewrap th{background:#f8f9fb;text-transform:uppercase;letter-spacing:.045em;font-size:9px;color:#7b899b}
.lead-drawer-backdrop{background:rgba(16,28,50,.18);backdrop-filter:blur(1px)}.lead-drawer{width:min(580px,94vw);box-shadow:-24px 0 60px rgba(16,28,50,.13);padding:28px 30px}.drawer-head h2{font-size:27px;letter-spacing:-.035em}.drawer-close{background:#f5f6f8;color:#526174}.drawer-actions{margin:20px 0 4px}.drawer-action{border-radius:10px;box-shadow:none}.drawer-action.primary{background:#f0f8f3;color:#217346;border-color:#dbece1}.drawer-section{padding:20px 0;border-top:1px solid #edf0f3}.drawer-section h3{font-size:11px;text-transform:uppercase;letter-spacing:.065em;color:#5e6d80}.lead-contact{background:transparent;border:0;border-radius:0;padding:0;margin:0}.comment-item{background:transparent;border:0;border-left:2px solid #e4e9ef;border-radius:0;padding:3px 0 3px 12px}.comment-meta{font-size:10px}.comment-body{font-size:13px}.history-item{padding:7px 0;color:#6c7a8c}.origin-grid{grid-template-columns:110px 1fr}.drawer-footer{box-shadow:0 -10px 18px rgba(255,255,255,.92)}
.modal{backdrop-filter:blur(2px)}.modal-card{border:1px solid rgba(255,255,255,.55);box-shadow:0 24px 70px rgba(16,28,50,.18)}
.card{border:1px solid var(--line);box-shadow:none;border-radius:15px}.tabs{background:#e9edf2;padding:4px;border-radius:12px;width:max-content;max-width:100%}.tab{border:0;background:transparent;border-radius:9px}.tab.active{background:#fff;color:#17243a;box-shadow:0 1px 4px rgba(16,28,50,.08)}
.btn{border-radius:10px}.btn.primary{background:var(--orange);border-color:var(--orange)}
.empty{background:#fafbfc;border:1px dashed #dce3eb;border-radius:13px;margin:8px;color:#7d8998}
@media(max-width:980px){.main{background:#f5f7fa}.app-header{backdrop-filter:none}}

/* Anotações rápidas — configuradas pela HIP por cliente */
.quick-notes-wrap{margin:0 0 12px}.quick-notes-label{font-size:10px;text-transform:uppercase;letter-spacing:.065em;color:var(--muted);margin-bottom:8px}.quick-notes{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.quick-note-chip,.quick-note-more{border:1px solid #e1e6eb;background:#f7f9fb;color:#405267;border-radius:999px;padding:7px 10px;font-size:11px;line-height:1.2;cursor:pointer;transition:.15s ease}.quick-note-chip:hover,.quick-note-more:hover{background:#eef3f7;border-color:#d3dbe4}.quick-note-extra{display:none}.quick-notes.expanded .quick-note-extra{display:inline-flex}.quick-note-more{background:#fff;font-weight:700}

/* Header: notificações e conta */
.header-popover-wrap{position:relative}.notification-button{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#132238;transition:.18s ease}.notification-button:hover,.notification-button[aria-expanded="true"]{background:#f2f5f8}.notification-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button span{right:1px;top:0;width:18px;height:18px}.account-block{border:0;background:transparent;padding:6px 8px;border-radius:14px;cursor:pointer;text-align:left;color:inherit;transition:.18s ease}.account-block:hover,.account-block[aria-expanded="true"]{background:#f2f5f8}.account-chevron{width:18px;height:18px;margin-left:auto;fill:none;stroke:#718096;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.header-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:80;background:#fff;border:1px solid #e6ebf1;border-radius:16px;box-shadow:0 18px 48px rgba(16,32,54,.14);overflow:hidden}.notification-popover{width:min(390px,calc(100vw - 32px))}.account-popover{width:240px;padding:8px}.popover-head{padding:16px 16px 12px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f4}.popover-head>div{display:grid;gap:3px}.popover-head strong{font-size:14px}.popover-head small,.account-summary small{font-size:11px;color:var(--muted)}.popover-close{border:0;background:transparent;font-size:20px;color:#718096;cursor:pointer}.notification-list{max-height:420px;overflow:auto;padding:6px}.notification-item{width:100%;border:0;background:transparent;border-radius:12px;padding:11px 10px;display:grid;grid-template-columns:9px 1fr auto;gap:10px;align-items:start;text-align:left;cursor:pointer}.notification-item:hover{background:#f7f9fb}.notification-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;background:#718096}.notification-item.overdue .notification-dot{background:#d83b3b}.notification-item.today .notification-dot{background:#f26419}.notification-item.new .notification-dot{background:#2f6fbd}.notification-copy{display:grid;gap:3px;min-width:0}.notification-copy strong{font-size:13px;color:#17263b}.notification-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-time{font-size:10px;color:#8a96a5;white-space:nowrap}.notification-empty{padding:28px 18px;text-align:center;color:var(--muted);font-size:13px}.account-summary{padding:10px 10px 12px;display:grid;gap:3px;border-bottom:1px solid #edf0f4;margin-bottom:5px}.account-popover>button{width:100%;border:0;background:transparent;border-radius:10px;padding:10px;text-align:left;font:inherit;font-size:13px;color:#27364a;cursor:pointer}.account-popover>button:hover{background:#f5f7fa}.popover-separator{height:1px;background:#edf0f4;margin:5px 4px}.account-popover .danger-text{color:#b33a3a}.account-modal-card{width:min(500px,calc(100vw - 32px))}.account-info-grid{display:grid;gap:10px;margin:18px 0}.account-info-grid>div{padding:13px 14px;background:#f7f9fb;border:1px solid #edf0f4;border-radius:12px;display:grid;gap:4px}.account-info-grid small{font-size:11px;color:var(--muted)}.account-info-grid strong{font-size:14px}.account-modal-card .field{margin:14px 0}.account-modal-card .field input{width:100%}
@media(max-width:600px){.app-header{gap:8px}.account-block{min-width:0}.account-block>span:nth-child(2),.account-chevron{display:none}.notification-popover{right:-58px}.header-popover{position:fixed;top:70px;right:16px;left:16px;width:auto}.account-popover{left:auto;width:230px}}

.master-client-context{margin-right:auto;display:flex;align-items:center;gap:9px}.master-client-context[hidden]{display:none}.master-client-context label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}.master-client-context select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 32px 9px 11px;font:inherit;font-size:12px;font-weight:750;color:var(--ink);max-width:260px}
.admin-top-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.admin-view-switch{display:grid;gap:5px}.admin-view-switch label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}.admin-view-switch select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 32px 10px 11px;font:inherit;font-size:12px;font-weight:750;color:var(--ink);min-width:245px}
.bulk-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:5px 8px;border:1px solid #f4d4c3;background:#fff8f3;border-radius:10px;color:#9a4b23;font-size:11px;font-weight:800}.bulk-actions[hidden]{display:none}.bulk-actions .btn{padding:8px 10px;font-size:11px}.bulk-actions .btn:disabled{opacity:.5;cursor:not-allowed}.lead-check{display:grid;place-items:center;flex:0 0 20px;margin-top:1px}.lead-select{accent-color:#f26a21;width:16px;height:16px;cursor:pointer}.lead-quick-menu{position:absolute;right:0;bottom:32px;z-index:20;display:grid;min-width:150px;padding:5px;background:#fff;border:1px solid #e4e9f0;border-radius:10px;box-shadow:0 12px 28px rgba(16,28,50,.14)}.lead-quick-menu button{border:0;background:transparent;border-radius:7px;padding:9px 10px;text-align:left;font:inherit;font-size:11px;color:#26384d;cursor:pointer}.lead-quick-menu button:hover{background:#f5f7fa}.kanban-card .card-actions{position:relative}

/* HIP GO admin navigation — iconografia consistente */
.admin-nav .nav-icon svg,.match-sidebar .nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.nav a.nav-page{display:flex;align-items:center;gap:12px}
.admin-nav a.nav-page{text-decoration:none}
.match-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.match-kpi{background:#fff;border:1px solid #dde5ef;border-radius:14px;padding:18px}.match-kpi small{display:block;color:#6d7d93;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.match-kpi strong{display:block;font-size:28px;margin-top:5px;color:#12213a}.match-tabs{display:flex;gap:8px;margin:18px 0}.match-tabs button{border:1px solid #dce4ee;background:#fff;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer}.match-tabs button.active{border-color:#f26419;color:#f26419;background:#fff6f0}.match-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.match-map-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.match-map-row{display:contents}.match-map-row label{align-self:center;font-weight:700;color:#35445b}.match-map-row select{width:100%}.match-result-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#edf8f2;color:#24714b;font-size:11px;font-weight:800}.match-confidence{font-size:11px;color:#66758b}.match-journey{display:grid;gap:4px}.match-journey span{font-size:12px;color:#53647a}.match-empty{padding:34px;text-align:center;color:#7b899c}.match-file-name{font-size:12px;color:#64748b;margin-top:6px}.module-options{display:flex;gap:12px;flex-wrap:wrap}.module-options label{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #dde5ef;border-radius:10px;background:#fff}.match-only-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a4c12;padding:10px 12px;border-radius:10px;font-size:12px}
.match-sidebar .nav a.nav-page{display:flex;align-items:center;gap:12px}
.whatsapp-settings-head{display:flex;justify-content:space-between;gap:12px}.whatsapp-template-groups{display:grid;gap:10px;margin-top:14px}.whatsapp-template-group{border:1px solid #e1e7ef;border-radius:12px;background:#fff;overflow:hidden}.whatsapp-template-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;background:#f8fafc;border-bottom:1px solid #edf1f5}.whatsapp-template-group-head>div{display:flex;align-items:center;gap:9px}.whatsapp-template-group-head span{font-size:11px;color:#7a899b}.whatsapp-template-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto auto auto;align-items:center;gap:9px;padding:11px 14px;border-bottom:1px solid #edf1f5}.whatsapp-template-row:last-child{border-bottom:0}.whatsapp-template-order{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#fff3ea;color:#f26a21;font-weight:900}.whatsapp-template-copy{min-width:0}.whatsapp-template-copy strong,.whatsapp-template-copy small{display:block}.whatsapp-template-copy small{margin-top:3px;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whatsapp-template-position{padding:7px 8px;min-width:48px}.whatsapp-template-empty{padding:14px}.whatsapp-variable-note{margin-top:11px}.whatsapp-template-row .danger{color:#a33b3b}.whatsapp-template-group-head button:disabled{opacity:.45;cursor:not-allowed}
.match-upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.match-upload-row input{flex:1;min-width:220px}.match-upload-row .btn{white-space:nowrap;text-decoration:none}.match-upload-help{margin:8px 0 0;color:#64748b;font-size:12px;line-height:1.45}
.match-settings-group{display:grid;gap:3px}.match-settings-subnav{display:grid;gap:3px;padding:0 0 4px 32px}.match-settings-subnav[hidden]{display:none}.match-settings-subnav a{display:flex;align-items:center;gap:9px;color:#aebbd0;text-decoration:none;font-size:12px;font-weight:750;padding:8px 10px;border-radius:9px}.match-settings-subnav a:hover{background:rgba(255,255,255,.08);color:#fff}.match-settings-subnav .nav-icon{width:17px}.match-settings-subnav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.match-kpis-v2{grid-template-columns:repeat(6,minmax(0,1fr))}.match-kpi span{display:block;margin-top:4px;color:#8592a5;font-size:11px;line-height:1.35}.match-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:22px 0 12px}.match-section-head.compact{margin-top:26px}.match-section-head h2{margin:0;color:#12213a;font-size:19px}.match-section-head p{margin:4px 0 0;color:#6d7d93;font-size:12px}.match-identifiers{display:grid;gap:3px;color:#53647a;font-size:11px}.match-result-badge.converted{background:#eaf8ec;color:#2b7b38}.match-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf8f2;color:#24714b;font-size:11px;font-weight:800;white-space:nowrap}.match-status.partial{background:#fff4e6;color:#a45312}.match-status.failed{background:#fff0f0;color:#a12b2b}.match-status.processing{background:#eef5ff;color:#275f9d}.match-status.automatic{background:#edf3ff;color:#345f9f}.match-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.match-row-actions .small{padding:6px 8px;font-size:11px}.match-block-title{margin-top:20px}.match-import-receipt{margin-top:18px;padding:14px;border:1px solid #dbe5f0;border-radius:13px;background:#f8fafc}.match-receipt-title{font-weight:800;color:#12213a;margin-bottom:10px}.match-receipt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.match-receipt-grid div{padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.match-receipt-grid strong,.match-receipt-grid span{display:block}.match-receipt-grid strong{font-size:20px;color:#12213a}.match-receipt-grid span{margin-top:2px;color:#718096;font-size:10px}.match-import-receipt p{margin:10px 0 0;color:#53647a;font-size:11px}.match-modal-actions{justify-content:flex-end;margin-top:16px}.match-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.match-detail-grid div{padding:12px;border:1px solid #e0e7ef;border-radius:11px}.match-detail-grid span,.match-detail-grid strong{display:block}.match-detail-grid span{color:#718096;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.match-detail-grid strong{margin-top:5px;color:#15233b;font-size:13px}.note.error{border-color:#fecaca;background:#fff1f2;color:#9f1239}
@media(max-width:900px){.match-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.match-import-grid{grid-template-columns:1fr}.match-map-grid{grid-template-columns:1fr}.match-map-row{display:grid;grid-template-columns:1fr}}
@media(max-width:1250px){.match-kpis-v2{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.match-kpis-v2,.match-receipt-grid,.match-detail-grid{grid-template-columns:1fr}.match-section-head{align-items:flex-start;flex-direction:column}}
.drawer-actions{position:relative}.drawer-quick-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:25;min-width:170px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 30px rgba(16,32,54,.16)}.drawer-quick-menu button{display:block;width:100%;border:0;background:transparent;border-radius:8px;padding:9px 10px;text-align:left;font:inherit;font-size:13px;cursor:pointer}.drawer-quick-menu button:hover{background:#f5f7fa}
.drawer-status-row{display:flex;align-items:center;gap:8px;margin:3px 0 4px}.drawer-status-row span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.drawer-status-row select{border:1px solid #dce4ee;border-radius:999px;background:#f7f9fb;color:#526174;padding:5px 10px;font:inherit;font-size:11px;font-weight:800}
.whatsapp-modal-card{width:min(560px,calc(100vw - 32px))}.whatsapp-lead-summary{display:grid;gap:4px;padding:13px 14px;background:#f7f9fb;border:1px solid #edf0f4;border-radius:12px}.whatsapp-lead-summary strong{font-size:16px}.whatsapp-lead-summary span,.whatsapp-lead-summary small{color:var(--muted);font-size:12px}.whatsapp-choices{display:grid;gap:8px;margin-top:16px}.whatsapp-choice{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #e1e7ef;border-radius:12px;padding:12px 13px;background:#fff}.whatsapp-choice:hover{border-color:#f4b28b;background:#fffaf7}.whatsapp-choice-copy{min-width:0}.whatsapp-choice-copy strong,.whatsapp-choice-copy small{display:block}.whatsapp-choice-copy small{margin-top:4px;color:#6f7f92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.whatsapp-choice button{white-space:nowrap}.whatsapp-no-templates{padding:14px;border:1px dashed #dce4ee;border-radius:12px;color:var(--muted);font-size:12px}.whatsapp-editor{margin-top:16px}.whatsapp-editor textarea{width:100%;min-height:150px;resize:vertical}
.schedule-quick-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:6px;margin-top:8px}.schedule-quick-times{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.schedule-quick-actions button,.schedule-quick-times button{border:1px solid #dce4ee;border-radius:999px;background:#fff;color:#5e6f83;padding:6px 7px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap;min-width:0}.schedule-quick-actions button:hover,.schedule-quick-times button:hover{border-color:#f1b28c;background:#fff7f1;color:#d95712}.schedule-quick-times span{font-size:10px;color:#8a96a5;font-weight:700}
.card-action-group{display:inline-flex;align-items:center;gap:4px}.lead-edit-action{width:28px;height:28px;border:1px solid #dce4ee;border-radius:8px;background:#fff;color:#6d7c8f;font-size:16px;line-height:1;cursor:pointer}.lead-edit-action:hover{border-color:#f1b28c;background:#fff7f1;color:#d95712}
.kanban-card .wa-card,.row-actions [data-whatsapp-lead]{appearance:none;display:inline-flex;align-items:center;gap:6px;border:1px solid #cfe8d8;border-radius:9px;background:#f0faf3;color:#217346;font:inherit;font-size:11px;font-weight:850;text-decoration:none;padding:7px 10px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.kanban-card .wa-card::before,.row-actions [data-whatsapp-lead]::before{content:"";width:14px;height:14px;background:url("brands/whatsapp.svg") center/contain no-repeat}.kanban-card .wa-card:hover,.row-actions [data-whatsapp-lead]:hover{background:#e3f5e9;border-color:#b8dec5;transform:translateY(-1px)}

/* Ambiente comercial de demonstração */
.match-demo-guide{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:14px 0 18px;padding:20px;border:1px solid #f5c7ad;border-radius:16px;background:linear-gradient(135deg,#fff8f3,#fff)}.match-demo-guide[hidden]{display:none}.match-demo-guide>div:first-child{max-width:760px}.match-demo-guide span{font-size:10px;font-weight:900;letter-spacing:.1em;color:#e8611b}.match-demo-guide h2{margin:5px 0;font-size:19px}.match-demo-guide p{margin:0;color:#68788e;font-size:12px;line-height:1.5}.match-demo-guide>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.match-demo-guide a{text-decoration:none;white-space:nowrap}@media(max-width:760px){.match-demo-guide{align-items:flex-start;flex-direction:column}}
.demo-heading-line{display:flex;align-items:center;gap:10px}.demo-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0e8;color:#d95612;border:1px solid #ffc6a5;font-size:10px;font-weight:900;letter-spacing:.1em}.demo-badge[hidden]{display:none}.demo-journey{margin-top:20px;padding:22px;border:1px solid #f5c7ad;border-radius:16px;background:linear-gradient(135deg,#fffaf7,#fff);box-shadow:0 8px 24px rgba(18,33,61,.04)}.demo-journey[hidden]{display:none}.demo-journey-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.demo-journey-head>div>span{font-size:10px;font-weight:900;letter-spacing:.1em;color:#e8611b}.demo-journey h2{margin:5px 0 3px;font-size:20px}.demo-journey p{margin:0;color:#6d7c90;font-size:12px}.demo-journey ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;list-style:none;padding:0;margin:18px 0}.demo-journey li{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #edf0f4;border-radius:11px;background:#fff;color:#405267;font-size:11px}.demo-journey li b{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border-radius:50%;background:#fff0e8;color:#e8611b}.demo-journey-actions{display:flex;gap:9px;flex-wrap:wrap}.demo-journey-actions .outline-orange{width:auto;margin:0;text-decoration:none;padding:10px 14px}@media(max-width:980px){.demo-journey ol{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.demo-journey-head{flex-direction:column}.demo-journey ol{grid-template-columns:1fr}}
/* Iconografia funcional oficial do HIP GO: Lucide. */
.lucide{display:block;width:1em;height:1em;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon .lucide{width:19px;height:19px}.side-icon.lucide{width:16px;height:16px}.notification-button>.lucide{width:21px;height:21px}.account-chevron.lucide{width:18px;height:18px}.metric-icon .lucide{width:21px;height:21px}.attention-row .metric-icon .lucide{width:20px;height:20px}.metric-icon.neutral{background:#eef2f7;color:#18304b}
.kanban-card .dots,.lead-edit-action{display:inline-grid;place-items:center}.kanban-card .dots .lucide{width:19px;height:19px}.lead-edit-action .lucide{width:15px;height:15px}.drawer-action .lucide{width:18px;height:18px}.last-note{display:flex;align-items:center;gap:6px}.last-note .lucide{width:14px;height:14px}

/* Logos de mídia usam os assets oficiais, sem fundos decorativos. */
.source-badge{background:transparent;color:#18304b}.source-badge .brand-logo{width:20px;height:20px;object-fit:contain;display:block}.source-badge .lucide{width:19px;height:19px}
.lead-source-inline,.card-source{display:inline-flex;align-items:center;gap:6px}.lead-source-inline .brand-logo,.lead-source-inline .lucide{width:17px;height:17px;object-fit:contain}.card-source{margin-top:3px}.card-source .brand-logo,.card-source .lucide{width:14px;height:14px;object-fit:contain}

/* Ações operacionais do Kanban. */
.bulk-actions{position:sticky;top:82px;z-index:45;width:max-content;max-width:calc(100% - 24px);margin:-2px auto 14px;padding:8px 9px 8px 14px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;border:1px solid #e0e6ed;background:#fff;border-radius:14px;box-shadow:0 12px 34px rgba(16,32,54,.13);color:#17263b;font-size:12px;font-weight:850}.bulk-actions[hidden]{display:none}.bulk-actions .btn{padding:8px 13px;font-size:12px;background:#17263b;border-color:#17263b;color:#fff}.bulk-actions .btn:disabled{opacity:.48;cursor:not-allowed}.bulk-text-action,.bulk-close{border:0;background:transparent;color:#52647a;font:inherit;font-weight:800;cursor:pointer}.bulk-text-action{padding:8px 9px;border-radius:8px}.bulk-text-action:hover{background:#f3f6f8;color:#17263b}.bulk-close{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;font-size:20px;line-height:1}.bulk-close:hover{background:#f3f6f8;color:#17263b}
.lead-select:disabled{opacity:.28;cursor:not-allowed}.lead-quick-menu button:disabled{color:#a6afba;cursor:not-allowed}.lead-quick-menu button:disabled:hover{background:transparent}.lead-quick-menu-divider{height:1px;background:#edf0f4;margin:4px}.lead-quick-menu button.danger,.drawer-quick-menu button.danger{color:var(--danger)}.lead-quick-menu button.danger:hover,.drawer-quick-menu button.danger:hover{background:#fff2f2}.card-action-group{position:relative;display:inline-flex;align-items:center;gap:0}.kanban-card .card-age{display:grid;justify-items:end;gap:5px}.archived-badge{display:inline-flex;align-items:center;width:max-content;padding:3px 6px;border:1px solid #dce3eb;border-radius:999px;background:#f6f8fa;color:#6f7d8e;font-size:8px;font-weight:900;line-height:1;text-transform:uppercase;letter-spacing:.05em}.kanban-card.archived,.lead-row.archived{opacity:.82}.kanban-card.archived{background:#fafbfc}.lead-row .archived-badge{margin-left:5px;vertical-align:middle}
.action-confirm-card{width:min(500px,calc(100vw - 32px))}.action-confirm-message{margin:18px 0 22px;color:#53647a;font-size:14px;line-height:1.6}.action-confirm-buttons{justify-content:flex-end}.btn.danger-action{background:var(--danger);border-color:var(--danger);color:#fff}.btn.danger-action:hover{background:#9f2929;border-color:#9f2929}.action-confirm-card .btn:disabled,.drawer-footer .btn:disabled,#leadEditModal .btn:disabled{opacity:.58;cursor:not-allowed}
.toast-region{position:fixed;right:22px;bottom:22px;z-index:140;display:grid;gap:9px;pointer-events:none}.app-toast{min-width:260px;max-width:min(420px,calc(100vw - 32px));padding:13px 15px;border:1px solid #dbe7df;border-radius:12px;background:#f4fbf6;color:#22633c;box-shadow:0 14px 34px rgba(16,32,54,.15);font-size:13px;font-weight:800;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}.app-toast.visible{opacity:1;transform:translateY(0)}.app-toast.error{border-color:#f1cece;background:#fff4f4;color:#9b3030}

/* O menu fica preso ao botão para não ser cortado pelo card ou pela coluna. */
.card-action-group{position:relative;overflow:visible}.lead-quick-menu{bottom:calc(100% + 8px);right:0;z-index:100;min-width:170px}

/* Área de clique confortável para o menu do card. */
.kanban-card .dots{display:inline-grid;place-items:center;width:44px;height:40px;margin:0;padding:0;border:0;background:transparent;border-radius:10px;color:#8a96a5;line-height:1;touch-action:manipulation;user-select:none}
.kanban-card .dots:hover,.kanban-card .dots:focus-visible,.kanban-card .dots[aria-expanded="true"]{background:#f1f4f7;color:#526174;outline:none}
.kanban-card .dots .lucide{pointer-events:none}

/* Navegação fixa: somente o conteúdo principal rola dentro da janela. */
html,body{height:100%;overflow:hidden}
.shell{height:100vh;min-height:0;overflow:hidden}
.sidebar{height:100vh;min-height:0;position:sticky;top:0;overflow:hidden}
.main{height:100vh;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
@media(max-width:980px){html,body{overflow:auto}.shell{height:auto;min-height:100vh;overflow:visible}.sidebar{height:auto;min-height:100vh;position:relative;overflow:visible}.main{height:auto;min-height:100vh;overflow:visible}}
@media(max-width:600px){.bulk-actions{top:12px;max-width:100%;gap:5px;padding-left:10px}.bulk-actions #selectedCount{white-space:nowrap}.bulk-text-action{padding-inline:6px}.toast-region{right:16px;bottom:16px;left:16px}.app-toast{min-width:0}}

/* Próximos contatos */
.follow-up-header-button{position:relative;width:42px;height:42px;border:0;border-radius:12px;background:transparent;color:#132238;display:grid;place-items:center;cursor:pointer;transition:.18s ease}
.follow-up-header-button:hover,.follow-up-header-button[aria-expanded="true"]{background:#f2f5f8}.follow-up-header-button .lucide{width:21px;height:21px}.follow-up-header-button span{position:absolute;right:1px;top:0;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#f26419;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:900}
.follow-up-drawer-backdrop{position:fixed;inset:0;z-index:90;background:rgba(16,28,50,.18);backdrop-filter:blur(1px);opacity:0;pointer-events:none;transition:opacity .18s ease}.follow-up-drawer-backdrop.open{opacity:1;pointer-events:auto}.follow-up-drawer{position:absolute;right:0;top:0;width:min(480px,94vw);height:100%;padding:28px 30px;background:#fff;box-shadow:-24px 0 60px rgba(16,28,50,.13);overflow:auto;transform:translateX(100%);transition:transform .22s ease}.follow-up-drawer-backdrop.open .follow-up-drawer{transform:translateX(0)}
.follow-up-summary{display:flex;gap:8px;margin:20px 0 4px}.follow-up-summary span{padding:6px 9px;border-radius:999px;background:#f5f7fa;color:#607085;font-size:10px;font-weight:800}.follow-up-summary span.attention{background:#fff2ec;color:#b84b16}.follow-up-list{display:grid;gap:20px;padding:18px 0 28px}.follow-up-group{display:grid;gap:8px}.follow-up-group-title{margin:0;color:#6a788b;font-size:10px;font-weight:900;letter-spacing:.09em}.follow-up-group.overdue .follow-up-group-title{color:#b7463c}.follow-up-item{position:relative;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border:1px solid #e7ebf1;border-radius:14px;background:#fff;transition:.18s ease}.follow-up-item:hover{border-color:#d8e0e9;box-shadow:0 8px 22px rgba(18,36,58,.07)}.follow-up-item.overdue{border-left:3px solid #dc6257;background:#fffafa}.follow-up-open{min-width:0;border:0;background:transparent;padding:13px 8px 13px 14px;display:grid;grid-template-columns:58px 1fr;gap:10px;text-align:left;cursor:pointer}.follow-up-time{font-size:13px;font-weight:900;color:#182940}.follow-up-item.overdue .follow-up-time{color:#b7463c}.follow-up-copy{min-width:0;display:grid;gap:3px}.follow-up-copy strong{font-size:13px;color:#17263b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.follow-up-copy small{font-size:11px;color:#748397;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.follow-up-menu-button{width:40px;height:40px;margin-right:6px;border:0;border-radius:10px;background:transparent;color:#65758a;display:grid;place-items:center;cursor:pointer}.follow-up-menu-button:hover,.follow-up-menu-button[aria-expanded="true"]{background:#f2f5f8}.follow-up-menu-button .lucide{width:18px;height:18px}.follow-up-item-menu{position:absolute;right:8px;top:calc(100% - 4px);z-index:4;min-width:155px;padding:6px;border:1px solid #e2e7ed;border-radius:12px;background:#fff;box-shadow:0 14px 30px rgba(16,32,54,.16)}.follow-up-item-menu button{width:100%;border:0;border-radius:8px;background:transparent;padding:9px 10px;text-align:left;font:inherit;font-size:12px;color:#27364a;cursor:pointer}.follow-up-item-menu button:hover{background:#f5f7fa}.follow-up-empty{padding:42px 18px;text-align:center;color:#748397}.follow-up-empty .lucide{width:28px;height:28px;margin-bottom:10px;color:#9aa6b5}.follow-up-empty strong{display:block;margin-bottom:5px;color:#34465d}.follow-up-reschedule-lead{margin:16px 0;color:#5d6e82;font-size:13px}
.app-toast.follow-up-toast{pointer-events:auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px}.app-toast.follow-up-toast button{border:0;background:transparent;color:#f26419;font-weight:900;cursor:pointer}
@media(max-width:640px){.follow-up-drawer{width:100vw;padding:20px 18px}.follow-up-open{grid-template-columns:54px 1fr}.follow-up-header-button{width:38px;height:38px}}

/* Atendimento do lead: hierarquia operacional sem alterar a estrutura do drawer. */
.lead-drawer .drawer-head{position:relative}.drawer-head-actions{display:flex;align-items:flex-start;gap:8px;flex:0 0 auto}.lead-drawer .drawer-actions{position:relative;margin:0}.lead-drawer .drawer-action{width:36px;height:36px;padding:0;display:grid;place-items:center;border-color:#e3e8ee;background:#fff;color:#596a7f}.lead-drawer .drawer-action:hover,.lead-drawer .drawer-action[aria-expanded="true"]{background:#f3f6f8;color:#1a2a40}.lead-drawer .drawer-quick-menu{top:calc(100% + 7px);right:0}.lead-drawer .drawer-section:first-of-type{margin-top:18px}.lead-drawer .lead-contact{display:grid;gap:4px}.lead-drawer .lead-contact a{width:max-content;max-width:100%;color:#1767c4;font-weight:800;text-decoration:none;overflow-wrap:anywhere}.lead-drawer .lead-contact a:hover{text-decoration:underline}.schedule-reminder{margin:10px 0 0;color:#718096;font-size:11px;line-height:1.45}.schedule-reminder::before{content:"";display:inline-block;width:6px;height:6px;margin:0 7px 1px 1px;border-radius:50%;background:#2f6fbd}.history-list{display:grid;gap:0}.history-entry{padding:11px 0;border-bottom:1px solid #edf1f5}.history-entry:last-child{border-bottom:0}.history-entry-meta{margin-bottom:4px;color:#7b899a;font-size:10px;font-weight:750}.history-entry-body{color:#53647a;font-size:12px;line-height:1.5}.history-human{padding:12px 13px;margin:5px 0;border:1px solid #e6ebf1;border-left:3px solid #f26419;border-radius:11px;background:#fff}.history-human+.history-human{margin-top:3px}.history-human .history-entry-meta{color:#6b7889}.history-human .history-entry-body{color:#24364d;font-size:13px}.history-system{padding-left:2px}.lead-drawer .note-add:disabled{opacity:.6;cursor:not-allowed}.lead-drawer .drawer-footer{z-index:3}
@media(max-width:640px){.drawer-head-actions{gap:6px}.lead-drawer .drawer-action,.lead-drawer .drawer-close{width:38px;height:38px}.history-human{padding:11px}}

/* Camadas e áreas de interação: uma hierarquia única para todo o painel. */
.app-header{position:relative;z-index:var(--layer-sticky);isolation:isolate}
.header-popover{z-index:var(--layer-popover)}
.lead-drawer-backdrop,.follow-up-drawer-backdrop{z-index:var(--layer-drawer)}
#leadEditModal,#whatsappModal,#statusContextModal,#rescheduleFollowUpModal{z-index:var(--layer-modal)}
#actionConfirmModal{z-index:var(--layer-critical)}
.toast-region{z-index:var(--layer-toast)}
.follow-up-header-button,.notification-button,.account-block{position:relative;z-index:1;flex:0 0 auto;touch-action:manipulation;isolation:isolate}
.follow-up-header-button>* ,.notification-button>* ,.account-block>*{pointer-events:none}
.follow-up-header-button span,.notification-button span{pointer-events:none}
.header-popover-wrap{z-index:2;flex:0 0 auto}
.drawer-action,.kanban-card .dots,.follow-up-menu-button{touch-action:manipulation}
.drawer-action>* ,.kanban-card .dots>* ,.follow-up-menu-button>*{pointer-events:none}
.lead-drawer .drawer-action{width:42px;height:42px}
.drawer-quick-menu{z-index:var(--layer-popover)}
.drawer-quick-menu button,.lead-quick-menu button,.follow-up-item-menu button{min-height:40px;touch-action:manipulation}
.lead-phone-line{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%}
.lead-contact-whatsapp{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:1px solid #cfe8d8;border-radius:10px;background:#f0faf3;cursor:pointer;touch-action:manipulation}
.lead-contact-whatsapp:hover,.lead-contact-whatsapp:focus-visible{background:#e3f5e9;border-color:#b8dec5;outline:2px solid rgba(33,115,70,.16);outline-offset:2px}
.lead-contact-whatsapp img{display:block;width:19px;height:19px;object-fit:contain;pointer-events:none}
@media(max-width:640px){.follow-up-header-button{width:42px;height:42px}.lead-drawer .drawer-action{width:42px;height:42px}.lead-contact-whatsapp{width:42px;height:42px;flex-basis:42px}}

/* Limpeza das notificações do sino. */
.notification-head-actions{display:flex!important;align-items:center;gap:5px!important}.notification-clear{border:0;background:transparent;color:#d95712;padding:7px 8px;border-radius:8px;font:inherit;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}.notification-clear:hover{background:#fff2e9}.notification-clear[hidden]{display:none}.notification-head-actions .popover-close{width:30px;height:30px;display:grid;place-items:center;border-radius:8px}.notification-head-actions .popover-close:hover{background:#f2f5f8;color:#26384d}

/* Visualização Lista: leitura rápida, filtros operacionais e ações compactas. */
.list-operations{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-2px 0 12px}.list-operations[hidden]{display:none}
.list-quick-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.list-filter-label{color:#53647a;font-size:12px;font-weight:850}.list-filter-separator{color:#c4ccd6;font-size:11px}.quick-filter{padding:5px 3px;border:0;background:transparent;border-radius:7px;color:#68788c}.quick-filter b{min-width:20px;text-align:center;background:#edf1f5;color:#526174}.quick-filter:hover{border:0;background:#f4f6f8;color:#26384d}.quick-filter.active{border:0;background:#fff1e8;color:#d95712}.quick-filter.attention.active{background:#fff0f0;color:#ad3636}.quick-filter.today.active,.quick-filter.upcoming.active{background:#eef5ff;color:#2d68aa}
.list-print-action{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;border:0;background:transparent;color:#607085;padding:7px 8px;border-radius:9px;font:inherit;font-size:11px;font-weight:850;cursor:pointer}.list-print-action:hover{background:#f1f4f7;color:#17263b}.list-print-action .lucide{width:16px;height:16px}
#listView .lead-row,#listView .lead-row.status-convertido,#listView .lead-row.status-perdido{background:#fff}#listView .lead-row:hover,#listView .lead-row.status-convertido:hover,#listView .lead-row.status-perdido:hover{background:#fafbfd}
#listView th:first-child,#listView td:first-child{width:42px;padding-right:4px}#listView th:nth-child(2){width:24%}#listView th:nth-child(3){width:19%}#listView th:nth-child(4){width:13%}#listView th:nth-child(5){width:17%}#listView th:nth-child(6){width:15%}#listView th:last-child{width:160px}
.list-lead-name{display:inline;padding:0;border:0;background:transparent;color:#17263b;font:inherit;font-weight:850;text-align:left;cursor:pointer}.list-lead-name:hover{color:#d95712;text-decoration:underline;text-underline-offset:3px}.list-lead-phone{margin-top:4px;color:#53647a;font-size:12px}.list-lead-entry{margin-top:3px;color:#8a96a5;font-size:10px}.list-last-activity{color:#5d6e82;font-size:11px;white-space:nowrap}
#listView .scheduled-list{display:inline-flex;align-items:center;min-height:25px;padding:4px 7px;border-radius:8px;background:#f4f6f8;color:#596a7e;font-size:11px}#listView .scheduled-list.overdue{background:#fff0f0;color:#ae3939}#listView .scheduled-list.today{background:#fff4e9;color:#ad5d15}#listView .scheduled-list.upcoming{background:#eef5ff;color:#356da9}#listView .scheduled-list.empty{padding-left:0;background:transparent;color:#9aa5b2}
#listView .row-actions{align-items:center;justify-content:flex-end;flex-wrap:nowrap}.list-row-dots{display:inline-grid;place-items:center;width:40px;height:36px;padding:0;border:0;border-radius:9px;background:transparent;color:#758499;cursor:pointer;touch-action:manipulation}.list-row-dots:hover,.list-row-dots:focus-visible,.list-row-dots[aria-expanded="true"]{background:#f1f4f7;color:#2f4259;outline:none}.list-row-dots .lucide{width:18px;height:18px;pointer-events:none}
.lead-quick-menu.list-row-menu{position:fixed;right:auto;bottom:auto;z-index:var(--layer-popover);min-width:180px}
#listView .lead-row.archived{opacity:.8}#listView .list-empty{padding:34px;text-align:center}

@media(max-width:760px){
  .list-operations{align-items:flex-start;flex-direction:column;gap:7px}.list-print-action{align-self:flex-end}
  #listView.tablewrap{overflow:visible;border:0;background:transparent}#listView table,#listView tbody{display:block}#listView thead{display:none}#listView tbody{display:grid;gap:10px}
  #listView .lead-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:4px 10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(18,33,61,.04)}
  #listView .lead-row td{width:auto!important;padding:0;border:0}#listView .lead-row td:first-child{grid-column:1;grid-row:1/span 2;padding-top:3px}#listView .lead-row td:nth-child(2){grid-column:2;grid-row:1}#listView .lead-row td:nth-child(3){grid-column:2;grid-row:4}#listView .lead-row td:nth-child(4){grid-column:2;grid-row:2}#listView .lead-row td:nth-child(5){grid-column:2;grid-row:3}#listView .lead-row td:nth-child(6){grid-column:2;grid-row:5}#listView .lead-row td:nth-child(7){grid-column:3;grid-row:1/span 2;align-self:start}
  #listView .lead-row td:nth-child(n+3):nth-child(-n+6)::before{content:attr(data-label) ": ";color:#8a96a5;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}#listView .lead-source-inline{font-size:11px}#listView .badge{padding:4px 8px;font-size:10px}#listView .scheduled-list{min-height:0;padding:3px 6px}.list-last-activity{font-size:10px}#listView .row-actions [data-whatsapp-lead]{font-size:0;padding:8px;width:36px;height:36px}#listView .row-actions [data-whatsapp-lead]::before{width:17px;height:17px}
}
/* O painel também apresenta o total de cliques monitorados. */
.overview-cards{grid-template-columns:repeat(5,1fr)}
@media(max-width:980px){.overview-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.overview-cards{grid-template-columns:1fr}}
