/* Terminal-ish look borrowed from devops/bauth, adapted to this markup. */
:root {
  color-scheme: light dark;
}

[hidden] {
  display: none !important;
}

body {
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

#status {
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: right;
}

a {
  color: inherit;
}

#log {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-height: 4rem;
}

#log:empty::before {
  content: "no messages yet";
  opacity: 0.5;
}

#log li {
  display: block;
  line-height: 1.45;
  white-space: pre-wrap;
}

#log li::before {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

#log .you::before {
  content: "you";
}

#log .bot::before {
  content: "zuchat";
}

#log .system::before {
  content: "system";
}

#log .you {
  font-weight: 600;
}

#log .system {
  font-style: italic;
  opacity: 0.8;
}

textarea {
  font: inherit;
  color: inherit;
  background: transparent;
}

textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.55rem 0.6rem;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 6px;
  resize: none;
}


