#rrr-chat-root{position:fixed;bottom:20px;right:20px;z-index:99999;font-family:inherit}
.rrr-chat-bubble{width:58px;height:58px;border-radius:50%;background:#2451f2;color:#fff;border:none;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.rrr-chat-bubble:hover{transform:scale(1.06)}
.rrr-chat-bubble svg{width:26px;height:26px}
.rrr-chat-panel{position:fixed;bottom:90px;right:20px;width:340px;max-width:calc(100vw - 32px);height:480px;max-height:calc(100vh - 130px);background:#0f0f14;border:1px solid #22222a;border-radius:14px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.5);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.rrr-chat-panel.rrr-chat-open{opacity:1;transform:translateY(0);pointer-events:auto}
.rrr-chat-head{padding:14px 16px;background:#16161d;border-bottom:1px solid #22222a;display:flex;align-items:center;justify-content:space-between}
.rrr-chat-head strong{color:#fff;font-size:14px;letter-spacing:.02em}
.rrr-chat-head span{color:#8a8a97;font-size:11px;display:block;margin-top:2px}
.rrr-chat-close{background:none;border:none;color:#8a8a97;font-size:18px;cursor:pointer;line-height:1;padding:4px}
.rrr-chat-close:hover{color:#fff}
.rrr-chat-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.rrr-chat-msg{max-width:86%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.rrr-chat-msg.user{align-self:flex-end;background:#2451f2;color:#fff;border-bottom-right-radius:3px}
.rrr-chat-msg.assistant{align-self:flex-start;background:#1c1c24;color:#e8e8ec;border:1px solid #26262f;border-bottom-left-radius:3px}
.rrr-chat-msg.system{align-self:center;background:transparent;color:#8a8a97;font-size:12px;text-align:center;max-width:100%}
.rrr-chat-typing{align-self:flex-start;display:flex;gap:4px;padding:10px 12px}
.rrr-chat-typing span{width:6px;height:6px;border-radius:50%;background:#5a5a68;animation:rrrChatBlink 1.2s infinite ease-in-out}
.rrr-chat-typing span:nth-child(2){animation-delay:.2s}
.rrr-chat-typing span:nth-child(3){animation-delay:.4s}
@keyframes rrrChatBlink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.rrr-chat-foot{border-top:1px solid #22222a;padding:10px;display:flex;gap:8px;align-items:flex-end;background:#0f0f14}
.rrr-chat-foot textarea{flex:1;resize:none;background:#1c1c24;border:1px solid #2a2a34;border-radius:10px;color:#fff;padding:9px 11px;font-size:13.5px;font-family:inherit;max-height:80px}
.rrr-chat-foot textarea:focus{outline:none;border-color:#2451f2}
.rrr-chat-send{background:#2451f2;color:#fff;border:none;border-radius:10px;width:38px;height:38px;flex-shrink:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.rrr-chat-send:disabled{opacity:.5;cursor:default}
.rrr-chat-human{align-self:center;font-size:11.5px;color:#6f8bff;background:transparent;border:1px solid #2a2a34;border-radius:999px;padding:4px 10px;cursor:pointer;margin-top:2px}
.rrr-chat-human:hover{border-color:#2451f2;color:#fff}
.rrr-chat-email-row{align-self:center;display:flex;gap:6px;width:100%;padding:0 4px}
.rrr-chat-email-row input{flex:1;background:#1c1c24;border:1px solid #2a2a34;border-radius:8px;color:#fff;padding:7px 9px;font-size:12.5px}
.rrr-chat-email-row button{background:#2451f2;color:#fff;border:none;border-radius:8px;padding:0 12px;font-size:12.5px;cursor:pointer}
@media (max-width:420px){.rrr-chat-panel{right:16px;left:16px;width:auto}}
