:root { color-scheme: dark; font: 16px/1.55 system-ui, sans-serif; background: #10141c; color: #eef2fa; }
* { box-sizing: border-box; }
body { margin: 0; }
header { min-height: 65px; padding: 12px max(20px, calc((100% - 900px) / 2)); border-bottom: 1px solid #2e3748; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
a { color: #c3d6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.brand { color: #eef2fa; font-weight: 720; font-size: 1.15rem; }
nav, .user-form, .composer, .chat-heading, .account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
main { width: min(900px, calc(100% - 32px)); margin: 28px auto; }
h1 { margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card, .message { background: #19212e; border: 1px solid #2e3748; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.login { max-width: 430px; margin: max(24px, 8vh) auto; padding: 24px; }
.login label { display: block; margin-bottom: 14px; }
label { font-size: .94rem; }
input, textarea, select, button { font: inherit; border-radius: 8px; padding: 8px 11px; }
input, textarea, select { background: #121926; border: 1px solid #526079; color: inherit; }
label input, label select, textarea { display: block; width: 100%; margin-top: 4px; }
textarea { resize: vertical; }
button { border: 1px solid transparent; background: #a7c3ff; color: #0c1932; font-weight: 650; cursor: pointer; }
button.secondary { background: #253247; color: #eef2fa; border-color: #4a5980; }
button:disabled { opacity: .6; cursor: wait; }
.user-form { align-items: end; }
.account { border-top: 1px solid #354258; padding: 12px 0; justify-content: space-between; }
.chat-heading { justify-content: space-between; margin-bottom: 12px; }
.chat-heading h1 { margin: 0; }
.composer { justify-content: space-between; margin-top: 10px; }
.message.user { background: #202c41; }
pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .94rem/1.55 ui-monospace, monospace; }
.muted, #status { color: #c1cce0; }
.error { color: #ffb1b8; }
