.vh-chat-page{background:#f0f2f5;margin:0;padding:0;font-family:Roboto,system-ui,-apple-system,sans-serif}#vh-new-conv{display:block;text-align:center;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:12px;cursor:pointer;font-family:inherit;padding:7px 10px;text-decoration:none;transition:background .15s,color .15s;flex-shrink:0}#vh-new-conv:hover{background:#f0f6f8;color:#ff336c}#vh-chat-launcher{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:#1ccc5b;color:#fff;border:none;cursor:pointer;font-size:26px;box-shadow:0 4px 20px #1ccc5b73;display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s;z-index:9999}#vh-chat-launcher:hover{transform:scale(1.1);box-shadow:0 6px 24px #1ccc5b8c}#vh-chat-window{position:fixed;bottom:90px;right:24px;width:400px;height:600px;max-height:calc(100vh - 110px);background:#fff;border-radius:18px;box-shadow:0 12px 48px #0000002e;display:flex;flex-direction:column;z-index:9998;overflow:hidden;transform:scale(.93) translateY(12px);opacity:0;transition:transform .22s cubic-bezier(.34,1.3,.64,1),opacity .18s;pointer-events:none;font-family:Roboto,system-ui,-apple-system,sans-serif;color:#1f3137}#vh-chat-window>[id^=snippet-]{flex-shrink:0}#vh-chat-window>[id^=snippet-]:has(.vh-ch-messages){flex:1;min-height:0;display:flex;flex-direction:column}#vh-chat-window.open{transform:scale(1) translateY(0);opacity:1;pointer-events:all}.vh-ch-header{background:linear-gradient(135deg,#1f3137,#00345e);color:#fff;padding:16px 18px;display:flex;align-items:center;gap:11px;flex-shrink:0}.vh-ch-header-logo{width:40px;height:40px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;overflow:hidden}.vh-ch-header-logo .vh-bot-logo{width:26px;height:26px}.vh-ch-header-logo:has(.vh-op-avatar--done){border-radius:50%;background:#0000}.vh-ch-header-logo:has(.vh-op-avatar--done) .vh-op-avatar img{width:40px!important;height:40px!important}.vh-ch-header-info{flex:1}.vh-ch-header-name{font-weight:700;font-size:15px}.vh-ch-header-status{font-size:12px;opacity:.9;display:flex;align-items:center;gap:5px;margin-top:2px}.vh-status-dot{width:7px;height:7px;border-radius:50%;background:#1ccc5b;box-shadow:0 0 0 2px #1ccc5b4d}.vh-status-dot.offline{background:#94a3b8;box-shadow:0 0 0 2px #94a3b84d}.vh-ch-close{background:#ffffff26;border:none;color:#fff;cursor:pointer;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;transition:background .15s}.vh-ch-close:hover{background:#ffffff47}#vh-chat-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff;pointer-events:none}.vh-connect-banner{flex-shrink:0;background:#f0f6f8;border-bottom:1px solid #c1dae2;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}.vh-connect-banner span{font-size:13px;color:#374151}.vh-connect-banner button{font-size:13px;font-weight:600;color:#ff336c;background:none;border:none;cursor:pointer;padding:0;white-space:nowrap;font-family:inherit;transition:color .15s}.vh-connect-banner button:hover{color:#ff1a5c}.vh-ch-messages{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:4px;min-height:0}.vh-ch-messages:before{content:"";flex:1 1 auto}.vh-ch-messages::-webkit-scrollbar{width:4px}.vh-ch-messages::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:2px}.vh-msg-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:8px}.vh-msg-row.user{flex-direction:row-reverse}.vh-msg-row.system{justify-content:center}.vh-msg-avatar{width:28px;height:28px;border-radius:50%;background:#f0f6f8;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;align-self:flex-end}.vh-msg-avatar .vh-bot-logo{width:20px;height:20px}.vh-bot-logo{display:block;width:24px;height:24px;object-fit:contain}.vh-msg-bubble-wrap{display:flex;flex-direction:column;max-width:75%}.vh-msg-row.user .vh-msg-bubble-wrap{align-items:flex-end}.vh-msg-bubble{padding:9px 13px;border-radius:18px;line-height:1.5;font-size:14px;word-break:break-word}.vh-msg-row.bot .vh-msg-bubble{background:#f0f6f8;color:#1f3137;border-bottom-left-radius:5px}.vh-msg-row.user .vh-msg-bubble{background:#ff336c;color:#fff;border-bottom-right-radius:5px}.vh-msg-bubble p{margin:0}.vh-msg-bubble p+p{margin-top:6px}.vh-msg-bubble ul,.vh-msg-bubble ol{margin:4px 0 4px 18px;padding:0}.vh-msg-bubble li{margin:0;line-height:1.5}.vh-msg-bubble code{background:#00000014;border-radius:4px;padding:1px 5px;font-size:13px;font-family:monospace}.vh-msg-bubble a{color:#ff336c}.vh-msg-row.user .vh-msg-bubble a{color:#ffe8ee}.vh-typing{display:flex;align-items:center;gap:3px;padding:2px 0}.vh-typing span{width:5px;height:5px;border-radius:50%;background:#94a3b8;display:inline-block;animation:vh-bounce 1.2s infinite ease-in-out}.vh-typing span:nth-child(1){animation-delay:0s}.vh-typing span:nth-child(2){animation-delay:.2s}.vh-typing span:nth-child(3){animation-delay:.4s}@keyframes vh-bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.vh-msg-op-name{font-size:11px;font-weight:600;color:#64748b;margin-bottom:3px;padding:0 4px}.vh-msg-time{font-size:11px;color:#94a3b8;margin-top:3px;padding:0 4px}.vh-msg-system{background:#fefce8;color:#854d0e;border-radius:8px;font-size:12px;text-align:center;padding:7px 14px;max-width:88%;border:1px solid #fef08a}.vh-msg-connected{background:#f0fdf4;color:#166534;border-radius:10px;font-size:13px;text-align:center;padding:10px 14px;max-width:92%;border:1px solid #bbf7d0}.vh-escalate-link{font-size:12px;color:#94a3b8;margin-top:2px;cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:0 2px}.vh-escalate-link:hover{color:#ff336c}.vh-offline-actions{display:flex;gap:6px;margin-top:6px}.vh-offline-btn{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#475569;background:#f0f6f8;border:1px solid #e2e8f0;border-radius:8px;padding:5px 10px;text-decoration:none;transition:background .15s,border-color .15s}.vh-offline-btn:hover{background:#ffe8ee;border-color:#ffc9d8;color:#ff336c}.vh-escalate-form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:9px;max-width:85%}.vh-escalate-form .vh-form-title{font-size:13px;color:#374151;font-weight:600}.vh-escalate-form input{border:1px solid #e2e8f0;border-radius:9px;padding:8px 12px;font-size:14px;font-family:inherit;outline:none;width:100%;background:#fff;color:#1f3137;box-sizing:border-box}.vh-escalate-form input:focus{border-color:#ff336c}.vh-escalate-form button{background:#ff336c;color:#fff;border:none;border-radius:9px;padding:9px 14px;font-size:14px;cursor:pointer;font-family:inherit;font-weight:600}.vh-escalate-form button:hover{background:#ff1a5c}.vh-escalate-form button:disabled{background:#cbd5e1;cursor:not-allowed}.vh-msg-row.bot .vh-msg-bubble{position:relative}.vh-msg-row.bot .vh-msg-bubble:has(.vh-msg-rating){padding-bottom:30px}.vh-msg-rating{position:absolute;bottom:5px;right:7px;display:flex;gap:2px}.vh-rate-btn{background:none;border:none;cursor:pointer;font-size:18px;padding:1px 3px;line-height:1;opacity:.55;transition:opacity .15s,transform .1s;font-family:inherit}.vh-rate-btn:hover{opacity:.85;transform:scale(1.15)}.vh-rate-btn.active{opacity:1;transform:scale(1.15)}.vh-rate-btn.up.active{filter:sepia(1) saturate(4) hue-rotate(80deg)}.vh-rate-btn.down.active{filter:sepia(1) saturate(4) hue-rotate(300deg)}.rated .vh-rate-btn{cursor:default;opacity:.2}.rated .vh-rate-btn:hover{opacity:.2;transform:none}.rated .vh-rate-btn.active{opacity:1}.vh-rate-popup{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center}.vh-rate-popup-backdrop{position:absolute;inset:0;background:#0f172a59;cursor:pointer}.vh-rate-popup-box{position:relative;z-index:1;background:#fff;border-radius:18px;padding:22px 20px 18px;width:78%;box-shadow:0 16px 48px #00000038;display:flex;flex-direction:column;gap:12px}.vh-rate-popup-icon{font-size:36px;text-align:center;line-height:1}.vh-rate-popup textarea{border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;font-size:14px;font-family:inherit;outline:none;resize:none;width:100%;box-sizing:border-box;background:#f8fafc;color:#1f3137}.vh-rate-popup textarea:focus{border-color:#ff336c;background:#fff}.vh-rate-popup-actions{display:flex;gap:8px;justify-content:flex-end}.vh-rate-popup-cancel{background:none;border:1px solid #e2e8f0;color:#64748b;border-radius:9px;padding:8px 14px;font-size:13px;font-family:inherit;cursor:pointer;transition:background .15s}.vh-rate-popup-cancel:hover{background:#f0f6f8}.vh-rate-popup-submit{background:#ff336c;color:#fff;border:none;border-radius:9px;padding:8px 16px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s}.vh-rate-popup-submit:hover{background:#ff1a5c}.vh-ch-input{padding:10px 14px 14px;border-top:1px solid #f0f6f8;display:flex;gap:8px;align-items:flex-end;flex-shrink:0}.vh-ch-input textarea{flex:1;border:1px solid #e8edf2;border-radius:22px;padding:10px 16px;font-size:14px;resize:none;min-height:42px;max-height:100px;font-family:inherit;outline:none;line-height:1.4;background:#f8fafc;color:#1f3137}.vh-ch-input textarea:focus{border-color:#ff336c;background:#fff}.vh-ch-input button{background:#ff336c;color:#fff;border:none;border-radius:50%;width:42px;height:42px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,transform .1s}.vh-ch-input button:hover{background:#ff1a5c;transform:scale(1.05)}.vh-ch-input button:disabled{background:#cbd5e1;cursor:not-allowed;transform:none}@media (max-width: 575px){#vh-chat-window{inset:0;width:100%;height:100%;max-height:none;border-radius:0}body:has(#vh-chat-window.open) #vh-chat-launcher{display:none}}
