:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #16352f;
  background: #f3f6f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: auto;
  max-width: 1200px;
  padding: 20px;
}
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid #147466;
}
h1 {
  font-size: 1.7rem;
}
h2 {
  font-size: 1.15rem;
}
section,
aside {
  background: white;
  border: 1px solid #cad9d3;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
label {
  display: block;
  font-weight: 600;
  margin: 8px 0;
}
input,
textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid #7b958d;
  border-radius: 6px;
  width: 100%;
  margin-top: 6px;
}
button {
  font: inherit;
  background: #116b5c;
  color: white;
  border: 1px solid #116b5c;
  border-radius: 6px;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  background: #64736d;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #e3a100;
  outline-offset: 3px;
}
.toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}
aside {
  align-self: start;
}
ol {
  list-style: none;
  padding: 0;
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-block: 1px solid #cad9d3;
}
li {
  background: #f0f5f2;
  border: 1px solid #d3dfd9;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
li.out {
  background: #e1f1ea;
}
.message-text,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.meta {
  font-size: 0.8rem;
  color: #486158;
  overflow-wrap: anywhere;
}
#error {
  background: #fff0dd;
  border: 2px solid #ab4b16;
  padding: 12px;
  white-space: pre-wrap;
}
#review {
  border: 3px solid #b37811;
}
#review-text {
  padding: 12px;
  background: #fff8e8;
}
#connection {
  font-weight: 700;
}
#login {
  max-width: 480px;
  margin: 40px auto;
}
footer {
  font-size: 0.85rem;
  padding: 20px;
  color: #496158;
}
p {
  overflow-wrap: anywhere;
}
#health {
  font-size: 0.8rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  body {
    padding: 10px;
  }
  .layout {
    display: block;
  }
  header {
    display: block;
  }
  h1 {
    font-size: 1.4rem;
  }
  .toolbar button {
    flex: 1;
  }
  section,
  aside {
    padding: 12px;
  }
  pre {
    max-width: 100%;
  }
}

#freshness {
  line-height: 1.8;
}
#thread-title {
  scroll-margin-top: 20px;
}
#messages:focus-visible {
  outline: 3px solid #e3a100;
}
