/* AMOM_DIRECT_CHAT_20261016 */
:root{color-scheme:light;--chat-ink:#352d34;--chat-muted:#756c74;--chat-brand:#754966;--chat-line:#e9e1e7;--chat-soft:#f4eff3;--chat-page:#f5f1f4;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body.ask-page{margin:0;height:100%;overflow:hidden;background:var(--chat-page);color:var(--chat-ink)}button,input,textarea{font:inherit}button,a,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--chat-brand);outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ask-page #main{height:100vh;height:100dvh;padding:24px}
.ask-page #chat-dialog{position:relative;inset:auto;margin:auto;width:100%;max-width:800px;height:min(var(--consult-height,calc(100dvh - 48px)),960px);max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--chat-line);border-radius:24px;background:#fff;box-shadow:0 12px 50px #4b2b4210;display:flex;flex-direction:column;overflow:hidden;color:var(--chat-ink)}
.chat-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #f0eaf0;flex-shrink:0}.portrait-wrap{position:relative;width:50px;height:50px;flex-shrink:0;padding:0;border:0;border-radius:50%;overflow:hidden;background:var(--chat-soft)}.portrait-wrap img{display:block;width:100%;height:100%;object-fit:cover}.portrait-wrap.listening{box-shadow:0 0 0 4px #eadce7}.portrait-wrap.speaking{box-shadow:0 0 0 4px #e3ede6}.chat-title{flex:1;min-width:0}#chat-heading{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.3px;margin:0}.chat-title p{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;color:var(--chat-muted);margin:4px 0 0}.chat-online{width:6px;height:6px;border-radius:50%;background:#7d9888}.icon-btn{display:grid;place-items:center;width:44px;height:44px;padding:12px;border:0;border-radius:50%;background:transparent;color:var(--chat-muted)}.icon-btn:hover{background:var(--chat-soft)}.icon-btn svg{width:20px;height:20px}
.consult-layout,.chat-conversation{display:flex;flex:1;min-height:0;overflow:hidden}.chat-conversation{flex-direction:column}.chat-messages{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-height:60px;overflow:auto;overscroll-behavior:contain;padding:30px 28px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.message{flex-shrink:0;white-space:pre-line;overflow-wrap:anywhere;max-width:88%;font-size:16px;line-height:1.65;border-radius:3px 19px 19px 19px;padding:14px 18px;margin:0 0 16px;background:var(--chat-soft);color:var(--chat-ink)}.message p{margin:0}.message p+p{margin-top:5px}.message.user{align-self:flex-end;background:var(--chat-brand);color:#fff;border-radius:19px 3px 19px 19px}.welcome-message{padding:16px 18px}.message-play{display:block;border:0;padding:8px 0 0;min-height:36px;background:transparent;color:var(--chat-brand);font-size:12px;font-weight:500}.message-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.message-links a,.message-links button{display:inline-flex;align-items:center;min-height:40px;padding:7px 11px;border:1px solid #dfd2dc;border-radius:10px;background:#ffffffa6;color:var(--chat-brand);text-decoration:none;font-size:13px;font-weight:500;line-height:1.4}.pending{color:var(--chat-muted);font-size:14px}
.chat-bottom{flex-shrink:0;padding:0 24px max(16px,env(safe-area-inset-bottom));background:#fff}.chat-keywords{display:flex;gap:7px;padding:8px 0;overflow:auto;scrollbar-width:none}.chat-keywords::-webkit-scrollbar{display:none}.chat-keywords button{flex:0 0 auto;border:1px solid var(--chat-line);background:#fff;color:#71616d;border-radius:999px;min-height:40px;padding:8px 13px;font-size:12px;line-height:1.3}.chat-keywords button:hover{background:var(--chat-soft)}.voice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;line-height:1.5;color:var(--chat-muted)}#voice-status{margin:0;flex:1;min-width:170px;min-height:18px;padding:2px 0 6px}#voice-status[data-activity=listening]{color:var(--chat-brand);font-weight:600}#voice-replay{border:0;background:transparent;color:var(--chat-brand);padding:6px 0;min-height:36px;font-size:12px}.answer-audio{width:100%;height:40px;margin-bottom:6px}
#chat-form{display:flex;align-items:flex-end;gap:5px;margin:0;padding:6px;border:1px solid #dfd3dc;border-radius:20px;background:#fff;box-shadow:0 3px 12px #4b2b4205}#chat-form:focus-within{border-color:#b69aaa}#chat-input{display:block;flex:1;min-width:0;width:100%;height:44px;max-height:116px;resize:none;border:0;border-radius:12px;outline:none;box-shadow:none;padding:11px 10px;font-size:16px;line-height:22px;background:transparent;color:var(--chat-ink);overflow-y:auto}#chat-input::placeholder{color:#9a8d97}#chat-form button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:11px;border:0;border-radius:50%;box-shadow:none}#chat-form svg{width:22px;height:22px;display:block}#voice-input{background:var(--chat-soft);color:var(--chat-brand)}#voice-input[aria-pressed=true]{background:var(--chat-brand);color:white}#voice-input[aria-pressed=true] svg{animation:voice-pulse 1.4s ease-in-out infinite}.composer-send{background:var(--chat-brand);color:#fff}.chat-tools{display:flex;align-items:center;gap:10px;margin-top:5px;font-size:11px;line-height:1.3;color:var(--chat-muted)}.chat-tools>div{display:flex;gap:14px;margin-right:auto}.chat-tools a,.chat-tools button{display:inline-flex;align-items:center;min-height:36px;padding:0;border:0;background:transparent;text-decoration:none;color:inherit;font-size:inherit;white-space:nowrap}.chat-tools button[aria-pressed=true]{color:var(--chat-brand)}.chat-tools a:hover,.chat-tools button:hover{text-decoration:underline}.chat-privacy{font-size:10px;line-height:1.5;margin:0;color:#897d86}.chat-privacy a{color:inherit;text-underline-offset:2px}.chat-mode{font-size:11px;line-height:1.5;margin:5px 0 0;color:#756173}#recording-fallback{border-radius:12px;background:var(--chat-soft);padding:10px 12px;margin:4px 0 8px;font-size:12px;line-height:1.5}#recording-fallback p{margin:0 0 7px}.recording-upload{display:block;color:var(--chat-brand)}.recording-upload input{display:block;width:100%;font-size:12px;margin-top:5px}
@keyframes voice-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){#voice-input[aria-pressed=true] svg{animation:none}}
@media(max-width:699px){.ask-page #main{padding:0}.ask-page #chat-dialog{max-height:none;height:var(--consult-height,100dvh);max-width:none;border:0;border-radius:0;box-shadow:none}.chat-head{padding:max(12px,env(safe-area-inset-top)) 16px 12px;gap:10px}.portrait-wrap{width:44px;height:44px}#chat-heading{font-size:19px}.chat-title p{font-size:11px}.chat-messages{padding:22px 16px 10px}.message{max-width:92%;font-size:16px;padding:12px 15px}.chat-bottom{padding:0 12px max(10px,env(safe-area-inset-bottom))}.chat-tools{gap:10px;font-size:10px}.chat-tools>div{gap:12px}.chat-privacy{font-size:9px;line-height:1.45}.keyboard-open .chat-keywords{display:none}.chat-keywords{padding-top:4px}.chat-keywords button{min-height:38px}#chat-form{border-radius:18px}.welcome-message{padding:14px 15px}}
@media(max-height:460px){.chat-head{padding-top:8px;padding-bottom:8px}.chat-keywords,.chat-privacy{display:none}.chat-messages{padding-top:12px}.chat-bottom{padding-bottom:6px}}
/* AMOM_AGENT_FLOW_20261016: compact, single-conversation layout. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ask-page #chat-dialog{max-width:720px;height:min(var(--consult-height,calc(100dvh - 48px)),860px);border-radius:20px}
.ask-page #chat-dialog .chat-head{padding:16px 20px;gap:10px;background:#fff}
.ask-page #chat-dialog .portrait-wrap{width:38px;height:38px;margin:0;border:0;border-radius:50%}
.ask-page #chat-dialog #chat-heading{font-size:17px;line-height:1.3}
.ask-page #chat-dialog .chat-title p{font-size:11px;margin-top:3px}
.chat-head-actions{display:flex;align-items:center;gap:3px}
.chat-book{display:flex;align-items:center;justify-content:center;min-width:48px;height:40px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:var(--chat-brand);font-size:13px;font-weight:500;text-decoration:none}
.chat-menu{position:relative}.chat-menu summary{display:grid;place-items:center;width:40px;height:40px;list-style:none;border-radius:50%;cursor:pointer;color:var(--chat-muted)}.chat-menu summary::-webkit-details-marker{display:none}.chat-menu summary svg{width:21px;height:21px;fill:currentColor}.chat-menu summary:hover,.chat-book:hover{background:var(--chat-soft)}
.chat-menu-panel{position:absolute;z-index:10;right:0;top:44px;min-width:190px;padding:6px;background:white;border:1px solid var(--chat-line);border-radius:14px;box-shadow:0 8px 30px #3a25321a}
.chat-menu-panel button,.chat-menu-panel a,.chat-menu-panel #voice-replay{display:flex;align-items:center;text-align:left;width:100%;min-height:42px;margin:0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--chat-ink);font-size:13px;text-decoration:none}.chat-menu-panel button:hover,.chat-menu-panel a:hover{background:var(--chat-soft)}
.ask-page #chat-dialog .icon-btn{width:40px;height:40px;padding:11px}
.ask-page #chat-dialog .chat-messages{padding:24px 20px 12px}
.ask-page #chat-dialog .message{max-width:90%;font-size:16px;line-height:1.6;border-radius:16px 16px 16px 4px;background:#f5f4f5}
.ask-page #chat-dialog .message.user{background:#ede3eb;color:var(--chat-ink);border-radius:16px 16px 4px 16px}
.ask-page #chat-dialog .welcome-message{padding:13px 16px}.welcome-message p+p{margin-top:2px}
.message-inline-link{color:var(--chat-brand);text-decoration:underline;text-underline-offset:3px}
.ask-page #chat-dialog .chat-bottom{padding:0 16px max(12px,env(safe-area-inset-bottom))}
.ask-page #chat-dialog .chat-keywords{padding:6px 0 10px;gap:6px}
.ask-page #chat-dialog .chat-keywords button{font-size:12px;min-height:38px;padding:7px 12px}
.ask-page #chat-dialog #chat-form{border-radius:16px;padding:6px;box-shadow:none}
.ask-page #chat-dialog #chat-input{height:44px;font-size:16px;line-height:22px}
.ask-page #chat-dialog #voice-status{min-height:0;margin:0;padding:0 0 6px;font-size:12px}
.ask-page #chat-dialog #voice-status:empty{display:none}
.ask-page #chat-dialog .chat-privacy{font-size:10px;line-height:1.45;margin:8px 0 0;text-align:center;color:#8a8088}
#chat-form .composer-send.replying svg{display:none}#chat-form .composer-send.replying::before{content:"";display:block;width:13px;height:13px;border-radius:3px;background:currentColor}
@media(max-width:699px){.ask-page #chat-dialog{max-width:none;height:var(--consult-height,100dvh);max-height:none;border-radius:0}.ask-page #chat-dialog .chat-head{padding:max(10px,env(safe-area-inset-top)) 12px 10px}.ask-page #chat-dialog .chat-messages{padding:18px 12px 10px}.ask-page #chat-dialog .chat-bottom{padding:0 10px max(10px,env(safe-area-inset-bottom))}.ask-page #chat-dialog .chat-title p{font-size:10px}.chat-head-actions{gap:0}.chat-book{min-width:40px;font-size:12px}.ask-page #chat-dialog .chat-privacy{font-size:9px;margin-top:7px}.ask-page #chat-dialog .message{max-width:93%}}
/* AMOM_WELCOME_SHORTCUTS_20261016: show every topic without a concealed horizontal row. */
.ask-page #chat-dialog .chat-keywords{flex-wrap:wrap;overflow:visible}
.ask-page #chat-dialog .chat-keywords button{padding:7px 10px;min-height:40px}
