*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:#f5f6f8;color:#18202b}.app{height:100vh;display:flex;flex-direction:column}header{height:64px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #263244}.brand{display:flex;align-items:center;gap:10px}.mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,#7657ff,#22a3ff);display:grid;place-items:center;font-weight:800}.brand b{font-size:18px}.brand span{font-size:12px;color:#9ca3af;margin-left:7px}.top{display:flex;align-items:center;gap:12px}.top input{background:#1f2937;border:1px solid #374151;color:#e5e7eb;border-radius:8px;padding:7px 10px;width:125px}.online{display:flex;gap:6px;align-items:center;color:#8ff0b2;font-size:12px}main{display:grid;grid-template-columns:185px 330px minmax(430px,1fr) 260px;min-height:0;flex:1}.nav{background:#182231;color:#cbd5e1;padding:18px 10px;display:flex;flex-direction:column;gap:4px}.navTitle{font-size:10px;font-weight:700;letter-spacing:.12em;color:#748399;padding:14px 12px 6px}.nav button{border:0;background:transparent;color:#bdc7d5;border-radius:8px;padding:10px 12px;text-align:left;display:flex;gap:10px;align-items:center;cursor:pointer;font-weight:600}.nav button svg{width:17px}.nav button:hover,.nav button.active{background:#273449;color:#fff}.tenant{margin-top:auto;padding:10px}.tenant small{display:block;color:#7f8da0;margin-bottom:5px}.tenant input{width:100%;background:#111827;color:#9ca3af;border:1px solid #344155;border-radius:6px;padding:7px;font-size:10px}.inbox{background:#fff;border-right:1px solid #e5e7eb;min-width:0;display:flex;flex-direction:column}.sectionHead{padding:18px 16px 12px;display:flex;justify-content:space-between;align-items:center}.sectionHead h2{font-size:18px;margin:0}.sectionHead span{font-size:11px;color:#8b95a5}.icon{border:1px solid #e5e7eb;background:#fff;border-radius:7px;padding:7px;cursor:pointer}.search{margin:0 14px 12px;background:#f4f6f8;border-radius:8px;display:flex;align-items:center;padding:0 10px;color:#9aa4b2}.search input{width:100%;border:0;background:transparent;outline:0;padding:10px}.list{overflow:auto}.card{width:100%;border:0;border-top:1px solid #f0f1f3;background:#fff;padding:13px 14px;display:flex;gap:10px;text-align:left;cursor:pointer}.card:hover,.card.selected{background:#f5f3ff}.avatar,.bigAvatar{display:grid;place-items:center;border-radius:50%;background:#e9e5ff;color:#6549d8;font-weight:700;flex:none}.avatar{width:39px;height:39px}.avatar.whatsapp,.bigAvatar.whatsapp{background:#ddf7e8;color:#16864a}.avatar.webchat,.bigAvatar.webchat{background:#dfeeff;color:#2877c9}.cardBody{min-width:0;flex:1}.cardTop{display:flex;justify-content:space-between;gap:8px}.cardTop b{font-size:13px;overflow:hidden;text-overflow:ellipsis}.cardTop time{font-size:10px;color:#9ba4b0}.preview{font-size:12px;color:#697586;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 7px}.tags{display:flex;gap:5px}.tags span{font-size:9px;text-transform:uppercase;background:#eef1f4;color:#667085;padding:3px 5px;border-radius:4px}.tags .human{background:#e1f8ea;color:#17824b}.tags .waiting_human{background:#fff1d7;color:#9a6500}.tags .bot,.tags .ai{background:#ece8ff;color:#6247c9}.conversation{display:flex;flex-direction:column;min-width:0;background:#f7f8fa}.conversationHead{height:70px;background:#fff;border-bottom:1px solid #e5e7eb;padding:12px 18px;display:flex;align-items:center;gap:10px}.conversationHead h3{margin:0;font-size:14px}.conversationHead span{font-size:11px;color:#7b8794}.actions{margin-left:auto;display:flex;gap:7px}.actions button{border:0;background:#6d4aff;color:#fff;border-radius:7px;padding:8px 10px;display:flex;gap:6px;align-items:center;font-size:11px;cursor:pointer}.actions button.ghost{background:#fff;color:#4b5563;border:1px solid #d7dce2}.actions button.danger{background:#fff;color:#b42318;border:1px solid #f1c5c2}.messages{padding:22px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:9px}.message{max-width:68%;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:4px 13px 13px;font-size:13px;line-height:1.4}.message.out{align-self:flex-end;background:#6d4aff;color:#fff;border:0;border-radius:13px 4px 13px 13px}.message time{display:block;font-size:9px;opacity:.6;text-align:right;margin-top:5px}.composer{background:#fff;border-top:1px solid #e5e7eb;padding:12px 16px;display:flex;gap:9px}.composer textarea{resize:none;flex:1;height:44px;border:1px solid #dce1e7;border-radius:9px;padding:11px;font-family:inherit;outline:0}.composer button{width:44px;border:0;border-radius:9px;background:#6d4aff;color:#fff;cursor:pointer}.composer button:disabled,.actions button:disabled{opacity:.4;cursor:not-allowed}.details{background:#fff;border-left:1px solid #e5e7eb;padding:20px}.details h3{margin:0 0 18px;font-size:15px}.profile{text-align:center;padding-bottom:18px;border-bottom:1px solid #eee}.bigAvatar{width:58px;height:58px;margin:0 auto 9px;font-size:20px}.profile b,.profile span{display:block}.profile span{font-size:11px;color:#8b95a5;margin-top:3px}.info{padding:11px 2px;border-bottom:1px solid #f0f1f3}.info span,.info b{display:block}.info span{font-size:10px;color:#98a2b3;margin-bottom:3px}.info b{font-size:12px}.routing{margin-top:18px;background:#f5f3ff;color:#5d45bd;border-radius:9px;padding:11px;display:flex;gap:9px}.routing b,.routing span{display:block}.routing b{font-size:11px}.routing span{font-size:9px;margin-top:3px;color:#7766b9}.welcome{margin:auto;text-align:center;color:#8791a0}.welcomeIcon{width:58px;height:58px;background:#ece9ff;color:#6d4aff;border-radius:18px;display:grid;place-items:center;margin:auto}.welcome h2{color:#273142;margin-bottom:4px}.welcome p{font-size:13px}.empty{padding:30px;text-align:center;color:#98a2b3;font-size:12px}.error{margin:0 14px 8px;background:#fff0ef;color:#b42318;padding:8px;border-radius:6px;font-size:11px}@media(max-width:1100px){main{grid-template-columns:170px 300px 1fr}.details{display:none}}@media(max-width:760px){main{grid-template-columns:1fr}.nav,.details,.inbox{display:none}.conversation{display:flex}}
