.chat-message { box-sizing: border-box; position: relative; width: fit-content; max-width: min(88%, 36ch); margin: 0; padding: 14px 18px; background: var(--bubble-bg, var(--darkened-bg, #f4f6f8)); color: var(--text, var(--body-fg, #20242a)); font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message::before { content: ""; position: absolute; bottom: -6px; left: 0; width: 8px; height: 6px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.visitor-message { justify-self: end; background: var(--visitor-bubble-bg, var(--selected-bg, #e4edf5)); }
.visitor-message::before { left: auto; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.source-reference { text-decoration: underline; text-underline-offset: .2em; }
