.mention-composer{position:relative;flex:1;min-width:0}
#chat-form .mention-composer textarea{width:100%;min-height:46px;max-height:120px;resize:vertical;margin:0;font:inherit;line-height:1.45}
#chat-form>button{min-height:46px;flex-shrink:0;align-self:flex-end}
.mention-picker{position:absolute;bottom:calc(100% + 8px);left:0;right:0;z-index:20;max-height:min(260px,35dvh);overflow:auto;overscroll-behavior:contain;padding:6px;background:var(--theme-0e1711,#0e1711);color:var(--theme-a6f5b9,#a6f5b9);border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 24px #0004}
.mention-picker[hidden]{display:none}
.mention-picker button{display:flex;gap:12px;align-items:center;justify-content:space-between;text-align:left;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:inherit}
.mention-picker button[aria-selected=true]{background:var(--primary);color:var(--theme-0e1711,#0e1711)}
.mention-picker small{opacity:.75;overflow-wrap:anywhere}
.chat-mention{font:inherit;font-weight:600;display:inline;padding:1px 4px;border:0;border-radius:4px;background:var(--theme-233b2b,#233b2b);color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.message p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){#chat-form{gap:8px;align-items:flex-end}.mention-picker{min-width:200px}.chat-mention{min-height:32px}}

/* Body editors use an inline picker, avoiding clipped popups inside mobile dialogs. */
.content-mention-composer{position:relative;min-width:0}.content-mention-composer .mention-picker{position:relative;bottom:auto;left:auto;right:auto;min-width:0;width:100%;max-height:min(210px,32dvh);margin-top:6px;box-sizing:border-box}.forum-body .chat-mention,.forum-comment .chat-mention{white-space:normal;max-width:100%}
