.mobile-menu {
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	cursor: pointer;
	display: none;
	font-size: 20px;
	height: 38px;
	line-height: 1;
	width: 38px;
}

.topbar > div:last-child {
	align-items: center;
	display: flex;
	gap: 14px;
	min-width: 0;
}

.topbar .user-label {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.topbar > div:last-child .button {
	white-space: nowrap;
}

@media (max-width: 800px) {
	.topbar {
		position: relative;
	}

	.mobile-menu {
		display: block;
		margin-left: auto;
		margin-right: 12px;
		position: relative;
		z-index: 11;
	}

	.topbar > div:last-child {
		align-items: stretch;
		background: var(--panel);
		border-left: 1px solid var(--line);
		bottom: 0;
		box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
		flex-direction: column;
		gap: 12px;
		padding: 22px 28px 28px;
		position: fixed;
		right: -280px;
		transition: right .25s ease;
		width: 280px;
		z-index: 11;
	}

	.topbar.nav-open > div:last-child {
		right: 0;
	}

	.topbar .user-label {
		max-width: none;
		padding: 4px 0;
	}

	.topbar nav {
		background: var(--panel);
		border-left: 1px solid var(--line);
		box-shadow: -20px 0 60px rgba(0, 0, 0, .35);
		display: flex;
		flex-direction: column;
		gap: 0;
		height: 100vh;
		justify-content: flex-start;
		padding: 100px 28px 170px;
		position: fixed;
		right: -280px;
		top: 0;
		transition: right .25s ease;
		width: 280px;
		z-index: 10;
	}

	.topbar.nav-open nav {
		right: 0;
	}

	.topbar nav a {
		border-bottom: 1px solid var(--line);
		font-size: 12px;
		padding: 18px 0;
	}
}
