:root {
  --bg: #0b141a;
  --panel: #111b21;
  --panel-2: #202c33;
  --text: #e9edef;
  --muted: #8696a0;
  --in: #1f2c34;
  --out: #005c4b;
  --accent: #00a884;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.app__header h1 {
  margin: 0 0 0.25rem;
}

.app__header p {
  margin: 0;
  color: var(--muted);
}

.composer,
.chat {
  background: var(--panel);
  border: 1px solid #22303a;
  border-radius: 12px;
  padding: 1rem;
}

.composer__form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #2a3a45;
  background: var(--panel-2);
  color: var(--text);
}

.composer__group {
  display: grid;
  gap: 0.75rem;
}

button {
  background: var(--accent);
  border: 0;
  color: #00140f;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  filter: brightness(1.05);
}

.status {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.chat__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.chat__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  max-height: 55vh;
  overflow-y: auto;
}

.msg {
  max-width: 75%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  line-height: 1.3;
}

.msg--in {
  background: var(--in);
  justify-self: start;
}

.msg--out {
  background: var(--out);
  justify-self: end;
}

.msg__meta {
  display: block;
  margin-top: 0.35rem;
  color: #c7d0d5;
  font-size: 0.75rem;
  opacity: 0.8;
}