:root {
  color-scheme: dark;
  font: 16px system-ui, sans-serif;
  color: #e8ebf3;
  background: #11131b;
}
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; }
main { width: min(24rem, calc(100% - 5rem)); padding: 2rem; background: #1c2030; border: 1px solid #343a50; border-radius: 1rem; }
h1 { margin: 0 0 1.5rem; font-size: 2.5rem; letter-spacing: -.05em; }
label { display: grid; gap: .45rem; margin-bottom: 1rem; }
input, button { box-sizing: border-box; font: inherit; border-radius: .5rem; padding: .7rem; }
input { border: 1px solid #515a75; background: #131722; }
button { border: 0; background: #b6c4ff; color: #111634; font-weight: 650; cursor: pointer; }
#status:empty { display: none; }
main:has(#workspace:not([hidden])) { width: min(42rem, calc(100% - 5rem)); }
#messages { max-height: 55dvh; overflow-y: auto; margin: 1rem 0; }
#messages article { padding: .8rem; border-bottom: 1px solid #343a50; }
#messages p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0 0; }
textarea { resize: vertical; font: inherit; background: #131722; border: 1px solid #515a75; border-radius: .5rem; padding: .7rem; }
