#accounts_menu {
	summary {
		display: inline-block;
		list-style: none;
		
		&::-webkit-details-marker {
			display: none;
		}

		&::before {
			content: "\f2bd";
			display: block;
			width: 20px;
			height: 20px;
			line-height: 20px;
			text-align: center;
			font-family: "Font Awesome 5 Free";
			font-weight: 900;
		}
	}

	&.nologin summary::before {
		content: "\f506";
	}

	> div {
		position: fixed;
		margin: auto;
		top: 48px;
		right: 8px;
		width: 200px;
		padding: 8px;
		border-radius: 8px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 2px 8px rgb(0 0 0 / 0.3);
		z-index: 2;

		hr {
			margin: 8px 0;
			border-style: none;
			border-bottom: 1px solid #ccc;
		}

		p.user {
			margin: 0 -8px;
			padding-left: 52px;
			white-space: nowrap;
		
			&::before {
				content: "\f2bd";
				margin-top: 6px;
				margin-left: -40px;
				font-size: 30px;
				position: absolute;
				font-family: "Font Awesome 5 Free";
				font-weight: 900;
				color: #999;
			}

			span {
				display: block;
				font-size: 80%;
				color: #999;
			}

			a {
				display: inline-block;
				margin-top: 4px;
				padding: 4px 8px 4px 4px;
				border: 1px solid #666;
				border-radius: 16px;
				font-size: 14px;
				color: #666;
				text-decoration: none;
				
				i {
					vertical-align: middle;
					font-size: 16px;
					margin-left: 4px;
				}

				&:hover {
					background-color: #eee;
				}
			}
		}

		ul {
			margin: 0;
			padding: 0;
			
			li {
				display: block;
				margin: 0;
				padding: 0;

				a, button {
					appearance: none;
					display: block;
					position: relative;
					margin: 0;
					padding: 8px 0;
					width: 100%;
					text-align: left;
					border-style: none;
					background-color: #fff;
					font-size: 16px;
					color: #333;
					text-decoration: none;
					
					span {
						display: block;
						overflow: hidden;
						text-overflow: ellipsis;
						text-wrap: nowrap;
						padding-right: 24px;

						&:first-child {
							color: #999;
							font-size: 14px;
						}
					}

					&:not(:disabled):hover {
						background-color: #eee;
					}

					&:disabled::after {
						content: "\f058";
						display: block;
						position: absolute;
						top: 26px;
						right: 4px;
						font-family: "Font Awesome 5 Free";
						font-weight: 900;
						color: #00ba7c;
						font-size: 16px;
					}
				}
			}
		}
	}

	&:not([open]) > summary:hover {
		opacity: .5;
	}

	&[open] summary::after {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: 10000px;
		height: 10000px;
		cursor: auto;
		z-index: 1;
	}
}