.rlc{ --rlc-color:#123524; position:fixed; right:20px; bottom:20px; z-index:99999; font-family:inherit; font-size:14px; }
.rlc *{ box-sizing:border-box; }
.rlc-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.rlc-act{ width:58px; height:58px; border-radius:50%; background:var(--rlc-color); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.3); text-decoration:none; }
.rlc-act:hover{ color:#fff; opacity:.9; }
.rlc-fab{ width:58px; height:58px; border-radius:50%; border:0; background:var(--rlc-color); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.3); position:relative; margin-left:auto; }
.rlc-badge{ position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; border-radius:10px; background:#d63638; color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.rlc-panel{ position:absolute; right:72px; bottom:0; width:360px; max-width:calc(100vw - 24px); height:540px; max-height:calc(100vh - 40px); background:#f4f6f8; border-radius:16px; box-shadow:0 8px 30px rgba(0,0,0,.28); display:flex; flex-direction:column; overflow:hidden; }
.rlc-panel[hidden]{ display:none; }
.rlc-head{ background:var(--rlc-color); color:#fff; padding:14px 16px; display:flex; align-items:center; gap:10px; flex-shrink:0; }
.rlc-head--big{ padding-bottom:6px; }
.rlc-title{ flex:1; font-weight:700; font-size:16px; }
.rlc-close, .rlc-back{ background:none; border:0; color:#fff; font-size:26px; line-height:1; cursor:pointer; padding:0 4px; }
.rlc-sub{ background:var(--rlc-color); color:#fff; padding:0 16px 56px; font-size:15px; }
.rlc-body{ flex:1; overflow:auto; padding:0 14px; margin-top:-40px; }
.rlc-card{ background:#fff; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.12); padding:6px 0; }
.rlc-card-title{ font-weight:700; padding:10px 14px; }
.rlc-row{ width:100%; display:flex; align-items:center; gap:10px; padding:10px 14px; background:none; border:0; text-align:left; cursor:pointer; }
.rlc-row:hover{ background:#f4f6f8; }
.rlc-avatar{ width:38px; height:38px; border-radius:50%; background:#dfe3e8; overflow:hidden; flex-shrink:0; display:block; }
.rlc-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.rlc-row-mid{ flex:1; min-width:0; display:flex; flex-direction:column; }
.rlc-row-name{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rlc-row-last{ color:#6b7280; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rlc-row-right{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; color:#6b7280; }
.rlc-dot{ background:#d63638; color:#fff; border-radius:10px; min-width:18px; padding:0 5px; text-align:center; }
.rlc-foot{ padding:12px 14px; background:#fff; flex-shrink:0; }
.rlc-btn{ width:100%; padding:12px; border:0; border-radius:10px; background:var(--rlc-color); color:#fff; font-weight:700; cursor:pointer; font-size:15px; }
.rlc-btn:disabled{ opacity:.6; cursor:default; }
.rlc-form{ padding:16px; display:flex; flex-direction:column; gap:12px; background:#fff; flex:1; }
.rlc-form input{ padding:12px; border:1px solid #d5d9de; border-radius:10px; font-size:14px; width:100%; }
.rlc-err{ color:#d63638; font-size:13px; min-height:16px; }
.rlc-msgs{ flex:1; overflow:auto; padding:14px; display:flex; flex-direction:column; gap:8px; }
.rlc-note{ align-self:center; text-align:center; background:#fff; color:#555; border-radius:12px; padding:10px 14px; font-size:13px; max-width:90%; }
.rlc-msg{ display:flex; }
.rlc-msg--me{ justify-content:flex-end; }
.rlc-bubble{ max-width:80%; padding:9px 13px; border-radius:16px; white-space:pre-wrap; word-wrap:break-word; }
.rlc-msg--op .rlc-bubble{ background:#fff; color:#222; border-bottom-left-radius:4px; }
.rlc-msg--me .rlc-bubble{ background:var(--rlc-color); color:#fff; border-bottom-right-radius:4px; }
.rlc-send{ display:flex; gap:8px; padding:10px; background:#fff; flex-shrink:0; }
.rlc-send textarea{ flex:1; resize:none; border:1px solid #d5d9de; border-radius:10px; padding:10px; font:inherit; max-height:90px; }
.rlc-sendbtn{ width:42px; border:0; border-radius:10px; background:var(--rlc-color); color:#fff; cursor:pointer; font-size:16px; }
.rlc-sendbtn:disabled{ opacity:.6; }
@media (max-width:480px){ .rlc{ right:12px; bottom:12px; } .rlc-panel{ position:fixed; left:12px; right:12px; bottom:12px; width:auto; height:calc(100vh - 24px); max-height:none; } }

.rlc-form textarea{ padding:12px; border:1px solid #d5d9de; border-radius:10px; font:inherit; width:100%; resize:none; }
.rlc-panel--form{ height:auto; }
.rlc-panel--form .rlc-form{ flex:none; }
@media (max-width:480px){
.rlc-panel{ height:calc(100vh - 24px); height:calc(100dvh - 24px); }
.rlc-panel--form{ height:auto; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); top:auto; }
.rlc-form input, .rlc-form textarea{ font-size:16px; }
}
