﻿/* 23.08.2026: стили ленты сообщества (/community) — начало */

/* 24.08.2026: без сайдбара — как feedback / меню на неделю — начало */
body.calorazh-community-page #primary.content-area,
body.page-template-page-community-php #primary.content-area {
	float: none;
	width: 100%;
	max-width: 100%;
}

body.calorazh-community-page #secondary,
body.calorazh-community-page aside#secondary,
body.calorazh-community-page .widget-area#secondary,
body.page-template-page-community-php #secondary,
body.page-template-page-community-php aside#secondary,
body.page-template-page-community-php .widget-area#secondary {
	display: none;
}

body.calorazh-community-page .site-main,
body.page-template-page-community-php .site-main {
	width: 100%;
	max-width: 100%;
}
/* 24.08.2026: без сайдбара — конец */

.cf-page-wrap {
	max-width: 100%;
	width: 100%;
	padding: 0 0 50px;
	box-sizing: border-box;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #1f2937;
	--cf-surface: #ffffff;
	--cf-border: #eceef1;
	--cf-radius: 16px;
	--cf-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.03);
}

.cf-page-wrap__lead.calorazh-page-lead {
	margin: 8px 0 20px;
	color: #64748b;
}

.cf-page {
	width: 100%;
}

/* 23.08.2026: flash — profile-notice; класс .cf-site-notice (и для notice комментариев) — начало */
@keyframes profileNoticeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cf-site-notice.profile-notice-overlay {
	position: fixed;
	inset: 0;
	z-index: 260001;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: profileNoticeFadeIn 0.25s ease;
	box-sizing: border-box;
}

.cf-site-notice.profile-notice-overlay[hidden] {
	display: none !important;
}

.cf-site-notice.profile-notice-overlay *,
.cf-site-notice.profile-notice-overlay *::before,
.cf-site-notice.profile-notice-overlay *::after {
	box-sizing: border-box;
}

.cf-site-notice .profile-notice-modal {
	width: 100%;
	max-width: 360px;
	padding: 24px 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #eceef1;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
	text-align: center;
}

.cf-site-notice .profile-notice-modal__title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	/* 24.08.2026: как diary/profile notice — тёмный, не «зелёная простыня» */
	color: #1f2937 !important;
}

.cf-site-notice .profile-notice-modal__body {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px;
	line-height: 1.5;
	color: #64748b;
}

.cf-site-notice .profile-notice-modal__body:empty,
.cf-site-notice .profile-notice-modal__body[hidden] {
	display: none !important;
}

/* 24.08.2026: только заголовок + «Понятно» — без лишнего зазора под пустым body */
.cf-site-notice .profile-notice-modal--title-only .profile-notice-modal__title {
	margin-bottom: 0 !important;
}

.cf-site-notice .profile-notice-modal__actions {
	margin-top: 20px;
}

.cf-site-notice .profile-notice-modal__ok {
	width: 100%;
	min-height: 44px;
	padding: 10px 18px;
	border: none !important;
	border-radius: 14px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	background: #22c55e !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.2s ease;
}

.cf-site-notice .profile-notice-modal__ok:hover {
	background: #16a34a !important;
	text-decoration: none;
	color: #fff !important;
}

.cf-site-notice .profile-notice-modal__ok:focus,
.cf-site-notice .profile-notice-modal__ok:active {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #fff !important;
}

.cf-site-notice .profile-notice-modal__ok:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35) !important;
	color: #fff !important;
}

.cf-site-notice .profile-notice-modal__ok:focus:not(:focus-visible) {
	box-shadow: none !important;
}

.cf-site-notice .profile-notice-modal--error .profile-notice-modal__ok {
	background: #dc2626 !important;
}

.cf-site-notice .profile-notice-modal--error .profile-notice-modal__ok:hover {
	background: #b91c1c !important;
}

.cf-site-notice .profile-notice-modal--error .profile-notice-modal__ok:focus-visible {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.35) !important;
}

/* 24.08.2026: было #166534 у info-title → как обычный notice #1f2937 */
.cf-site-notice .profile-notice-modal--info .profile-notice-modal__title {
	color: #1f2937 !important;
}
/* 23.08.2026: flash — копия profile-notice — конец */

/* 23.08.2026: удаление поста — profile-notice confirm как в page-profile.css — начало */
#cf-delete-modal.profile-notice-overlay, #cf-comment-delete-modal.profile-notice-overlay {
	position: fixed;
	inset: 0;
	z-index: 260001;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: profileNoticeFadeIn 0.25s ease;
	box-sizing: border-box;
}

#cf-delete-modal.profile-notice-overlay[hidden], #cf-comment-delete-modal.profile-notice-overlay[hidden] {
	display: none !important;
}

#cf-delete-modal.profile-notice-overlay *, #cf-comment-delete-modal.profile-notice-overlay *,
#cf-delete-modal.profile-notice-overlay *::before, #cf-comment-delete-modal.profile-notice-overlay *::before,
#cf-delete-modal.profile-notice-overlay *::after, #cf-comment-delete-modal.profile-notice-overlay *::after {
	box-sizing: border-box;
}

#cf-delete-modal .profile-notice-modal, #cf-comment-delete-modal .profile-notice-modal {
	width: 100%;
	max-width: 360px;
	padding: 24px 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #eceef1;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
	text-align: center;
}

#cf-delete-modal .profile-notice-modal__title, #cf-comment-delete-modal .profile-notice-modal__title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #991b1b;
}

#cf-delete-modal .profile-notice-modal__body, #cf-comment-delete-modal .profile-notice-modal__body {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px;
	line-height: 1.5;
	color: #64748b;
}

#cf-delete-modal .profile-notice-modal__actions, #cf-comment-delete-modal .profile-notice-modal__actions {
	margin-top: 20px;
}

#cf-delete-modal .profile-notice-modal__actions--split, #cf-comment-delete-modal .profile-notice-modal__actions--split {
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	align-items: stretch;
}

#cf-delete-modal .profile-notice-modal__btn, #cf-comment-delete-modal .profile-notice-modal__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 14px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	outline: none !important;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#cf-delete-modal .profile-notice-modal__btn--ghost, #cf-comment-delete-modal .profile-notice-modal__btn--ghost {
	border: 1px solid #e2e8f0 !important;
	background: #fff;
	color: #475569 !important;
}

#cf-delete-modal .profile-notice-modal__btn--ghost:hover, #cf-comment-delete-modal .profile-notice-modal__btn--ghost:hover {
	background: #f8fafc;
	border-color: #cbd5e1 !important;
	color: #475569 !important;
}

#cf-delete-modal .profile-notice-modal__btn--ghost:focus, #cf-comment-delete-modal .profile-notice-modal__btn--ghost:focus,
#cf-delete-modal .profile-notice-modal__btn--ghost:active, #cf-comment-delete-modal .profile-notice-modal__btn--ghost:active {
	outline: none !important;
	border-color: #cbd5e1 !important;
	box-shadow: none !important;
	color: #475569 !important;
}

#cf-delete-modal .profile-notice-modal__btn--ghost:focus-visible, #cf-comment-delete-modal .profile-notice-modal__btn--ghost:focus-visible {
	border-color: #cbd5e1 !important;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28) !important;
	color: #475569 !important;
}

#cf-delete-modal .profile-notice-modal__btn--ghost:focus:not, #cf-comment-delete-modal .profile-notice-modal__btn--ghost:focus:not(:focus-visible) {
	box-shadow: none !important;
}

#cf-delete-modal .profile-notice-modal__btn--danger, #cf-comment-delete-modal .profile-notice-modal__btn--danger {
	border: 1px solid #dc2626 !important;
	background: #dc2626;
	color: #fff !important;
}

#cf-delete-modal .profile-notice-modal__btn--danger:hover, #cf-comment-delete-modal .profile-notice-modal__btn--danger:hover {
	background: #b91c1c;
	border-color: #b91c1c !important;
	color: #fff !important;
}

#cf-delete-modal .profile-notice-modal__btn--danger:focus, #cf-comment-delete-modal .profile-notice-modal__btn--danger:focus,
#cf-delete-modal .profile-notice-modal__btn--danger:active, #cf-comment-delete-modal .profile-notice-modal__btn--danger:active {
	outline: none !important;
	border-color: #b91c1c !important;
	box-shadow: none !important;
	color: #fff !important;
}

