/* Дневник ремонта — стили поверх темы WPCommunity (раньше — правки style.css, style.min.css, editor.min.css темы). */

/* Картинки в тексте поста: на ширину контента, маленькие — в своём размере. */
.entry-content img.wpsc-content-img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wp-editor-area .wpsc-content-img,
.wp-editor-wrap .wpsc-content-img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Кнопки над редактором публикации. */
.publish-form__editor-tools {
	margin-bottom: 8px;
}

.publish-form__add-media {
	margin-right: 8px;
}

/* Профиль, вкладка «Записи»: свои записи карточками (шаблон — дочерняя тема, profile/tab-posts.php). */
.dr-my-posts {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
}

.dr-my-post {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--wpsc-border-color);
}

.dr-my-post:last-child {
	border-bottom: 0;
}

.dr-my-post__thumb {
	flex: 0 0 112px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wpsc-light-bg);
}

.dr-my-post__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dr-my-post__body {
	flex: 1;
	min-width: 0;
}

.dr-my-post__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--wpsc-text-color);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.dr-my-post__title:hover {
	color: var(--wpsc-link-hover-color);
}

.dr-my-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 14px;
	color: var(--wpsc-text-light-color);
}

.dr-my-post__badge {
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--wpsc-light-bg);
	font-size: 13px;
}

.dr-my-post__badge[hidden] {
	display: none;
}

.dr-my-post__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 8px;
	font-size: 14px;
}

.dr-my-post__actions a,
.dr-my-post__action {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--wpsc-text-light-color);
	text-decoration: none;
	cursor: pointer;
}

.dr-my-post__actions a:hover,
.dr-my-post__action:hover {
	color: var(--wpsc-primary-color);
}

.dr-my-post__action[hidden] {
	display: none;
}

.dr-my-post__action--danger:hover {
	color: var(--wpsc-text-red-color);
}

.dr-my-post__action:disabled {
	opacity: .5;
	cursor: wait;
}

.dr-my-post.is-hidden .dr-my-post__thumb,
.dr-my-post.is-hidden .dr-my-post__title {
	opacity: .55;
}

@media (max-width: 480px) {
	.dr-my-post__thumb {
		flex-basis: 80px;
		height: 60px;
	}

	.dr-my-post__title {
		font-size: 16px;
	}
}

/* Кнопка «Показать пароль» у полей пароля (assets/js/password-toggle.js). */
.dr-password-field {
	position: relative;
	display: block;
}

.dr-password-field input {
	width: 100%;
	padding-right: 44px;
	box-sizing: border-box;
}

.dr-password-field__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	border: 0;
	background: none;
	color: var(--wpsc-text-light-color);
	cursor: pointer;
}

.dr-password-field__toggle:hover {
	color: var(--wpsc-text-color);
}

.dr-password-field input:disabled + .dr-password-field__toggle {
	opacity: .4;
	pointer-events: none;
}

/* ---------- Аккаунт: шапка и правая колонка (includes/dr-account.php) ---------- */
.dr-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s, transform .15s;
}

.dr-pill:active {
	transform: translateY(1px);
}

.dr-pill--primary {
	background: var(--wpsc-primary-color);
	color: #fff;
}

.dr-pill--primary:hover {
	background: #1f63ec;
	color: #fff;
}

.dr-pill--light {
	background: var(--wpsc-white-bg);
	color: var(--wpsc-text-color);
	box-shadow: 0 0 0 1px var(--wpsc-border-color), 0 2px 6px rgba(20, 40, 80, .08);
}

.dr-pill--light:hover {
	color: var(--wpsc-text-color);
	box-shadow: 0 0 0 1px var(--wpsc-border-color), 0 4px 12px rgba(20, 40, 80, .14);
}

.dr-pill--muted {
	background: var(--wpsc-light-bg);
	color: var(--wpsc-text-color);
}

.dr-pill--muted:hover {
	background: var(--wpsc-border-color);
}

.dr-pill--block {
	display: flex;
	width: 100%;
}

.dr-pill:disabled {
	opacity: .6;
	cursor: wait;
}

