:root {
  --blue: #1f6fb2;
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #1d2a35;
  --muted: #5f6b76;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

header {
  background: var(--card);
  border-bottom: 1px solid #d8e0e8;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

main {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 20px 24px;
}

.card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

h1 {
  margin-top: 0;
}

p,
li {
  line-height: 1.5;
  color: var(--muted);
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
  padding: 10px;
  border: 1px solid #ccd3db;
  border-radius: 6px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #17588d;
}

.status {
  min-height: 20px;
  margin-top: 4px;
  font-weight: 600;
}

.status.success {
  color: #157347;
}

.status.error {
  color: #b02a37;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.assistant-messages {
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  padding: 10px;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  background: #fafcfe;
}

.assistant-message {
  margin: 0 0 8px;
}

.assistant-message.user {
  color: var(--text);
}

.assistant-message.bot {
  color: var(--muted);
}

.assistant-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

th,
td {
  border: 1px solid #d8e0e8;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4fa;
}
