:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
body { margin: 0 auto; max-width: 40rem; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: baseline; }
h1 { font-size: 1.25rem; margin: 0; }
label { display: block; margin: 1rem 0 0.25rem; }
input { font: inherit; padding: 0.5rem; width: 100%; box-sizing: border-box; }
button { font: inherit; padding: 0.5rem 1rem; margin-top: 0.5rem; }
button.quiet { background: none; border: none; text-decoration: underline; padding: 0; }
.status { min-height: 1.2em; }
.hint { opacity: 0.75; font-size: 0.9rem; }
#messages { list-style: none; padding: 0; }
#messages li { margin: 0.5rem 0; padding: 0.5rem 0.75rem; border-radius: 0.75rem; max-width: 80%; white-space: pre-wrap; overflow-wrap: anywhere; }
#messages li.in { background: rgba(127, 127, 127, 0.15); }
#messages li.out { background: rgba(60, 120, 220, 0.2); margin-left: auto; }
#messages time { display: block; font-size: 0.75rem; opacity: 0.6; }
#composer { display: flex; gap: 0.5rem; }
#composer button { margin-top: 0; }