.dr-header-actions {
	/* Тема расставляет элементы шапки через order (логотип 10, меню и «гамбургер» 20): кнопки — между ними. */
	order: 15;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.dr-header-icon-btn,
.dr-header-user__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--wpsc-text-color);
	cursor: pointer;
}

.dr-header-icon-btn:hover,
.dr-header-search.is-open .dr-header-icon-btn {
	background: var(--wpsc-light-bg);
}

.dr-header-search,
.dr-header-user {
	position: relative;
}

.dr-header-search__panel,
.dr-header-user__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1000;
	padding: 12px;
	border-radius: 16px;
	background: var(--wpsc-white-bg);
	box-shadow: 0 0 0 1px var(--wpsc-border-color), 0 12px 32px rgba(20, 40, 80, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}

.dr-header-search.is-open .dr-header-search__panel,
.dr-header-user.is-open .dr-header-user__menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dr-header-search__panel {
	width: min(360px, calc(100vw - 32px));
}

.dr-search-form {
	display: flex;
	gap: 8px;
	margin: 0;
}

.dr-search-form input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--wpsc-border-color);
	border-radius: 999px;
	background: var(--wpsc-input-bg, var(--wpsc-white-bg));
	color: var(--wpsc-text-color);
	font: inherit;
	font-size: 16px;
	outline: none;
}

.dr-search-form input:focus {
	border-color: var(--wpsc-primary-color);
}

.dr-search-form button {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wpsc-primary-color);
	color: #fff;
	cursor: pointer;
}

.dr-header-user__avatar,
.dr-header-user__toggle img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--wpsc-white-bg), 0 0 0 3px var(--wpsc-border-color);
}

.dr-header-user__menu {
	width: 260px;
	padding: 8px;
}

.dr-header-user__head {
	display: block;
	padding: 10px 12px 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--wpsc-border-color);
	color: var(--wpsc-text-color);
	text-decoration: none;
}

.dr-header-user__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
}

.dr-header-user__nick,
.dr-account__nick {
	display: block;
	font-size: 14px;
	color: var(--wpsc-text-light-color);
}

.dr-account-menu {
	display: flex;
	flex-direction: column;
}

.dr-account-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--wpsc-text-color);
	font-size: 15px;
	text-decoration: none;
}

.dr-account-menu a:hover {
	background: var(--wpsc-light-bg);
	color: var(--wpsc-text-color);
}

.dr-account-menu .dr-icon {
	flex-shrink: 0;
	color: var(--wpsc-text-light-color);
}

.dr-account-menu a:hover .dr-icon {
	color: var(--wpsc-primary-color);
}

.dr-account-menu__logout {
	margin-top: 4px;
	border-top: 1px solid var(--wpsc-border-color);
	border-radius: 0 0 10px 10px !important;
}

