/*
	Страница пользователя: собранная шапка профиля, боковая колонка блоков
	и мобильные вкладки вместо длинной ленты блоков.
	Файл подключается последним, поэтому аккуратно перекрывает прежние стили.
*/

.account-profile,
.profile-layout {
	--pr-surface: #fff;
	--pr-surface-soft: #f7f8fc;
	--pr-border: #e6e8f0;
	--pr-text: #212734;
	--pr-muted: #737d90;
	--pr-accent: #6d5ce6;
	--pr-accent-soft: rgba(109, 92, 230, .09);
	--pr-radius: 20px;
	--pr-shadow: 0 10px 26px rgba(33, 39, 52, .06);
}

html[data-bs-theme="dark"] .account-profile,
html[data-bs-theme="dark"] .profile-layout {
	--pr-surface: #171b26;
	--pr-surface-soft: #1e2331;
	--pr-border: #2b3243;
	--pr-text: #e8ecf5;
	--pr-muted: #97a1b5;
	--pr-accent-soft: rgba(124, 108, 255, .16);
	--pr-shadow: 0 12px 30px rgba(6, 9, 16, .34);
}

/* ------------------------------------------------------------------ */
/* Шапка профиля: меньше шума, больше личности                         */
/* ------------------------------------------------------------------ */

.account-profile.block.account {
	overflow: hidden;
	border: 1px solid var(--pr-border);
	border-radius: 24px;
	background: var(--pr-surface);
	box-shadow: var(--pr-shadow);
}

.account-profile .cover {
	max-height: 300px;
	overflow: hidden;
}

.account-profile .cover .image {
	filter: saturate(1.05);
}

.account-profile .cover::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 42%;
	background: linear-gradient(180deg, transparent, rgba(12, 16, 26, .34));
	pointer-events: none;
}

.account-profile.no_cover .cover::after {
	display: none;
}

.account-profile.no_cover {
	background: var(--pr-surface);
}

.account-profile.no_cover .cover {
	height: 132px;
	max-height: 132px;
	background:
		radial-gradient(140% 180% at 8% 0%, color-mix(in srgb, var(--pr-accent) 26%, transparent), transparent 62%),
		linear-gradient(120deg, color-mix(in srgb, var(--pr-accent) 16%, transparent), transparent 72%);
}

.account-profile .content {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 18px;
	padding: 0 22px 22px;
}

.account-profile .content > .avatar {
	grid-column: 1;
}

.account-profile .content > .info {
	grid-column: 2;
}

.account-profile .content > .Panel {
	grid-column: 3;
	justify-self: end;
}

.account-profile .content > .profile-counters {
	grid-column: 1 / -1;
}

.account-profile .content .avatar {
	flex: none;
	margin-top: -54px;
}

.account-profile .content .avatar .image {
	width: 108px;
	height: 108px;
	border: 3px solid var(--pr-surface);
	box-shadow: 0 6px 16px rgba(12, 16, 26, .14);
}

.account-profile .content .avatar {
	background: none;
}

.account-profile .content .avatar .image {
	background: var(--pr-surface);
}

.account-profile .content .info {
	padding-top: 6px;
}

.account-profile .content .info .name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--pr-text);
}

.account-profile .content .info .name .LastOnline,
.account-profile .content .info .name small {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--pr-muted);
}

.account-profile .content .info .status {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--pr-muted);
	font-size: 14px;
	line-height: 1.5;
}

.account-profile .content .info .bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin-top: 12px;
}

.account-profile .content .info .bar .city {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--pr-muted);
	font-size: 13px;
}

.account-profile .content .info .bar .city a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-muted) 45%, transparent);
}

.account-profile .content .info .bar .city a:hover {
	color: var(--pr-accent);
	border-color: var(--pr-accent);
}

.profile-medals-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

/* Счётчики профиля */

button.profile-counter {
	cursor: pointer;
}

button.profile-counter:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 42%, var(--pr-border));
	box-shadow: 0 10px 22px color-mix(in srgb, var(--pr-accent) 14%, transparent);
	transform: translateY(-2px);
}

button.profile-counter:hover::before {
	opacity: 1;
}




/* Пустой блок подсказки VIP не занимает места */
.vip-profile-feedback:empty {
	display: none;
	min-height: 0;
}


/* Счётчики профиля */
.profile-counters {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
	padding: 20px 22px 22px;
	border-top: 1px solid var(--pr-border);
}

@media (max-width: 991.98px) {
	.profile-counters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.profile-counter {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 14px;
	row-gap: 3px;
	min-height: 68px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--pr-border);
	border-radius: 18px;
	background: var(--pr-surface);
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: default;
	transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.profile-counter::before {
	content: '';
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 0;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: color-mix(in srgb, var(--pr-accent) 55%, transparent);
	opacity: .55;
}

button.profile-counter {
	cursor: pointer;
}

button.profile-counter:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 42%, var(--pr-border));
	box-shadow: 0 12px 26px color-mix(in srgb, var(--pr-accent) 16%, transparent);
	transform: translateY(-2px);
}

button.profile-counter:hover::before {
	opacity: 1;
}

.profile-counter i {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--pr-accent) 16%, transparent);
	color: var(--pr-accent);
	font-size: 19px;
}

.profile-counter b {
	grid-column: 2;
	color: var(--pr-text);
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
}

