:root {
  font-family: system-ui, sans-serif;
  color: #192729;
  background: #eff4f2;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(16px, 5vw, 56px); }
main { max-width: 760px; margin: auto; }
header { display: flex; align-items: center; justify-content: space-between; }
h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; }
h2 { margin-top: 0; }
section { background: white; border: 1px solid #d5e0dd; border-radius: 14px; padding: clamp(18px, 4vw, 32px); margin-bottom: 16px; }
#login { max-width: 420px; margin-inline: auto; }
form, label { display: grid; gap: 8px; }
form { margin-top: 16px; gap: 14px; }
button, input, textarea { font: inherit; }
button, input, textarea { border-radius: 7px; padding: 10px 12px; }
input, textarea { border: 1px solid #829b96; width: 100%; }
button { border: 1px solid #13564c; background: #13564c; color: white; cursor: pointer; justify-self: start; }
button:disabled { opacity: .55; cursor: wait; }
a { color: #13564c; }
#status { color: #9b2929; }
#users, #messages { padding: 0; list-style: none; }
#users li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
#messages { max-height: 55vh; overflow: auto; }
#messages li, output { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; margin-bottom: 8px; background: #edf4f1; border-radius: 8px; }
output:not([hidden]) { display: block; margin-top: 14px; }
#messages .user { background: #e1efed; margin-left: 12%; }
#messages .assistant { margin-right: 12%; }