/* Виджет в правой колонке */
.dr-account__title {
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.dr-account-login {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dr-account-login .input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	font-size: 16px;
	box-sizing: border-box;
}

.dr-account-login .dr-password-field input {
	padding-right: 44px;
}

.dr-account-login .dr-pill {
	height: 44px;
}

.dr-account-login .dr-pill--primary {
	margin-top: 4px;
}

.dr-account-login__error {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(220, 53, 69, .08);
	color: var(--wpsc-text-red-color, #c62828);
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-line;
}

.dr-account-login__error[hidden] {
	display: none;
}

.dr-account-login__forgot {
	margin-top: 4px;
	color: var(--wpsc-primary-color);
	font-size: 15px;
	text-align: center;
	text-decoration: none;
}

.dr-account-login__forgot:hover {
	text-decoration: underline;
}

.dr-account__head {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--wpsc-text-color);
	text-decoration: none;
}

.dr-account__avatar,
.dr-account__head img {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.dr-account__who {
	min-width: 0;
}

.dr-account__name {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.dr-account__stats {
	display: flex;
	gap: 24px;
	margin: 16px 0;
	padding: 12px 0;
	border-top: 1px solid var(--wpsc-border-color);
	border-bottom: 1px solid var(--wpsc-border-color);
	font-size: 15px;
	color: var(--wpsc-text-light-color);
}

.dr-account__stats b {
	margin-right: 4px;
	font-size: 18px;
	color: var(--wpsc-text-color);
}

.dr-account--user > .dr-pill {
	margin-bottom: 12px;
}

.dr-account--user .dr-account-menu {
	margin: 0 -12px;
}

/* На компьютере текстовое верхнее меню заменяют кнопки; на телефоне оно остаётся в «гамбургере». */
@media (min-width: 1024px) {
	.site-header-inner > .main-navigation,
	.site-header-inner > .main-navigation--hamburger {
		display: none !important;
	}
}

@media (max-width: 480px) {
	.site-branding__title {
		font-size: 17px;
		white-space: nowrap;
	}

	.site-branding__logo {
		max-width: 40px;
		height: auto;
	}

	/* На узком экране «Написать» не помещается; «Добавить пост» есть в меню «гамбургера». */
	.dr-header-actions .dr-pill--light {
		display: none;
	}

	.dr-header-actions {
		margin-right: 8px;
	}
}

@media (max-width: 1023px) {
	.dr-header-actions {
		gap: 6px;
		margin-right: 12px;
	}

	.dr-header-actions .dr-pill {
		height: 36px;
		padding: 0 14px;
		font-size: 14px;
	}

	.dr-header-actions .dr-pill--light {
		width: 36px;
		padding: 0;
	}

	.dr-header-actions .dr-pill--light .dr-pill__text {
		display: none;
	}
}

/*
 * Колонки на средних экранах. Тема показывает правую колонку с 768 px, левую — с 1024 px, а строка над постом
 * (автор, дата, рубрика, голосование) не сжимается уже 480 px: на 768–871 и 1024–1165 px три колонки не помещаются
 * и появляется горизонтальная прокрутка. До 1200 px правую колонку прячем (вход и меню аккаунта есть в шапке),
 * а где нет и левой — ленту ставим по центру. Колонка с содержимым сжимается (min-width: 0), чтобы длинные
 * строки без переноса — вкладки профиля — листались внутри неё, а не раздвигали страницу.
 */
.site-content .content-area {
	min-width: 0;
}

@media (max-width: 1199px) {
	.widget-area--two {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.site-content .content-area {
		flex: 0 1 720px;
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Подвал: слева копирайт (блок темы), справа разработчик (compat-theme.php). */
.site-footer {
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	max-width: var(--wpsc-site-max-width);
	margin: 0 auto;
	box-sizing: border-box;
	color: var(--wpsc-text-light-color);
}

.site-footer__developer {
	/* Блоки подвала тема расставляет через order — разработчик всегда последний (справа, на телефоне снизу). */
	order: 99;
}

.site-footer__developer a {
	white-space: nowrap;
	color: var(--wpsc-text-color);
	text-decoration: underline;
	text-decoration-color: var(--wpsc-border-color);
	text-underline-offset: 3px;
}

.site-footer__developer a:hover {
	color: var(--wpsc-primary-color);
	text-decoration-color: currentColor;
}

@media (min-width: 1024px) {
	.site-footer {
		padding: 24px 50px;
	}
}

@media (max-width: 767px) {
	.site-footer {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		text-align: center;
	}
}

/* География работы: выбор из справочника (includes/dr-geo.php, assets/js/geo-picker.js). */
.dr-geo {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dr-geo__label {
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--wpsc-text-light-color);
}

.dr-geo__picker {
	position: relative;
}

.dr-geo__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dr-geo__chips:not(:empty) {
	margin-bottom: 8px;
}

.dr-geo__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 6px 6px 12px;
	border-radius: 999px;
	background: var(--wpsc-light-bg);
	font-size: 15px;
	line-height: 1.2;
}

.dr-geo__chip--main {
	background: var(--wpsc-primary-color);
	color: #fff;
}

.dr-geo__chip-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	opacity: .6;
	cursor: pointer;
}

.dr-geo__chip-remove:hover {
	background: rgba(0, 0, 0, .08);
	opacity: 1;
}

.dr-geo__input {
	width: 100%;
	box-sizing: border-box;
}

.dr-geo__input[hidden] {
	display: none;
}

.dr-geo__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	margin-top: 6px;
	padding: 6px;
	max-height: 320px;
	overflow-y: auto;
	border-radius: 12px;
	background: var(--wpsc-white-bg);
	box-shadow: 0 0 0 1px var(--wpsc-border-color), 0 12px 28px rgba(20, 40, 80, .14);
}

.dr-geo__list[hidden] {
	display: none;
}

.dr-geo__option {
	display: flex;
	flex-direction: column;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
}

.dr-geo__option:hover,
.dr-geo__option.is-active {
	background: var(--wpsc-light-bg);
}

.dr-geo__option-name {
	font-size: 15px;
	color: var(--wpsc-text-color);
}

.dr-geo__option-note {
	font-size: 13px;
	color: var(--wpsc-text-light-color);
}

.dr-geo__empty {
	padding: 10px;
	font-size: 14px;
	color: var(--wpsc-text-light-color);
}

/* ---------- Портфолио (includes/dr-portfolio.php) ---------- */

/* Кабинет */
.dr-pf__intro {
	margin: 0 0 16px;
	color: var(--wpsc-text-light-color);
	line-height: 1.6;
}

.dr-pf-list {
	margin-top: 20px;
}

.dr-pf-empty {
	padding: 28px 20px;
	border: 1px dashed var(--wpsc-border-color);
	border-radius: 14px;
	color: var(--wpsc-text-light-color);
	text-align: center;
}

.dr-pf-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.dr-pf-card {
	overflow: hidden;
	border-radius: 14px;
	background: var(--wpsc-white-bg);
	box-shadow: 0 0 0 1px var(--wpsc-border-color);
}

.dr-pf-card.is-muted .dr-pf-card__cover {
	opacity: .55;
}

.dr-pf-card.sortable-ghost {
	opacity: .4;
}

.dr-pf-card__cover {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--wpsc-light-bg) center / cover no-repeat;
	cursor: grab;
}

.dr-pf-card__count,
.dr-pf-card__status,
.dr-pf-tile__count {
	position: absolute;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(15, 20, 35, .65);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
}

.dr-pf-card__count,
.dr-pf-tile__count {
	right: 8px;
	bottom: 8px;
}

.dr-pf-card__status {
	top: 8px;
	left: 8px;
	background: rgba(255, 255, 255, .92);
	color: #333;
}

.dr-pf-card__body {
	padding: 12px 14px 14px;
}

.dr-pf-card__title {
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.dr-pf-card__meta {
	margin-top: 2px;
	font-size: 13px;
	color: var(--wpsc-text-light-color);
}

.dr-pf-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 10px;
}

.dr-pf-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100003;
	padding: 10px 18px;
	border-radius: 999px;
	background: #1f2433;
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translate(-50%, 10px);
	transition: opacity .2s, transform .2s;
	pointer-events: none;
}

.dr-pf-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Форма работы */
.dr-pf-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 30, 60, .45);
}

