.container {
	display: flex;
	gap: 20px;
	height: 100%;
	min-height: 440px;
}

.list {
	flex: 0 0 240px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
}

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

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

.listCount {
	font-size: 11px;
	color: var(--text-primary-muted, #a0a3a8);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rolesList {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-y: auto;
	min-height: 0;
	flex: 1 1 auto;
}

.roleItem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background-color: var(--background-secondary, rgba(255, 255, 255, 0.03));
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.1s, border-color 0.1s;
}

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

.roleItemSelected {
	background-color: var(--background-modifier-hover, rgba(255, 255, 255, 0.08));
	border-color: var(--brand-primary, #5865f2);
}

.roleItemDragOver {
	border-color: var(--brand-primary, #5865f2);
	background-color: rgba(88, 101, 242, 0.12);
}

.roleItemEveryone {
	opacity: 0.7;
	margin-top: 8px;
	border-top: 1px solid var(--background-modifier-accent, rgba(255, 255, 255, 0.06));
	padding-top: 12px;
}

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

.roleName {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary, #fff);
}

.rolePower {
	flex-shrink: 0;
	font-size: 11px;
	color: var(--text-primary-muted, #a0a3a8);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.editor {
	flex: 1 1 auto;
	min-width: 0;
}

.placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-primary-muted, #a0a3a8);
	font-size: 14px;
}

.gate {
	padding: 60px 20px;
	text-align: center;
}

.gateTitle {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary, #fff);
}

.gateBody {
	margin: 0 auto;
	max-width: 360px;
	font-size: 14px;
	color: var(--text-secondary, #a0a3a8);
}

.error {
	padding: 8px 12px;
	background-color: rgba(234, 80, 80, 0.15);
	border: 1px solid rgba(234, 80, 80, 0.4);
	border-radius: 6px;
	color: var(--text-primary, #fff);
	font-size: 12px;
}
