/* Additive overlay. Preserve the development stylesheet; do not replace it with the old Git copy. */
.ai-chat__message--manager::before { background-image:var(--chat-avatar-url,url("/images/chat_sena.png")); }
.ai-chat__menu-context { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#fff; border-bottom:1px solid #f0e8f0; }
.ai-chat__menu-context strong { flex:1; min-width:0; font-size:12px; line-height:1.3; overflow-wrap:anywhere; }
.ai-chat__stage-select { margin-left:auto; max-width:50%; min-width:0; min-height:44px; border:1px solid #ded6dc; border-radius:8px; padding:5px; background:#fff; font-size:11px; }
.ai-chat__development-notice { padding:6px 15px 0; color:#666; background:#fff; font-size:10px; line-height:1.3; }
.ai-chat__status { display:block; overflow-wrap:anywhere; line-height:1.4; padding:4px 0; }
.ai-chat__notice { max-height:68px; overflow:auto; }
.ai-chat__identity small { font-size:clamp(11px,2.9vw,16px); overflow-wrap:anywhere; }
.ai-chat__launcher-text small { font-size:13px; overflow-wrap:anywhere; }
.ai-chat__launcher-text strong { overflow-wrap:anywhere; }
.ai-chat__body { min-height:0; }
.ai-chat__actions[hidden] { display:none; }
@media(max-width:767px){.ai-chat__launcher{max-width:calc(100vw - 32px);} .ai-chat__menu-context{padding:7px 10px;} .ai-chat__stage-select{max-width:52%;} .ai-chat__notice{max-height:60px;} }

/* Staff consultation / end-chat are always-visible buttons, not a second select. */
.ai-chat__menu-context { flex-wrap:nowrap; gap:8px; }
.ai-chat__stage-select { margin-left:0; flex:1 1 110px; min-width:0; max-width:none; }
.ai-chat__manage-buttons { display:flex; align-items:center; justify-content:flex-end; flex:0 0 auto; flex-wrap:nowrap; gap:8px; }
.ai-chat__manage-button { min-height:36px; padding:7px 13px; border:1px solid #dfd2dc; border-radius:999px; background:#fff; color:#272027; font:inherit; font-size:12px; font-weight:500; line-height:1.3; white-space:nowrap; cursor:pointer; }
.ai-chat__manage-button:hover:not(:disabled) { border-color:#b00072; color:#9e0065; }
.ai-chat__manage-button:focus-visible { outline:2px solid #a40068; outline-offset:2px; }
.ai-chat__manage-button:disabled { opacity:.48; cursor:not-allowed; }
@media(max-width:767px){ .ai-chat__manage-buttons { gap:7px; } .ai-chat__manage-button { min-height:34px; padding:6px 11px; font-size:11px; } }

@media(max-width:359px) { .ai-chat__menu-context { gap:4px; padding:6px 8px; } .ai-chat__stage-select { font-size:10px; } .ai-chat__manage-buttons { gap:4px; } .ai-chat__manage-button { padding:6px 8px; font-size:10px; } }
