/* Chat container and form */

.chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  height: 80vh;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chat__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border-alt);
  background: var(--surface);
}

.chat__input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat__model-row {
  display: flex;
  align-items: center;
}

.chat__model-select {
  font-size: 12px;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}

.chat__model-select:focus {
  border-color: var(--border-focus);
}

.chat__input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.5;
}

.chat__input:focus {
  border-color: var(--border-focus);
}

.chat__button {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.chat__button:hover:not(:disabled) {
  background: var(--primary-hover);
}

.chat__button:disabled {
  background: var(--text-disabled);
  cursor: not-allowed;
}

.chat__disclaimer,
.chat__session {
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  text-align: center;
  margin: 4px 16px 0;
  padding-bottom: 16px;
}
