.chat-panel { max-width: 56rem; margin: 0 auto; }
#new-chat { width: auto; margin: 0; padding: .6rem 1rem; font-size: .85rem; }
#chat-log { max-height: 55svh; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { margin: 1rem 0; padding: 1rem 1.2rem; border: 1px solid #2c3e4b; border-radius: .7rem; background: #101820; overflow-wrap: anywhere; }
.chat-message.user { margin-left: 10%; background: #1b303c; }
.chat-message.assistant { margin-right: 10%; }
.chat-message strong { font-size: .8rem; color: #8fe3cf; }
.chat-message p { white-space: pre-wrap; margin: .5rem 0 0; }
#chat-question { width: 100%; resize: vertical; min-height: 6rem; padding: .85rem; font: inherit; color: #edf4f8; background: #101820; border: 1px solid #48606e; border-radius: .45rem; }
.chat-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
#chat-send { width: auto; margin: 0; }
#chat-status { font-size: .9rem; }
#chat-provider { width: 100%; max-width: 24rem; margin-bottom: .35rem; padding: .65rem; font: inherit; color: #edf4f8; background: #101820; border: 1px solid #48606e; border-radius: .45rem; }
#chat-provider-help { margin-top: .2rem; }
#chat-stop { width: auto; margin-top: 1rem; }
