:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #172820;
  background: #f8f9f6;
  --accent: #145949;
  --secondary: #45584f;
  --line: #cdd9d1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 1.12rem max(1.15rem, calc((100vw - 54rem) / 2)); border-bottom: 1px solid var(--line); }
.brand { color: var(--accent); font-weight: 750; }
main { max-width: 50rem; padding: 3.5rem 1.25rem 2rem; margin: auto; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; margin: 0 0 .8rem; }
p { line-height: 1.55; color: var(--secondary); }
button, input, textarea { font: inherit; }
button { padding: .68rem 1rem; border: 1px solid var(--accent); color: white; background: var(--accent); border-radius: .45rem; cursor: pointer; }
button:hover { background: #0f463a; }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #2a795e; outline-offset: 3px; }
button.quiet, .examples button { color: var(--accent); background: transparent; border-color: var(--line); }
button.quiet:hover, .examples button:hover { background: #e6f1eb; }
.gate { max-width: 27rem; margin: 2vh auto; }
form { display: grid; gap: .9rem; }
.gate form { margin-top: 1.5rem; }
label { display: grid; gap: .35rem; font-weight: 700; }
input, textarea { width: 100%; background: white; color: inherit; padding: .75rem; border: 1px solid #9cafa3; border-radius: .45rem; }
textarea { resize: vertical; }
.examples { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.35rem 1.8rem; }
.messages { display: grid; gap: .95rem; margin-bottom: 1.2rem; }
.message { max-width: min(90%, 65ch); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .6rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-variant-numeric: tabular-nums; background: white; }
.message.user { justify-self: end; background: #e7f0e9; }
.message.error, .status.error { color: #87322e; }
.composer button { justify-self: end; }
.status { min-height: 1.5rem; font-size: .9rem; }
::selection { background: #c4e7d7; color: #142d24; }
@media (max-width: 36rem) { main { padding-top: 2rem; } .message { max-width: 95%; } }
