#accountswitcher_header{
	position: relative;
}

#accountswitcher_header_popup {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 0.25rem;
	background: var(--account-switcher-header-background);
	box-shadow: var(--box-shadow-medium);
	display: none;
	
	&.active {
		display: block;
	}
	
	.accounts {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.5rem;
		max-height: calc(100vh - 8rem);
		overflow: auto;
		box-sizing: border-box;
	}
	
	.switchlink.header {
		position: relative;
		height: 3.5rem;
		aspect-ratio: 300/250;
		padding: 0;
		overflow: hidden;
		
		&:after {
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			content: "";
			background: var(--color-primary);
			mix-blend-mode: color;
			opacity: 0.5;
			transition: opacity 250ms ease;
		}

		&:hover:after {
			opacity: 0;
		}
	}
}

.account-switcher-profile {
	width: 100%;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(2.5rem, 4.25rem));
	justify-items: center;
	justify-content: center;
    
	a,
	.avatar-wrapper {
		aspect-ratio: 300/250;
		overflow: hidden;
	}
}

.accountswitcher-post {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	
	select {
		min-width: 8rem;
	}
}

.accountswitcher-author-button {
	position: relative;
	
	.accountswitcher-author-menu {
		position: absolute;
		top: 50% !important;
		left: 1.5rem !important;
		transform: translateY(-50%);
		white-space: nowrap;
	}
}