.crm-chat{position:fixed;inset:5vh 3vw 4vh auto;width:min(900px,94vw);z-index:40;background:#fff;border:1px solid #d6deea;border-radius:18px;box-shadow:0 12px 60px #15153550;display:flex;flex-direction:column;overflow:hidden;color:#211951}.crm-chat header{display:flex;align-items:center;gap:10px;padding:14px 18px;background:#211951;color:white}.crm-chat h2{margin:0 auto 0 0}.chat-body{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:0;flex:1}.chat-list{padding:12px;overflow:auto;background:#f2f5fa;display:flex;flex-direction:column;gap:8px}.chat-list button{text-align:left;overflow-wrap:anywhere}.chat-list .active{background:#e5efd9;border-color:#72b848}.chat-thread{display:flex;flex-direction:column;min-height:0;min-width:0;padding:14px;gap:8px}.chat-title{margin:0}.chat-members{color:#667085;overflow-wrap:anywhere}.chat-messages{overflow:auto;flex:1;min-height:100px}.chat-message{background:#f0f3f9;padding:12px;border-radius:12px;margin:8px 25px 8px 0;overflow-wrap:anywhere}.chat-message.mine{margin:8px 0 8px 25px;background:#edf5e5}.chat-message p{white-space:pre-wrap;margin:5px 0}.chat-message small{color:#667085}.chat-compose textarea{min-height:65px;max-height:140px}.chat-compose button{margin-top:6px}.crm-chat footer,.chat-error{padding:6px 14px;font-size:12px;margin:0}.chat-error{color:#a82b20}.chat-create{display:grid;gap:12px}.chat-create select{width:100%}.chat-create select[multiple]{min-height:130px}.chat-compose[hidden]{display:none}@media(max-width:650px){.crm-chat{inset:2vh 2vw;width:96vw}.chat-body{grid-template-columns:1fr;grid-template-rows:90px minmax(0,1fr)}.chat-list{flex-direction:row}.chat-list button{min-width:140px}.crm-chat header{padding:10px}.crm-chat h2{font-size:1rem}}
