.chat-history{display:flex;flex-direction:column;gap:16px;max-height:540px;min-height:180px;overflow-y:auto;padding:20px 14px;background:#f8f8fa;border:1px solid #eee9ec;border-radius:18px;scrollbar-width:thin;overscroll-behavior:contain}
.chat-message{align-self:flex-start;max-width:88%;min-width:180px;padding:16px 18px;background:#fff;border:1px solid #e9e4e7;border-radius:18px 18px 18px 4px;box-sizing:border-box;overflow-wrap:anywhere;box-shadow:0 3px 12px #18191d05}
.chat-message.chat-own{align-self:flex-end;background:#fff;border-color:#e9e4e7;border-radius:18px 18px 4px 18px}
.chat-message .message-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 20px;margin-bottom:8px}
.chat-message .message-head strong{color:#343139;font-size:12px}.chat-message time{color:#7e7882;font-size:10px;margin-left:auto}
.chat-message .multiline{margin:0;color:#39343c;line-height:1.7;font-size:13px;white-space:pre-wrap}
.chat-message.chat-system{align-self:center;max-width:95%;background:transparent;border:1px dashed #ddd5da;border-radius:12px;box-shadow:none;opacity:.85}
.chat-message.chat-system .multiline{font-size:11px;color:#6f6570}
.chat-message .attachment-link{display:flex;align-items:center;gap:8px;margin-top:12px;white-space:normal;word-break:break-word}
.chat-composer{margin-top:18px;padding-top:18px}.chat-composer textarea{min-height:76px;resize:vertical}.chat-composer .attachment-label{padding:12px 14px}.chat-composer .chat-status{margin:8px 0;font-size:11px;min-height:16px}.chat-composer button:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.chat-history{padding:12px 8px;max-height:430px}.chat-message{max-width:95%;min-width:0;padding:12px}.chat-message .message-head{gap:5px}.chat-message time{margin-left:0;flex-basis:100%}}

.chat-message.chat-solution{background:#f1f8f4;border-color:#d3e8dd}.chat-message.chat-solution .eyebrow{color:#39795f;margin-bottom:10px}.chat-message.chat-solution .multiline{color:#294b3c}