.dr-pf-modal.open {
	display: flex;
}

.dr-pf-modal__box {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	margin: 0;
	border-radius: 18px;
	background: var(--wpsc-white-bg);
	box-shadow: 0 20px 60px rgba(20, 40, 90, .35);
}

.dr-pf-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wpsc-border-color);
	font-size: 18px;
	font-weight: 700;
}

.dr-pf-modal__close {
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--wpsc-text-light-color);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dr-pf-modal__body {
	display: grid;
	gap: 18px;
	padding: 18px 20px;
	overflow-y: auto;
}

.dr-pf-modal__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid var(--wpsc-border-color);
}

.dr-pf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.dr-pf-field__label {
	font-size: 15px;
	font-weight: 600;
}

.dr-pf-field__hint {
	font-size: 13px;
	color: var(--wpsc-text-light-color);
}

.dr-pf-field .input,
.dr-pf-field .select {
	width: 100%;
	box-sizing: border-box;
}

.dr-pf-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.dr-pf-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
}

.dr-pf-photos:empty {
	display: none;
}

.dr-pf-photo {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	background: var(--wpsc-light-bg) center / cover no-repeat;
	cursor: grab;
	box-shadow: 0 0 0 1px var(--wpsc-border-color);
}

.dr-pf-photo.is-cover {
	box-shadow: 0 0 0 3px var(--wpsc-primary-color);
}

.dr-pf-photo.is-uploading::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	animation: dr-pf-pulse 1s ease-in-out infinite alternate;
}

