.mx-chat-shell{display:grid;grid-template-columns:330px minmax(0,1fr);gap:14px;min-height:650px}
.mx-chat-side,.mx-chat-main{background:#fff;border:1px solid #dce5f0;border-radius:14px;overflow:hidden}
.mx-chat-side{display:flex;flex-direction:column}
.mx-chat-side-head{padding:14px;border-bottom:1px solid #e6edf5}
.mx-chat-side-head h3{margin:0 0 10px;font-size:15px}
.mx-chat-new{display:grid;grid-template-columns:1fr auto;gap:8px}
.mx-chat-new select,.mx-chat-group input,.mx-chat-group select,.mx-chat-compose textarea{width:100%;border:1px solid #d8e2ef;border-radius:10px;padding:9px;background:#fff}
.mx-chat-group{margin-top:10px;padding-top:10px;border-top:1px solid #edf1f6}
.mx-chat-group summary{cursor:pointer;font-size:12px;font-weight:700;color:#246fc1}
.mx-chat-group .row{display:grid;gap:7px;margin-top:9px}
.mx-chat-threads{overflow:auto;flex:1;min-height:0}
.mx-chat-thread{width:100%;border:0;border-bottom:1px solid #edf1f6;background:#fff;padding:12px 14px;text-align:left;cursor:pointer}
.mx-chat-thread:hover,.mx-chat-thread.active{background:#eef6ff}
.mx-chat-thread-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mx-chat-thread b{font-size:13px;color:#17385e}
.mx-chat-thread p{margin:5px 0 0;font-size:11px;color:#718096;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-chat-unread{min-width:20px;height:20px;border-radius:999px;background:#1767c7;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:800;padding:0 5px}
.mx-chat-main{display:grid;grid-template-rows:auto 1fr auto;min-width:0}
.mx-chat-header{padding:14px 16px;border-bottom:1px solid #e6edf5}
.mx-chat-header b{display:block;font-size:15px;color:#17385e}
.mx-chat-header span{font-size:11px;color:#718096}
.mx-chat-messages{padding:18px;overflow:auto;background:#f7f9fc;min-height:500px;max-height:620px}
.mx-chat-empty{height:100%;display:grid;place-items:center;text-align:center;color:#718096}
.mx-chat-msg{display:flex;margin:8px 0}
.mx-chat-msg.mine{justify-content:flex-end}
.mx-chat-bubble{max-width:min(72%,640px);background:#fff;border:1px solid #dfe7f1;border-radius:12px;padding:9px 11px;box-shadow:0 2px 5px rgba(21,55,91,.04)}
.mx-chat-msg.mine .mx-chat-bubble{background:#dfeeff;border-color:#c8def8}
.mx-chat-bubble strong{display:block;font-size:11px;color:#315789;margin-bottom:3px}
.mx-chat-bubble div{white-space:pre-wrap;word-break:break-word;font-size:13px;color:#1f2d3d}
.mx-chat-bubble small{display:block;text-align:right;color:#8a98aa;font-size:9px;margin-top:5px}
.mx-chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-top:1px solid #e6edf5;background:#fff}
.mx-chat-compose textarea{resize:none;min-height:44px;max-height:110px}
.mx-chat-compose button{align-self:end}
@media(max-width:900px){.mx-chat-shell{grid-template-columns:1fr}.mx-chat-side{max-height:350px}.mx-chat-messages{min-height:420px}}
