:root{--green:#5939b9;--muted:#676d80;--line:#e7e8f0;color:#25283c;background:#f6f7fb;--shell-width:248px}
body{color:#25283c;background:#f6f7fb}.sidebar{z-index:40;width:var(--shell-width);padding:24px 18px 18px;background:#fff;border-right:1px solid var(--line);height:100dvh;overflow-y:auto;transition:width .2s ease,padding .2s ease;gap:0}.sidebar-head{display:flex;align-items:center;justify-content:space-between;min-height:55px;gap:10px}.sidebar .brand img{width:44px}.shell-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#6a6582;padding:8px}.shell-icon-button:hover{background:#f2eefa;color:#5939b9;border-color:#d8ceed}.company-label{margin-top:28px;margin-bottom:9px;color:#77798d;font-weight:700;font-size:10px;letter-spacing:1.2px}.sidebar select{background:#f7f7fb;border:1px solid #e9e8f2;border-radius:11px;color:#34304a;padding:12px;font-weight:600;font-size:13px}.nav-section-label{font-size:9px;letter-spacing:1.4px;color:#9394a5;font-weight:700;margin:27px 10px 10px}.sidebar nav{display:grid;gap:5px;margin:0}.sidebar nav button{width:100%;min-height:46px;padding:12px;gap:12px;border-radius:11px;color:#66677b;font-size:12px;font-weight:500;position:relative}.sidebar nav button:hover{background:#f7f5fc}.sidebar nav button.active{background:#eee8fa;color:#5839aa;font-weight:700}.sidebar nav button.active:before{content:'';position:absolute;left:-18px;top:13px;bottom:13px;width:3px;border-radius:0 3px 3px 0;background:#6446c2}.sidebar .nav-icon{width:20px;height:20px;font-size:20px;display:inline-flex;flex-shrink:0}.nav-label{white-space:nowrap}.side-footer{padding:20px 4px 2px;margin-top:auto;border-top:1px solid #f0eef5;font-size:11px;min-width:0}.side-footer>div{min-width:0}.side-footer small{font-size:10px;color:#7d7b91}.avatar{background:#ede9f7;color:#6846b8}.company-shortcut{display:none}
main{min-width:0;flex:1;width:calc(100% - var(--shell-width));margin-left:var(--shell-width);padding:28px 32px 32px;transition:margin-left .2s ease,width .2s ease}main>header{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:24px;gap:18px}.shell-header-left{display:flex;gap:16px;align-items:center;min-width:0}.shell-heading{min-width:0}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#8b87a1}h1{font-size:28px;letter-spacing:-1px;margin:6px 0;color:#28223e}.page-subtitle{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.header-actions{flex-shrink:0;gap:8px}.primary,.secondary,.danger{border-radius:10px;min-height:40px;font-size:12px;padding:10px 15px;transition:background .15s,box-shadow .15s}.primary{background:#6040bb;box-shadow:0 3px 8px #51329b18}.primary:hover{background:#4f2f9f;box-shadow:0 4px 12px #51329b25}.secondary{color:#5d5672;border-color:#e1deeb;background:#fff}.secondary:hover{background:#f7f4fd;border-color:#cfc4e8}.danger{color:#b64646;background:#fff0f0}.text-button{color:#6440b4}.demo-notice{font-size:11px;color:#716d83;background:#faf9fd;border-color:#e8e4f1;border-radius:10px;margin-bottom:24px;padding:10px 14px}.stat,.panel,.integration{border:1px solid #e8e7ef;border-radius:16px;box-shadow:0 3px 16px #32235403}.stat{padding:23px}.stat strong{color:#352c51}.stat.accent{background:linear-gradient(130deg,#f0eafa,#f8f4fe);border-color:#e6dcf5}.stat-label{font-size:12px}.stat small{color:#82788e}.panel h2,.integration h2{color:#352e4b;font-size:17px}.welcome{background:linear-gradient(120deg,#3f2b6d,#62419b);border-radius:16px;padding:28px}.welcome p{color:#ded5ee}.welcome button{background:#fff;color:#5e389a;border:0}.welcome button:hover{background:#f2ecfc}.welcome h2{color:#fff}.bar span{background:#9d85d2}.bar{background:#f0edf7}.badge{background:#f0ebf9;color:#7555a5;border-radius:6px}.badge.orange{background:#fff3e8;color:#a56a30}.notes{background:#f7f6fb;color:#71697f;border-radius:11px}.table-wrap{padding:12px 20px}th{color:#8a8199;font-size:10px}td{border-color:#f0edf5}tbody tr:hover{background:#fcfbff}
.toolbar{gap:14px;margin-bottom:20px}.search{border-radius:11px;border-color:#e3dfec;min-height:42px;padding:11px 15px;color:#342b4b}.search:focus,.field input:focus,.field select:focus,.field textarea:focus,#message:focus{outline:2px solid #a995d8;outline-offset:1px;border-color:#bfa9e1}.field{font-weight:500;color:#554c67}.field input,.field select,.field textarea{border-radius:10px;border-color:#e2deeb;color:#383047}.funnel-toolbar{background:#fff;border:1px solid #e8e5ef;padding:14px 18px;border-radius:14px;box-shadow:0 2px 12px #32235403}.funnel-toolbar .field{margin:0;min-width:220px;font-size:10px;color:#7d738e;gap:5px}.funnel-toolbar .field select{border:0;padding:3px 22px 3px 0;max-width:100%;font-size:13px;font-weight:700;color:#4d3b68;background:#fff}.pipeline-caption{font-size:12px;color:#8a8096;margin:4px 0 20px}.board{gap:16px;scrollbar-color:#d4c8e9 transparent;padding-bottom:20px}.column{background:#eeedf5;border:1px solid #e7e4ef;border-radius:15px;padding:13px;min-width:270px;max-width:290px;flex-basis:270px}.column-head{font-size:12px;color:#514561;padding:0 2px 5px}.column-total{padding:0 2px 12px;color:#7c7089;font-size:11px}.count{background:#fff;color:#77648d;border-radius:7px;min-width:22px;text-align:center;padding:4px 6px}.dot{background:#a68bcf}.dot.won{background:#3caa82}.dot.lost{background:#d88181}.stage-edit{color:#ab9cbd}.lead-card{border:1px solid #e6e1ee;border-radius:12px;box-shadow:0 2px 6px #3c285408;padding:15px;margin-bottom:11px;transition:box-shadow .15s,border-color .15s}.lead-card:hover{border-color:#c8b6e1;box-shadow:0 5px 16px #3c285413}.lead-card h3 .text-button{color:#3f3254;font-size:13px!important;font-weight:700}.lead-card p{color:#786d84}.lead-card .value{font-size:12px;color:#574168}.card-move{color:#786b86}.card-move select{border-color:#ece8f2;border-radius:7px;background:#faf9fd;color:#81708f}.column-add{color:#8d7b9d;border:1px dashed #d7cce4;border-radius:9px;background:transparent;min-height:36px;margin-top:8px}.column-add:hover{background:#fff;color:#6440b4}.column.dragover{outline:2px dashed #9573c9;background:#ece3fa}.column-empty{color:#aa9bb8;font-size:11px}
.chat-layout{grid-template-columns:290px minmax(0,1fr);height:clamp(480px,calc(100dvh - 245px),800px);min-height:480px}.chat-list{padding:12px;overflow-y:auto;border-right:1px solid #eeebf4}.chat-item{padding:14px 12px;margin-bottom:4px;border-radius:11px;color:#4d405e}.chat-item:hover{background:#faf8fe}.chat-item.active{background:#f0eafa;box-shadow:inset 3px 0 #8b67ca}.chat-item strong{font-size:12px}.chat-item small{font-size:10px;color:#91819e;line-height:1.5}.chat-preview{color:#83728f!important}.chat-area{min-width:0;min-height:0;padding:0}.chat-area>.panel-head{padding:18px 22px;margin:0;border-bottom:1px solid #eeebf4;gap:12px}.chat-area>.panel-head h3{font-size:13px;color:#4d3c60}.messages{min-height:200px;max-height:none;overflow:auto;padding:22px;background:#f8f6fc}.bubble{background:#fff;border:1px solid #eee7f5;border-radius:15px 15px 15px 4px;color:#594b65;font-size:12px;line-height:1.6;padding:11px 15px;max-width:80%;box-shadow:0 2px 4px #4d2f6503}.bubble.out{background:#ede5f9;border-color:#e5d9f4;border-radius:15px 15px 4px 15px}.bubble small{color:#a08aad}.bubble img,.bubble video{border-radius:9px}.chat-compose{padding:16px 20px;background:#fff;border-top:1px solid #ede7f3}.chat-compose textarea#message{border:1px solid #e3dbea;border-radius:11px;padding:12px;min-height:58px;font-size:12px;line-height:1.6;color:#594b65}.chat-reply{color:#9471b5}.integration .symbol{background:#f1ebfa;color:#8b66bd}.step-number{background:#eee7f8;color:#8b6aaf}.agenda-date{background:#efe8f8;color:#8865ad}.dialog-actions{padding-top:18px;border-top:1px solid #f1ecf6}dialog{border-color:#e7dfef;border-radius:18px;color:#4b3c59;box-shadow:0 24px 90px #251b3b35}dialog::backdrop{background:#20143170;backdrop-filter:blur(3px)}dialog h2{font-size:19px;color:#473053}#toast{background:#3c2859;z-index:100}.auth-screen{background:radial-gradient(ellipse at 12% 8%,#e6ddf5,transparent 60%),#f8f6fc}.auth-card{border-color:#e8e0f0;box-shadow:0 20px 70px #583b7b12}.auth-card h1{color:#503468}.auth-visible>.shell-backdrop,.booting>.shell-backdrop{display:none}.shell-backdrop{display:none}
@media(min-width:901px){body.sidebar-collapsed{--shell-width:80px}.sidebar-collapsed .sidebar{padding:22px 12px}.sidebar-collapsed .sidebar-head{flex-direction:column;gap:18px}.sidebar-collapsed .sidebar .brand img{width:38px}.sidebar-collapsed .company-label,.sidebar-collapsed #company,.sidebar-collapsed .nav-section-label,.sidebar-collapsed .nav-label,.sidebar-collapsed .side-footer>div{display:none}.sidebar-collapsed .company-shortcut{display:flex;margin:23px auto 15px}.sidebar-collapsed .sidebar nav button{padding:13px 17px;justify-content:center}.sidebar-collapsed .sidebar nav button.active:before{left:-12px}.sidebar-collapsed .side-footer{justify-content:center;padding:20px 0 2px}.sidebar-collapsed .side-footer .avatar{width:32px;height:32px}}
@media(max-width:1200px) and (min-width:901px){main{padding:25px 24px}.chat-layout{grid-template-columns:245px minmax(0,1fr)}.page-subtitle{font-size:11px}.header-actions .primary{padding:10px 12px}}
@media(max-width:900px){body{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;max-width:85vw;padding:22px 18px;height:100dvh;transform:translateX(-105%);transition:transform .2s ease;box-shadow:12px 0 50px #281e4518}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open{overflow:hidden}.sidebar-open .shell-backdrop{display:block;position:fixed;inset:0;background:#21163165;backdrop-filter:blur(2px);z-index:35;border:0;padding:0;width:100%;height:100dvh}.sidebar .nav-icon,.sidebar .side-footer{display:flex}.sidebar .side-footer{margin-top:auto}.sidebar nav{display:grid;overflow:visible}.sidebar nav button{white-space:normal;font-size:12px}.sidebar .company-label{margin-top:28px}.sidebar .brand{font-size:32px}main{margin-left:0;width:100%;padding:24px 20px}main>header{align-items:flex-start;flex-wrap:wrap;gap:18px;padding-bottom:20px}.shell-header-left{gap:12px}.shell-heading h1{font-size:25px}.header-actions{margin-left:50px;justify-content:flex-start}.page-subtitle{font-size:11px}.eyebrow{font-size:8px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-two,.integration-grid{grid-template-columns:1fr}.chat-layout{height:auto;min-height:0;grid-template-columns:1fr}.chat-list{max-height:200px;border:0;border-bottom:1px solid #e8deef}.chat-area>.panel-head{padding:16px}.messages{height:52dvh;flex:auto;min-height:280px;max-height:600px;padding:16px}.chat-compose{padding:14px}.funnel-toolbar{align-items:flex-start}.funnel-toolbar .field{min-width:0;width:100%}.funnel-toolbar .pipeline-actions{gap:8px}.funnel-toolbar .secondary{font-size:11px}.demo-notice{font-size:10px}.company-shortcut{display:none}}
@media(max-width:480px){main{padding:20px 14px}.shell-heading h1{font-size:22px}.page-subtitle{max-width:240px}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:24px}.panel{padding:18px}.chat-layout{padding:0}.chat-item{padding:12px}.bubble{max-width:90%}.column{flex-basis:260px;min-width:260px}.toolbar{gap:10px}.table-wrap{padding:10px}.welcome{padding:22px}.header-actions{margin-left:50px}.header-actions .primary{font-size:11px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.sidebar,main,.primary,.secondary,.danger,.lead-card{transition:none}dialog::backdrop,.shell-backdrop{backdrop-filter:none}}
/* Cartões compactos: informações e controles permanecem disponíveis. */
.column{min-width:250px;max-width:270px;flex-basis:250px;padding:11px}
.lead-card{padding:10px 12px;margin-bottom:8px;border-radius:10px}
.lead-card h3{margin:6px 0 3px;line-height:1.3}
.lead-card h3 .text-button{text-align:left;overflow-wrap:anywhere}
.lead-card p{margin:0 0 5px;line-height:1.35;overflow-wrap:anywhere}
.lead-card .badge{font-size:9px;padding:3px 6px}
.lead-card .drag-handle{font-size:19px}
.lead-card .card-bottom{min-height:22px;margin-top:4px}
.lead-card .card-bottom .avatar{width:20px;height:20px;font-size:8px}
.lead-card .card-move{margin-top:6px;padding-top:6px;gap:6px}
.lead-card .card-move select{padding:5px;min-height:27px}
@media(pointer:coarse){.lead-card .card-move select{min-height:34px}}
