* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fafbf9;
  color: #21302d;
  font:
    14px/1.5 Inter,
    system-ui,
    sans-serif;
}
body > header {
  height: 72px;
  border-bottom: 1px solid #dde3df;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}
header strong {
  font-size: 23px;
  letter-spacing: -0.7px;
}
header span {
  font-weight: 400;
  color: #718079;
  margin-left: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #ccd7d1;
  border-radius: 7px;
  background: white;
  padding: 9px 14px;
  transition: background 0.15s;
}
button:hover {
  background: #e8f2ed;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  padding: 10px;
  border: 1px solid #cdd6d1;
  border-radius: 6px;
  background: white;
  width: 100%;
  color: inherit;
}
label {
  display: block;
  margin-bottom: 6px;
  color: #52635b;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 18px;
  margin: 0;
}
p {
  margin: 6px 0;
  color: #63736b;
}
[hidden] {
  display: none !important;
}
main {
  display: grid;
  grid-template-columns: 350px 1fr;
  height: calc(100dvh - 100px);
}
main > aside {
  border-right: 1px solid #dde3df;
  padding: 24px;
  overflow: auto;
}
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}
#count {
  font-size: 12px;
  margin: 18px 0;
}
#list {
  display: flex;
  flex-direction: column;
}
#list button {
  text-align: left;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 18px 10px;
  border-bottom: 1px solid #e2e7e3;
}
#list button[aria-current="true"] {
  background: #e8f2ed;
  border-left: 3px solid #197458;
}
#list strong,
#list small,
#list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#list small {
  color: #65776c;
}
#list span {
  margin-top: 6px;
  color: #53665c;
}
#thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
}
.thread-head {
  padding: 24px 32px;
  border-bottom: 1px solid #e2e7e3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
#messages {
  flex: 1;
  overflow: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bubble {
  max-width: 75%;
  background: #f0f3f0;
  border-radius: 10px;
  padding: 14px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.support {
  align-self: flex-end;
  background: #e7f3ed;
}
.bubble small {
  display: block;
  color: #607568;
  font-size: 11px;
  margin-bottom: 6px;
}
#reply {
  padding: 20px 32px;
  border-top: 1px solid #e2e7e3;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
form button {
  background: #17694f;
  color: white;
  margin-top: 10px;
}
form button:hover {
  background: #12553f;
}
#login {
  max-width: 380px;
  margin: 12vh auto;
  padding: 24px;
}
#error {
  color: #a23030;
  margin: 0;
  padding: 0 32px;
  min-height: 28px;
}
@media (max-width: 760px) {
  body > header {
    padding: 0 16px;
  }
  main {
    grid-template-columns: 1fr;
    height: auto;
  }
  main > aside {
    max-height: 38vh;
    border-bottom: 1px solid #ddd;
    padding: 16px;
  }
  #thread {
    height: 65vh;
  }
  .thread-head,
  #messages,
  #reply {
    padding: 16px;
  }
  .bubble {
    max-width: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
