.chat-launch{position:relative;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#edf8fb;color:#126077;border-color:#bbdce5;font-weight:700}
.chat-launch:hover{background:#dff2f7}.chat-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;border-radius:99px;background:#d93655;color:white;font:700 12px Tahoma,sans-serif}
.chat-panel{position:fixed;left:22px;bottom:22px;z-index:90;width:min(750px,calc(100vw - 44px));height:min(570px,calc(100vh - 44px));display:flex;flex-direction:column;background:#fff;color:#193452;border:1px solid #bad0e1;border-radius:18px;box-shadow:0 24px 72px #10253e55;overflow:hidden;direction:rtl}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:linear-gradient(115deg,#123d62,#147a91);color:#fff}.chat-heading strong{display:block;font-size:17px}.chat-heading small{display:block;font-size:11px;color:#d2e8ef}.chat-heading-actions{display:flex;gap:7px}.chat-heading-actions button{width:34px;height:34px;display:grid;place-items:center;padding:0;border-color:#a7d1dd88;background:#ffffff1c;color:#fff;font-size:19px}.chat-heading-actions button:hover{background:#ffffff36}
.chat-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;flex:1}.chat-people{min-width:0;overflow:auto;background:#f4f8fc;border-left:1px solid #dce8f0}.chat-people>p{font-weight:700;color:#577087;font-size:12px;margin:0;padding:12px 14px 6px}.chat-person{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 5px;text-align:right;width:100%;border:0;border-radius:0;background:transparent;padding:10px 13px;color:#27465e}.chat-person:hover,.chat-person.selected{background:#e2f0f8}.chat-person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.chat-person small{grid-column:1;color:#688197;direction:ltr;text-align:right;font-size:11px;overflow:hidden;text-overflow:ellipsis}.chat-person b{grid-row:1/3;grid-column:2;align-self:center;min-width:20px;padding:2px 5px;background:#147a91;color:#fff;border-radius:30px;text-align:center;font-size:11px}
.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-peer{padding:10px 16px;border-bottom:1px solid #dce8f0;font-weight:700;min-height:44px}.chat-messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:15px;background:#fbfdff}.chat-message{max-width:88%;padding:8px 11px;border-radius:13px;background:#e7f1f8;align-self:flex-start;overflow-wrap:anywhere}.chat-message.mine{background:#d9f2ec;align-self:flex-end}.chat-message div{white-space:pre-wrap;line-height:1.65;font-size:13px}.chat-message small{display:block;color:#617d90;font-size:10px;margin-top:3px}.chat-compose{border-top:1px solid #dce8f0;display:flex;align-items:end;gap:8px;padding:10px}.chat-compose textarea{min-height:44px;max-height:95px;resize:vertical;font-size:13px}.chat-compose button{height:44px;background:#147a91;color:white;border-color:#147a91}.chat-more{align-self:center;border:0;background:transparent;color:#12708c;font-size:12px;padding:5px}.chat-empty{color:#7890a3;text-align:center;margin:18px 8px;font-size:13px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.chat-presence{display:inline-block;vertical-align:middle;width:9px;height:9px;flex:none;border-radius:50%;margin-left:6px;background:#9aabb9}.chat-presence.online{background:#22a567;box-shadow:0 0 0 3px #22a56725}.chat-presence.offline{background:#aeb9c4}
html[data-theme=dark] .chat-panel{background:#152c43;color:#eaf6ff;border-color:#3c5a72}html[data-theme=dark] .chat-people{background:#192f46;border-color:#34516b}html[data-theme=dark] .chat-people>p,html[data-theme=dark] .chat-person small{color:#a9c6d8}html[data-theme=dark] .chat-person{color:#e4f4ff}html[data-theme=dark] .chat-person:hover,html[data-theme=dark] .chat-person.selected{background:#2a4e63}html[data-theme=dark] .chat-peer,html[data-theme=dark] .chat-compose{border-color:#34516b}html[data-theme=dark] .chat-messages{background:#11283f}html[data-theme=dark] .chat-message{background:#2c4a62;color:#f2fbff}html[data-theme=dark] .chat-message.mine{background:#205a53}html[data-theme=dark] .chat-message small{color:#bfdae5}html[data-theme=dark] .chat-launch{background:#23445a;color:#e7f6ff;border-color:#44677b}
@media(max-width:600px){.chat-panel{left:6px;right:6px;bottom:6px;width:auto;height:min(650px,calc(100vh - 12px));border-radius:13px}.chat-layout{grid-template-columns:110px minmax(0,1fr)}.chat-person{padding:9px 6px;font-size:12px}.chat-person small{font-size:9px}.chat-messages{padding:10px}.chat-message{max-width:98%}.chat-launch{padding:6px 9px}}
@media print{.chat-panel,.chat-launch{display:none!important}}
