html.hml-environment {
  --environment-banner-height: 28px;
}

.environment-banner {
  display: none;
}

html.hml-environment .environment-banner {
  position: fixed;
  z-index: 2000;
  inset: 0 0 auto;
  display: flex;
  min-height: var(--environment-banner-height);
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

html.hml-environment body {
  padding-top: var(--environment-banner-height);
}

html.hml-environment .login-gate,
html.hml-environment .sidebar,
html.hml-environment .sidebar-scrim {
  top: var(--environment-banner-height);
}

html.hml-environment .mobile-topbar {
  top: var(--environment-banner-height);
}

html.hml-environment .app-main {
  min-height: calc(100vh - var(--environment-banner-height));
}

html.hml-environment body.review-workspace-mode .app-main {
  height: calc(100vh - var(--environment-banner-height));
}

html.hml-environment body.review-workspace-mode #protocol-detail-page.page-visible {
  height: calc(100vh - 68px - var(--environment-banner-height));
}

html.hml-environment .toast-region {
  top: calc(18px + var(--environment-banner-height));
}