#cf-delete-modal .profile-notice-modal__btn--danger:focus-visible, #cf-comment-delete-modal .profile-notice-modal__btn--danger:focus-visible {
	border-color: #b91c1c !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.32) !important;
	color: #fff !important;
}

#cf-delete-modal .profile-notice-modal__btn--danger:focus:not, #cf-comment-delete-modal .profile-notice-modal__btn--danger:focus:not(:focus-visible) {
	box-shadow: none !important;
}
/* 23.08.2026: удаление поста — profile-notice confirm — конец */

/* 23.08.2026: слева Все/Мои, справа фильтр + опубликовать — начало */
.cf-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0 0 18px;
	min-height: 44px;
	border: 0;
	border-top: 0;
	border-bottom: 0;
	box-shadow: none;
	background: transparent;
}

.cf-toolbar__left,
.cf-toolbar__right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cf-toolbar__left {
	flex: 1 1 auto;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	overflow: visible;
}

.cf-toolbar__right {
	flex: 0 0 auto;
	margin-left: auto;
}

.cf-toolbar__publish {
	flex: 0 0 auto;
}

/* 23.08.2026: Все / Мои / Избранное — иконки в ряд; подпись при наведении — начало */
.cf-toolbar__left .cf-filter__trigger--all,
.cf-toolbar__left .cf-filter__trigger--mine,
.cf-toolbar__left .cf-filter__trigger--bookmarks {
	position: relative;
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	justify-content: center;
	gap: 0;
	flex-shrink: 0;
	border-radius: 12px;
}

.cf-toolbar__left .cf-filter__trigger--mine {
	position: relative;
}

.cf-toolbar__left .cf-filter__badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	font-size: 10px;
	border: 2px solid #fff;
	z-index: 2;
}

.cf-toolbar__left .cf-filter__trigger-icon {
	font-size: 18px;
	line-height: 1;
}

.cf-toolbar__left .cf-filter__trigger-text {
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	transform: translateX(-50%) translateY(-2px);
	z-index: 30;
	box-sizing: border-box;
	width: max-content;
	max-width: min(200px, 70vw);
	padding: 6px 10px;
	border-radius: 8px;
	background: #0f172a;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.cf-toolbar__left .cf-filter__trigger-text::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-bottom-color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
	.cf-toolbar__left .cf-filter__trigger--all:hover .cf-filter__trigger-text,
	.cf-toolbar__left .cf-filter__trigger--mine:hover .cf-filter__trigger-text,
	.cf-toolbar__left .cf-filter__trigger--bookmarks:hover .cf-filter__trigger-text,
	.cf-toolbar__left .cf-filter__trigger--all:focus-visible .cf-filter__trigger-text,
	.cf-toolbar__left .cf-filter__trigger--mine:focus-visible .cf-filter__trigger-text,
	.cf-toolbar__left .cf-filter__trigger--bookmarks:focus-visible .cf-filter__trigger-text {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
}

@media (hover: none), (pointer: coarse) {
	.cf-toolbar__left .cf-filter__trigger-text {
		display: none !important;
	}
}
/* 23.08.2026: Все / Мои / Избранное — иконки + подсказка — конец */
/* 23.08.2026: тулбар слева/справа — конец */

/* 23.08.2026: форма нового поста — на странице, широкая на десктопе — начало */
.cf-composer {
	margin: 0 0 18px;
	padding: 12px 20px 16px;
	border-radius: var(--cf-radius);
	border: 1px solid var(--cf-border);
	background: var(--cf-surface);
	box-shadow: var(--cf-shadow);
	box-sizing: border-box;
}

.cf-composer.is-hidden {
	display: none !important;
}

.cf-composer.is-open {
	display: block;
}

.cf-composer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.cf-composer__title,
.cf-composer h2.cf-composer__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.cf-composer__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 2px solid transparent !important;
	background: #efefef;
	color: #4b5563;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.cf-composer__close:focus,
.cf-composer__close:active {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: none !important;
}

.cf-composer__close:focus-visible {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-composer__close:focus:not(:focus-visible) {
	box-shadow: none !important;
}

.cf-composer .cf-composer__form {
	gap: 14px;
}

.cf-composer__body-wrap {
	position: relative;
	display: block;
}

.cf-composer__textarea {
	min-height: 140px;
	padding-bottom: 28px;
}

.cf-composer__counter {
	position: absolute;
	right: 12px;
	bottom: 8px;
	font-size: 12px;
	line-height: 1;
	color: #94a3b8;
	pointer-events: none;
}

/* 23.08.2026: серые блоки формы — воздух внутри рамки, без двойного сдвига подсказки — начало */
.cf-composer__block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #eef2f7;
	background: #f8fafc;
}
/* 23.08.2026: серые блоки формы — конец */

.cf-composer__block-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

/* 23.08.2026: подсказка в блоке — без лишнего слева; с чекбоксом — под текст заголовка — начало */
.cf-composer__block-hint {
	margin: 0;
	padding-left: 0;
}

.cf-diary-attach--head + .cf-composer__block-hint {
	padding-left: 32px;
}
/* 23.08.2026: подсказка в блоке — конец */

.cf-composer__block .cf-field--diary-date {
	margin: 0;
	gap: 0;
}

.cf-avatar-upload--compose {
	align-items: center;
	gap: 14px;
	flex-wrap: nowrap;
}

.cf-avatar-upload__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	/* 23.08.2026: было flex 1 → кнопка «Выбрать фото» на всю ширину формы */
	flex: 0 1 auto;
}

.cf-composer__submit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin-top: 4px;
}

.cf-composer .cf-composer__submit .cf-composer__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	width: 100%;
}

.cf-composer .cf-composer__submit .cf-composer__actions .cf-btn {
	flex: 0 0 auto;
	min-width: 152px;
	width: 152px;
	justify-content: center;
}

.cf-composer .cf-composer__submit .cf-composer__actions .cf-btn--primary {
	margin-left: 0;
}

.cf-composer .cf-composer__note {
	margin: 4px 0 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.4;
	color: #94a3b8;
}

/* 23.08.2026: выпадающий выбор категории — панель как фильтр — начало */
.cf-cat-dropdown.cf-filter {
	position: relative;
	/* 24.08.2026: было z-index 25 → поверх панели «Фильтр»; поднимаем только когда открыт */
	z-index: auto;
	display: block;
	width: 100%;
}

.cf-cat-dropdown.cf-filter.is-open {
	z-index: 25;
}

.cf-cat-dropdown__trigger {
	width: 100%;
	justify-content: flex-start;
	text-align: left;
	font: inherit;
}

.cf-cat-dropdown.is-filled .cf-filter__trigger {
	background: #fff;
	border-color: #22c55e !important;
	color: #15803d !important;
}

.cf-cat-dropdown.is-filled .cf-cat-dropdown__text {
	color: #15803d !important;
}

.cf-cat-dropdown__item {
	width: 100%;
	margin: 0;
	cursor: pointer;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	color: #1f2937 !important;
}

.cf-cat-dropdown__item:not(.is-active) .cf-filter__cat-check {
	visibility: hidden;
}

.cf-field--category {
	gap: 8px;
}

/* 23.08.2026: у текста — подсказка «минимум N»; у категории без текста — начало */
.cf-field__error {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #b91c1c;
}

.cf-field__error[hidden] {
	display: none !important;
}
/* 23.08.2026: подсказка минимум символов — конец */

.cf-field--invalid .cf-cat-dropdown--invalid .cf-filter__trigger,
.cf-cat-dropdown.cf-cat-dropdown--invalid .cf-filter__trigger {
	border-color: #fca5a5 !important;
	background: #fef2f2 !important;
	color: #b91c1c !important;
	box-shadow: none !important;
}

.cf-field--invalid .cf-cat-dropdown--invalid.is-filled .cf-filter__trigger {
	border-color: #f87171 !important;
	color: #b91c1c !important;
}

.cf-field--invalid .cf-cat-dropdown--invalid.is-filled .cf-cat-dropdown__text {
	color: #b91c1c !important;
}

.cf-field--invalid .cf-textarea {
	border-color: #fca5a5 !important;
	background: #fff !important;
}

.cf-field--invalid .cf-textarea:focus,
.cf-field--invalid .cf-textarea:focus-visible,
.cf-field--invalid .cf-textarea:active {
	border-color: #fca5a5 !important;
	outline: none !important;
	box-shadow: none !important;
}
/* 23.08.2026: ошибка формы — подсветка поля — конец */
/* 23.08.2026: выпадающий выбор категории — конец */
/* 23.08.2026: форма нового поста — на странице — конец */

