/* SHPLAN CRM • Design system sem dependências externas */
:root{
  font-family:'Manrope','DM Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color-scheme:light;--bg:#f6f7fb;--surface:#fff;--surface-alt:#fafbfe;--surface-hover:#f5f6fc;
  --text:#222845;--heading:#141b38;--muted:#8790a8;--soft-text:#606b86;--line:#e9ebf3;
  --shadow:0 6px 32px rgba(27,34,69,.045);--dark:#171d39;--pink:#ce5796;--pink-dark:#b94282;
  --primary:#404cbe;--primary-light:#eef0ff;--input:#fff;--backdrop:rgba(14,19,38,.49);
  --danger:#d74960;--danger-bg:#fff0f2;--green:#24a37c;--green-bg:#e9f9f2;
}
:root[data-theme='dark']{
  color-scheme:dark;--bg:#101425;--surface:#1a2036;--surface-alt:#20263c;--surface-hover:#252d46;
  --text:#d4dcf2;--heading:#f4f6ff;--muted:#8e9ab5;--soft-text:#a0abc4;--line:#30384f;
  --shadow:0 9px 40px rgba(0,0,0,.12);--dark:#111529;--pink:#e478b4;--pink-dark:#c85a99;
  --primary:#8c95ff;--primary-light:#2d345a;--input:#1d263c;--backdrop:rgba(4,7,18,.7);
  --danger:#ff8195;--danger-bg:#4b2839;--green:#61d2ae;--green-bg:#173e38;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;}body{background:var(--bg);color:var(--text);font-size:13px;-webkit-font-smoothing:antialiased}body.modal-open{overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(116,128,247,.32);outline-offset:2px}svg{flex-shrink:0}a{color:inherit}h1,h2,h3,p{margin-top:0}#app{display:flex;min-height:100vh}
.sidebar{width:246px;position:fixed;inset:0 auto 0 0;z-index:30;background:var(--dark);color:#e8e9f5;display:flex;flex-direction:column;padding:28px 15px 18px;box-shadow:2px 0 20px rgba(15,20,47,.07)}
.brand{display:flex;gap:11px;align-items:center;padding:4px 14px 0;margin-bottom:50px}.brand-mark{width:41px;height:41px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:13px;background:linear-gradient(135deg,#e270b6 0%,#9c56c8 100%);box-shadow:0 7px 18px rgba(228,104,182,.22);color:white}.brand-title{font-size:20px;font-weight:800;letter-spacing:-.85px;line-height:1.15}.brand-title span{font-weight:600;color:#cbbbd6}.brand-subtitle{font-size:9px;letter-spacing:1.13px;color:#a9aaca;text-transform:uppercase;margin-top:6px}.sidebar-label{padding:0 18px;color:#797f9d;font-size:9px;letter-spacing:1.65px;font-weight:800;margin-bottom:16px}.sidebar-label-tools{margin-top:33px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-link{border:0;background:transparent;color:#b8bed6;display:flex;align-items:center;gap:13px;padding:14px 16px;width:100%;border-radius:9px;text-align:left;font-weight:650;transition:background .17s,color .17s}.nav-link:hover{background:rgba(255,255,255,.075);color:#fff}.nav-link.active{color:white;background:linear-gradient(93deg,#4a4c86 0%,#343b6c 100%);box-shadow:0 4px 13px rgba(8,13,41,.19)}.nav-link.active:before{content:'';position:absolute;left:0;width:3px;height:25px;border-radius:0 4px 4px 0;background:#f08dc0}.nav-link.active svg{color:#ef9ccc}.nav-counter{margin-left:auto;border-radius:8px;padding:3px 7px;font-size:10px;background:rgba(255,255,255,.11)}.sidebar-bottom{margin-top:auto}.privacy-mark{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px 11px;color:#b4bedd;background:rgba(255,255,255,.035)}.privacy-mark svg{color:#9aaaff;margin-top:2px}.privacy-mark strong,.privacy-mark span{display:block}.privacy-mark strong{font-size:10.5px;color:#e2e5f6}.privacy-mark span{font-size:9px;margin-top:4px;color:#949dbb}.account{display:flex;align-items:center;gap:9px;margin-top:21px;padding:18px 4px 2px;border-top:1px solid rgba(255,255,255,.12)}.account-avatar{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:#ad5e9b;font-size:10px;font-weight:800}.account strong{display:block;font-size:10.5px;color:white}.account span{font-size:9.5px;color:#9da6c7}.account-dot{width:7px;height:7px;border-radius:50%;background:#5cdaac;margin-left:auto}
.main-shell{flex:1;min-width:0;margin-left:246px}.topbar{height:88px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 33px;gap:20px}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:13px}.topbar-actions{gap:11px}.breadcrumb{font-size:10px;color:var(--muted);font-weight:650;margin-bottom:7px}.breadcrumb span{padding:0 6px;color:#c3c7d5}.page-title{font-size:19px;line-height:1;font-weight:800;color:var(--heading);letter-spacing:-.65px}.topbar-today{font-size:11px;color:var(--soft-text);font-weight:600;margin-right:12px}.icon-button{width:37px;height:37px;display:grid;place-items:center;border:1px solid var(--line);color:var(--soft-text);border-radius:10px;background:var(--surface);transition:.17s}.icon-button:hover{color:var(--heading);background:var(--surface-hover)}.btn{min-height:38px;border-radius:9px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:0 15px;border:1px solid transparent;white-space:nowrap;font-weight:750;font-size:11.5px;transition:.18s;line-height:1.1}.btn-primary{color:white;background:#4a53c3;box-shadow:0 3px 10px rgba(62,75,186,.17)}.btn-primary:hover{background:#3741a8}.btn-secondary{color:var(--text);background:var(--surface);border-color:var(--line)}.btn-secondary:hover{background:var(--surface-hover)}.btn-danger{color:white;background:#c94059}.btn-quiet-danger{margin-right:auto;color:var(--danger);background:var(--danger-bg);border-color:transparent}.btn-quiet-danger:hover{filter:brightness(.97)}.btn-whatsapp{border:1px solid #d3eee4;background:#eafaf3;color:#248567}.btn-whatsapp:hover{background:#d5f5e9}.mobile-menu{display:none}
.content{max-width:1920px;margin:0 auto;padding:31px 33px 32px}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}.eyebrow{font-weight:850;font-size:9px;letter-spacing:2.1px;color:var(--pink);margin-bottom:8px}.welcome-row h1,.subpage-intro h1{font-size:27px;line-height:1.27;font-weight:850;letter-spacing:-1.2px;color:var(--heading);margin-bottom:8px}.heading-dot{color:#d965a6}.welcome-row p,.subpage-intro p{color:var(--soft-text);font-size:12px;margin:0}.welcome-right{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-size:10.5px;color:var(--soft-text);background:var(--surface)}.live-dot{height:7px;width:7px;background:#35bc8b;border-radius:50%;box-shadow:0 0 0 3px rgba(53,188,139,.12)}.subpage-intro{margin:4px 0 24px}.subpage-intro h1{margin-bottom:7px}
.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:25px}.kpi-card{min-height:137px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:13px;padding:17px 17px 15px}.kpi-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--soft-text);font-size:10px;font-weight:750}.kpi-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.tone-blue{background:#ecf0ff;color:#5366d7}.tone-violet{background:#f4edff;color:#9b68d8}.tone-cyan{background:#e7f9fe;color:#4da6c9}.tone-green{background:#e8f9f2;color:#27a980}.tone-orange{background:#fff3e7;color:#ed9255}.kpi-value{font-weight:850;font-size:26px;color:var(--heading);letter-spacing:-1px;margin-top:7px;white-space:nowrap}.kpi-value.money-value{font-size:20px;letter-spacing:-.9px;margin-top:11px}.kpi-sub{color:var(--muted);margin-top:7px;font-size:9.5px;font-weight:600}
.overview-grid{display:grid;grid-template-columns:1.13fr 1fr;gap:17px;margin-bottom:31px}.overview-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:13px;padding:21px 23px 17px;min-height:311px}.overview-head{display:flex;align-items:flex-start;justify-content:space-between}.overview-head h2{font-size:13px;font-weight:850;color:var(--heading);margin:0 0 5px}.overview-head p{font-size:10px;color:var(--muted);margin-bottom:0}.overview-head>svg{color:#939dba}.stage-bars{margin-top:17px;display:flex;flex-direction:column;gap:12px}.stage-row{display:grid;grid-template-columns:147px minmax(40px,1fr) 18px;align-items:center;gap:13px;background:transparent;border:0;text-align:left;padding:0;color:var(--soft-text)}.stage-row:hover .stage-label{color:var(--primary)}.stage-label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;white-space:nowrap}.stage-mini-dot,.col-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.dot-slate{background:#99a4b7}.dot-blue{background:#738cee}.dot-violet{background:#b18bed}.dot-cyan{background:#52c5dc}.dot-orange{background:#f2ad63}.dot-green{background:#45c5a0}.dot-red{background:#f17e95}.bar-track{display:block;height:6px;background:var(--surface-hover);border-radius:20px;overflow:hidden}.bar-fill{display:block;height:100%;border-radius:20px;transition:width .35s}.fill-slate{background:#aab2c0}.fill-blue{background:#748beb}.fill-violet{background:#aa8ee7}.fill-cyan{background:#68c5d8}.fill-orange{background:#f0ae72}.fill-green{background:#4ac49f}.fill-red{background:#ee7e94}.stage-number{font-weight:850;font-size:10px;text-align:right;color:var(--heading)}.overview-foot{display:flex;align-items:center;gap:7px;margin-top:18px;color:#4baf8a;font-size:10px;font-weight:700}.overdue-mini{background:var(--danger-bg);color:var(--danger);padding:5px 9px;font-size:9px;font-weight:850;border-radius:7px}.upcoming-list{margin-top:14px;display:flex;flex-direction:column}.upcoming-item{border:0;border-bottom:1px solid var(--line);background:transparent;padding:12px 0;display:flex;align-items:center;gap:10px;text-align:left;color:var(--text);width:100%}.upcoming-item:last-child{border-bottom:0}.upcoming-item:hover{background:var(--surface-alt)}.small-avatar{height:34px;width:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(150deg,#f4e3ee,#ecebff);color:#985c9b;font-size:10px;font-weight:800;flex-shrink:0}.upcoming-info{min-width:0;flex:1}.upcoming-info strong,.upcoming-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-info strong{font-size:10.5px;color:var(--heading)}.upcoming-info span{font-size:9px;color:var(--muted);margin-top:4px}.upcoming-time{white-space:nowrap;text-align:right;font-size:10px;font-weight:800;color:var(--soft-text)}.upcoming-time small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.upcoming-time.is-overdue{color:var(--danger)}.empty-upcoming{text-align:center;padding:65px 0;color:var(--muted)}.empty-upcoming p{margin-top:10px}
.board-section{margin-top:6px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:17px}.section-head h2{font-weight:850;color:var(--heading);font-size:17px;letter-spacing:-.45px;margin-bottom:5px}.section-head p{font-size:10.5px;color:var(--muted);margin:0}.section-actions{display:flex;align-items:center;gap:10px}.view-switch{display:flex;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.view-switch button{display:flex;align-items:center;gap:7px;background:transparent;color:var(--muted);border:0;padding:7px 11px;border-radius:6px;font-size:10px;font-weight:750}.view-switch button.current{background:var(--primary-light);color:var(--primary)}.export-wrap{position:relative}.export-main{height:38px}.export-menu{display:none;position:absolute;top:43px;right:0;z-index:12;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 32px rgba(0,0,0,.14);border-radius:9px;min-width:150px;padding:5px}.export-menu.open{display:block}.export-menu button{display:block;width:100%;padding:10px 12px;color:var(--text);text-align:left;border:0;background:transparent;font-weight:650;font-size:11px;border-radius:6px}.export-menu button:hover{background:var(--surface-hover)}
.filters-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.search-wrap{min-width:210px;flex:1;max-width:440px;position:relative;display:flex;align-items:center}.search-wrap svg{position:absolute;left:13px;color:var(--muted)}.search-wrap input{height:40px;width:100%;border-radius:9px;background:var(--surface);border:1px solid var(--line);color:var(--text);outline:none;padding:0 12px 0 40px;font-size:11px}.search-wrap input::placeholder{color:#a6afc2}.filters-selects{display:flex;gap:9px;align-items:center}.select-wrap{position:relative;display:flex;align-items:center;gap:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding-left:11px;color:var(--muted)}.select-wrap select{max-width:195px;min-width:136px;appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--soft-text);height:38px;font-size:10px;font-weight:700;padding:0 21px 0 3px;outline:none;cursor:pointer}.select-wrap>svg:last-child{position:absolute;right:10px;pointer-events:none}.select-wrap option{background:var(--surface);color:var(--text)}
.kanban-scroll{width:100%;overflow:auto;padding-bottom:14px;scrollbar-color:#b9c1d1 transparent;scrollbar-width:thin}.kanban-columns{display:grid;grid-template-columns:repeat(7,260px);gap:13px;align-items:stretch;min-height:325px}.kanban-col{background:var(--surface-alt);border:1px solid var(--line);border-radius:12px;padding:14px 11px;transition:background .14s,border-color .14s}.kanban-col.drag-over{border:2px dashed var(--pink);background:var(--primary-light)}.col-head>div{display:flex;align-items:center;gap:7px;white-space:nowrap}.col-head strong{font-size:10.5px;font-weight:850;color:var(--heading)}.col-count{padding:2px 6px;background:var(--surface-hover);border-radius:7px;color:var(--soft-text);font-size:9px;font-weight:850}.col-head small{display:block;margin:7px 0 0 15px;color:var(--muted);font-size:9px}.col-total{font-size:10px;font-weight:750;color:var(--soft-text);margin:16px 0 13px;border-top:1px solid var(--line);padding-top:13px}.cards-list{display:flex;flex-direction:column;gap:11px;min-height:200px}.lead-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 13px 10px;box-shadow:0 3px 8px rgba(24,35,81,.035);transition:transform .15s,box-shadow .15s,border-color .15s;cursor:pointer}.lead-card:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(22,31,66,.1);border-color:#cfd1f1}.lead-card.dragging{opacity:.5}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.lead-avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:#f6e1ee;color:#b94e91;font-size:10px;font-weight:850}.lead-avatar.avatar-pme{background:#e5eaff;color:#5863c4}.modality-chip{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #eee3f2;background:#fcf5fb;color:#aa649a;border-radius:7px;font-size:9px;font-weight:800;white-space:nowrap}.modality-chip.pme{border-color:#dfe5ff;background:#eff2ff;color:#5363c1}.lead-name{font-size:12px;font-weight:850;color:var(--heading);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lead-company{margin-top:4px;color:var(--muted);font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lead-details{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-bottom:12px}.lead-details span{display:flex;align-items:center;gap:6px;font-size:9.5px;color:var(--soft-text)}.lead-details svg{color:#aab3c6}.card-value{border-top:1px dashed var(--line);padding-top:11px;margin-bottom:10px;color:var(--heading);font-size:14px;font-weight:850}.card-value small{color:var(--muted);font-size:9px;font-weight:550;display:block;margin-top:4px}.card-footer{border-top:1px solid var(--line);padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:5px}.followup-badge,.status-inline{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:720;color:#8993aa}.followup-badge.today{color:#ca9437}.followup-badge.overdue{color:var(--danger)}.small-icon-btn{background:transparent;color:#4fab89;border:0;padding:4px;display:grid;place-items:center;border-radius:5px}.small-icon-btn:hover{background:var(--green-bg)}.column-empty{min-height:130px;border:1px dashed var(--line);border-radius:9px;color:#b0b8c9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:9px;padding:10px}
.table-scroll{overflow:auto;border-radius:12px;border:1px solid var(--line);background:var(--surface)}.leads-table{width:100%;border-collapse:collapse;min-width:920px}.leads-table th{text-align:left;background:var(--surface-alt);border-bottom:1px solid var(--line);color:var(--muted);font-size:9px;letter-spacing:.75px;font-weight:850;padding:17px 16px;white-space:nowrap}.leads-table td{padding:14px 16px;border-bottom:1px solid var(--line);color:var(--soft-text);font-size:10.5px;white-space:nowrap}.leads-table tbody tr{cursor:pointer}.leads-table tbody tr:hover{background:var(--surface-hover)}.leads-table tbody tr:last-child td{border-bottom:0}.table-name{display:flex;align-items:center;gap:9px}.table-name strong{display:block;color:var(--heading);font-size:11px}.table-name small,.table-contact small{display:block;color:var(--muted);margin-top:4px;font-size:9px}.table-contact{font-weight:680;color:var(--text)}.stage-pill{display:inline-flex;gap:7px;align-items:center;padding:6px 9px;font-size:9px;font-weight:800;border-radius:7px;white-space:nowrap}.stage-slate{background:#f1f3f7;color:#707c8e}.stage-blue{background:#edf1ff;color:#5f7ad5}.stage-violet{background:#f3edff;color:#9470d2}.stage-cyan{background:#eafaff;color:#4ba6c2}.stage-orange{background:#fff3e8;color:#d68c48}.stage-green{background:#e7f8ef;color:#2e9b73}.stage-red{background:#fff0f2;color:#d36375}.text-danger{color:var(--danger)!important;font-weight:850}.empty-results{border:1px dashed var(--line);border-radius:13px;text-align:center;padding:50px 20px;color:var(--muted)}.empty-results h3{color:var(--heading);margin:13px 0 5px}.empty-results p{margin:0 0 17px}.page-footnote{margin:23px 0 4px;display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted)}
.overlay-layer{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center}.overlay-backdrop{position:absolute;inset:0;background:var(--backdrop);backdrop-filter:blur(3px)}.drawer{position:absolute;top:0;bottom:0;right:0;width:min(630px,100%);display:flex;flex-direction:column;background:var(--surface);box-shadow:-12px 0 48px rgba(0,0,0,.14);animation:slide .22s ease}.drawer-head{display:flex;align-items:start;justify-content:space-between;padding:26px 30px 17px}.drawer-eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:850;color:var(--pink);margin-bottom:8px}.drawer-head h2,.modal-head h2{color:var(--heading);margin:0 0 6px;font-weight:850;letter-spacing:-.7px;font-size:21px}.drawer-head p,.modal-head p{color:var(--muted);font-size:11px;margin:0}.drawer-shortcuts{display:flex;align-items:center;justify-content:space-between;padding:0 30px 13px;gap:11px}.drawer-tabs{padding:0 30px;display:flex;gap:22px;border-bottom:1px solid var(--line)}.drawer-tabs button{border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:750;padding:14px 0;position:relative}.drawer-tabs button.active{color:var(--primary)}.drawer-tabs button.active:after{content:'';position:absolute;height:2px;bottom:-1px;background:var(--primary);left:0;right:0}.drawer-tabs button span{background:var(--surface-hover);border-radius:4px;padding:2px 5px;font-size:9px}.drawer-form{display:flex;flex-direction:column;min-height:0;flex:1}.drawer-body{padding:12px 30px 20px;overflow-y:auto;flex:1}.form-section-title{font-size:11px;font-weight:850;color:var(--heading);display:flex;align-items:center;gap:8px;margin:21px 0 16px}.form-section-title svg{color:var(--primary)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.span2{grid-column:1/-1}.field-label{font-size:10px;font-weight:800;color:var(--text);font-style:normal}.field-label i{color:var(--danger);font-style:normal;padding-left:3px}.field input,.field select,.field textarea,.age-item input,.mapping-field select{width:100%;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;min-height:37px;padding:9px 10px;outline:none;font-size:11px}.field textarea{min-height:70px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.age-item input:focus,.mapping-field select:focus{border-color:#888ee9;box-shadow:0 0 0 3px rgba(106,112,222,.1)}.field input::placeholder,.field textarea::placeholder{color:#a3adbf}.field small,.mapping-field small{font-size:9px;line-height:1.5;color:var(--muted)}.field-muted{font-weight:500;color:var(--muted);font-size:9px}.age-label{margin:17px 0 10px}.age-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.age-item{border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--surface-alt);display:flex;flex-direction:column;gap:5px}.age-item span{color:var(--soft-text);font-weight:700;font-size:10px;text-align:center}.age-item input{text-align:center;padding:5px 2px;min-height:31px;background:var(--surface)}.form-help{font-size:9px;color:var(--muted);line-height:1.6;margin:17px 0 8px}.drawer-bottom{display:flex;justify-content:flex-end;gap:10px;padding:15px 30px;border-top:1px solid var(--line);background:var(--surface)}.drawer-history{overflow-y:auto;padding:22px 30px 35px;flex:1}.history-new{padding:18px;background:var(--surface-alt);border:1px solid var(--line);border-radius:13px}.history-new h3{font-size:13px;color:var(--heading);margin-bottom:5px}.history-new p{color:var(--muted);font-size:10px;margin-bottom:18px}.history-new form{display:flex;flex-direction:column;gap:12px}.history-new button{align-self:flex-start}.timeline-heading{font-size:12px;font-weight:850;color:var(--heading);margin:24px 0 14px}.timeline{border-left:2px solid var(--line);margin-left:13px;padding-left:19px}.timeline-item{display:flex;gap:11px;margin-bottom:25px;position:relative}.timeline-icon{position:absolute;left:-34px;top:0;background:var(--primary-light);color:var(--primary);border-radius:50%;border:3px solid var(--surface);height:27px;width:27px;display:grid;place-items:center}.timeline-date{font-size:10px;color:var(--heading);font-weight:850}.timeline-date span{color:var(--muted);font-weight:500}.timeline-item p{font-size:11px;line-height:1.5;color:var(--soft-text);margin:6px 0 0;overflow-wrap:anywhere}.timeline-empty{color:var(--muted);font-size:11px}
.import-dialog,.settings-dialog,.loss-dialog{position:relative;width:min(590px,calc(100vw - 30px));background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.2);max-height:calc(100vh - 35px);display:flex;flex-direction:column;animation:pop .18s ease}.import-wide{width:min(875px,calc(100vw - 30px))}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:15px;padding:25px 29px 21px;border-bottom:1px solid var(--line)}.import-drop{margin:27px;border:2px dashed #cdd2e7;border-radius:12px;text-align:center;padding:31px 20px;background:var(--surface-alt)}.import-drop.file-over{background:var(--primary-light);border-color:var(--primary)}.import-file-icon{height:64px;width:64px;border-radius:17px;display:grid;place-items:center;background:var(--primary-light);color:var(--primary);margin:0 auto 17px}.import-drop h3{font-size:15px;color:var(--heading);margin:0 0 8px}.import-drop p{font-size:11px;color:var(--soft-text);margin-bottom:19px}.import-drop small{font-size:9.5px;color:var(--muted);display:block;margin-top:14px}.file-pick{position:relative;overflow:hidden}.import-tip{display:flex;align-items:center;gap:10px;background:var(--primary-light);color:var(--primary);border-radius:9px;padding:13px 14px;margin:0 27px 28px;font-weight:650;font-size:10px}.import-scroll{overflow-y:auto;min-height:0;padding:20px 29px 12px}.import-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.import-stats>div{border:1px solid var(--line);background:var(--surface-alt);border-radius:9px;padding:14px 13px}.import-stats strong{display:block;font-size:21px;color:var(--heading)}.import-stats span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.import-explain{color:var(--soft-text);font-size:10.5px;line-height:1.6;margin-bottom:18px}.import-explain strong{color:var(--heading)}.mapping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mapping-field{display:flex;flex-direction:column;gap:7px}.mapping-field span{font-size:10px;color:var(--text);font-weight:800}.mapping-field select{appearance:auto;min-height:39px}.preview-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}.preview-title h3{font-size:12px;color:var(--heading);margin:0}.preview-title span{font-size:9px;color:var(--muted)}.preview-table-wrap{overflow:auto;border-radius:9px;border:1px solid var(--line)}.preview-table{width:100%;border-collapse:collapse;min-width:560px}.preview-table th{background:var(--surface-alt);color:var(--muted);font-size:9px;letter-spacing:.5px;text-align:left;padding:11px}.preview-table td{color:var(--soft-text);border-top:1px solid var(--line);font-size:10px;padding:11px}.import-status{font-size:9px;font-weight:850;padding:4px 7px;border-radius:5px}.import-status.valid{color:#249572;background:var(--green-bg)}.import-status.duplicate{color:#c1892c;background:#fff4df}.import-status.invalid{color:var(--danger);background:var(--danger-bg)}.preview-note{color:var(--muted);font-size:9.5px;line-height:1.5;margin:12px 0 2px}.import-bottom{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 29px;border-top:1px solid var(--line);margin-top:auto}.settings-body{padding:24px 29px;display:flex;flex-direction:column;gap:19px}.settings-body code{background:var(--surface-hover);padding:1px 4px;border-radius:4px}.safety-notice{display:flex;align-items:flex-start;gap:12px;background:var(--primary-light);padding:15px;border-radius:9px;color:var(--primary)}.safety-notice strong{font-size:10px}.safety-notice p{font-size:10px;line-height:1.6;margin:4px 0 0;color:var(--soft-text)}.settings-body>.btn{align-self:flex-start}.loss-dialog{width:min(470px,calc(100vw - 30px))}.loss-dialog form{padding:21px 29px 0}.loss-dialog .import-bottom{margin:20px -29px 0}.page-footnote svg{flex-shrink:0}
#toasts{position:fixed;z-index:250;right:22px;bottom:22px;display:flex;align-items:flex-end;flex-direction:column;gap:9px}.toast{padding:12px 15px;background:#203254;color:#fff;display:flex;align-items:center;gap:10px;border-radius:10px;box-shadow:0 10px 35px rgba(13,17,38,.2);font-size:11px;font-weight:700;max-width:min(410px,calc(100vw - 30px));transition:opacity .26s,transform .26s;line-height:1.5}.toast svg{color:#5edab4}.toast.error{background:#ab344d}.toast.error svg{color:#fff}.toast.hide{opacity:0;transform:translateY(7px)}.mobile-backdrop{display:none}
:root[data-theme='dark'] .tone-blue,:root[data-theme='dark'] .tone-violet,:root[data-theme='dark'] .tone-cyan,:root[data-theme='dark'] .tone-green,:root[data-theme='dark'] .tone-orange,:root[data-theme='dark'] .stage-pill,:root[data-theme='dark'] .modality-chip{filter:brightness(.82)}
@keyframes slide{from{transform:translateX(25px);opacity:.6}to{transform:translateX(0);opacity:1}}@keyframes pop{from{transform:translateY(10px) scale(.99);opacity:.4}to{transform:translateY(0) scale(1);opacity:1}}
@media(max-width:1380px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filters-bar{align-items:stretch;flex-direction:column}.search-wrap{max-width:100%}.filters-selects{flex-wrap:wrap}.content{padding:27px 25px}.topbar{padding:0 25px}}
@media(max-width:1040px){.overview-grid{grid-template-columns:1fr}.overview-card{min-height:unset}.kpi-grid{grid-template-columns:repeat(3,1fr)}.topbar-today{display:none}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:0 10px 40px rgba(0,0,0,.2)}.sidebar.mobile-open{transform:translateX(0)}.mobile-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:20}.main-shell{margin-left:0}.mobile-menu{display:grid}.topbar{height:73px;padding:0 16px}.topbar-actions{gap:6px}.topbar-actions .desktop-button{display:none}.topbar-actions .btn-primary{padding:0 11px}.breadcrumb{font-size:9px;margin-bottom:5px}.page-title{font-size:17px}.content{padding:23px 15px}.welcome-row{display:block}.welcome-row h1,.subpage-intro h1{font-size:24px}.welcome-right{display:inline-flex;margin-top:17px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kpi-card{min-height:122px;padding:13px}.kpi-value{font-size:23px}.kpi-value.money-value{font-size:18px}.overview-card{padding:18px}.section-head{flex-direction:column;align-items:stretch}.section-actions{justify-content:space-between}.filters-selects{display:grid;grid-template-columns:1fr 1fr}.select-wrap select{max-width:unset;min-width:0;width:100%}.select-wrap:last-child{grid-column:1/-1}.kanban-columns{grid-template-columns:repeat(7,252px)}.drawer-head,.drawer-shortcuts,.drawer-tabs,.drawer-body,.drawer-history{padding-left:19px;padding-right:19px}.drawer-bottom{padding:13px 19px}.import-stats{grid-template-columns:repeat(2,1fr)}.mapping-grid{grid-template-columns:1fr}.modal-head{padding:21px}.import-scroll{padding:17px 21px}.import-bottom{padding:14px 21px}.import-drop{margin:19px}.import-tip{margin:0 19px 20px}}
@media(max-width:390px){.topbar-actions .btn-primary span{display:none}.kpi-heading{font-size:9px}.kpi-value{font-size:20px}.kpi-value.money-value{font-size:16px}.age-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid{grid-template-columns:1fr}.field.span2{grid-column:auto}.stage-row{grid-template-columns:119px minmax(28px,1fr) 16px;gap:7px}.stage-label{font-size:9px}.drawer-shortcuts{align-items:flex-start;flex-direction:column}.modal-head h2{font-size:18px}.import-bottom{flex-wrap:wrap}.import-bottom .btn{flex:1}}

.settings-backup{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.restore-pick{cursor:pointer}.settings-backup .btn{font-size:10px}

/* Opções configuráveis de importação (duplicados e campos extras). */
.import-choices{display:flex;flex-direction:column;gap:11px;border:1px solid var(--line);border-radius:11px;padding:16px;margin-bottom:20px;background:var(--surface-alt)}
.import-choices-title{font-weight:850;font-size:11px;color:var(--heading);margin-bottom:1px}
.import-choice{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:9px;border:1px solid var(--line);background:var(--surface);cursor:pointer}
.import-choice:hover{border-color:#bbc0ef}
.import-choice>input{margin:2px 0 0;width:17px;height:17px;flex:0 0 auto;accent-color:var(--primary);cursor:pointer}
.import-choice-text{display:flex;flex-direction:column;gap:5px;line-height:1.45;min-width:0}
.import-choice-text strong{font-size:11px;color:var(--heading)}
.import-choice-text small{font-size:10px;color:var(--soft-text)}
.unmapped-info{font-size:10px;color:var(--soft-text);line-height:1.5;padding:0 2px}
.unmapped-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.unmapped-tags>span{padding:4px 8px;border-radius:5px;background:var(--primary-light);color:var(--primary);font-size:9px;font-weight:750;word-break:break-word}
@media(max-width:760px){.import-choices{padding:12px}.import-choice{padding:10px}}

/* Indicador do banco ampliado e inicialização. */
.crm-loading{display:flex;flex:1;min-height:100vh;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:var(--bg);color:var(--heading)}
.crm-loading strong{font-size:23px;font-weight:900}.crm-loading p{margin:11px 0;color:var(--soft-text)}
.storage-info{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--soft-text);font-size:11px;margin:4px 0 15px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt)}
.storage-info strong{color:var(--heading)}
/* Módulo Supabase: navegação, login e sincronização */
.kanban-columns{grid-template-columns:repeat(8,260px)}
.cloud-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-alt);color:var(--muted);border-radius:8px;padding:8px 10px;cursor:pointer;font-size:10px;font-weight:800;white-space:nowrap}
.cloud-pill-on{background:#eafaf2;border-color:#b6e8d2;color:#1b8562}
.cloud-settings{width:min(675px,calc(100vw - 28px))}
.cloud-settings-scroll{overflow-y:auto;min-height:0;padding-top:12px;padding-bottom:24px;gap:13px}
.cloud-section{border:1px solid var(--line);border-radius:12px;background:var(--surface-alt);padding:17px 20px}
.cloud-section>.form-section-title{margin:2px 0 12px}
.cloud-status-tag{font-size:9px;font-weight:750;background:var(--surface-hover);border-radius:7px;padding:6px 9px;color:var(--soft-text);margin-left:auto}
.cloud-status-tag.active{background:#d5f3e4;color:#197957}
.cloud-help,.cloud-small{line-height:1.7;color:var(--soft-text);font-size:10.5px;margin:0 0 13px}
.cloud-small{font-size:9.5px;margin:15px 0 0}
.cloud-section .field-grid{margin-bottom:14px}
.cloud-current{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--surface);padding:12px;border:1px solid var(--line);border-radius:10px;font-size:10px;color:var(--text);margin:14px 0}
.cloud-current span{margin-left:auto}
.cloud-actions{display:flex;gap:8px;flex-wrap:wrap}
.cloud-actions .btn{white-space:normal}
.cloud-error{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--danger);background:var(--danger-bg);padding:9px;border-radius:8px;margin-top:12px;overflow-wrap:anywhere}
.cloud-settings-scroll .form-section-title:not(.cloud-section .form-section-title){margin:6px 0 5px}
.cloud-settings-scroll #settingsForm{display:flex;flex-direction:column;gap:9px}
.cloud-settings-scroll .settings-backup{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:760px){.kanban-columns{grid-template-columns:repeat(8,252px)}.cloud-pill{font-size:0;padding:8px}.cloud-pill svg{width:17px;height:17px}.cloud-current span{margin-left:0}.cloud-section{padding:12px}}

/* Renderização progressiva de listas extensas evita travar o navegador. */
.load-more { display:block; margin:12px auto; padding:11px 17px; border:1px solid var(--border, #dce2ed); border-radius:12px; background:var(--panel, #fff); color:var(--text, #283052); font:600 13px inherit; cursor:pointer; max-width:96%; }
.load-more:hover { filter:brightness(.96); }
.list-more { margin:20px auto 32px; }

/* Login obrigatório no site publicado. Não exibir a base antes de autenticar. */
.crm-auth-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:28px 16px;background:radial-gradient(circle at 30% 10%,#e9e7fb 0%,transparent 43%),var(--bg)}
.crm-auth-card{width:min(440px,100%);padding:32px 30px;background:var(--surface);border:1px solid var(--line);border-radius:19px;box-shadow:0 15px 55px rgba(18,24,55,.10)}
.crm-auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:25px;color:var(--heading)}
.crm-auth-brand strong{display:block;font-size:20px;letter-spacing:-.4px}.crm-auth-brand small{display:block;color:var(--soft-text);font-size:10px;margin-top:3px;text-transform:uppercase;letter-spacing:1.1px}
.crm-auth-mark{display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#c758ae,#5657c8);color:white;font-size:28px;width:51px;height:51px}
.crm-auth-card h1{color:var(--heading);font-size:25px;font-weight:850;letter-spacing:-.6px;margin:0 0 9px}
.crm-auth-card>p{line-height:1.6;color:var(--soft-text);font-size:13px;margin:0 0 21px}
.crm-auth-form{display:flex;flex-direction:column;gap:15px}
.crm-auth-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:var(--heading)}
.crm-auth-form input{width:100%;padding:13px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font-size:14px;outline:none}
.crm-auth-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(78,80,196,.11)}
.crm-auth-form .btn{justify-content:center;min-height:46px;font-size:13px}
.crm-auth-progress{margin-top:17px;border-radius:10px;padding:13px 14px;background:var(--surface-alt);color:var(--primary);font-size:12px;font-weight:700;line-height:1.5}
.crm-auth-foot{display:block;margin-top:18px;color:var(--soft-text);font-size:10px;line-height:1.5}
@media(max-width:480px){.crm-auth-card{padding:28px 21px}.crm-auth-card h1{font-size:22px}}


/* SHPLAN — tela de login com a identidade visual oficial. Não altera o CRM interno. */
.crm-auth-screen{
  position:relative;isolation:isolate;display:flex;flex-direction:column;
  justify-content:center;align-items:center;min-height:100vh;min-height:100dvh;
  padding:42px 18px 25px;overflow:hidden;
  background:linear-gradient(145deg,#fff8fb 0%,#fff0f7 53%,#f7e9eb 100%);
  color:#4b2a20;
}
.crm-auth-aura{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at 12% 14%,rgba(255,255,255,.95),transparent 36%),
  radial-gradient(circle at 87% 88%,rgba(170,113,93,.11),transparent 42%);
}
.crm-auth-card{
  position:relative;width:min(490px,100%);max-width:100%;padding:31px 48px 28px;
  border:1px solid rgba(126,83,70,.11);border-radius:27px;background:#fffdfd;
  box-shadow:0 32px 78px rgba(92,49,65,.12),0 4px 16px rgba(92,49,65,.035);
}
.crm-auth-header{display:flex;flex-direction:column;align-items:center;text-align:center}
.crm-auth-logo-frame{display:grid;place-items:center;width:138px;height:138px;
  background:#fff0f8;border-radius:50%;box-shadow:0 0 0 7px rgba(255,240,248,.82);
  overflow:hidden;margin:0 auto 15px}
.crm-auth-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.crm-auth-brand-name{font-family:Georgia,'Times New Roman',serif;font-size:31px;line-height:1.2;
  font-weight:600;letter-spacing:.055em;color:#553022}
.crm-auth-brand-name span{font-family:inherit;font-weight:400;color:#9b6a62}
.crm-auth-brand-caption{font-size:10px;letter-spacing:.28em;font-weight:650;color:#987369;margin-top:8px}
.crm-auth-divider{height:1px;background:linear-gradient(to right,transparent,#ead7d5,transparent);margin:25px 0 21px}
.crm-auth-intro{text-align:center}
.crm-auth-eyebrow{font-size:10px;letter-spacing:.18em;color:#b76e8f;font-weight:800}
.crm-auth-intro h1{font-family:Georgia,'Times New Roman',serif;font-size:29px;line-height:1.2;
  letter-spacing:-.025em;color:#4b2a20;font-weight:600;margin:10px 0 8px}
.crm-auth-intro p{font-size:12.5px;line-height:1.65;color:#876f70;margin:0 0 23px}
.crm-auth-form{display:flex;flex-direction:column;gap:15px}
.crm-auth-form label{font-size:12px;font-weight:750;color:#58372f;display:flex;flex-direction:column;gap:8px}
.crm-auth-form input{width:100%;height:49px;padding:0 15px;font-size:14px;color:#4b2a20;
  border:1px solid #eadbdb;background:#fffafa;border-radius:12px;outline:none;
  transition:border-color .15s,box-shadow .15s}
.crm-auth-form input::placeholder{color:#aa989b}
.crm-auth-form input:focus{border-color:#ac7383;box-shadow:0 0 0 3px rgba(191,115,147,.15)}
.crm-auth-submit{border:0;border-radius:12px;min-height:52px;margin-top:8px;display:flex;
  align-items:center;justify-content:center;gap:12px;font-size:13px;font-weight:800;letter-spacing:.02em;
  color:white;background:#5a3528;box-shadow:0 9px 20px rgba(90,53,40,.16);cursor:pointer;
  transition:transform .15s,background .15s,box-shadow .15s}
.crm-auth-submit:hover{background:#734639;transform:translateY(-1px);box-shadow:0 11px 23px rgba(90,53,40,.19)}
.crm-auth-submit:disabled{opacity:.7;cursor:wait;transform:none}
.crm-auth-submit span[aria-hidden='true']{font-size:19px;font-weight:400;line-height:1}
.crm-auth-spinner{width:17px;height:17px;border:2px solid #ffffff78;border-top-color:#fff;
  border-radius:50%;animation:shplan-spin .85s linear infinite}
@keyframes shplan-spin{to{transform:rotate(360deg)}}
.crm-auth-progress{margin-top:16px;padding:13px;border-radius:11px;background:#fff0f6;color:#7f4c64;
  font-size:12px;font-weight:650;line-height:1.5}
.crm-auth-card .cloud-error{margin-top:16px;padding:12px;border-radius:11px;font-size:12px}
.crm-auth-footer{text-align:center;margin-top:21px;font-size:10.5px;line-height:1.55;color:#9b8b8c}
.crm-auth-footer span{color:#97685c;font-size:13px;margin-right:4px}
.crm-auth-page-footer{text-align:center;font-size:10px;letter-spacing:.055em;color:#9b8084;margin-top:22px}
:root[data-theme='dark'] .crm-auth-screen{color-scheme:light}
@media(max-width:520px){
  .crm-auth-screen{justify-content:center;padding:22px 13px 18px}
  .crm-auth-card{border-radius:23px;padding:26px 25px 25px}
  .crm-auth-logo-frame{width:120px;height:120px;margin-bottom:12px}
  .crm-auth-brand-name{font-size:28px}
  .crm-auth-divider{margin:19px 0 18px}
  .crm-auth-intro h1{font-size:26px}
  .crm-auth-intro p{margin-bottom:20px;font-size:12px}
  .crm-auth-form{gap:13px}
}
@media(max-height:730px){.crm-auth-screen{justify-content:flex-start}.crm-auth-card{margin-top:auto}.crm-auth-page-footer{margin-top:18px}}


/* Correção definitiva da centralização — o #app original usa display:flex em linha.
   O login deve ocupar TODA a largura, sem herdar a geometria do painel interno. */
html, body { width:100%; max-width:100%; }
#app:has(> .crm-auth-screen) {
  display:block;
  width:100%;
  min-width:0;
  min-height:100dvh;
}
#app > .crm-auth-screen {
  width:100%;
  max-width:none;
  min-width:0;
  min-height:100vh;
  min-height:100dvh;
  margin:0;
  padding:clamp(20px,4vh,45px) 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow-x:clip;
  overflow-y:visible;
}
#app > .crm-auth-screen > .crm-auth-card {
  box-sizing:border-box;
  flex:0 0 auto;
  width:min(100%,520px);
  margin:0 auto;
}
#app > .crm-auth-screen > .crm-auth-page-footer {
  flex:0 0 auto;
  width:100%;
  text-align:center;
  margin:18px auto 0;
}
@media (max-width:520px) {
  #app > .crm-auth-screen {padding:20px 14px;}
  #app > .crm-auth-screen > .crm-auth-card {width:100%; padding:25px 22px;}
}
@media (max-height:750px) {
  #app > .crm-auth-screen {justify-content:flex-start;}
}

/* Segmentação comercial: duas dimensões independentes. */
.segment-section {margin:20px 0 24px;}
.segment-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.segment-heading h2{font-size:19px;color:var(--ink,#141c3d);margin:0 0 4px;font-weight:800;}
.segment-heading p{font-size:12px;color:var(--muted,#8490aa);margin:0;}
.segment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.segment-box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:94px;text-align:left;gap:8px;border:1px solid var(--line,#e6e9f1);border-radius:15px;background:var(--card,#fff);padding:15px 17px;cursor:pointer;color:var(--ink,#141c3d);font-family:inherit;transition:border-color .15s,background .15s;}
.segment-box strong{font-size:25px;line-height:1;font-variant-numeric:tabular-nums;}
.segment-box span{font-size:12px;font-weight:650;color:var(--muted,#8490aa);}
.segment-box.selected{outline:2px solid #615cc9;border-color:#615cc9;background:rgba(97,92,201,.07);}
.segment-box:hover{border-color:#aaa6db;}
@media(max-width:900px){.segment-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.segment-heading{align-items:flex-start;}}
@media(max-width:480px){.segment-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.segment-box{min-height:82px;padding:11px;}.segment-box strong{font-size:22px;}.segment-heading h2{font-size:17px;}}

/* Central de leads comprados Google Sheets: separação visual sem alterar o banco. */
.google-exclusive{background:var(--card-bg, #fff);border:1px solid rgba(134,90,113,.16);border-radius:22px;padding:23px 26px;margin:0 0 23px;box-shadow:0 10px 34px rgba(35,26,55,.045)}
.google-exclusive-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.google-exclusive-head h2{font-size:24px;line-height:1.2;margin:6px 0 8px;color:var(--text, #18213f)}
.google-exclusive-head p{font-size:13px;line-height:1.6;color:var(--muted, #797f94);max-width:630px;margin:0}
.google-exclusive-kicker{font-size:11px;font-weight:850;letter-spacing:1.3px;color:#b65c91}
.google-exclusive-status{display:inline-flex;align-items:center;gap:7px;background:#effaf4;color:#277c57;padding:8px 11px;border-radius:100px;font-size:11px;font-weight:750}
.google-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.google-metric{display:flex;flex-direction:column;text-align:left;gap:6px;padding:15px 13px;border:1px solid rgba(117,123,151,.15);border-radius:14px;background:var(--surface, #f8f9fd);color:var(--text, #18213f);cursor:pointer}
.google-metric strong{font-size:25px;font-weight:850;font-variant-numeric:tabular-nums}.google-metric span{font-size:11px;color:var(--muted, #6d7287);line-height:1.4;font-weight:600}
.google-metric.selected{outline:2px solid #bc6da1;background:#fff2fa}
.google-exclusive-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:18px}
.google-exclusive-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:750;color:var(--muted,#6d7287);flex:1 1 170px}
.google-exclusive-controls select{border:1px solid rgba(122,127,155,.26);background:var(--surface,#fff);color:var(--text,#192037);border-radius:10px;padding:10px 9px;font:inherit;font-size:12px;max-width:100%}
.google-exclusive-controls .btn{min-height:37px;font-size:12px}.google-exclusive-footnote{margin:12px 0 0;font-size:11px;color:var(--muted,#7c8092)}
@media(max-width:1000px){.google-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.google-exclusive{padding:17px 13px}.google-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.google-metric strong{font-size:22px}.google-exclusive-head h2{font-size:21px}}

.google-table-source{display:flex;flex-direction:column;gap:4px;min-width:170px}.google-table-source strong{font-size:12px;color:#98517f}.google-table-source small{font-size:11px;color:var(--muted,#797f94)}

/* SHPLAN 2026-11-27: protege as ações de edição do selo flutuante Netlify. */
@media (max-width: 760px) {
  .drawer { height: 100dvh; max-height: 100dvh; }
  .drawer-form { min-height: 0; overflow: hidden; }
  .drawer-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .drawer-bottom {
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 14px 19px calc(106px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    box-shadow: 0 -5px 17px rgba(16, 26, 55, .06);
  }
  .drawer-bottom > .btn { flex: 0 0 auto; width: 100%; min-height: 44px; margin: 0; white-space: normal; }
  .drawer-bottom > .btn-primary { order: -3; }
  .drawer-bottom > .btn-secondary { order: -2; }
  .drawer-bottom > .btn-quiet-danger { order: -1; }
  .content { padding-bottom: 125px; }
}


/* Correção adicional: o selo Netlify também cobre ações em telas de computador.
   Reservamos uma faixa na base do drawer em TODAS as larguras. */
.drawer-bottom {
  flex-shrink: 0;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 6;
}
.drawer-body, .drawer-history {
  min-height: 0;
  overscroll-behavior: contain;
}
.content {
  padding-bottom: 132px;
}
@media (max-width: 760px) {
  .drawer-bottom {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}

/* Leads do site */
.site-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.site-metrics>div,.site-card{border:1px solid #ae88754d;border-radius:12px;padding:16px}.site-metrics strong{display:block;font-size:28px;margin-top:5px}.site-filters,.site-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.site-filters label,.site-actions label{display:grid;gap:5px;font-size:13px}.site-panel select{max-width:100%;padding:8px;border:1px solid #ae887580;border-radius:7px;background:transparent;color:inherit}.site-panel select option{color:#222;background:#fff}.site-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.site-card{overflow-wrap:anywhere}.site-card-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.site-card h3{margin:0 0 6px}.site-card p{margin:5px 0;font-size:13px}.site-card details{margin-top:12px;font-size:13px;line-height:1.6}.site-card summary{cursor:pointer;font-weight:600}.site-card a{text-decoration:none}.site-panel{padding:16px}@media(max-width:600px){.site-metrics>div{padding:9px}.site-metrics strong{font-size:22px}.site-filters label{flex:1 1 100%}.site-filters select{width:100%}}