@keyframes dr-pf-pulse {
	from { opacity: .3; }
	to { opacity: .9; }
}

.dr-pf-photo.sortable-ghost {
	opacity: .35;
}

.dr-pf-photo__cover,
.dr-pf-photo__remove {
	position: absolute;
	top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 20, 35, .6);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.dr-pf-photo__cover {
	left: 6px;
	color: rgba(255, 255, 255, .7);
}

.dr-pf-photo.is-cover .dr-pf-photo__cover {
	background: var(--wpsc-primary-color);
	color: #ffd54a;
}

.dr-pf-photo__remove {
	right: 6px;
	font-size: 18px;
}

.dr-pf-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	padding: 14px;
	border: 2px dashed var(--wpsc-border-color);
	border-radius: 12px;
	color: var(--wpsc-text-light-color);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

.dr-pf-drop b {
	color: var(--wpsc-primary-color);
}

.dr-pf-drop:hover,
.dr-pf-drop.is-over {
	border-color: var(--wpsc-primary-color);
	background: var(--wpsc-light-bg);
}

.dr-pf-drop[hidden] {
	display: none;
}

.dr-pf-error {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(220, 53, 69, .08);
	color: var(--wpsc-text-red-color, #c62828);
	font-size: 14px;
}

.dr-pf-error[hidden] {
	display: none;
}

/* Публичная сетка */
.profile-section-title {
	margin: 28px 0 14px;
	font-size: 20px;
}

.dr-pf-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.dr-pf-filter__chip {
	padding: 7px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--wpsc-light-bg);
	color: var(--wpsc-text-color);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.dr-pf-filter__chip.is-active {
	background: var(--wpsc-primary-color);
	color: #fff;
}

.dr-pf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.dr-pf-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--wpsc-text-color);
	text-decoration: none;
}

.dr-pf-tile[hidden] {
	display: none;
}

.dr-pf-tile__cover {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin-bottom: 6px;
	border-radius: 12px;
	background: var(--wpsc-light-bg);
}

.dr-pf-tile__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.dr-pf-tile:hover .dr-pf-tile__cover img {
	transform: scale(1.04);
}

.dr-pf-tile__title {
	font-weight: 700;
	line-height: 1.35;
}

.dr-pf-tile:hover .dr-pf-tile__title {
	color: var(--wpsc-primary-color);
}

.dr-pf-tile__meta {
	font-size: 13px;
	color: var(--wpsc-text-light-color);
}

.dr-pf-public__more {
	margin-top: 18px;
}

/* Страница работы */
.dr-pf-single {
	padding: 28px 32px 32px;
	border-radius: var(--wpsc-box-border-radius);
	background: var(--wpsc-white-bg);
}

.dr-pf-single__title {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.25;
}

.dr-pf-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-bottom: 18px;
	font-size: 15px;
	color: var(--wpsc-text-light-color);
}

.dr-pf-single__meta a {
	color: inherit;
	text-decoration: none;
}

.dr-pf-single__meta a:hover {
	color: var(--wpsc-primary-color);
}

.dr-pf-single__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wpsc-text-color) !important;
	font-weight: 600;
}

.dr-pf-single__author img {
	border-radius: 50%;
}

.dr-pf-single__badge {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--wpsc-light-bg);
	font-size: 13px;
}

.dr-pf-gallery__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	background: #10131a;
}

.dr-pf-gallery__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
}

.dr-pf-gallery__nav,
.dr-pf-gallery__zoom,
.dr-pf-lightbox__nav,
.dr-pf-lightbox__close {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #1f2433;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.dr-pf-gallery__nav--prev,
.dr-pf-lightbox__nav--prev {
	left: 12px;
}

.dr-pf-gallery__nav--next,
.dr-pf-lightbox__nav--next {
	right: 12px;
}

.dr-pf-gallery__zoom {
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	font-size: 18px;
}

.dr-pf-gallery__counter,
.dr-pf-lightbox__counter {
	position: absolute;
	bottom: 12px;
	left: 50%;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(15, 20, 35, .65);
	color: #fff;
	font-size: 13px;
	transform: translateX(-50%);
}

.dr-pf-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	padding: 3px 3px 5px;
	overflow-x: auto;
}