.cf-composer__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cf-field--diary {
	gap: 10px;
}

.cf-field__label {
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

.cf-select,
.cf-textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dbe3ec !important;
	border-radius: 12px;
	background: #fff !important;
	color: #1f2937;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.cf-select {
	min-height: 44px;
	padding: 10px 12px;
	user-select: none;
	-webkit-touch-callout: none;
	cursor: pointer;
}

.cf-textarea {
	padding: 12px;
	resize: vertical;
	min-height: 96px;
}

.cf-select:focus,
.cf-select:focus-visible,
.cf-select:active,
.cf-textarea:focus,
.cf-textarea:focus-visible,
.cf-textarea:active {
	border-color: #dbe3ec !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	background: #fff !important;
}

.cf-field__hint {
	margin: 0;
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.4;
}

/* 23.08.2026: загрузка аватарки в форме поста — начало */
.cf-field--avatar {
	gap: 8px;
}

.cf-avatar-upload {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.cf-avatar-upload__preview {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
	border: 2px solid #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* 24.08.2026: крестик удалить аватарку — начало */
.cf-avatar-upload__preview-wrap {
	position: relative;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
}

/* 24.08.2026: было display:block → 👤 после крестика криво; оставляем flex-центр */
.cf-avatar-upload__preview-wrap .cf-avatar-upload__preview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	box-sizing: border-box;
	overflow: hidden;
}

.cf-avatar-upload__remove {
	position: absolute;
	top: -6px;
	right: -6px;
	z-index: 2;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff !important;
	border-radius: 50%;
	background: #64748b !important;
	color: #fff !important;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	outline: none !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2) !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cf-avatar-upload__remove.is-hidden,
.cf-avatar-upload__remove[hidden] {
	display: none !important;
}

.cf-avatar-upload__remove:hover {
	background: #475569 !important;
	border-color: #fff !important;
}

.cf-avatar-upload__remove:focus,
.cf-avatar-upload__remove:active {
	outline: none !important;
	border-color: #fff !important;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2) !important;
}

.cf-avatar-upload__remove:focus-visible {
	outline: none !important;
	border-color: #fff !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35) !important;
}

.cf-avatar-upload__remove:focus:not(:focus-visible) {
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2) !important;
}
/* 24.08.2026: крестик удалить аватарку — конец */

.cf-avatar-upload__preview img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.cf-avatar-upload__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 22px;
	font-weight: 700;
	color: #94a3b8;
	line-height: 1;
	text-align: center;
}

.cf-avatar-upload__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 12px;
	border: 2px solid #e2e8f0 !important;
	background: #fff;
	color: #475569 !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none !important;
}

.cf-avatar-upload__btn:hover {
	border-color: #cbd5e1 !important;
	background: #f8fafc;
}

.cf-avatar-upload__btn:focus-within {
	border-color: #22c55e !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28) !important;
}

.cf-avatar-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
/* 23.08.2026: загрузка аватарки в форме поста — конец */

/* 24.08.2026: всплывашка «кто поставил реакцию» — ОТКЛЮЧЕНО (вернуть и доработать) — начало
.cf-react-who-pop {
	position: absolute;
	z-index: 260002;
	max-width: 220px;
	pointer-events: auto;
}

.cf-react-who-pop[hidden] {
	display: none !important;
}

.cf-react-who-pop__card {
	padding: 8px 10px;
	border-radius: 10px;
	background: #0f172a;
	color: #f8fafc;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
	font-size: 13px;
	line-height: 1.35;
}

.cf-react-who-pop__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cf-react-who-pop__list li {
	margin: 0;
	padding: 2px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.cf-react-who-pop__more {
	margin: 4px 0 0;
	padding: 0;
	font-size: 12px;
	color: #94a3b8;
}

.cf-react-who-pop__more[hidden] {
	display: none !important;
}
24.08.2026: всплывашка «кто поставил» — ОТКЛЮЧЕНО — конец */

.cf-composer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cf-composer__note {
	font-size: 13px;
	color: #94a3b8;
}

.cf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 12px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	outline: none !important;
	box-shadow: none !important;
	border: 2px solid transparent !important;
}

.cf-btn--sm {
	min-height: 34px;
	padding: 6px 12px;
	font-size: 13px;
}

.cf-btn--primary {
	background: #22c55e;
	color: #fff !important;
	border-color: #22c55e !important;
}

.cf-btn--primary:hover {
	background: #16a34a;
	border-color: #16a34a !important;
}

.cf-btn--primary:focus,
.cf-btn--primary:active {
	outline: none !important;
	border-color: #16a34a !important;
	box-shadow: none !important;
}

.cf-btn--primary:focus-visible {
	outline: none !important;
	border-color: #16a34a !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35) !important;
}

.cf-btn--primary:focus:not(:focus-visible) {
	box-shadow: none !important;
}

a.cf-btn--link,
a.cf-btn--link:link,
a.cf-btn--link:visited,
a.cf-btn--link:hover,
a.cf-btn--link:focus,
a.cf-btn--link:active {
	color: #ffffff !important;
	text-decoration: none !important;
}

.cf-btn--ghost {
	background: #efefef;
	color: #4b5563 !important;
	border-color: #efefef !important;
}

.cf-btn--ghost:hover {
	background: #e5e7eb;
	border-color: #e5e7eb !important;
}

.cf-btn--ghost:focus,
.cf-btn--ghost:active {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: none !important;
}

.cf-btn--ghost:focus-visible {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-btn--ghost:focus:not(:focus-visible) {
	box-shadow: none !important;
}

.cf-btn--danger-ghost {
	background: transparent;
	color: #b91c1c !important;
	border-color: transparent !important;
}

.cf-btn--danger-ghost:hover {
	background: #fef2f2;
	border-color: #fecaca !important;
}

.cf-btn--danger-ghost:focus,
.cf-btn--danger-ghost:active {
	outline: none !important;
	border-color: #fecaca !important;
	box-shadow: none !important;
}

.cf-btn--danger-ghost:focus-visible {
	outline: none !important;
	border-color: #fecaca !important;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2) !important;
}

.cf-btn--danger-ghost:focus:not(:focus-visible) {
	box-shadow: none !important;
}

/* 23.08.2026: выпадающий «Фильтр» (категории + сортировка) — начало */
.cf-filter {
	position: relative;
	margin: 0;
	z-index: 20;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 1 auto;
	min-width: 0;
}

/* 24.08.2026: открытый «Фильтр» выше формы поста (категория не просвечивает) — начало */
#cf-filter.is-open {
	z-index: 40;
}
/* 24.08.2026: открытый «Фильтр» выше формы — конец */

.cf-filter__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px 8px 12px;
	border-radius: 999px;
	border: 1px solid #e5e7eb !important;
	/* 24.08.2026: было #f3f4f6 (серые «выкл») → белый; выделение только у .is-active */
	background: #fff;
	color: #374151 !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none !important;
}

/* 23.08.2026: гостевые фильтры — button с тем же видом, что ссылка — начало */
button.cf-filter__trigger {
	font-family: inherit;
	line-height: inherit;
}
/* 23.08.2026: гостевые фильтры — конец */

.cf-filter__trigger:hover {
	background: #f8fafc;
	border-color: #d1d5db !important;
}

.cf-filter__trigger:focus,
.cf-filter__trigger:active {
	outline: none !important;
	border-color: #d1d5db !important;
	box-shadow: none !important;
}

.cf-filter__trigger:focus-visible {
	outline: none !important;
	border-color: #cbd5e1 !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-filter.is-open .cf-filter__trigger {
	background: #fff;
	border-color: #d1d5db !important;
}

.cf-filter__trigger-icon {
	display: inline-flex;
	color: #6b7280;
	line-height: 0;
}

.cf-filter__trigger-chevron {
	font-size: 11px;
	color: #9ca3af;
	line-height: 1;
	margin-left: 2px;
}

.cf-filter.is-open .cf-filter__trigger-chevron {
	transform: rotate(180deg);
}

/* 24.08.2026: активный фильтр — мягкая зелёная подсветка; остальные белые — начало */
.cf-filter__trigger--all.is-active,
.cf-filter__trigger--mine.is-active,
.cf-filter__trigger--bookmarks.is-active,
#cf-filter-trigger.is-active {
	background: #f0fdf4 !important;
	border-color: #86efac !important;
	color: #166534 !important;
	box-shadow: none !important;
}

