.wrap {
  position: relative;
  display: inline-flex;
}

.trigger {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.trigger:hover {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.triggerOpen {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.menu {
  position: fixed;
  z-index: 1200;
  transform: translateX(-100%);
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  animation: menuIn 0.14s ease;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: start;
  transition: background 0.15s, color 0.15s;
}

.item:hover {
  background: rgba(var(--primary-rgb) / 0.08);
  color: var(--primary);
}

.itemDanger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-100%) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(-100%) translateY(0);
  }
}
