:root{--bg:#f6f8fc;--card:#fff;--text:#172033;--muted:#697386;--line:#e7ebf2;--nav:#0b1f3a;--nav2:#102a4d;--primary:#2563eb;--primarySoft:#eef4ff;--green:#15945b;--greenSoft:#edf9f2;--amber:#c27a0a;--amberSoft:#fff7e8;--red:#d94141;--redSoft:#fff1f1;--shadow:0 8px 28px rgba(20,40,80,.07)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:232px;background:linear-gradient(180deg,var(--nav),#081a30);color:#fff;padding:18px 12px;position:fixed;inset:0 auto 0 0;z-index:30;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:6px 7px 22px}.brand-mark{min-width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#fff;color:var(--nav);font-size:12px;font-weight:900;letter-spacing:.5px}.brand-copy strong{display:block;font-size:14px}.brand-copy span{display:block;font-size:11px;color:#a9bad0;margin-top:2px}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#bfd0e8;border-radius:10px;padding:10px 11px;text-align:left;cursor:pointer;display:flex;gap:10px;align-items:center;transition:.15s}.nav-icon{width:18px;text-align:center;font-size:15px}.nav-item span:nth-child(2){flex:1}.nav-item b{font-size:10px;background:rgba(255,255,255,.12);padding:3px 7px;border-radius:999px}.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}.nav-item.active{background:#17385f;color:#fff;box-shadow:inset 3px 0 0 #64b5ff}.sidebar-footer{margin-top:auto;font-size:11px;color:#9fb3cd;display:flex;gap:8px;align-items:center;padding:10px}.health-dot{width:8px;height:8px;background:#25c277;border-radius:50%;box-shadow:0 0 0 4px rgba(37,194,119,.1)}.main{margin-left:232px;width:calc(100% - 232px)}.topbar{height:68px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;position:sticky;top:0;z-index:20;gap:16px}.company-wrap{display:flex;gap:9px;align-items:center}.top-label{font-size:11px;color:var(--muted);font-weight:700}.top-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.mobile-menu{display:none;border:0;background:none;font-size:22px;color:var(--text);cursor:pointer}.btn{border:0;border-radius:9px;padding:9px 13px;cursor:pointer;font-weight:750;transition:.15s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--primary);color:#fff;box-shadow:0 6px 14px rgba(37,99,235,.18)}.btn.success{background:var(--green);color:#fff}.btn.subtle{background:#f0f3f8;color:#334155}.btn.clear-btn{background:transparent;color:var(--muted);padding:8px}.link-btn{border:0;background:none;color:var(--primary);font-weight:750;font-size:12px;cursor:pointer}.view{display:none;padding:24px;max-width:1540px;margin:auto}.view.active{display:block}.page-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.page-head.compact{margin-bottom:15px}.page-head h1{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.3px}.page-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.small-select{min-width:118px}.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:11px;margin-bottom:12px}.kpi{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:14px 15px;box-shadow:var(--shadow);min-height:94px}.kpi .label{font-size:11px;color:var(--muted);font-weight:700}.kpi .value{font-size:23px;font-weight:850;margin:8px 0 0;letter-spacing:-.5px}.kpi .sub{display:none}.quick-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:12px}.quick-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 12px;text-align:left;cursor:pointer;box-shadow:var(--shadow)}.quick-card:hover{border-color:#cdd8e7}.quick-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--primarySoft);color:var(--primary);font-weight:900}.quick-icon.danger{background:var(--redSoft);color:var(--red)}.quick-icon.hot{background:var(--amberSoft);color:var(--amber)}.quick-icon.green{background:var(--greenSoft);color:var(--green)}.quick-card b{display:block;font-size:17px}.quick-card small{display:block;color:var(--muted);font-size:10px;margin-top:1px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.compact-gap{margin-top:12px}.card{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:15px;box-shadow:var(--shadow)}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}.card-head h3{margin:0;font-size:14px}.hint{font-size:10px;color:var(--muted)}.bar-row{display:grid;grid-template-columns:120px 1fr 65px;align-items:center;gap:9px;margin:9px 0;font-size:11px}.bar{height:8px;background:#edf1f6;border-radius:99px;overflow:hidden}.bar>i{display:block;height:100%;background:linear-gradient(90deg,#2b6de8,#69b5ff);border-radius:99px}.bar-row b{text-align:right;font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;color:#758093;font-weight:750;background:#fafbfc;position:sticky;top:0;z-index:2}th,td{padding:10px 8px;border-bottom:1px solid #edf0f4;white-space:nowrap}tbody tr:hover{background:#fbfdff}.company-cards,.website-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:10px}.company-card,.website-card{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff;cursor:pointer}.company-card:hover{border-color:#c5d5e9;box-shadow:0 6px 18px rgba(30,60,100,.06)}.company-card h4,.website-card h4{margin:0 0 7px;font-size:13px}.metric-row{display:flex;justify-content:space-between;margin:6px 0;font-size:11px}.metric-row span{color:var(--muted)}.attention-list{display:grid;gap:7px}.attention{background:#fff8eb;padding:10px 11px;border-radius:9px;font-size:11px;display:flex;justify-content:space-between;gap:12px;border:1px solid #f8e4bd}.attention.red{background:#fff3f3;border-color:#ffd5d5}.filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:9px;padding:10px}.search-box{min-width:250px;flex:1;display:flex;align-items:center;gap:7px;border:1px solid #dce2ea;border-radius:9px;padding-left:10px;background:#fff}.search-box span{color:#8a94a6;font-size:16px}.search-box input{border:0;box-shadow:none!important;padding-left:0;min-width:180px;width:100%}.focus-check{display:flex;align-items:center;gap:5px;font-size:11px;color:#4a5568;white-space:nowrap}.focus-check input{min-height:auto}.result-bar{display:flex;justify-content:space-between;align-items:center;padding:2px 3px 9px;font-size:11px;color:var(--muted)}select,input,textarea{border:1px solid #dce2ea;background:#fff;border-radius:9px;padding:8px 10px;outline:none;min-height:38px;color:var(--text)}select:focus,input:focus,textarea:focus{border-color:#8bb6f4;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf4ff;color:#1e5aa8;font-size:10px;font-weight:800}.status.won{background:var(--greenSoft);color:var(--green)}.status.lost{background:var(--redSoft);color:#b43131}.status.hot{background:var(--amberSoft);color:#a86500}.lead-name{font-weight:800;color:#172033}.lead-phone{font-size:10px;color:var(--muted);margin-top:2px}.action-row{display:flex;gap:5px}.icon-btn{border:1px solid #dce3ec;background:#fff;border-radius:7px;padding:6px 8px;cursor:pointer;font-size:10px;font-weight:700;color:#3b4658}.icon-btn.primary-act{border-color:#bdd1f7;color:#1f5eb8;background:#f7faff}.icon-btn.success-act{border-color:#bde6ce;color:#167344;background:#f6fcf8}.icon-btn:hover{border-color:#9fbce0}.mobile-lead-cards{display:none}.follow-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.summary-card b{font-size:20px}.summary-card span{display:block;font-size:10px;color:var(--muted);margin-top:2px}.follow-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.follow-card{border-left:4px solid var(--primary)}.follow-card.overdue{border-left-color:var(--red)}.follow-card .lead-name{font-size:13px}.follow-card .meta{font-size:11px;color:var(--muted);margin:4px 0}.connector{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.dot{width:8px;height:8px;border-radius:50%;background:#22b573}.dot.pending{background:#e6a018}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:6px 8px;background:#f1f5f9;border-radius:999px;font-size:10px;color:#475569}.setup-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.setup-card{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.setup-card>div{flex:1}.setup-card b,.setup-card small{display:block}.setup-card b{font-size:12px}.setup-card small{font-size:10px;color:var(--muted);margin-top:2px}.setup-icon{font-size:18px}.integration-row{display:flex;gap:8px;flex-wrap:wrap}.integration-row span{border:1px solid var(--line);background:#fafbfd;padding:8px 11px;border-radius:9px;font-size:11px;color:#526073}.muted{color:var(--muted);font-size:11px}.modal{position:fixed;inset:0;background:rgba(8,25,48,.55);display:none;place-items:center;z-index:80;padding:18px}.modal.open{display:grid}.modal-card{width:min(500px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:21px;position:relative;box-shadow:0 30px 80px rgba(0,0,0,.2)}.modal-card.wide{width:min(760px,96vw)}.modal-card h2{margin:0;font-size:19px}.modal-sub{font-size:11px;color:var(--muted);margin:5px 0 15px}.x{position:absolute;right:13px;top:11px;border:0;background:transparent;font-size:23px;cursor:pointer;color:#64748b}.modal form{display:grid;gap:11px}.form-grid{grid-template-columns:1fr 1fr}.nested{margin-top:10px}.modal label{display:grid;gap:5px;font-size:11px;font-weight:750;color:#4a5568}.span-2{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.more-fields{border:1px solid var(--line);border-radius:10px;padding:10px}.more-fields summary{cursor:pointer;font-size:11px;color:var(--primary);font-weight:750}.help-steps{display:grid;gap:10px;margin-top:15px}.help-steps>div{display:flex;align-items:flex-start;gap:10px}.help-steps>div>b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--primarySoft);color:var(--primary);font-size:11px}.help-steps strong,.help-steps small{display:block}.help-steps strong{font-size:12px}.help-steps small{font-size:10px;color:var(--muted);margin-top:2px}.help-tip{margin-top:14px;background:#f6f8fb;border:1px solid var(--line);padding:10px;border-radius:9px;font-size:10px;color:#5f6b7c}.toast{position:fixed;right:18px;bottom:18px;background:#122035;color:#fff;padding:10px 14px;border-radius:9px;opacity:0;transform:translateY(10px);transition:.2s;z-index:100;font-size:11px}.toast.show{opacity:1;transform:none}.row-actions{display:flex;gap:7px}.leads-table-wrap{padding:0}.fmatrix{background:#fafbfc;font-size:9px}.mini-note{max-width:120px;overflow:hidden;text-overflow:ellipsis}.empty{padding:22px;text-align:center;color:var(--muted);font-size:11px}.revenue-kpis{grid-template-columns:repeat(6,1fr)}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.quick-strip{grid-template-columns:repeat(2,1fr)}.company-cards,.website-grid{grid-template-columns:repeat(2,1fr)}.setup-grid{grid-template-columns:repeat(2,1fr)}.revenue-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:860px){.sidebar{transform:translateX(-100%);transition:.2s;width:228px}.sidebar.open{transform:none}.main{margin-left:0;width:100%}.mobile-menu{display:block}.topbar{padding:0 12px;height:62px}.top-label{display:none}.company-wrap select{max-width:155px}.desktop-only{display:none}.view{padding:14px}.grid-two{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi{min-height:82px;padding:12px}.kpi .value{font-size:20px}.quick-strip{grid-template-columns:1fr 1fr}.company-cards,.website-grid{grid-template-columns:1fr}.follow-grid{grid-template-columns:1fr}.follow-summary{grid-template-columns:repeat(3,1fr)}.lead-table-wrap{display:none}.mobile-lead-cards{display:grid;gap:9px}.lead-mobile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}.lead-mobile-head{display:flex;justify-content:space-between;gap:10px}.lead-mobile .meta{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:10px;color:var(--muted);margin:9px 0}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.page-head{align-items:flex-start}.row-actions{width:100%;overflow:auto}.setup-grid{grid-template-columns:1fr}.search-box{min-width:100%;flex-basis:100%}.filters select{flex:1;min-width:120px}.result-bar .hint{display:none}.bar-row{grid-template-columns:95px 1fr 52px}.revenue-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.top-actions .subtle{display:none}.page-head{flex-direction:column;align-items:stretch}.small-select{width:100%}.quick-strip{grid-template-columns:1fr 1fr}.follow-summary{grid-template-columns:1fr 1fr}.follow-summary .summary-card:last-child{grid-column:1/-1}.company-wrap{flex:1}.company-wrap select{width:100%;max-width:none}.top-actions{margin-left:0}.top-actions .primary{padding:9px 10px}.kpi-grid{gap:8px}.kpi-grid .kpi:nth-child(5){grid-column:1/-1}.modal-card{padding:18px}.filters{padding:9px}.filters select{min-width:calc(50% - 6px)}}
/* CRM 2.1 — richer lead detail without crowding the main list */
.lead-link{border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:inherit;max-width:100%}.lead-link:hover .lead-name{color:var(--primary)}
.page-cell{max-width:240px;overflow:hidden;text-overflow:ellipsis}
.recent-leads{display:grid;gap:7px}.recent-lead{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px;display:flex;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.recent-lead:hover{border-color:#bfd0e7;background:#fbfdff}.recent-lead span{min-width:0}.recent-lead b,.recent-lead small{display:block}.recent-lead b{font-size:11px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-lead small{font-size:9px;color:var(--muted);margin-top:2px}
.detail-modal{width:min(920px,96vw)}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-right:30px}.detail-head h2{margin:0}.detail-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}.detail-item{border:1px solid var(--line);background:#fafbfd;border-radius:10px;padding:9px 10px;min-width:0}.detail-item span,.detail-item b{display:block}.detail-item span{color:var(--muted);font-size:9px;margin-bottom:4px}.detail-item b{font-size:11px;word-break:break-word;white-space:pre-wrap}.detail-item.full{grid-column:auto}.detail-section{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.detail-section h3{font-size:13px;margin:0 0 9px}.form-fields{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}.timeline-row{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid #eef1f5}.timeline-row>i{font-style:normal;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--primarySoft);color:var(--primary);font-size:9px;font-weight:800;flex:0 0 auto}.timeline-row b{font-size:11px}.timeline-row p{font-size:10px;margin:3px 0;color:#475569}.timeline-row small{font-size:9px;color:var(--muted)}
@media(max-width:860px){.detail-grid,.form-fields{grid-template-columns:1fr 1fr}.detail-modal{width:min(680px,96vw)}}
@media(max-width:520px){.detail-grid,.form-fields{grid-template-columns:1fr}.recent-lead{flex-direction:column;gap:5px}.recent-lead b{max-width:100%}}
/* CRM 2.2 — users, quick communication, simple voice follow-up */
.optional{font-weight:500;color:var(--muted);font-size:9px}.mini-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mini-kpi-grid>div{border:1px solid var(--line);background:#fafbfd;border-radius:10px;padding:10px}.mini-kpi-grid b,.mini-kpi-grid span{display:block}.mini-kpi-grid b{font-size:16px}.mini-kpi-grid span{font-size:9px;color:var(--muted);margin-top:3px}.team-row{display:grid;grid-template-columns:1.4fr .8fr .8fr .8fr;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eef1f5;font-size:10px}.team-row span:first-child b,.team-row span:first-child small{display:block}.team-row span:first-child small{color:var(--muted);margin-top:2px}.user-kpis{grid-template-columns:repeat(4,1fr)}
.quick-actions{flex-wrap:wrap}.call-act{border-color:#b8d7ff!important;background:#f5f9ff!important;color:#155fa8!important}.wa-act,.whatsapp-btn{border-color:#bfe8cf!important;background:#f3fbf6!important;color:#147a46!important}.detail-contact-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.assign-box{display:flex;gap:8px;align-items:end;margin-top:14px;padding:10px;border:1px solid var(--line);background:#fafbfd;border-radius:10px}.assign-box label{display:grid;gap:5px;font-size:10px;font-weight:700;color:#64748b;flex:1}.assign-box select{width:100%}
.follow-modal-card{width:min(590px,96vw)}.quick-follow-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.voice-note-wrap{position:relative}.voice-note-wrap textarea{width:100%;padding-right:94px;resize:vertical}.voice-btn{position:absolute;right:8px;bottom:8px;border:1px solid #bfd1ee;background:#f6f9ff;color:#245fb2;border-radius:9px;padding:8px 10px;cursor:pointer;font-weight:750;font-size:10px;display:flex;gap:5px;align-items:center}.voice-btn.listening{background:#fff1f1;color:#c52d2d;border-color:#ffcaca;animation:pulseMic 1s infinite}.voice-status{font-size:9px;color:var(--muted);margin-top:-5px}.schedule-next{border:1px solid var(--line);border-radius:10px;padding:9px 10px}.schedule-next summary{cursor:pointer;color:#375f96;font-size:10px;font-weight:750}.schedule-next summary span{color:var(--muted);font-weight:500}.schedule-next label{margin-top:10px}@keyframes pulseMic{0%,100%{box-shadow:0 0 0 0 rgba(217,65,65,.12)}50%{box-shadow:0 0 0 7px rgba(217,65,65,0)}}
#whatsappModal textarea{width:100%;margin-top:7px}.status.won{background:var(--greenSoft);color:var(--green)}.status.lost{background:var(--redSoft);color:var(--red)}
@media(max-width:1100px){.team-row{grid-template-columns:1.3fr .8fr .8fr}.team-row>b{grid-column:2/4;text-align:right}.user-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.mini-kpi-grid{grid-template-columns:repeat(2,1fr)}.quick-follow-grid{grid-template-columns:1fr}.assign-box{align-items:stretch;flex-direction:column}.team-row{grid-template-columns:1fr 1fr}.team-row>b{grid-column:auto}.quick-actions .icon-btn{flex:1;min-width:76px}.voice-note-wrap textarea{padding-right:10px;padding-bottom:50px}.voice-btn{right:8px;bottom:8px}}

/* v2.3 multi-business access + checkbox multi-filters */
.multi-filter-bar{align-items:flex-start}.multi-filter{position:relative}.multi-filter>summary{list-style:none;cursor:pointer;min-height:38px;display:flex;align-items:center;padding:8px 10px;border:1px solid #dce2ea;background:#fff;border-radius:9px;color:#344054;font-size:11px;font-weight:700;white-space:nowrap}.multi-filter>summary::-webkit-details-marker{display:none}.multi-filter[open]>summary{border-color:#8bb6f4;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.multi-filter-menu{position:absolute;z-index:45;top:44px;left:0;width:min(300px,82vw);max-height:330px;overflow:auto;background:#fff;border:1px solid #dbe2ec;border-radius:11px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:8px}.multi-filter-tools{display:flex;justify-content:flex-end;gap:6px;padding:2px 2px 7px;border-bottom:1px solid #edf0f4;margin-bottom:4px}.multi-filter-tools button{border:0;background:#f1f5f9;color:#475569;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:750;cursor:pointer}.multi-filter-options{display:grid;gap:2px}.multi-filter-option{display:flex;align-items:center;gap:8px;padding:7px 7px;border-radius:7px;font-size:11px;font-weight:600;color:#3f4a5c;cursor:pointer}.multi-filter-option:hover{background:#f6f9fd}.multi-filter-option input{min-height:auto;margin:0}.multi-filter-option small{color:#98a2b3;margin-left:auto;font-weight:500}.advanced-filters{position:relative}.advanced-filters>summary{list-style:none;cursor:pointer;min-height:38px;display:flex;align-items:center;padding:8px 10px;border:1px solid #dce2ea;background:#f8fafc;border-radius:9px;color:#475569;font-size:11px;font-weight:750}.advanced-filters>summary::-webkit-details-marker{display:none}.filter-more{position:absolute;z-index:42;top:44px;right:0;width:min(720px,92vw);display:flex;flex-wrap:wrap;gap:7px;background:#fff;border:1px solid #dbe2ec;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:10px}.filter-more .multi-filter{position:relative}.filter-more .multi-filter-menu{left:auto;right:0}.business-access-box{border:1px solid #dce2ea;border-radius:12px;padding:11px;display:grid;gap:10px;background:#fbfcfe}.all-business-check{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px!important;padding:9px;border-radius:9px;background:#eef5ff;color:#1f4f8f!important}.all-business-check input{min-height:auto;margin-top:2px}.all-business-check span{display:block}.all-business-check b,.all-business-check small{display:block}.all-business-check small{font-size:10px;font-weight:500;color:#607089;margin-top:2px}.field-title{font-size:11px;font-weight:800;color:#4a5568;margin-bottom:7px}.business-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.business-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:7px!important;padding:8px;border:1px solid #e5eaf1;border-radius:8px;background:#fff;font-size:10px!important}.business-check input{min-height:auto;margin:0}.business-access-list{display:flex;flex-wrap:wrap;gap:4px}.business-access-list .chip{background:#eef5ff;color:#245da8}.business-access-list .chip.all{background:#e9f8f0;color:#157347}
@media(max-width:860px){.multi-filter-bar{align-items:stretch}.multi-filter,.advanced-filters{flex:1;min-width:calc(50% - 5px)}.multi-filter>summary,.advanced-filters>summary{width:100%}.filter-more{position:fixed;left:12px;right:12px;top:116px;width:auto;max-height:65vh;overflow:auto}.filter-more .multi-filter{min-width:calc(50% - 5px)}.business-check-grid{grid-template-columns:1fr}}
@media(max-width:520px){.multi-filter,.advanced-filters{min-width:100%}.filter-more .multi-filter{min-width:100%}.multi-filter-menu{position:fixed;left:12px!important;right:12px!important;top:130px;width:auto;max-height:65vh}}

/* v2.4 — safer remove actions + fully responsive mobile/tablet UX */
:root{--touch:44px}.danger-btn{background:var(--red);color:#fff;box-shadow:0 6px 14px rgba(217,65,65,.16)}.danger-btn:hover{background:#c73535}.icon-btn.danger-act{border-color:#ffd0d0;background:#fff7f7;color:#bd2f2f}.icon-btn.danger-act:hover{background:#fff0f0;border-color:#f2a9a9}.card-danger-btn{border:1px solid #ffd1d1;background:#fff7f7;color:#b83232;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:750;cursor:pointer}.company-card-head,.website-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.company-card-head h4,.website-card-head h4{margin:0}.company-card .remove-entity,.website-card .remove-entity{flex:0 0 auto}.manage-list{display:grid;gap:7px}.manage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:#fbfcfe}.manage-row b,.manage-row small{display:block}.manage-row b{font-size:11px}.manage-row small{font-size:9px;color:var(--muted);margin-top:2px}.remove-modal-card{text-align:center;width:min(440px,96vw)}.danger-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;background:var(--redSoft);color:var(--red);font-weight:900;font-size:22px}.remove-warning{text-align:left;background:#fff6f6;color:#943737;border:1px solid #ffd7d7;border-radius:10px;padding:10px 11px;font-size:10px;line-height:1.45;margin:12px 0}.remove-modal-card .modal-actions{justify-content:center}.user-mobile-cards{display:none}.user-mobile-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;box-shadow:var(--shadow)}.user-mobile-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.user-mobile-card .user-email{font-size:10px;color:var(--muted);margin-top:2px;word-break:break-all}.user-mobile-card .user-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}.user-mobile-card .user-stats>div{background:#f8fafc;border:1px solid #edf0f4;border-radius:9px;padding:8px}.user-mobile-card .user-stats b,.user-mobile-card .user-stats span{display:block}.user-mobile-card .user-stats b{font-size:13px}.user-mobile-card .user-stats span{font-size:8px;color:var(--muted);margin-top:2px}.nav-backdrop{display:none;position:fixed;inset:0;background:rgba(8,25,48,.42);z-index:29}.nav-backdrop.show{display:block}.sidebar-footer{display:grid!important;gap:10px!important}.system-ready{display:flex;gap:8px;align-items:center}.sidebar-logout{display:none;width:100%;min-height:40px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#dbe8f8;border-radius:9px;cursor:pointer;font-size:11px;font-weight:750}.mobile-bottom-nav{display:none}.company-manage-card{margin:12px 0}.topbar select{min-height:40px}.btn,.icon-btn,.nav-item{touch-action:manipulation}

@media(max-width:1024px){
  .sidebar{transform:translateX(-100%);transition:transform .22s ease;width:min(300px,84vw);box-shadow:18px 0 50px rgba(5,20,40,.2)}.sidebar.open{transform:none}.main{margin-left:0;width:100%}.mobile-menu{display:block;min-width:44px;min-height:44px;border-radius:10px}.mobile-menu:hover{background:#f1f5f9}.nav-backdrop.show{display:block}.sidebar-logout{display:block}.topbar{height:64px;padding:0 14px;gap:9px}.view{padding:16px;max-width:none;padding-bottom:88px}.company-wrap{min-width:0;flex:1}.company-wrap select{width:min(330px,100%);max-width:100%}.top-actions{gap:6px}.top-actions .desktop-only{display:none}.user-pill{display:none}.page-head h1{font-size:22px}.kpi-grid{grid-template-columns:repeat(3,1fr)}.quick-strip{grid-template-columns:repeat(4,1fr)}.company-cards,.website-grid{grid-template-columns:repeat(2,1fr)}.setup-grid{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr 1fr}.follow-grid{grid-template-columns:repeat(2,1fr)}.lead-table-wrap{display:none}.mobile-lead-cards{display:grid;gap:10px}.user-table-wrap{display:none}.user-mobile-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;z-index:35;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -8px 28px rgba(15,23,42,.08)}.mobile-bottom-nav button{border:0;background:transparent;color:#667085;min-height:50px;border-radius:11px;display:grid;place-items:center;align-content:center;gap:1px;cursor:pointer}.mobile-bottom-nav button span{font-size:18px;line-height:1}.mobile-bottom-nav button small{font-size:9px;font-weight:700}.mobile-bottom-nav button.active{color:var(--primary);background:var(--primarySoft)}.mobile-bottom-nav .mobile-add{color:#fff;background:var(--primary);margin:-17px 6px 0;border-radius:15px;box-shadow:0 8px 20px rgba(37,99,235,.28);min-height:58px}.modal{padding:14px}.modal-card{max-height:88vh}.row-actions{flex-wrap:wrap}.row-actions .btn{min-height:40px}.bar-row{grid-template-columns:110px 1fr 58px}
}
@media(min-width:701px) and (max-width:1024px){.detail-grid{grid-template-columns:repeat(2,1fr)}.revenue-kpis{grid-template-columns:repeat(3,1fr)}.top-actions #helpBtn{display:inline-flex}.lead-mobile .action-row{display:grid;grid-template-columns:repeat(3,1fr)}.lead-mobile .action-row .icon-btn{min-height:42px}.filters{gap:8px}.search-box{flex-basis:100%}.multi-filter,.advanced-filters{min-width:calc(33.333% - 6px)!important}.filter-more .multi-filter{min-width:calc(50% - 5px)!important}}
@media(max-width:700px){
  body{font-size:14px}.topbar{height:60px;padding:0 9px}.mobile-menu{min-width:40px;min-height:40px}.brand{padding-bottom:14px}.sidebar{padding-bottom:18px}.view{padding:12px 10px 88px}.page-head{margin-bottom:12px}.page-head h1{font-size:20px}.page-head p{font-size:11px}.top-actions #helpBtn{display:none}.top-actions .primary{min-height:40px;padding:8px 11px}.company-wrap select{font-size:12px;min-height:40px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.kpi{min-height:78px;padding:11px}.kpi .value{font-size:19px}.kpi-grid .kpi:nth-child(5){grid-column:auto}.quick-strip{grid-template-columns:repeat(2,1fr);gap:8px}.quick-card{padding:10px}.grid-two{grid-template-columns:1fr;gap:10px}.company-cards,.website-grid,.setup-grid,.follow-grid,.user-mobile-cards{grid-template-columns:1fr}.follow-summary{grid-template-columns:repeat(3,1fr);gap:7px}.summary-card{padding:10px}.summary-card b{font-size:17px}.revenue-kpis{grid-template-columns:repeat(2,1fr)}.card{padding:12px}.card-head{margin-bottom:9px}.bar-row{grid-template-columns:86px 1fr 50px;gap:7px}.bar-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filters{padding:8px;gap:7px}.search-box{min-width:100%;flex-basis:100%}.multi-filter,.advanced-filters{min-width:100%!important}.filter-more{top:108px!important;left:8px!important;right:8px!important;max-height:70vh}.multi-filter-menu{top:112px!important;left:8px!important;right:8px!important;max-height:70vh}.lead-mobile{padding:11px}.lead-mobile .meta{grid-template-columns:1fr 1fr}.lead-mobile .action-row{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.lead-mobile .action-row .icon-btn{min-height:42px;font-size:11px}.lead-mobile .action-row .danger-act{grid-column:auto}.modal{padding:0;align-items:end}.modal-card,.modal-card.wide,.detail-modal,.follow-modal-card{width:100%;max-width:none;max-height:92vh;border-radius:20px 20px 0 0;padding:18px 14px calc(18px + env(safe-area-inset-bottom))}.modal-card h2{font-size:18px}.x{right:12px;top:10px;width:40px;height:40px;border-radius:50%;background:#f4f6f8}.form-grid,.quick-follow-grid,.detail-grid,.form-fields{grid-template-columns:1fr}.modal-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}.modal-actions .btn{min-height:44px;flex:1}.voice-btn{min-height:40px}.assign-box{flex-direction:column;align-items:stretch}.manage-row{align-items:flex-start}.manage-row .card-danger-btn{min-height:38px}.user-mobile-card .action-row{display:grid;grid-template-columns:repeat(2,1fr)}.user-mobile-card .action-row button{min-height:40px}.business-check-grid{grid-template-columns:1fr}.toast{left:10px;right:10px;bottom:82px;text-align:center}.result-bar{align-items:flex-start;gap:8px}.result-bar .hint{display:none}
}
@media(max-width:390px){.top-actions .primary{font-size:0;padding:8px 10px}.top-actions .primary::after{content:'+ Lead';font-size:11px}.company-wrap select{max-width:180px}.quick-strip{grid-template-columns:1fr 1fr}.follow-summary{grid-template-columns:1fr 1fr}.follow-summary .summary-card:last-child{grid-column:1/-1}.user-mobile-card .user-stats{grid-template-columns:1fr 1fr}.mobile-bottom-nav button small{font-size:8px}}


/* v2.6 — final mobile/tablet filter sheet and responsive QA fixes */
.filter-backdrop{display:none;position:fixed;inset:0;background:rgba(8,25,48,.45);z-index:58;backdrop-filter:blur(1px)}
.filter-backdrop.show{display:block}
.mf-done{background:#e8f0ff!important;color:#1e5eb8!important}
.filter-more-head{display:none}
body.filter-sheet-open{overflow:hidden}
@media(max-width:1024px){
  .leads-table-wrap{display:none!important}
  .mobile-lead-cards{display:grid!important;gap:10px}
  .sidebar{visibility:visible}
}
@media(min-width:701px) and (max-width:1024px){
  .multi-filter-menu{position:absolute!important;left:0!important;right:auto!important;top:44px!important;bottom:auto!important;width:min(320px,70vw)!important;max-height:360px!important;z-index:66!important}
  .filter-more{position:absolute!important;left:auto!important;right:0!important;top:44px!important;bottom:auto!important;width:min(680px,calc(100vw - 32px))!important;max-height:65vh!important;overflow:auto!important;z-index:64!important}
  .filter-more .multi-filter-menu{left:0!important;right:auto!important}
}
@media(max-width:700px){
  .filter-backdrop{z-index:59}
  .multi-filter-menu,.filter-more{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;
    max-height:min(72vh,620px)!important;border-radius:20px 20px 0 0!important;border-bottom:0!important;
    box-shadow:0 -18px 48px rgba(15,23,42,.22)!important;z-index:70!important;padding:0!important;background:#fff!important;overflow:hidden!important
  }
  .multi-filter-tools,.filter-more-head{
    position:sticky;top:0;z-index:3;display:flex!important;align-items:center;justify-content:flex-end;gap:7px;
    padding:12px 14px;border-bottom:1px solid #e8edf4;background:#fff;margin:0!important;min-height:52px
  }
  .filter-more-head{justify-content:space-between}
  .filter-more-head b{font-size:14px;color:#172033}
  .filter-more-head button{border:0;background:#e8f0ff;color:#1e5eb8;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:800}
  .multi-filter-tools button{min-height:34px;padding:7px 10px;font-size:11px}
  .multi-filter-options{overflow:auto;overscroll-behavior:contain;padding:6px 10px calc(18px + env(safe-area-inset-bottom));max-height:calc(min(72vh,620px) - 52px)}
  .multi-filter-option{min-height:44px;padding:10px 9px;font-size:12px;border-bottom:1px solid #f1f3f6}
  .multi-filter-option:last-child{border-bottom:0}
  .multi-filter-option input{width:18px;height:18px;flex:0 0 auto}
  .filter-more{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;overflow:auto!important}
  .filter-more>.multi-filter{margin:8px 12px;min-width:calc(100% - 24px)!important}
  .filter-more>.multi-filter>summary{min-height:44px}
  .filter-more .multi-filter-menu{z-index:74!important;margin:0!important}
  .mobile-bottom-nav{z-index:35!important}
  .filters.card{overflow:visible}
  .result-bar{position:relative;z-index:1}
  .lead-mobile{overflow:hidden}
  .lead-mobile-head{align-items:flex-start}
  .lead-mobile .lead-link{min-width:0;text-align:left}
  .lead-mobile .lead-name,.lead-mobile .lead-phone{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:62vw}
}
@media(max-width:390px){
  .multi-filter-tools{padding:10px}
  .multi-filter-options{padding-left:8px;padding-right:8px}
  .lead-mobile .lead-name,.lead-mobile .lead-phone{max-width:56vw}
}

.mf-title{display:none;font-size:13px;color:#172033;margin-right:auto}.multi-filter-tools .mf-title+button{margin-left:auto}@media(max-width:700px){.mf-title{display:block}.multi-filter-tools{justify-content:flex-end}.multi-filter-tools .mf-title{margin-right:auto}}

.system-ready.offline .health-dot{background:#e6a018;box-shadow:0 0 0 4px rgba(230,160,24,.12)}.system-ready.live .health-dot{background:#25c277;box-shadow:0 0 0 4px rgba(37,194,119,.1)}

/* v2.9 — single mobile lead view + connector download */
.plugin-guide-grid{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);background:#f8fbff;border-radius:12px;margin:12px 0}.plugin-download{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.plugin-version{font-size:11px;color:var(--muted);font-weight:700}.connector-steps{margin:14px 0}.setup-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
@media(max-width:1024px){
  .leads-table-wrap{display:block!important;overflow:auto!important}
  .mobile-lead-cards{display:none!important}
}
@media(max-width:700px){
  .plugin-guide-grid{align-items:stretch;flex-direction:column}.plugin-download{min-height:44px}.plugin-version{text-align:center}
  .leads-table-wrap{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
  .lead-table{display:block;width:100%;min-width:0!important}
  .lead-table thead{display:none!important}
  .lead-table tbody{display:grid;gap:10px;width:100%}
  .lead-table tr.lead-row{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;width:100%}
  .lead-table tr.lead-row:hover{background:#fff}
  .lead-table tr.lead-row td{display:block!important;min-width:0;white-space:normal!important;border:0!important;padding:9px 12px;color:var(--text)}
  .lead-table tr.lead-row td::before{content:attr(data-label);display:block;font-size:9px;line-height:1.2;color:var(--muted);font-weight:800;margin-bottom:3px;text-transform:none}
  .lead-table tr.lead-row .lead-cell{grid-column:1/-1;padding:12px;border-bottom:1px solid #edf1f5!important;background:#fbfdff}
  .lead-table tr.lead-row .lead-cell::before{display:none}
  .lead-table tr.lead-row .lead-link{width:100%;text-align:left;min-width:0}
  .lead-table tr.lead-row .lead-name,.lead-table tr.lead-row .lead-phone{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lead-table tr.lead-row .website-cell,.lead-table tr.lead-row .email-cell{grid-column:1/-1}
  .lead-table tr.lead-row .actions-cell{grid-column:1/-1;padding:10px 12px 12px;border-top:1px solid #edf1f5!important}
  .lead-table tr.lead-row .actions-cell::before{display:none}
  .lead-table tr.lead-row .actions-cell .action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .lead-table tr.lead-row .actions-cell .icon-btn{min-height:42px;font-size:11px;width:100%}
  .lead-table tr.lead-row .fmatrix{display:none!important}
}


/* v3.1 — large-data performance, fixed lead columns, searchable filters */
.leads-table-wrap{overflow:auto;contain:layout paint;max-width:100%}
.lead-table{table-layout:fixed;min-width:1540px;width:100%}
.lead-table th,.lead-table td{padding:8px 9px;height:58px;max-height:58px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-table th:nth-child(1),.lead-table td:nth-child(1){width:155px}
.lead-table th:nth-child(2),.lead-table td:nth-child(2){width:112px}
.lead-table th:nth-child(3),.lead-table td:nth-child(3){width:170px}
.lead-table th:nth-child(4),.lead-table td:nth-child(4){width:145px}
.lead-table th:nth-child(5),.lead-table td:nth-child(5){width:155px}
.lead-table th:nth-child(6),.lead-table td:nth-child(6){width:210px}
.lead-table th:nth-child(7),.lead-table td:nth-child(7){width:145px}
.lead-table th:nth-child(8),.lead-table td:nth-child(8){width:125px}
.lead-table th:nth-child(9),.lead-table td:nth-child(9){width:125px}
.lead-table th:nth-child(10),.lead-table td:nth-child(10){width:132px}
.lead-table th:last-child,.lead-table td:last-child{width:370px}
.truncate-cell{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-table td.truncate-cell{display:table-cell}
.lead-table .action-row{flex-wrap:nowrap;overflow:hidden}
.lead-table .action-row .icon-btn{flex:0 0 auto}
.lead-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 2px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);font-size:11px;color:var(--muted)}
.page-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page-controls label{display:flex;align-items:center;gap:6px}.page-controls select{min-height:34px;padding:5px 8px}.page-controls .btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.mf-search{display:flex;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid #edf1f5;background:#fff}
.mf-search span{color:#8390a4;font-size:15px}.mf-search input{width:100%;min-height:34px;padding:6px 8px;font-size:12px;border-radius:8px}
.multi-filter-option small{margin-left:auto;color:#8b96a8;font-size:10px;font-weight:700;flex:0 0 auto}
.multi-filter-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:701px){.multi-filter-menu{min-width:300px}.mf-search{position:sticky;top:0;z-index:3}.multi-filter-tools{position:sticky;top:51px;z-index:3;background:#fff}}
@media(max-width:700px){
  .lead-pagination{align-items:stretch;flex-direction:column;font-size:11px}.page-controls{justify-content:space-between}.page-summary{text-align:center}
  .mf-search{position:sticky;top:52px;z-index:4;padding:8px 12px}.mf-search input{font-size:13px!important;min-height:38px}
  .multi-filter-tools{z-index:5!important}
  .multi-filter-options{padding-top:4px!important}
  .multi-filter-option{font-size:12px!important;line-height:1.28!important;min-height:42px!important;padding:8px 10px!important;align-items:center!important}
  .multi-filter-option span{font-size:12px!important;line-height:1.28!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
  .multi-filter-option small{font-size:9px!important}
  .mf-title{font-size:13px!important;max-width:35vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lead-table tr.lead-row td{height:auto;max-height:none}
}

/* v3.2.0 assignment + stability polish */
.assign-existing-check{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:10px;border:1px solid #dbe7f6;background:#f7fbff;border-radius:11px;padding:11px!important;color:#334155!important}.assign-existing-check input{width:18px;height:18px;min-height:18px;margin-top:2px}.assign-existing-check span{display:block}.assign-existing-check b,.assign-existing-check small{display:block}.assign-existing-check b{font-size:11px;color:#1f3d68}.assign-existing-check small{font-size:10px;color:#64748b;font-weight:500;line-height:1.45;margin-top:3px}.user-actions{flex-wrap:wrap}.user-actions .icon-btn{white-space:nowrap}.team-row{display:grid;grid-template-columns:minmax(120px,1.5fr) 90px 80px 100px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eef2f7;font-size:11px}.team-row:last-child{border-bottom:0}.team-row>b{text-align:right}.live-update-soft{transition:opacity .12s ease}.quick-card.admin-only[style*="display: none"]{display:none!important}
@media(max-width:1200px){.quick-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:860px){.quick-strip{grid-template-columns:repeat(2,1fr)}.team-row{grid-template-columns:1fr 1fr}.team-row>b{text-align:left}}


/* v3.3 saved lead filters */
.save-filter-btn{white-space:nowrap}
.saved-filter-strip{display:flex;align-items:center;gap:9px;margin:8px 0 4px;min-height:34px;overflow:hidden}
.saved-filter-title{font-size:10px;font-weight:800;color:#64748b;white-space:nowrap;text-transform:uppercase;letter-spacing:.03em}
.saved-filter-chips{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 4px;min-width:0}
.saved-filter-chip{display:inline-flex;align-items:center;border:1px solid #dce6f5;background:#fff;border-radius:999px;overflow:hidden;flex:0 0 auto;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.saved-filter-apply,.saved-filter-delete{border:0;background:transparent;cursor:pointer;font-weight:750;color:#27466f}
.saved-filter-apply{padding:7px 8px 7px 11px;font-size:10px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.saved-filter-apply:hover{background:#eef5ff;color:#1557b0}
.saved-filter-delete{width:28px;height:28px;color:#9aa4b2;font-size:15px;line-height:1}
.saved-filter-delete:hover{background:#fff0f0;color:#c62828}
.saved-filter-empty{font-size:10px;color:#98a2b3}
.saved-filter-preview{margin-top:8px;padding:10px 11px;border-radius:9px;background:#f7f9fc;color:#556274;font-size:11px;line-height:1.45;min-height:18px}
@media(max-width:700px){
  .save-filter-btn{width:100%;min-height:40px}
  .saved-filter-strip{margin:7px 0 3px;align-items:flex-start;gap:7px}
  .saved-filter-title{padding-top:8px;font-size:9px}
  .saved-filter-chips{padding-bottom:5px}
  .saved-filter-apply{font-size:11px;max-width:150px;padding:7px 8px 7px 10px}
  .saved-filter-delete{width:30px;height:30px}
}

/* v3.4.0 dynamic saved filters + Delhi Focus quick filter + lead date */
.focus-filter-btn{min-height:38px;white-space:nowrap;border-color:#cbdcf6;color:#235b9f;background:#f8fbff}
.focus-filter-btn.active{background:#e8f3ff;border-color:#4b93e6;color:#0d5eb3;box-shadow:inset 0 0 0 1px #4b93e6}
.lead-date{font-size:11px;font-weight:750;color:#334155;white-space:nowrap}
.date-cell{text-align:left}
@media(max-width:700px){.focus-filter-btn{width:100%;min-height:44px;font-size:12px}.lead-table tr.lead-row .date-cell{grid-column:auto}.lead-date{font-size:11px}}


/* v3.4.1 — stable multi-select filter UI + consistent sizing */
.multi-filter-menu{
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  width:320px;
  max-width:min(360px,calc(100vw - 24px));
  max-height:380px;
}
.multi-filter-tools{
  position:relative!important;
  top:auto!important;
  z-index:4!important;
  flex:0 0 auto;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  margin:0!important;
  padding:9px 10px!important;
  background:#fff!important;
  border-bottom:1px solid #e9eef5!important;
}
.mf-title{
  display:block!important;
  margin-right:auto!important;
  min-width:0;
  max-width:125px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px!important;
  line-height:1.2;
  font-weight:800;
  color:#172033;
}
.multi-filter-tools button{
  flex:0 0 auto;
  min-height:30px;
  padding:5px 8px!important;
  font-size:10px!important;
  border-radius:8px!important;
}
.mf-search{
  position:relative!important;
  top:auto!important;
  z-index:3!important;
  flex:0 0 auto;
  padding:8px 10px!important;
  background:#f9fbfe!important;
  border-bottom:1px solid #e9eef5!important;
}
.mf-search input{min-height:34px!important;font-size:11px!important}
.multi-filter-options{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  padding:6px 8px 8px!important;
}
.multi-filter-option{
  width:100%;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:7px 8px!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.multi-filter-option input{width:16px!important;height:16px!important;flex:0 0 16px!important;margin:0!important}
.multi-filter-option span{
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.multi-filter-option small{font-size:9px!important;flex:0 0 auto!important}

@media(min-width:701px) and (max-width:1024px){
  .multi-filter-menu{width:min(320px,calc(100vw - 32px))!important;max-height:380px!important}
}
@media(max-width:700px){
  .multi-filter-menu{
    width:100%!important;
    max-width:none!important;
    max-height:min(68vh,540px)!important;
  }
  .multi-filter-tools{min-height:50px;padding:9px 10px!important;gap:5px!important}
  .mf-title{max-width:92px;font-size:12px!important}
  .multi-filter-tools button{min-height:32px!important;padding:5px 8px!important;font-size:10px!important}
  .mf-search{padding:7px 10px!important}
  .mf-search input{min-height:36px!important;font-size:12px!important}
  .multi-filter-options{padding:4px 8px calc(14px + env(safe-area-inset-bottom))!important}
  .multi-filter-option{min-height:38px!important;padding:7px 8px!important;font-size:11px!important;border-bottom:1px solid #f2f4f7;border-radius:0!important}
  .multi-filter-option span{font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important}
  .multi-filter-option small{font-size:9px!important}
}


/* v3.5 — bulk assignment, auto routing, ads integrations */
.select-cell{width:42px;min-width:42px;max-width:42px;text-align:center!important}.select-cell input{width:16px;height:16px;accent-color:var(--primary);cursor:pointer}
.bulk-assign-bar{position:sticky;top:76px;z-index:14;margin:10px 0;padding:10px 12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 8px 20px rgba(37,99,235,.08)}.bulk-assign-bar[hidden]{display:none!important}.bulk-assign-bar>div:first-child{display:grid;gap:2px}.bulk-assign-bar>div:first-child span{font-size:10px;color:var(--muted)}.bulk-assign-controls{display:flex;align-items:center;gap:7px}.bulk-assign-controls select{min-width:190px}
.auto-assign-card{margin-top:14px}.auto-rule-list{display:grid;gap:8px}.auto-rule-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(180px,2fr) auto;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:10px}.auto-rule-row>div:first-child{display:grid;gap:2px}.auto-rule-row>div:first-child span{font-size:10px;color:var(--muted)}.auto-rule-row>div:last-child{display:flex;align-items:center;gap:6px}.auto-rule-users{display:flex;gap:5px;flex-wrap:wrap}.auto-rule-users span{font-size:9px;background:#f1f5f9;border-radius:999px;padding:4px 7px}
.ads-help-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.ads-help-strip>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:3px}.ads-help-strip span{font-size:10px;color:var(--muted)}.ads-integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ads-integration-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}.ads-card-head{display:flex;align-items:center;gap:10px}.ads-card-head>div{display:grid;gap:2px;flex:1;min-width:0}.ads-card-head small{color:var(--muted);font-size:10px}.ads-provider{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-weight:900}.ads-provider.google_ads{background:#eef4ff;color:#2563eb}.ads-provider.meta_ads{background:#f0f5ff;color:#1d4ed8}.ads-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.ads-stats>div{background:#f8fafc;border:1px solid var(--line);border-radius:9px;padding:8px;min-width:0}.ads-stats b,.ads-stats span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ads-stats span{font-size:9px;color:var(--muted);margin-top:2px}.ads-error{background:#fff1f2;color:#b42318;border-radius:8px;padding:8px;font-size:10px;margin-bottom:9px}.ads-quick-btn.active{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.meta-fields{grid-template-columns:1fr 1fr;gap:10px}.credential-grid input{font-size:11px}
@media(max-width:860px){.bulk-assign-bar{top:68px;align-items:stretch;flex-direction:column}.bulk-assign-controls{display:grid;grid-template-columns:1fr 1fr}.bulk-assign-controls select{grid-column:1/-1;min-width:0}.ads-integration-grid,.ads-help-strip{grid-template-columns:1fr}.auto-rule-row{grid-template-columns:1fr}.auto-rule-row>div:last-child{flex-wrap:wrap}.meta-fields{grid-template-columns:1fr}}


/* v3.6.0 — multi-business auto assignment + unified integrations */
.integration-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.integration-guide-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-width:0}
.integration-guide-card>div{display:grid;gap:3px;min-width:0}.integration-guide-card small{font-size:10px;color:var(--muted);line-height:1.35}.integration-logo{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-weight:900;background:#eef4ff;color:#2563eb}
.integration-logo.meta_ads{background:#f0f5ff;color:#1d4ed8}.integration-logo.gmb{background:#eefaf4;color:#147d64}.integration-logo.justdial{background:#fff7e8;color:#9a6700}.integration-logo.sulekha{background:#fff1f2;color:#b42318}.integration-logo.custom{background:#f4f4f5;color:#475569}
.integration-research-note{margin:0 0 12px;background:#fffaf0;border:1px solid #f2dfb0;color:#6b4f00;border-radius:12px;padding:10px 12px;font-size:10px;line-height:1.45}
.ads-provider.gmb{background:#eefaf4;color:#147d64}.ads-provider.justdial{background:#fff7e8;color:#9a6700}.ads-provider.sulekha{background:#fff1f2;color:#b42318}.ads-provider.custom{background:#f4f4f5;color:#475569}
.rule-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.rule-picker-grid .span-2{grid-column:1/-1}
.rule-multi-select{position:relative}.rule-multi-select>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:10px 12px;border:1px solid #dce2ea;background:#fff;border-radius:10px;color:#344054;font-size:11px;font-weight:750}.rule-multi-select>summary::-webkit-details-marker{display:none}.rule-multi-select[open]>summary{border-color:#8bb6f4;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.rule-filter-menu{position:absolute;z-index:90;top:50px;left:0;right:0;max-height:320px;overflow:auto;background:#fff;border:1px solid #dbe2ec;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:8px}
.rule-user-list{display:grid;gap:4px}.rule-user-option{display:flex;gap:9px;align-items:flex-start;padding:8px;border-radius:8px;border:1px solid #edf0f4;background:#fff}.rule-user-option:hover{background:#f8fafc}.rule-user-option input{min-height:auto;margin-top:2px}.rule-user-option span{display:grid;gap:2px}.rule-user-option small{font-size:9px;color:var(--muted);font-weight:500}.rule-user-option.disabled{opacity:.55;background:#f8fafc}.rule-user-option.disabled:hover{background:#f8fafc}
.rule-eligibility-note{font-size:9px;color:#64748b;background:#f8fafc;border:1px solid #edf0f4;border-radius:8px;padding:8px;margin:-2px 0 10px}
@media(max-width:1000px){.integration-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.integration-catalog{grid-template-columns:1fr}.integration-guide-card{grid-template-columns:auto 1fr}.integration-guide-card .btn{grid-column:1/-1}.rule-picker-grid{grid-template-columns:1fr}.rule-picker-grid .span-2{grid-column:auto}.rule-filter-menu{position:fixed;left:10px;right:10px;top:auto;bottom:78px;max-height:64vh}.rule-multi-select>summary{font-size:12px}}

/* v3.7.0 — telecaller mobile dashboard + verified follow-up history */
.mobile-tele-dashboard{display:none}
.tele-table-card{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:10px}
.tele-table-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid #edf1f5}
.tele-table-head h3{margin:0;font-size:13px}.tele-table-head>span{font-size:10px;color:var(--muted)}
.tele-summary-table{width:100%;border-collapse:collapse}.tele-summary-table th,.tele-summary-table td{padding:9px 12px;border-bottom:1px solid #f0f2f5;font-size:12px}.tele-summary-table tr:last-child th,.tele-summary-table tr:last-child td{border-bottom:0}.tele-summary-table th{text-align:left;color:#475467;font-weight:650}.tele-summary-table td{text-align:right;font-weight:850;color:#101828}
.tele-work-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px 10px;border-bottom:1px solid #f0f2f5}.tele-work-row:last-child{border-bottom:0}.tele-lead-link{border:0;background:none;text-align:left;padding:0;min-width:0;cursor:pointer}.tele-lead-link b,.tele-lead-link small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tele-lead-link b{font-size:12px;color:#101828}.tele-lead-link small{font-size:10px;color:var(--muted);margin-top:2px}.tele-due{font-size:10px;color:#475467;white-space:nowrap}.tele-due.over{color:#b42318;font-weight:800}.tele-follow-btn{border:1px solid #c7d7fe;background:#eef4ff;color:#155eef;border-radius:8px;padding:7px 8px;font-size:10px;font-weight:800;cursor:pointer}
.tele-history-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid #f0f2f5;background:#fff;padding:9px 11px;text-align:left;cursor:pointer}.tele-history-row:last-child{border-bottom:0}.tele-history-row span:first-child{min-width:0}.tele-history-row b,.tele-history-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tele-history-row b{font-size:12px}.tele-history-row small{font-size:10px;color:var(--muted);margin-top:2px}.tele-history-row>span:last-child{font-size:10px;color:#667085;white-space:nowrap}.compact-empty{padding:14px!important;font-size:11px!important}
.follow-section-card{margin-top:12px}.follow-history-table-wrap{overflow:auto}.follow-history-table{width:100%;table-layout:fixed}.follow-history-table th:nth-child(1){width:18%}.follow-history-table th:nth-child(2){width:13%}.follow-history-table th:nth-child(3){width:12%}.follow-history-table th:nth-child(4){width:16%}.follow-history-table th:nth-child(5){width:27%}.follow-history-table th:nth-child(6){width:14%}.lead-link.compact{font-size:11px}

@media(max-width:700px){
  body.telecaller-mode #dashboardView>.kpi-grid,
  body.telecaller-mode #dashboardView>.quick-strip,
  body.telecaller-mode #dashboardView>.grid-two,
  body.telecaller-mode #dashboardView>article.card{display:none!important}
  body.telecaller-mode #dashboardView .mobile-tele-dashboard{display:block}
  body.telecaller-mode #dashboardView .page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
  body.telecaller-mode #dashboardView .page-head>div{min-width:0}
  body.telecaller-mode #dashboardView .page-head h1{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.telecaller-mode #dashboardView .page-head p{display:none}
  body.telecaller-mode #dashboardRange{width:auto;min-width:92px;font-size:11px;min-height:36px}
  .tele-table-card{margin-bottom:8px;border-radius:11px;box-shadow:0 4px 14px rgba(16,24,40,.05)}
  .tele-table-head{padding:9px 10px}.tele-table-head h3{font-size:12px}
  .tele-summary-table th,.tele-summary-table td{padding:8px 10px;font-size:11px}
  .tele-work-row{grid-template-columns:minmax(0,1fr) auto;padding:8px 9px}.tele-due{grid-column:2;grid-row:1}.tele-follow-btn{grid-column:1/-1;width:100%;padding:7px}
  .follow-section-card{padding:10px}.follow-history-table{min-width:620px}.follow-history-table th,.follow-history-table td{font-size:10px;padding:8px}
  #followupsView .follow-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
  #followupsView .summary-card{padding:8px 5px}#followupsView .summary-card b{font-size:15px}#followupsView .summary-card span{font-size:8px}
}
.follow-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:520px){#followupsView .follow-summary .summary-card:last-child{grid-column:auto}}


/* v3.8.0 — compact mobile lead table for telecallers */
.action-mobile-label,.mobile-table-meta{display:none}
@media(max-width:700px){
  /* Keep leads in a real table on phones so multiple leads are visible at once. */
  .leads-table-wrap{display:block!important;overflow-x:hidden!important;overflow-y:visible!important;padding:0!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:var(--shadow)!important;contain:none!important}
  .lead-table{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:10px!important}
  .lead-table thead{display:table-header-group!important}
  .lead-table tbody{display:table-row-group!important}
  .lead-table tr.lead-row{display:table-row!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:auto!important}
  .lead-table tr.lead-row:hover{background:#f8fbff!important}
  .lead-table th,.lead-table tr.lead-row td{display:table-cell!important;height:62px!important;max-height:62px!important;padding:7px 6px!important;border-bottom:1px solid #e9eef5!important;vertical-align:middle!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .lead-table th{height:36px!important;max-height:36px!important;padding:7px 6px!important;font-size:9px!important;line-height:1.15!important;background:#f8fafc!important;color:#667085!important;position:sticky!important;top:0!important;z-index:3!important}
  .lead-table tr.lead-row td::before{display:none!important;content:none!important}

  /* Mobile shows only operational columns. Full data remains in Details. */
  .lead-table .select-cell,.lead-table .date-cell,.lead-table .email-cell,.lead-table .qualification-cell,.lead-table .form-cell,.lead-table .website-cell,.lead-table .location-cell,.lead-table .next-cell,.lead-table .fmatrix{display:none!important}
  .lead-table .lead-cell{width:31%!important;padding-left:8px!important}
  .lead-table .course-cell{width:27%!important}
  .lead-table .stage-cell{width:20%!important}
  .lead-table .actions-cell{width:22%!important;padding-right:5px!important}

  .lead-table .lead-link{display:block!important;width:100%!important;min-width:0!important;text-align:left!important;padding:0!important}
  .lead-table .lead-name{font-size:11px!important;font-weight:850!important;line-height:1.15!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .lead-table .lead-phone{font-size:9px!important;line-height:1.2!important;margin-top:2px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .lead-table .course-cell{font-size:10px!important;line-height:1.2!important}
  .lead-table .course-main{display:block;max-height:24px;overflow:hidden;font-weight:700;color:#263449}
  .lead-table .status{font-size:8px!important;padding:3px 5px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lead-table .desktop-owner{display:none!important}
  .mobile-table-meta{display:block!important;margin-top:3px;font-size:8px!important;line-height:1.15!important;color:#7a8699!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-weight:600!important}

  .lead-table .actions-cell .quick-actions{display:grid!important;grid-template-columns:repeat(2,30px)!important;grid-auto-rows:28px!important;gap:4px!important;justify-content:center!important;align-content:center!important;overflow:visible!important}
  .lead-table .actions-cell .quick-actions .icon-btn{display:grid!important;place-items:center!important;width:30px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:7px!important;font-size:8px!important;line-height:1!important}
  .lead-table .actions-cell .quick-actions .mobile-secondary-action{display:none!important}
  .action-desktop-label{display:none!important}
  .action-mobile-label{display:inline!important;font-size:9px!important;font-weight:850!important;letter-spacing:-.2px}

  /* Keep the lead list dense: pagination remains below the table. */
  .lead-pagination{padding:8px!important;gap:6px!important;flex-direction:column!important;align-items:stretch!important;font-size:9px!important}
  .page-summary{text-align:center}
  .page-controls{justify-content:center!important;gap:5px!important}
  .page-controls .btn{padding:6px 8px!important;font-size:9px!important}
  .page-controls select{min-height:30px!important;font-size:9px!important;padding:4px 6px!important}
}
@media(max-width:390px){
  .lead-table .lead-cell{width:32%!important}
  .lead-table .course-cell{width:26%!important}
  .lead-table .stage-cell{width:20%!important}
  .lead-table .actions-cell{width:22%!important}
  .lead-table th,.lead-table tr.lead-row td{padding-left:5px!important;padding-right:5px!important}
}

/* v3.9.0 — telecaller follow-up visibility, work queue actions, activity progression */
.lead-table{min-width:1660px}
.lead-table .follow-cell{width:132px}
.follow-progress{display:flex;align-items:center;gap:6px;min-width:0}
.follow-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:24px;padding:0 7px;border-radius:999px;background:#eaf2ff;color:#155eef;border:1px solid #c9dcff;font-size:10px;font-weight:850;white-space:nowrap;flex:0 0 auto}
.follow-last{font-size:9px;color:#475467;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.follow-none{font-size:9px!important;white-space:nowrap}
.mobile-follow-state{display:none}
.detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-section-head h3{margin:0}
.timeline-row>i{width:34px;min-width:34px;height:28px;border-radius:999px;display:grid;place-items:center;background:#eaf2ff;color:#155eef;font-size:9px;font-weight:900;font-style:normal;border:1px solid #c9dcff}
.follow-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.follow-status-line{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:7px 0 9px;padding:7px 8px;border-radius:8px;background:#f8fafc;color:#475467;font-size:10px}
.follow-card.overdue .follow-status-line{background:#fff5f4;color:#b42318}
.follow-card .quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible}
.follow-card .quick-actions .icon-btn{width:100%;min-height:34px;font-size:9px;justify-content:center}
.follow-history-table{min-width:1120px}
.follow-history-table th:nth-child(1){width:150px}.follow-history-table th:nth-child(2){width:55px}.follow-history-table th:nth-child(3){width:95px}.follow-history-table th:nth-child(4){width:135px}.follow-history-table th:nth-child(5){width:150px}.follow-history-table th:nth-child(6){width:230px}.follow-history-table th:nth-child(7){width:110px}.follow-history-table th:nth-child(8){width:290px}
.follow-history-table td{vertical-align:middle}.follow-history-table .lead-link.compact b,.follow-history-table .lead-link.compact small{display:block;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.follow-history-table .lead-link.compact small{font-size:9px;color:var(--muted);margin-top:2px}
.table-subline{display:block;margin-top:3px;font-size:9px;color:#7a8699;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.follow-actions-cell .quick-actions{display:flex;gap:4px;flex-wrap:nowrap;overflow:hidden}.follow-actions-cell .quick-actions .icon-btn{padding:6px 7px;font-size:8px;min-height:30px;white-space:nowrap}.follow-actions-cell .action-mobile-label{display:none!important}.follow-actions-cell .action-desktop-label{display:inline!important}
.follow-summary{grid-template-columns:repeat(5,minmax(0,1fr))}

@media(max-width:700px){
  .lead-table .follow-cell{display:none!important}
  .mobile-follow-state{display:block!important;margin-top:3px;font-size:8px!important;line-height:1.15;color:#155eef;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #followupsView .follow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #followupsView .follow-summary .summary-card:last-child{grid-column:1/-1}
  .follow-card{padding:9px!important}.follow-card .follow-status-line{display:grid;gap:3px;font-size:9px}.follow-card .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.follow-card .quick-actions .icon-btn{min-height:32px;font-size:8px;padding:5px 4px}
  .follow-history-table{min-width:1020px}.follow-history-table th,.follow-history-table td{font-size:9px!important;padding:7px 6px!important}
  .follow-history-table-wrap{border:1px solid #edf1f5;border-radius:10px;overflow:auto;-webkit-overflow-scrolling:touch}
}

/* v3.9.1 — mobile horizontal table scrolling for Leads + Follow-up History */
@media(max-width:700px){
  /* Leads: keep a compact real table, but allow deliberate left/right swipe. */
  .leads-table-wrap{
    display:block!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
    scrollbar-color:#94a3b8 #eef2f7!important;
    padding:0!important;
    background:#fff!important;
    border:1px solid var(--line)!important;
    border-radius:12px!important;
    box-shadow:var(--shadow)!important;
    contain:none!important;
  }
  .leads-table-wrap::-webkit-scrollbar,
  .follow-history-table-wrap::-webkit-scrollbar{height:7px!important}
  .leads-table-wrap::-webkit-scrollbar-track,
  .follow-history-table-wrap::-webkit-scrollbar-track{background:#eef2f7!important;border-radius:999px!important}
  .leads-table-wrap::-webkit-scrollbar-thumb,
  .follow-history-table-wrap::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:999px!important}

  /* Only operational columns remain on phone, but they now have enough width to be readable. */
  .lead-table{
    width:720px!important;
    min-width:720px!important;
    max-width:none!important;
    table-layout:fixed!important;
  }
  .lead-table .lead-cell{width:190px!important;min-width:190px!important}
  .lead-table .course-cell{width:180px!important;min-width:180px!important}
  .lead-table .stage-cell{width:145px!important;min-width:145px!important}
  .lead-table .actions-cell{width:205px!important;min-width:205px!important;padding-left:8px!important;padding-right:8px!important}
  .lead-table .actions-cell .quick-actions{
    display:grid!important;
    grid-template-columns:repeat(4,42px)!important;
    grid-auto-rows:32px!important;
    gap:5px!important;
    justify-content:start!important;
    align-content:center!important;
    overflow:visible!important;
  }
  .lead-table .actions-cell .quick-actions .icon-btn{
    width:42px!important;
    height:32px!important;
    min-height:32px!important;
    padding:0!important;
    font-size:9px!important;
  }

  /* Follow-up history: same swipe behaviour; Actions remain reachable at the far right. */
  .follow-history-table-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
    scrollbar-color:#94a3b8 #eef2f7!important;
    border:1px solid #edf1f5!important;
    border-radius:10px!important;
  }
  .follow-history-table{
    width:1050px!important;
    min-width:1050px!important;
    max-width:none!important;
    table-layout:fixed!important;
  }
  .follow-history-table th:nth-child(1){width:145px!important}
  .follow-history-table th:nth-child(2){width:55px!important}
  .follow-history-table th:nth-child(3){width:95px!important}
  .follow-history-table th:nth-child(4){width:130px!important}
  .follow-history-table th:nth-child(5){width:145px!important}
  .follow-history-table th:nth-child(6){width:190px!important}
  .follow-history-table th:nth-child(7){width:100px!important}
  .follow-history-table th:nth-child(8){width:190px!important}
  .follow-actions-cell .quick-actions{
    display:grid!important;
    grid-template-columns:repeat(4,40px)!important;
    gap:4px!important;
    overflow:visible!important;
    justify-content:start!important;
  }
  .follow-actions-cell .quick-actions .icon-btn{
    width:40px!important;
    min-width:40px!important;
    min-height:31px!important;
    padding:0!important;
  }
  .follow-actions-cell .action-desktop-label{display:none!important}
  .follow-actions-cell .action-mobile-label{display:inline!important}
}

/* v3.10.1 — full-table mobile horizontal scroll; no frozen columns */
.mobile-filter-toggle,.mobile-leads-shell,.mobile-follow-history-shell,.mobile-follow-card-actions{display:none}
.mobile-action-sheet{max-width:430px}
.mobile-action-head{padding:4px 2px 12px;border-bottom:1px solid #edf1f5;margin-bottom:12px}.mobile-action-head h2{margin:3px 0 2px;font-size:20px}.mobile-action-head p{margin:0;color:var(--muted);font-size:11px}.mobile-action-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:9px;color:#667085;font-weight:850}
.mobile-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mobile-sheet-btn{border:1px solid #dce4ef;background:#fff;border-radius:12px;min-height:72px;padding:11px;display:grid;place-items:center;gap:5px;color:#243047;font-weight:800;cursor:pointer}.mobile-sheet-btn b{font-size:16px}.mobile-sheet-btn span{font-size:11px}.mobile-sheet-btn.primary{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.mobile-sheet-btn.wa{background:#effcf4;border-color:#b7e4c7;color:#137a39}.mobile-sheet-btn.success{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.mobile-sheet-btn.danger{background:#fff5f5;border-color:#fecaca;color:#b42318}

@media(max-width:700px){
  html,body{overflow-x:hidden!important}
  .view{padding:10px 10px 86px!important}
  .topbar{padding:0 9px!important}
  .company-wrap select{font-size:12px!important;min-height:42px!important}
  #addLeadBtn{min-height:42px!important;padding:8px 11px!important;font-size:11px!important}

  /* Telecaller dashboard: dense and work-first. */
  body.telecaller-mode #dashboardView{padding-top:9px!important}
  body.telecaller-mode #dashboardView .page-head{margin-bottom:8px!important}
  body.telecaller-mode #dashboardView .mobile-tele-dashboard{display:block!important}
  .tele-table-card{margin-bottom:8px!important;border-radius:12px!important}
  .tele-table-head{padding:8px 10px!important}.tele-table-head h3{font-size:11px!important}.tele-table-head span,.tele-table-head .link-btn{font-size:9px!important}
  .tele-summary-table{display:grid!important;grid-template-columns:1fr 1fr!important}.tele-summary-table tbody{display:contents!important}.tele-summary-table tr{display:grid!important;grid-template-columns:1fr auto!important;min-height:42px;border-bottom:1px solid #f0f2f5}.tele-summary-table th,.tele-summary-table td{padding:7px 9px!important;font-size:10px!important;border:0!important}.tele-summary-table td{font-size:13px!important}
  .tele-work-row{padding:8px 9px!important;gap:6px!important}.tele-lead-link b{font-size:10px!important}.tele-lead-link small,.tele-due{font-size:8px!important}.tele-follow-btn{min-height:30px!important;font-size:9px!important}

  /* Mobile filters stay out of the way until explicitly opened. */
  #leadsView .page-head{margin-bottom:7px!important}
  body.telecaller-mode #leadsView .page-head .row-actions{display:none!important}
  .multi-filter-bar{padding:9px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;border-radius:12px!important;margin-bottom:7px!important}
  .multi-filter-bar .search-box{grid-column:1/2!important;min-width:0!important;flex-basis:auto!important;margin:0!important}
  .multi-filter-bar .search-box input{min-height:40px!important;font-size:12px!important}
  .mobile-filter-toggle{display:flex!important;grid-column:2/3;align-items:center;gap:6px;justify-content:center;min-width:84px;min-height:40px;border:1px solid #dce4ef;background:#f8fafc;border-radius:10px;color:#344054;font-size:11px;font-weight:850;padding:7px 9px;cursor:pointer}
  .mobile-filter-toggle b{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:999px;background:#2563eb;color:#fff;font-size:9px;padding:0 4px}.mobile-filter-toggle b[hidden]{display:none!important}.mobile-filter-toggle i{font-style:normal;color:#64748b;transition:.15s}.multi-filter-bar.mobile-open .mobile-filter-toggle i{transform:rotate(180deg)}
  .multi-filter-bar:not(.mobile-open)>.multi-filter,.multi-filter-bar:not(.mobile-open)>.focus-filter-btn,.multi-filter-bar:not(.mobile-open)>.ads-quick-btn,.multi-filter-bar:not(.mobile-open)>.advanced-filters,.multi-filter-bar:not(.mobile-open)>.clear-btn,.multi-filter-bar:not(.mobile-open)>.save-filter-btn{display:none!important}
  .multi-filter-bar.mobile-open{grid-template-columns:1fr 1fr!important}
  .multi-filter-bar.mobile-open .search-box{grid-column:1/-1!important}
  .multi-filter-bar.mobile-open .mobile-filter-toggle{grid-column:1/-1!important;justify-self:stretch!important}
  .multi-filter-bar.mobile-open>.multi-filter,.multi-filter-bar.mobile-open>.focus-filter-btn,.multi-filter-bar.mobile-open>.ads-quick-btn,.multi-filter-bar.mobile-open>.advanced-filters,.multi-filter-bar.mobile-open>.clear-btn,.multi-filter-bar.mobile-open>.save-filter-btn{min-width:0!important;width:100%!important;margin:0!important}
  .multi-filter-bar.mobile-open>.multi-filter>summary,.multi-filter-bar.mobile-open>.advanced-filters>summary,.multi-filter-bar.mobile-open>.focus-filter-btn,.multi-filter-bar.mobile-open>.ads-quick-btn,.multi-filter-bar.mobile-open>.clear-btn,.multi-filter-bar.mobile-open>.save-filter-btn{min-height:38px!important;font-size:10px!important;padding:7px 9px!important}
  .multi-filter-bar.mobile-open>.multi-filter,.multi-filter-bar.mobile-open>.advanced-filters{grid-column:1/-1!important}
  .multi-filter-bar.mobile-open>.focus-filter-btn{grid-column:1/-1!important}.multi-filter-bar.mobile-open>#googleAdsQuick{grid-column:1/2!important}.multi-filter-bar.mobile-open>#metaAdsQuick{grid-column:2/3!important}
  .multi-filter-bar.mobile-open>.clear-btn{grid-column:1/2!important}.multi-filter-bar.mobile-open>.save-filter-btn{grid-column:2/3!important}
  .saved-filter-strip{padding:4px 2px!important;margin:0 0 5px!important;gap:5px!important;min-height:27px!important}.saved-filter-title{font-size:8px!important}.saved-filter-empty,.saved-filter-chip{font-size:8px!important}
  .result-bar{margin:4px 2px 6px!important;font-size:9px!important}.result-bar .hint{display:none!important}

  /* Do not reuse the desktop table on phones; render a dedicated stable table. */
  .leads-table-wrap{display:none!important}
  .mobile-leads-shell{display:block!important;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden;margin:0}
  .mobile-swipe-hint{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 9px;background:#f8fafc;border-bottom:1px solid #e9eef5;color:#667085;font-size:8px;font-weight:750}.mobile-swipe-hint small{font-size:8px;color:#98a2b3}
  .mobile-leads-scroll,.mobile-follow-history-scroll{position:relative;display:block;width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#94a3b8 #eef2f7}
  .mobile-leads-scroll::-webkit-scrollbar,.mobile-follow-history-scroll::-webkit-scrollbar{height:6px}.mobile-leads-scroll::-webkit-scrollbar-track,.mobile-follow-history-scroll::-webkit-scrollbar-track{background:#eef2f7}.mobile-leads-scroll::-webkit-scrollbar-thumb,.mobile-follow-history-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px}
  .mobile-leads-table{border-collapse:separate;border-spacing:0;width:650px;min-width:650px;table-layout:fixed;font-size:9px;background:#fff}
  .mobile-leads-table th,.mobile-leads-table td{height:64px;padding:6px 7px;border-bottom:1px solid #e9eef5;vertical-align:middle;background:#fff;overflow:hidden}.mobile-leads-table th{height:34px;background:#f8fafc;color:#667085;font-size:8px;font-weight:850;text-align:left;position:sticky;top:0;z-index:4}
  .mobile-leads-table th:nth-child(1),.mobile-leads-table td:nth-child(1){width:160px}.mobile-leads-table th:nth-child(2),.mobile-leads-table td:nth-child(2){width:180px}.mobile-leads-table th:nth-child(3),.mobile-leads-table td:nth-child(3){width:165px}.mobile-leads-table th:nth-child(4),.mobile-leads-table td:nth-child(4){width:145px}
  .mobile-leads-table th:first-child,.mobile-leads-table .mlead-sticky{position:sticky;left:0;z-index:5;background:#fff;box-shadow:8px 0 12px -12px rgba(15,23,42,.45)}.mobile-leads-table th:first-child{z-index:7;background:#f8fafc}
  .mobile-leads-table th:last-child,.mobile-leads-table .maction-sticky{position:sticky;right:0;z-index:5;background:#fff;box-shadow:-8px 0 12px -12px rgba(15,23,42,.45)}.mobile-leads-table th:last-child{z-index:7;background:#f8fafc;text-align:center}
  .mlead-title{display:flex;align-items:center;gap:6px;min-width:0}.mobile-lead-select{width:15px;height:15px;flex:0 0 15px;accent-color:#2563eb}.mlead-link{border:0;background:transparent;padding:0;text-align:left;display:grid;gap:1px;min-width:0;color:inherit;cursor:pointer}.mlead-link b{font-size:10px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mlead-link small,.mcourse-col small,.mstage-col small{display:block;font-size:8px;line-height:1.25;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mcourse-col b{display:block;font-size:9px;line-height:1.2;max-height:22px;overflow:hidden}.mstage-col .status{font-size:8px!important;padding:3px 5px!important}.m-follow-line{margin-top:3px;color:#155eef!important;font-weight:800}
  .mobile-row-actions{display:grid;grid-template-columns:repeat(2,40px);grid-auto-rows:27px;gap:4px;justify-content:center}.m-action{border:1px solid #dce4ef;background:#fff;border-radius:7px;font-size:8px;font-weight:850;color:#344054;padding:0;display:grid;place-items:center}.m-action.call{color:#155eef;background:#f5f9ff;border-color:#cbdcf9}.m-action.wa{color:#137a39;background:#f2fbf5;border-color:#c5e8d0}.m-action.follow{color:#155eef;background:#eef4ff;border-color:#cbdcf9}.m-action.more{font-size:12px}.m-action.disabled{opacity:.35}

  /* Follow-up work queue: compact telecaller rows, full actions one tap away. */
  #followupsView{padding-top:10px!important}.follow-section-card{padding:8px!important;margin-top:8px!important}.follow-section-card .card-head{padding:1px 1px 8px!important}.follow-section-card .card-head h3{font-size:12px!important}.follow-section-card .card-head .hint{font-size:8px!important}
  .follow-grid{display:grid!important;grid-template-columns:1fr!important;gap:6px!important}.follow-card{padding:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 8px!important;align-items:center!important}.follow-card-top{grid-column:1/2!important;display:block!important}.follow-card-top .lead-name{font-size:10px!important}.follow-card-top .meta{font-size:8px!important;margin-top:2px!important}.follow-card-top>.follow-count-badge,.follow-card-top>.follow-none{display:none!important}.follow-card .follow-status-line{grid-column:1/2!important;margin:0!important;padding:0!important;background:transparent!important;display:grid!important;gap:1px!important;font-size:8px!important}.follow-card>.quick-actions{display:none!important}.mobile-follow-card-actions{display:grid!important;grid-column:2/3;grid-row:1/3;gap:4px;width:78px}.mobile-follow-card-actions .btn{min-height:29px!important;padding:5px 6px!important;font-size:8px!important;border-radius:7px!important}

  .follow-history-table-wrap{display:none!important}
  .mobile-follow-history-shell{display:block!important;border:1px solid #edf1f5;border-radius:10px;overflow:hidden;background:#fff}
  .mobile-follow-history-table{border-collapse:separate;border-spacing:0;width:690px;min-width:690px;table-layout:fixed;font-size:9px}.mobile-follow-history-table th,.mobile-follow-history-table td{height:70px;padding:6px 7px;border-bottom:1px solid #e9eef5;vertical-align:middle;background:#fff;overflow:hidden}.mobile-follow-history-table th{height:34px;background:#f8fafc;color:#667085;font-size:8px;font-weight:850;text-align:left;position:sticky;top:0;z-index:4}.mobile-follow-history-table th:nth-child(1),.mobile-follow-history-table td:nth-child(1){width:155px}.mobile-follow-history-table th:nth-child(2),.mobile-follow-history-table td:nth-child(2){width:230px}.mobile-follow-history-table th:nth-child(3),.mobile-follow-history-table td:nth-child(3){width:160px}.mobile-follow-history-table th:nth-child(4),.mobile-follow-history-table td:nth-child(4){width:145px}
  .mobile-follow-history-table th:first-child,.mobile-follow-history-table .mflead-sticky{position:sticky;left:0;z-index:5;background:#fff;box-shadow:8px 0 12px -12px rgba(15,23,42,.45)}.mobile-follow-history-table th:first-child{z-index:7;background:#f8fafc}.mobile-follow-history-table th:last-child,.mobile-follow-history-table .mfaction-sticky{position:sticky;right:0;z-index:5;background:#fff;box-shadow:-8px 0 12px -12px rgba(15,23,42,.45)}.mobile-follow-history-table th:last-child{z-index:7;background:#f8fafc;text-align:center}
  .mfactivity-col{display:grid;grid-template-columns:auto 1fr;gap:2px 6px;align-items:center}.mfactivity-col .follow-count-badge{grid-row:1/4;align-self:start;margin-top:1px;min-width:28px;height:22px;font-size:8px}.mfactivity-col b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mfactivity-col small,.mfstage-col small{font-size:8px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-note-preview{color:#475467!important}.mfstage-col .status{font-size:8px!important;padding:3px 5px!important;margin-bottom:3px}.mfaction-col .mobile-row-actions{justify-content:center}

  /* Mobile action sheet: large tap targets instead of tiny horizontal buttons. */
  .mobile-action-modal{align-items:flex-end!important;padding:0!important}.mobile-action-sheet{width:100%!important;max-width:none!important;border-radius:18px 18px 0 0!important;margin:0!important;padding:18px 16px calc(18px + env(safe-area-inset-bottom))!important;max-height:82vh!important}.mobile-action-sheet>.x{top:14px!important;right:14px!important}
}

@media(max-width:390px){
  .mobile-leads-table{width:630px;min-width:630px}.mobile-leads-table th:nth-child(1),.mobile-leads-table td:nth-child(1){width:150px}.mobile-leads-table th:nth-child(2),.mobile-leads-table td:nth-child(2){width:175px}.mobile-leads-table th:nth-child(3),.mobile-leads-table td:nth-child(3){width:160px}.mobile-leads-table th:nth-child(4),.mobile-leads-table td:nth-child(4){width:145px}
  .mobile-follow-history-table{width:660px;min-width:660px}.mobile-follow-history-table th:nth-child(1),.mobile-follow-history-table td:nth-child(1){width:150px}.mobile-follow-history-table th:nth-child(2),.mobile-follow-history-table td:nth-child(2){width:215px}.mobile-follow-history-table th:nth-child(3),.mobile-follow-history-table td:nth-child(3){width:150px}.mobile-follow-history-table th:nth-child(4),.mobile-follow-history-table td:nth-child(4){width:145px}
}


/* v3.10.1 — mobile tables scroll as one unit, desktop-style. No frozen lead/action cells. */
@media(max-width:700px){
  .mobile-leads-scroll,.mobile-follow-history-scroll{
    overflow-x:auto!important;
    overflow-y:visible!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x pan-y!important;
    scroll-behavior:smooth;
  }
  .mobile-leads-table{
    width:710px!important;
    min-width:710px!important;
  }
  .mobile-leads-table th:nth-child(1),.mobile-leads-table td:nth-child(1){width:160px!important}
  .mobile-leads-table th:nth-child(2),.mobile-leads-table td:nth-child(2){width:190px!important}
  .mobile-leads-table th:nth-child(3),.mobile-leads-table td:nth-child(3){width:170px!important}
  .mobile-leads-table th:nth-child(4),.mobile-leads-table td:nth-child(4){width:190px!important}
  .mobile-leads-table th:first-child,
  .mobile-leads-table .mlead-sticky,
  .mobile-leads-table th:last-child,
  .mobile-leads-table .maction-sticky{
    position:static!important;
    left:auto!important;
    right:auto!important;
    z-index:auto!important;
    box-shadow:none!important;
  }
  .mobile-leads-table th:first-child,
  .mobile-leads-table th:last-child{
    background:#f8fafc!important;
  }
  .mobile-row-actions{
    display:grid!important;
    grid-template-columns:repeat(2,82px)!important;
    grid-auto-rows:34px!important;
    gap:6px!important;
    justify-content:center!important;
    align-items:stretch!important;
  }
  .m-action{
    min-width:82px!important;
    min-height:34px!important;
    padding:0 8px!important;
    border-radius:9px!important;
    font-size:9px!important;
    font-weight:850!important;
    line-height:1!important;
    box-shadow:0 2px 7px rgba(15,23,42,.06);
  }
  .m-action.call{background:#eff6ff!important;border-color:#bcd2fb!important;color:#155eef!important}
  .m-action.wa{background:#effbf3!important;border-color:#bfe7cc!important;color:#137a39!important}
  .m-action.follow{background:#eef4ff!important;border-color:#bcd2fb!important;color:#155eef!important}
  .m-action.more{background:#f8fafc!important;border-color:#d7dee8!important;color:#344054!important;font-size:9px!important}
  .m-action:active{transform:scale(.98)}
  .maction-col,.mfaction-col{overflow:visible!important}
  .mobile-follow-history-table{
    width:755px!important;
    min-width:755px!important;
  }
  .mobile-follow-history-table th:nth-child(1),.mobile-follow-history-table td:nth-child(1){width:155px!important}
  .mobile-follow-history-table th:nth-child(2),.mobile-follow-history-table td:nth-child(2){width:240px!important}
  .mobile-follow-history-table th:nth-child(3),.mobile-follow-history-table td:nth-child(3){width:170px!important}
  .mobile-follow-history-table th:nth-child(4),.mobile-follow-history-table td:nth-child(4){width:190px!important}
  .mobile-follow-history-table th:first-child,
  .mobile-follow-history-table .mflead-sticky,
  .mobile-follow-history-table th:last-child,
  .mobile-follow-history-table .mfaction-sticky{
    position:static!important;
    left:auto!important;
    right:auto!important;
    z-index:auto!important;
    box-shadow:none!important;
  }
  .mobile-follow-history-table th:first-child,
  .mobile-follow-history-table th:last-child{
    background:#f8fafc!important;
  }
  .mobile-swipe-hint{
    justify-content:flex-start!important;
    gap:6px!important;
  }
  .mobile-swipe-hint small{
    margin-left:auto;
  }
}
@media(max-width:390px){
  .mobile-leads-table{width:710px!important;min-width:710px!important}
  .mobile-follow-history-table{width:755px!important;min-width:755px!important}
}


/* v3.10.2 — iOS no-focus-zoom + explicit filter clear UX */
.search-box{position:relative}
.search-box input{padding-right:38px!important}
.search-clear-x{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:8px;background:#eef2f7;color:#475467;font-size:18px;font-weight:800;line-height:1;display:grid;place-items:center;cursor:pointer;z-index:2}
.search-clear-x[hidden]{display:none!important}.search-clear-x:hover{background:#e2e8f0;color:#172033}
.multi-filter>summary{gap:7px}.filter-summary-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.filter-clear-x{margin-left:auto;width:22px;height:22px;min-width:22px;border-radius:999px;background:#eaf2ff;color:#155eef;display:inline-grid;place-items:center;font-size:15px;font-weight:900;line-height:1;cursor:pointer;flex:0 0 auto}
.filter-clear-x:hover{background:#dbeafe}.filter-active-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:#2563eb;color:#fff;font-size:9px}
.advanced-filters>summary{display:flex!important;align-items:center!important;gap:7px!important}.advanced-filters>summary>span:first-child{min-width:0;flex:1}
.focus-filter-btn.active,.ads-quick-btn.active{padding-right:11px!important}
.reset-filters-btn{background:#fff1f2!important;color:#b42318!important;border:1px solid #fecdd3!important;font-weight:850!important;box-shadow:none!important}
.reset-filters-btn:hover{background:#ffe4e6!important;color:#9f1239!important;border-color:#fda4af!important}
@media(max-width:700px){
  /* iOS Safari zooms focused controls below 16px. Keep controls >=16px instead of disabling user zoom. */
  input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"file\"]),select,textarea,[contenteditable=\"true\"]{font-size:16px!important}
  .multi-filter-bar .search-box input,.mf-search input,#autoRuleUserSearch{font-size:16px!important}
  .search-clear-x{width:32px;height:32px;right:5px;font-size:19px}
  .filter-clear-x{width:24px;height:24px;min-width:24px;font-size:16px}
  .multi-filter-bar.mobile-open>.clear-btn.reset-filters-btn{background:#fff1f2!important;color:#b42318!important;border:1px solid #fda4af!important}
}

/* v4.0.0 — white-label admin, messaging and subscription */
.brand-mark img{max-width:100%;max-height:100%;object-fit:contain;border-radius:9px}
.subscription-banner{margin:0 24px;padding:9px 13px;border-radius:0 0 10px 10px;font-size:11px;font-weight:800;text-align:center;border:1px solid #fde68a;border-top:0;background:#fffbeb;color:#92400e}.subscription-banner.expired{background:#fff1f2;border-color:#fecdd3;color:#b42318}.subscription-banner.grace{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.settings-panel{margin-top:14px}.settings-two{margin-top:14px}.settings-form label{font-size:11px}.settings-form small{font-size:9px;color:var(--muted)}.settings-form.one-col{grid-template-columns:1fr 1fr}.toggle-label{display:flex!important;align-items:center;gap:8px;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fafbfd}.toggle-label input{width:16px!important;height:16px!important;margin:0!important;min-height:auto!important}.template-vars{background:#f8fafc;border:1px solid #e5eaf1;border-radius:9px;padding:9px;font-size:9px;color:#667085;line-height:1.7}.template-vars code{background:#fff;border:1px solid #e6eaf0;padding:2px 5px;border-radius:5px;color:#344054}.settings-test-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:end}.settings-stage-editor textarea{width:100%}.settings-stage-editor small{display:block;margin-top:5px}.settings-status{font-size:9px;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#475569}.subscription-panel{border-color:#dbeafe;background:linear-gradient(180deg,#fff,#fbfdff)}.subscription-pill{font-size:9px;padding:5px 9px;border-radius:999px;background:#ecfdf3;color:#027a48;font-weight:850}.subscription-pill.grace{background:#fff7ed;color:#9a3412}.subscription-pill.expired{background:#fff1f2;color:#b42318}.subscription-pill.trial{background:#eff6ff;color:#1d4ed8}
.automation-help{font-size:10px;color:#667085;background:#f8fafc;border:1px solid #edf1f5;border-radius:9px;padding:9px 10px;margin-bottom:10px}.automation-rule-list{display:grid;gap:7px}.automation-rule-row{display:grid;grid-template-columns:minmax(0,1.6fr) auto auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:9px 10px}.automation-rule-row>div:first-child{display:grid;gap:2px;min-width:0}.automation-rule-row>div:first-child b,.automation-rule-row>div:first-child small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-rule-row>div:first-child small{font-size:9px;color:var(--muted)}.automation-rule-row .action-row{flex-wrap:nowrap}.email-act{background:#f6f0ff!important;color:#6941c6!important;border-color:#e9d7fe!important}
@media(max-width:700px){.subscription-banner{margin:0 10px;font-size:10px;padding:8px 10px}.settings-form.one-col{grid-template-columns:1fr}.settings-test-row{grid-template-columns:1fr 1fr}.settings-test-row input{grid-column:1/-1}.automation-rule-row{grid-template-columns:1fr auto}.automation-rule-row .action-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.automation-rule-row .icon-btn{min-height:36px}.settings-panel{padding:10px!important}.settings-panel .card-head h3{font-size:13px}}

.wa-template-choice{display:flex!important;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid #dbe7f7;border-radius:10px;background:#f7fbff}.wa-template-choice input{margin-top:2px;min-height:auto!important}.wa-template-choice span{display:grid;gap:2px}.wa-template-choice small{font-size:9px;color:var(--muted);font-weight:500}

.automation-log-list{display:grid;gap:7px}.automation-log-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.automation-log-row>div{display:grid;gap:2px;min-width:0}.automation-log-row b{font-size:11px}.automation-log-row small{font-size:9px;color:var(--muted)}.automation-log-row em{font-style:normal;font-size:9px;color:#b42318;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:760px}.automation-log-row.failed{background:#fffafa}.automation-log-row.sent{background:#fbfffc}