.cf-filter__trigger--all.is-active .cf-filter__trigger-icon,
.cf-filter__trigger--mine.is-active .cf-filter__trigger-icon,
.cf-filter__trigger--bookmarks.is-active .cf-filter__trigger-icon,
#cf-filter-trigger.is-active .cf-filter__trigger-icon {
	color: #15803d;
}

a.cf-filter__trigger--all:link,
a.cf-filter__trigger--all:visited,
a.cf-filter__trigger--all:hover,
a.cf-filter__trigger--all:focus,
a.cf-filter__trigger--all:active,
a.cf-filter__trigger--all.is-active:link,
a.cf-filter__trigger--all.is-active:visited,
a.cf-filter__trigger--all.is-active:hover,
a.cf-filter__trigger--all.is-active:focus,
a.cf-filter__trigger--all.is-active:active,
a.cf-filter__trigger--mine:link,
a.cf-filter__trigger--mine:visited,
a.cf-filter__trigger--mine:hover,
a.cf-filter__trigger--mine:focus,
a.cf-filter__trigger--mine:active,
a.cf-filter__trigger--mine.is-active:link,
a.cf-filter__trigger--mine.is-active:visited,
a.cf-filter__trigger--mine.is-active:hover,
a.cf-filter__trigger--mine.is-active:focus,
a.cf-filter__trigger--mine.is-active:active,
a.cf-filter__trigger--bookmarks:link,
a.cf-filter__trigger--bookmarks:visited,
a.cf-filter__trigger--bookmarks:hover,
a.cf-filter__trigger--bookmarks:focus,
a.cf-filter__trigger--bookmarks:active,
a.cf-filter__trigger--bookmarks.is-active:link,
a.cf-filter__trigger--bookmarks.is-active:visited,
a.cf-filter__trigger--bookmarks.is-active:hover,
a.cf-filter__trigger--bookmarks.is-active:focus,
a.cf-filter__trigger--bookmarks.is-active:active {
	color: inherit !important;
	text-decoration: none !important;
}

a.cf-filter__trigger--all.is-active:link,
a.cf-filter__trigger--all.is-active:visited,
a.cf-filter__trigger--all.is-active:hover,
a.cf-filter__trigger--all.is-active:focus,
a.cf-filter__trigger--all.is-active:active,
a.cf-filter__trigger--mine.is-active:link,
a.cf-filter__trigger--mine.is-active:visited,
a.cf-filter__trigger--mine.is-active:hover,
a.cf-filter__trigger--mine.is-active:focus,
a.cf-filter__trigger--mine.is-active:active,
a.cf-filter__trigger--bookmarks.is-active:link,
a.cf-filter__trigger--bookmarks.is-active:visited,
a.cf-filter__trigger--bookmarks.is-active:hover,
a.cf-filter__trigger--bookmarks.is-active:focus,
a.cf-filter__trigger--bookmarks.is-active:active {
	color: #166534 !important;
}

.cf-filter__trigger--all.is-active:focus-visible,
.cf-filter__trigger--mine.is-active:focus-visible,
.cf-filter__trigger--bookmarks.is-active:focus-visible,
#cf-filter-trigger.is-active:focus-visible {
	border-color: #86efac !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22) !important;
}
/* 24.08.2026: активный фильтр — подсветка — конец */

.cf-filter__trigger--publish {
	background: #22c55e;
	border-color: #22c55e !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

.cf-filter__trigger--publish:hover {
	background: #16a34a;
	border-color: #16a34a !important;
	color: #ffffff !important;
}

.cf-filter__trigger--publish:focus,
.cf-filter__trigger--publish:active {
	outline: none !important;
	border-color: #16a34a !important;
	box-shadow: none !important;
	color: #ffffff !important;
}

.cf-filter__trigger--publish:focus-visible {
	outline: none !important;
	border-color: #16a34a !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35) !important;
	color: #ffffff !important;
}

.cf-filter__trigger--publish:focus:not(:focus-visible) {
	box-shadow: none !important;
}

/* 24.08.2026: было visibility:hidden → видна, но неактивна (фильтр не один) — начало */
.cf-filter__trigger--publish.is-composer-open,
.cf-filter__trigger--publish.is-composer-open:hover,
.cf-filter__trigger--publish.is-composer-open:focus,
.cf-filter__trigger--publish.is-composer-open:active,
.cf-filter__trigger--publish.is-composer-open:focus-visible {
	visibility: visible;
	pointer-events: none;
	opacity: 0.45;
	cursor: default;
	background: #86efac !important;
	border-color: #86efac !important;
	color: #ffffff !important;
	box-shadow: none !important;
	outline: none !important;
}
/* 24.08.2026: кнопка публикации неактивна при открытой форме — конец */

a.cf-filter__trigger--publish:link,
a.cf-filter__trigger--publish:visited,
a.cf-filter__trigger--publish:hover,
a.cf-filter__trigger--publish:focus,
a.cf-filter__trigger--publish:active {
	color: #ffffff !important;
	text-decoration: none !important;
}

.cf-filter__trigger-icon--plus {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
}
/* 23.08.2026: «Мои посты» и «Опубликовать» — конец */

.cf-filter__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: auto;
	right: 0;
	min-width: min(420px, calc(100vw - 32px));
	padding: 10px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #eef2f7;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	box-sizing: border-box;
}

/* 23.08.2026: категория в форме — панель по ширине поля, не 100vw влево — начало */
.cf-cat-dropdown .cf-cat-dropdown__panel.cf-filter__panel {
	left: 0;
	right: 0;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}
/* 23.08.2026: категория в форме — панель по ширине поля — конец */

.cf-filter__panel.is-hidden {
	display: none !important;
}

.cf-filter__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 8px;
}

.cf-filter__cats,
.cf-filter__sort {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cf-filter__sort {
	padding-left: 8px;
	border-left: 1px solid #eef2f7;
}

.cf-filter__cat,
.cf-filter__sort-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: 12px;
	color: #1f2937 !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

a.cf-filter__cat:link,
a.cf-filter__cat:visited,
a.cf-filter__cat:hover,
a.cf-filter__cat:focus,
a.cf-filter__cat:active,
a.cf-filter__sort-item:link,
a.cf-filter__sort-item:visited,
a.cf-filter__sort-item:hover,
a.cf-filter__sort-item:focus,
a.cf-filter__sort-item:active {
	color: #1f2937 !important;
	text-decoration: none !important;
}

.cf-filter__cat:hover,
.cf-filter__sort-item:hover {
	background: #f8fafc;
}

.cf-filter__cat:focus-visible,
.cf-filter__sort-item:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22) !important;
}

.cf-filter__cat.is-active {
	background: #ecfdf5;
	color: #15803d !important;
	font-weight: 600;
}

a.cf-filter__cat.is-active:link,
a.cf-filter__cat.is-active:visited,
a.cf-filter__cat.is-active:hover,
a.cf-filter__cat.is-active:focus,
a.cf-filter__cat.is-active:active {
	color: #15803d !important;
}

.cf-filter__cat--rejected.is-active {
	background: #fef2f2;
	color: #b91c1c !important;
}

a.cf-filter__cat--rejected.is-active:link,
a.cf-filter__cat--rejected.is-active:visited,
a.cf-filter__cat--rejected.is-active:hover,
a.cf-filter__cat--rejected.is-active:focus,
a.cf-filter__cat--rejected.is-active:active {
	color: #b91c1c !important;
}

.cf-filter__cat-icon {
	flex: 0 0 auto;
	width: 1.25em;
	text-align: center;
	line-height: 1;
}

.cf-filter__cat-label {
	flex: 1 1 auto;
	min-width: 0;
}

.cf-filter__cat-check {
	flex: 0 0 auto;
	color: #22c55e;
	font-weight: 700;
	font-size: 14px;
}

.cf-filter__cat--rejected.is-active .cf-filter__cat-check {
	color: #ef4444;
}

.cf-filter__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.cf-filter__sort-head {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px 8px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
}

.cf-filter__sort-head-chevron {
	font-size: 10px;
	line-height: 1;
}

.cf-filter__sort-item.is-active {
	background: #f3f4f6;
	font-weight: 600;
}

.cf-filter__sort-item span:first-child {
	flex: 1 1 auto;
}

.cf-filter__sort-check {
	flex: 0 0 auto;
	color: #9ca3af;
	font-size: 11px;
	line-height: 1;
}

