.brand-logo {
  display: block;
  width: 150px;
  max-width: 75%;
  height: auto;
  margin-bottom: 5px;
}

.login-brand-logo {
  display: block;
  width: 190px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 18px;
}

/* Keep the three admin columns and conversation header anchored to the viewport. */
html,
body {
  height: 100%;
}

body:has(.admin-shell:not([hidden])) {
  overflow: hidden;
}

.admin-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.admin-nav {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: start;
  overflow: hidden !important;
}

.thread {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.thread .composer {
  flex: 0 0 auto;
  background: #fff;
}

.admin-nav #search {
  margin-top: 8px;
}

.admin-nav #list,
.details,
.messages {
  min-height: 0;
  overscroll-behavior: contain;
}

.admin-nav #list {
  overflow-y: auto;
}

.admin-version {
  border-top: 1px solid #dce7f3;
  margin: 10px -22px -22px;
  padding: 12px 22px;
  color: #74849b;
  font-size: 11px;
  line-height: 1.2;
  background: #fff;
}

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.presence-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.presence-online { color: #067647; background: #ecfdf3; }
.presence-minimized { color: #b54708; background: #fffaeb; }
.presence-offline { color: #667085; background: #f2f4f7; }
