:root{--ink:#17213a;--ink-2:#26324d;--muted:#6d7890;--line:#e5e9f1;--surface:#fff;--soft:#f5f7fb;--brand:#3956a6;--brand-dark:#263d7d;--brand-soft:#edf2ff;--accent:#ffca05;--danger:#c8324b;--success:#087a5b;--warning:#b46a00;--shadow-sm:0 4px 14px rgba(27,42,80,.06);--shadow:0 18px 50px rgba(27,42,80,.13);--sidebar:248px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--soft);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}.hidden{display:none!important}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}

/* Login */
.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,44%) 1fr;background:#fff}.login-brand-panel{position:relative;overflow:hidden;padding:64px;background:linear-gradient(145deg,#243b7c 0%,#3956a6 62%,#4867bc 100%);color:#fff;display:flex;align-items:flex-end}.login-brand-panel:before{content:"";position:absolute;width:420px;height:420px;border:92px solid rgba(255,255,255,.07);border-radius:50%;top:-200px;left:-160px}.login-brand-panel:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:var(--accent);right:-78px;bottom:85px;opacity:.96}.login-brand-content{position:relative;z-index:1;max-width:470px}.brand-kicker{display:inline-flex;padding:7px 11px;border:1px solid rgba(255,255,255,.24);border-radius:30px;font-size:11px;font-weight:800;letter-spacing:.15em}.login-brand-content h2{font-size:clamp(34px,4vw,56px);line-height:1.08;letter-spacing:-.045em;margin:24px 0 18px}.login-brand-content p{font-size:16px;line-height:1.7;color:rgba(255,255,255,.76);max-width:420px}.brand-signature{display:flex;align-items:center;gap:12px;margin-top:52px;font-size:12px;color:rgba(255,255,255,.72)}.brand-signature span{width:28px;height:3px;background:var(--accent);border-radius:3px}.login-card{width:min(440px,calc(100% - 48px));margin:auto;padding:42px 24px;background:#fff}.brand-logo{width:230px;max-width:72%;height:auto;display:block;margin:0 0 56px}.login-copy .eyebrow,.eyebrow{display:block;color:var(--brand);font-size:10px;font-weight:800;letter-spacing:.16em;margin-bottom:11px}.login-card h1{margin:0;font-size:31px;letter-spacing:-.035em}.login-card>.login-copy>p{color:var(--muted);margin:9px 0 30px;line-height:1.55}.login-card label,.field{display:grid;gap:8px;font-size:12px;font-weight:700;margin:15px 0;color:var(--ink-2)}.login-card input,.field input,.field select,.field textarea,.crm-toolbar input{border:1px solid #cfd6e3;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);outline:none;transition:.16s}.login-card input{padding:14px}.login-card input::placeholder,.field input::placeholder{color:#a2aaba}.login-card input:focus,.field input:focus,.field select:focus,.field textarea:focus,.crm-toolbar input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(57,86,166,.11)}.login-security{display:flex;align-items:center;justify-content:center;gap:8px;color:#929bad!important;font-size:11px;margin:28px 0 0!important}.login-security span{color:var(--success);font-size:9px}.form-message{min-height:20px;margin-top:12px;color:var(--danger);font-size:13px}.alert{padding:12px;border-radius:10px}.alert.error{background:#fff0f2;color:var(--danger)}