@media (max-width: 520px) {
	/* 23.08.2026: тулбар — иконки в ряд, без столбца на всю ширину — начало */
	.cf-toolbar {
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.cf-toolbar__left {
		flex: 1 1 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		width: auto;
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.cf-toolbar__left::-webkit-scrollbar {
		display: none;
	}

	.cf-toolbar__right {
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		width: auto;
		margin-left: 0;
		gap: 8px;
	}

	.cf-toolbar__publish {
		width: auto;
		flex: 0 0 auto;
	}

	.cf-toolbar .cf-filter__trigger-text,
	.cf-toolbar .cf-filter__trigger-chevron {
		display: none !important;
	}

	/* слева подписи — только тултип на десктопе; на мобилке скрыты выше через hover:none */
	.cf-toolbar__left .cf-filter__trigger-text {
		display: none !important;
	}

	.cf-toolbar .cf-filter__trigger,
	.cf-toolbar .cf-filter__trigger--publish,
	.cf-toolbar #cf-filter-trigger {
		width: 40px;
		min-width: 40px;
		height: 40px;
		min-height: 40px;
		padding: 0;
		justify-content: center;
		gap: 0;
		flex-shrink: 0;
		border-radius: 12px;
	}

	.cf-toolbar .cf-filter__trigger-icon {
		font-size: 18px;
		line-height: 1;
	}

	.cf-toolbar .cf-filter__trigger-icon svg {
		width: 18px;
		height: 18px;
	}

	.cf-toolbar .cf-filter {
		display: flex;
		width: auto;
		flex: 0 0 auto;
	}

	/* 23.08.2026: фильтр на мобилке — fixed на ширину экрана, не обрезать слева — начало */
	#cf-filter.is-open #cf-filter-panel {
		position: fixed;
		left: 12px;
		right: 12px;
		width: auto;
		min-width: 0;
		max-width: none;
		z-index: 1200;
		box-sizing: border-box;
	}

	#cf-filter.is-open {
		z-index: 1201;
	}
	/* 23.08.2026: фильтр на мобилке — конец */

	.cf-filter__cols {
		grid-template-columns: 1fr;
	}

	.cf-filter__sort {
		padding-left: 0;
		padding-top: 8px;
		border-left: 0;
		border-top: 1px solid #eef2f7;
	}
	/* 23.08.2026: тулбар — иконки в ряд — конец */
}
/* 23.08.2026: выпадающий «Фильтр» — конец */

.cf-empty {
	margin: 0 0 12px;
	padding: 18px 16px;
	border-radius: var(--cf-radius);
	border: 1px solid var(--cf-border);
	background: var(--cf-surface);
	color: #64748b;
	box-shadow: var(--cf-shadow);
}

.cf-empty--hint {
	font-size: 13px;
	color: #94a3b8;
}

.cf-feed {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cf-card {
	padding: 14px 16px 12px;
	border-radius: var(--cf-radius);
	border: 1px solid var(--cf-border);
	background: var(--cf-surface);
	box-shadow: var(--cf-shadow);
	min-width: 0;
	box-sizing: border-box;
}

/* 24.08.2026: клик по карточке → страница поста — начало */
.cf-card--clickable {
	cursor: pointer;
}

.cf-card--clickable:focus {
	outline: none !important;
}

.cf-card--clickable:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28) !important;
}
/* 24.08.2026: клик по карточке → страница поста — конец */

.cf-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

/* 23.08.2026: админ — «⋯» вместо явного «Удалить» на опубликованных — начало */
.cf-card__head-end {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 0 0 auto;
}

.cf-card__admin-menu {
	position: relative;
	flex: 0 0 auto;
}

.cf-card__admin-menu-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border-radius: 8px;
	border: 2px solid transparent !important;
	background: transparent;
	color: #94a3b8 !important;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.cf-card__admin-menu-trigger:hover {
	background: #f1f5f9;
	color: #64748b !important;
}

.cf-card__admin-menu-trigger:focus,
.cf-card__admin-menu-trigger:active {
	outline: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

.cf-card__admin-menu-trigger:focus-visible {
	outline: none !important;
	border-color: transparent !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-card__admin-menu-trigger:focus:not(:focus-visible) {
	box-shadow: none !important;
}

.cf-card__admin-menu.is-open .cf-card__admin-menu-trigger {
	background: #f1f5f9;
	color: #64748b !important;
}

.cf-card__admin-menu-panel {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 160px;
	padding: 6px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #eef2f7;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	z-index: 30;
	box-sizing: border-box;
}

.cf-card__admin-menu-panel.is-hidden {
	display: none !important;
}

.cf-card__admin-menu-item {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 2px solid transparent !important;
	border-radius: 8px;
	background: transparent;
	color: #94a3b8 !important;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.cf-card__admin-menu-item:hover {
	background: #f8fafc;
	color: #b91c1c !important;
}

.cf-card__admin-menu-item:focus,
.cf-card__admin-menu-item:active {
	outline: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

.cf-card__admin-menu-item:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15) !important;
}
/* 23.08.2026: админ — «⋯» — конец */

.cf-card__author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.cf-card__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
}

.cf-card__avatar-img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

/* 24.08.2026: без фото — мягкие пастельные инициалы, не фиолетовый Gravatar — начало */
.cf-card__avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	user-select: none;
	-webkit-user-select: none;
}

.cf-card__avatar-fallback--0 {
	background: #eef2f7;
	color: #64748b;
}

.cf-card__avatar-fallback--1 {
	background: #ecfdf5;
	color: #15803d;
}

.cf-card__avatar-fallback--2 {
	background: #fff7ed;
	color: #c2410c;
}

.cf-card__avatar-fallback--3 {
	background: #eff6ff;
	color: #2563eb;
}

.cf-card__avatar-fallback--4 {
	background: #fdf2f8;
	color: #db2777;
}
/* 24.08.2026: мягкие инициалы без фото — конец */

.cf-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cf-card__name {
	font-weight: 700;
	font-size: 14px;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cf-card__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #94a3b8;
}

.cf-card__cat {
	color: #64748b;
	font-weight: 600;
}

.cf-card__dot {
	opacity: 0.7;
}

.cf-card__badge {
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.cf-card__badge--pending {
	background: #fff7ed;
	color: #c2410c;
}

.cf-card__badge--rejected {
	background: #fef2f2;
	color: #b91c1c;
}

.cf-card__badge--published {
	background: #f0fdf4;
	color: #15803d;
}

/* 23.08.2026: отклонённые — плашка автора и подсветка у админа — начало */
.cf-card--reject-notice {
	border-color: #fecaca;
	background: #fff7f7;
	box-shadow: none;
}

.cf-reject-notice__title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #b91c1c;
}

.cf-reject-notice__reason {
	margin: 0 0 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #fecaca;
	font-size: 14px;
	line-height: 1.45;
	color: #7f1d1d;
}

.cf-reject-notice__reason-label {
	font-weight: 700;
}

.cf-reject-notice__hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: #64748b;
}

.cf-reject-notice__preview {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #f1f5f9;
}

