* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  margin: 0;
  line-height: 1.5;
}

.flash {
  padding: 0.75rem 1.25rem;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
}
.flash.notice {
  background: #d1fae5;
  border-bottom-color: #a7f3d0;
}
.flash.alert {
  background: #fee2e2;
  border-bottom-color: #fecaca;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}
.topbar .user {
  color: #6b7280;
  font-size: 0.9rem;
}

.hero {
  max-width: 480px;
  margin: 6rem auto;
  padding: 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.hero p {
  color: #6b7280;
  margin: 0 0 2rem;
}

.chat {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.chat h1 {
  margin-top: 0;
}
.chat .muted {
  color: #6b7280;
  font-size: 0.9rem;
}
.chat textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}
.chat input[type=submit], .chat .button {
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: #286efa;
  color: white;
  border: 0;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.chat input[type=submit]:hover, .chat .button:hover {
  filter: brightness(1.05);
}

.response {
  margin-top: 2rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
.response pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font: inherit;
  margin: 0;
}

.link {
  background: none;
  border: 0;
  color: #286efa;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #286efa;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.05);
}