.profile-counter span {
	grid-column: 2;
	min-width: 0;
	color: var(--pr-muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* Пустой блок подсказки VIP не занимает места */
.vip-profile-feedback:empty {
	display: none;
	min-height: 0;
}

/* Действия в шапке профиля */
.account-profile .content .Panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
}

.account-profile .content .Panel output {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.account-profile .content .Panel .btn,
.account-profile .content .Panel .gift-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 14px;
	font-weight: 600;
}

.account-profile .content .Panel .btn-primary,
.account-profile .content .Panel .gift-open {
	box-shadow: 0 10px 22px rgba(109, 92, 230, .22);
}

.account-profile .content .Panel .btn-light,
.account-profile .content .Panel .btn-outline-secondary {
	border: 1px solid var(--pr-border);
	background: var(--pr-surface-soft);
	color: var(--pr-text);
}

/* ------------------------------------------------------------------ */
/* Две колонки: стена + аккуратная боковая колонка                     */
/* ------------------------------------------------------------------ */

.profile-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin-top: 18px;
}

.profile-main {
	min-width: 0;
}

.profile-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	align-content: start;
	min-width: 0;
}

.profile-card,
.profile-side > .profile-panel-mini {
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--pr-border);
	border-radius: var(--pr-radius);
	background: var(--pr-surface);
	box-shadow: var(--pr-shadow);
}

/* Внутренние блоки больше не рисуют собственные рамки — иначе «захламление» */
.profile-card > .block,
.profile-card .block,
.profile-card > section {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.profile-card .gift-shelf,
.profile-card .medals-block,
.profile-card .profile-interactions,
.profile-card .profile-panel-mini {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.profile-card .gift-shelf {
	background: none;
}

.profile-card .gift-shelf-head,
.profile-card .medals-block-head {
	margin-bottom: 14px;
}

.profile-card .medias-grid:empty {
	display: none;
}

/* Заголовки блоков в боковой колонке */
.profile-card > .block > header,
.profile-card > .block .header,
.profile-card .block-header {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Вкладки: только на мобильных, чтобы профиль не тонул в блоках       */
/* ------------------------------------------------------------------ */

.profile-tabs {
	display: none;
}

@media (max-width: 991.98px) {
	.profile-tabs {
		position: sticky;
		top: 62px;
		z-index: 30;
		display: flex;
		gap: 8px;
		margin: 0;
		padding: 8px 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		background: color-mix(in srgb, var(--pr-surface) 92%, transparent);
		border-bottom: 1px solid var(--pr-border);
		backdrop-filter: blur(10px);
		scrollbar-width: none;
	}

	.profile-tabs::-webkit-scrollbar {
		display: none;
	}

	.profile-tab {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		flex: 0 0 auto;
		min-height: 40px;
		padding: 0 15px;
		border: 1px solid var(--pr-border);
		border-radius: 999px;
		background: var(--pr-surface-soft);
		color: var(--pr-muted);
		font-size: 13.5px;
		font-weight: 600;
		white-space: nowrap;
		cursor: pointer;
		transition: border-color .16s ease, color .16s ease, background-color .16s ease;
	}

	.profile-tab b {
		padding: 1px 7px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
		color: var(--pr-accent);
		font-size: 11.5px;
		font-weight: 700;
	}

	.profile-tab.is-active {
		border-color: var(--pr-accent);
		background: var(--pr-accent-soft);
		color: var(--pr-accent);
	}

	.profile-layout {
		gap: 14px;
		margin-top: 14px;
	}

	.profile-side {
		gap: 14px;
	}

	.profile-card,
	.profile-side > .profile-panel-mini {
		padding: 16px;
		border-radius: 18px;
	}
}

/* ------------------------------------------------------------------ */
/* Компьютерная версия                                                 */
/* ------------------------------------------------------------------ */

@media (min-width: 992px) {
	.profile-layout {
		grid-template-columns: minmax(0, 1fr) 344px;
		align-items: start;
	}

	.profile-side {
		position: sticky;
		top: 18px;
	}
}

/* ------------------------------------------------------------------ */
/* Телефон: профиль в центре внимания                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 767.98px) {
	.account-profile.block.account {
		border-radius: 20px;
	}

	.account-profile .cover {
		max-height: 190px;
	}

	.account-profile .content {
		padding: 0 16px 18px;
	}

	.account-profile .content .avatar {
		margin-top: -46px;
	}

	.account-profile .content .avatar .image {
		width: 92px;
		height: 92px;
	}

	.account-profile .content .info .name {
		font-size: 20px;
	}

	.account-profile .content {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 10px;
		padding-top: 0;
	}

	.account-profile .content > .avatar,
	.account-profile .content > .info,
	.account-profile .content > .Panel {
		grid-column: 1;
	}

	.account-profile .content > .Panel {
		justify-self: stretch;
	}

	.account-profile .content > .profile-counters {
		grid-column: 1;
		width: 100%;
	}

	.account-profile.no_cover .cover {
		height: 108px;
		max-height: 108px;
	}






	.account-profile .content .Panel,
	.account-profile .content .Panel output {
		width: 100%;
	}

	.account-profile .content .Panel .btn,
	.account-profile .content .Panel .gift-open,
	.account-profile .content .Panel .btn-light {
		flex: 1 1 calc(50% - 5px);
		justify-content: center;
		min-height: 44px;
	}

	.profile-main .feed,
	.profile-main .wall {
		gap: 12px;
	}

	.profile-counters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 16px;
		padding: 16px 16px 18px;
	}

	.profile-counter {
		grid-template-columns: 36px minmax(0, 1fr);
		column-gap: 10px;
		row-gap: 2px;
		min-height: 62px;
		padding: 12px;
		border-radius: 15px;
	}

	.profile-counter::before {
		top: 12px;
		bottom: 12px;
		width: 2px;
	}

	.profile-counter i {
		width: 36px;
		height: 36px;
		border-radius: 12px;
		font-size: 16px;
	}

	.profile-counter b {
		font-size: 20px;
	}

	.profile-counter span {
		font-size: 10px;
		letter-spacing: .03em;
	}
}






}

/* ------------------------------------------------------------------ */
/* Единый вид карточек боковой колонки                                 */
/* ------------------------------------------------------------------ */

.profile-card .gift-shelf-head h3,
.profile-card .medals-block-head h3,
.profile-card .profile-interactions > .profile-interactions-head h3 {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--pr-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.profile-card .gift-shelf-head,
.profile-card .medals-block-head {
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pr-border);
}

.profile-card .gift-shelf-head h3 b {
	padding: 1px 8px;
	border: 1px solid var(--pr-border);
	border-radius: 999px;
	background: var(--pr-surface-soft);
	color: var(--pr-muted);
	font-size: 11.5px;
}

.profile-card .medals-block-head small {
	font-size: 12px;
	color: var(--pr-muted);
}

/* Обо мне: аккуратный текст */
.profile-card .about-fields {
	display: grid;
	gap: 10px;
}

.profile-card .about-field {
	display: grid;
	gap: 2px;
}

.profile-card .about-field > span {
	color: var(--pr-muted);
	font-size: 11.5px;
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* Записи на стене: ближе к карточкам профиля */
.profile-main .block.write {
	padding: 16px 18px;
}

.profile-main .block.write .top_panel {
	margin-bottom: 10px;
	padding: 0;
}

.profile-main .block.write .content {
	padding: 0;
	color: var(--pr-text);
	line-height: 1.55;
}

.profile-main .block.write .content_bottom {
	padding: 12px 0 0;
	margin-top: 12px;
	border-top: 1px solid var(--pr-border);
}

.profile-main .block.write .post-content-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Подарки и медали: горизонтальная лента плиток                       */
/* ------------------------------------------------------------------ */

.profile-card .gift-shelf-head,
.profile-card .medals-block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-bottom: 8px;
}

.profile-card .gift-shelf-head > .gift-shelf-link,
.profile-card .medals-block-head > .medals-block-link {
	margin-left: auto;
	font-size: 12.5px;
	white-space: nowrap;
}

.profile-card .gift-shelf-list,
.profile-card .medals-grid {
	--ui-ribbon-gap: 10px;
	--ui-ribbon-bleed: 18px;
	--ui-ribbon-media: 60px;
	--ui-ribbon-tile: calc((100% - 3 * var(--ui-ribbon-gap)) / 4);
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--ui-ribbon-gap);
	margin: 0 calc(-1 * var(--ui-ribbon-bleed));
	padding: 10px var(--ui-ribbon-bleed) 20px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--ui-ribbon-bleed);
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--pr-muted) 35%, transparent) transparent;
}

