/* Mention autocomplete popup — matches Fluxer's Autocomplete look. The
   popup floats above the chat input, slightly rounded, with a compact
   section header and individual rows for each mentionable user. */

.container {
	overflow: hidden;
	border-radius: 8px;
	background-color: var(--background-primary, #111214);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.04);
	display: flex;
	flex-direction: column;
	max-height: 420px;
}

.header {
	flex: 0 0 auto;
	padding: 8px 12px 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text-primary-muted, #a0a3a8);
	user-select: none;
}

.scroller {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px 8px 8px;
	overflow-y: auto;
	min-height: 0;
}

.row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 8px;
	border: none;
	background-color: transparent;
	border-radius: 6px;
	text-align: left;
	cursor: pointer;
	color: var(--text-primary, #fff);
	font: inherit;
	min-height: 32px;
}

.rowActive,
.row:hover {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.06));
}

.icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.everyoneIcon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--brand-primary, #5865f2);
	color: #fff;
}

.nameWrapper {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.name {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	font-size: 14px;
	color: var(--text-primary, #fff);
	line-height: 1.25;
}

.description {
	flex: 0 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: right;
	font-weight: 400;
	color: var(--text-primary-muted, #a0a3a8);
	font-size: 12px;
	line-height: 1.33;
	max-width: 50%;
}
