:root{--primary:#1E40AF;--primary-hover:#1D3A9F;--primary-light:#EFF6FF;--accent:#16A34A;--accent-light:#F0FDF4;--bg:#F1F5F9;--surface:#FFFFFF;--surface-2:#F8FAFC;--border:#E2E8F0;--border-strong:#CBD5E1;--text:#0F172A;--text-2:#475569;--text-muted:#94A3B8;--sidebar-bg:#0F172A;--sidebar-text:#CBD5E1;--sidebar-hover:#1E293B;--sidebar-active:#1E40AF;--sidebar-label:#64748B;--red:#DC2626;--orange:#D97706;--green:#16A34A;--blue:#2563EB;--purple:#7C3AED;--radius:8px;--radius-lg:12px;--shadow:0 1px 3px rgba(0,0,0,.08);--shadow-md:0 4px 12px rgba(0,0,0,.10);--shadow-lg:0 10px 30px rgba(0,0,0,.15);--sidebar-w:240px;--sidebar-collapsed-w:72px;--topbar-h:60px;--transition:200ms ease}
[data-theme="dark"]{--bg:#0A0F1C;--surface:#111827;--surface-2:#1F2937;--border:#1F2937;--border-strong:#374151;--text:#F1F5F9;--text-2:#94A3B8;--text-muted:#64748B;--sidebar-bg:#060B14;--sidebar-hover:#111827}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:14px}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--text);display:flex;height:100vh;overflow:hidden}
::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:99px}
#sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);background:var(--sidebar-bg);display:flex;flex-direction:column;transition:width var(--transition),min-width var(--transition);overflow:hidden;position:relative;z-index:100}
#sidebar.collapsed{width:var(--sidebar-collapsed-w);min-width:var(--sidebar-collapsed-w)}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:20px 16px 16px;border-bottom:1px solid rgba(255,255,255,.06)}
.brand{display:flex;align-items:center;gap:10px;overflow:hidden}
.brand-icon{width:36px;height:36px;min-width:36px;background:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#fff}
.brand-text{overflow:hidden}
.brand-name{display:block;color:#fff;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{display:block;color:var(--sidebar-label);font-size:11px;white-space:nowrap}
#btn-sidebar-collapse{background:none;border:none;cursor:pointer;color:var(--sidebar-label);width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background var(--transition),color var(--transition)}
#btn-sidebar-collapse:hover{background:var(--sidebar-hover);color:#fff}
#btn-sidebar-collapse svg{width:16px;height:16px;transition:transform var(--transition)}
#sidebar.collapsed #btn-sidebar-collapse svg{transform:rotate(180deg)}
.sidebar-nav{flex:1;padding:12px 8px;overflow-y:auto;overflow-x:hidden}
.nav-group{margin-bottom:20px}
.nav-label{display:block;color:var(--sidebar-label);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:0 8px 6px;white-space:nowrap;transition:opacity var(--transition)}
#sidebar.collapsed .nav-label{opacity:0}
.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:var(--radius);color:var(--sidebar-text);text-decoration:none;font-size:13.5px;font-weight:500;transition:background var(--transition),color var(--transition);white-space:nowrap;cursor:pointer}
.nav-item svg{width:18px;height:18px;flex-shrink:0}
.nav-item:hover{background:var(--sidebar-hover);color:#fff}
.nav-item.active{background:var(--sidebar-active);color:#fff}
.nav-item span:not(.nav-badge){overflow:hidden;text-overflow:ellipsis;transition:opacity var(--transition),width var(--transition)}
#sidebar.collapsed .nav-item span:not(.nav-badge){opacity:0;width:0}
.nav-badge{margin-left:auto;background:var(--red);color:#fff;font-size:10px;font-weight:700;padding:1px 5px;border-radius:99px;min-width:18px;text-align:center;flex-shrink:0}
.sidebar-footer{padding:12px 8px;border-top:1px solid rgba(255,255,255,.06)}
#btn-theme-toggle{display:flex;align-items:center;gap:10px;width:100%;background:none;border:none;cursor:pointer;color:var(--sidebar-text);padding:9px 10px;border-radius:var(--radius);font-size:13px;transition:background var(--transition);white-space:nowrap;overflow:hidden}
#btn-theme-toggle:hover{background:var(--sidebar-hover)}
#btn-theme-toggle svg{width:18px;height:18px;flex-shrink:0}
#btn-theme-toggle span{transition:opacity var(--transition)}
#sidebar.collapsed #btn-theme-toggle span{opacity:0}
#main-wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
#topbar{height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:16px;flex-shrink:0}
#page-title{font-size:18px;font-weight:600}
.topbar-right{display:flex;align-items:center;gap:10px}
.search-box{display:flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:7px 12px;transition:border-color var(--transition)}
.search-box:focus-within{border-color:var(--primary)}
.search-box svg{width:15px;height:15px;color:var(--text-muted);flex-shrink:0}
.search-box input{background:none;border:none;outline:none;font-size:13px;color:var(--text);width:200px}
.search-box input::placeholder{color:var(--text-muted)}
#btn-help{width:36px;height:36px;background:none;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-2);transition:all var(--transition)}
#btn-help:hover{background:var(--primary-light);color:var(--primary);border-color:var(--primary)}
#btn-help svg{width:17px;height:17px}
.avatar{width:36px;height:36px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:12px;cursor:pointer}
#content{flex:1;overflow-y:auto;padding:24px}
.page{display:none}.page.active{display:block}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:20px}
.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.card-header h2{font-size:15px;font-weight:600}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}
.stat-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-icon svg{width:22px;height:22px}
.stat-icon.blue{background:#EFF6FF;color:var(--blue)}.stat-icon.green{background:#F0FDF4;color:var(--green)}.stat-icon.orange{background:#FFF7ED;color:var(--orange)}.stat-icon.purple{background:#F5F3FF;color:var(--purple)}
.stat-info{display:flex;flex-direction:column}
.stat-value{font-size:24px;font-weight:700;line-height:1.1}
.stat-label{font-size:12px;color:var(--text-muted);margin-top:2px}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.funnel-chart{display:flex;flex-direction:column;gap:10px}
.funnel-stage{display:flex;align-items:center;gap:10px}
.f-label{font-size:12px;color:var(--text-2);width:90px;flex-shrink:0}
.f-bar{flex:1;background:var(--bg);border-radius:99px;height:10px;overflow:hidden}
.f-fill{height:100%;background:var(--primary);border-radius:99px;transition:width .5s ease}
.f-val{font-size:12px;font-weight:600;width:24px;text-align:right}
.activity-list{display:flex;flex-direction:column;gap:8px;max-height:200px;overflow-y:auto}
.activity-item{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--text-2);padding:6px 0;border-bottom:1px solid var(--border)}
.activity-dot{width:6px;height:6px;border-radius:50%;background:var(--primary);margin-top:4px;flex-shrink:0}
.activity-time{color:var(--text-muted);margin-left:auto;white-space:nowrap}
.agent-status-panel{display:flex;flex-direction:column;gap:10px}
.agent-status-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.service-breakdown{display:flex;flex-direction:column;gap:10px}
.service-row{display:flex;align-items:center;justify-content:space-between;font-size:13px}
.service-bar{flex:1;height:6px;background:var(--bg);border-radius:99px;margin:0 10px;overflow:hidden}
.service-fill{height:100%;background:var(--accent);border-radius:99px}
.status-badge{font-size:11px;font-weight:600;padding:3px 8px;border-radius:99px;display:inline-flex;align-items:center;gap:4px}
.status-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
.status-badge.connected{background:#F0FDF4;color:#16A34A}
.status-badge.disconnected,.status-badge:not([class*=" "]){background:#FEF2F2;color:#DC2626}
.status-badge.checking{background:#FFF7ED;color:#D97706}
.pipeline-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.kanban-tabs{display:flex;gap:4px}
.ktab{padding:7px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;font-weight:500;color:var(--text-2);cursor:pointer;transition:all var(--transition)}
.ktab:hover{border-color:var(--primary);color:var(--primary)}
.ktab.active{background:var(--primary);border-color:var(--primary);color:#fff}
#kanban-board{display:flex;gap:12px;overflow-x:auto;padding-bottom:12px;align-items:flex-start;min-height:calc(100vh - 200px)}
.kanban-col{min-width:240px;max-width:260px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column}
.col-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border)}
.col-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.col-dot.captado{background:var(--blue)}.col-dot.qualificado{background:var(--accent)}.col-dot.proposta{background:var(--orange)}.col-dot.negociacao{background:var(--purple)}.col-dot.fechado{background:#16A34A}.col-dot.perdido{background:var(--red)}
.col-title{font-size:13px;font-weight:600;flex:1}
.col-count{font-size:11px;font-weight:700;background:var(--border);padding:2px 7px;border-radius:99px;color:var(--text-2)}
.col-body{padding:10px;min-height:80px;display:flex;flex-direction:column;gap:8px;flex:1}
.lead-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;cursor:pointer;transition:border-color var(--transition),box-shadow var(--transition)}
.lead-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}
.lead-card.sortable-ghost{opacity:.4}
.lc-name{font-size:13px;font-weight:600;margin-bottom:4px}
.lc-empresa{font-size:11px;color:var(--text-2);margin-bottom:6px}
.lc-footer{display:flex;align-items:center;justify-content:space-between}
.lc-service{font-size:10px;font-weight:600;background:var(--primary-light);color:var(--primary);padding:2px 6px;border-radius:4px}
.lc-score{font-size:10px;font-weight:700;color:var(--text-muted)}
.lc-score.high{color:var(--accent)}.lc-score.mid{color:var(--orange)}.lc-score.low{color:var(--red)}
.lc-ia-badge{font-size:10px;background:#F0FDF4;color:var(--accent);padding:1px 5px;border-radius:3px;display:inline-block;margin-top:4px}
.table-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
.table-search,.conv-search{flex:1;min-width:200px;padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;color:var(--text);outline:none;transition:border-color var(--transition)}
.table-search:focus,.conv-search:focus{border-color:var(--primary)}
.select-sm{padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;color:var(--text);outline:none;cursor:pointer}
.table-wrapper{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border)}
.data-table{width:100%;border-collapse:collapse;background:var(--surface)}
.data-table th{padding:11px 14px;text-align:left;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;background:var(--surface-2);border-bottom:1px solid var(--border)}
.data-table td{padding:11px 14px;font-size:13px;border-bottom:1px solid var(--border);color:var(--text)}
.data-table tbody tr:hover{background:var(--surface-2)}
.data-table tbody tr:last-child td{border-bottom:none}
.empty-cell{text-align:center;color:var(--text-muted);padding:40px!important}
.tag-status{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:99px}
.tag-status.captado{background:#EFF6FF;color:var(--blue)}.tag-status.qualificado{background:#F0FDF4;color:var(--accent)}.tag-status.proposta{background:#FFF7ED;color:var(--orange)}.tag-status.negociacao{background:#F5F3FF;color:var(--purple)}.tag-status.fechado{background:#F0FDF4;color:#16A34A}.tag-status.perdido{background:#FEF2F2;color:var(--red)}
.btn-icon{background:none;border:none;cursor:pointer;color:var(--text-muted);padding:4px;border-radius:4px;transition:all var(--transition)}
.btn-icon:hover{background:var(--bg);color:var(--text)}
.btn-icon svg{width:15px;height:15px}
.conversations-layout{display:flex;gap:16px;height:calc(100vh - 136px)}
.conv-list{width:300px;min-width:300px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden}
.conv-list-header{padding:12px;border-bottom:1px solid var(--border)}
#conv-list-items{flex:1;overflow-y:auto}
.conv-item{padding:12px 14px;border-bottom:1px solid var(--border);cursor:pointer;transition:background var(--transition)}
.conv-item:hover,.conv-item.active{background:var(--primary-light)}
.conv-item-name{font-size:13px;font-weight:600;margin-bottom:2px}
.conv-item-preview{font-size:12px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-chat{flex:1;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden}
.conv-chat-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);gap:10px}
.conv-chat-empty svg{width:48px;height:48px;opacity:.3}
.chat-messages{flex:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.chat-bubble{max-width:75%;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5}
.chat-bubble.user{background:var(--primary);color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.chat-bubble.agent{background:var(--surface-2);color:var(--text);align-self:flex-start;border-bottom-left-radius:3px;border:1px solid var(--border)}
.chat-bubble.ai{background:var(--accent-light);color:var(--text);align-self:flex-start;border-bottom-left-radius:3px;border:1px solid #BBF7D0}
.chat-meta{font-size:10px;color:var(--text-muted);margin-top:2px}
.chat-input-row,.agent-test-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border)}
.chat-input-row input,.agent-test-input input{flex:1;padding:9px 12px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;color:var(--text);outline:none;transition:border-color var(--transition)}
.chat-input-row input:focus,.agent-test-input input:focus{border-color:var(--primary)}
.agent-layout{display:flex;flex-direction:column;gap:16px}
.agent-info-card .agent-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}
.agent-stats{display:flex;gap:20px;margin-top:14px}
.agent-stat{display:flex;flex-direction:column;align-items:center}
.agent-stat span{font-size:24px;font-weight:700;color:var(--primary)}
.agent-stat small{font-size:11px;color:var(--text-muted)}
.agent-test-chat{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:14px;min-height:160px;max-height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.log-list{display:flex;flex-direction:column;gap:6px;max-height:250px;overflow-y:auto}
.log-item{display:flex;gap:8px;align-items:flex-start;padding:7px 10px;background:var(--surface-2);border-radius:var(--radius);font-size:12px}
.log-time{color:var(--text-muted);flex-shrink:0}
.log-badge{font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;flex-shrink:0}
.log-badge.in{background:#EFF6FF;color:var(--blue)}.log-badge.out{background:#F0FDF4;color:var(--accent)}.log-badge.ia{background:#F5F3FF;color:var(--purple)}
.integrations-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.integration-card{padding:20px}
.integration-header{display:flex;align-items:center;gap:12px;margin-bottom:0}
.integration-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.integration-icon svg{width:22px;height:22px}
.integration-icon.whatsapp{background:#25D366}.integration-icon.n8n{background:#EA4B71}.integration-icon.ia{background:var(--purple)}.integration-icon.supabase{background:#3ECF8E}
.integration-header>div{flex:1}
.integration-header>div p{font-size:12px;color:var(--text-muted);margin-top:1px}
.qr-display{margin:16px auto;width:200px;height:200px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text-muted);font-size:12px}
.qr-display img{width:180px;height:180px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-group{display:flex;flex-direction:column;gap:5px}
.form-group.full{grid-column:1/-1}
.form-group label{font-size:12px;font-weight:600;color:var(--text-2)}
.form-group input,.form-group select,.form-group textarea{padding:9px 11px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);font-size:13px;color:var(--text);outline:none;font-family:inherit;transition:border-color var(--transition)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary);background:var(--surface)}
.form-group small{font-size:11px;color:var(--text-muted)}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.prompt-preview{margin-top:16px;padding:14px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);font-size:12px;color:var(--text-2);white-space:pre-wrap;max-height:300px;overflow-y:auto}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}
.modal-overlay.hidden{display:none}
.modal{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg)}
.modal-lg{max-width:860px}.modal-sm{max-width:380px}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border)}
.modal-header h3{font-size:16px;font-weight:600}
.modal-close{background:none;border:none;cursor:pointer;font-size:22px;color:var(--text-muted);line-height:1;padding:4px;border-radius:4px}
.modal-close:hover{background:var(--bg)}
.modal-body{padding:20px}
.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px;border-top:1px solid var(--border)}
.lead-detail-layout{display:flex;gap:20px;height:500px}
.lead-detail-info{width:250px;min-width:250px;display:flex;flex-direction:column;gap:2px}
.detail-row{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.detail-row strong{font-size:11px;color:var(--text-muted);text-transform:uppercase}
.detail-row select,.detail-row input[type="number"]{margin-top:4px;padding:5px 8px;background:var(--surface-2);border:1px solid var(--border);border-radius:5px;font-size:12px;color:var(--text);outline:none}
.lead-actions{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.lead-detail-chat{flex:1;display:flex;flex-direction:column;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.chat-header{padding:10px 14px;font-size:12px;font-weight:600;border-bottom:1px solid var(--border)}
.btn-primary{display:inline-flex;align-items:center;gap:6px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);padding:9px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:background var(--transition);white-space:nowrap}
.btn-primary:hover{background:var(--primary-hover)}
.btn-primary svg{width:15px;height:15px}
.btn-secondary{display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);padding:9px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:all var(--transition);white-space:nowrap}
.btn-secondary:hover{border-color:var(--primary);color:var(--primary)}
.btn-danger{background:var(--red);color:#fff;border:none;border-radius:var(--radius);padding:9px 16px;font-size:13px;font-weight:600;cursor:pointer}
.btn-sm{padding:6px 12px!important;font-size:12px!important}
.toggle{position:relative;display:inline-block;width:44px;height:24px}
.toggle input{opacity:0;width:0;height:0}
.toggle-slider{position:absolute;inset:0;background:var(--border-strong);border-radius:99px;cursor:pointer;transition:background var(--transition)}
.toggle-slider::before{content:'';position:absolute;height:18px;width:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:transform var(--transition)}
.toggle input:checked+.toggle-slider{background:var(--primary)}
.toggle input:checked+.toggle-slider::before{transform:translateX(20px)}
.hidden{display:none!important}
.mt-12{margin-top:12px}
.text-muted{font-size:12px;color:var(--text-muted)}
.empty-state-small{text-align:center;color:var(--text-muted);font-size:12px;padding:20px}
.loading-spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
#toast-container{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px;z-index:9999}
.toast{background:var(--text);color:var(--surface);padding:11px 16px;border-radius:var(--radius);font-size:13px;font-weight:500;box-shadow:var(--shadow-lg);animation:toastIn .25s ease}
.toast.success{background:var(--accent)}.toast.error{background:var(--red)}.toast.warning{background:var(--orange)}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.stats-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.integrations-grid{grid-template-columns:1fr}}
@media(max-width:768px){.stats-grid{grid-template-columns:1fr}#sidebar{width:var(--sidebar-collapsed-w);min-width:var(--sidebar-collapsed-w)}.lead-detail-layout{flex-direction:column;height:auto}.conversations-layout{flex-direction:column;height:auto}.conv-list{width:100%;min-width:0}}