.cf-reject-notice__cat {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.cf-card--rejected {
	border-color: #fca5a5;
	background: #fff5f5;
}

.cf-admin-reject-reason {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #fecaca;
	font-size: 13px;
	line-height: 1.45;
	color: #7f1d1d;
}

/* 23.08.2026: админ — подсказка про окно правки автора — начало */
.cf-admin-edit-hint {
	margin: 0 0 10px;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.cf-admin-edit-hint--open {
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #15803d;
}
/* 23.08.2026: админ — подсказка про окно правки автора — конец */

/* 23.08.2026: автор — окно правки тихо, без плашки — начало */
.cf-author-edit-hint {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #94a3b8;
}
/* 23.08.2026: автор — окно правки тихо — конец */

.cf-edit-resubmit-hint {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.cf-edit-resubmit-hint.is-hidden {
	display: none !important;
}
/* 23.08.2026: отклонённые — плашка автора и подсветка у админа — конец */

.cf-card__body {
	margin: 0 0 10px;
}

.cf-card__text {
	font-size: 15px;
	line-height: 1.55;
	color: #1f2937;
	word-break: break-word;
}

.cf-card__body--clamp .cf-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.cf-card__more {
	margin-top: 6px;
	padding: 0;
	border: none !important;
	background: transparent;
	color: #16a34a !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.cf-card__more:focus,
.cf-card__more:active,
.cf-card__more:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.cf-card__more.is-hidden,
.cf-inline-form.is-hidden {
	display: none !important;
}

/* 24.08.2026: реакции — мягкие чипы без «квадратиков» (особенно iPhone) — начало */
.cf-reactions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin: 0 0 8px;
	/* 24.08.2026: было 4px → чуть больше зазор от текста */
	padding-top: 12px;
}

.cf-react {
	display: inline-flex;
	/* 24.08.2026: было column (счётчик снизу) → row (счётчик справа от эмодзи) */
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	width: auto;
	min-width: 36px;
	max-width: none;
	height: 36px;
	min-height: 36px;
	padding: 4px 8px;
	border-radius: 999px;
	/* 24.08.2026: было 2px #e2e8f0 кубики → без рамки, лёгкий фон */
	border: 2px solid transparent !important;
	background: #f1f5f9;
	color: #475569;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: manipulation;
}
/* 24.08.2026: реакции — мягкие чипы — конец */

/* 24.08.2026: реакции — без системной/зелёной обводки iOS (parent button:focus ring) — начало */
/* было: outline:5px auto -webkit-focus-ring-color у button:focus родителя → зелёная рамка на iPhone */
body.calorazh-community-page button.cf-react,
body.calorazh-community-page button.cf-react:link,
body.calorazh-community-page button.cf-react:visited,
body.calorazh-community-page button.cf-react:hover,
body.calorazh-community-page button.cf-react:focus,
body.calorazh-community-page button.cf-react:focus-visible,
body.calorazh-community-page button.cf-react:active,
body.calorazh-community-page button.cf-react:focus:active,
body.calorazh-community-page button.cf-react[aria-pressed='true'],
body.calorazh-community-page button.cf-react[aria-pressed='false'],
body.calorazh-community-page button.cf-react[aria-pressed='true']:focus,
body.calorazh-community-page button.cf-react[aria-pressed='true']:active,
body.calorazh-community-page button.cf-react.is-active,
body.calorazh-community-page button.cf-react.is-active:focus,
body.calorazh-community-page button.cf-react.is-active:focus-visible,
body.calorazh-community-page button.cf-react.is-active:active {
	outline: none !important;
	outline-width: 0 !important;
	outline-style: none !important;
	outline-color: transparent !important;
	outline-offset: 0 !important;
	border: 2px solid transparent !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
	body.calorazh-community-page button.cf-react:hover {
		border-color: transparent !important;
		background: #e2e8f0 !important;
		color: #475569 !important;
	}
}

body.calorazh-community-page button.cf-react:active {
	transform: scale(0.98);
}
/* 24.08.2026: реакции — без системной/зелёной обводки iOS — конец */

.cf-react:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* 23.08.2026: свой пост — реакции только для просмотра счётчиков — начало */
.cf-react--static {
	cursor: default;
	pointer-events: none;
	opacity: 0.85;
}

.cf-reactions--readonly .cf-react--static {
	border-color: transparent !important;
	background: #f8fafc;
}
/* 23.08.2026: свой пост — реакции только для просмотра — конец */

.cf-react__emoji {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.25em;
	height: 1.25em;
	font-size: 16px;
	line-height: 1;
	/* 24.08.2026: 👍/🔥 разная метрика шрифта → без бокса «прыгали» в кубике */
}

/* 24.08.2026: без подписей — кроме «В избранное» — начало */
.cf-react__label {
	display: none !important;
}

.cf-react[data-cf-react='tip'] .cf-react__label {
	display: inline !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: inherit;
}

.cf-react__count {
	min-width: 0;
	font-size: 13px;
	line-height: 1;
	color: #64748b;
	font-variant-numeric: tabular-nums;
}

.cf-react__count:empty {
	display: none;
}
/* 24.08.2026: без подписей — кроме избранного — конец */

/* 24.08.2026: анимация «эмодзи вылетают» при реакции — начало */
.cf-reactions {
	overflow: visible;
}

.cf-react {
	position: relative;
	overflow: visible;
}

.cf-react-burst {
	position: absolute;
	left: 50%;
	top: 45%;
	z-index: 6;
	margin: 0;
	padding: 0;
	pointer-events: none;
	font-size: 15px;
	line-height: 1;
	user-select: none;
	-webkit-user-select: none;
	will-change: transform, opacity;
	/* 24.08.2026: до анимации / во время delay — сразу по центру, не справа от left:50% */
	opacity: 0;
	transform: translate(-50%, 0) scale(0.55);
	animation: cf-react-burst-fly 0.75s ease-out both;
}

@keyframes cf-react-burst-fly {
	0% {
		opacity: 1;
		transform: translate(-50%, 0) scale(0.55);
	}
	70% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(calc(-50% + var(--cf-dx, 0px)), var(--cf-dy, -40px)) scale(1.15);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cf-react-burst {
		display: none !important;
		animation: none !important;
	}
}
/* 24.08.2026: анимация реакций — конец */

.cf-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 6px;
	border-top: 1px solid #f1f5f9;
	margin-top: 4px;
}

.cf-inline-form {
	display: inline;
	margin: 0;
}

.cf-modal {
	position: fixed;
	inset: 0;
	z-index: 260001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.cf-modal.is-open {
	display: flex !important;
}

.cf-modal.is-hidden {
	display: none !important;
}

.cf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(2px);
}

.cf-modal__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	max-height: min(90vh, 640px);
	overflow: auto;
	padding: 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
	box-sizing: border-box;
}

/* 23.08.2026: модалка правки поста — выше и чуть шире на десктопе — начало */
@media (min-width: 721px) {
	.cf-modal__card--edit {
		max-width: 560px;
		max-height: min(92vh, 820px);
		padding: 20px 22px 22px;
	}

	#cf-edit-modal .cf-textarea--edit {
		min-height: 180px;
	}
}
/* 23.08.2026: модалка правки поста — конец */

.cf-modal__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
}

/* 23.08.2026: заголовок модалки — без пустоты сверху от h2 темы — начало */
.cf-modal__title,
.cf-modal h2.cf-modal__title,
.cf-modal .cf-modal__top > .cf-modal__title,
body .cf-modal h2.cf-modal__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}
/* 23.08.2026: заголовок модалки — без пустоты сверху — конец */

.cf-modal__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 2px solid transparent !important;
	background: #efefef;
	color: #4b5563;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.cf-modal__close:focus,
.cf-modal__close:active {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: none !important;
}

.cf-modal__close:focus-visible {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-modal__close:focus:not(:focus-visible) {
	box-shadow: none !important;
}

/* 23.08.2026: модалка входа для гостя (реакции) — начало */
.cf-login-modal__card {
	position: relative;
	text-align: center;
	max-width: 400px;
	padding: 24px 20px 20px;
}

.cf-login-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.cf-login-modal__emoji {
	font-size: 42px;
	line-height: 1;
	margin: 0 0 10px;
}

.cf-login-modal__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.cf-login-modal__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #64748b;
}

.cf-login-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
}

.cf-login-modal__cta {
	width: 100%;
	min-height: 44px;
	font-size: 15px;
}

.cf-login-modal__cta-secondary {
	width: 100%;
	min-height: 42px;
}

.cf-login-modal__later {
	width: 100%;
	min-height: 38px;
	font-weight: 600;
	color: #64748b !important;
	border-color: transparent !important;
	background: transparent !important;
}

.cf-login-modal__later:hover {
	background: #f8fafc !important;
	border-color: #e2e8f0 !important;
}

.cf-login-modal__later:focus,
.cf-login-modal__later:active {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: none !important;
}

