.rw-chat{margin:1.5rem 0 2.5rem;padding:clamp(1rem,3vw,2rem);border:1px solid #c9d9df;border-radius:16px;background:#fff;color:#173841;box-shadow:0 5px 20px #163a4110}
.rw-chat-head,.rw-chat-actions{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.rw-chat h2{margin:0;font-size:clamp(1.3rem,2vw,1.65rem);line-height:1.25}
.rw-chat-status{display:inline-flex;align-items:center;gap:.45em;border-radius:99px;background:#eef2f3;color:#39515b;padding:.38em .85em;font-size:.88rem;font-weight:650}
.rw-chat-status:before{content:"";width:.58em;height:.58em;border-radius:50%;background:currentColor}
.rw-chat-status[data-state=online]{color:#176044;background:#e4f4eb}
.rw-chat-status[data-state=offline]{color:#991b1b;background:#fee2e2;border:1px solid #e99898}
.rw-chat form{display:grid;gap:.55rem;margin-top:1.2rem}.rw-chat label{font-weight:600;font-size:.94rem}
.rw-chat textarea,.rw-chat select{font:inherit;border:1px solid #9fb6be;border-radius:8px;padding:.65rem;color:#173841;background:#fff}
.rw-chat textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:4.6rem}.rw-chat select{margin-left:.4rem;padding:.35rem}
.rw-chat button{border:0;border-radius:8px;padding:.65rem 1.3rem;color:white;background:#145e72;font:inherit;font-weight:650;cursor:pointer}
.rw-chat button:disabled,.rw-chat textarea:disabled{opacity:.65;cursor:default}.rw-chat :focus-visible{outline:3px solid #067a9c;outline-offset:2px}
.rw-chat-log{display:grid;gap:.75rem;max-height:22rem;overflow:auto}.rw-chat-log:not(:empty){padding:.9rem 0 .3rem}
.rw-chat-line{padding:.7rem 1rem;border-radius:10px;background:#eef5f7;max-width:93%;min-width:0;justify-self:start}
.rw-chat-line.user{background:#e1f0f3;justify-self:end}.rw-chat-line p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.18rem 0 0}
.rw-chat-note{margin:0;color:#405861;font-size:.92rem}.rw-chat-note:empty{display:none}
@media(max-width:520px){.rw-chat-actions label,.rw-chat-actions button{width:100%}.rw-chat select{max-width:65%}}