.dr-pf-gallery__thumb {
	flex: 0 0 76px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--wpsc-light-bg) center / cover no-repeat;
	opacity: .6;
	cursor: pointer;
}

.dr-pf-gallery__thumb.is-active {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--wpsc-primary-color);
}

.dr-pf-single__desc {
	margin-top: 22px;
	font-size: 18px;
	line-height: 1.6;
}

.dr-pf-single__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 22px 0 0;
}

.dr-pf-single__facts div {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--wpsc-light-bg);
}

.dr-pf-single__facts dt {
	font-size: 13px;
	color: var(--wpsc-text-light-color);
}

.dr-pf-single__facts dd {
	margin: 2px 0 0;
	font-weight: 700;
}

.dr-pf-single__post {
	display: inline-block;
	margin-top: 22px;
	color: var(--wpsc-primary-color);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dr-pf-single__footer {
	margin-top: 26px;
}

.dr-pf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100005;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0b0d12;
}

.dr-pf-lightbox img {
	max-width: 100vw;
	max-height: 100vh;
	object-fit: contain;
}

.dr-pf-lightbox__close {
	top: 16px;
	right: 16px;
}

@media (max-width: 767px) {
	.dr-pf-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.dr-pf-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.dr-pf-modal {
		padding: 0;
	}

	.dr-pf-modal__box {
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.dr-pf-single {
		padding: 18px 16px 22px;
	}

	.dr-pf-single__title {
		font-size: 22px;
	}

	.dr-pf-gallery__nav {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}
}

/* ---------- Личные сообщения (includes/dr-messages.php) ---------- */

/* Счётчик в меню и точка на аватаре */
.dr-account-menu__count {
	margin-left: auto;
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--wpsc-primary-color);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.dr-account-menu__count[hidden] {
	display: none;
}

.dr-header-user__toggle {
	position: relative;
}

.dr-header-user__toggle.has-unread::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 2px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--wpsc-white-bg);
	border-radius: 50%;
	background: #ff4d4f;
}

/* Страница */
.dr-msg {
	display: grid;
	grid-template-columns: 320px 1fr;
	height: calc(100vh - 140px);
	min-height: 480px;
	overflow: hidden;
	border-radius: var(--wpsc-box-border-radius);
	background: var(--wpsc-white-bg);
}

.dr-msg__side {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-right: 1px solid var(--wpsc-border-color);
}

.dr-msg__side-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 12px 20px;
	border-bottom: 1px solid var(--wpsc-border-color);
}

.dr-msg__title {
	margin: 0;
	font-size: 22px;
}

.dr-msg__dialogs {
	flex: 1;
	overflow-y: auto;
	padding: 6px;
}

.dr-msg__placeholder {
	padding: 24px 16px;
	color: var(--wpsc-text-light-color);
	text-align: center;
}

.dr-msg__dialog {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 12px;
	background: none;
	color: var(--wpsc-text-color);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dr-msg__dialog:hover {
	background: var(--wpsc-light-bg);
}

.dr-msg__dialog.is-active {
	background: rgba(50, 118, 255, .1);
}

.dr-msg__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.dr-msg__dialog-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.dr-msg__dialog-top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.dr-msg__dialog-name {
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dr-msg__dialog-time {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--wpsc-text-light-color);
}

.dr-msg__dialog-last {
	overflow: hidden;
	font-size: 14px;
	color: var(--wpsc-text-light-color);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dr-msg__dialog.is-unread .dr-msg__dialog-last {
	color: var(--wpsc-text-color);
	font-weight: 600;
}

.dr-msg__badge {
	flex-shrink: 0;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--wpsc-primary-color);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.dr-msg__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.dr-msg__empty {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 32px;
	color: var(--wpsc-text-light-color);
	text-align: center;
}

.dr-msg__empty[hidden],
.dr-msg__thread[hidden] {
	display: none;
}

.dr-msg__thread {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.dr-msg__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 10px 16px;
	border-bottom: 1px solid var(--wpsc-border-color);
}

.dr-msg__back {
	display: none;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--wpsc-text-color);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.dr-msg__peer {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--wpsc-text-color);
	text-decoration: none;
}

.dr-msg__peer .dr-msg__avatar {
	width: 38px;
	height: 38px;
}

.dr-msg__peer span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dr-msg__peer small {
	color: var(--wpsc-text-light-color);
}

.dr-msg__more {
	position: relative;
}

.dr-msg__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	min-width: 220px;
	padding: 6px;
	border-radius: 12px;
	background: var(--wpsc-white-bg);
	box-shadow: 0 0 0 1px var(--wpsc-border-color), 0 12px 28px rgba(20, 40, 80, .16);
}

