.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: 220px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(80px) saturate(1.7);
  -webkit-backdrop-filter: blur(80px) saturate(1.7);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  isolation: isolate;
  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;
}

.itemText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.itemDetail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  word-break: break-all;
}

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

.item:hover .itemDetail {
  color: var(--primary-soft);
}

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

.menuDivider {
  height: 1px;
  margin: 4px 6px;
  background: rgba(148, 163, 184, 0.28);
}

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