/* Sidebar branding is intentionally pixel-snapped for Windows rendering. */
.sidebar > .brand {
  min-height: 64px;
  height: 64px;
  padding: 6px 10px;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
  background: #0d0d0d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sidebar > .brand .brand-logo {
  flex: 0 0 137px;
  width: 137px;
  min-width: 0;
  max-width: 137px;
  height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 5px;
}

.sidebar > .brand .brand-logo img {
  flex: none;
  display: block;
  max-width: none;
  transform: none;
  filter: none;
  opacity: 1;
}

.sidebar > .brand .brand-logo-full {
  width: 137px;
  min-width: 137px;
  max-width: 137px;
  height: 51px;
  object-fit: fill;
  object-position: left top;
}

.sidebar > .brand .brand-logo .brand-logo-mark {
  display: none;
  width: 0;
  height: 0;
}

.sidebar > .brand .sidebar-toggle {
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  margin-left: auto;
  margin-top: 13px;
  align-self: flex-start;
}

.app.sidebar-collapsed .sidebar > .brand {
  position: relative;
  display: grid;
  grid-template-rows: 36px 20px;
  grid-template-columns: 48px;
  justify-content: start;
  align-content: start;
  padding: 4px;
  gap: 0;
}

.app.sidebar-collapsed .sidebar > .brand .brand-logo {
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
  align-self: center;
  flex: none;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  justify-content: center;
  margin-top: 0;
}

.app.sidebar-collapsed .sidebar > .brand .brand-logo-full {
  display: none;
  width: 0;
  min-width: 0;
  height: 0;
}

.app.sidebar-collapsed .sidebar > .brand .brand-logo-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.app.sidebar-collapsed .sidebar > .brand .sidebar-toggle {
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  align-self: center;
  width: 44px;
  min-width: 44px;
  height: 20px;
  margin: 0;
  border: 0;
  background: transparent;
}

.login-landing-brand img {
  width: 320px;
  max-width: min(82%, 340px);
  height: 132px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.login-landing-brand {
  display: flex;
  justify-content: flex-end;
}

.login-layout-shell .login-brand-mark {
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin-left: auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.login-layout-shell .login-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .sidebar > .brand,
  .app.sidebar-collapsed .sidebar > .brand {
    display: flex;
    height: 64px;
    min-height: 64px;
    padding: 6px 12px;
    gap: 8px;
  }

  .sidebar > .brand .brand-logo,
  .app.sidebar-collapsed .sidebar > .brand .brand-logo {
    flex: 0 0 161px;
    width: 161px;
    min-width: 161px;
    max-width: 161px;
    height: 49px;
    justify-self: auto;
    align-self: center;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0;
  }

  .sidebar > .brand .brand-logo-full,
  .app.sidebar-collapsed .sidebar > .brand .brand-logo-full {
    display: block;
    width: 161px;
    min-width: 161px;
    max-width: 161px;
    height: 60px;
  }

  .sidebar > .brand .brand-logo .brand-logo-mark,
  .app.sidebar-collapsed .sidebar > .brand .brand-logo .brand-logo-mark {
    display: none;
    width: 0;
    height: 0;
  }

  .login-landing-brand img {
    width: 270px;
    height: 112px;
  }
}

@media (max-width: 480px) {
  .login-landing-brand img {
    width: 232px;
    height: 96px;
  }
}