/* Buttons */
.btn{border:0;border-radius:9px;padding:10px 15px;font-weight:700;font-size:13px;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.btn:hover{transform:translateY(-1px)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn.primary{background:var(--brand);color:#fff;box-shadow:0 6px 15px rgba(57,86,166,.2)}.login-card .btn.primary{width:100%;padding:14px 16px;margin-top:8px;display:flex;align-items:center;justify-content:center;gap:10px}.btn.primary:hover{background:var(--brand-dark)}.btn.secondary{background:var(--brand-soft);color:var(--brand-dark)}.btn.ghost{background:#fff;color:var(--muted);border:1px solid var(--line)}.btn.danger{background:#fff0f2;color:var(--danger)}.btn.small{padding:7px 10px;font-size:11px}.logout-btn{background:#f4f6fa;color:#647087;padding:8px 12px}

/* Shared application */
.app-shell{min-height:100vh}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:18px;font-weight:800}.brand img{width:155px;height:auto}.top-actions{display:flex;gap:12px;align-items:center;color:var(--muted);font-size:12px}.container{max-width:1440px;width:100%;margin:0 auto;padding:34px 40px}.crm-main{padding:26px}.crm-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:22px}.crm-toolbar h1{margin:0;font-size:26px}.crm-toolbar p{margin:6px 0 0;color:var(--muted);font-size:13px}.toolbar-actions{display:flex;gap:10px}.crm-toolbar input{width:min(360px,40vw)}
.board{display:flex;gap:16px;overflow:auto;align-items:flex-start;padding-bottom:20px;min-height:calc(100vh - 170px)}.column{width:310px;min-width:310px;background:#eef1f6;border-radius:15px;padding:12px}.column-head{display:flex;align-items:center;justify-content:space-between;padding:4px 3px 12px;font-weight:800}.column-title{display:flex;align-items:center;gap:8px}.dot{width:10px;height:10px;border-radius:50%;background:var(--stage);display:inline-block}.count{background:#fff;border:1px solid var(--line);border-radius:20px;padding:3px 8px;font-size:12px;color:var(--muted)}.cards{display:grid;gap:10px;min-height:80px}.lead-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;box-shadow:0 2px 5px rgba(20,26,45,.04)}.lead-card:hover{border-color:#bdc3cf;transform:translateY(-1px)}.lead-card.dragging{opacity:.45}.lead-name{font-weight:800;margin-bottom:8px}.pill{display:inline-flex;border-radius:20px;background:var(--brand-soft);color:var(--brand-dark);padding:4px 8px;font-size:11px;font-weight:700;margin:0 5px 6px 0}.contact{font-size:12px;color:var(--muted);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.empty-column{font-size:12px;text-align:center;color:#8b94a4;padding:20px 5px}
.scrim{position:fixed;inset:0;background:rgba(15,20,35,.34);z-index:40}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(480px,100%);background:#fff;z-index:41;box-shadow:-18px 0 50px rgba(20,26,45,.18);padding:25px;overflow:auto}.drawer-head{display:flex;justify-content:space-between;gap:15px}.drawer h2{margin:8px 0}.drawer .meta,.meta{color:var(--muted);font-size:12px;line-height:1.65}.drawer-section{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.stage-buttons{display:flex;flex-wrap:wrap;gap:8px}.stage-button{border:1px solid var(--line);border-radius:20px;background:#fff;padding:7px 10px;cursor:pointer}.stage-button.active{border-color:var(--stage);color:var(--stage);font-weight:800}.drawer textarea{width:100%;min-height:140px;border:1px solid var(--line);border-radius:11px;padding:12px;resize:vertical}.drawer-status{font-size:12px;color:var(--muted);margin-top:7px}.toast{position:fixed;right:24px;bottom:24px;background:#17213a;color:#fff;padding:13px 17px;border-radius:10px;z-index:100;box-shadow:var(--shadow);font-size:13px;border-left:3px solid var(--accent)}

/* Admin shell */
.admin-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.sidebar-brand{height:88px;display:flex;align-items:center;padding:0 26px;border-bottom:1px solid #edf0f5}.sidebar-brand img{width:175px;height:auto}.sidebar-nav{padding:23px 14px;display:flex;flex-direction:column;gap:5px;flex:1}.sidebar-label{font-size:9px;font-weight:800;letter-spacing:.16em;color:#a0a9b9;padding:14px 13px 8px}.sidebar-link{width:100%;border:0;background:transparent;border-radius:9px;display:flex;align-items:center;gap:11px;padding:11px 13px;color:#6d7890;font-size:12px;font-weight:700;text-align:left;cursor:pointer;transition:.15s}.sidebar-link svg{width:17px;height:17px;fill:currentColor}.sidebar-link:hover{background:#f6f8fc;color:var(--brand)}.sidebar-link.active{background:var(--brand-soft);color:var(--brand-dark)}.side-dot{width:6px;height:6px;border-radius:50%;background:#bcc4d1;margin:0 6px}.sidebar-link.active .side-dot{background:var(--brand)}.sidebar-client-nav{display:flex;flex-direction:column;gap:3px;margin-top:10px}.sidebar-security{margin:14px;padding:13px;border:1px solid #e7ebf2;background:#f9fafc;border-radius:10px;display:flex;gap:10px;align-items:center}.security-icon{width:27px;height:27px;border-radius:50%;background:#e6f6f0;color:var(--success);display:grid;place-items:center;font-weight:800}.sidebar-security div{display:grid;gap:2px}.sidebar-security strong{font-size:10px}.sidebar-security small{font-size:9px;color:var(--muted)}.admin-workspace{margin-left:var(--sidebar);min-height:100vh}.admin-topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;position:sticky;top:0;z-index:20}.topbar-context{display:grid;gap:4px}.topbar-context span{font-size:9px;letter-spacing:.14em;color:#9ba5b6;font-weight:800}.topbar-context strong{font-size:14px;color:var(--ink-2)}.user-avatar{width:34px;height:34px;border-radius:9px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800;letter-spacing:.04em}.user-summary{display:grid;gap:2px;padding-right:8px}.user-summary strong{font-size:11px;color:var(--ink)}.user-summary small{font-size:9px;color:#9ba5b6}.mobile-menu{display:none;border:0;background:transparent;font-size:21px;color:var(--ink)}

/* Admin content */
.admin-root{display:grid;gap:23px}.admin-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-head h1{margin:0;font-size:28px;letter-spacing:-.035em}.admin-head h3{margin:0;font-size:15px}.admin-head p{color:var(--muted);font-size:12px;margin:8px 0 0}.page-heading{display:grid;gap:3px}.page-heading-row{display:flex;align-items:center;gap:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--shadow-sm)}.stat-copy{display:grid;gap:4px}.stat-copy span{font-size:10px;color:var(--muted);font-weight:700}.stat-copy strong{font-size:27px;letter-spacing:-.04em}.stat-icon{width:39px;height:39px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}.stat-icon svg{width:18px;height:18px;fill:currentColor}.stat-card.accent .stat-icon{background:#fff7d6;color:#ae7900}.section-bar{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.section-bar h2{margin:0;font-size:16px}.section-bar span{font-size:11px;color:var(--muted)}.client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:15px}.client-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;cursor:pointer;box-shadow:var(--shadow-sm);transition:.18s;position:relative;overflow:hidden}.client-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--brand);opacity:0;transition:.18s}.client-card:hover{border-color:#cad3e5;transform:translateY(-2px);box-shadow:0 12px 26px rgba(27,42,80,.1)}.client-card:hover:before{opacity:1}.client-card-head{display:flex;align-items:center;gap:12px}.client-mark{width:42px;height:42px;border-radius:11px;background:linear-gradient(145deg,var(--brand),var(--brand-dark));color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px}.client-title{min-width:0;flex:1}.client-title h3{margin:0 0 4px;font-size:14px}.client-title p{margin:0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.client-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid #edf0f5;margin-top:17px;padding-top:14px}.client-metric{display:grid;gap:3px}.client-metric strong{font-size:14px}.client-metric span{font-size:9px;color:var(--muted)}.client-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;color:var(--brand);font-size:10px;font-weight:800}.status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:800;border-radius:20px;padding:4px 8px;background:#e9f7f2;color:var(--success)}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status.off{background:#fff0f2;color:var(--danger)}
.client-detail-hero{background:linear-gradient(120deg,#fff,#f7f9fe);border:1px solid var(--line);border-radius:15px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:var(--shadow-sm)}.client-detail-identity{display:flex;align-items:center;gap:15px}.client-detail-identity .client-mark{width:49px;height:49px}.client-detail-identity h1{font-size:24px;margin:0 0 5px}.client-detail-identity p{margin:0;color:var(--muted);font-size:11px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow-sm)}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin:-3px 0 20px}.tab{background:none;border:0;padding:12px 14px;font-weight:700;font-size:11px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:var(--brand);border-color:var(--brand)}.tab-content-head{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}.field.full{grid-column:1/-1}.check{display:flex;gap:8px;align-items:center;margin:15px 0;font-size:12px}.table-wrap{overflow:auto;border:1px solid #edf0f4;border-radius:10px;margin-top:14px}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{text-align:left;border-bottom:1px solid #edf0f4;padding:12px 13px;font-size:11px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fafbfe}.data-table th{color:#8b96a8;font-size:9px;text-transform:uppercase;letter-spacing:.08em;background:#fafbfc}.actions{display:flex;flex-wrap:wrap;gap:7px}.empty-state{text-align:center;padding:38px 20px;color:var(--muted);font-size:12px}.back-button{display:inline-flex!important;margin-bottom:11px}.modal-scrim{position:fixed;inset:0;background:rgba(18,27,50,.55);backdrop-filter:blur(3px);z-index:50;display:grid;place-items:center;padding:20px}.modal{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:18px}.modal h2{margin:0;font-size:19px}.icon-button{border:0;background:#f3f5f8;width:30px;height:30px;border-radius:8px;font-size:20px;line-height:1;cursor:pointer;color:var(--muted)}

@media(max-width:1080px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.container{padding:30px}.login-brand-panel{padding:40px}}
@media(max-width:820px){:root{--sidebar:224px}.sidebar-brand img{width:155px}.admin-topbar{padding:0 24px}.container{padding:24px}.login-shell{grid-template-columns:1fr}.login-brand-panel{display:none}.login-card{padding:36px 20px}.brand-logo{margin-bottom:48px}}
@media(max-width:680px){.admin-sidebar{transform:translateX(-100%);transition:.2s;box-shadow:var(--shadow)}body.menu-open .admin-sidebar{transform:translateX(0)}.admin-workspace{margin-left:0}.mobile-menu{display:block}.admin-topbar{height:72px;padding:0 16px}.topbar-context{margin-right:auto;margin-left:12px}.user-summary{display:none}.container,.crm-main{padding:17px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:14px}.stat-copy strong{font-size:23px}.admin-head,.client-detail-hero{align-items:stretch;flex-direction:column}.admin-head>.btn{width:100%}.client-detail-hero{padding:17px}.detail-actions .btn{flex:1}.client-grid{grid-template-columns:1fr}.tabs{overflow:auto}.tab{white-space:nowrap}.crm-toolbar{align-items:stretch;flex-direction:column}.toolbar-actions{flex-direction:column}.crm-toolbar input{width:100%}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.column{width:280px;min-width:280px}.topbar{padding:0 16px}.topbar .brand span,.top-actions>span{display:none}.brand img{width:130px}.top-actions #userName{display:none}}
@media(max-width:420px){.stats-grid{grid-template-columns:1fr}.login-card{width:calc(100% - 28px)}.brand-logo{max-width:82%}.admin-topbar .logout-btn{padding:7px 9px}.topbar-context span{display:none}}

/* Client CRM 2.4 */
body[data-admin="0"]{background:#f3f5f9}.client-topbar{height:76px;background:#fff;border-bottom:1px solid #e6eaf1;display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:30;box-shadow:0 4px 18px rgba(28,42,77,.04)}.client-brand,.client-user{display:flex;align-items:center}.client-brand img{width:148px}.client-brand>span{width:1px;height:28px;background:#dfe4ed;margin:0 20px}.client-brand>div,.client-user>div{display:grid;gap:2px}.client-brand small,.client-user small{color:#929daf;font-size:9px;font-weight:800;letter-spacing:.1em}.client-brand strong{font-size:13px}.client-user{gap:10px}.client-user-avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(145deg,var(--brand),var(--brand-dark));color:#fff;display:grid!important;place-items:center;font-size:12px;font-weight:800}.client-user strong{font-size:11px}.client-user .btn{margin-left:12px}.crm-main{padding:28px 30px 20px}.crm-toolbar{align-items:center;margin-bottom:18px}.crm-heading h1{font-size:28px;letter-spacing:-.04em}.crm-heading .eyebrow{margin-bottom:5px}.toolbar-actions{align-items:center}.search-box{width:min(410px,34vw);position:relative}.search-box svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;fill:none;stroke:#8c97a9;stroke-width:1.8;stroke-linecap:round}.crm-toolbar .search-box input{width:100%;padding-left:40px;background:#fff}.settings-btn{display:flex;align-items:center;gap:7px;white-space:nowrap}.settings-btn svg{width:15px;fill:none;stroke:currentColor;stroke-width:1.7}.client-stats{display:grid;grid-template-columns:150px 150px 170px 1fr;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:20px;box-shadow:var(--shadow-sm);overflow:hidden}.client-stats article{padding:14px 18px;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.client-stats span{font-size:9px;color:var(--muted);font-weight:700}.client-stats strong{font-size:20px;color:var(--ink)}.client-stats>div{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:14px 18px;font-size:10px;color:var(--muted)}.live-dot{width:7px;height:7px;border-radius:50%;background:#12a579;box-shadow:0 0 0 4px #e1f6ef}.board{gap:14px;min-height:calc(100vh - 235px)}.column{width:326px;min-width:326px;background:#e9edf3;border:1px solid #e0e5ed;border-radius:15px;padding:11px;transition:.18s}.column.drag-over{background:#e6ecff;border-color:#9eafe0}.column-head{padding:6px 5px 13px;font-size:12px}.column-title{gap:9px}.column-title .dot{width:8px;height:8px;box-shadow:0 0 0 3px color-mix(in srgb,var(--stage) 15%,transparent)}.column-head .count{min-width:25px;text-align:center;background:rgba(255,255,255,.72);font-size:10px}.cards{gap:9px}.lead-card{border:0;border-left:3px solid transparent;border-radius:12px;padding:14px 14px 12px;box-shadow:0 4px 13px rgba(27,42,80,.07);transition:.16s}.lead-card:hover{border-left-color:var(--brand);box-shadow:0 10px 22px rgba(27,42,80,.11);transform:translateY(-2px)}.lead-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.lead-name{font-size:13px;margin:0;line-height:1.35}.card-menu{border:0;background:transparent;color:#9aa4b5;letter-spacing:1px;cursor:pointer}.lead-tags{margin:9px 0 5px}.pill{font-size:9px;padding:4px 7px;margin-bottom:5px}.course-pill{background:#eeebff;color:#4e45c8}.school-pill{background:#e6f7ef;color:#117b5e}.card-contact{display:grid;grid-template-columns:14px minmax(0,1fr) 26px;align-items:center;gap:7px;color:#758196;font-size:10px;margin-top:7px;min-height:22px}.card-contact>svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7}.card-contact span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-contact button{width:26px;height:26px;border:0;border-radius:7px;background:#16b86c;color:#fff;display:grid;place-items:center;cursor:pointer}.card-contact button svg{width:14px;height:14px;fill:currentColor}.purchase-badge{display:flex;align-items:center;gap:6px;background:#e9f8f2;color:#087a5b;border-radius:7px;padding:6px 8px;margin-top:9px;font-size:9px;font-weight:800}.purchase-badge svg{width:12px;fill:none;stroke:currentColor;stroke-width:1.7}.lead-card-footer{display:flex;align-items:center;gap:7px;border-top:1px solid #edf0f4;margin-top:10px;padding-top:10px;color:#8290a5;font-size:9px;font-weight:600}.lead-card-footer i{width:3px;height:3px;border-radius:50%;background:#bac2ce}.lead-card-footer .never{color:#b46a00}.empty-column{display:grid;gap:5px;border:1px dashed #ccd4e0;border-radius:10px;padding:20px;color:#929daf}.empty-column span{font-size:18px;color:#b1bac8}
.drawer{width:min(720px,100%);padding:0;background:#f5f7fa}.drawer-head.premium{background:#fff;padding:24px 28px 20px;border-bottom:1px solid var(--line);align-items:flex-start}.drawer-head.premium h2{font-size:25px;letter-spacing:-.035em;margin:9px 0 5px}.drawer-head.premium p{margin:0;color:var(--muted);font-size:10px}.stage-label{display:inline-flex;align-items:center;gap:7px;color:var(--stage);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.stage-label i{width:7px;height:7px;border-radius:50%;background:var(--stage)}.lead-hero{display:flex;align-items:center;gap:12px;padding:17px 28px;background:#fff}.lead-avatar{width:42px;height:42px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:800}.lead-hero>div:last-child{display:grid;gap:4px}.lead-hero strong{font-size:12px}.lead-hero span{font-size:10px;color:var(--muted)}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 28px 18px;background:#fff}.quick{border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;gap:9px;padding:10px;text-align:left;cursor:pointer;min-width:0}.quick>svg{width:20px;height:20px;fill:none;stroke:var(--brand);stroke-width:1.6;flex:0 0 auto}.quick span{display:grid;gap:2px;min-width:0}.quick strong{font-size:10px}.quick small{font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick.primary-contact{background:#12a866;border-color:#12a866;color:#fff}.quick.primary-contact>svg{fill:#fff;stroke:none}.quick.primary-contact small{color:rgba(255,255,255,.75)}.lead-info-grid{display:grid;grid-template-columns:1fr 1fr;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 28px}.lead-info-grid>div{padding:13px 0;display:grid;gap:4px;min-width:0}.lead-info-grid>div:nth-child(odd){padding-right:18px;border-right:1px solid var(--line)}.lead-info-grid>div:nth-child(even){padding-left:18px}.lead-info-grid span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#929daf;font-weight:800}.lead-info-grid strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.success-text{color:var(--success)}.drawer-grid{display:grid;gap:12px;padding:16px}.drawer-panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:var(--shadow-sm)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-title span{font-size:8px;color:var(--brand);font-weight:800;letter-spacing:.11em}.section-title h3{margin:3px 0 0;font-size:14px}.text-button{border:0;background:transparent;color:var(--brand);font-size:9px;font-weight:800;cursor:pointer}.field.clean{margin:0}.field.clean select{padding:11px}.purchase-control{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.purchase-control>div{display:flex;align-items:center;gap:9px}.purchase-control svg{width:21px;fill:none;stroke:var(--brand);stroke-width:1.6}.purchase-control span{display:grid;gap:2px}.purchase-control strong{font-size:10px}.purchase-control small{font-size:8px;color:var(--muted)}.note-composer textarea{width:100%;min-height:88px;border:1px solid #d8deea;border-radius:10px;padding:11px;resize:vertical;outline:none;font-size:11px}.note-composer textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(57,86,166,.1)}.note-composer>div{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:8px}.note-composer>div span{font-size:8px;color:var(--muted)}.note-composer .form-message{margin:5px 0 0}.timeline{margin-top:18px;display:grid}.timeline-item{display:grid;grid-template-columns:32px 1fr;gap:10px;position:relative;padding-bottom:17px}.timeline-item:not(:last-child):before{content:"";position:absolute;left:15px;top:31px;bottom:0;width:1px;background:#e1e6ee}.timeline-icon{width:31px;height:31px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;z-index:1}.timeline-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}.timeline-item-head{display:flex;justify-content:space-between;gap:12px;padding-top:2px}.timeline-item-head strong{font-size:10px}.timeline-item-head time{font-size:8px;color:var(--muted);white-space:nowrap}.timeline-item p{font-size:10px;line-height:1.55;color:#4d5970;background:#f7f8fb;border-radius:8px;padding:9px;margin:7px 0}.timeline-item small{display:flex;align-items:center;gap:4px;color:#929daf;font-size:8px;margin-top:5px}.timeline-item small svg{width:10px;fill:none;stroke:currentColor;stroke-width:1.8}.timeline-empty,.timeline-loading{text-align:center;padding:22px;color:var(--muted);font-size:10px}.error-text{color:var(--danger)}
.client-modal-scrim{position:fixed;inset:0;background:rgba(16,24,43,.58);backdrop-filter:blur(4px);z-index:90;display:grid;place-items:center;padding:18px}.client-modal{width:min(500px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:16px;padding:22px;box-shadow:0 28px 70px rgba(15,24,46,.3)}.client-modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:17px}.client-modal-head h2{margin:3px 0 0;font-size:19px}.client-modal p{color:var(--muted);font-size:11px;line-height:1.55}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.loss-form strong{color:var(--ink)}.reason-manager>p{margin-top:0}.reason-manager form{display:grid;grid-template-columns:1fr auto;gap:8px;margin:15px 0}.reason-manager input{border:1px solid #d2d9e5;border-radius:9px;padding:11px;outline:none}.reason-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:11px 2px;font-size:11px}
@media(max-width:980px){.client-stats{grid-template-columns:repeat(3,1fr)}.client-stats>div{display:none}.settings-btn{font-size:0}.settings-btn svg{width:17px;margin:0}.client-brand>div{display:none}.client-brand>span{display:none}.client-brand img{width:135px}.search-box{width:34vw}}
@media(max-width:680px){.client-topbar{height:66px;padding:0 15px}.client-user>div:not(.client-user-avatar){display:none}.client-user .btn{margin-left:2px}.crm-main{padding:17px 14px}.crm-heading h1{font-size:24px}.toolbar-actions{display:grid;grid-template-columns:1fr auto auto;width:100%}.search-box{width:100%}.client-stats{grid-template-columns:repeat(3,1fr)}.client-stats article{padding:12px;display:grid;gap:4px}.client-stats strong{font-size:18px}.board{min-height:calc(100vh - 300px)}.column{width:286px;min-width:286px}.drawer-head.premium,.lead-hero,.quick-actions{padding-left:18px;padding-right:18px}.lead-info-grid{padding:0 18px}.quick-actions{grid-template-columns:1fr 1fr}.quick-actions .quick:last-child:nth-child(3){grid-column:1/-1}.note-composer>div{align-items:stretch;flex-direction:column}.note-composer>div .btn{width:100%}.modal-actions{flex-wrap:wrap}.modal-actions .btn{flex:1}.reason-manager form{grid-template-columns:1fr}.settings-btn{padding:10px}.toolbar-actions>#refreshButton{font-size:0;padding:10px 13px}.toolbar-actions>#refreshButton:after{content:"↻";font-size:17px}}
.loss-reason-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;background:#fff2f3;border-bottom:1px solid #f3d5da;color:var(--danger)}.loss-reason-summary span{font-size:8px;font-weight:800;letter-spacing:.1em}.loss-reason-summary strong{font-size:10px;text-align:right}

/* CRM 2.4 — legibilidade, listas, imagens e relatórios */
html,body{font-family:"Segoe UI Variable","Segoe UI",Roboto,Arial,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:auto}.client-brand small,.client-user small,.eyebrow,.sidebar-label,.topbar-context span{font-size:10px}.client-brand strong,.client-user strong{font-size:12px}.crm-toolbar p,.admin-head p{font-size:13px}.lead-name{font-size:14px}.pill,.card-contact,.lead-card-footer{font-size:11px}.column-head{font-size:13px}.section-title span,.lead-info-grid span,.stage-label{font-size:10px}.section-title h3{font-size:16px}.lead-info-grid strong,.purchase-control strong,.timeline-item-head strong,.timeline-item p,.reason-row{font-size:12px}.purchase-control small,.timeline-item-head time,.timeline-item small,.note-composer>div span{font-size:10px}.quick strong{font-size:12px}.quick small{font-size:10px}.data-table th{font-size:10px}.data-table td{font-size:12px}.btn.small{font-size:12px}
.client-mark.has-logo{background:#fff;border:1px solid var(--line);padding:5px}.client-mark img,.table-avatar img,.user-avatar img,.client-user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.client-mark.has-logo img{object-fit:contain}.avatar-button{border:0;cursor:pointer;padding:0;position:relative}.avatar-button img,.client-user-avatar img{display:none}.avatar-button.has-image img,.client-user-avatar.has-image img{display:block}.avatar-button.has-image span,.client-user-avatar.has-image span{display:none}.client-user-avatar{position:relative;overflow:hidden}.client-company-logo{width:auto!important;max-width:104px;height:36px;object-fit:contain;margin-right:14px}.table-user{display:flex;align-items:center;gap:9px}.table-avatar{width:31px;height:31px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:800;font-size:10px;overflow:hidden;flex:0 0 auto}.image-field{grid-column:1/-1;border:1px dashed #cbd3e0;border-radius:11px;padding:14px;margin:7px 0 10px;background:#fafbfe}.image-field>label:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:700}.image-field input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.image-field label>span{display:inline-flex;padding:9px 12px;border-radius:8px;background:var(--brand-soft);color:var(--brand);cursor:pointer;font-weight:700}.image-field small{display:block;color:var(--muted);font-size:10px;margin-top:8px}.check.compact{margin:10px 0 0;font-size:11px}
.client-view-nav{display:flex;gap:5px;margin:-5px 0 20px;border-bottom:1px solid var(--line)}.view-tab{border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 18px;color:var(--muted);font-weight:700;font-size:13px;cursor:pointer}.view-tab.active{color:var(--brand-dark);border-color:var(--accent)}.lead-list-panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-sm);overflow:hidden}.list-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line)}.list-head h2{margin:0;font-size:18px}.list-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.lead-list-panel .table-wrap{border:0;border-radius:0;margin:0}.lead-list-table{width:100%;border-collapse:collapse}.lead-list-table th{padding:12px 15px;background:#f8f9fc;color:#7d899d;text-transform:uppercase;letter-spacing:.06em;font-size:10px;text-align:left;border-bottom:1px solid var(--line)}.lead-list-table td{padding:14px 15px;border-bottom:1px solid #edf0f4;font-size:12px;vertical-align:middle}.lead-list-table tbody tr{cursor:pointer}.lead-list-table tbody tr:hover{background:#fafbfe}.lead-list-table td strong,.lead-list-table td small{display:block}.lead-list-table td small{color:var(--muted);font-size:10px;margin-top:3px}.list-stage{display:inline-flex;align-items:center;gap:7px;font-weight:700}.list-stage i,.report-block td i{width:7px;height:7px;border-radius:50%;background:var(--stage);display:inline-block;margin-right:7px}.attention{color:var(--warning);font-weight:700}.delete-lead-button{width:100%;border:1px dashed #e7bfc6;background:transparent;color:var(--danger);border-radius:10px;padding:11px;font-size:11px;font-weight:700;cursor:pointer}.delete-lead-button:hover{background:#fff0f2}.delete-confirm strong{color:var(--ink)}.report-period{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.print-report{display:none}.report-page{color:#17213a;background:#fff}.report-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #3956a6;padding-bottom:18px}.report-header>div>img{width:165px;height:auto}.report-header h1{font-size:25px;margin:18px 0 7px}.report-header p{font-size:12px;line-height:1.55;margin:0;color:#556079}.report-client-logo{max-width:130px;max-height:68px;object-fit:contain}.report-generated{text-align:right;font-size:9px;color:#7f899b;margin:8px 0 15px}.report-title{background:#3956a6;color:#fff;font-weight:800;font-size:11px;letter-spacing:.05em;padding:10px 13px;border-radius:7px 7px 0 0}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;background:#f4f6fb;padding:12px;margin-bottom:15px}.report-kpis article{border:1px solid #dce2ed;border-top:3px solid #7c4dff;border-radius:6px;background:#fff;padding:12px}.report-kpis article.green{border-top-color:#0ea878}.report-kpis article.red{border-top-color:#e43d57}.report-kpis article.blue{border-top-color:#238dd7}.report-kpis span{font-size:8px;color:#68748a;font-weight:800}.report-kpis strong{display:block;font-size:22px;margin-top:5px}.report-block{border:1px solid #dfe4ee;border-radius:7px;overflow:hidden;margin-bottom:14px;break-inside:avoid}.report-block h2{font-size:12px;margin:0;padding:10px 12px;background:#f3f5f9}.report-block table{width:100%;border-collapse:collapse}.report-block th,.report-block td{padding:8px 10px;border-bottom:1px solid #e5e9f1;text-align:left;font-size:9px}.report-block th{font-weight:800;color:#657087;background:#fafbfc}.report-block tr:last-child td{border-bottom:0}.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.report-empty{text-align:center!important;color:#8b95a6}.report-page footer{margin-top:18px;padding-top:10px;border-top:1px solid #dfe4ee;color:#7f899a;font-size:8px;text-align:center;letter-spacing:.1em}
@media(max-width:900px){.lead-list-table{min-width:820px}.client-company-logo{display:none}.toolbar-actions{flex-wrap:wrap}.search-box{flex:1 1 100%;width:100%}}
@media(max-width:680px){.client-view-nav{margin-top:0}.view-tab{flex:1}.report-period{grid-template-columns:1fr}.lead-list-panel{border-radius:11px}.list-head{padding:16px}.toolbar-actions>#reportButton{font-size:12px}.toolbar-actions>#lossReasonButton{font-size:0}.toolbar-actions>#lossReasonButton svg{width:17px}.client-stats span{font-size:10px}.client-stats strong{font-size:20px}}
@media print{@page{size:A4 portrait;margin:12mm}body.printing-report{background:#fff}.printing-report #login,.printing-report #app,.printing-report #toast,.printing-report .client-modal-scrim{display:none!important}.printing-report .print-report{display:block!important}.report-page{font-family:"Segoe UI",Arial,sans-serif}.report-columns{grid-template-columns:1fr 1fr}.report-block{break-inside:avoid}.report-kpis{break-inside:avoid}}

/* CRM 2.5 — distribuição, qualificação e dashboard */
.field-help{grid-column:1/-1;margin:-8px 0 8px;color:var(--muted);font-size:11px;line-height:1.45}.school-pill.positive{background:#e6f7ef;color:#117b5e}.school-pill.negative{background:#ffe9ed;color:#c52f49}.school-pill.neutral{background:#eef1f5;color:#657187}.school-text.yes{color:#117b5e!important}.school-text.no{color:#c52f49!important}.assignee-line{display:flex;align-items:center;gap:7px;margin:7px 0 2px;color:#5d6a80;font-size:10px;font-weight:700}.mini-avatar{width:20px;height:20px;border-radius:6px;background:#e8edfb;color:var(--brand);display:grid;place-items:center;font-size:8px;font-weight:800;overflow:hidden}.mini-avatar img{width:100%;height:100%;object-fit:cover}.loss-editor{display:grid;grid-template-columns:1fr auto;align-items:end;gap:9px;margin-top:12px;padding:12px;border:1px solid #f1cbd2;background:#fff7f8;border-radius:10px}.loss-editor .btn{height:40px}.lead-info-grid>div:nth-child(5),.lead-info-grid>div:nth-child(6){border-top:1px solid var(--line)}
.dashboard-shell{display:grid;gap:16px}.dashboard-filterbar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(4,minmax(125px,auto)) auto auto;align-items:end;gap:10px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow-sm)}.dashboard-filterbar>div{display:grid;gap:4px}.dashboard-filterbar>div strong{font-size:14px}.dashboard-filterbar label{display:grid;gap:5px;color:#7b8799;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.dashboard-filterbar input,.dashboard-filterbar select{height:40px;border:1px solid #d5dce8;border-radius:9px;background:#fff;padding:0 10px;color:var(--ink);font:inherit;font-size:11px;outline:none}.dashboard-filterbar input:focus,.dashboard-filterbar select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(57,86,166,.09)}.dashboard-loading,.dashboard-empty{display:grid;place-items:center;min-height:180px;background:#fff;border:1px solid var(--line);border-radius:15px;color:var(--muted);font-size:12px}.dashboard-content{display:grid;gap:16px}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.dashboard-kpis article{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 18px;box-shadow:var(--shadow-sm)}.dashboard-kpis article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--kpi)}.dashboard-kpis article.blue{--kpi:#238dd7}.dashboard-kpis article.purple{--kpi:#7c4dff}.dashboard-kpis article.green{--kpi:#0ea878}.dashboard-kpis article.red{--kpi:#e43d57}.dashboard-kpis span{display:block;color:#7d899b;font-size:9px;font-weight:800;letter-spacing:.07em}.dashboard-kpis strong{display:block;margin:7px 0 3px;color:var(--ink);font-size:28px;letter-spacing:-.04em}.dashboard-kpis small{color:var(--muted);font-size:10px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;box-shadow:var(--shadow-sm);min-height:275px}.dashboard-card.wide{grid-column:1/-1;min-height:300px}.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.dashboard-card-head span{display:block;color:var(--brand);font-size:9px;font-weight:800;letter-spacing:.1em}.dashboard-card-head h2{margin:4px 0 0;font-size:16px}.dashboard-card-head>strong{font-size:24px}.rank-bars{display:grid;gap:13px}.rank-row>div{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:5px;font-size:11px}.rank-row>div span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-row>div strong{font-size:11px}.rank-row>i{display:block;height:7px;background:#edf0f5;border-radius:9px;overflow:hidden}.rank-row>i>b{display:block;height:100%;border-radius:9px}.dashboard-card .dashboard-empty{border:0;min-height:150px}.trend-chart{height:210px;display:flex;align-items:flex-end;gap:5px;border-bottom:1px solid #dfe4ed;padding:22px 4px 23px}.trend-column{height:100%;flex:1;min-width:5px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.trend-column>i{width:min(18px,72%);min-height:5px;background:linear-gradient(180deg,#6c83d0,#3956a6);border-radius:5px 5px 1px 1px;transition:.2s}.trend-column>span{font-size:8px;color:#68758a;margin-bottom:4px}.trend-column>small{position:absolute;top:calc(100% + 6px);font-size:8px;color:#8b95a6;white-space:nowrap}
@media(max-width:1180px){.dashboard-filterbar{grid-template-columns:repeat(4,1fr)}.dashboard-filterbar>div{grid-column:1/-1}.dashboard-filterbar .btn{width:100%}.dashboard-grid{grid-template-columns:1fr}.dashboard-card.wide{grid-column:auto}}
@media(max-width:720px){.dashboard-filterbar{grid-template-columns:1fr 1fr}.dashboard-filterbar>div,.dashboard-filterbar label:nth-of-type(3),.dashboard-filterbar label:nth-of-type(4){grid-column:1/-1}.dashboard-kpis{grid-template-columns:1fr 1fr}.dashboard-card{padding:15px}.trend-chart{gap:3px}.trend-column>span{display:none}.loss-editor{grid-template-columns:1fr}.loss-editor .btn{width:100%}.lead-info-grid>div{padding-left:0!important;padding-right:12px!important}.lead-info-grid>div:nth-child(even){padding-left:12px!important}}
/* v2.6 — navegação lateral e mapeamento genérico */
.client-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:35}.client-workspace{margin-left:var(--sidebar);min-height:100vh;transition:margin-left .2s}.client-sidebar .sidebar-nav{overflow:auto}.nav-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:#f3f5fa;color:var(--brand);font-size:13px}.sidebar-collapse{margin-left:auto;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:8px;width:28px;height:28px;cursor:pointer;font-size:20px;line-height:1}.admin-sidebar,.client-sidebar,.admin-workspace{transition:width .2s,margin-left .2s}.sidebar-collapsed{--sidebar:76px}.sidebar-collapsed .sidebar-brand{padding:0 15px;justify-content:center}.sidebar-collapsed .sidebar-brand img{display:none}.sidebar-collapsed .sidebar-collapse{margin:0;transform:rotate(180deg)}.sidebar-collapsed .sidebar-label,.sidebar-collapsed .sidebar-link>span:not(.nav-icon):not(.side-dot),.sidebar-collapsed .sidebar-security{display:none}.sidebar-collapsed .sidebar-link{justify-content:center;padding:12px}.sidebar-collapsed .side-dot{margin:0}.mapping-actions,.mapping-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}.mapping-area{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:12px 0 18px}.mapping-head{margin:0;padding:13px 15px;background:#f7f9fc;border-bottom:1px solid var(--line)}.mapping-head span{font-size:10px;color:var(--muted)}.mapping-row{display:grid;grid-template-columns:minmax(180px,1fr) 30px minmax(210px,1fr);align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid #edf0f4}.mapping-row:last-child{border-bottom:0}.mapping-row>div{display:grid;gap:3px}.mapping-row>div strong{font-size:9px;color:var(--brand);text-transform:uppercase;letter-spacing:.08em}.mapping-row>div span{font-size:12px;font-weight:700}.mapping-row>div small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mapping-row>span{text-align:center;color:#a2acbb}.mapping-row select{margin:0}.source-wizard .mapping-area:empty{display:none}.data-table td small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.custom-pill.positive{background:#e6f7ef;color:#087a5b}.custom-pill.negative{background:#fff0f2;color:#c8324b}.custom-pill.neutral{background:#eef1f6;color:#5f6b80}.lead-hero small{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.client-brand .mobile-menu{margin-right:12px}
@media(max-width:850px){.client-sidebar{transform:translateX(-100%);transition:transform .2s}.menu-open .client-sidebar{transform:translateX(0)}.client-workspace{margin-left:0}.client-topbar .mobile-menu{display:block}.sidebar-collapse{display:none}.mapping-row{grid-template-columns:1fr}.mapping-row>span{display:none}}

/* Vetores consistentes, carregamento e navegação do Kanban */
@font-face{font-family:"Source Sans 3";src:url("fonts/source-sans-3-400.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("fonts/source-sans-3-600.woff2") format("woff2");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("fonts/source-sans-3-700.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("fonts/source-sans-3-800.woff2") format("woff2");font-style:normal;font-weight:800;font-display:swap}
html,body,button,input,textarea,select{font-family:"Source Sans 3","Segoe UI",Arial,sans-serif}html,body{font-weight:400;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}strong,h1,h2,h3,.btn,.sidebar-link,.tab{font-family:"Source Sans 3","Segoe UI",Arial,sans-serif}.btn,.sidebar-link,.tab{font-weight:700}h1,h2,h3{font-weight:800}
svg{shape-rendering:geometricPrecision}.nav-icon{font-size:0}.nav-icon svg,.sidebar-collapse svg,.mobile-menu svg,.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-collapse,.mobile-menu,.icon-button{display:inline-grid;place-items:center}.sidebar-collapse{font-size:0}.sidebar-collapsed .sidebar-collapse{transform:rotate(180deg)}.mobile-menu{width:34px;height:34px;padding:0}.icon-button{font-size:0}.icon-button svg{width:17px;height:17px}
.board-top-scroll{height:15px;overflow-x:auto;overflow-y:hidden;margin:0 0 10px;position:sticky;top:76px;z-index:18;border-radius:8px;background:#e5e9f1;scrollbar-color:#8791a1 #e5e9f1;scrollbar-width:auto}.board-top-scroll>div{height:1px}.board-top-scroll::-webkit-scrollbar{height:12px}.board-top-scroll::-webkit-scrollbar-track{background:#e5e9f1;border-radius:8px}.board-top-scroll::-webkit-scrollbar-thumb{background:#8791a1;border:3px solid #e5e9f1;border-radius:8px}.board{scrollbar-width:none}.board::-webkit-scrollbar{display:none}
.mapping-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 9px;font-size:10px;font-weight:700}.mapping-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.mapping-status.ready{background:#e8f7f1;color:#087a5b}.mapping-status.pending,.status.pending{background:#fff4dd;color:#a45e00}.status.pending:before{background:currentColor}
.btn.is-loading{position:relative;padding-left:38px!important}.btn.is-loading:before{content:"";position:absolute;left:15px;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:crm-spin .7s linear infinite}.image-field [data-image-label]{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-field input[type=file]:focus+span{outline:2px solid var(--brand);outline-offset:2px}
@keyframes crm-spin{to{transform:rotate(360deg)}}
@media(max-width:680px){.board-top-scroll{top:66px}.nav-icon svg{width:19px;height:19px}}

/* v2.8 — refinamento visual, lembretes e cadastro manual */
html,body{font-size:16px;font-synthesis:none;letter-spacing:0}body,button,input,textarea,select{font-weight:400}.eyebrow,.sidebar-label,.topbar-context span{letter-spacing:.09em}.sidebar-link,.btn,.tab,.status,.mapping-status{font-weight:700}.lead-name,.column-head,.client-brand strong,.client-user strong{font-weight:700}.admin-head h1,.crm-heading h1,h1,h2,h3{font-weight:800;letter-spacing:-.025em}.admin-head p,.crm-heading p,.field-help{line-height:1.55}
.mobile-menu{display:none!important}.sidebar-brand{gap:10px;overflow:hidden}.sidebar-brand img{max-width:calc(100% - 38px);height:auto;object-fit:contain}.admin-topbar,.client-topbar{min-width:0}.top-actions,.client-user{flex:0 0 auto}.topbar-context,.client-brand{min-width:0}.topbar-context strong,.client-brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-link>svg,.nav-icon svg{width:19px;height:19px;fill:none!important;stroke:currentColor!important;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision;flex:0 0 auto}.sidebar-link .nav-icon{flex:0 0 25px}.sidebar-link{min-height:44px;font-size:13px}.sidebar-label{font-size:10px}.nav-badge{margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:#e43d57;color:#fff;display:grid;place-items:center;font-size:10px}.sidebar-collapsed .nav-badge{position:absolute;right:7px;top:5px}.sidebar-collapsed .sidebar-link{position:relative}
.stat-icon svg,.btn svg{fill:none!important;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stat-icon svg{width:19px;height:19px}
.icon-label{display:inline-flex!important;align-items:center;justify-content:center;gap:7px}.icon-label svg{width:16px;height:16px;flex:0 0 auto}
.security-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.notification-button{position:relative;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--brand);display:grid;place-items:center;cursor:pointer}.notification-button:hover{background:var(--brand-soft)}.notification-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-button b{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e43d57;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:9px}
.toolbar-actions .btn{min-height:42px;white-space:nowrap}.toolbar-actions .btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.toolbar-actions #addLeadButton{display:inline-flex;align-items:center;gap:7px}.card-menu{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:0}.card-menu:hover{background:#f1f4f9;color:var(--brand)}.card-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dashboard-filterbar{grid-template-columns:minmax(250px,1.5fr) repeat(2,minmax(135px,.7fr)) repeat(2,minmax(165px,1fr));grid-auto-flow:row;align-items:end}.dashboard-filterbar>.btn{min-height:40px}.dashboard-filterbar label{min-width:0}.dashboard-filterbar select,.dashboard-filterbar input{width:100%;min-width:0}.dashboard-filterbar>div{min-width:220px}.dashboard-filterbar .btn{justify-self:stretch}.dashboard-filterbar .btn:nth-last-child(2){grid-column:auto}.dashboard-filterbar .btn:last-child{grid-column:auto}.dashboard-card,.client-stats,.lead-list-panel,.panel{box-shadow:0 8px 28px rgba(27,42,80,.07)}
.report-form .report-period{align-items:end}.report-form .field select,.report-form .field input{width:100%;height:44px}.report-form .modal-actions{padding-top:5px}.report-form .modal-actions .btn{min-width:150px}.client-modal .btn{min-height:40px}.client-modal select,.client-modal input,.client-modal textarea{border:1px solid #d8deea;border-radius:9px;background:#fff;color:var(--ink)}
.reminder-composer{grid-column:1/-1}.reminder-fields{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(220px,1.25fr);gap:10px;align-items:end}.reminder-composer form>.btn{margin-top:10px}.lead-reminder-list{display:grid;gap:7px;margin-top:12px}.lead-reminder-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fafbfe}.lead-reminder-row.due{border-color:#f1bfc8;background:#fff5f6}.lead-reminder-row>div{display:grid;gap:3px}.lead-reminder-row strong{font-size:11px}.lead-reminder-row small,.reminder-empty{font-size:9px;color:var(--muted)}.reminder-manager>p,.modal-intro{color:var(--muted);font-size:12px;line-height:1.55}.reminder-list{display:grid;gap:10px}.reminder-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:11px;background:#fff}.reminder-item.due{border-left-color:#e43d57;background:#fff8f9}.reminder-item>div:first-child{min-width:0}.reminder-item span{font-size:8px;font-weight:800;letter-spacing:.08em;color:var(--brand)}.reminder-item.due span{color:#c8324b}.reminder-item h3{margin:4px 0;font-size:14px}.reminder-item p{margin:0 0 5px;font-size:11px}.reminder-item small{color:var(--muted);font-size:9px}.reminder-item>div:last-child{display:flex;gap:7px;flex:0 0 auto}
.status small{display:none}.data-table td{line-height:1.45}.mapping-status,.status{font-size:10px}.admin-root .table-wrap{max-width:100%}.admin-root .data-table{min-width:760px}.admin-root .actions{min-width:145px}.sidebar-collapsed .sidebar-brand img{display:none}
@media(max-width:1180px){.dashboard-filterbar{grid-template-columns:repeat(3,minmax(150px,1fr))}.dashboard-filterbar>div{grid-column:1/-1}.dashboard-filterbar>.btn{width:100%}.client-stats{grid-template-columns:repeat(3,minmax(130px,1fr))}.client-stats>div{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:850px){.client-topbar .mobile-menu{display:inline-grid!important}.sidebar-brand img{max-width:100%}.reminder-fields{grid-template-columns:1fr}.reminder-item{align-items:flex-start;flex-direction:column}.reminder-item>div:last-child{width:100%}.reminder-item>div:last-child .btn{flex:1}}
@media(max-width:680px){.admin-topbar .mobile-menu{display:inline-grid!important}.dashboard-filterbar{grid-template-columns:1fr 1fr}.dashboard-filterbar>div{grid-column:1/-1}.dashboard-filterbar label{grid-column:auto!important}.dashboard-filterbar>.btn{grid-column:1/-1!important}.client-user>div:not(.client-user-avatar){display:none}.client-user .btn{margin-left:0}.notification-button{width:36px;height:36px}.toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr}.toolbar-actions .search-box{grid-column:1/-1}.toolbar-actions .btn{width:100%;justify-content:center}.crm-heading h1{font-size:24px}.client-stats{grid-template-columns:1fr 1fr}.client-stats article:nth-child(3){grid-column:1/-1}.lead-info-grid{grid-template-columns:1fr}.lead-info-grid>div{border-right:0!important;border-top:1px solid var(--line);padding:12px 0!important}}

/* v2.9 — legibilidade e responsabilidades condicionais */
html,body{font-size:16px;letter-spacing:.005em}.lead-name,.data-table td,.field,input,select,textarea{letter-spacing:.002em}.eyebrow,.sidebar-label,.topbar-context span{letter-spacing:.075em}.assignees-disabled .lead-info-grid>div:nth-child(5){display:none}.assignees-disabled .lead-info-grid>div:nth-child(6){border-left:0}.assignees-disabled .lead-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* v2.9.1 — sistema tipográfico nativo e legível */
html,body,button,input,textarea,select{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html,body{font-size:16px;font-weight:400;letter-spacing:0;text-rendering:auto;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}
strong,h1,h2,h3,.btn,.sidebar-link,.tab{font-family:inherit}
h1,h2,h3,.admin-head h1,.crm-heading h1{font-weight:700;letter-spacing:-.018em}
.btn,.sidebar-link,.tab,.status,.mapping-status,.lead-name,.column-head,.client-brand strong,.client-user strong{font-weight:600;letter-spacing:0}
.eyebrow,.sidebar-label,.topbar-context span{font-weight:600;letter-spacing:.045em}

/* Nenhum texto operacional deve depender de tipos menores que 11 px. */
.topbar-context span,.user-summary small,.client-brand small,.client-user small,.sidebar-security small,.client-title p,.client-metric span,.client-card-footer,.status,.mapping-status,.data-table th,.data-table td small,.mapping-head span,.mapping-row>div strong,.mapping-row>div small,.lead-hero small,.dashboard-filterbar label,.dashboard-kpis span,.dashboard-kpis small,.dashboard-card-head span,.trend-column>span,.trend-column>small,.lead-list-table th,.lead-list-table td small,.report-generated,.lead-reminder-row small,.reminder-empty,.reminder-item span,.reminder-item small{font-size:11px;line-height:1.35}
.stat-copy span,.section-bar span,.sidebar-link,.client-stats span,.client-stats>div,.field,.check,.admin-head p,.client-detail-identity p,.tab,.data-table td,.mapping-row>div span,.dashboard-filterbar input,.dashboard-filterbar select,.rank-row>div,.rank-row>div strong,.lead-list-table td,.meta,.drawer .meta,.contact,.empty-column{font-size:13px;line-height:1.45}

.sidebar-label{font-size:11px;line-height:1.4}.sidebar-link{min-height:46px;padding:12px 13px}
.topbar-context strong{font-size:15px}.user-summary strong,.client-user strong{font-size:13px}.client-brand strong{font-size:14px}
.admin-head h1,.crm-heading h1{font-size:28px;line-height:1.2}.section-bar h2{font-size:18px}.stat-copy{gap:7px}.stat-copy strong{font-size:30px;font-weight:700;letter-spacing:-.02em}
.client-title h3{font-size:16px;line-height:1.4;font-weight:700}.client-title p{line-height:1.4}.client-metric{gap:5px}.client-metric strong{font-size:18px;font-weight:700}.client-card-footer{font-weight:600}.status,.mapping-status{padding:6px 10px}
.data-table th{font-weight:600;letter-spacing:.035em}.data-table td{letter-spacing:0}.btn{font-size:14px;line-height:1.2}.btn.small{font-size:12px}.tab{font-size:13px}
.client-stats span{font-weight:600}.client-stats strong{font-size:22px;font-weight:700}.column-head{font-size:13px}.lead-name{font-size:15px;line-height:1.35}.pill{font-size:12px;font-weight:600;line-height:1.3}
.dashboard-filterbar label,.dashboard-kpis span,.dashboard-card-head span{text-transform:none;letter-spacing:.025em}.dashboard-kpis strong{font-size:30px;font-weight:700;letter-spacing:-.02em}.dashboard-card-head h2{font-size:18px}.rank-row>div,.rank-row>div strong{font-size:13px}
.login-copy .eyebrow,.eyebrow,.brand-kicker{font-size:11px;font-weight:600;letter-spacing:.055em}.sidebar-security strong{font-size:12px}.user-avatar{font-size:12px;font-weight:600}
.column-head .count{font-size:11px}.card-contact{font-size:12px;line-height:1.4}.lead-card-footer,.purchase-badge{font-size:11px;line-height:1.4}.assignee-line{font-size:11px;font-weight:600}
.drawer-head.premium h2{font-size:25px;font-weight:700;letter-spacing:-.018em}.drawer-head.premium p,.lead-hero span{font-size:12px;line-height:1.45}.stage-label{font-size:11px;font-weight:600;letter-spacing:.04em}.lead-hero strong{font-size:14px}.quick strong{font-size:12px}.quick small{font-size:11px;line-height:1.35}.lead-info-grid span{font-size:11px;font-weight:600;letter-spacing:.035em}.lead-info-grid strong{font-size:13px}.section-title span{font-size:11px;font-weight:600;letter-spacing:.04em}.section-title h3{font-size:16px}.text-button{font-size:12px;font-weight:600}.purchase-control strong{font-size:12px}.purchase-control small{font-size:11px}.note-composer textarea{font-size:13px;line-height:1.5}.note-composer>div span{font-size:11px}.timeline-item-head strong{font-size:13px}.timeline-item-head time{font-size:11px}.timeline-item p{font-size:12px}.timeline-item small{font-size:11px}.timeline-empty,.timeline-loading{font-size:12px}.loss-reason-summary span{font-size:11px;font-weight:600;letter-spacing:.04em}.loss-reason-summary strong{font-size:12px}.reminder-item h3{font-size:15px}.reminder-item p,.reminder-manager>p,.modal-intro{font-size:13px}

@media(max-width:680px){.admin-head h1,.crm-heading h1{font-size:25px}.stat-copy strong{font-size:26px}.client-title h3{font-size:15px}}

/* v3.0 — painel do lead, campos coloridos e legibilidade operacional */
.custom-pill{--field-color:#4f46e5;background:color-mix(in srgb,var(--field-color) 14%,white)!important;color:color-mix(in srgb,var(--field-color) 78%,#111827)!important;border:1px solid color-mix(in srgb,var(--field-color) 28%,white);padding:5px 9px;font-weight:650}.field-color-preview{display:inline-block;width:13px;height:13px;border-radius:4px;background:var(--field-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--field-color) 18%,white);vertical-align:-2px;margin-right:7px}
.color-rules-editor{grid-column:1/-1;margin:8px 0 18px;padding:16px;border:1px solid #dfe4ec;border-radius:12px;background:#f8fafc}.color-rules-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.color-rules-head strong{font-size:13px;color:#27364f}.color-rules-head p{margin:4px 0 0;font-size:11px;line-height:1.45;color:var(--muted)}.color-rule-row{display:grid;grid-template-columns:150px minmax(210px,1fr) 78px 34px;align-items:end;gap:10px;padding:12px;background:#fff;border:1px solid #e2e7ef;border-radius:10px;margin-top:9px}.color-rule-row .field{margin:0}.color-rule-row textarea{min-height:62px;resize:vertical}.color-rule-row input[type=color]{height:42px;padding:4px}.rule-remove{margin-bottom:1px;color:#b4233c}.field-flags{margin-bottom:6px}
@media(max-width:680px){.color-rules-head{align-items:stretch;flex-direction:column}.color-rule-row{grid-template-columns:1fr 74px 34px}.color-rule-row .rule-terms{grid-column:1/-1}.color-rule-row .field:first-child{grid-column:1/-1}}
.drawer{width:min(760px,100%);background:#f4f6f9}.drawer-head.premium{padding:26px 30px 22px;align-items:center}.drawer-identity{display:flex;align-items:center;gap:15px;min-width:0}.drawer-identity>div:last-child{min-width:0}.drawer-identity .lead-avatar{width:48px;height:48px;border-radius:14px;font-size:18px;flex:0 0 auto}.drawer-head.premium h2{margin:7px 0 3px;font-size:26px;line-height:1.15;white-space:normal}.drawer-head.premium p{font-size:12px}.drawer-head .icon-button{width:38px;height:38px;border-radius:10px;background:#f3f5f8;color:#667085;flex:0 0 auto}.drawer-head .icon-button:hover{background:#e8ecf2;color:#233252}.quick-actions{padding:18px 30px;background:#fff;border-bottom:1px solid var(--line)}.quick{min-height:58px;border-radius:12px;padding:11px 13px}.quick>svg{width:22px;height:22px;stroke-width:1.8}.quick strong{font-size:13px}.quick small{font-size:12px}.lead-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 18px 4px}.summary-card,.custom-fields-section{background:#fff;border:1px solid #dde3ec;border-radius:14px;padding:17px 18px;box-shadow:0 5px 18px rgba(24,38,70,.055)}.summary-title{font-size:12px;font-weight:700;color:#34435e;margin-bottom:9px}.info-row{display:grid;grid-template-columns:minmax(105px,.72fr) minmax(0,1.28fr);align-items:start;gap:12px;padding:10px 0;border-top:1px solid #edf0f4}.info-row span{font-size:12px;color:#738096}.info-row strong{font-size:13px;line-height:1.4;text-align:right;overflow-wrap:anywhere}.custom-fields-section{grid-column:1/-1}.custom-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.custom-field-card{--field-color:#4f46e5;position:relative;overflow:hidden;border:1px solid color-mix(in srgb,var(--field-color) 26%,#e3e7ee);border-radius:11px;padding:12px 13px;background:color-mix(in srgb,var(--field-color) 8%,white);display:grid;gap:5px}.custom-field-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--field-color)}.custom-field-card span{font-size:11px;font-weight:650;color:color-mix(in srgb,var(--field-color) 75%,#334155)}.custom-field-card strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}.loss-reason-summary{margin:14px 18px 0;border:1px solid #f0cbd1;border-radius:11px}.drawer-grid{padding:14px 18px 20px}.drawer-panel{border-radius:14px;padding:20px}.section-title{margin-bottom:16px}.section-title span{font-size:11px}.section-title h3{font-size:17px}.timeline-item{grid-template-columns:36px 1fr;gap:12px}.timeline-icon{width:35px;height:35px;border-radius:10px}.timeline-icon svg{width:16px;height:16px}.timeline-item:not(:last-child):before{left:17px;top:35px}.timeline-item-head strong{font-size:13px}.timeline-item p{font-size:13px}.note-composer textarea{min-height:105px;font-size:14px}.purchase-control strong{font-size:13px}.purchase-control small{font-size:12px}
@media(max-width:680px){.drawer-head.premium,.quick-actions{padding-left:18px;padding-right:18px}.lead-summary{grid-template-columns:1fr;padding:14px 12px 2px}.custom-fields-section{grid-column:auto}.custom-fields-grid{grid-template-columns:1fr}.drawer-grid{padding:12px}.info-row{grid-template-columns:1fr;gap:3px}.info-row strong{text-align:left}.drawer-head.premium h2{font-size:22px}}
