/* Chat view layout only.
   Colours live in theme.css. Nothing here may target html/body — this file is
   loaded on every page through the shared head partial. */

#chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

#messages.chat-window {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 55vh;
  min-height: 320px;
  overflow-y: auto;
  resize: vertical;
  padding: 1rem;
  margin-bottom: .5rem;
}

#form-container { padding-top: .75rem; }

.chat-form {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.chat-input {
  flex-grow: 1;
  padding: .625rem 1rem;
  border-radius: 2rem;
  resize: none;
  max-height: 150px;
}

#send-button {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message {
  padding: .75rem 1rem;
  border-radius: 1.125rem;
  margin-bottom: 1em;
  max-width: 80%;
  line-height: 1.5;
}

.message.user     { align-self: flex-end;   margin-left: auto; }
.message.assistant{ align-self: flex-start; }

.chat-status { margin-top: .25rem; min-height: 1em; }
