.rd-chat{z-index:60;flex-direction:column;align-items:flex-end;gap:12px;font-family:inherit;display:flex;position:fixed;bottom:20px;right:20px}.rd-chat-launch{background:var(--accent-solid);width:56px;height:56px;color:var(--accent-on-solid,#fff);cursor:pointer;box-shadow:var(--shadow-lg);border:0;border-radius:999px;place-items:center;transition:transform .15s,background .15s;display:grid;position:relative}.rd-chat-launch:hover{background:var(--accent-solid-hover);transform:translateY(-1px)}.rd-chat-launch:focus-visible{outline:3px solid var(--accent-ring);outline-offset:2px}.rd-chat-badge{background:var(--danger-solid);color:#fff;text-align:center;border-radius:999px;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:600;line-height:20px;position:absolute;top:-2px;right:-2px}.rd-chat-panel{background:var(--surface-card);width:380px;max-width:calc(100vw - 32px);height:min(600px,100dvh - 120px);color:var(--text-primary);border:1px solid var(--border-subtle);box-shadow:var(--shadow-lg);border-radius:16px;flex-direction:column;display:flex;overflow:hidden}.rd-chat-head{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 14px 12px 16px;display:flex}.rd-chat-title{font-size:16px;font-weight:650}.rd-chat-sub{color:var(--text-secondary);margin-top:2px;font-size:13px}.rd-chat-x{color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:32px;height:32px;display:grid}.rd-chat-x:hover{background:var(--surface-hover);color:var(--text-primary)}.rd-chat-list{overscroll-behavior:contain;flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.rd-chat-msg{overflow-wrap:anywhere;border-radius:14px;max-width:85%;padding:10px 12px;font-size:14px;line-height:1.45}.rd-chat-msg p{white-space:pre-wrap;margin:0}.rd-chat-msg p+p{margin-top:8px}.rd-chat-msg a{color:inherit;text-underline-offset:2px;text-decoration:underline}.rd-chat-msg[data-role=bot],.rd-chat-msg[data-role=team]{background:var(--surface-sunken);border-bottom-left-radius:4px;align-self:flex-start}.rd-chat-msg[data-role=team]{border:1px solid var(--accent-border);background:var(--accent-soft)}.rd-chat-msg[data-role=visitor]{background:var(--primary-solid);color:var(--primary-on-solid);border-bottom-right-radius:4px;align-self:flex-end}.rd-chat-who{color:var(--text-accent);margin-bottom:4px;font-size:12px;font-weight:600}.rd-chat-typing{align-items:center;gap:4px;padding:12px 14px;display:inline-flex}.rd-chat-typing span{background:var(--text-muted);border-radius:999px;width:6px;height:6px;animation:1.2s ease-in-out infinite rd-chat-dot}.rd-chat-typing span:nth-child(2){animation-delay:.15s}.rd-chat-typing span:nth-child(3){animation-delay:.3s}@keyframes rd-chat-dot{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@media (prefers-reduced-motion:reduce){.rd-chat-typing span{opacity:.6;animation:none}.rd-chat-launch{transition:none}}.rd-chat-chips{flex-wrap:wrap;gap:6px;display:flex}.rd-chat-chips button{border:1px solid var(--border-default);background:var(--surface-card);color:var(--text-primary);cursor:pointer;text-align:left;border-radius:999px;padding:6px 12px;font-size:13px}.rd-chat-chips button:hover{background:var(--surface-hover)}.rd-chat-contact{border:1px solid var(--border-subtle);background:var(--surface-card);border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.rd-chat-contact p{color:var(--text-secondary);margin:0;font-size:13px}.rd-chat-contact input{width:100%;font:inherit;border:1px solid var(--border-default);background:var(--surface-card);color:var(--text-primary);border-radius:8px;padding:8px 10px;font-size:14px}.rd-chat-contact input:focus{outline:2px solid var(--accent-ring);border-color:var(--border-focus)}.rd-chat-contact .hq-btn{align-self:flex-start}.rd-chat-note{color:var(--text-secondary);text-align:center;margin:0;font-size:13px}.rd-chat-error{color:var(--danger-text);margin:0;font-size:13px}.rd-chat-error-bar{padding:8px 16px 0}.rd-chat-input{border-top:1px solid var(--border-subtle);align-items:flex-end;gap:8px;padding:10px 12px;display:flex}.rd-chat-input textarea{resize:none;font:inherit;field-sizing:content;border:1px solid var(--border-default);background:var(--surface-card);max-height:120px;color:var(--text-primary);border-radius:12px;flex:1;padding:9px 12px;font-size:14px;line-height:1.4}.rd-chat-input textarea:focus{outline:2px solid var(--accent-ring);border-color:var(--border-focus)}.rd-chat-input button{background:var(--accent-solid);width:38px;height:38px;color:var(--accent-on-solid,#fff);cursor:pointer;border:0;border-radius:999px;flex:none;place-items:center;display:grid}.rd-chat-input button svg{transform:rotate(-45deg)}.rd-chat-input button:disabled{opacity:.4;cursor:default}.rd-chat-person{color:var(--text-secondary);cursor:pointer;text-underline-offset:2px;background:0 0;border:0;padding:0 0 10px;font-size:12px;text-decoration:underline}.rd-chat-person:hover{color:var(--text-primary)}@media (max-width:640px){.rd-chat{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}.rd-chat[data-open=true]{gap:0;inset:0}.rd-chat[data-open=true] .rd-chat-panel{border:0;border-radius:0;width:100vw;max-width:100vw;height:100dvh}.rd-chat[data-open=true] .rd-chat-launch{display:none}.rd-chat-input textarea{font-size:16px}}
