.lucis-group-level-locked {
  cursor: not-allowed !important;
  opacity: 0.58;
}

.lucis-group-level-locked:hover {
  background: inherit !important;
}

.lucis-level-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.dark .lucis-level-lock-badge {
  border-color: #4b5563;
  background: #27272a;
  color: #e5e7eb;
}

.lucis-level-lock-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lucis-min-user-level-field {
  min-width: 0;
}

.lucis-min-user-level-select {
  width: 100%;
}

.lucis-level-lock-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100000100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lucis-level-lock-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .lucis-level-lock-badge {
    padding-inline: 6px;
  }

  .lucis-level-lock-toast {
    bottom: 18px;
  }
}
