.crm-container{display:flex;height:calc(100vh - 110px);background:#fff;border-radius:16px;box-shadow:0 4px 20px #0000000d;border:1px solid var(--border-light, #e2e8f0);overflow:hidden;font-family:inherit}.crm-chat-list-panel{width:320px;border-right:1px solid #e2e8f0;display:flex;flex-direction:column;background:#f8fafc}.crm-search-header{padding:16px;background:#fff;border-bottom:1px solid #e2e8f0}.crm-search-box{display:flex;align-items:center;gap:8px;background:#f1f5f9;padding:8px 12px;border-radius:10px;border:1px solid #cbd5e1}.crm-search-box input{border:none;background:transparent;width:100%;font-size:13px;outline:none;color:#334155}.crm-threads-scroll{flex:1;overflow-y:auto}.crm-thread-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:all .15s ease;background:#fff}.crm-thread-item:hover{background:#f1f5f9}.crm-thread-item.active{background:#e0f2fe;border-left:4px solid var(--primary, #0284c7)}.crm-avatar{width:44px;height:44px;border-radius:50%;background:#0284c7;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:6:00;font-size:16px;flex-shrink:0}.crm-thread-info{flex:1;min-width:0}.crm-thread-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.crm-patient-name{font-weight:600;font-size:14px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-thread-time{font-size:11px;color:#94a3b8}.crm-last-msg{font-size:12px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-chat-window{flex:1;display:flex;flex-direction:column;background:#f0fdf4}.crm-chat-header{padding:14px 20px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.crm-patient-details-header{display:flex;align-items:center;gap:12px}.crm-status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e}.crm-messages-container{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.crm-bubble{max-width:75%;padding:10px 14px;border-radius:14px;font-size:13.5px;line-height:1.5;box-shadow:0 1px 2px #0000000f;white-space:pre-wrap;word-break:break-word}.crm-bubble.patient{align-self:flex-end;background:#dcfce7;color:#065f46;border-bottom-right-radius:2px;border:1px solid #bbf7d0}.crm-bubble.clinic{align-self:flex-start;background:#fff;color:#0f172a;border-bottom-left-radius:2px;border:1px solid #e2e8f0}.crm-msg-time{font-size:10px;margin-top:4px;text-align:right;opacity:.75}.crm-input-bar{padding:14px 20px;background:#fff;border-top:1px solid #e2e8f0;display:flex;align-items:center;gap:10px}.crm-input-bar input{flex:1;padding:10px 16px;border-radius:20px;border:1px solid #cbd5e1;outline:none;font-size:13.5px}.crm-send-btn{background:#059669;color:#fff;border:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .1s ease}.crm-send-btn:hover{transform:scale(1.05)}.crm-profile-panel{width:280px;border-left:1px solid #e2e8f0;background:#fff;padding:20px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.crm-profile-header{text-align:center}.crm-profile-avatar{width:64px;height:64px;border-radius:50%;background:#0284c7;color:#fff;font-size:24px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}.crm-action-btn-primary{background:#0284c7;color:#fff;border:none;padding:10px 16px;border-radius:8px;font-weight:600;cursor:pointer;width:100%;display:flex;align-items:center;justify-content:center;gap:8px}.crm-action-btn-primary:hover{background:#0369a1}.crm-quick-reply-pill{padding:6px 10px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:16px;font-size:12px;color:#334155;cursor:pointer;transition:all .15s ease;margin-bottom:6px}.crm-quick-reply-pill:hover{background:#e2e8f0;color:#0f172a}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin-icon{animation:spin 1s linear infinite}
