.pbg_pres_section,
.pbg_feed_section {
	margin-top: 18px;
}

/*
	Лента событий и активность форума лежат во вкладках. Высоту ограничиваем,
	чтобы длинный список не растягивал главную страницу.
*/
.pbg_feed_scroll {
	max-height: 420px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.pbg_feed_scroll::-webkit-scrollbar {
	width: 5px;
}

.pbg_feed_scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
}

/* Внутри карточки блоки уже имеют свои отступы — снимаем внешние. */
.pbg_feed_scroll > *:first-child {
	margin-top: 0;
}

.pbg_feed_scroll > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.pbg_feed_scroll {
		max-height: 340px;
	}
}

/*
	Сетка рассчитана на большое число участников: список ограничен по высоте
	и скроллится внутри себя, поэтому 500+ онлайна не растягивают страницу.
*/
.pbg_pres_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
	max-height: 268px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.pbg_pres_grid::-webkit-scrollbar {
	width: 5px;
}

.pbg_pres_grid::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 4px;
}

.pbg_pres_card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	text-decoration: none;
	min-width: 0;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pbg_pres_card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(79, 234, 159, 0.32);
	transform: translateY(-1px);
	text-decoration: none;
}

.pbg_pres_avatar {
	position: relative;
	flex: 0 0 auto;
	line-height: 0;
}

.pbg_pres_dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid #1b1b22;
}

.pbg_pres_dot--online {
	background: #4fea9f;
	box-shadow: 0 0 0 2px rgba(79, 234, 159, 0.22);
}

.pbg_pres_dot--offline {
	background: #6b7280;
}

.pbg_pres_body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pbg_pres_name {
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pbg_pres_meta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.42);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pbg_pres_device {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.45);
	font-size: 14px;
}

.pbg_pres_more {
	margin-top: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px dashed rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	text-align: center;
}

.pbg_pres_empty {
	grid-column: 1 / -1;
	padding: 26px 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.42);
	font-size: 13px;
}

@media (max-width: 767px) {
	.pbg_pres_grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		max-height: 232px;
	}

	.pbg_pres_meta {
		font-size: 10.5px;
	}
}