/*
	Лента с управлением: полосу прокрутки убираем, её роль играют стрелки
	на компьютере и точки на телефоне. Без скриптов полоса остаётся видимой.
*/
.profile-card .ui-ribbon-track {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.profile-card .ui-ribbon-track::-webkit-scrollbar {
	width: 0;
	height: 0;
}

/* Плитка ленты: картинка сверху, подпись снизу */
.profile-card .gift-shelf-item,
.profile-card .medal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	flex: 0 0 var(--ui-ribbon-tile);
	width: var(--ui-ribbon-tile);
	min-width: 0;
	max-width: var(--ui-ribbon-tile);
	margin: 0;
	padding: 10px 7px 9px;
	border: 1px solid var(--pr-border);
	border-radius: 15px;
	background: var(--pr-surface);
	box-shadow: 0 6px 16px color-mix(in srgb, #1b2130 9%, transparent);
	scroll-snap-align: start;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

html[data-bs-theme="dark"] .profile-card .gift-shelf-item,
html[data-bs-theme="dark"] .profile-card .medal-card {
	background: var(--pr-surface);
	border-color: var(--pr-border);
	box-shadow: 0 8px 18px rgba(4, 7, 14, .5);
}

.profile-card .gift-shelf-item .gift-item.is-md,
.profile-card .medal-card-icon {
	width: var(--ui-ribbon-media);
	height: var(--ui-ribbon-media);
	flex: 0 0 var(--ui-ribbon-media);
}

.profile-card .gift-shelf-item .gift-item.is-md {
	border-radius: 50%;
}

.profile-card .medal-card-icon {
	border-radius: 16px;
	font-size: 24px;
}

.profile-card .gift-shelf-item .ui-tile-title,
.profile-card .medal-card-top strong {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	width: 100%;
	color: var(--pr-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.profile-card .gift-shelf-item .gift-shelf-sender {
	width: 100%;
	max-width: 100%;
	color: var(--pr-muted);
	font-size: 10px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-card .ui-tile-date {
	display: block;
	width: 100%;
	margin-top: -2px;
	color: var(--pr-muted);
	font-size: 9.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-card .medal-card-body {
	display: grid;
	justify-items: center;
	gap: 4px;
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
}

.profile-card .medal-card-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 100%;
}

.profile-card .medal-card-tier {
	font-size: 9px;
	letter-spacing: .04em;
}

.profile-card .medal-card-body small {
	display: none;
}

.profile-card .medal-card-progress {
	width: 100%;
	height: 4px;
	border-radius: 4px;
	background: var(--pr-surface-soft);
}

.profile-card .medal-card-done,
.profile-card .medal-card-count {
	display: block;
	max-width: 100%;
	overflow: hidden;
	color: var(--pr-muted);
	font-size: 9px;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.profile-card .medal-card-done {
	color: #2f9e6f;
}

/* В узкой плитке галочка не помещается — смысл несёт сам текст */
.profile-card .medal-card-done > i {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.profile-card .gift-shelf-item:hover,
	.profile-card .medal-card:hover {
		transform: translateY(-4px);
		border-color: color-mix(in srgb, var(--pr-accent) 45%, var(--pr-border));
		box-shadow: 0 12px 26px color-mix(in srgb, var(--pr-accent) 20%, transparent);
	}
}

/* Стрелки ленты: только там, где есть место рядом с заголовком */
.profile-card .ui-ribbon-nav {
	display: none;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	margin-left: auto;
}

@media (min-width: 768px) {
	.profile-card .ui-ribbon-nav {
		display: inline-flex;
	}
}

.profile-card .ui-ribbon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--pr-border);
	border-radius: 12px;
	background: var(--pr-surface-soft);
	color: var(--pr-muted);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .16s ease, color .16s ease, background-color .16s ease, opacity .16s ease;
}

.profile-card .ui-ribbon-btn:hover:not(:disabled),
.profile-card .ui-ribbon-btn:focus-visible {
	border-color: var(--pr-accent);
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
}

.profile-card .ui-ribbon-btn:disabled {
	opacity: .38;
	cursor: default;
}

/* Точки-индикаторы: только на телефоне */
.profile-card .ui-ribbon-dots {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin-top: -6px;
	padding: 0 4px;
}

.profile-card .ui-ribbon-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 44px;
	min-width: 14px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.profile-card .ui-ribbon-dot::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--pr-muted) 45%, transparent);
	transition: background-color .16s ease, transform .16s ease;
}

.profile-card .ui-ribbon-dot.is-active::before {
	background: var(--pr-accent);
	transform: scale(1.3);
}

/* Пустые состояния: деликатная заглушка вместо пустой рамки */
.profile-card .gift-shelf-empty,
.profile-card .ui-ribbon-empty {
	display: flex;
	flex: 1 1 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 132px;
	padding: 20px 18px;
	border: 1px dashed var(--pr-border);
	border-radius: 15px;
	background: color-mix(in srgb, var(--pr-surface-soft) 72%, transparent);
	color: var(--pr-muted);
	font-size: 12.5px;
	text-align: center;
}

.profile-card .gift-shelf-empty > i,
.profile-card .ui-ribbon-empty > i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--pr-accent-soft);
	color: var(--pr-accent);
	font-size: 20px;
}

