.crm-scope{--deep-blue:#071a33;--navy:#0f2a52;--primary-blue:#176bff;--primary-blue-hover:#0f57d6;--electric-blue:#38bdf8;--ice-blue:#eaf4ff;--success:#16a66a;--warning:#f2b705;--danger:#e5484d;--purple:#7c5cff;--white:#fff;--surface:#f6f8fc;--text-strong:#101828;--text-muted:#526176;--border-soft:#dbe2ee;--font-heading:var(--font-sora), var(--font-inter), sans-serif;--font-body:var(--font-inter), Arial, sans-serif;--radius-sm:10px;--radius-md:14px;--radius-lg:18px;--sidebar-w:248px}.crm-scope *{box-sizing:border-box}html,body{height:100%}.crm-scope{font-family:var(--font-body);color:var(--text-strong);background:var(--surface);-webkit-font-smoothing:antialiased;margin:0}.crm-scope h1,.crm-scope h2,.crm-scope h3{font-family:var(--font-heading);margin:0;font-weight:700}.crm-scope p{margin:0}.crm-scope ul,.crm-scope ol{margin:0;padding:0;list-style:none}.crm-scope button{font:inherit;cursor:pointer}.crm-scope input,.crm-scope select,.crm-scope textarea{font:inherit}.crm-scope table{border-collapse:collapse;width:100%}.crm-scope a{color:inherit}.crm-scope a:focus-visible,.crm-scope button:focus-visible,.crm-scope input:focus-visible,.crm-scope select:focus-visible,.crm-scope textarea:focus-visible{outline:2px solid var(--primary-blue);outline-offset:2px}body.modal-open{overflow:hidden}.crm-scope .crm-shell{min-height:100vh;display:flex}.crm-scope .sidebar{width:var(--sidebar-w);background:var(--deep-blue);color:#fff;flex-direction:column;flex-shrink:0;height:100vh;display:flex;position:sticky;top:0}.crm-scope .sidebar-top{border-bottom:1px solid #ffffff14;padding:22px 20px 18px}.crm-scope .sidebar-logo{font-family:var(--font-heading);letter-spacing:.01em;font-size:1rem;font-weight:700}.crm-scope .sidebar-logo span{color:var(--electric-blue)}.crm-scope .sidebar-nav{flex-direction:column;flex:1;gap:2px;padding:14px 12px;display:flex;overflow-y:auto}.crm-scope .nav-item{color:#ffffffb8;text-align:left;border-radius:var(--radius-sm);background:0 0;border:none;align-items:center;gap:10px;padding:10px 12px;font-size:.9rem;font-weight:500;display:flex}.crm-scope .nav-item:hover{color:#fff;background:#ffffff0f}.crm-scope .nav-item.is-active{background:var(--primary-blue);color:#fff}.crm-scope .nav-icon{text-align:center;opacity:.85;width:18px}.crm-scope .sidebar-bottom{border-top:1px solid #ffffff14;padding:16px}.crm-scope .sidebar-user{align-items:center;gap:10px;margin-bottom:12px;display:flex}.crm-scope .user-avatar{background:var(--gradient,linear-gradient(135deg, var(--primary-blue), var(--electric-blue)));width:34px;height:34px;font-family:var(--font-heading);color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:.85rem;font-weight:700;display:flex}.crm-scope .user-name{color:#fff;font-size:.85rem;font-weight:600}.crm-scope .user-role{color:#ffffff8c;font-size:.74rem}.crm-scope .logout-btn{color:#ffffffbf;border-radius:var(--radius-sm);background:#ffffff0f;border:1px solid #ffffff1a;width:100%;padding:9px;font-size:.82rem}.crm-scope .logout-btn:hover{color:#fff;background:#ffffff1f}.crm-scope .main-area{flex-direction:column;flex:1;min-width:0;display:flex}.crm-scope .topbar{border-bottom:1px solid var(--border-soft);z-index:20;background:#fff;align-items:center;gap:20px;padding:16px 28px;display:flex;position:sticky;top:0}.crm-scope .topbar-title{white-space:nowrap;font-size:1.2rem}.crm-scope .topbar-search{flex:1;max-width:420px}.crm-scope .topbar-search input{border-radius:var(--radius-sm);border:1px solid var(--border-soft);background:var(--surface);width:100%;height:40px;padding:0 14px}.crm-scope .topbar-actions{gap:10px;margin-left:auto;display:flex}.crm-scope .view-container{padding:26px 28px 60px}.crm-scope .view{display:block}.crm-scope .view-lede{color:var(--text-muted);max-width:720px;margin-bottom:20px;font-size:.92rem}.crm-scope .demo-banner{color:#0f6f96;border-radius:var(--radius-sm);background:#38bdf81f;border:1px solid #38bdf84d;margin-bottom:20px;padding:8px 14px;font-size:.82rem;font-weight:600;display:inline-block}.crm-scope .btn{border-radius:var(--radius-sm);white-space:nowrap;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;height:40px;padding:0 16px;font-size:.85rem;font-weight:600;display:inline-flex}.crm-scope .btn-block{width:100%}.crm-scope .btn-primary{background:var(--primary-blue);color:#fff}.crm-scope .btn-primary:hover{background:var(--primary-blue-hover)}.crm-scope .btn-outline{border-color:var(--border-soft);color:var(--text-strong);background:#fff}.crm-scope .btn-outline:hover{border-color:var(--primary-blue);color:var(--primary-blue)}.crm-scope .btn-ghost-dark{border-color:var(--deep-blue);color:var(--deep-blue);background:0 0;text-decoration:none}.crm-scope .btn-ghost-dark:hover{background:var(--ice-blue)}.crm-scope .btn-whatsapp{color:#fff;background:#1fae5a}.crm-scope .btn-whatsapp:hover{background:#189249}.crm-scope .btn-danger-outline{color:var(--danger);background:#fff;border-color:#e5484d66}.crm-scope .btn-danger-outline:hover{background:#e5484d14}.crm-scope .link-btn{color:var(--primary-blue);background:0 0;border:none;font-size:.82rem;font-weight:600}.crm-scope .flow-strip{background:var(--deep-blue);border-radius:var(--radius-lg);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:24px;padding:18px 20px;display:flex}.crm-scope .flow-step{color:#fff;white-space:nowrap;background:#ffffff14;border:1px solid #ffffff24;border-radius:999px;padding:7px 12px;font-size:.76rem;font-weight:600}.crm-scope .flow-step--decision{color:#6fe3b4;background:#16a66a2e;border-color:#16a66a66}.crm-scope .flow-arrow{color:var(--electric-blue);font-size:.85rem}.crm-scope .metrics-grid{grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:26px;display:grid}@media (min-width:720px){.crm-scope .metrics-grid{grid-template-columns:repeat(4,1fr)}}.crm-scope .metric-card{border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:#fff;padding:18px}.crm-scope .metric-value{font-family:var(--font-heading);color:var(--deep-blue);font-size:1.5rem;font-weight:700}.crm-scope .metric-label{color:var(--text-muted);margin-top:4px;font-size:.78rem}.crm-scope .dashboard-columns{grid-template-columns:1fr;gap:20px;display:grid}@media (min-width:900px){.crm-scope .dashboard-columns{grid-template-columns:repeat(2,1fr)}}.crm-scope .panel{border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:#fff;margin-bottom:20px;padding:22px}.crm-scope .panel--accent{background:linear-gradient(180deg, var(--ice-blue), #fff 60%);border-color:#176bff40}.crm-scope .panel--dark{background:var(--navy);color:#fff;border-color:#0000}.crm-scope .panel--dark .summary-grid span{color:#fff9}.crm-scope .panel--dark .summary-grid p{color:#fff}.crm-scope .panel-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.crm-scope .panel-head h2{font-size:1.05rem}.crm-scope .panel-sub{color:var(--text-muted);margin-bottom:14px;font-size:.85rem}.crm-scope .mini-lead-list{flex-direction:column;gap:8px;display:flex}.crm-scope .mini-lead-row{background:var(--surface);border:1px solid var(--border-soft);border-radius:var(--radius-sm);text-align:left;align-items:center;gap:10px;width:100%;padding:10px 12px;display:flex}.crm-scope .mini-lead-row:hover{border-color:var(--primary-blue)}.crm-scope .mini-lead-name{font-size:.85rem;font-weight:600}.crm-scope .mini-lead-meta{color:var(--text-muted);margin-right:auto;font-size:.76rem}.crm-scope .empty-state{color:var(--text-muted);padding:12px 0;font-size:.82rem;font-style:italic}.crm-scope .lead-received-grid{grid-template-columns:repeat(2,1fr);gap:14px;margin-top:4px;display:grid}@media (min-width:720px){.crm-scope .lead-received-grid{grid-template-columns:repeat(4,1fr)}}.crm-scope .lead-received-grid span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.72rem;display:block}.crm-scope .lead-received-grid p{margin-top:2px;font-size:.88rem;font-weight:600}.crm-scope .lead-message{border-top:1px dashed var(--border-soft);margin-top:18px;padding-top:16px}.crm-scope .lead-message span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.72rem}.crm-scope .lead-message p{color:var(--text-strong);margin-top:6px;font-style:italic}.crm-scope .qual-questions{flex-direction:column;gap:10px;display:flex}.crm-scope .qual-item{border:1px solid var(--border-soft);border-radius:var(--radius-md);overflow:hidden}.crm-scope .qual-question{background:var(--surface);text-align:left;border:none;align-items:center;gap:12px;width:100%;padding:12px 14px;display:flex}.crm-scope .qual-question span:first-child{flex:1;font-size:.88rem;font-weight:600}.crm-scope .qual-answer-pill{background:var(--ice-blue);color:var(--primary-blue);border-radius:999px;padding:4px 10px;font-size:.74rem;font-weight:700}.crm-scope .qual-chevron{color:var(--text-muted);transition:transform .15s}.crm-scope .qual-question[aria-expanded=true] .qual-chevron{transform:rotate(180deg)}.crm-scope .qual-options{flex-wrap:wrap;gap:8px;padding:14px;display:flex}.crm-scope .qual-option{border:1px solid var(--border-soft);color:var(--text-muted);border-radius:999px;padding:6px 12px;font-size:.8rem}.crm-scope .qual-option.is-selected{background:var(--primary-blue);border-color:var(--primary-blue);color:#fff;font-weight:600}.crm-scope .summary-grid{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}@media (min-width:720px){.crm-scope .summary-grid{grid-template-columns:repeat(4,1fr)}}.crm-scope .summary-grid span{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:.72rem;display:block}.crm-scope .summary-grid p{margin-top:4px;font-size:.9rem;font-weight:600}.crm-scope .suggestion-block{border-radius:var(--radius-md);background:#38bdf81a;border:1px solid #38bdf84d;margin-top:20px;padding:16px}.crm-scope .suggestion-label{text-transform:uppercase;letter-spacing:.04em;color:var(--electric-blue);margin-bottom:6px;font-size:.72rem;font-weight:700;display:block}.crm-scope .checklist{flex-direction:column;gap:10px;margin-bottom:18px;display:flex}.crm-scope .checklist li{align-items:center;gap:10px;font-size:.9rem;display:flex}.crm-scope .check-num{background:var(--ice-blue);width:22px;height:22px;color:var(--primary-blue);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:.75rem;font-weight:700;display:flex}.crm-scope .action-row{flex-wrap:wrap;gap:10px;display:flex}.crm-scope .badge{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:.72rem;font-weight:700;display:inline-flex}.crm-scope .badge-origin{background:var(--surface);color:var(--text-muted);border:1px solid var(--border-soft)}.crm-scope .badge-state[data-group=novo]{color:var(--primary-blue);background:#176bff1a}.crm-scope .badge-state[data-group=contacto]{color:#0f7ea8;background:#38bdf824}.crm-scope .badge-state[data-group=proposta]{color:#8a6600;background:#f2b70529}.crm-scope .badge-state[data-group=ganho]{color:var(--success);background:#16a66a24}.crm-scope .badge-state[data-group=perdido]{color:var(--danger);background:#e5484d1f}.crm-scope .badge-state[data-group=producao]{color:var(--purple);background:#7c5cff24}.crm-scope .badge-priority[data-priority=low]{color:#64748b;background:#eef1f5}.crm-scope .badge-priority[data-priority=normal]{color:var(--primary-blue);background:#176bff1a}.crm-scope .badge-priority[data-priority=high]{color:#c05e00;background:#ff910024}.crm-scope .badge-priority[data-priority=urgent]{color:var(--danger);background:#e5484d24}.crm-scope .badge-qualificacao[data-qual=completa]{color:var(--success);background:#16a66a24}.crm-scope .badge-qualificacao[data-qual=incompleta]{color:#8a6600;background:#f2b70529}.crm-scope .badge-qualificacao[data-qual=nao-iniciada]{color:#64748b;background:#eef1f5}.crm-scope .kanban,.crm-scope .proposals-board,.crm-scope .projects-board{gap:16px;padding-bottom:12px;display:flex;overflow-x:auto}.crm-scope .kanban-col{background:var(--surface);border:1px solid var(--border-soft);border-radius:var(--radius-lg);flex:0 0 280px;padding:12px}.crm-scope .kanban-col-head{justify-content:space-between;align-items:center;padding:6px 6px 12px;display:flex}.crm-scope .kanban-col-head h3{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);font-size:.82rem}.crm-scope .kanban-count{border:1px solid var(--border-soft);background:#fff;border-radius:999px;padding:2px 8px;font-size:.72rem;font-weight:700}.crm-scope .kanban-col-body{flex-direction:column;gap:10px;min-height:40px;display:flex}.crm-scope .kanban-card,.crm-scope .proposal-card{border:1px solid var(--border-soft);border-radius:var(--radius-md);text-align:left;cursor:pointer;background:#fff;padding:12px 14px;transition:border-color .15s,transform .1s}.crm-scope .kanban-card:hover,.crm-scope .proposal-card:hover{border-color:var(--primary-blue)}.crm-scope .kanban-card-title{color:var(--deep-blue);font-size:.9rem;font-weight:700}.crm-scope .kanban-card-contact{color:var(--text-muted);margin-top:1px;font-size:.78rem}.crm-scope .kanban-card-line{color:var(--text-muted);margin-top:6px;font-size:.78rem}.crm-scope .kanban-card-value strong{color:var(--text-strong)}.crm-scope .kanban-card-badges{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.crm-scope .kanban-card-foot{border-top:1px solid var(--border-soft);justify-content:space-between;align-items:center;margin-top:10px;padding-top:8px;display:flex}.crm-scope .kanban-card-time{color:var(--text-muted);font-size:.72rem}.crm-scope .filters-bar{flex-wrap:wrap;gap:10px;margin-bottom:16px;display:flex}.crm-scope .filters-bar input,.crm-scope .filters-bar select{border-radius:var(--radius-sm);border:1px solid var(--border-soft);background:#fff;height:38px;padding:0 12px;font-size:.84rem}.crm-scope .filters-bar input{flex:1;min-width:180px}.crm-scope .table-wrap{border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:#fff;overflow-x:auto}.crm-scope .leads-table{min-width:920px}.crm-scope .leads-table th,.crm-scope .leads-table td{text-align:left;white-space:nowrap;padding:12px 16px;font-size:.84rem}.crm-scope .leads-table thead th{background:var(--surface);color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.72rem}.crm-scope .leads-table tbody tr{border-top:1px solid var(--border-soft);cursor:pointer}.crm-scope .leads-table tbody tr:hover{background:var(--ice-blue)}.crm-scope .modal-overlay{z-index:100;background:#071a338c;justify-content:center;align-items:flex-start;padding:40px 20px;display:flex;position:fixed;inset:0;overflow-y:auto}.crm-scope .modal-overlay[hidden]{display:none}.crm-scope .modal{border-radius:var(--radius-lg);background:#fff;width:100%;max-width:880px;margin:auto 0;padding:32px;position:relative}.crm-scope .modal--sm{max-width:460px}.crm-scope .modal-close{border:1px solid var(--border-soft);background:#fff;border-radius:999px;width:34px;height:34px;font-size:.9rem;position:absolute;top:16px;right:16px}.crm-scope .modal-close:hover{background:var(--surface)}.crm-scope .lead-modal-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;padding-right:30px;display:flex}.crm-scope .lead-modal-badges{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.crm-scope .lead-modal-grid{grid-template-columns:1fr;gap:20px;margin-bottom:22px;display:grid}@media (min-width:760px){.crm-scope .lead-modal-grid{grid-template-columns:1fr 1fr}.crm-scope .lead-modal-zone--wide{grid-column:span 2}}.crm-scope .lead-modal-zone h3{text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted);margin-bottom:12px;font-size:.82rem}.crm-scope .lead-modal-zone dl{flex-direction:column;gap:8px;display:flex}.crm-scope .lead-modal-zone dl div{border-bottom:1px dashed var(--border-soft);justify-content:space-between;gap:12px;padding-bottom:6px;font-size:.86rem;display:flex}.crm-scope .lead-modal-zone dt{color:var(--text-muted)}.crm-scope .lead-modal-zone dd{text-align:right;margin:0;font-weight:600}.crm-scope .timeline{flex-direction:column;gap:0;margin-bottom:16px;display:flex}.crm-scope .timeline li{gap:12px;padding:0 0 16px;display:flex;position:relative}.crm-scope .timeline li:before{content:"";background:var(--border-soft);width:1px;position:absolute;top:14px;bottom:0;left:4px}.crm-scope .timeline li:last-child:before{display:none}.crm-scope .timeline-dot{background:var(--primary-blue);border-radius:999px;flex-shrink:0;width:9px;height:9px;margin-top:4px}.crm-scope .timeline li p{font-size:.86rem;font-weight:600}.crm-scope .timeline-meta{color:var(--text-muted);margin-top:2px;font-size:.8rem!important;font-weight:400!important}.crm-scope .note-label{margin-bottom:6px;font-size:.82rem;font-weight:600;display:block}.crm-scope .lead-modal-zone textarea{border:1px solid var(--border-soft);border-radius:var(--radius-sm);width:100%;font:inherit;resize:vertical;margin-bottom:10px;padding:10px 12px}.crm-scope .new-lead-form{flex-direction:column;gap:14px;margin-top:16px;display:flex}.crm-scope .form-field{flex-direction:column;gap:5px;display:flex}.crm-scope .form-field label{font-size:.8rem;font-weight:600}.crm-scope .form-field input,.crm-scope .form-field select{border-radius:var(--radius-sm);border:1px solid var(--border-soft);height:40px;padding:0 12px}.crm-scope .toast{background:var(--deep-blue);color:#fff;opacity:0;z-index:200;border-radius:999px;padding:12px 20px;font-size:.85rem;font-weight:600;transition:opacity .2s,transform .2s;position:fixed;bottom:28px;left:50%;transform:translate(-50%)translateY(12px);box-shadow:0 8px 24px #071a334d}.crm-scope .toast[hidden]{display:none}.crm-scope .toast.is-visible{opacity:1;transform:translate(-50%)translateY(0)}.crm-scope .sidebar-toggle{border-radius:var(--radius-sm);border:1px solid var(--border-soft);background:#fff;flex-direction:column;flex-shrink:0;justify-content:center;gap:4px;width:40px;height:40px;display:none}.crm-scope .sidebar-toggle span{background:var(--deep-blue);width:18px;height:2px;margin:0 auto;display:block}.crm-scope .sidebar-backdrop{display:none}@media (max-width:860px){.crm-scope .sidebar-toggle{display:flex}.crm-scope .sidebar{z-index:60;transition:transform .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.crm-scope .sidebar.is-open{transform:translate(0)}.crm-scope .sidebar-backdrop[hidden]{display:none}.crm-scope .sidebar-backdrop{z-index:55;background:#071a3380;display:block;position:fixed;inset:0}.crm-scope .topbar{flex-wrap:wrap}.crm-scope .topbar-search{order:3;max-width:100%}}.crm-scope .login-page{background:var(--surface);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.crm-scope .login-card{width:100%;max-width:380px}.crm-scope .login-error{color:var(--danger);font-size:.85rem;font-weight:600}
