.chat-context-menu{position:fixed;z-index:13000;min-width:174px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;box-sizing:border-box;padding:5px;border:1px solid var(--border,#dce3df);border-radius:10px;background:var(--surface,#fff);box-shadow:0 8px 32px rgba(20,35,52,.16),0 2px 6px rgba(20,35,52,.06);font-family:inherit;font-size:14px;user-select:none;animation:chat-menu-appear .12s ease-out}
.chat-context-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:8px 12px;border:0;border-radius:6px;background:transparent;color:var(--text,#283443);text-align:left;font:inherit;white-space:nowrap;cursor:pointer}
.chat-context-menu button:hover,.chat-context-menu button:focus-visible{background:var(--accent-soft,#edf5f0);outline:none;color:var(--accent,#16603d)}
.chat-context-menu .context-menu-symbol{display:inline-flex;justify-content:center;min-width:18px;color:var(--muted,#697786);font-size:17px}
.chat-context-target:focus-visible{outline:2px solid var(--accent,#218769);outline-offset:4px;border-radius:4px}
.chat-selecting{padding-bottom:72px!important}
.chat-selecting .msg.chat-selectable{position:relative;padding-left:32px;box-sizing:border-box}
.chat-selecting .chat-multiselect-toggle{position:absolute;left:0;top:10px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;margin:0;padding:0;border:1px solid var(--border,#c7d3cc);border-radius:50%;background:var(--surface,#fff);color:transparent;font-size:15px;cursor:pointer}
.chat-selecting .chat-multiselect-toggle[aria-pressed="true"]{background:var(--accent,#218769);border-color:var(--accent,#218769);color:#fff}
.chat-selecting .chat-multiselect-toggle:focus-visible{outline:2px solid var(--accent,#218769);outline-offset:3px}
.chat-selecting .chat-message-selected>.message-body{border-radius:8px;outline:2px solid var(--accent,#218769);outline-offset:4px}
.chat-multiselect-bar{position:fixed;z-index:12000;display:flex;align-items:center;justify-content:flex-end;gap:12px;box-sizing:border-box;min-height:48px;padding:8px 12px;border:1px solid var(--border,#dce3df);border-radius:8px;background:var(--surface,#fff);box-shadow:0 3px 18px rgba(20,35,52,.12);font-family:inherit;font-size:13px;line-height:1.4;color:var(--text,#283443)}
.chat-multiselect-count{margin-right:auto;white-space:nowrap}
.chat-multiselect-bar button{min-height:32px;padding:5px 13px;border:1px solid var(--accent,#218769);border-radius:6px;background:var(--accent,#218769);color:#fff;font:inherit;white-space:nowrap;cursor:pointer}
.chat-multiselect-bar button:disabled{opacity:.45;cursor:default}
.chat-multiselect-bar button:focus-visible{outline:2px solid var(--accent,#218769);outline-offset:3px}
.chat-multiselect-bar .chat-multiselect-cancel{border-color:var(--border,#dce3df);background:transparent;color:var(--text,#283443)}
:root[data-theme="dark"] .chat-context-menu,:root[data-theme="dark"] .chat-multiselect-bar{background:var(--panel,#25312b);color:var(--text,#e3e9e5);border-color:var(--border,#46564d)}
:root[data-theme="dark"] .chat-context-menu button,:root[data-theme="dark"] .chat-multiselect-bar .chat-multiselect-cancel{color:var(--text,#e3e9e5)}
@media(max-width:480px){.chat-context-menu button{min-height:42px}.chat-multiselect-bar{gap:8px;padding:8px}.chat-multiselect-bar button{padding:5px 9px}.chat-selecting .msg.chat-selectable{padding-left:28px}.chat-selecting .chat-multiselect-toggle{width:22px;height:22px;min-height:22px}}
@keyframes chat-menu-appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.chat-context-menu{animation:none}}

.chat-multiselect-delete{color:#bb3434}
.chat-multiselect-delete:hover{background:#fff0ee}
