.feature-locked {
  display: flex !important;
  cursor: pointer;
  opacity: .66;
  position: relative;
}

.feature-locked:hover,
.feature-locked:focus-visible {
  opacity: 1;
}

/* A monochrome lock inherits the same foreground as its navigation label. */
.feature-locked::after {
  content: "";
  display: block;
  margin-left: auto;
  width: 1em;
  height: 1em;
  padding: 0;
  border: 0;
  color: inherit;
  background-color: currentColor;
  flex: 0 0 1em;
  -webkit-mask: url("../assets/nav-lock.svg") center / contain no-repeat;
  mask: url("../assets/nav-lock.svg") center / contain no-repeat;
}

/* Keep every icon centered under the Q. Locks occupy the spare right edge and
   never move the navigation icon away from that center line. */
.app-shell.sidebar-collapsed.sidebar-has-locks {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed.sidebar-has-locks .sidebar {
  width: 88px;
}

.app-shell.sidebar-collapsed.sidebar-has-locks .tabs.sidebar-nav button {
  display: flex !important;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed.sidebar-has-locks .tabs.sidebar-nav .nav-icon {
  margin: 0;
}

.app-shell.sidebar-collapsed.sidebar-has-locks .tabs.sidebar-nav .feature-locked::after {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  margin: 0;
}

.calendar-secondary-action.feature-locked {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  opacity: .48;
  color: var(--muted);
  cursor: pointer;
}

.calendar-secondary-action.feature-locked::after {
  margin-left: 2px;
}

.composer-media-management {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.composer-media-management button {
  white-space: nowrap;
}
