.overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-index-contextmenu, 1000);
	pointer-events: none;
}

.menu {
	position: fixed;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 6px;
	background-color: var(--background-floating, var(--background-primary));
	border: 1px solid var(--background-modifier-accent, rgba(255, 255, 255, 0.06));
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	animation: menuIn 140ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes menuIn {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: transparent;
	border: none;
	border-radius: 6px;
	color: var(--text-primary);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.1s ease, color 0.1s ease;
	width: 100%;
}

.item:hover {
	background-color: var(--brand-primary, #5865f2);
	color: #ffffff;
}

.item:hover .itemIcon {
	color: #ffffff;
}

.itemDanger {
	color: var(--status-danger, #f23f43);
}

.itemDanger .itemIcon {
	color: var(--status-danger, #f23f43);
}

.itemDanger:hover {
	background-color: var(--status-danger, #f23f43);
	color: #ffffff;
}

.itemDanger:hover .itemIcon {
	color: #ffffff;
}

.itemIcon {
	flex-shrink: 0;
	color: var(--text-secondary);
	transition: color 0.1s ease;
}

.itemLabel {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.divider {
	height: 1px;
	margin: 4px 8px;
	background-color: var(--background-modifier-accent, rgba(255, 255, 255, 0.06));
}
