.messageSidebar {
	position: relative;
}

.messageSidebar > .ugtContainer--messageSidebarOverlay.ugtPos--bottomLeft ~ .userCredits,
.messageSidebar > .ugtContainer--messageSidebarOverlay.ugtPos--bottomRight ~ .userCredits {
	margin-top: 0.35rem;
	margin-bottom: 2.2rem;
}

.messageSidebar > .ugtContainer--messageSidebarOverlay.ugtPos--topLeft ~ .userCredits,
.messageSidebar > .ugtContainer--messageSidebarOverlay.ugtPos--topRight ~ .userCredits {
	margin-top: 0.35rem;
}

.ugtContainer {
	display: inline-flex;
	align-items: center;
	position: relative;
}

.ugtContainer--overlay {
	position: absolute;
	z-index: 4;
}

.ugtContainer--messageSidebarOverlay.ugtContainer--overlay.ugtPos--topLeft {
	top: -0.9rem;
	left: 0.35rem;
}

.ugtContainer--messageSidebarOverlay.ugtContainer--overlay.ugtPos--topRight {
	top: -0.9rem;
	right: 0.35rem;
}

.ugtContainer--messageSidebarOverlay.ugtContainer--overlay.ugtPos--bottomLeft {
	bottom: 0.55rem;
	left: 0.35rem;
}

.ugtContainer--messageSidebarOverlay.ugtContainer--overlay.ugtPos--bottomRight {
	bottom: 0.55rem;
	right: 0.35rem;
}

.ugtContainer--messageSidebarBadge.ugtPos--userBadge {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 0.35rem;
}

.ugtBadge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.8rem;
	height: 1.8rem;
	border-radius: 999px;
	background: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
	line-height: 1;
}

.ugtBadge .fa-icon {
	font-size: 0.85rem;
}

.ugtIconBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	padding: 0.18rem 0.42rem;
}

.ugtBadge.ugtIconShape--square,
.ugtIconBadge.ugtIconShape--square {
	border-radius: 0.35rem;
}

.ugtBadge.ugtIconShape--round,
.ugtIconBadge.ugtIconShape--round {
	border-radius: 999px;
}

.ugtLabel {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ugtContainer--messageSidebarOverlay .ugtLabel,
.ugtContainer--messageSidebarBadge .ugtLabel {
	border-radius: 0.3rem;
	min-width: 6.75rem;
	justify-content: center;
}

.ugtGroupsDialogList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ugtGroupsDialogList li + li {
	margin-top: 0.4rem;
}

.ugtProfileGroups {
	margin-top: 0.5rem;
}

.ugtProfileGroupsGrid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.75rem;
}

.ugtProfileGroupCard {
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	background: var(--wcfContentBackground);
	box-shadow: 0 1px 2px var(--wcfContentBorderInner);
	min-height: 7.25rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ugtProfileGroupCard__header {
	margin-bottom: 0.35rem;
}

.ugtProfileGroupCard__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	font-weight: 600;
	word-break: break-word;
}

.ugtProfileGroupCard__rank {
	margin-top: 0.2rem;
	min-height: 1.3rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ugtProfileGroupCard__rank .userTitleBadge,
.ugtProfileGroupCard__rank .badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.ugtProfileGroupCard__meta {
	margin-top: 0.6rem;
	color: var(--wcfContentDimmedText);
	font-size: 0.82rem;
}

.ugtProfileGroups__infoNote {
	margin-top: 0.75rem;
}

@media (max-width: 768px) {
	.ugtLabel {
		max-width: 9rem;
	}

	.ugtBadge {
		min-width: 1.6rem;
		height: 1.6rem;
	}
}
