/* Additional styles: works with existing V3 homepage layout. */
.ux-chat-thread{border-top:1px solid #e8ebf0;background:#f5f8fc;padding:14px 16px;max-height:320px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.ux-chat-thread[hidden],.ux-chat-matches[hidden],.ux-chat-actions[hidden]{display:none!important}
.ux-chat-message{font-size:13px;line-height:1.65;padding:11px 14px;max-width:94%;border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.ux-chat-user{align-self:flex-end;background:#dfebf9;color:#203a59;border-bottom-right-radius:2px}
.ux-chat-assistant{align-self:flex-start;background:#fff;border:1px solid #e1e8f1;color:#233c51;border-bottom-left-radius:2px}
.ux-chat-matches{background:#fff;padding:10px 18px 7px;border-top:1px solid #e6ebf1;display:flex;flex-wrap:wrap;gap:7px}
.ux-chat-matches-title{flex-basis:100%;font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#607990}
.ux-chat-match{display:inline-block;padding:8px 10px;font-size:11px;border:1px solid #d1dfe9;border-radius:5px;color:#2b506f;text-decoration:none}
.ux-chat-match:hover{background:#edf4fb}
.ux-chat-actions{background:#fff;border-top:1px solid #e6ebf1;padding:12px 18px 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ux-chat-actions button{border:0;border-radius:5px;padding:11px 14px;cursor:pointer;font-weight:700;font-size:12px}
.ux-chat-prepare{background:#142b45;color:white}
.ux-chat-reset{background:#edf2f7;color:#50687e}
.ux-assistant-entry textarea{max-height:240px}
.ux-assistant-submit:disabled,.ux-chat-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:520px){.ux-chat-thread{max-height:260px;padding:12px}.ux-chat-message{font-size:12px}.ux-chat-actions{padding:10px 12px 14px}.ux-chat-actions button{font-size:11px}}

/* Mode indicator, avoids presenting fallback catalog matching as generative AI. */
.ux-chat-mode-note{display:block;margin-top:9px;font-size:10px;letter-spacing:.02em;color:#66788d;font-weight:500}