.profile-card .gift-shelf-empty > span,
.profile-card .ui-ribbon-empty > span {
	color: var(--pr-text);
	font-size: 13px;
	font-weight: 600;
}

.profile-card .gift-shelf-empty > small,
.profile-card .ui-ribbon-empty > small {
	color: var(--pr-muted);
	font-size: 11.5px;
}

/* Подарки скрыты настройками приватности: без пустой рамки */
.profile-card .gift-shelf.is-hidden .gift-shelf-badge {
	font-size: 12px;
	color: var(--pr-muted);
}

@media (max-width: 991.98px) {
	.profile-card .gift-shelf-list,
	.profile-card .medals-grid {
		--ui-ribbon-bleed: 16px;
		--ui-ribbon-tile: 132px;
	}
}

@media (max-width: 767.98px) {
	.profile-card .gift-shelf-list,
	.profile-card .medals-grid {
		--ui-ribbon-tile: 38%;
		--ui-ribbon-media: 56px;
		scroll-snap-type: x mandatory;
	}

	.profile-card .ui-ribbon-dots {
		display: flex;
	}
}

/* Скрытые элементы управления ленты: правило должно идти последним */
.profile-card .ui-ribbon-nav[hidden],
.profile-card .ui-ribbon-dots[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Вкладки правой колонки профиля                                      */
/* ------------------------------------------------------------------ */

.profile-side-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	padding: 6px;
	border: 1px solid var(--pr-border);
	border-radius: 16px;
	background: var(--pr-surface);
	box-shadow: 0 8px 20px rgba(33, 39, 52, .04);
}

.profile-side-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	flex: 1 1 auto;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: none;
	color: var(--pr-muted);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.profile-side-tab i {
	font-size: 15px;
}

.profile-side-tab:hover {
	border-color: var(--pr-border);
	background: var(--pr-surface-soft);
	color: var(--pr-text);
}

.profile-side-tab:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 1px;
}

.profile-side-tab.is-active {
	border-color: color-mix(in srgb, var(--pr-accent) 45%, var(--pr-border));
	background: color-mix(in srgb, var(--pr-accent) 12%, var(--pr-surface));
	color: var(--pr-accent);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--pr-accent) 16%, transparent);
}

.profile-side-panel[hidden] {
	display: none;
}

.profile-side-panel {
	animation: profile-side-fade .22s ease;
}

@keyframes profile-side-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
	.profile-side-tabs {
		gap: 5px;
		padding: 5px;
		border-radius: 14px;
	}

	.profile-side-tab {
		min-height: 40px;
		padding: 8px 10px;
		font-size: 12px;
	}

	.profile-side-tab span {
		display: none;
	}

	.profile-side-tab i {
		font-size: 17px;
	}

	.profile-side-tab.is-active span {
		display: inline;
	}
}

html[data-bs-theme="dark"] .profile-side-tabs {
	background: var(--pr-surface);
	box-shadow: 0 10px 24px rgba(5, 8, 14, .3);


.account-profile .content .info .profile-side-tab,
.account-profile .content .profile-side-tab {
	flex: 1 1 140px;
}

@media (max-width: 991.98px) {
	.account-profile .content .profile-side-tabs {
		margin-top: 12px;
	}

	.account-profile .content .profile-side-tab {
		flex: 1 1 44px;
	}
}

/* ------------------------------------------------------------------ */
/* Счётчики и вкладки одним блоком, без правой колонки                  */
/* ------------------------------------------------------------------ */

/* Стена занимает всю ширину, блок разделов встаёт над ней */

.profile-main {
	order: 2;
	grid-column: 1;
	min-width: 0;
}

.profile-side {
	order: 1;
	grid-column: 1;
	min-width: 0;
	position: static;
	max-width: none;
}

/* Панель переключателей сразу под счётчиками — тот же язык, что у плиток счётчиков */
.profile-side-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid var(--pr-border);
	border-top: 0;
	border-radius: 0 0 18px 18px;
	background: var(--pr-surface-soft);
}

