/* Header */
.header { margin: 0 0 6px 0; }

h2 { margin: 0; text-align: center; }

.muted {
  width: 100%;
  opacity: 0.9;
  font-size: 0.75em;
  color: var(--muted);
  text-align: left;
}

/* Scrollable chat area */
.out {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 4px;
  /* border: 1px solid var(--border); */
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;

  display: flex;
  flex-direction: column;
  gap: 10px;
}


textarea#msg {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  min-height: 120px;
  max-height: 35vh;
  padding: 4px;
  font: inherit;
  resize: vertical;
}

/* Focus state */
textarea#msg:focus {
  border: 1px solid var(--border); /* keep thickness consistent */
  border-color: var(--brand);
  outline: none;
  box-shadow: none; /* prevents Safari/Chrome glow */
  /* box-shadow: 0 0 0 1px rgba(0, 0, 82, 0.15); */
}

button#send {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-weight: bold;
  color: white;
  background: var(--brand);
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  border-radius: 6px;
}

button#send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button#send:hover {
  background: var(--highlighted);
}