.cf-login-modal__later:focus-visible {
	outline: none !important;
	border-color: #e2e8f0 !important;
	box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

.cf-login-modal__later:focus:not(:focus-visible) {
	box-shadow: none !important;
}

a.cf-login-modal__cta,
a.cf-login-modal__cta:link,
a.cf-login-modal__cta:visited,
a.cf-login-modal__cta:hover,
a.cf-login-modal__cta:focus,
a.cf-login-modal__cta:active {
	color: #ffffff !important;
	text-decoration: none !important;
}

a.cf-login-modal__cta-secondary,
a.cf-login-modal__cta-secondary:link,
a.cf-login-modal__cta-secondary:visited,
a.cf-login-modal__cta-secondary:hover,
a.cf-login-modal__cta-secondary:focus,
a.cf-login-modal__cta-secondary:active {
	color: #4b5563 !important;
	text-decoration: none !important;
}
/* 23.08.2026: модалка входа для гостя — конец */

/* 23.08.2026: прикрепление дня + карточка снимка — начало */
.cf-diary-attach--head {
	display: flex;
	/* 24.08.2026: было center → у длинного «рецепт…» чекбокс уезжал в середину */
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}

.cf-diary-attach--head .cf-diary-attach__check,
.cf-diary-attach--head input[type='checkbox'] {
	margin-top: 2px;
}

.cf-diary-attach--head .cf-composer__block-title,
.cf-diary-attach--head .cf-field__label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

.cf-composer-diary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.cf-composer-diary-head .cf-composer__block-title {
	margin: 0;
}

/* 23.08.2026: правка — подсказка под чекбоксом, не с края блока — начало */
/* 24.08.2026: те же отступы для рецепта, что у дня */
#cf-edit-diary-attach-wrap > .cf-field__hint,
#cf-edit-recipe-attach-wrap > .cf-field__hint {
	margin: 0;
	padding-left: 0;
}

#cf-edit-diary-attach-wrap > .cf-diary-attach--head + .cf-field__hint,
#cf-edit-recipe-attach-wrap > .cf-diary-attach--head + .cf-field__hint {
	padding-left: 32px;
}
/* 23.08.2026: правка — подсказка под чекбоксом — конец */

/* 23.08.2026: правка — блок прикрепления дня, не слипается — начало */
#cf-edit-diary-attach-wrap,
#cf-edit-recipe-attach-wrap,
.cf-edit-diary-attached {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cf-field--diary #cf-edit-diary-attached-wrap .cf-field__hint,
.cf-field--diary #cf-edit-recipe-attached-wrap .cf-field__hint,
.cf-edit-diary-attached__hint {
	margin: 0;
	padding-left: 0;
}
/* 23.08.2026: правка — блок прикрепления дня — конец */

.cf-select--diary-day {
	width: 100%;
	max-width: 100%;
}

.cf-diary-attach {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
}

.cf-diary-attach--remove {
	color: #64748b;
	font-weight: 400;
}

/* 23.08.2026: правка — прикреплённый день, блок открепления — начало */
.cf-edit-diary-attached.is-hidden {
	display: none !important;
}
/* 23.08.2026: правка — прикреплённый день — конец */

.cf-diary-attach__check,
.cf-diary-attach input[type='checkbox'] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid #cbd5e1 !important;
	border-radius: 6px;
	background: #fff !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative;
	box-sizing: border-box;
	cursor: pointer;
}

.cf-diary-attach__check:checked,
.cf-diary-attach input[type='checkbox']:checked {
	border-color: #22c55e !important;
	background: #22c55e !important;
}

.cf-diary-attach__check:checked::after,
.cf-diary-attach input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.cf-diary-attach__check:focus-visible,
.cf-diary-attach input[type='checkbox']:focus-visible {
	border-color: #22c55e !important;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28) !important;
}

.cf-field--diary-date.is-hidden {
	display: none !important;
}

/* 24.08.2026: блоки день/рецепт скрыты, пока не та категория */
.cf-composer__block.is-hidden,
.cf-field--diary.is-hidden[data-cf-attach-for] {
	display: none !important;
}

.cf-modal__text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #475569;
}

.cf-modal__text--soft {
	color: #94a3b8;
	font-size: 14px;
}

/* 23.08.2026: день из дневника — свёрнут со скрепкой, раскрытие по клику — начало */
/* контейнер всегда на ширину карточки — чтобы при open не было скачка вверх (было inline-block → block) */
.cf-diary-snap {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 12px 0 14px;
	padding: 0;
	border: none;
	border-radius: 14px;
	background: transparent;
	overflow: visible;
	box-sizing: border-box;
}

.cf-diary-snap[open] {
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	overflow: hidden;
}

.cf-diary-snap__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	cursor: pointer;
	list-style: none;
	font: inherit;
	color: #334155;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.cf-diary-snap[open] > .cf-diary-snap__toggle {
	display: flex;
	width: 100%;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid #eef2f7;
	background: #f1f5f9;
}

.cf-diary-snap__toggle::-webkit-details-marker {
	display: none;
}

.cf-diary-snap__toggle:focus {
	outline: none !important;
}

.cf-diary-snap__toggle:focus-visible {
	outline: none !important;
	box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.cf-diary-snap__clip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	font-size: 16px;
	line-height: 1;
	/* 24.08.2026: фиксированный бокс — эмодзи не прыгает при переносе заголовка / open */
}

.cf-diary-snap__title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	color: #15803d;
	line-height: 1.35;
	/* 24.08.2026: было nowrap → на мобилке обрезало «Рецепт из калькулятора продуктов» */
	white-space: normal;
	overflow-wrap: break-word;
}