.profile-side-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid var(--pr-border);
	border-radius: 13px;
	background: var(--pr-surface);
	color: var(--pr-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.profile-side-tab i {
	color: var(--pr-accent);
	font-size: 15px;
}

.profile-side-tab:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 40%, var(--pr-border));
	background: var(--pr-surface);
	color: var(--pr-accent);
	transform: translateY(-1px);
}

.profile-side-tab:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.profile-side-tab.is-active {
	border-color: var(--pr-accent);
	background: var(--pr-accent);
	color: #fff;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--pr-accent) 22%, transparent);
}

.profile-side-tab.is-active i {
	color: #fff;
}

/* Разделы: сетка во всю ширину, один активный */
.profile-side-wide {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.profile-side-panel {
	grid-column: 1;
	min-width: 0;
}

.profile-side-panel[hidden] {
	display: none;
}

@media (min-width: 1200px) {
	.profile-side-wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.profile-side-panel {
		grid-column: auto;
	}

	/* панель вкладок и активный раздел — на всю ширину */
	.profile-side-tabs,
	.profile-side-panel:not([hidden]) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767.98px) {
	.profile-side-tabs {
		gap: 6px;
		padding: 8px;
		border-radius: 0 0 16px 16px;
	}

	.profile-side-tab {
		min-height: 42px;
		padding: 9px 10px;
	}

	.profile-side-tab span {
		display: none;
	}

	.profile-side-tab.is-active span {
		display: inline;
	}
}

html[data-bs-theme="dark"] .profile-side-tabs {
	background: var(--pr-surface-soft);
}

/* Разделы под счётчиками и стена во всю ширину */
.account-profile .content .profile-side-wide {
	margin: 0;
	padding: 0;
	display: block;
}

.account-profile .content .profile-side-tabs {
	margin: 6px 0 0;
	border: 1px solid var(--pr-border);
	border-radius: 16px;
	background: var(--pr-surface-soft);
}

.account-profile .content .profile-side-panel {
	margin-top: 14px;
}

.account-profile .content .profile-side-panel[hidden] {
	display: none;
}

/* Содержимое «Подробнее» внутри профиля: без стилей модального окна */
.profile-details-inline {
	color: var(--pr-text);
	font-size: 14px;
	line-height: 1.55;
}

.profile-details-inline ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-details-inline li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 80%, transparent);
}

.profile-details-inline li:last-child {
	border-bottom: 0;
}

.profile-details-inline strong,
.profile-details-inline b {
	color: var(--pr-text);
	font-weight: 700;
	text-align: right;
}

.profile-details-inline abbr,
.profile-details-inline .profile-details-value {
	color: var(--pr-muted);
}

.profile-details-inline img,
.profile-details-inline svg {
	max-width: 100%;
	height: auto;
}

/* Стена занимает всю ширину: блок разделов больше не в сетке колонок */
.profile-layout {
	grid-template-columns: minmax(0, 1fr);
}

.profile-layout > .profile-main {
	grid-column: 1;
	min-width: 0;
}

/* ================================================================== */
/* Визуальный слой: счётчики и вкладки разделов                        */
/* ================================================================== */

/* Строка переключателей — сегментированная панель под счётчиками */
.profile-side-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 7px;
	border: 1px solid var(--pr-border);
	border-radius: 18px;
	background: linear-gradient(180deg, var(--pr-surface-soft), color-mix(in srgb, var(--pr-accent) 4%, var(--pr-surface-soft)));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.profile-side-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	min-height: 42px;
	padding: 10px 15px;
	border: 1px solid transparent;
	border-radius: 13px;
	background: none;
	color: var(--pr-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.profile-side-tab i {
	color: color-mix(in srgb, var(--pr-accent) 70%, var(--pr-muted));
	font-size: 16px;
	transition: color .18s ease, transform .18s ease;
}

.profile-side-tab:hover {
	border-color: color-mix(in srgb, var(--pr-accent) 22%, transparent);
	background: var(--pr-surface);
	color: var(--pr-text);
	transform: translateY(-1px);
}

.profile-side-tab:hover i {
	color: var(--pr-accent);
	transform: scale(1.06);
}

.profile-side-tab:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 2px;
}

.profile-side-tab.is-active {
	border-color: color-mix(in srgb, var(--pr-accent) 55%, transparent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--pr-accent) 94%, #fff), var(--pr-accent));
	color: #fff;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--pr-accent) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.profile-side-tab.is-active i {
	color: #fff;
}

/* Активная вкладка получает маленький указатель вниз */
.profile-side-tab.is-active::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	background: var(--pr-accent);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: none;
}

/* Раздел под переключателями — аккуратная карточка */
.profile-side-panel {
	margin-top: 18px;
	padding: 18px 20px 20px;
	border: 1px solid var(--pr-border);
	border-radius: 20px;
	background: var(--pr-surface);
	box-shadow: 0 12px 28px rgba(33, 39, 52, .06);
	animation: profile-panel-in .24s ease;
}

@keyframes profile-panel-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* Заголовок раздела: надстрочник + название с акцентной чертой */
.profile-side-panel > .profile-card-head,
.profile-side-panel > .profile-panel-mini-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0 0 12px 14px;
	border-bottom: 1px solid var(--pr-border);
	border-left: 3px solid var(--pr-accent);
}

