﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f2f4f8;
  color: #1d2733;
}

.container {
  max-width: 900px;
  margin: 24px auto;
  padding: 16px;
}

h1 {
  margin-top: 0;
}

.controls {
  margin-bottom: 12px;
}

button {
  border: 0;
  border-radius: 8px;
  background: #0059b3;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: #00458a;
}

.chat-window {
  min-height: 420px;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 12px;
  overflow-y: auto;
}

.msg {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  white-space: pre-wrap;
}

.msg.user {
  background: #e8f1ff;
}

.msg.assistant {
  background: #f3f7ef;
}

.msg.meta {
  background: #faf3db;
  font-size: 13px;
}

.chat-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.send-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#recordBtn.recording {
  background: #bf1f3a;
}

#recordBtn.recording:hover {
  background: #a31931;
}

.chat-form textarea {
  flex: 1;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  padding: 10px 12px;
  resize: none;
  min-height: 72px;
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.4;
  font-family: inherit;
  font-size: 16px;
}

.input-hint {
  display: block;
  margin-top: 6px;
  color: #5f6f82;
}

.file-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-row input[type="file"] {
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.file-row small {
  color: #5f6f82;
}
