.workspace-nav,
.workspace-main,
.workspace-brand-label,
.workspace-nav-label,
.workspace-nav-footer {
  transition: width .22s ease, margin-left .22s ease, opacity .16s ease, max-width .22s ease;
}

.workspace-brand-row {
  position: relative;
}

.workspace-brand {
  min-width: 0;
}

.workspace-brand-label {
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
}

.workspace-sidebar-toggle {
  position: absolute;
  top: 2px;
  right: -24px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 24px;
  height: 42px;
  padding: 0;
  border: 1px solid #e4dcec;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .96);
  color: #5b347d;
  font: inherit;
  cursor: pointer;
  box-shadow: 7px 7px 20px rgba(37, 18, 57, .12);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.workspace-sidebar-toggle:hover,
.workspace-sidebar-toggle:focus-visible {
  background: #f7f1ff;
  color: #7c3aed;
  box-shadow: 7px 9px 24px rgba(79, 38, 112, .17);
  outline: none;
}

.workspace-sidebar-toggle-icon {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(2px) rotate(45deg);
  transition: transform .22s ease;
}

.workspace-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  overflow: hidden;
}

.workspace-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  color: #cbb9dc;
  font-size: 15px;
  line-height: 1;
}

.workspace-nav-item.active .workspace-nav-icon {
  color: #fff;
}

.workspace-nav-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.workspace-sidebar-collapsed .workspace-nav {
  width: 78px;
  padding-inline: 12px;
}

body.workspace-sidebar-collapsed .workspace-main {
  margin-left: 78px;
}

body.workspace-sidebar-collapsed .workspace-brand {
  justify-content: center;
  padding-inline: 0;
}

body.workspace-sidebar-collapsed .workspace-brand-label,
body.workspace-sidebar-collapsed .workspace-nav-label {
  max-width: 0;
  opacity: 0;
}

body.workspace-sidebar-collapsed .workspace-nav-item {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
}

body.workspace-sidebar-collapsed .workspace-nav-item.active {
  box-shadow: inset 0 -3px var(--orange);
}

body.workspace-sidebar-collapsed .workspace-nav-icon {
  color: #e9dff4;
  font-size: 17px;
}

body.workspace-sidebar-collapsed .workspace-nav-footer {
  max-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
}

body.workspace-sidebar-collapsed .beta-badge {
  display: none;
}

body.workspace-sidebar-collapsed .workspace-sidebar-toggle {
  right: -24px;
}

body.workspace-sidebar-collapsed .workspace-sidebar-toggle-icon {
  transform: translateX(-2px) rotate(225deg);
}

@media (max-width: 720px) {
  .workspace-sidebar-toggle {
    display: none;
  }

  .workspace-brand-label,
  .workspace-nav-label {
    max-width: none;
    opacity: 1;
  }

  body.workspace-sidebar-collapsed .workspace-nav {
    width: auto;
    padding-inline: 18px;
  }

  body.workspace-sidebar-collapsed .workspace-main {
    margin-left: 0;
  }

  body.workspace-sidebar-collapsed .workspace-brand {
    justify-content: flex-start;
    padding-inline: 10px;
  }

  body.workspace-sidebar-collapsed .workspace-nav-item {
    justify-content: flex-start;
    gap: 9px;
    padding-inline: 12px;
  }

  body.workspace-sidebar-collapsed .workspace-nav-item.active {
    box-shadow: inset 3px 0 var(--orange);
  }

  body.workspace-sidebar-collapsed .workspace-nav-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-nav,
  .workspace-main,
  .workspace-brand-label,
  .workspace-nav-label,
  .workspace-nav-footer {
    transition: none;
  }
}