.profile-side-panel > .profile-card-head span,
.profile-side-panel > .profile-panel-mini-heading span {
	display: block;
	color: var(--pr-accent);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.profile-side-panel > .profile-card-head h2,
.profile-side-panel > .profile-panel-mini-heading h2 {
	margin: 3px 0 0;
	color: var(--pr-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.profile-side-panel > .profile-card-head i,
.profile-side-panel > .profile-panel-mini-heading i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
	color: var(--pr-accent);
	font-size: 17px;
}

/* Строки «Подробнее» и статистики */
.profile-details-inline li,
.profile-side-panel .profile-panel-mini li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 2px;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
}

.profile-details-inline li:last-child,
.profile-side-panel .profile-panel-mini li:last-child {
	border-bottom: 0;
}

.profile-details-inline li i,
.profile-side-panel .profile-panel-mini li i {
	color: var(--pr-accent);
	font-size: 15px;
}

/* Пустые состояния */
.profile-side-wide .gift-shelf-empty,
.profile-side-wide .profile-panel-empty {
	margin: 0;
	padding: 22px 16px;
	border: 1px dashed color-mix(in srgb, var(--pr-accent) 30%, var(--pr-border));
	border-radius: 16px;
	background: color-mix(in srgb, var(--pr-accent) 4%, var(--pr-surface));
	color: var(--pr-muted);
	font-size: 13.5px;
	text-align: center;
}

/* Телефон: переключатели превращаются в прокручиваемую ленту */
@media (max-width: 767.98px) {
	.profile-side-tabs {
		gap: 6px;
		padding: 6px;
		border-radius: 16px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.profile-side-tabs::-webkit-scrollbar {
		display: none;
	}

	.profile-side-tab {
		flex: 0 0 auto;
		min-height: 44px;
		padding: 10px 12px;
		scroll-snap-align: start;
	}

	.profile-side-tab.is-active::after {
		display: none;
	}

	.profile-side-panel {
		margin-top: 14px;
		padding: 15px 14px 16px;
		border-radius: 18px;
	}
}

/* Тёмная тема */
html[data-bs-theme="dark"] .profile-side-tabs {
	background: linear-gradient(180deg, var(--pr-surface-soft), color-mix(in srgb, var(--pr-accent) 8%, var(--pr-surface-soft)));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

html[data-bs-theme="dark"] .profile-side-panel {
	box-shadow: 0 14px 30px rgba(4, 7, 13, .45);
}

/* Активная панель раздела (profile-card profile-side-panel is-side-active) */

.profile-side-panel {
	display: block;
	margin-top: 18px;
	padding: 18px 20px 20px;
	border: 1px solid var(--pr-border);
	border-radius: 20px;
	background: var(--pr-surface);
	box-shadow: 0 12px 28px rgba(33, 39, 52, .06);
	animation: profile-panel-in .24s ease;
}

.profile-side-panel[hidden] {
	display: none;
}

/* Активная вкладка: акцентная рамка, свечение и полоса сверху */
.profile-side-panel.is-side-active {
	position: relative;
	display: block;
	border-color: color-mix(in srgb, var(--pr-accent) 32%, var(--pr-border));
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--pr-accent) 4%, transparent), transparent 140px),
		var(--pr-surface);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--pr-accent) 12%, rgba(33, 39, 52, .08));
	overflow: hidden;
}

.profile-side-panel.is-side-active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pr-accent), color-mix(in srgb, var(--pr-accent) 35%, transparent));
}

/* Внутреннее содержимое панели: аккуратные отступы и типографика */
.profile-side-panel > .profile-card-head + *,
.profile-side-panel > .profile-panel-mini-heading + * {
	margin-top: 0;
}

.profile-side-panel > :last-child {
	margin-bottom: 0;
}

.profile-side-panel p {
	color: var(--pr-text);
	font-size: 14px;
	line-height: 1.6;
}

.profile-side-panel a {
	color: var(--pr-accent);
	text-decoration: none;
}

.profile-side-panel a:hover {
	text-decoration: underline;
}

.profile-side-panel ul,
.profile-side-panel ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel table {
	width: 100%;
	border-collapse: collapse;
	color: var(--pr-text);
	font-size: 13.5px;
}

.profile-side-panel table th,
.profile-side-panel table td {
	padding: 10px 2px;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
	text-align: left;
}

.profile-side-panel img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Сетка плиток внутри раздела (подарки, медали) */
.profile-side-panel .gift-shelf-list,
.profile-side-panel .profile-medals-list,
.profile-side-panel .achievements-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel .gift-shelf-list li,
.profile-side-panel .profile-medals-list li,
.profile-side-panel .achievements-list li {
	border-bottom: 0;
}

@media (max-width: 767.98px) {
	.profile-side-panel {
		margin-top: 14px;
		padding: 15px 14px 16px;
		border-radius: 18px;
	}

	.profile-side-panel .gift-shelf-list,
	.profile-side-panel .profile-medals-list,
	.profile-side-panel .achievements-list {
		grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
		gap: 10px;
	}
}

html[data-bs-theme="dark"] .profile-side-panel {
	box-shadow: 0 14px 30px rgba(4, 7, 13, .45);
}

html[data-bs-theme="dark"] .profile-side-panel.is-side-active {
	box-shadow: 0 16px 36px rgba(4, 7, 13, .6);
}

/* Чистый список в панели раздела: без маркеров и пустых строк */
.profile-side-panel ul,
.profile-side-panel ol,
.profile-details-inline ul,
.profile-details-inline ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel li,
.profile-details-inline li {
	list-style: none;
}

.profile-side-panel li::marker,
.profile-details-inline li::marker,
.profile-side-panel ul::marker,
.profile-details-inline ul::marker {
	content: none;
}

