.card {
	z-index: 15000;
	display: flex;
	flex-direction: column;
	background-color: var(--background-primary, #111214);
	border: 3px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	max-height: calc(100vh - 32px);
}

.banner {
	flex: 0 0 auto;
	height: 110px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Avatar wrap — pulls up over the banner, anchored left. The dark
   ring around the avatar is the card's background color bleeding
   through the wrapper's padding — creates a cutout effect against
   the banner above. `align-self: flex-start` keeps it left-aligned
   in the flex-column parent. */
.avatarWrap {
	position: relative;
	align-self: flex-start;
	margin: -40px 0 0 16px;
	padding: 5px;
	border-radius: 50%;
	background-color: var(--background-primary, #111214);
	box-sizing: content-box;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 10px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nameBlock {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.displayName {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary, #fff);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.handle {
	font-size: 12px;
	color: var(--text-primary-muted, #a0a3a8);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.divider {
	height: 1px;
	background-color: var(--background-modifier-accent, rgba(255, 255, 255, 0.06));
}

.section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sectionLabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-primary-muted, #a0a3a8);
}

.bioText {
	font-size: 13px;
	line-height: 1.45;
	color: var(--text-primary, #fff);
	white-space: pre-wrap;
	word-wrap: break-word;
	max-height: 8em;
	overflow-y: auto;
}

.memberSince {
	font-size: 13px;
	color: var(--text-primary, #fff);
}

.rolesHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.addRoleButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	background-color: var(--background-tertiary, rgba(255, 255, 255, 0.08));
	border: none;
	border-radius: 4px;
	color: var(--text-primary-muted, #a0a3a8);
	cursor: pointer;
	transition: background-color 0.1s, color 0.1s;
}

.addRoleButton:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.12));
	color: var(--text-primary, #fff);
}

.noRoles {
	font-size: 12px;
	font-style: italic;
	color: var(--text-primary-muted, #a0a3a8);
}

.rolesList {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rolePill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	background-color: var(--background-secondary, rgba(255, 255, 255, 0.04));
	border: 1px solid var(--background-modifier-accent, rgba(255, 255, 255, 0.08));
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
}

.roleDot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.roleName {
	color: var(--text-primary, #fff);
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