.cf-diary-snap__preview {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 23.08.2026: дата в «День из дневника» — на мобилке 23.08.2026 — начало */
.cf-diary-snap__date--short {
	display: none;
}
/* 23.08.2026: дата в «День из дневника» — конец */

/* 24.08.2026: шеврон у дня/рецепта убран — шапка и так кликабельна */
.cf-diary-snap__chevron {
	display: none !important;
}

.cf-diary-snap__body {
	padding: 12px 14px 12px;
}

.cf-diary-snap__totals {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 14px;
	margin-bottom: 8px;
}

.cf-diary-snap__kcal {
	font-size: 15px;
	/* 24.08.2026: было #0f172a + strong → слишком чёрная жирная цифра */
	color: #475569;
	font-weight: 500;
}

/* 24.08.2026: цифра ккал без «кричащего» bold — начало */
.cf-diary-snap__kcal strong {
	font-weight: 500;
	color: inherit;
}
/* 24.08.2026: цифра ккал без «кричащего» bold — конец */

.cf-diary-snap__macros {
	font-size: 13px;
	color: #64748b;
}

.cf-diary-snap__meals {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cf-diary-snap__meal {
	border-radius: 10px;
	background: #fff;
	border: 1px solid #eef2f7;
}

.cf-diary-snap__meal-sum {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	list-style: none;
}

.cf-diary-snap__meal-sum::-webkit-details-marker {
	display: none;
}

.cf-diary-snap__meal-kcal {
	font-weight: 500;
	color: #94a3b8;
}

.cf-diary-snap__items {
	list-style: none;
	margin: 0;
	padding: 0 10px 8px;
}

.cf-diary-snap__items li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 10px;
	padding: 4px 0;
	border-top: 1px solid #f1f5f9;
	font-size: 13px;
}

.cf-diary-snap__item-title {
	color: #1f2937;
	min-width: 0;
	flex: 1 1 auto;
}

/* 23.08.2026: длинное название — «г · ккал» вправо и на второй строке — начало */
.cf-diary-snap__item-meta {
	color: #94a3b8;
	white-space: nowrap;
	flex: 0 0 auto;
	margin-left: auto;
}
/* 23.08.2026: длинное название — «г · ккал» вправо — конец */

/* 24.08.2026: карточка рецепта в ленте — начало */
/* длинный заголовок в свёрнутой плашке — на всю ширину; эмодзи по центру строки (не flex-start → прыжок) */
.cf-recipe-snap:not([open]) > .cf-diary-snap__toggle {
	display: flex;
	width: 100%;
	max-width: 100%;
	align-items: center;
	/* 24.08.2026: было зелёный акцент у плашки → нейтрально */
	border-color: #e2e8f0 !important;
	background: #f8fafc !important;
}

/* 24.08.2026: заголовок плашки без зелёного — начало */
.cf-recipe-snap > .cf-diary-snap__toggle .cf-diary-snap__title {
	/* было #15803d → спокойный серый */
	color: #475569;
	font-weight: 600;
}

.cf-recipe-snap > .cf-diary-snap__toggle:focus-visible {
	box-shadow: none !important;
}
/* 24.08.2026: заголовок плашки без зелёного — конец */

.cf-recipe-snap__name {
	display: inline;
}

.cf-recipe-snap__heading {
	margin: 0 0 8px;
	padding: 0 10px;
	font-size: 14px;
	/* 24.08.2026: было зелёный #15803d → спокойный серый */
	font-weight: 600;
	color: #64748b;
	line-height: 1.35;
}

.cf-recipe-snap__items {
	padding-top: 4px;
	border-top: 1px solid #f1f5f9;
	margin-top: 4px;
}

/* 24.08.2026: в рецепте — «г · ккал» рядом с названием, не у правого края */
.cf-recipe-snap__items li {
	justify-content: flex-start;
	gap: 6px 10px;
}

.cf-recipe-snap__items .cf-diary-snap__item-title {
	flex: 0 1 auto;
}

.cf-recipe-snap__items .cf-diary-snap__item-meta {
	margin-left: 0;
}
/* 24.08.2026: карточка рецепта в ленте — конец */

/* 23.08.2026: день из дневника — скрепка — конец */
/* 23.08.2026: прикрепление дня + карточка снимка — конец */

@media (max-width: 520px) {
	/* 23.08.2026: дата в «День из дневника» — цифрами на узком экране — начало */
	.cf-diary-snap__date--long {
		display: none;
	}

	.cf-diary-snap__date--short {
		display: inline;
	}

	/* 23.08.2026: свёрнутая строка — только дата с точками, без ккал (ккал внутри) */
	.cf-diary-snap__preview-kcal {
		display: none;
	}
	/* 23.08.2026: дата в «День из дневника» — конец */

	/* 24.08.2026: реакции — те же кубики, что на десктопе (без отдельной раскладки) */

	.cf-composer .cf-composer__submit .cf-composer__actions {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
	}

	.cf-composer .cf-composer__submit .cf-composer__actions .cf-btn {
		width: 152px;
		min-width: 152px;
		flex: 0 0 auto;
	}

	.cf-composer .cf-composer__submit .cf-composer__actions .cf-btn--primary {
		margin-left: 0;
	}

	.cf-avatar-upload--compose {
		flex-wrap: wrap;
	}

	.cf-btn {
		width: 100%;
	}

	.cf-card__actions .cf-btn {
		width: auto;
	}
}

/* 24.08.2026: страница поста + комментарии — начало */
.cf-card__comments-wrap {
	margin-top: 12px;
}

a.cf-card__comments,
a.cf-card__comments:link,
a.cf-card__comments:visited,
a.cf-card__comments:hover,
a.cf-card__comments:focus,
a.cf-card__comments:active {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #64748b !important;
	text-decoration: none !important;
	outline: none !important;
	box-shadow: none !important;
}

a.cf-card__comments:hover,
a.cf-card__comments:focus-visible {
	color: #0f172a !important;
}

.cf-single__back-wrap {
	margin: 0 0 16px;
}

a.cf-single__back,
a.cf-single__back:link,
a.cf-single__back:visited,
a.cf-single__back:hover,
a.cf-single__back:focus,
a.cf-single__back:active {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #64748b !important;
	text-decoration: none !important;
}

a.cf-single__back:hover {
	color: #0f172a !important;
}

.cf-card--single .cf-card__body--full {
	/* 24.08.2026: было 4px → отступ перед реакциями */
	margin-bottom: 12px;
}

.cf-comments {
	margin-top: 28px;
	padding-top: 8px;
}

.cf-comments__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.cf-comments__note,
.cf-comments__empty {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #64748b;
}

.cf-comments__list,
.cf-comments__replies {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cf-comment {
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	background: #fff;
}

.cf-comment--reply {
	margin: 0 0 10px;
	padding: 12px;
	background: #f8fafc;
}

/* 24.08.2026: ответы сразу под родителем (внутри li), с заметным отступом */
.cf-comment > .cf-comments__replies {
	list-style: none;
	margin: 12px 0 0;
	padding: 10px 0 0 14px;
	border-top: 1px solid #eef2f7;
	/* 24.08.2026: было border-left: 3px solid #bbf7d0 — зелёная линия убрана */
	border-left: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cf-comment__replies-wrap {
	list-style: none;
	margin: -6px 0 16px;
	padding: 0 0 0 18px;
}

.cf-comments__replies {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cf-comment__head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.cf-comment__avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
}

.cf-comment__avatar .cf-card__avatar-img,
.cf-comment__avatar .cf-card__avatar-fallback {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
}

.cf-comment__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cf-comment__name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.cf-comment__reply-to {
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
}

.cf-comment__time {
	font-size: 12px;
	color: #94a3b8;
}

.cf-comment__body {
	font-size: 15px;
	line-height: 1.55;
	color: #1e293b;
	word-break: break-word;
}

.cf-comment__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 10px;
}

.cf-comment__reply-btn,
.cf-comment__delete-btn {
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.cf-comment__reply-btn:hover,
.cf-comment__reply-btn:focus,
.cf-comment__reply-btn:focus-visible,
.cf-comment__reply-btn:active {
	color: #0f172a;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.cf-comment__delete-btn {
	color: #94a3b8;
}

.cf-comment__delete-btn:hover,
.cf-comment__delete-btn:focus,
.cf-comment__delete-btn:focus-visible,
.cf-comment__delete-btn:active {
	color: #dc2626;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

/* 24.08.2026: статусы модерации комментария — начало */
.cf-comment--pending {
	background: #fffbeb;
	border-color: #fde68a;
}

.cf-comment--rejected {
	background: #fff5f5;
	border-color: #fecaca;
}

.cf-comment__badge {
	display: inline-block;
	margin-top: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	width: fit-content;
}

.cf-comment__badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.cf-comment__badge--rejected {
	background: #fee2e2;
	color: #991b1b;
}

.cf-comment__reject-reason {
	margin: 0 0 8px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #fecaca;
	font-size: 13px;
	line-height: 1.4;
	color: #7f1d1d;
}

.cf-comment__reject-label {
	font-weight: 600;
	margin-right: 4px;
}

.cf-comment__actions .cf-btn {
	margin: 0;
}
/* 24.08.2026: статусы модерации комментария — конец */

.cf-comment-form-wrap {
	margin-top: 8px;
}

.cf-comment-form {
	padding: 14px;
	border: 1px solid #e8eef5;
	border-radius: 14px;
	background: #fff;
}

.cf-comment-form__reply-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	color: #64748b;
}

.cf-comment-form__reply-hint.is-hidden {
	display: none;
}

/* 24.08.2026: тихая «Отменить» рядом с «Отправить» — начало */
.cf-comment-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 12px;
}

.cf-comment-form__cancel-reply {
	margin: 0;
	padding: 6px 4px;
	border: 2px solid transparent !important;
	background: transparent !important;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #64748b !important;
	cursor: pointer;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.cf-comment-form__cancel-reply.is-hidden,
.cf-comment-form__cancel-reply[hidden] {
	display: none !important;
}

.cf-comment-form__cancel-reply:hover,
.cf-comment-form__cancel-reply:focus,
.cf-comment-form__cancel-reply:focus-visible,
.cf-comment-form__cancel-reply:active {
	color: #334155 !important;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}
/* 24.08.2026: тихая «Отменить» рядом с «Отправить» — конец */

.cf-comment-form__textarea {
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	width: 100%;
	min-height: 88px;
	padding: 12px 14px;
	border: 1px solid #dbe3ec !important;
	border-radius: 12px;
	background: #fff !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	resize: vertical;
	box-sizing: border-box;
}

.cf-comment-form__textarea:focus,
.cf-comment-form__textarea:focus-visible,
.cf-comment-form__textarea:active {
	border-color: #dbe3ec !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

.cf-comment-form--guest {
	/* 24.08.2026: как обычная форма, не узкая колонка с CTA */
	display: block;
	align-items: stretch;
	gap: 0;
}

.cf-comment-form__guest-hint {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #64748b;
}

a.cf-comment-form__guest-link,
a.cf-comment-form__guest-link:link,
a.cf-comment-form__guest-link:visited,
a.cf-comment-form__guest-link:hover,
a.cf-comment-form__guest-link:focus,
a.cf-comment-form__guest-link:active {
	color: #16a34a !important;
	font-weight: 600;
	text-decoration: underline !important;
	outline: none !important;
	box-shadow: none !important;
}

a.cf-comment-form__guest-link:focus-visible {
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28) !important;
	border-radius: 2px;
}

.cf-comment-form--guest .cf-comment-form__textarea {
	cursor: pointer;
	background: #f8fafc !important;
}

.cf-comment-form__guest-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #64748b;
}

@media (max-width: 640px) {
	.cf-comment > .cf-comments__replies {
		padding-left: 10px;
	}

	.cf-comment__replies-wrap {
		padding-left: 10px;
	}
}
/* 24.08.2026: страница поста + комментарии — конец */

/* 23.08.2026: стили ленты сообщества — конец */