.profile-side-panel li:empty,
.profile-details-inline li:empty {
	display: none;
}

/* Пары «подпись — значение»: подпись слева, значение справа одной строкой */
.profile-side-panel .profile-details-row,
.profile-details-inline .profile-details-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.profile-side-panel .profile-details-row > span:first-child,
.profile-details-inline .profile-details-row > span:first-child {
	color: var(--pr-muted);
	font-size: 13px;
}

.profile-side-panel .profile-details-row > span:last-child,
.profile-details-inline .profile-details-row > span:last-child {
	color: var(--pr-text);
	font-size: 13.5px;
	font-weight: 700;
}

/* Значки-иконки в строках не растягиваются */
.profile-side-panel li > i:first-child,
.profile-details-inline li > i:first-child {
	flex: 0 0 auto;
	margin-right: 8px;
}

/* Вкладка «Подробнее»: содержимое окна без стилей модального окна (высокая специфичность) */

.profile-side-panel .profile-details-inline,
.profile-side-panel .profile-details-inline * {
	box-sizing: border-box;
}

.profile-side-panel .profile-details-inline ul,
.profile-side-panel .profile-details-inline ol,
.profile-side-panel .profile-details-inline .list-unstyled {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel .profile-details-inline ul li,
.profile-side-panel .profile-details-inline ol li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 11px 2px;
	border: 0;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
	background: none;
	color: var(--pr-text);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
	text-align: left;
}

.profile-side-panel .profile-details-inline ul li:last-child,
.profile-side-panel .profile-details-inline ol li:last-child {
	border-bottom: 0;
}

.profile-side-panel .profile-details-inline li::marker,
.profile-side-panel .profile-details-inline li::before {
	content: none;
	display: none;
}

/* Иконка строки — акцентная плитка */
.profile-side-panel .profile-details-inline li > i,
.profile-side-panel .profile-details-inline li > .bi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-right: 10px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
	color: var(--pr-accent);
	font-size: 15px;
	order: -1;
}

/* Подпись и значение: слева приглушённая подпись, справа значение */
.profile-side-panel .profile-details-inline li > span,
.profile-side-panel .profile-details-inline li > small,
.profile-side-panel .profile-details-inline li > p {
	flex: 1 1 auto;
	margin: 0;
	color: var(--pr-muted);
	font-size: 13px;
	font-weight: 500;
}

.profile-side-panel .profile-details-inline li > strong,
.profile-side-panel .profile-details-inline li > b,
.profile-side-panel .profile-details-inline li > a {
	color: var(--pr-text);
	font-size: 13.5px;
	font-weight: 700;
	text-align: right;
	text-decoration: none;
}

.profile-side-panel .profile-details-inline li > a {
	color: var(--pr-accent);
}

.profile-side-panel .profile-details-inline a:hover {
	text-decoration: underline;
}

/* Строка со ссылкой/одним значением — без лишней пустоты */
.profile-side-panel .profile-details-inline li:empty {
	display: none;
}

/* Дополнительные блоки внутри «Подробнее» */
.profile-side-panel .profile-details-inline h4,
.profile-side-panel .profile-details-inline h5 {
	margin: 16px 0 8px;
	color: var(--pr-text);
	font-size: 15px;
	font-weight: 800;
}

.profile-side-panel .profile-details-inline p {
	margin: 0 0 10px;
	color: var(--pr-text);
	font-size: 14px;
	line-height: 1.6;
}

.profile-side-panel .profile-details-inline .badge {
	padding: 4px 9px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
	color: var(--pr-accent);
	font-size: 11px;
	font-weight: 700;
}

@media (max-width: 767.98px) {
	.profile-side-panel .profile-details-inline ul li,
	.profile-side-panel .profile-details-inline ol li {
		gap: 10px;
		padding: 10px 0;
	}

	.profile-side-panel .profile-details-inline li > i,
	.profile-side-panel .profile-details-inline li > .bi {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
		font-size: 14px;
	}
}

/* «Подробнее»: разметка Detail-Profile / Detail-Icon / Detail-Icon-Text */

.profile-side-panel .Detail-Profile {
	color: var(--pr-text);
	font-size: 14px;
}

.profile-side-panel .Detail-Profile ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side-panel .Detail-Profile ul > li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 11px 2px;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
	list-style: none;
}

.profile-side-panel .Detail-Profile ul > li:last-child {
	border-bottom: 0;
}

.profile-side-panel .Detail-Profile li::marker,
.profile-side-panel .Detail-Profile ul::marker {
	content: none;
}

/* Левая часть строки: иконка в акцентной плитке + подпись */
.profile-side-panel .Detail-Profile .Detail-Icon {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--pr-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.profile-side-panel .Detail-Profile .Detail-Icon i,
.profile-side-panel .Detail-Profile .Detail-Icon .bi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
	color: var(--pr-accent);
	font-size: 15px;
}

/* Правая часть строки: значение */
.profile-side-panel .Detail-Profile .Detail-Icon-Text {
	flex: 0 1 auto;
	max-width: 58%;
	color: var(--pr-text);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
	overflow-wrap: anywhere;
}

.profile-side-panel .Detail-Profile .Detail-Icon-Text a {
	color: var(--pr-accent);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--pr-accent) 35%, transparent);
}

.profile-side-panel .Detail-Profile .Detail-Icon-Text a:hover {
	border-bottom-color: var(--pr-accent);
}

/* Строка-разделитель внутри списка */
.profile-side-panel .Detail-Profile .detail-profile-divider {
	display: block;
	padding: 0;
	border: 0;
}

