:root {
  color-scheme: light dark;
  font:
    15px/1.45 system-ui,
    sans-serif;
  background: Canvas;
  color: CanvasText;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 50rem;
  margin: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}
header,
.oauth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
h1 {
  font-size: 1.6rem;
  margin: 0;
}
h2 {
  font-size: 1.15rem;
}
h3 {
  font-size: 1rem;
}
form {
  display: grid;
  gap: 0.75rem;
}
#auth {
  max-width: 24rem;
}
label {
  display: grid;
  gap: 0.3rem;
}
button,
input,
textarea {
  font: inherit;
  border: 1px solid GrayText;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  color: inherit;
  background: Canvas;
}
button:enabled {
  cursor: pointer;
}
button:hover:enabled {
  border-color: Highlight;
}
button:focus-visible {
  outline: 2px solid Highlight;
}
button:disabled {
  opacity: 0.6;
}
.oauth button {
  flex: 1;
}
#submit,
#composer button {
  background: Highlight;
  color: HighlightText;
  border-color: Highlight;
}
#status {
  min-height: 1.5em;
  color: GrayText;
}
#machines button {
  display: block;
  text-align: left;
  margin: 0.3rem 0;
  width: 100%;
}
#chat {
  margin-top: 1.5rem;
  border-top: 1px solid GrayText;
}
#messages {
  max-height: 42vh;
  overflow: auto;
}
article {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 1rem 0;
}
article strong {
  display: block;
  font-size: 0.8rem;
  color: GrayText;
}
[hidden] {
  display: none !important;
}
