* { box-sizing: border-box; }
body {
  background: #f4f6f2;
  color: #142c25;
  display: grid;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  min-height: 100svh;
  padding: 1.5rem;
  place-items: center;
}
main {
  background: #fff;
  border: 1px solid #d9e4dc;
  border-radius: 1rem;
  max-width: 32rem;
  padding: clamp(1.5rem, 6vw, 3rem);
  width: 100%;
}
h1, h2 { line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: 2.125rem; }
h2 { font-size: 1.25rem; }
code { overflow-wrap: anywhere; }
.action, button {
  background: #174b3b;
  border: 1px solid #174b3b;
  border-radius: .5rem;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: .6rem 1rem;
  text-decoration: none;
}
.action:hover, button:hover { background: #102e25; }
.action:focus-visible, button:focus-visible { outline: 3px solid #2778a5; outline-offset: 3px; }
label { display: block; font-weight: 600; }
textarea {
  border: 1px solid #6b827a;
  border-radius: .5rem;
  color: inherit;
  display: block;
  font: inherit;
  margin: .25rem 0 .75rem;
  padding: .5rem .75rem;
  resize: vertical;
  width: 100%;
}
#messages { list-style: none; max-height: 45vh; overflow: auto; padding: 0; }
#messages li { background: #f4f6f2; border-radius: .5rem; margin: .5rem 0; padding: .75rem; }
#messages p { margin: .25rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#chat-status { min-height: 1.6em; }
button:disabled { cursor: wait; opacity: .65; }
