@keyframes cw-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes cw-pulse{0%,to{opacity:1}50%{opacity:.4}}.cw-header{background:#2563eb;color:#fff;padding:1rem;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.cw-header-left{display:flex;align-items:center;gap:.75rem}.cw-header-avatar{width:2.25rem;height:2.25rem;background:rgba(255,255,255,.2);border-radius:9999px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cw-header-title{font-weight:600;font-size:.875rem;margin:0}.cw-header-subtitle{font-size:.75rem;color:#fffc;margin:0}.cw-header-controls{display:flex;align-items:center;gap:.25rem}.cw-icon-btn{color:#fffc;background:transparent;border:none;padding:.25rem;border-radius:.25rem;cursor:pointer;transition:color .15s,background .15s;display:flex;align-items:center;justify-content:center;line-height:1}.cw-icon-btn:hover{color:#fff;background:rgba(255,255,255,.1)}.cw-back-btn{margin-right:.25rem}.cw-end-btn{font-size:.75rem;font-weight:600;color:#fffc;background:rgba(255,255,255,.1);border:none;padding:.375rem .75rem;border-radius:.25rem;cursor:pointer;transition:color .15s,background .15s}.cw-end-btn:hover{color:#fff;background:#ef4444}.cw-list{flex:1;overflow-y:auto;background:#f8fafc}.cw-list-item{width:100%;text-align:left;padding:1rem;border:none;border-bottom:1px solid #f3f4f6;background:transparent;cursor:pointer;display:flex;align-items:center;gap:.75rem;transition:background .15s}.cw-list-item:hover{background:white}.cw-list-avatar{width:2.25rem;height:2.25rem;border-radius:9999px;background:#dbeafe;color:#2563eb;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:600;font-size:.875rem}.cw-list-name{font-size:.875rem;font-weight:500;color:#1f2937;margin:0}.cw-list-hint{font-size:.75rem;color:#9ca3af;margin:0}.cw-list-chevron{margin-left:auto;color:#d1d5db;display:flex}.cw-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:4rem 0;color:#9ca3af}.cw-list-empty-icon{margin-bottom:.75rem;opacity:.4}.cw-list-empty-text{font-size:.875rem}.cw-messages{flex:1;padding:1rem;overflow-y:auto;background:#f8fafc;display:flex;flex-direction:column;gap:1rem}.cw-msg-row{display:flex}.cw-msg-row-mine{justify-content:flex-end}.cw-msg-row-other{justify-content:flex-start}.cw-msg-inner{display:flex;align-items:flex-start;gap:.5rem;max-width:85%}.cw-msg-inner-mine{flex-direction:row-reverse}.cw-msg-avatar{width:1.75rem;height:1.75rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cw-msg-avatar-mine{background:#2563eb;color:#fff}.cw-msg-avatar-op{background:#22c55e;color:#fff}.cw-msg-avatar-other{background:#cbd5e1;color:#334155}.cw-msg-bubble{padding:.625rem 1rem;border-radius:.5rem;font-size:.875rem;box-shadow:0 1px 2px #0000000d}.cw-msg-bubble-mine{background:#2563eb;color:#fff}.cw-msg-bubble-op{background:#22c55e;color:#fff}.cw-msg-bubble-other{background:white;color:#1e293b;border:1px solid #e5e7eb}.cw-msg-sender{font-size:.75rem;font-weight:600;margin-bottom:.25rem;opacity:.8}.cw-msg-text{white-space:pre-wrap;overflow-wrap:break-word;line-height:1.625;margin:0}.cw-loading-bubble{background:white;border:1px solid #e5e7eb;border-radius:.5rem;padding:.75rem 1rem;box-shadow:0 1px 2px #0000000d;display:flex;gap:.5rem}.cw-loading-dot{width:.5rem;height:.5rem;background:#94a3b8;border-radius:9999px;animation:cw-bounce 1s infinite}.cw-loading-dot:nth-child(2){animation-delay:.15s}.cw-loading-dot:nth-child(3){animation-delay:.3s}.cw-footer{padding:1rem;border-top:1px solid #e5e7eb;background:white;flex-shrink:0}.cw-footer-alt{padding:.75rem;border-top:1px solid #e5e7eb;background:#f8fafc;flex-shrink:0}.cw-footer-text{font-size:.75rem;color:#6b7280;margin:0 0 .75rem;text-align:center}.cw-footer-text-only{font-size:.75rem;color:#6b7280;margin:0;text-align:center}.cw-footer-helper{font-size:.75rem;color:#6b7280;margin-top:.5rem;text-align:center}.cw-input-row{display:flex;gap:.5rem}.cw-input{flex:1;border:1px solid #d1d5db;border-radius:.5rem;padding:.5rem .75rem;font-size:.875rem;outline:none;transition:border-color .15s,box-shadow .15s}.cw-input-green:focus{border-color:transparent;box-shadow:0 0 0 2px #22c55e}.cw-input-blue:focus{border-color:transparent;box-shadow:0 0 0 2px #2563eb}.cw-send-btn{color:#fff;border:none;padding:.5rem;border-radius:.5rem;cursor:pointer;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #0000000d;display:flex;align-items:center;justify-content:center}.cw-send-btn-green{background:#22c55e}.cw-send-btn-green:hover{background:#16a34a;box-shadow:0 4px 6px #0000001a}.cw-send-btn-blue{background:#2563eb}.cw-send-btn-blue:hover{background:#1d4ed8;box-shadow:0 4px 6px #0000001a}.cw-btn-full{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;color:#fff;border:none;padding:.625rem 1rem;border-radius:.5rem;font-weight:500;font-size:.875rem;cursor:pointer;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #0000000d;text-decoration:none;text-align:center;box-sizing:border-box}.cw-btn-blue{background:#2563eb}.cw-btn-blue:hover{background:#1d4ed8;box-shadow:0 4px 6px #0000001a}.cw-btn-green{background:#22c55e}.cw-btn-green:hover{background:#16a34a;box-shadow:0 4px 6px #0000001a}.cw-btn-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.cw-btn-loading{opacity:.5;cursor:not-allowed}.cw-input:disabled{opacity:.5;cursor:not-allowed;background-color:#f3f4f6}.cw-send-btn:disabled,.cw-btn-full:disabled{opacity:.5;cursor:not-allowed}.cw-float-btn{background:#2563eb;color:#fff;border:none;border-radius:9999px;padding:1rem;cursor:pointer;box-shadow:0 10px 15px #0000001a,0 4px 6px #0000000d;transition:background .3s,box-shadow .3s,transform .3s;position:relative;display:flex;align-items:center;justify-content:center}.cw-float-btn:hover{background:#1d4ed8;box-shadow:0 20px 25px #00000026,0 10px 10px #0000000a;transform:scale(1.05)}.cw-float-btn:disabled{cursor:not-allowed;transform:none!important;background:#2563eb!important;box-shadow:0 10px 15px #0000001a,0 4px 6px #0000000d!important}@keyframes cw-spin{to{transform:rotate(360deg)}}.cw-spinner{width:24px;height:24px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:cw-spin .7s linear infinite}.cw-spinner-sm{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:cw-spin .7s linear infinite}.cw-icon-btn:disabled{cursor:not-allowed;opacity:.7}.cw-spinner-sm-blue{width:16px;height:16px;border:2px solid rgba(37,99,235,.2);border-top-color:#2563eb;border-radius:50%;animation:cw-spin .7s linear infinite;flex-shrink:0}.cw-list-item:disabled{cursor:not-allowed;opacity:.6}.cw-online-dot{position:absolute;top:-.25rem;right:-.25rem;width:.75rem;height:.75rem;background:#22c55e;border-radius:9999px;border:2px solid white;animation:cw-pulse 2s cubic-bezier(.4,0,.6,1) infinite}