.dr-msg__menu[hidden] {
	display: none;
}

.dr-msg__menu button {
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--wpsc-text-color);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dr-msg__menu button:hover {
	background: var(--wpsc-light-bg);
}

.dr-msg__list {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	background: var(--wpsc-light-bg);
}

.dr-msg__day {
	margin: 12px 0;
	font-size: 13px;
	color: var(--wpsc-text-light-color);
	text-align: center;
}

.dr-msg__message {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	margin: 4px 0;
}

.dr-msg__message.is-mine {
	flex-direction: row-reverse;
}

.dr-msg__bubble {
	max-width: min(560px, 78%);
	padding: 8px 12px 6px;
	border-radius: 16px 16px 16px 4px;
	background: var(--wpsc-white-bg);
	font-size: 16px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	box-shadow: 0 1px 2px rgba(20, 40, 80, .08);
}

.dr-msg__message.is-mine .dr-msg__bubble {
	border-radius: 16px 16px 4px 16px;
	background: var(--wpsc-primary-color);
	color: #fff;
}

.dr-msg__bubble a {
	color: inherit;
	text-decoration: underline;
}

.dr-msg__meta {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	opacity: .7;
	text-align: right;
}

.dr-msg__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 3px;
}

.dr-msg__ticks {
	display: inline-flex;
	opacity: .75;
}

/* Прочитано — две яркие галочки (на синем пузыре — голубые, как в Telegram). */
.dr-msg__ticks.is-read {
	opacity: 1;
	color: #b8e3ff;
}

.dr-msg__report {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wpsc-text-light-color);
	font-size: 12px;
	font-weight: 700;
	opacity: 0;
	cursor: pointer;
}

.dr-msg__message:hover .dr-msg__report {
	opacity: .7;
}

.dr-msg__notice {
	padding: 12px 16px;
	border-top: 1px solid var(--wpsc-border-color);
	color: var(--wpsc-text-light-color);
	text-align: center;
}

.dr-msg__notice[hidden],
.dr-msg__form[hidden] {
	display: none;
}

.dr-msg__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--wpsc-border-color);
}

.dr-msg__input {
	flex: 1;
	max-height: 160px;
	padding: 10px 14px;
	border: 1px solid var(--wpsc-border-color);
	border-radius: 20px;
	background: var(--wpsc-input-bg, var(--wpsc-white-bg));
	color: var(--wpsc-text-color);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	resize: none;
	outline: none;
}

.dr-msg__input:focus {
	border-color: var(--wpsc-primary-color);
}

.dr-msg__send {
	width: 44px;
	height: 44px;
	padding: 0;
	font-size: 18px;
}

.dr-msg__settings {
	max-width: 480px;
}

.dr-msg__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.5;
	cursor: pointer;
}

.dr-msg__check input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.dr-msg__blocked {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.dr-msg__blocked-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dr-msg__blocked-row .dr-msg__avatar {
	width: 32px;
	height: 32px;
}

.dr-msg__blocked-row button {
	margin-left: auto;
}

@media (max-width: 767px) {
	.dr-msg {
		grid-template-columns: 1fr;
		height: calc(100vh - 90px);
		border-radius: 0;
	}

	.dr-msg__side {
		border-right: 0;
	}

	.dr-msg__main {
		display: none;
	}

	.dr-msg.is-thread .dr-msg__side {
		display: none;
	}

	.dr-msg.is-thread .dr-msg__main {
		display: flex;
	}

	.dr-msg__back {
		display: block;
	}

	.dr-msg__list {
		padding: 12px;
	}

	.dr-msg__bubble {
		max-width: 85%;
	}

	.dr-msg__report {
		opacity: .5;
	}
}
