* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #272725;
  background: #f5f3ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ded9d0;
  display: flex;
  height: 58px;
  justify-content: space-between;
  padding: 0 24px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}

.sidebar {
  border-right: 1px solid #ded9d0;
  padding: 18px;
}

.nav-link {
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
  background: #e8e2d7;
}

.content {
  padding: 24px;
}

.thread-list {
  background: #fff;
  border: 1px solid #ded9d0;
  border-radius: 8px;
  overflow: hidden;
}

.thread-row {
  border-bottom: 1px solid #ebe7df;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 14px 16px;
  text-decoration: none;
}

.thread-row:last-child {
  border-bottom: 0;
}

.row-action {
  background: #fff;
  border-bottom: 1px solid #ebe7df;
  margin: 0;
  padding: 0 16px 12px;
}

.muted {
  color: #706b64;
  font-size: 13px;
}

.pill {
  align-self: start;
  background: #f0eee8;
  border: 1px solid #d8d1c6;
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 8px;
}

.panel {
  background: #fff;
  border: 1px solid #ded9d0;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.message {
  border-top: 1px solid #ebe7df;
  padding: 14px 0;
  white-space: pre-wrap;
}

.message:first-of-type {
  border-top: 0;
}

button,
.button {
  background: #292827;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 9px 12px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  background: #ede8de;
  color: #292827;
}

button.danger,
.button.danger {
  background: #fff2ef;
  border: 1px solid #d44731;
  color: #b72f1d;
}

input,
textarea,
select {
  border: 1px solid #cfc7ba;
  border-radius: 6px;
  display: block;
  font: inherit;
  margin: 6px 0 12px;
  padding: 10px;
  width: 100%;
}

textarea {
  min-height: 320px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login {
  margin: 12vh auto;
  max-width: 360px;
}

@media (max-width: 760px) {
  .shell {
    display: block;
  }

  .sidebar {
    border-bottom: 1px solid #ded9d0;
    border-right: 0;
  }
}
