:root {
  color-scheme: light dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0f1115;
  color: #f0f4f8;
}

body {
  margin: 0;
  background: #0f1115;
  color: inherit;
}

.centered {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.card {
  background: #1b1f2a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  width: min(90vw, 360px);
}

.stack {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #2a2f3c;
  background: #121620;
  color: inherit;
}

button {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #2563eb;
}

.muted {
  color: #9aa4b2;
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #151924;
  position: sticky;
  top: 0;
  z-index: 2;
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-layout {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 70px);
}

.messages {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message.user {
  align-self: flex-end;
  background: #2563eb;
  color: white;
}

.message.assistant {
  align-self: flex-start;
  background: #1f2937;
}

.message.system {
  align-self: center;
  background: #6b7280;
  color: #f8fafc;
}

.composer {
  padding: 1rem 1.5rem 1.5rem;
  background: #111827;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.blurred {
  filter: blur(8px);
}