.profile-side-panel .Detail-Profile .detail-profile-divider hr {
	height: 1px;
	margin: 4px 0;
	border: 0;
	border-radius: 1px;
	background: color-mix(in srgb, var(--pr-border) 90%, transparent);
}

/* Заголовок и подзаголовок, пришедшие из окна */
.profile-side-panel .Detail-Profile .profile-details-heading,
.profile-side-panel .Detail-Profile h1,
.profile-side-panel .Detail-Profile .modal-title {
	display: none;
}

/* Пустые значения не оставляют строку */
.profile-side-panel .Detail-Profile ul > li:not(:has(.Detail-Icon-Text)) {
	display: none;
}

@media (max-width: 767.98px) {
	.profile-side-panel .Detail-Profile ul > li {
		gap: 10px;
		padding: 10px 0;
	}

	.profile-side-panel .Detail-Profile .Detail-Icon {
		font-size: 12.5px;
	}

	.profile-side-panel .Detail-Profile .Detail-Icon i,
	.profile-side-panel .Detail-Profile .Detail-Icon .bi {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.profile-side-panel .Detail-Profile .Detail-Icon-Text {
		max-width: 52%;
		font-size: 13px;
	}
}

/* ================================================================== */
/* Панель раздела и «Подробнее»: стили по фактической разметке         */
/* ================================================================== */

/* Карточка раздела (profile-card profile-side-panel) */
.profile-side .profile-side-panel {
	position: relative;
	display: block;
	margin-top: 18px;
	padding: 18px 20px 20px;
	border: 1px solid var(--pr-border);
	border-radius: 20px;
	background: var(--pr-surface);
	box-shadow: 0 12px 28px rgba(33, 39, 52, .06);
	animation: profile-panel-in .24s ease;
}

.profile-side .profile-side-panel[hidden] {
	display: none;
}

.profile-side .profile-side-panel.is-side-active {
	border-color: color-mix(in srgb, var(--pr-accent) 32%, var(--pr-border));
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--pr-accent) 4%, transparent), transparent 140px),
		var(--pr-surface);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--pr-accent) 12%, rgba(33, 39, 52, .08));
	overflow: hidden;
}

.profile-side .profile-side-panel.is-side-active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pr-accent), color-mix(in srgb, var(--pr-accent) 30%, transparent));
}

/* Шапка раздела: kicker + заголовок */
.profile-side .profile-side-panel > .profile-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0 0 12px 14px;
	border-bottom: 1px solid var(--pr-border);
	border-left: 3px solid var(--pr-accent);
}

.profile-side .profile-side-panel > .profile-card-head .profile-card-kicker {
	display: block;
	color: var(--pr-accent);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.profile-side .profile-side-panel > .profile-card-head h2 {
	margin: 3px 0 0;
	color: var(--pr-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

/* Содержимое «Подробнее» */
.profile-side .profile-side-panel .profile-details-inline {
	color: var(--pr-text);
	font-size: 14px;
}

.profile-side .profile-side-panel .profile-details-inline ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-side .profile-side-panel .profile-details-inline li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 11px 2px;
	border-bottom: 1px dashed color-mix(in srgb, var(--pr-border) 85%, transparent);
	list-style: none;
}

.profile-side .profile-side-panel .profile-details-inline li:last-child {
	border-bottom: 0;
}

.profile-side .profile-side-panel .profile-details-inline li::marker,
.profile-side .profile-side-panel .profile-details-inline ul::marker {
	content: none;
}

.profile-side .profile-side-panel .profile-details-inline .Detail-Icon {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--pr-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.profile-side .profile-side-panel .profile-details-inline .Detail-Icon i,
.profile-side .profile-side-panel .profile-details-inline .Detail-Icon .bi {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--pr-accent) 12%, transparent);
	color: var(--pr-accent);
	font-size: 15px;
}

.profile-side .profile-side-panel .profile-details-inline .Detail-Icon-Text {
	flex: 0 1 auto;
	max-width: 58%;
	color: var(--pr-text);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
	overflow-wrap: anywhere;
}

.profile-side .profile-side-panel .profile-details-inline .Detail-Icon-Text a {
	color: var(--pr-accent);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--pr-accent) 35%, transparent);
}

.profile-side .profile-side-panel .profile-details-inline .Detail-Icon-Text a:hover {
	border-bottom-color: var(--pr-accent);
}

/* Строка-разделитель */
.profile-side .profile-side-panel .profile-details-inline .detail-profile-divider {
	display: block;
	padding: 0;
	border: 0;
}

.profile-side .profile-side-panel .profile-details-inline .detail-profile-divider hr {
	height: 1px;
	margin: 4px 0;
	border: 0;
	background: color-mix(in srgb, var(--pr-border) 90%, transparent);
}

@media (max-width: 767.98px) {
	.profile-side .profile-side-panel {
		margin-top: 14px;
		padding: 15px 14px 16px;
		border-radius: 18px;
	}

	.profile-side .profile-side-panel .profile-details-inline li {
		gap: 10px;
		padding: 10px 0;
	}

	.profile-side .profile-side-panel .profile-details-inline .Detail-Icon {
		font-size: 12.5px;
	}

	.profile-side .profile-side-panel .profile-details-inline .Detail-Icon i,
	.profile-side .profile-side-panel .profile-details-inline .Detail-Icon .bi {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.profile-side .profile-side-panel .profile-details-inline .Detail-Icon-Text {
		max-width: 52%;
		font-size: 13px;
	}
}

html[data-bs-theme="dark"] .profile-side .profile-side-panel {
	box-shadow: 0 14px 30px rgba(4, 7, 13, .45);
}

html[data-bs-theme="dark"] .profile-side .profile-side-panel.is-side-active {
	box-shadow: 0 16px 36px rgba(4, 7, 13, .6);
}
