/* Legacy header — mobile account overflow menu (md and below) */

.header-user-actions__mobile {
	display: none;
}

.header-user-menu {
	position: relative;
}

.header-user-menu__trigger {
	background-color: #374151;
	height: 2.5rem;
	min-width: 2.5rem;
	padding: 0;
	width: 2.5rem;
}

.header-user-menu__trigger:hover,
.header-user-menu.is-open .header-user-menu__trigger {
	background-color: #1f2937;
}

.header-user-menu__burger {
	font-size: 15px;
	line-height: 1;
}

.header-user-menu__panel {
	background: #ffffff;
	border: 1px solid #c8d5e3;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
	color: #1f2937;
	display: flex;
	flex-direction: column;
	margin-top: 6px;
	min-width: 14rem;
	overflow: hidden;
	padding: 0.25rem 0;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 220;
}

.header-user-menu__panel[hidden] {
	display: none !important;
}

.header-user-menu__head {
	border-bottom: 1px solid #e2e8f0;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
	overflow: hidden;
	padding: 0.5rem 0.75rem 0.4rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.header-user-menu__item {
	align-items: center;
	color: #1f2937;
	display: flex;
	font-size: 0.8125rem;
	font-weight: 500;
	gap: 0.55rem;
	padding: 0.55rem 0.75rem;
	text-decoration: none;
}

.header-user-menu__item:hover {
	background: #f1f5f9;
	color: #1f2937;
	text-decoration: none;
}

.header-user-menu__item img {
	display: block;
	flex-shrink: 0;
	height: 16px;
	width: 16px;
}

.header-user-menu__item--danger {
	border-top: 1px solid #e2e8f0;
	color: #dc2626;
}

.header-user-menu__item--danger:hover {
	background: #fef2f2;
	color: #b91c1c;
}

/* md — swap desktop icons for hamburger; notifications stay visible */
@media (max-width: 768px) {
	.header-user-actions__desktop {
		display: none !important;
	}

	.header-user-actions__mobile {
		display: block;
	}
}
