/* A conversation-first window: fixed header/composer, one message scroller. */
.widget-chat-frame.shell{width:100%;max-width:none;overflow:hidden;background:var(--panel,#fff)}
.widget-chat-frame .chat{position:relative;overflow:hidden;height:100%;margin:0}
.widget-chat-frame .chathead{padding:16px 48px 16px 18px;gap:12px;min-height:76px;background:linear-gradient(120deg,#eee8ff,#f5f8ff);border-bottom:1px solid #e2dcf6}
.widget-brand-logo{width:36px;height:36px;object-fit:contain;flex-shrink:0}
.widget-chat-frame .chathead strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.widget-chat-frame .chathead small{font-size:12px;margin-top:3px}
.widget-chat-frame .messages{flex:1 1 0;min-height:0;overflow-y:auto;padding:20px 16px;gap:14px}
.widget-chat-frame .bubble{max-width:92%;font-size:14px;line-height:1.65;padding:12px 14px;border-radius:15px}
.widget-chat-frame .chips{max-height:60px;flex-shrink:0}
.widget-chat-frame .voicestatus:empty{display:none}
.widget-chat-frame .widget-composer-row{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 4px;flex-shrink:0;border-top:1px solid var(--line)}
.widget-chat-frame .chatform{flex:1;min-width:0;margin:0;padding:4px;gap:2px;border:1px solid var(--line);border-radius:18px;background:var(--panel,#fff)}
.widget-chat-frame .chatform textarea{min-width:0;width:100%;min-height:40px;max-height:90px;font-size:14px;padding:10px 8px}
.widget-chat-frame .chatform .send,.widget-chat-frame .composer-mic{min-width:36px;min-height:40px;width:36px}
.widget-chat-frame .widget-action-menu{border:0;flex-shrink:0;font-size:14px}
.widget-chat-frame .widget-action-menu>summary{display:grid;place-items:center;list-style:none;width:40px;height:48px;padding:0;border-radius:14px;background:#eaf1ff;color:#245dde;font-size:26px;cursor:pointer}
.widget-chat-frame summary::-webkit-details-marker{display:none}
.widget-chat-frame .widget-action-menu[open]>summary{background:#dce8ff}
.widget-chat-frame .widget-action-menu .widget-actions{position:absolute;z-index:5;left:12px;right:12px;bottom:86px;padding:8px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #24115424;max-height:calc(100% - 174px);overflow-y:auto}
.widget-chat-frame .widget-actions>button{display:block;width:100%;margin:0;padding:11px 12px;border:0;border-radius:9px;text-align:left;background:transparent;color:#2859ce;font-size:14px}
.widget-chat-frame .widget-actions>button:hover{background:#edf3ff}
.widget-chat-frame .widget-action-menu.has-card .widget-actions>button{display:none}
.widget-chat-frame .interactive-card{max-height:none;overflow:visible;margin:0;border:0;padding:8px}
.widget-chat-frame .widget-voice-info{flex-shrink:0;font-size:11px;padding:0 16px;color:var(--muted)}
.widget-chat-frame .widget-voice-info summary{cursor:pointer;padding:4px 0}
.widget-chat-frame .widget-voice-info .voiceprivacy{margin:3px 0 8px;font-size:11px;line-height:1.4}
.widget-chat-frame .powered{padding:6px 12px 10px;font-size:10px}
[data-theme=dark] .widget-chat-frame .chathead{background:#24203b;border-color:#403756}
[data-theme=dark] .widget-chat-frame .widget-actions>button{color:#b9caff}
.widget-chat-frame summary:focus-visible{outline:2px solid #6854e7;outline-offset:2px}
