/* ═══════════════════════════════════════════════════════════════
   Цветовые токены (слой 1). Значения = текущие светлые.
   Тёмная тема будет переопределять эти переменные, не трогая правила.
   Переводим стили на переменные поэтапно.
   ═══════════════════════════════════════════════════════════════ */
:root {
	/* Акценты */
	--accent: #951ad4;
	--accent-magenta: #c432be;
	--accent-orchid: #a24fb0;
	--link: #2f98ff;

	/* Панель / бежевый */
	--panel-beige: #ede1e1;

	/* Текст */
	--text: #241d24;
	--text-heading: #2a2a3a;
	--text-mauve: #6d5968;
	--text-ink: #313149;
	--text-violet: #42365e;
	--text-muted: #8a8391;

	/* Тёплые */
	--warm: #d28254;
	--warm-dark: #5a3e36;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Загрузчик первого входа ───────────────────────────────── */
.yt_loader {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: linear-gradient(160deg, #f6ecec 0%, #efe4ea 45%, #e7dfe9 100%);
	opacity: 1;
	transition: opacity 0.5s ease;
	-webkit-user-select: none;
	user-select: none;
}
/* до решения о показе — прозрачен и не перехватывает клики */
.yt_loader.yt_loader_pending {
	opacity: 0;
	pointer-events: none;
}
.yt_loader.yt_loader_visible {
	opacity: 1;
	pointer-events: auto;
}
.yt_loader.yt_loader_hide {
	opacity: 0;
	pointer-events: none;
}
.yt_loader_inner {
	width: 100%;
	max-width: 340px;
	text-align: center;
}
.yt_loader_toad {
	font-size: 54px;
	line-height: 1;
	margin-bottom: 18px;
	animation: yt_loader_bob 1.6s ease-in-out infinite;
}
@keyframes yt_loader_bob {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50%      { transform: translateY(-8px) rotate(4deg); }
}
.yt_loader_title {
	font-size: 16px;
	font-weight: 600;
	color: #3a3540;
	margin-bottom: 20px;
}
.yt_loader_bar {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}
.yt_loader_seg {
	flex: 1 1 0;
	height: 10px;
	border-radius: 6px;
	background: rgba(58, 53, 64, 0.12);
	overflow: hidden;
	position: relative;
	transition: background 0.35s ease;
}
.yt_loader_seg::after {
	content: '';
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: left center;
	border-radius: 6px;
	background: linear-gradient(90deg, #c98bb0, var(--accent-orchid));
	transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.yt_loader_seg.filled::after {
	transform: scaleX(1);
}
.yt_loader_pct {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-orchid);
	margin-bottom: 18px;
}
.yt_loader_phrase {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(58, 53, 64, 0.7);
	min-height: 40px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.yt_loader_phrase.shown {
	opacity: 1;
	transform: translateY(0);
}

.form h1 {
	font-size: 18px !important;
	font-weight: 400;
	text-align: left;
	box-sizing: border-box;
	height: 38px;
	line-height: 30px;
	padding: 0;
	margin: 5px 0 14px 18px;
	align-self: flex-start;
	width: fit-content;
	max-width: calc(100% - 70px);
	background: none;
	border: 0;
	border-radius: 0;
	color: #4a3a66;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 501px) and (max-width: 700px) {
	.form h1 {
		width: calc(100% - 70px);
		margin-top: 6px;
		margin-left: 18px;
	}
}

@media (max-width: 500px) {
	.form h1 {
		width: calc(100% - 70px);
		margin-top: 10px;
		margin-left: 0;
	}
	/* На мобильных убираем внутренний отступ окна «Проекты на YarnToad» */
	.yarntoad_projects_data {
		padding: 0 !important;
	}
	.yarntoad_projects_data .yarn_list {
		padding: 0 !important;
	}
}

input::placeholder {
	transition: 0.3s;
}

input:focus::placeholder {
  color: transparent !important;
}

.w100 {
	width: 100%;
	justify-content: space-between;
}

.filter {
	min-height: 100vh;
	min-height: 100dvh;
	min-height: var(--app-height, 100vh);
	/*background-color: rgb(206 169 169 / 70%) !important;*/
	background-color: rgba(235, 203, 234, 0.3) !important;
	
}

.flex {
	display: flex !important;
}

input[type=text] {
	width: unset;
	outline: 0;
}

.no_overflow {
	overflow: hidden !important; 
}

.form.proj_add, .form.exmpl_add {
	background: rgba(255,255,255,0.3);
	border-radius: 10px;
	border: 5px solid var(--panel-beige);
	box-sizing: border-box;
	width: calc(100% - 10px);
}

.yarn_list.yarn_in_proj_form, .yarn_list.yarn_in_exmpl_form, .exmpl_in_proj_form {
	max-width: 500px;
	margin: auto;
}

.yarn_list.yarn_in_proj_form .item + .item,
.yarn_list.yarn_in_exmpl_form .item + .item,
.exmpl_in_proj_form .item + .item {
	margin-top: 10px;
}

/* Вертикальные отступы у прикреплённых карточек (пряжа/объекты) во всех формах */
.form .yarn_list[class*="_in_"] .item,
.form .exmpl_in_proj_form .item {
	margin-bottom: 22px;
}

.notify {
	display: none;
	background: #fff;
    padding: 5px;
    position: fixed;
    /* margin-top: 0px; */
    width: 300px;
    /* margin-left: -124px; */
    border-radius: 100px;
    text-align: center;
    border: 3px solid var(--panel-beige);
    box-sizing: border-box;
    z-index: 2;
    height: 68px;
    /* safe-area работает только при viewport-fit=cover в meta viewport */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.notify.hider {
	display: none !important;
}

.notify a.bt {
	display: inline-block;
    margin-top: 6px;
    background: #969b94;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 6px;
    margin-right: 6px;
    color: #fff;

}

.notify a.bt.good {
	background: #609436;
}

/* Режим редактирования (пряжа/проект/образец): кнопка сохранения зафиксирована по низу экрана,
   чтобы не скроллить до неё. Даём формам нижний отступ, чтобы контент не прятался под кнопкой. */
.form.yarn_add.edit_mode,
.form.proj_add.edit_mode,
.form.exmpl_add.edit_mode {
	padding-bottom: 110px !important;
}
.form.yarn_add.edit_mode .save-grad-button,
.form.proj_add.edit_mode .save-grad-button,
.form.exmpl_add.edit_mode .save-grad-button {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 16px;
	margin-left: auto;
	margin-right: auto;
	width: calc(100% - 32px);
	max-width: 380px;
	z-index: 60;
	/* Мягкий ореол ~15px, чтобы плавающая кнопка не смотрелась «голой» */
	box-shadow:
		0 8px 22px rgba(70,56,83,0.30),
		0 0 0 15px rgba(255,255,255,0.28),
		0 0 26px 14px rgba(255,255,255,0.55);
}

.mainmenu_line {
	display: block;
	/* Верхний отступ = высота «чёлки» (safe-area) + 10px. На устройствах без выреза env=0 → просто 10px */
	padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 10px;
	margin-bottom: 0;
	width: 100%;
	box-sizing: border-box;
	max-width: 507px;
	position: relative;
	z-index: 200;
}

/* В Telegram Mini App своя шапка — safe-area сверху не нужен, иначе большой отступ над меню */
.tg-mini .mainmenu_line { padding-top: 10px; }

/* Старые якоря скрыты — используются только JS для отслеживания активного раздела */
.mainmenu_line a { display: none !important; }

/* При любой открытой форме верхнее меню не показываем (иногда вылезает) */
body:has(.form.active) .mainmenu_line {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   Flip Navigation (fn-*)
   ═══════════════════════════════════════════════════════════ */
.fn-wrap {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 7px 0;
	border-radius: 22px;
	width: 100%;
	gap: 8px;
}

.fn-sq {
	flex-shrink: 0;
	padding: 5px;
	background: rgba(255,255,255,0.13);
	border: 1.5px solid rgba(255,255,255,0.28);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	margin-left: 5px;
}

.fn-sq-btn {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: hidden;
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	transition: transform 0.15s ease;
}
.fn-sq-btn:hover { transform: scale(1.05); }


.fn-btn-inner {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	overflow: hidden;
}
.fn-btn-inner::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 52%;
	border-radius: 10px 10px 60% 60%;
	background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, transparent 100%);
	z-index: 1;
}
.fn-home-bg { background: linear-gradient(145deg, rgba(80, 2, 69, 0.72), rgba(214, 34, 218, 0.68) 40%, rgba(130, 100, 200, 0.72) 75%, rgba(160, 130, 220, 0.6)); }
.fn-msg-bg  { background: linear-gradient(145deg, rgba(135, 100, 210, 0.75), rgba(98, 130, 141, 0.8) 45%, rgba(95, 65, 195, 0.85)); }

.fn-sq-btn svg {
	position: relative;
	z-index: 2;
	width: 19px;
	height: 19px;
}

.fn-badge {
	position: absolute;
	top: 3px; right: 3px;
	width: 15px; height: 15px;
	border-radius: 50%;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fn-badge-bg {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #ff6b6b, #e02020);
	border: 1.5px solid rgba(255,255,255,0.5);
}
.fn-badge-num {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	font-family: -apple-system, sans-serif;
	line-height: 1;
}

/* Бейдж новых постов/проектов на кнопке «Лента» — как у мессенджера, но фиолетовый */
.fn-lenta-shell { position: relative; }
.fn-lenta-badge {
	position: absolute;
	top: 8px; right: -1px;
	width: 15px; height: 15px;
	border-radius: 50%;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fn-lenta-badge-bg {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #a78bfa, #7c3aed);
	border: 1.5px solid rgba(255,255,255,0.5);
}
.fn-lenta-badge-num {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	font-family: -apple-system, sans-serif;
	line-height: 1;
}

.fn-hideable {
	flex-shrink: 0;
	transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, padding 0.4s, border-width 0.4s;
	overflow: hidden;
}
.fn-hideable.fn-hidden { max-width: 0 !important; opacity: 0; padding: 0 !important; border-width: 0 !important; pointer-events: none; }

.fn-msg-shell {
	max-width: 56px;
	padding: 5px;
	background: rgba(255,255,255,0.13);
	border: 1.5px solid rgba(255,255,255,0.28);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fn-lenta-shell {
	max-width: 120px;
	padding: 5px;
	background: rgba(255,255,255,0.14);
	border: 1.5px solid rgba(255,255,255,0.30);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fn-wide-btn {
	position: relative;
	height: 38px;
	padding: 0 10px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	overflow: hidden;
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	transition: transform 0.15s ease;
	background: transparent;
	white-space: nowrap;
}
/* Белая «таблетка» Ленты — выезжает из центра при активации */
.fn-wide-fill {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	background: rgba(255,255,255,0.95);
	z-index: 0;
	opacity: 0;
	transform: scaleX(0);
	transform-origin: center center;
	transition: transform 0.30s cubic-bezier(0.34, 1.20, 0.64, 1),
	            opacity   0.18s ease;
	pointer-events: none;
}
.fn-wide-fill::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 50%;
	background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, transparent 100%);
	border-radius: 10px 10px 50% 50%;
}
.fn-wide-btn.fn-active .fn-wide-fill {
	opacity: 1;
	transform: scaleX(1);
}
.fn-wide-btn:hover { transform: scale(1.02); }

.fn-wide-icon { display: none; }

.fn-wide-label {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 600;
	font-family: -apple-system, sans-serif;
	color: #7b5bc4;
}

.fn-flip-shell {
	flex: 1;
	min-width: 0;
	padding: 5px;
	background: rgba(255,255,255,0.13);
	border: 1.5px solid rgba(255,255,255,0.28);
	border-radius: 16px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	margin-right: 5px;
	position: relative;
}

.fn-flip-face {
	width: 100%;
	height: 38px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.fn-flip-front {
	position: relative;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	background: transparent;
}

/* Скользящая «таблетка» (как в .seg_control): разворачивается из центра
   кнопки и переплывает на соседний пункт */
.fn-seg-slider {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	border-radius: 10px;
	background: rgba(255,255,255,0.95);
	box-shadow: 0 1px 4px rgba(0,0,0,0.13), 0 0 1px rgba(0,0,0,0.06);
	pointer-events: none;
	opacity: 0;
	z-index: 0;
	transform: translateX(0) scaleX(0);
	transform-origin: center center;
	transition: transform 0.30s cubic-bezier(0.34, 1.20, 0.64, 1),
	            width     0.30s cubic-bezier(0.34, 1.20, 0.64, 1),
	            opacity   0.18s ease;
	will-change: transform, width;
}

/* ─── Context menu ─── */
.fn-context-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 160px;
	background: rgba(40,20,60,0.92);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 14px;
	overflow: hidden;
	z-index: 1000;
	padding: 4px 0;
}
.fn-ctx-item {
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 500;
	font-family: -apple-system, sans-serif;
	color: rgba(255,255,255,0.88);
	cursor: pointer;
	transition: background 0.12s ease;
}
.fn-ctx-item:hover { background: rgba(255,255,255,0.1); }
.fn-ctx-item.fn-ctx-active { color: #fff; font-weight: 700; background: rgba(255,255,255,0.08); }

.fn-seg-item {
	position: relative;
	flex: 1;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	z-index: 1;
	overflow: hidden;
}
.fn-seg-item:first-child { border-radius: 10px 0 0 10px; }
.fn-seg-item:last-child  { border-radius: 0 10px 10px 0; }

/* Когда активен один из основных пунктов (Пряжа/Проекты, не точки) —
   фон трека снимаем, каждый пункт становится отдельной скруглённой таблеткой */
.fn-flip-front:has(.fn-seg-item.fn-active:not(.fn-dots-seg)) {
	background: transparent;
}
.fn-flip-front:has(.fn-seg-item.fn-active:not(.fn-dots-seg)) .fn-seg-item {
	border-radius: 10px;
}
.fn-flip-front:has(.fn-seg-item.fn-active:not(.fn-dots-seg)) .fn-seg-item {
	background: none;
}
.fn-flip-front:has(.fn-seg-item.fn-active:not(.fn-dots-seg)) .fn-seg-divider {
	opacity: 0;
}

/* Когда активен пункт из выпадающего (точки активны, Пряжа/Проекты — нет) —
   то же самое: трек прозрачный, белая подложка только у точек */
.fn-flip-front:has(.fn-dots-seg.fn-active) {
	background: transparent;
}
.fn-flip-front:has(.fn-dots-seg.fn-active) .fn-seg-item {
	border-radius: 10px;
}
.fn-flip-front:has(.fn-dots-seg.fn-active) .fn-seg-item {
	background: none;
}
.fn-flip-front:has(.fn-dots-seg.fn-active) .fn-seg-divider {
	opacity: 0;
}
.fn-seg-item.fn-active::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: none;
	border-radius: inherit;
}
.fn-seg-item:hover { opacity: 0.88; }

.fn-seg-icon { display: none; }

.fn-seg-label {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 700;
	font-family: -apple-system, sans-serif;
	white-space: nowrap;
	letter-spacing: -0.2px;
}
.fn-seg-item:not(.fn-active) .fn-seg-label { color: rgba(80,50,120,0.72); }
.fn-seg-item:not(.fn-active) .fn-dot { background: rgba(100,60,160,0.45); }
.fn-seg-item.fn-active .fn-seg-label { color: #000; }
.fn-seg-item.fn-active .fn-dot { background: #6030a8; }

.fn-seg-divider {
	width: 1px;
	height: 100%;
	flex-shrink: 0;
	background: rgba(120,80,180,0.18);
	transition: opacity 0.2s;
}
.fn-seg-item.fn-active + .fn-seg-divider,
.fn-seg-divider:has(+ .fn-seg-item.fn-active) { opacity: 0; }

.fn-dots-seg { flex: 0 0 40px; }
.fn-dots-row { display: flex; align-items: center; gap: 2.5px; position: relative; z-index: 1; }
.fn-dot { width: 3.5px; height: 3.5px; border-radius: 50%; }

.fn-close-seg { flex: 0 0 24px; }
.fn-close-x { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.fn-close-x::before, .fn-close-x::after { content: ''; position: absolute; width: 9px; height: 1.5px; background: rgba(255,255,255,0.9); border-radius: 2px; }
.fn-close-x::before { transform: rotate(45deg); }
.fn-close-x::after  { transform: rotate(-45deg); }

@media (max-width: 440px) {
	.fn-wrap { gap: 5px; }
	.fn-sq { margin-left: 3px; padding: 4px; border-width: 1px; }
	.fn-msg-shell, .fn-lenta-shell { padding: 4px; border-width: 1px; }
	.fn-flip-shell { margin-right: 3px; padding: 4px; border-width: 1px; }
	.fn-seg-label, .fn-wide-label { font-size: 14px; }
}

.mainmenu_line a.messages_link {
	padding-top: 0;
	padding-bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.messages_link_badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #d94a74;
	color: #fff;
	font-size: 10px;
	line-height: 1;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
	pointer-events: none;
}

.mainmenu_line a.home_link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding-left: 0;
	padding-right: 0;
	background: linear-gradient(135deg, #4b5b86 0%, #7f6a97 45%, #cf8d7d 100%);
	box-shadow: 0 10px 18px rgba(62, 58, 89, 0.2);
	position: relative;
	overflow: hidden;
}

.mainmenu_line a.home_link:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 55%);
}

.mainmenu_line a.home_link svg {
	position: relative;
	z-index: 1;
}

.mainmenu_line a.actual {
	background: #7160b6;
}

.btn_plus, .btn_menu, .btn_home {
	display: block;
    width: 30px;
    height: 30px;
    font-size: 34px;
    text-align: center;
    line-height: 30px;
    border-radius: 100px;
    background: #fff;
    border: 4px solid var(--panel-beige);
}

.btn_add {
	float: left;
}

.btn_add i {
	display: inline-block;
    height: 30px;
    width: 30px;
    font-size: 34px;
    text-align: center;
    line-height: 30px;
    border-radius: 100px;
    background: #fff;
    border: 4px solid var(--panel-beige);
    position: absolute;
    margin-top: -5px;
}

.btn_add bac {
	line-height: 30px;
    border-radius: 0 100px 100px 0;
    background: var(--panel-beige);
    border: 4px solid var(--panel-beige);
    padding: 0 12px;
    margin-left: 27px;
    border-left: 0;
}

.btn_add i {
	font-size: 34px;
	font-style: unset;
}

.container {
	justify-content: unset;
	/* Нижний отступ = safe-area низа (домашний индикатор) + 10px. На устройствах без него env=0 → 10px */
	padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.container,
.container .yarn_list,
.container .mainmenu_line {
	transition: opacity 0.22s ease;
}

.container.toad_window_open .yarn_list,
.container.toad_window_open .mainmenu_line {
	opacity: 0;
	/* Невидимое (opacity:0) меню/список всё равно ловит клики и перехватывал крестик
	   toad_window — отключаем хит-тест, раз элемент визуально скрыт. */
	pointer-events: none;
}

.w30vw {
	width: 30vw !important;
}

.yarn-json-data {
	display: none;
}

.yarn_list.home, .yarn_list.messages, .yarn_list.lenta, .yarn_list.blog, .yarn_list.opisaniya, .yarn_list.tools, .form.blog_add, .form.opisanie_add, .form.tool_add, .form.sovm_add {
	display: none;
}

.yarn_list {
	width: 100%;
	max-width: 500px;
	box-sizing: border-box;
}

.yarn_list.home {
	padding: 0;
	box-sizing: border-box;
}

.empty_state_item {
	min-height: 0 !important;
}

.home_stage {
	max-width: 500px;
	margin: 0 auto;
}

.home_intro {
	padding: 20px 18px;
	border-radius: 28px;
	background:
		radial-gradient(circle at top right, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 38%),
		linear-gradient(135deg, rgba(68,95,146,0.94) 0%, rgba(120,95,144,0.92) 52%, rgba(203,143,118,0.92) 100%);
	box-shadow: 0 16px 34px rgba(70, 56, 83, 0.18);
	color: #fff;
	margin-bottom: 14px;
}

.home_intro_eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.82;
	margin-bottom: 10px;
}

.home_intro_title {
	font-size: 28px;
	line-height: 1.05;
	margin-bottom: 10px;
}

.home_intro_text {
	font-size: 14px;
	line-height: 1.45;
	max-width: 320px;
	color: rgba(255,255,255,0.88);
}

.home_quick_grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.home_quick_card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: 14px;
	border: 0;
	width: 100%;
	padding: 15px 16px;
	text-align: left;
	border-radius: 22px;
	background: rgba(255,255,255,0.92);
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
	cursor: pointer;
	box-sizing: border-box;
}

.home_quick_card.yarns {
	background: linear-gradient(180deg, #fff8f2 0%, #f8ece6 100%);
}

.home_quick_card.projects {
	background: linear-gradient(180deg, #f6f7ff 0%, #ebeafd 100%);
}

.home_quick_card.examples {
	background: linear-gradient(180deg, #f6fffb 0%, #e7f7ef 100%);
}

.home_quick_card.blog {
	background: linear-gradient(180deg, #fff7fb 0%, #f8eaf0 100%);
}

.home_quick_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: 7px 10px;
	border-radius: 14px;
	background: rgba(255,255,255,0.72);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0;
}

.home_quick_name {
	font-size: 19px;
	color: #000;
	margin-bottom: 0;
}

.home_quick_meta {
	font-size: 13px;
	color: rgba(0,0,0,0.55);
	text-align: right;
	white-space: nowrap;
}


.params_form {
	padding-top: 4px;
}

/* Белая карточка настроек (как в toad_window проекта) — поднята выше */
.params_window .params_data { padding-top: 4px; }
.params_window .proj_post_single { margin-top: 0; }
.params_window .proj_post_single .item {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.params_window .proj_post_single .item + .item { margin-top: 12px; }
.params_logout_card { text-align: center; }
#yarn_color::placeholder { font-size: 14px; }
.yarn_color_mode_hint {
	width: 100%;
	font-size: 13px;
	line-height: 1.4;
	color: #9a8f97;
	margin: -6px 0 14px;
}

/* Дропдаун грамовки метража */
.gram_dd { position: relative; display: inline-block; vertical-align: middle; }
.gram_dd_trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e2dbe0;
	border-radius: 10px;
	padding: 7px 12px;
	font-size: 15px;
	color: #241d24;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.gram_dd_trigger .gram_dd_chevron { width: 15px; height: 15px; color: #9a8f97; transition: transform 0.15s ease; }
.gram_dd_trigger.open .gram_dd_chevron { transform: rotate(180deg); }
.gram_dd_menu {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	min-width: 84px;
	background: #fff;
	border: 1px solid #e7dee6;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.12);
	padding: 6px;
	z-index: 40;
	display: none;
	max-height: 240px;
	overflow-y: auto;
}
.gram_dd_menu.open { display: block; }
.gram_dd_opt {
	padding: 9px 22px 9px 12px;
	border-radius: 8px;
	font-size: 15px;
	color: #241d24;
	cursor: pointer;
	text-align: left;
}
.gram_dd_opt:hover { background: #f4eef3; }
.gram_dd_opt.is_active { background: linear-gradient(124deg, #a06bd8 0%, #7d6bf0 100%); color: #fff; }

.params_username_status {
	font-size: 12px;
	min-height: 16px;
	margin: 4px 4px 0;
	line-height: 1.3;
	text-align: center;
}
.params_username_status.ok { color: #1ca021; }
.params_username_status.taken { color: #d23a86; }
.params_username_status.checking { color: #9a8f97; }
.item.params_logout_card { min-height: unset !important; }
.params_logout_btn {
	border: 0;
	background: none;
	color: #b8434f;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 100px;
	cursor: pointer;
}
.params_logout_btn:active { background: rgba(184,67,79,0.08); }

/* Поля настроек — друг под другом */
.params_fields_row {
	display: block;
}
.params_fields .input-container { margin-bottom: 8px; }
/* Фон полей ввода только в настройках */
.params_form .input-container input {
	background: rgb(236, 226, 226);
}

.params_userpic_block {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding: 12px;
	border-radius: 18px;
	background: rgba(123,108,240,0.06);
	border: 1px solid rgba(0,0,0,0.05);
}

/* Блок загрузки своего фона */
.params_bg_block {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 12px 0 4px;
	padding: 12px;
	border-radius: 18px;
	background: rgba(123,108,240,0.06);
	border: 1px solid rgba(0,0,0,0.05);
}
.params_bg_preview {
	width: 96px;
	height: 60px;
	flex: 0 0 96px;
	border-radius: 12px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #eadfd8;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
	position: relative;
	overflow: hidden;
}
.params_bg_preview.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}
.params_bg_actions { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.params_bg_delete_btn {
	border: 0;
	background: none;
	color: #b8434f;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 4px;
	cursor: pointer;
}
.params_bg_delete_btn:active { opacity: 0.7; }

.params_userpic_preview_wrap {
	position: relative;
	width: 84px;
	height: 84px;
	flex: 0 0 84px;
}
.params_userpic_edit_btn {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 3px 8px rgba(90,60,150,0.3);
	z-index: 2;
}
.params_userpic_edit_btn svg { width: 15px; height: 15px; }
.params_userpic_edit_btn.is_hidden { display: none; }

/* Модалка кадрирования */
.uc_overlay {
	position: fixed;
	inset: 0;
	background: rgba(30,20,45,0.55);
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.uc_modal {
	background: #fff;
	border-radius: 18px;
	padding: 20px;
	width: 100%;
	max-width: 320px;
	box-shadow: 0 20px 50px rgba(40,20,70,0.35);
	text-align: center;
}
.uc_title { font-size: 16px; font-weight: 700; color: #33294d; margin-bottom: 16px; }
.uc_viewport {
	position: relative;
	width: 260px;
	height: 260px;
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	background: #201a2e;
	touch-action: none;
	cursor: grab;
}
.uc_viewport:active { cursor: grabbing; }
.uc_img { position: absolute; left: 0; top: 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.uc_ring {
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: 0 0 0 9999px rgba(0,0,0,0.35) inset;
	border-radius: 50%;
}
.uc_zoom { width: 100%; max-width: 260px; margin: 16px auto 8px; display: block; }
.uc_actions { display: flex; gap: 10px; margin-top: 8px; }
.uc_btn { flex: 1 1 50%; border: 0; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.uc_cancel { background: #ece7f3; color: #6a5a86; }
.uc_save { background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%); color: #fff; }
.uc_save:disabled { opacity: 0.7; cursor: default; }

.params_userpic_preview {
	width: 84px;
	height: 84px;
	flex: 0 0 84px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #eadfd8;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
	position: relative;
	overflow: hidden;
}

.params_userpic_preview.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%) !important;
	position: relative;
}

.params_userpic_preview.empty:before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 60%;
	height: 60%;
	transform: translate(-50%, -50%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.9;
}

.params_userpic_actions {
	flex: 1 1 auto;
}

.params_userpic_actions .reg-button {
	min-width: 220px;
}

.params_userpic_actions .pic_loading.loading {
	margin-top: 0;
	margin-bottom: 12px;
}

.params .input-container {
	margin-bottom: 12px;
}

.params .input-container input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.params_save_wrap {
	padding-top: 18px;
}

.params_save_wrap .reg-button {
	min-width: 220px;
}

.lenta_blog_feed_data {
	border-radius: 0;
	box-sizing: border-box;
	padding: 10px;
	width: 100%;
	overflow: auto;
	padding-bottom: 0;
}

.lenta_blog_feed_header {
	background: #fff;
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
	padding: 8px 4px 16px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.lenta_blog_feed_header_top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lenta_blog_feed_header_bottom {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding-left: 78px;
}

.lenta_blog_feed_message {
	border: 0;
	border-radius: 14px;
	background: rgba(109,89,104,0.14);
	color: #5f4b59;
	font-size: 13px;
	line-height: 1;
	padding: 10px 12px;
	cursor: pointer;
	white-space: nowrap;
}

.lenta_blog_feed_message:active {
	transform: translateY(1px);
}

.lenta_blog_feed_userpic {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #e6d8d0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
}

.lenta_blog_feed_userpic.empty {
	background-image: linear-gradient(135deg, #d8d8d8 0%, #bfbfbf 100%);
}

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

.lenta_blog_feed_heading .project_type {
	margin-bottom: 4px;
}

.lenta_blog_feed_name {
	font-size: 22px;
	line-height: 1.15;
	color: #000;
}

.lenta_blog_feed_userline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.lenta_blog_feed_username {
	font-size: 13px;
	color: rgba(0,0,0,0.5);
}

.lenta_blog_feed_subscribers {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}
.lenta_blog_feed_subscribers::before {
	content: '·';
	margin-right: 8px;
	color: rgba(0,0,0,0.4);
	font-weight: 400;
}
.lenta_blog_feed_userline .lenta_blog_feed_username:empty + .lenta_blog_feed_subscribers::before {
	content: '';
	margin-right: 0;
}

.lenta_blog_feed_count {
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 999px;
	background: linear-gradient(105deg, #e694db, #eb8aac 45%, #d48af1 70%, #a98fe8);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
.lenta_blog_feed_count:empty { display: none; }

.lenta_blog_feed_subscribe {
	border: 1px solid rgba(0,0,0,0.08);
	background: #fff7f1;
	color: #6a4437;
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.lenta_blog_feed_subscribe.subscribed {
	background: #f1ece9;
	color: #5a5552;
}

.lenta_blog_feed_subscribe.pressed {
	opacity: 0.7;
}

.lenta_blog_feed_posts .yarn_list.blog {
	display: block;
	padding: 0;
	margin: 0;
}

.lenta_blog_feed_posts .item:last-child {
	margin-bottom: 0;
}

.lenta_blog_feed_loading_state,
.lenta_blog_feed_error_state {
	padding: 18px 6px 22px;
	text-align: center;
}

.lenta_blog_feed_loading_state .loading {
	display: block;
}

.lenta_blog_feed_loading_text {
	margin-top: -4px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(255,255,255,0.95) 50%, rgba(0,0,0,0.35) 100%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lentaLoadingShine 1.8s linear infinite;
}

@keyframes lentaLoadingShine {
	0% {
		background-position: 200% center;
	}
	100% {
		background-position: -20% center;
	}
}

.lenta_blog_feed_error_text {
	font-size: 14px;
	line-height: 1.4;
	color: rgba(0,0,0,0.68);
	margin-bottom: 12px;
}

.lenta_blog_feed_retry {
	min-width: 0;
	height: 36px;
	padding: 0 16px;
	font-size: 13px;
	border-radius: 999px;
}

.yarn_list.lenta .lenta_blog_item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	background: rgba(255,255,255,0.94);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.06);
	cursor: pointer;
}

.yarn_list.lenta .lenta_blog_item_loading {
	cursor: default;
	pointer-events: none;
}

.lenta_loading_avatar {
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	border-radius: 50%;
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%);
	background-size: 220% 100%;
	animation: commentsLoadingShine 1.2s linear infinite;
}

.lenta_loading_avatar.small {
	width: 42px;
	height: 42px;
	flex-basis: 42px;
}

.lenta_loading_group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.lenta_loading_group.wide {
	padding-top: 3px;
}

.lenta_loading_group .comments_loading_line {
	margin-bottom: 0;
}

.lenta_loading_badge,
.lenta_loading_footer_left,
.lenta_loading_footer_right,
.lenta_loading_media_box {
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%);
	background-size: 220% 100%;
	animation: commentsLoadingShine 1.2s linear infinite;
}

.block_proj_about textarea {
	width: 100%;
	min-height: 160px;
	border-radius: 18px;
	padding: 14px 18px;
	box-sizing: border-box;
	border: 0;
	margin: 0;
	background: #f5f0f7;
	text-align: left;
	outline: 0;
}

.lenta_loading_badge {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	flex: 0 0 28px;
}

.lenta_posts_loading_list .lenta_post_loading_item {
	pointer-events: none;
}

.lenta_loading_media_row {
	margin-top: 10px;
}

.lenta_loading_media_box {
	width: 100%;
	height: 210px;
	border-radius: 16px;
}

.lenta_loading_footer_left {
	width: 42px;
	height: 18px;
	border-radius: 999px;
}

.lenta_loading_footer_right {
	width: 74px;
	height: 14px;
	border-radius: 999px;
	margin-left: auto;
}

.list_loading_item {
	pointer-events: none;
}

.list_loading_item .comments_loading_line {
	margin-bottom: 0;
}

.list_loading_media {
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%) !important;
	background-size: 220% 100% !important;
	animation: commentsLoadingShine 1.2s linear infinite;
}

.list_loading_item .item_brand,
.list_loading_item .item_name {
	padding-top: 2px;
	padding-bottom: 2px;
}

.list_loading_badge {
	width: 58px;
	height: 14px;
	border-radius: 999px;
	margin: 0 auto;
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%);
	background-size: 220% 100%;
	animation: commentsLoadingShine 1.2s linear infinite;
}

.yarn_list.blog .list_loading_item_blog {
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.yarn_list.lenta .lenta_section {
	max-width: 500px;
	margin: 0 auto 14px auto;
}

/* ─── Новые люди ──────────────────────────────────────────────────────── */
/* ─── Новости проектов в ленте ────────────────────────────────────────── */
/* ─── Промо-кнопка «Проекты на YarnToad» ────────────────────────────── */
/* Блок «Проекты на YarnToad» в ленте: полупрозрачный фон + белая подложка с отступом */
.lenta_projects_block {
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.22);
	border-radius: 16px;
	padding: 8px;
	margin-bottom: 14px;
}
.lenta_projects_inner {
	background: #fff;
	border-radius: 12px;
	padding: 12px;
}
.lenta_projects_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.lenta_projects_title {
	font-size: 16px;
	font-weight: 700;
	color: #241d24;
	text-align: left;
}
.lenta_projects_all_btn {
	border: 0;
	background: var(--panel-beige, #ece1e1);
	color: #241d24;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 100px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}
.lenta_projects_all_btn:hover { filter: brightness(0.97); }
.lenta_projects_badge {
	display: inline-block;
	margin-left: 7px;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	box-sizing: border-box;
	background: #e0574f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 100px;
	text-align: center;
	vertical-align: middle;
}
.lenta_projects_grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.lenta_projects_empty {
	grid-column: 1 / -1;
	text-align: center;
	color: rgba(0,0,0,0.45);
	font-size: 13px;
	padding: 14px 6px;
}
.lenta_proj_card {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(0,0,0,0.03);
	border-radius: 10px;
	padding: 6px;
	cursor: pointer;
	min-width: 0;
}
.lenta_proj_card:hover { background: rgba(0,0,0,0.06); }
.lenta_proj_card_img {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.lenta_proj_card_text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}
.lenta_proj_card_name {
	font-size: 13px;
	font-weight: 600;
	color: #241d24;
	line-height: 1.2;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.lenta_proj_card_type {
	font-size: 11px;
	color: rgba(36,29,36,0.55);
	line-height: 1.2;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ─── Скелетоны загрузки (общий шиммер commentsLoadingShine) ───────────── */
.skel_box, .skel_line {
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%);
	background-size: 220% 100%;
	animation: commentsLoadingShine 1.2s linear infinite;
}
.skel_line { height: 11px; border-radius: 999px; }
/* Превью проектов в ленте */
.lenta_proj_card_skel { pointer-events: none; }
.lenta_proj_card_skel .lenta_proj_card_img { background-image: none; }
.lenta_proj_card_skel .lenta_proj_card_text { width: 100%; }
.lenta_proj_card_skel .skel_line_name { width: 80%; margin-bottom: 6px; }
.lenta_proj_card_skel .skel_line_type { width: 50%; height: 9px; }
/* Список окна «Проекты на YarnToad» */
.ytp_skel_item { pointer-events: none; }
.ytp_skel_item .yarn_img { background-image: none !important; }
.ytp_skel_item .skel_line_title { width: 60%; height: 16px; margin-left: 100px; }
.ytp_skel_item .skel_line_sub { width: 40%; height: 11px; margin-left: 100px; margin-top: 12px; }
.ytp_skel_item .skel_line_bottom { width: 52%; height: 11px; margin-top: 22px; }

/* ─── Окно «Проекты на YarnToad» ────────────────────────────────────── */
.yarntoad_projects_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}
.yarntoad_projects_header .project_type {
	font-size: 20px;
	font-weight: 700;
}
.yarntoad_projects_close {
	flex: none;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	color: #55505a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.yarntoad_projects_close:active { background: rgba(0,0,0,0.12); }
.yarntoad_projects_loading,
.yarntoad_projects_empty {
	padding: 24px 8px;
	text-align: center;
	color: rgba(0,0,0,0.5);
	font-size: 14px;
}

.yarntoad_projects_more {
	display: flex;
	justify-content: center;
	padding: 14px 8px 24px;
}
.yarntoad_projects_more_btn {
	border: 0;
	background: rgba(255,255,255,0.6);
	color: var(--text-violet);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 100px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(70,56,83,0.12);
}
.yarntoad_projects_more_btn:disabled { opacity: 0.6; cursor: default; }

/* Фильтры/поиск проектов */
.yarntoad_projects_filters {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.yarntoad_proj_type_chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}
.yarntoad_proj_type_chips::-webkit-scrollbar { display: none; }
.ytp_chip {
	flex: 0 0 auto;
	border: 0;
	background: rgba(255,255,255,0.5);
	color: var(--text-violet);
	border-radius: 100px;
	padding: 6px 13px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.ytp_chip.active {
	background: var(--accent-orchid, #7d5f90);
	color: #fff;
}

/* Подтипы выбранного типа — вторичный ряд чипов */
.yarntoad_proj_subtype_chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	margin-top: -4px;
	padding-bottom: 2px;
	scrollbar-width: none;
}
.yarntoad_proj_subtype_chips::-webkit-scrollbar { display: none; }

.yarntoad_proj_status_chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}
.yarntoad_proj_status_chips::-webkit-scrollbar { display: none; }
.ytp_subchip {
	font-size: 12px;
	padding: 5px 11px;
	background: rgba(255,255,255,0.32);
}
.ytp_subchip.active {
	background: var(--accent-orchid, #7d5f90);
	color: #fff;
}

/* Чекбокс «С описанием» в фильтрах проектов */
.yarntoad_proj_has_opisanie {
	display: flex;
	align-items: center;
	padding: 2px 0;
}
.yarntoad_proj_has_opisanie .yt_checkbox {
	width: auto;
}
.yarntoad_proj_has_opisanie .yt_checkbox .yt_checkbox_box {
	width: 20px;
	height: 20px;
	border-radius: 7px;
}
.yarntoad_proj_has_opisanie .yt_checkbox .yt_checkbox_label {
	font-size: 13px;
	font-weight: 600;
}

/* Компактные пузыри фильтров (пряжа / плотность) — узкие поля рядом */
.ytp_filter_bubbles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ytp_bubble {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 3px solid var(--panel-beige);
	border-radius: 50px;
	padding: 4px 10px 4px 12px;
}
.ytp_bubble_label {
	font-size: 12px;
	color: #494343;
	white-space: nowrap;
}
.ytp_bubble input {
	border: 0;
	outline: 0;
	background: rgba(0,0,0,0.045);
	border-radius: 50px;
	padding: 5px 10px;
	font-size: 12px;
	color: var(--text-violet);
	box-sizing: border-box;
	-moz-appearance: textfield;
}
.ytp_bubble input::placeholder {
	font-size: 12px;
	font-weight: 400;
	color: rgba(58,53,64,0.5);
	opacity: 1;
}
.ytp_bubble input::-webkit-input-placeholder { font-size: 12px; font-weight: 400; color: rgba(58,53,64,0.5); }
.ytp_bubble input::-webkit-outer-spin-button,
.ytp_bubble input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ytp_bubble .ytp_yarn_brand { width: 84px; }
.ytp_bubble .ytp_yarn_name { width: 104px; }
.ytp_bubble .ytp_gauge_s, .ytp_bubble .ytp_gauge_r { width: 42px; padding: 5px 6px; text-align: center; }
.ytp_bubble .ytp_size { width: 54px; padding: 5px 8px; }

/* ─── Чип автора (аватар в кружке + имя) ────────────────────────────── */
.author_chip {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}
.author_chip_avatar {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #d9c8d6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
}
.author_chip_name {
	font-size: 12px;
	color: rgba(0,0,0,0.6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.author_chip_in_card {
	margin-top: 8px;
	padding-top: 8px;
}
.author_chip_clickable {
	cursor: pointer;
}
.author_chip_clickable:hover .author_chip_name {
	text-decoration: underline;
}
.author_chip_in_detail {
	margin-bottom: 10px;
}
.author_chip_in_detail .author_chip_avatar {
	width: 34px;
	height: 34px;
	font-size: 12px;
}
.author_chip_in_detail .author_chip_name {
	font-size: 15px;
	font-weight: 600;
	color: #3a3540;
}

.lenta_my_blog_card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.22);
	border-radius: 14px;
	cursor: pointer;
	margin-bottom: 14px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background 0.15s ease;
}
.lenta_my_blog_card:hover { background: rgba(255,255,255,0.2); }
.lenta_my_blog_card svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Главная: профиль ──────────────────────────────────────────────── */
.home_profile_row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 4px;
}

.home_profile_avatar {
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: rgba(255,255,255,0.45);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.home_profile_avatar.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}

.home_profile_row_text {
	text-align: left;
}

.home_profile_name {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 2px;
}

.home_profile_username {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
	margin-top: 4px;
	padding: 6px 14px;
	background: rgb(232 218 242 / 75%);
	border: 1.5px solid rgba(255,255,255,0.9);
	border-radius: 100px;
	-webkit-user-select: none;
	user-select: none;
}
.home_profile_username::after {
	content: '→';
	font-size: 13px;
}

.home_profile_stats {
	margin-top: 10px;
}

/* ─── Компактный пузырь «Мой блог» на главной ──────────────────────── */
.home_profile_block {
	padding: 14px;
}
.home_blog_bubble {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.home_blog_bubble .home_profile_avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
}
.home_blog_bubble_text {
	min-width: 0;
	flex: 1 1 auto;
	text-align: left;
}
.home_blog_bubble_title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--text-violet);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home_blog_bubble_subs {
	font-size: 12px;
	color: rgba(58,53,64,0.6);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home_blog_write_btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: var(--accent);
	color: #fff;
	border-radius: 100px;
	padding: 8px 14px 8px 11px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.home_blog_write_btn svg { width: 16px; height: 16px; }
.home_blog_write_btn:active { opacity: 0.85; }
.home_blog_settings_btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	background: rgba(123,108,240,0.12);
	color: var(--text-violet);
	border-radius: 100px;
	cursor: pointer;
}
.home_blog_settings_btn:active { opacity: 0.7; }
@media (max-width: 380px) {
	.home_blog_write_btn span { display: none; }
	.home_blog_write_btn { padding: 9px; }
}

/* Достижения (медальки) */
.home_profile_achievements {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.home_profile_achievement {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255,255,255,0.45);
	border-radius: 100px;
	padding: 7px 13px 7px 8px;
	font-size: 13px;
	font-weight: 600;
}

.home_profile_achievement_medal {
	width: 24px;
	height: 24px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #f6c548, #e89b2d);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 1px 4px rgba(160, 110, 20, 0.35);
}

.home_profile_achievements_empty {
	font-size: 13px;
	opacity: 0.6;
}

/* ─── Главная: блок «События» ───────────────────────────────────────── */
.home_events_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}
.home_event {
	background: #fff;
	border-radius: 14px;
	padding: 10px 12px;
	text-align: left;
}
/* Пост и комментарий — единый пузырь: комментарий без своей подложки, с разделителем */
.home_event .home_event_cmt.proj-cmt {
	background: transparent;
	border-radius: 0;
	padding: 8px 0 0;
	margin-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.07);
}
.home_event_cmt_skel {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.07);
}
.home_events_empty {
	font-size: 13px;
	color: rgba(58,53,64,0.6);
	line-height: 1.35;
	padding: 6px 2px;
}
/* Бейдж с числом новых событий на кнопке «К событиям» */
.home_events_badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 100px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Сводные пузыри-отчёты */
.home_event_summary {
	display: flex;
	align-items: center;
	gap: 9px;
	background: rgba(255,255,255,0.55);
	border-radius: 12px;
	padding: 11px 13px;
	cursor: pointer;
}
.home_event_summary:active { background: rgba(255,255,255,0.75); }
.home_event_summary_ico {
	font-size: 15px;
	flex: 0 0 auto;
	width: 22px;
	text-align: center;
}
.home_event_summary_text {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-violet);
}
.home_event_summary_skel {
	height: 42px;
	border-radius: 12px;
}
/* Окно «События» — список */
.events_window_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.events_window_empty {
	font-size: 13px;
	color: rgba(58,53,64,0.6);
	line-height: 1.35;
	padding: 10px 4px;
}
.home_event:active { background: #f2f2f2; }
.home_event_top {
	display: flex;
	align-items: center;
	gap: 8px;
}
.home_event_avatar {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}
.home_event_avatar.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}
.home_event_meta { min-width: 0; flex: 1 1 auto; }
.home_event_actor {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-violet);
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home_event_time {
	font-size: 11px;
	color: rgba(58,53,64,0.5);
	line-height: 1.15;
	margin-top: 1px;
	white-space: nowrap;
}
.home_event_userlink { cursor: pointer; }
.home_event_actor.home_event_userlink { color: var(--accent); }
.home_event_userlink:active { opacity: 0.7; }
.home_event_post {
	cursor: pointer;
}
.home_event_post_inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}
.home_event_post_inner .home_event_post_img {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
}
.home_event_post_text {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.home_event_post_meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin-top: 8px;
}
.home_event_post_date {
	font-size: 12px;
	color: rgba(58,53,64,0.55);
}
.home_event_kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-self: flex-start;
}
.home_event_kind {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 9px;
	border-radius: 100px;
	color: #fff;
}
.home_event_kind_blog { background: #6d5968; }
.home_event_kind_proj { background: var(--accent); }
.home_event_kind_cmt  { background: #3f8ea0; }
.home_event_kind_like { background: #d1567f; }
.home_event_kind_reply { background: #5a8a4a; }
.home_event_post_sub {
	font-size: 12px;
	color: rgba(58,53,64,0.65);
}
.home_event_likeline {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(0,0,0,0.07);
	font-size: 13px;
	font-weight: 600;
	color: #241d24;
}
.home_event_likeline .home_event_stat_ico { width: 15px; height: 15px; }

/* ─── Событие «подписка на блог» ───────────────────────────────────────── */
.home_event_subs_block .home_event_likeline {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.home_event_sub_ico { font-size: 15px; line-height: 1; }
.home_event_subs_list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-top: 10px;
}
.home_event_subr {
	display: inline-block;
	padding: 5px 12px;
	background: rgba(143,107,214,0.12);
	color: #6a4fb0;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.home_event_subr:active { background: rgba(143,107,214,0.2); }
.home_event_subs_block .home_event_meta_line {
	margin-top: 8px;
	font-size: 11px;
	color: #9a8fb0;
}

/* ─── Ответы на комментарии (блог) ─────────────────────────────────────── */
.comment_reply_bar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(149,26,212,0.07);
	border-left: 3px solid var(--accent);
	border-radius: 8px;
	padding: 7px 10px;
	margin: 0 0 8px;
}
.comment_reply_bar_body { min-width: 0; flex: 1 1 auto; }
.comment_reply_bar_title {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
}
.comment_reply_bar_text {
	font-size: 12px;
	color: rgba(36,29,36,0.7);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.comment_reply_bar_cancel {
	flex: 0 0 auto;
	border: 0;
	background: rgba(0,0,0,0.06);
	color: #55505a;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
/* Цитата внутри комментария */
.comment_reply_quote {
	border-left: 3px solid rgba(149,26,212,0.45);
	background: rgba(149,26,212,0.05);
	border-radius: 6px;
	padding: 5px 9px;
	margin-bottom: 6px;
	cursor: pointer;
	max-width: 100%;
}
.comment_reply_quote_author {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	line-height: 1.2;
}
.comment_reply_quote_text {
	font-size: 12px;
	color: rgba(36,29,36,0.7);
	line-height: 1.25;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.proj-cmt.comment_highlight {
	animation: commentHighlightPulse 1.6s ease;
}
@keyframes commentHighlightPulse {
	0%, 100% { background: #fff; }
	25% { background: rgba(149,26,212,0.14); }
}
.home_event_post_img {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}
.home_event_post_text { min-width: 0; flex: 1 1 auto; }
.home_event_post_author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.home_event_post_ava {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}
.home_event_post_ava.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}
.home_event_post_authorname {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
}
.home_event_post_snippet {
	font-size: 14px;
	color: #000;
	line-height: 1.45;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.home_event_post_stats {
	display: flex;
	gap: 12px;
	margin-top: 4px;
}
.home_event_stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: rgba(58,53,64,0.7);
}
.home_event_stat_ico {
	width: 14px;
	height: 14px;
	object-fit: contain;
	color: rgba(58,53,64,0.6);
}
.home_event_comment {
	margin-top: 8px;
	background: rgba(149,26,212,0.06);
	border-radius: 10px;
	padding: 8px 10px;
}
.home_event_comment_head {
	display: flex;
	align-items: center;
	gap: 8px;
}
.home_event_comment_text {
	font-size: 13px;
	color: #241d24;
	line-height: 1.3;
	margin-top: 6px;
}

/* ─── Главная: блок «Моя пряжа» ─────────────────────────────────────── */
.home_yarn_block,
.home_proj_block,
.home_profile_block,
.home_events_block,
.home_beta_block {
	position: relative;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.22);
	border-radius: 20px;
	padding: 22px; /* 8px рамка + 14px внутренний отступ на белой подложке */
	margin-bottom: 14px;
	color: var(--text-violet);
}
/* Белая внутренняя подложка (как у блока проектов в ленте) */
.home_yarn_block::before,
.home_proj_block::before,
.home_profile_block::before,
.home_events_block::before,
.home_beta_block::before {
	content: '';
	position: absolute;
	inset: 8px;
	background: #fff;
	border-radius: 13px;
	z-index: 0;
}
.home_yarn_block > *,
.home_proj_block > *,
.home_profile_block > *,
.home_events_block > *,
.home_beta_block > * {
	position: relative;
	z-index: 1;
}

/* Пузыри-приложения в главном разделе (только браузер) */
.home_apps_pills {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}
.home_apps_pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	transition: transform .15s ease, box-shadow .15s ease;
}
.home_apps_pill_ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home_apps_pill_apk {
	background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%);
	box-shadow: 0 6px 16px rgba(143,107,214,0.32);
}
.home_apps_pill_tg {
	background: linear-gradient(135deg, #2aa3e0 0%, #4fc0f5 100%);
	box-shadow: 0 6px 16px rgba(42,163,224,0.30);
}
button.home_apps_pill {
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}
.home_apps_pill_support {
	background: linear-gradient(135deg, #e694db 0%, #eb8aac 55%, #d48af1 100%);
	box-shadow: 0 6px 16px rgba(214,120,200,0.30);
}
.home_apps_pill_soon {
	background: #ececf0;
	color: #a7a2b0;
	box-shadow: none;
	cursor: default;
	pointer-events: none;
}
.home_apps_pill_soon .home_apps_pill_ico svg { stroke: #a7a2b0; }
.home_apps_pill:active { transform: translateY(1px); }

.home_beta_version {
	background: rgba(255,255,255,0.45);
	border-radius: 100px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.home_beta_app_version {
	margin-left: 6px;
	font-weight: 600;
	color: #8a7fa0;
}

.home_beta_info {
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}
.home_beta_info p {
	margin: 0 0 8px;
}
.home_beta_info p:last-child {
	margin-bottom: 0;
}

/* ─── Активность за период (строка под профилем) ─────────────────── */
.home_activity_block {
	position: relative;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.22);
	border-radius: 20px;
	padding: 21px 24px; /* 8px рамка + внутренний отступ на белой подложке */
	margin-bottom: 14px;
	color: var(--text-violet);
}
.home_activity_block::before {
	content: '';
	position: absolute;
	inset: 8px;
	background: #fff;
	border-radius: 13px;
	z-index: 0;
}
.home_activity_block > * {
	position: relative;
	z-index: 1;
}
.home_activity_head {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
/* Поповер выбора периода «Итогов» */
.home_activity_period_pop {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 40;
	width: 250px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(60,40,110,0.18);
	padding: 12px;
	box-sizing: border-box;
}
.hap_quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hap_quick_btn {
	flex: 1 1 auto;
	border: 0;
	background: #f0f0f2;
	color: #5c5c66;
	border-radius: 100px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.hap_nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hap_nav_btn {
	border: 0; background: #f0f0f2; color: #5c5c66;
	width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer;
}
.hap_year_btn {
	border: 0; background: none; color: var(--text-violet);
	font-size: 15px; font-weight: 800; cursor: pointer; padding: 4px 10px;
}
.hap_months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hap_month {
	border: 0; background: #f5f5f7; color: #4a4a55;
	border-radius: 10px; padding: 8px 0; font-size: 12px; font-weight: 600; cursor: pointer;
}
.hap_month.active { background: var(--accent, #7b6cf0); color: #fff; }
.hap_allyear {
	width: 100%; margin-top: 10px; border: 0;
	background: rgba(123,108,240,0.12); color: var(--text-violet);
	border-radius: 12px; padding: 9px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.hap_allyear.active { background: var(--accent, #7b6cf0); color: #fff; }
.home_activity_title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-violet);
}
.home_activity_period {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: rgba(255,255,255,0.45);
	color: var(--text-violet);
	border-radius: 100px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.home_activity_period svg { opacity: 0.75; }

/* Плитки-статы */
.home_activity_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.home_activity_tile {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 1px;
	border: 0;
	text-align: left;
	background: rgba(255,255,255,0.5);
	border-radius: 14px;
	padding: 11px 13px;
	cursor: pointer;
	box-sizing: border-box;
}
.home_activity_tile.wide { grid-column: 1 / -1; }
.home_activity_ico {
	grid-row: 1 / 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	color: #fff;
	background: linear-gradient(135deg, #7d5f90, #9a7aa6);
}
.home_activity_ico.yarn  { background: linear-gradient(135deg, #cb8f76, #e0a98c); }
.home_activity_ico.add   { background: linear-gradient(135deg, #6f9a7a, #8fc0a0); }
.home_activity_ico.start { background: linear-gradient(135deg, #5f7f9a, #7aa6c0); }
.home_activity_ico.done  { background: linear-gradient(135deg, #7d5f90, #a67aa6); }
.home_activity_ico.post  { background: linear-gradient(135deg, #9a7a5f, #c0a07a); }
.home_activity_val {
	align-self: end;
	font-size: 19px;
	font-weight: 800;
	line-height: 1;
	color: var(--text-violet);
}
.home_activity_val i { font-size: 12px; font-weight: 600; font-style: normal; opacity: 0.55; margin-left: 2px; }
.home_activity_val.muted { opacity: 0.45; }
.home_activity_cap {
	align-self: start;
	font-size: 12px;
	opacity: 0.68;
	color: var(--text-violet);
}

/* Секции проектов (начали / завершили) */
.home_activity_proj_group { margin-top: 12px; }
.home_activity_proj_head {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--text-violet);
	opacity: 0.85;
	margin-bottom: 8px;
	cursor: pointer;
}
.home_activity_proj_head_txt b { font-weight: 800; opacity: 1; }
.home_activity_proj_head svg { opacity: 0.6; }
.home_activity_proj_list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.home_activity_proj_list::-webkit-scrollbar { display: none; }
.home_activity_proj {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 72px;
	text-decoration: none;
	cursor: pointer;
}
.home_activity_proj_ph {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.home_activity_proj_name {
	font-size: 11.5px;
	line-height: 1.25;
	color: var(--text-violet);
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Пряжа в почёте */
.home_activity_favs { margin-top: 12px; }
.home_activity_favs_cap {
	display: block;
	font-size: 12px;
	opacity: 0.68;
	color: var(--text-violet);
	margin-bottom: 6px;
}
.home_activity_chip {
	display: inline-block;
	background: rgba(255,255,255,0.55);
	border-radius: 100px;
	padding: 5px 12px;
	margin: 0 6px 6px 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--link, #7a5f90);
	text-decoration: none;
	cursor: pointer;
}

.home_yarn_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.home_yarn_title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.home_yarn_title_icon {
	width: 36px;
	height: 36px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta));
	color: #fff;
}
.home_yarn_title_icon svg { width: 20px; height: 20px; }

.home_yarn_goto {
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta));
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 9px 16px;
	border: 0;
	border-radius: 100px;
	cursor: pointer;
	white-space: nowrap;
}

.home_yarn_btns {
	display: flex;
	align-items: center;
	gap: 8px;
}

.home_yarn_add {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: none;
	background: rgba(255,255,255,0.75);
	color: var(--accent);
	border: 1.5px solid rgba(255,255,255,0.9);
	border-radius: 50%;
	cursor: pointer;
}

.home_yarn_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.home_yarn_stat {
	flex: 1 1 calc(33% - 8px);
	min-width: 90px;
	background: rgba(255,255,255,0.45);
	border-radius: 14px;
	padding: 10px 12px;
	text-align: center;
}
.home_yarn_stat num {
	display: block;
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home_yarn_stat lbl {
	display: block;
	font-size: 11px;
	opacity: 0.65;
	margin-top: 2px;
}

.home_yarn_empty {
	opacity: 0.7;
	font-size: 14px;
}

/* Пузыри-метрики «Мои проекты» — кликабельные цветные плитки */
.home_proj_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.home_proj_stat {
	flex: 1 1 calc(33% - 8px);
	min-width: 96px;
	border: 0;
	border-radius: 16px;
	padding: 12px;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #fff;
	box-shadow: 0 5px 14px rgba(80,60,140,0.16);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.home_proj_stat:hover { filter: brightness(1.04); }
.home_proj_stat:active { transform: scale(0.97); box-shadow: 0 2px 6px rgba(80,60,140,0.16); }
/* Некликабельный вариант (метрики пряжи) */
.home_proj_stat_static { cursor: default; }
.home_proj_stat_static:hover { filter: none; }
.home_proj_stat_static:active { transform: none; box-shadow: 0 5px 14px rgba(80,60,140,0.16); }
.home_proj_stat_num {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.home_proj_stat_lbl {
	font-size: 11.5px;
	font-weight: 600;
	opacity: 0.95;
	line-height: 1.15;
}
.home_proj_stat_all      { background: linear-gradient(135deg,#7b6cf0,#9d7cf5); }
.home_proj_stat_progress { background: linear-gradient(135deg,#f0982a,#f7b955); }
.home_proj_stat_done     { background: linear-gradient(135deg,#2fae77,#4ac999); }
.home_proj_stat_year     { background: linear-gradient(135deg,#3aa6e0,#5bc0ef); }
.home_proj_stat_sale     { background: linear-gradient(135deg,#e8629b,#f27bb0); }
.home_proj_stat_post     { background: linear-gradient(135deg,#5b6ee0,#7d8cf0); flex-basis: 100%; }
.home_proj_stat_post .home_proj_stat_num.muted { color: rgba(255,255,255,0.85); }

.home_yarn_recent_title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.65;
	margin: 14px 0 8px;
	text-align: left;
}

.home_yarn_recent {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.home_yarn_recent::-webkit-scrollbar { display: none; }

.home_yarn_recent_item {
	flex: 0 0 92px;
	cursor: pointer;
}
.home_yarn_recent_img {
	width: 92px;
	height: 92px;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	background-color: rgba(255,255,255,0.35);
	margin-bottom: 6px;
}
.home_yarn_recent_brand {
	font-size: 11px;
	opacity: 0.65;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home_yarn_recent_name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Скелетон-загрузка блоков главной (пока данные тянутся с S3) */
.home_skel {
	background: rgba(255,255,255,0.28) !important;
	color: transparent !important;
	animation: homeSkelPulse 1.2s ease-in-out infinite;
	pointer-events: none;
}
.home_skel num, .home_skel lbl { visibility: hidden; }

@keyframes homeSkelPulse {
	0%, 100% { opacity: 0.45; }
	50%      { opacity: 1; }
}

/* Чипсы статистики по типам изделий */
.home_proj_types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.home_proj_type_chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255,255,255,0.45);
	border-radius: 100px;
	padding: 7px 13px;
	font-size: 13px;
}
.home_proj_type_chip b {
	font-weight: 700;
}
/* Пузыри «по типам изделий» (второй уровень) */
.home_proj_type_bubble {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px 6px 14px;
	border: 0;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #5c5c66;
	background: #f0f0f2;
	box-shadow: none;
}
.home_proj_type_bubble_cnt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 100px;
	background: #dcdce0;
	color: #5c5c66;
	font-size: 12px;
	font-weight: 700;
}

/* Кнопки фильтра временно скрыты в образцах/описаниях/совместниках/инструментах
   (вернём после проработки фильтров этих разделов) */
.yarn_list.examples .examples_btn_search,
.yarn_list.opisaniya .proj_btn_search,
.yarn_list.tools .proj_btn_search,
.yarn_list.sovmestniki .sovm_btn_filter,
.yarn_list.blog .examples_btn_search {
	display: none;
}

/* …а поиск в этих разделах — на всю ширину (перебиваем inline width) */
.yarn_list.examples .flex.w100 > div:first-child,
.yarn_list.opisaniya .flex.w100 > div:first-child,
.yarn_list.tools .flex.w100 > div:first-child,
.yarn_list.sovmestniki .flex.w100 > div:first-child,
.yarn_list.blog .flex.w100 > div:first-child {
	width: 100% !important;
}

/* ─── Баннер «Версия приложения обновлена» ──────────────────────────── */
.app_update_banner {
	position: fixed;
	left: 50%;
	bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
	transform: translateX(-50%);
	z-index: 3000;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 20px;
	background: rgba(35, 30, 50, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.22);
	border-radius: 100px;
	color: #fff;
	font-size: 14px;
	box-shadow: 0 10px 28px rgba(20,15,40,0.35);
	white-space: nowrap;
}

.app_update_banner_btn {
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	border-radius: 100px;
	padding: 8px 18px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

/* Баннер «обновите приложение» — многострочный, с пояснением */
.app_update_banner.reinstall {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	white-space: normal;
	border-radius: 18px;
	max-width: min(92vw, 420px);
	padding: 16px 18px;
	text-align: center;
}
.app_update_banner.reinstall .app_update_banner_text {
	font-size: 15px;
	font-weight: 700;
}
.app_update_banner_sub {
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255,255,255,0.82);
}

/* Жаба-футер под списком пряжи */
.yarn_list_toad_footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 30px 0 10px;
	opacity: 0.85;
}

/* В режиме прикрепления (появляются .spec_btn) прячем жабу-футер */
.yarn_list.yarns:has(.item .spec_btn) .yarn_list_toad_footer,
.yarn_list.projects:has(.item .spec_btn) .yarn_list_toad_footer {
	display: none;
}

/* Если над лягушкой нет элементов (пустой список) — вертикальный отступ */
.yarn_list.yarns:has(.yarn_items_list:empty) .yarn_list_toad_footer,
.yarn_list.projects:has(.project_items_list:empty) .yarn_list_toad_footer {
	margin: 100px 0;
}

/* Комикс-пузырь над жабой */
.yarn_list_toad_bubble {
	position: relative;
	background: #fff;
	color: var(--text-violet);
	font-size: 14px;
	font-weight: 600;
	padding: 12px 18px;
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(84, 59, 100, 0.14);
	margin-bottom: 18px;
	max-width: 240px;
	text-align: center;
}
.yarn_list_toad_bubble::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 3px;
}
.yarn_list_toad_footer img {
	width: 160px;
	max-width: 45%;
	height: auto;
}
.yarn_list_toad_footer_label {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--text-violet);
}

/* Общий вид «стеклянных» хелперов результатов (как lenta_my_blog_card) */
.result_helper_card {
	padding: 13px 16px;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.22);
	border-radius: 14px;
	margin-bottom: 10px;
	color: var(--text-violet);
	font-size: 15px;
	font-weight: normal;
}

/* Заголовок секции — полноширинный полупрозрачный блок с таблетками-переключателями
   (как в верхнем меню: активная таблетка «переплывает» слайдером) */
.yarn_list.lenta .lenta_section_title {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: rgba(255,255,255,0.13);
	border: 1.5px solid rgba(255,255,255,0.28);
	border-radius: 20px;
	padding: 4px;
	margin: 2px 0 12px 0;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.lenta_feed_tabs.seg_control {
	display: flex;
	width: 100%;
	background: transparent;
	padding: 0;
	border-radius: 16px;
}
.lenta_feed_tabs .seg_control_slider {
	background: rgba(255,255,255,0.72);
	box-shadow: 0 1px 4px rgba(0,0,0,0.10);
	height: 100%;
	border-radius: 16px;
}
.lenta_feed_tabs .seg_control_opt {
	flex: 1 1 50%;
	text-align: center;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(80,50,120,0.72);
	background: transparent;
	border: 0;
	cursor: pointer;
	position: relative;
	z-index: 1;
	white-space: nowrap;
}
.lenta_feed_tabs .seg_control_opt.active { color: rgba(80,50,120,0.95); }

.lenta_subscriptions_empty_link {
	color: var(--accent-orchid, #7d5f90);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.yarn_list.lenta .lenta_subscriptions_empty {
	padding: 14px;
	border-radius: 18px;
	background: rgba(255,255,255,0.74);
	color: rgba(0,0,0,0.58);
	line-height: 1.45;
	font-size: 13px;
	text-align: center;
}

.yarn_list.lenta .lenta_fresh_empty {
	padding: 14px;
	border-radius: 18px;
	background: rgba(255,255,255,0.74);
	color: rgba(0,0,0,0.58);
	font-size: 13px;
	text-align: center;
}

.yarn_list.lenta .lenta_fresh_more {
	display: block;
	margin: 16px auto 0 auto;
	background: linear-gradient(124deg, #a06bd8 0%, #7d6bf0 100%);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 22px;
	height: unset;
	border: none;
	border-radius: 100px;
	cursor: pointer;
}

.yarn_list.lenta .lenta_blog_avatar {
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #d8d8d8 0%, #bfbfbf 100%);
	background-size: cover;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.yarn_list.lenta .lenta_blog_avatar.empty {
	background-image: linear-gradient(135deg, #d8d8d8 0%, #bfbfbf 100%);
}

.yarn_list.lenta .lenta_blog_content {
	min-width: 0;
	flex: 1 1 auto;
	text-align: left;
}

.yarn_list.lenta .lenta_blog_topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.yarn_list.lenta .lenta_blog_user {
	font-size: 15px;
	font-weight: 700;
	color: #000;
	text-align: left;
}

.yarn_list.lenta .lenta_blog_user span {
	display: inline-block;
	margin-left: 6px;
	font-size: 12px;
	font-weight: 500;
	color: rgba(0,0,0,0.5);
}

.yarn_list.lenta .lenta_blog_count {
	height: 24px;
	padding: 0 12px;
	border-radius: 999px;
	background: linear-gradient(105deg, #e694db, #eb8aac 45%, #d48af1 70%, #a98fe8);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Нет непрочитанных — бейдж скрыт */
.yarn_list.lenta .lenta_blog_count:empty {
	display: none;
}

.yarn_list.lenta .lenta_blog_avatar_img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.yarn_list.lenta .lenta_blog_text {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(0,0,0,0.72);
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.yarn_list.lenta .lenta_blog_media {
	display: flex;
	gap: 6px;
	margin-top: 10px;
}

.yarn_list.lenta .lenta_blog_media_item {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	flex: 0 0 52px;
}

.yarn_list.yarns, .yarn_list.projects, .yarn_list.examples {
	/* position: fixed; */
	/* overflow: auto; */
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width :100%;
	max-width: 500px;
	padding-top: 0px;
	transition: 0.3s; 
}

.load_cancel {
	position: absolute;
    top: 0;
    right: -35px;
    background: #fff;
    width: 30px;
    border-radius: 100px;
}

.projects, .examples {
	display: none;
}

.yarn_list.minimize {
	transform: scale(0.6)
}

.loading {
	height: 30px;
    background: url(/images/loading.gif) no-repeat center;
    background-size: 300px;
    width: 120px;
    border-radius: 100px;
    display: none;
    margin: auto;
    animation: pulse 1.5s linear infinite;
    margin-bottom: 20px; 
    line-height: 30px;
}

.loading .percent{
	background: rgba(255, 255, 255, 0.7);
    display: table;
    margin: auto;
    border-radius: 20px;
}

.block_photo .pic_loading.loading,
.block_proj_photo .pic_loading.loading,
.block_opisanie_photo .pic_loading.loading,
.block_tool_photo .pic_loading.loading {
	display: none;
	position: relative;
	overflow: visible;
}

.block_photo .pic_loading.loading.actual,
.block_proj_photo .pic_loading.loading.actual,
.block_opisanie_photo .pic_loading.loading.actual,
.block_tool_photo .pic_loading.loading.actual {
	display: block;
}

.block_photo .pic_loading.loading .upload_preview_circle,
.block_proj_photo .pic_loading.loading .upload_preview_circle,
.block_opisanie_photo .pic_loading.loading .upload_preview_circle,
.block_tool_photo .pic_loading.loading .upload_preview_circle {
	width: 68px;
	height: 68px;
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(255,255,255,0.82);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 8px 18px rgba(0,0,0,0.16);
	display: none;
	z-index: 3;
}

.block_photo .pic_loading.loading .upload_preview_circle.actual,
.block_proj_photo .pic_loading.loading .upload_preview_circle.actual,
.block_opisanie_photo .pic_loading.loading .upload_preview_circle.actual,
.block_tool_photo .pic_loading.loading .upload_preview_circle.actual {
	display: block;
}

.block_photo .pic_loading.loading .percent,
.block_proj_photo .pic_loading.loading .percent,
.block_opisanie_photo .pic_loading.loading .percent,
.block_tool_photo .pic_loading.loading .percent {
	position: relative;
	z-index: 2;
	text-align: center;
	min-width: 58px;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.yarn_btn plus {
	background: #118937;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin-left: -12px;
    line-height: 20px;
}

.yarn_list .item, .yarn_list .yarn_search, .yarn_list .proj_search, .yarn_list .sovm_search, .yarn_list .yarn_btn_search, .yarn_list .proj_btn_search, .yarn_list .sovm_btn_filter, .yarn_list_second .item, .yarn_list .examples_btn_search, .yarntoad_projects_filters .yarntoad_proj_search {
	padding: 10px; 
	box-sizing: border-box;
	border-radius: 15px;
	margin-bottom: 6px;
	background: #fff;
	min-height: 100px;
	width: 100%;
	margin-bottom: 14px;
	position: relative;
	margin-top: 5px;
	border: 5px solid var(--panel-beige);
	padding-top: 7px;
}

.yarn_list .item {
	cursor: pointer;
	min-height: 106px;
}

.yarns_in_exmpl_list {
	display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding-bottom: 6px !important;
}

.yarn_in_exmpl_list {
	border-radius: 10px;
	background: #ede1e0;
	font-size: 12px;
	padding: 2px 6px;
}

.yarn_in_exmpl_list branda {
	color: #888;
}

.yarn_list .item .sub {
	margin-top: 10px;
	display: flex;
	transition: 0.2s;
	justify-content: flex-end
}

.yarn_list .item .actions a {
	padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    background: #50474a;
    font-size: 14px;
    margin-top: 4px;
}

.yarn_list .item .dots {
	float: right;
	width: 23px;
	height: 23px;
	line-height: 14px;
	text-align: center;
	background: var(--panel-beige);
	border-radius: 0 0 0 8px;
	position: absolute;
	right: 0px;
	top: 0;
	z-index: 1
}

.yarn_list .item .spec_btn {
	float: right;
    height: 23px;
    line-height: 18px;
    text-align: center;
    background: var(--panel-beige);
    border-radius: 0 0 0 8px;
    position: absolute;
    right: 0px;
    top: 0;
    z-index: 1;
    padding: 3px 10px;
}

.yarn_detail, .project_detail, .toad_window {
	position: fixed;
	left: 4px;
	right: 4px;
	top: calc(env(safe-area-inset-top, 0px) + 4px);
	bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
	background: #fff;
	z-index: 3;
	max-width: 500px;
	margin: auto;
	border-radius: 15px;
	box-sizing: border-box;
	padding: 0px;
	opacity: 0;
	visibility: hidden;
	transition: 0.1s;
	transform: scale(0.5);
    display: flex;
}

.detail_close {
	position: fixed;
	bottom: 20px;
	height: 50px;
	width: 50px;
	text-align: center;
	background: #fff;
	left: calc(50% - 20px);
	border: 2px solid #ddd;
	right: 0;
	text-align: center;
	color: #fff;
	border-radius: 100px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
    align-items: center;
}

.proj_cmts {
	position: relative;
	padding: 0;
	margin: 12px 0 0 0;
	background: transparent;
}

.yarn_detail.actual, .project_detail.actual, .toad_window.actual {
	opacity: 1;
    visibility: inherit;
    transform: scale(1);
    background: unset;
	}

.toad_window.no_transition {
	transition: none !important;
}
	
input[type=number].counter_value {
	background: #fff;
	color: #241d24;
    display: table;
    padding: 20px 40px;
    border-radius: 100px;
    margin: auto;
    font-size: 50px;
    margin-top: 200px;
    width: 200px;
    text-align: center;
    
}

input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { opacity: 0; width: 0; overflow: hidden; position: absolute; display: none; }

.counter_btn.reg-button {
	line-height: 120px;
    height: 120px;
    text-align: center;
    font-size: 60px;
    margin: auto;
    margin-top: 100px;
}

.counter_btns_row {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 60px;
}
.counter_btns_row .counter_btn.reg-button {
	margin: 0;
	flex: 1 1 0;
	max-width: 220px;
}
.counter_btns_row .counter_btn_minus.reg-button {
	background: #d8cfe6;
	color: #6a5a86;
}
	
.yarn_detail.actual {
	z-index: 4;
}

/* ─── Заголовок в toad_window инструмента (без плашки var(--panel-beige)) ───────── */
.detail_head_row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.detail_edit_btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	background: #e5e0ef;
	color: #6a5a86;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 15px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.detail_edit_btn:active { background: #d7cfe8; }

/* Кнопки в шапке детали (Поделиться + Изменить) */
.detail_head_actions {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}
/* Три точки в шапке детали (Копировать/Удалить) */
.detail_dots_wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.detail_dots_btn {
	width: 28px; height: 28px;
	border-radius: 50%;
	border: 1px solid #e0d8e6;
	background: #f2edf3;
	color: #6a5a86;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.detail_dots_btn:active { background: #e6def0; }
.detail_dots_menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e7dee6;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.14);
	padding: 6px;
	min-width: 150px;
	z-index: 50;
	display: none;
}
.detail_dots_menu.open { display: block; }
.detail_dots_menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #241d24;
	text-decoration: none;
	font-size: 14px;
}
.detail_dots_menu a:hover { background: #f4eef3; }
.detail_dots_remove { color: #d23a86; }
.detail_share_btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 15px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.detail_share_btn:active { filter: brightness(0.95); }

/* Админская модерация чужого проекта: круглая кнопка «⋯» рядом с «Поделиться» */
.detail_admin_dots_wrap { position: relative; display: inline-block; margin-bottom: 12px; margin-left: 4px; vertical-align: middle; }
.detail_admin_dots_btn {
	width: 28px; height: 28px;
	border-radius: 50%;
	border: 1px solid #e0d8e6;
	background: #f2edf3;
	color: #6a5a86;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.detail_admin_dots_btn:active { background: #e6def0; }
.detail_admin_dots_menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e7dee6;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.14);
	padding: 6px;
	min-width: 150px;
	z-index: 50;
	display: none;
}
.detail_admin_dots_menu.open { display: block; }
.detail_admin_dots_menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #d23a86;
	text-decoration: none;
	font-size: 14px;
}
.detail_admin_dots_menu a:hover { background: #f4eef3; }

/* Поповер «Поделиться» */
.ys_share_overlay {
	position: fixed;
	inset: 0;
	background: rgba(30,20,45,0.45);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ys_share_pop {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 18px;
	padding: 22px 20px 20px;
	box-shadow: 0 20px 50px rgba(40,20,70,0.35);
}
.ys_share_close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #9a8fb0;
	cursor: pointer;
}
.ys_share_title {
	font-size: 16px;
	font-weight: 700;
	color: #33294d;
	margin-bottom: 16px;
	padding-right: 20px;
}
.ys_share_hidden_msg {
	font-size: 14px;
	color: #5a4f6e;
	margin-bottom: 16px;
	line-height: 1.4;
}
.ys_share_make_public {
	width: 100%;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 12px;
	border-radius: 12px;
}
.ys_share_make_public:disabled { opacity: 0.7; cursor: default; }
.ys_share_loading, .ys_share_err {
	font-size: 14px;
	color: #8a8391;
	padding: 6px 0;
}
.ys_share_err { color: #c0392b; }
.ys_share_input {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	display: block;
	border: 1.5px solid #e0d8ee;
	border-radius: 12px;
	padding: 11px 12px;
	font-size: 14px !important;
	color: #33294d;
	background: #f6f4f4;
	margin-bottom: 12px;
}

/* Пузырь «нет связи» над кнопкой сохранения поста */
.blog_save_offline_bubble {
	position: relative;
	max-width: 320px;
	margin: 0 auto 12px;
	background: #fff;
	color: #5a3d3d;
	border: 1.5px solid #f0d5d5;
	box-shadow: 0 8px 22px rgba(120,40,40,0.15);
	border-radius: 14px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}
.blog_save_offline_bubble:after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	width: 14px;
	height: 14px;
	background: #fff;
	border-right: 1.5px solid #f0d5d5;
	border-bottom: 1.5px solid #f0d5d5;
	border-bottom-right-radius: 3px;
	rotate: 45deg;
}
.ys_share_copy {
	width: 100%;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, #8f6bd6 0%, #b98fe6 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 12px;
	border-radius: 12px;
}
.ys_share_copy.copied { background: #2f9e44; }

.tool_detail .tool_detail_type,
/* Заголовок дня в окне событий */
.events_day_header {
	font-size: 13px;
	font-weight: 700;
	color: #8a7fa0;
	letter-spacing: 0.02em;
	margin: 16px 4px 8px;
}
.events_window_list > .events_day_header:first-child { margin-top: 4px; }

/* Автоссылки внутри текста постов/описаний */
.text_link {
	color: #7b5cc4;
	text-decoration: underline;
	word-break: break-all;
}
.text_link:active { color: #5a3fa0; }

.detail_type_badge {
	display: inline-block;
	background: linear-gradient(105deg, #e694db, #eb8aac 45%, #d48af1 70%, #a98fe8);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 15px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.tool_detail .tool_detail_name {
	text-align: left;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-heading);
	margin-bottom: 10px;
	word-break: break-word;
}

/* ─── Блок «Описание» в toad_window (образец, совместник) ────────────── */
.exmpl_description {
	margin: 6px 0 10px;
	padding: 12px;
	background: #f6eeee;
	border-radius: 12px;
}
.exmpl_description_head {
	font-weight: 600;
	margin-bottom: 8px;
}
.exmpl_description_text {
	white-space: normal;
	word-wrap: break-word;
	margin-bottom: 8px;
}
.exmpl_description_text:last-child { margin-bottom: 0; }
.exmpl_description_pics img {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 6px;
	display: block;
}
.exmpl_description_files_head {
	font-weight: 600;
	margin: 4px 0 5px;
}
.exmpl_description_files a {
	background: #c4bde0;
	padding: 4px 12px;
	display: block;
	margin-bottom: 5px;
	border-radius: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.exmpl_description_linked {
	margin-top: 8px;
}
/* Прикреплённые объекты выводим карточками как в списках */
.exmpl_description_linked.yarn_list {
	display: block;
	width: 100%;
	max-width: 100%;
}
.exmpl_description_linked.yarn_list .item {
	margin-bottom: 12px;
	cursor: pointer;
}
.exmpl_description_linked.yarn_list .item:last-child { margin-bottom: 0; }
.exmpl_description_linked.yarn_list .dots,
.exmpl_description_linked.yarn_list .spec_btn { display: none; }
/* Адаптивные фото в описании-статье */
/* Мозаика подряд идущих фото в описаниях сущностей (проект и др.) — как в блоге */
.exmpl_description .blog_media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 10px 0;
	overflow: hidden;
}
.exmpl_description .blog_media.media_count_1 {
	grid-template-columns: minmax(0, 1fr);
}
.exmpl_description img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.exmpl_description .blog_media .blog_media_item {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	min-height: 150px;
	object-fit: cover;
	border-radius: 10px;
}
.exmpl_description .blog_media.media_count_1 .blog_media_item {
	aspect-ratio: 16 / 10;
	min-height: 220px;
}
.exmpl_description .blog_media.media_count_3 .blog_media_item:first-child,
.exmpl_description .blog_media.media_count_5 .blog_media_item:first-child {
	grid-row: span 2;
	aspect-ratio: auto;
	min-height: 100%;
}

.project_detail .project_files {
	padding-bottom: 10px;
}

.project_detail .project_files a {
	background: #c4bde0;
	padding: 4px 12px;
	display: block;
	margin-bottom: 5px;
	border-radius: 10px;
	white-space: nowrap; overflow: hidden; 
	text-overflow: ellipsis;
	max-width: 300px;
}

.project_detail .opisanie_link {
	padding-bottom: 10px;
}

.uploaded.opisaniya a {
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    display: block;
}

.file_in_cmt {
    display: inline-block;
    background: #c4bde0;
    padding: 4px 12px;
    border-radius: 10px;
    margin-right: 5px;
}

.project_detail .pic {
	display: none;
}

.project_data .yarn_list, .exmpl_data .yarn_list {
	padding: 0;
	margin-top: 0px;
}

.yarn_list.examples_in_proj_detail {
	padding-top: 0;
}

.yarn_list.examples_in_proj_detail .item,
.yarn_list.opisaniya_in_proj_detail .item,
.yarn_list.tools_in_proj_detail .item {
	margin-left: -5px;
}

/* Бейдж видимости + строка автора в прикреплённом описании проекта */
.yarn_list.opisaniya_in_proj_detail .item {
	position: relative;
}
.yarn_list.opisaniya_in_proj_detail .opisanie_author_line {
	font-size: 12px;
	color: #8a8391;
	padding-top: 2px;
	padding-left: 100px;
}

.detail_relation_head.in_proj_detail_head {
	margin-top: 20px;
}

.yarn_detail .color round {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 100px;
	margin-right: 5px;
	margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   yarn_detail — новые блоки
   ═══════════════════════════════════════════════════════════ */

/* ── Цвета ──────────────────────────────────────────────── */
.yarn_detail_colors {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 10px 18px 0;
	margin-left: -10px;
	min-height: 0;
}

.yarn_detail_color_chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.55);
	border-radius: 20px;
	padding: 4px 10px 4px 6px;
	font-size: 13px;
	color: var(--warm-dark);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.7);
}

.yarn_detail_color_dot {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(0,0,0,0.10);
	flex-shrink: 0;
}

/* ── Состав (progress-bars) ─────────────────────────────── */
.yarn_detail_sostav {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.yarn_detail_sostav::-webkit-scrollbar { width: 0; height: 0; }

.yarn_sostav_item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	flex: none;
}

.yarn_sostav_dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #a07090;
	flex: none;
}

.yarn_sostav_pct {
	font-size: 13px;
	font-weight: 600;
	color: #a07090;
}

.yarn_sostav_name {
	font-size: 13px;
	color: var(--warm-dark);
}

/* ── Мета-строки: label + value ─────────────────────────── */
.yarn_detail_meta_label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #b09090;
	margin-right: 6px;
	flex-shrink: 0;
}

.yarn_detail_meta_value {
	font-size: 14px;
	color: var(--warm-dark);
	font-weight: 500;
}

/* ── Количество ─────────────────────────────────────────── */
.yarn_detail_quant {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 10px;
}

/* ── Pills общие ────────────────────────────────────────── */
.yarn_detail_types,
.yarn_detail_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.yarn_detail_pill {
	display: inline-block;
	border-radius: 20px;
	padding: 3px 11px;
	font-size: 12px;
	line-height: 1.5;
}

.yarn_detail_pill_type {
	background: #e8d5f0;
	color: #6b3a7d;
	border: 1px solid rgba(107,58,125,0.15);
}

.yarn_detail_pill_tag {
	background: #deedf5;
	color: #2a6080;
	border: 1px solid rgba(42,96,128,0.12);
}

/* ── Заголовки секций ───────────────────────────────────── */
.yarn_detail_section_label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #b09090;
	margin-bottom: 8px;
	margin-top: 4px;
}

/* ── О пряже ────────────────────────────────────────────── */
.yarn_detail_about {
	margin-bottom: 12px;
}

.yarn_detail_about .blog_post_text {
	font-size: 14px;
	color: #3d2a2a;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ── Куплено ────────────────────────────────────────────── */
.yarn_detail_shop {
	margin-bottom: 12px;
}

.yarn_detail_shop_grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.yarn_detail_shop_row {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.yarn_detail_shop_link {
	color: #a07090;
	text-decoration: none;
	border-bottom: 1px solid rgba(160,112,144,0.35);
}

.yarn_detail_shop_link:hover {
	color: #7d4a6a;
	border-bottom-color: #7d4a6a;
}

/* ── Где лежит ──────────────────────────────────────────── */
.yarn_detail_shron {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 10px;
	font-size: 14px;
}

/* ── Secondary-блоки О пряже: объекты на всю ширину ─────── */
.project_in_yarn_about,
.example_in_yarn_about,
.opisanie_in_yarn_about,
.tool_in_yarn_about,
.sovm_in_yarn_about {
	width: 100%;
}

.project_in_yarn_about .item,
.example_in_yarn_about .item,
.opisanie_in_yarn_about .item,
.tool_in_yarn_about .item,
.sovm_in_yarn_about .item {
	width: 100%;
	box-sizing: border-box;
}

/* ── Файлы в О пряже ────────────────────────────────────── */
.yarn_detail_about .blog_files_list {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 10px;
}

.yarn_detail_about .blog_file_item a {
	display: inline-block;
	color: var(--warm-dark);
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	background: #f5efef;
	border: 1px solid rgba(160,112,144,0.18);
	border-radius: 12px;
	padding: 8px 13px;
}

.yarn_detail_about .blog_file_item a:hover {
	background: var(--panel-beige);
}

.yarn_list .yarn_search, .yarn_list .proj_search, .yarn_list .sovm_search, .yarntoad_projects_filters .yarntoad_proj_search {
	height: 50px;
	min-height: unset;
	border-radius: 50px;
	margin-bottom: 10px;
	margin-top: 0px;
	outline: 0;
	border-color: rgb(237, 225, 225);
	transition: 0.2s;
}

.yarn_list .yarn_search::placeholder, .yarn_list .proj_search::placeholder, .yarn_list .sovm_search::placeholder, .yarntoad_projects_filters .yarntoad_proj_search::placeholder {
	font-size: 13px;
	color: #494343;
}

.yarn_list .yarn_search:focus, .yarn_list .proj_search:focus, .yarn_list .sovm_search:focus, .yarntoad_projects_filters .yarntoad_proj_search:focus {
	border-color: rgb(255, 255, 255);
}

.yarn_list .yarn_btn_search, .yarn_list .proj_btn_search, .yarn_list .sovm_btn_filter, .yarn_list .examples_btn_search {
	    height: 50px;
    min-height: unset;
    border-radius: 100px;
    margin-bottom: 10px;
    margin-top: 0px;
    border: 0;
    /* width: 50px; */
    /* transform: scale(0.7); */
    border: 0px solid rgba(255, 255, 255, 0.6);
    /* box-sizing: border-box; */
    background: unset;
}

.yarn_list .yarn_btn_search svg, .yarn_list .proj_btn_search svg, .yarn_list .sovm_btn_filter svg {
	display: block;
	margin: auto;
	margin-top: 0px;
}

.yarn_list .yarn_btn_search.actual {
	background: rgba(255,255,255,0.18);
}

.yarn_list .proj_btn_search.actual,
.yarn_list .sovm_btn_filter.actual {
	background: rgba(255,255,255,0.18);
}

.sovm_filters_panel {
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 22px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.sovm_filter_check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #3a2a2a;
	padding: 5px 0;
	cursor: pointer;
}

.sovm_filters_panel .filter_group {
	min-width: 0;
}

.sovm_filters_panel .filter_label {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.58);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.yarn_filters_panel {
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 22px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.yarn_filters_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.yarn_filters_panel .filter_group {
	min-width: 0;
}

.yarn_filters_panel .filter_label {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.58);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.yarn_filters_panel .filter_group input.lite {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

.yarn_filters_panel .yarn_filter_shop_date_from.lite,
.yarn_filters_panel .yarn_filter_shop_date_to.lite {
	font-size: 12px;
	padding-left: 0;
	padding-right: 0;
}

.yarn_filters_panel .filter_range {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.yarn_filters_panel .filter_group_brands,
.yarn_filters_panel .filter_group_models,
.yarn_filters_panel .filter_group_colors,
.yarn_filters_panel .filter_group_sostav,
.yarn_filters_panel .filter_group_tags,
.yarn_filters_panel .filter_group_types {
	position: relative;
}

.yarn_filter_brand_dropdown,
.yarn_filter_model_dropdown,
.yarn_filter_color_dropdown,
.yarn_filter_sostav_dropdown,
.yarn_filter_tags_dropdown,
.yarn_filter_type_dropdown {
	position: relative;
}

.yarn_filter_brand_trigger,
.yarn_filter_model_trigger,
.yarn_filter_color_trigger,
.yarn_filter_sostav_trigger,
.yarn_filter_tags_trigger,
.yarn_filter_type_trigger {
	width: 100%;
	min-height: 44px;
	text-align: left;
	border: 1px solid rgba(0,0,0,0.08);
	background: rgba(255,255,255,0.78);
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 14px;
	color: #000;
	position: relative;
}

.yarn_filter_brand_trigger::after,
.yarn_filter_model_trigger::after,
.yarn_filter_color_trigger::after,
.yarn_filter_sostav_trigger::after,
.yarn_filter_tags_trigger::after,
.yarn_filter_type_trigger::after {
	content: "▾";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(0,0,0,0.45);
	font-size: 14px;
}

.yarn_filter_brand_trigger.actual::after,
.yarn_filter_model_trigger.actual::after,
.yarn_filter_color_trigger.actual::after,
.yarn_filter_sostav_trigger.actual::after,
.yarn_filter_tags_trigger.actual::after,
.yarn_filter_type_trigger.actual::after {
	content: "▴";
}

.yarn_filter_brand_list,
.yarn_filter_model_list,
.yarn_filter_color_list,
.yarn_filter_sostav_list,
.yarn_filter_tags_list,
.yarn_filter_type_list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 14px 28px rgba(0,0,0,0.12);
	max-height: 240px;
	overflow: auto;
}

.yarn_filter_brand_list label,
.yarn_filter_model_list label,
.yarn_filter_color_list label,
.yarn_filter_sostav_list label,
.yarn_filter_tags_list label,
.yarn_filter_type_list label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	font-size: 13px;
}

.yarn_filter_actions {
	display: flex;
	gap: 10px;
	padding-top: 14px;
}

.yarn_filter_actions .reg-button {
	height: 40px;
	font-size: 14px;
	border-radius: 999px;
}

.yarn_filter_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.yarn_filter_tags .filter_tag,
.yarn_filter_tags .clear_all_filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1.2;
	color: #000;
}

.yarn_filter_tags .filter_tag button,
.yarn_filter_tags .clear_all_filters {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.yarn_filter_tags .filter_tag button {
	font-size: 16px;
	line-height: 1;
}

.project_filters_panel {
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 22px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.project_filters_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.project_filters_panel .filter_group {
	min-width: 0;
}

.project_filters_panel .filter_label {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.58);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.project_filter_brand_dropdown,
.project_filter_model_dropdown,
.project_filter_opisaniya_dropdown,
.project_filter_examples_dropdown,
.project_filter_tool_name_dropdown,
.project_filter_tool_type_dropdown,
.project_filter_tool_size_dropdown,
.project_filter_tool_material_dropdown,
.project_filter_status_dropdown,
.project_filter_proj_type_dropdown,
.project_filter_proj_subtype_dropdown {
	position: relative;
}

.project_filter_brand_trigger,
.project_filter_model_trigger,
.project_filter_opisaniya_trigger,
.project_filter_examples_trigger,
.project_filter_tool_name_trigger,
.project_filter_tool_type_trigger,
.project_filter_tool_size_trigger,
.project_filter_tool_material_trigger,
.project_filter_status_trigger,
.project_filter_proj_type_trigger,
.project_filter_proj_subtype_trigger {
	width: 100%;
	min-height: 44px;
	text-align: left;
	border: 1px solid rgba(0,0,0,0.08);
	background: rgba(255,255,255,0.78);
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 14px;
	color: #000;
	position: relative;
}

.project_filter_brand_trigger::after,
.project_filter_model_trigger::after,
.project_filter_opisaniya_trigger::after,
.project_filter_examples_trigger::after,
.project_filter_tool_name_trigger::after,
.project_filter_tool_type_trigger::after,
.project_filter_tool_size_trigger::after,
.project_filter_tool_material_trigger::after,
.project_filter_status_trigger::after,
.project_filter_proj_type_trigger::after,
.project_filter_proj_subtype_trigger::after {
	content: "▾";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(0,0,0,0.45);
	font-size: 14px;
}

.project_filter_brand_trigger.actual::after,
.project_filter_model_trigger.actual::after,
.project_filter_opisaniya_trigger.actual::after,
.project_filter_examples_trigger.actual::after,
.project_filter_tool_name_trigger.actual::after,
.project_filter_tool_type_trigger.actual::after,
.project_filter_tool_size_trigger.actual::after,
.project_filter_tool_material_trigger.actual::after,
.project_filter_status_trigger.actual::after,
.project_filter_proj_type_trigger.actual::after,
.project_filter_proj_subtype_trigger.actual::after {
	content: "▴";
}

.project_filter_brand_list,
.project_filter_model_list,
.project_filter_opisaniya_list,
.project_filter_examples_list,
.project_filter_tool_name_list,
.project_filter_tool_type_list,
.project_filter_tool_size_list,
.project_filter_tool_material_list,
.project_filter_status_list,
.project_filter_proj_type_list,
.project_filter_proj_subtype_list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 14px 28px rgba(0,0,0,0.12);
	max-height: 240px;
	overflow: auto;
}

.project_filter_brand_list label,
.project_filter_model_list label,
.project_filter_opisaniya_options label,
.project_filter_examples_options label,
.project_filter_tool_name_list label,
.project_filter_tool_type_list label,
.project_filter_tool_size_list label,
.project_filter_tool_material_list label,
.project_filter_status_list label,
.project_filter_proj_type_list label,
.project_filter_proj_subtype_list label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	font-size: 13px;
}

.project_filter_list_search {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 10px 0;
	border: 1px solid rgba(0,0,0,0.08);
	background: rgba(245,245,245,0.95);
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 13px;
}

.project_filter_actions {
	display: flex;
	gap: 10px;
	padding-top: 14px;
}

.project_filter_actions .reg-button {
	height: 40px;
	font-size: 14px;
	border-radius: 999px;
}

.project_filter_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.project_filter_tags .filter_tag,
.project_filter_tags .clear_all_filters {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.88);
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1.2;
	color: #000;
}

.project_filter_tags .filter_tag button,
.project_filter_tags .clear_all_filters {
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.project_filter_tags .filter_tag button {
	font-size: 16px;
	line-height: 1;
}

.yarn_list .yarn_img, .yarn_list_second .yarn_img {
	width: 96px; 
	height: 96px; 
	background-size: cover; 
	border-radius: 10px;
	position: absolute;
	margin-left: -10px;
	margin-top: -7px;
}

.aftera .color span {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 15px;
	padding: 0;
	margin-top: -2px;
}

.aftera .color:has(span) {
	
}

.yarn_weight_in_proj {
	position: absolute;
    right: 0;
    bottom: -23px;
    background: #dacdcd;
    padding: 2px 13px;
    border-radius: 0 0 10px 10px;	
}

.yarn_list.in_proj_detail .item {
	margin-bottom: 30px;
}

.yarn_list.in_proj_detail .item .yarn_img {
	width: 96px;
	height: 96px;
	margin-top: -2px;
	margin-left: -5px;
}

.yarn_weight_in_proj input {
	height: 15px;
	line-height: 15px;
	padding: 0;
	background: #fff;
	color: #241d24;
	width: 80px;
	display: inline-block;
	margin-left: 10px;
	font-size: 12px;
	transition: width 0.18s ease, padding-right 0.18s ease;
}

.yarn_weight_in_proj_input_wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

/* Узкое поле «нити» (кол-во сложений) */
.yarn_threads_in_proj_wrap {
	position: relative;
	font-size: 12px;
	white-space: nowrap;
}
.yarn_weight_in_proj input.yarn_threads_in_proj {
	width: 16px;
	min-width: 16px;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
}
/* Выпадашка вариантов нитей — ниже поля */
.yarn_threads_dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	width: 132px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(60,40,110,0.2);
	padding: 6px;
}
.yarn_threads_opt {
	flex: 0 0 auto;
	width: 34px;
	height: 28px;
	border: 0;
	background: #f0f0f2;
	color: #4a4a55;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.yarn_threads_opt:active { background: var(--accent, #7b6cf0); color: #fff; }

/* Смотка: поле в строке веса + кнопка «Создать смотку» */
.yarn_smotka_in_proj_wrap {
	position: relative;
	margin-left: 8px;
	font-size: 12px;
	white-space: nowrap;
}
.yarn_weight_in_proj input.yarn_numstep_input {
	text-align: center;
	min-width: 16px;
	margin-left: 2px;
	margin-right: 3px;
}
.proj_smotka_add_wrap {
	width: 100%;
	margin-top: 14px;
	text-align: center;
}
.proj_smotka_add_btn {
	border: 1px dashed rgba(123,108,240,0.5);
	background: rgba(123,108,240,0.08);
	color: var(--text-violet, #4a3f7a);
	border-radius: 100px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.proj_smotka_add_btn:active { background: rgba(123,108,240,0.16); }
.yarn_smotka_in_proj_view {
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 100px;
	background: rgba(123,108,240,0.15);
	font-size: 11px;
}
/* Сводка по смоткам в просмотре проекта */
.proj_smotki_summary {
	margin: 14px 0 4px;
	padding: 12px 14px;
	background: rgba(123,108,240,0.06);
	border-radius: 14px;
}
.proj_smotki_summary_head {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-violet, #4a3f7a);
	margin-bottom: 8px;
}
.proj_smotki_row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 4px 0;
}
.proj_smotki_row + .proj_smotki_row { border-top: 1px solid rgba(123,108,240,0.12); }
.proj_smotki_badge {
	flex: 0 0 auto;
	padding: 2px 9px;
	border-radius: 100px;
	background: var(--accent, #7b6cf0);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}
.proj_smotki_yarns {
	font-size: 12.5px;
	color: #3a3540;
	line-height: 1.35;
}
.proj_smotki_meterage {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 100px;
	background: rgba(123,108,240,0.12);
	color: var(--text-violet, #4a3f7a);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.yarn_weight_in_proj_input_wrap.focused input,
.yarn_weight_in_proj_input_wrap.has_value input {
	width: 120px;
	padding-right: 36px;
}

.yarn_weight_in_proj_ok {
	position: absolute;
	right: 3px;
	top: 50%;
	transform: translateY(-50%);
	height: calc(100% - 4px);
	padding: 0 8px;
	border: 0;
	border-radius: 7px;
	background: #b85662;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.16s ease;
}

.yarn_weight_in_proj_input_wrap.has_value .yarn_weight_in_proj_ok {
	opacity: 1;
	pointer-events: auto;
}

.yarn_list .item .actions {
	position: absolute;
    background: var(--panel-beige);
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    width: 0px;
    transition: 0.2s;
    border-radius: 0px;
}

.yarn_list .item .actions.actual {
	width: 150px;
}

/* Скелетон загрузки проектов автора */
.user_projects_list .up_skel_item { pointer-events: none; }
.user_projects_list .up_skel_item .yarn_img.skel_box { min-height: 120px; border-radius: 10px; }
.user_projects_list .up_skel_line {
	height: 13px;
	border-radius: 6px;
	margin-top: 8px;
	width: 75%;
}
.user_projects_list .up_skel_line.short { width: 45%; }

/* Прикреплённые карточки в комментариях/описаниях — без бейджей метрик */
.comment_linked_items_rendered .proj_card_metrics,
.comment_linked_items_rendered .proj_comment_badge,
.comment_linked_items_rendered .proj_like_badge,
.comment_linked_items_rendered .proj_like_badge_own,
.comment_linked_items_rendered .proj_like_badge_foreign,
.comment_linked_items_rendered .proj_visibility_badge,
.exmpl_description_linked .proj_card_metrics,
.exmpl_description_linked .proj_comment_badge,
.exmpl_description_linked .proj_like_badge,
.exmpl_description_linked .proj_like_badge_own,
.exmpl_description_linked .proj_like_badge_foreign,
.exmpl_description_linked .proj_visibility_badge {
	display: none !important;
}

/* Ошибка загрузки проектов автора + повтор */
.user_projects_load_error {
	grid-column: 1 / -1;
	text-align: center;
	padding: 30px 16px;
	color: #6a5a86;
}
.user_projects_load_error_text { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.user_projects_retry_btn { display: inline-block; }

/* Точки + меню действий на своих проектах в окне «Мои публичные проекты» */
.user_projects_list .item { position: relative; }
.user_projects_list .item .dots.proj_pub_dots {
	width: 23px;
	height: 23px;
	line-height: 14px;
	text-align: center;
	background: var(--panel-beige);
	border-radius: 0 0 0 8px;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
	cursor: pointer;
}
.user_projects_list .item .actions {
	position: absolute;
	background: var(--panel-beige);
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1;
	display: flex;
	align-content: center;
	justify-content: center;
	flex-wrap: wrap;
	overflow: hidden;
	width: 0;
	transition: 0.2s;
}
.user_projects_list .item .actions.actual { width: 150px; }
.user_projects_list .item .actions a {
	padding: 4px 10px;
	border-radius: 4px;
	color: #fff;
	background: #50474a;
	font-size: 14px;
	margin-top: 4px;
}

.yarn_list.blog .item.remove_confirm_active {
	overflow: hidden;
}

.yarn_list.blog .item .item_remove_confirm {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px;
	background: rgba(255,255,255,0.82);
	backdrop-filter: blur(6px);
	text-align: center;
}

.yarn_list.blog .item .item_remove_confirm_text {
	font-size: 16px;
	line-height: 1.2;
	color: rgba(0,0,0,0.7);
}

.yarn_list.blog .item .item_remove_confirm_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.yarn_list.blog .item .item_remove_confirm_yes,
.yarn_list.blog .item .item_remove_confirm_no {
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 0;
	font-size: 13px;
	cursor: pointer;
}

.yarn_list.blog .item .item_remove_confirm_yes {
	background: #b85662;
	color: #fff;
}

.yarn_list.blog .item .item_remove_confirm_no {
	background: rgba(0,0,0,0.08);
	color: rgba(0,0,0,0.66);
}

.yarn_list .aftera, .yarn_list_second .aftera {
	/*position: absolute;
	bottom: -25px;
	
	left: 100px;
	right: 20px;
	*/
	padding-left: 100px;
	display: flex;
	justify-content: space-between;
	height: 12px;
}

/* ─── Лента «Проекты на YarnToad» — автор + статус одной строкой ─── */
/* Карточка ленты: колонкой, чтобы нижняя строка прижималась к низу карточки */
.yarntoad_projects_list .item,
.user_projects_list .item {
	display: flex;
	flex-direction: column;
	min-height: 112px;
}
.yarn_list .aftera.yarntoad_proj_aftera {
	height: auto;
	min-height: 22px;
	align-items: center;
	gap: 8px;
	margin-top: auto; /* прижать нижнюю строку к низу карточки */
}
/* Лайки/комментарии — в правой части нижней строки */
.yarntoad_proj_aftera .proj_card_metrics {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}
.yarntoad_proj_aftera .proj_like_badge_foreign,
.yarntoad_proj_aftera .proj_comment_badge {
	position: static;
	bottom: auto;
	right: auto;
}
.yarntoad_proj_aftera .proj_comment_badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 600;
	color: #6d5968;
	line-height: 1;
}
.yarntoad_proj_aftera .proj_comment_badge svg {
	width: 13px;
	height: 13px;
}
.yarntoad_proj_aftera .author_chip_in_aftera {
	min-width: 0;
	flex: 0 1 auto;
	overflow: hidden;
}
.yarntoad_proj_aftera .yarntoad_proj_status {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Статус проекта + дата в карточках списков */
.proj_status_line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	flex: 0 0 auto;
}
.proj_status_txt {
	font-size: 11px;
	color: #6a636f;
	line-height: 1.3;
}
.proj_status_date {
	font-size: 11px;
	color: #8a8391;
	background: rgba(0,0,0,0.05);
	padding: 1px 7px;
	border-radius: 100px;
	line-height: 1.5;
}
.yarn_list.projects .project_items_list .aftera {
	height: auto;
	min-height: 18px;
	align-items: center;
}

/* Тип проекта — уменьшенный шрифт + размер рядом */
.item_name.proj_type_name {
	font-size: 15px;
	padding-bottom: 6px;
}
.proj_card_size {
	margin-left: 5px;
	font-size: 13px;
	color: #8a8391;
	font-weight: 600;
}
.proj_card_yarn {
	display: inline-block;
	margin-left: 7px;
	font-size: 11px;
	font-weight: 600;
	color: #6a5f74;
	background: rgba(120,95,144,0.12);
	border-radius: 100px;
	padding: 2px 9px;
	vertical-align: middle;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.proj_card_yarn_count {
	display: inline-block;
	margin-left: 5px;
	min-width: 16px;
	padding: 0 5px;
	background: rgba(120,95,144,0.30);
	color: #55406e;
	border-radius: 100px;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	vertical-align: middle;
}
.proj_card_weight {
	display: inline-block;
	margin-left: 7px;
	font-size: 11px;
	font-weight: 600;
	color: #6a636f;
	background: rgba(0,0,0,0.05);
	border-radius: 100px;
	padding: 2px 9px;
	vertical-align: middle;
	white-space: nowrap;
}

/* ─── Opisaniya list — aftera badges ─────────────────────────── */
.yarn_list.opisaniya .aftera.opisanie_aftera {
	height: auto;
	min-height: 18px;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
	padding-top: 6px;
	padding-bottom: 4px;
}
.opisanie_list_ext {
	height: 20px;
	min-width: 32px;
	padding: 0 6px;
	font-size: 10px;
	border-radius: 10px;
}
.opisanie_meta_count {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	color: #9a8080;
	line-height: 1;
}
/* ─── Автор / покупка в toad_window описания ────────────────────────── */
.opisanie_detail_meta {
	margin: 6px 0 10px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.06);
}
.opisanie_detail_row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
	font-size: 14px;
}
.opisanie_detail_row:first-child { border-top: none; }
.opisanie_detail_label { color: var(--text-muted); flex: none; }
.opisanie_detail_value {
	color: var(--text-heading);
	font-weight: 600;
	text-align: right;
	min-width: 0;
	word-break: break-word;
}
.opisanie_detail_value a { color: var(--accent-orchid); text-decoration: none; border-bottom: 1px solid rgba(162,79,176,0.35); }

.opisanie_detail_sale {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 12px;
	flex-wrap: wrap;
}
.opisanie_detail_sale .opisanie_sale_label {
	font-size: 14px;
	color: #6a636f;
	font-weight: 600;
}
.opisanie_detail_sale .opisanie_price_tag {
	position: static;
	bottom: auto;
	right: auto;
	pointer-events: auto;
	font-size: 14px;
}

.opisanie_price_tag {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: linear-gradient(135deg, #e0407a 0%, #b5279e 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: 999px;
	line-height: 1.3;
	box-shadow: 0 2px 10px rgba(180, 50, 130, 0.35);
	letter-spacing: 0.01em;
	pointer-events: none;
}

.yarn_list_second .item_brand, .yarn_list .item_brand, .yarn_list .item_name, .yarn_list_second .item_name, .yarn_data .brand, .project_data .project_type, .exmpl_data .exmpl_type {
	text-align: left;
	padding-left: 100px;
	font-size: 20px;
	color: #888
}

.yarn_data .brand, .project_data .project_type, .exmpl_data .project_type, .exmpl_data .exmpl_type {
    padding-left: 0;
    background: var(--panel-beige);
    padding: 10px;
    border-radius: 10px 10px 0 0;
    margin-left: -10px;
    margin-top: -10px;
    margin-right: -10px;
    padding-bottom: 4px;
}

.exmpl_detail .exmpl_name opacit,
.tool_detail .exmpl_name opacit {
	background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 4px;
}

/* ─── Данные образца в toad_window (карточка .item) ─────────────────── */
.exmpl_detail .exmpl_post_single .item {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.exmpl_detail .exmpl_post_single .exmpl_type {
	background: none !important;
	padding: 0 !important;
	margin: 0 0 14px !important;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-heading);
	text-align: left;
}
.exmpl_detail .exmpl_post_single .exmpl_name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
	color: var(--text-muted);
	padding: 9px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
	margin: 0;
}
.exmpl_detail .exmpl_post_single .exmpl_name:first-of-type { border-top: none; }
.exmpl_detail .exmpl_post_single .exmpl_name opacit {
	background: #f4eef4 !important;
	color: var(--text-heading);
	font-weight: 600;
	border-radius: 8px;
	padding: 4px 12px !important;
	margin: 0 !important;
	white-space: nowrap;
}
.exmpl_detail .exmpl_post_single .exmpl_status { height: 4px !important; }
.exmpl_detail .exmpl_post_single .pic { margin-top: 14px; }
.exmpl_detail .exmpl_post_single .pic img { border-radius: 12px; }

/* ─── Данные проекта в toad_window (карточка .item) ─────────────────── */
.project_detail .proj_post_single .item {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.project_detail .proj_post_single .project_type {
	background: none !important;
	padding: 0 !important;
	margin: 0 0 2px !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-align: left;
}
.project_detail .proj_post_single .project_type:empty { display: none; }
.project_detail .proj_post_single .project_name {
	background: none !important;
	padding: 0 !important;
	margin: 0 0 10px !important;
	font-size: 22px;
	font-weight: 700;
	color: var(--text-heading);
	text-align: left;
	word-break: break-word;
}
.project_detail .proj_post_single .project_status {
	background: #f4eef4 !important;
	color: var(--text-heading);
	font-weight: 600;
	font-size: 13px;
	display: inline-block;
	padding: 5px 14px !important;
	border-radius: 100px;
	margin: 0 !important;
}
.project_detail .proj_post_single .project_status:empty { display: none; }
.project_detail .proj_post_single .project_status_row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}
.project_detail .proj_post_single .btns_in_detail { margin: 0 0 0 auto; }
.project_detail .proj_post_single .btns_in_detail .btn {
	margin: 0;
	padding: 5px 14px;
	border-radius: 100px;
	font-size: 13px;
	align-items: center;
}
.project_detail .proj_post_single .btns_in_detail .btn count { margin-left: 8px; }
.project_detail .proj_post_single .pic { margin: 14px 0 4px; }
.project_detail .proj_post_single .pic img { border-radius: 12px; }
.project_detail .proj_post_single .project_dates,
.project_detail .proj_post_single .project_size,
.project_detail .proj_post_single .project_gauge,
.project_detail .proj_post_single .project_visibility,
.project_detail .proj_post_single .project_sale {
	font-size: 14px;
	color: #6a636f;
	text-align: left;
	padding: 9px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
	margin: 0;
}
.project_detail .proj_post_single .project_dates opacit {
	color: var(--text-heading);
	font-weight: 600;
}
.project_detail .proj_post_single .project_size_label {
	color: var(--text-heading);
	font-weight: 600;
}

/* Обёртки .item в toad_window — всегда видимы (перебиваем .yarn_list.blog{display:none}
   и глобальные $('.yarn_list').hide() при открытии форм) */
.yarn_detail .yarn_post_single,
.exmpl_detail .exmpl_post_single,
.tool_detail .tool_post_single,
.project_detail .proj_post_single,
.sovm_detail .sovm_post_single {
	display: block !important;
}

/* ─── Объекты с этой пряжей — компактные группы-строки ──────────────── */
.yarn_list.projects_in_yarn_detail,
.yarn_list.examples_in_yarn_detail,
.yarn_list.yarn_on_yarntoad {
	display: block;
	margin: 6px 0 10px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.06);
}
.yarn_linked_group_title {
	font-weight: 600;
	color: #6a636f;
	font-size: 13px;
	margin: 6px 0 6px;
}
.yarn_linked_row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
	text-decoration: none;
}
.yarn_linked_row:first-of-type { border-top: none; }
.yarn_linked_name {
	color: var(--accent-orchid);
	font-weight: 600;
	font-size: 14px;
	min-width: 0;
	word-break: break-word;
	border-bottom: 1px solid rgba(162,79,176,0.35);
}
.yarn_linked_meta {
	color: var(--text-muted);
	font-size: 12px;
	white-space: nowrap;
	flex: none;
}
.yarn_linked_row:active .yarn_linked_name { opacity: 0.7; }

/* ─── Расход пряжи в toad_window ────────────────────────────────────── */
.yarn_detail_usage {
	margin: 6px 0 10px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.06);
}
.yarn_usage_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-top: 1px solid rgba(0,0,0,0.06);
	font-size: 14px;
}
.yarn_usage_row:first-of-type { border-top: none; }
.yarn_usage_obj { color: var(--text-heading); font-weight: 600; min-width: 0; word-break: break-word; }
.yarn_usage_link { color: var(--accent-orchid); text-decoration: none; border-bottom: 1px solid rgba(162,79,176,0.35); }
.yarn_usage_link:active { opacity: 0.7; }
.yarn_usage_meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.yarn_usage_date { color: var(--text-muted); font-size: 12px; }
.yarn_usage_grams { background: #f4eef4; color: var(--text-heading); font-weight: 600; border-radius: 8px; padding: 4px 12px; }

/* ─── Данные пряжи в toad_window (карточка .item) ───────────────────── */
.yarn_detail .yarn_post_single .brand {
	background: none !important;
	padding: 0 !important;
	margin: 0 0 2px !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-align: left;
}
.yarn_detail .yarn_post_single .brand:empty { display: none; }

.yarn_data .color, .project_data .project_status, .exmpl_data .project_status {
	border-radius: 20px;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    background: #fff;
	}

.btns_in_detail {
	margin-top: 10px;
}

.btns_in_detail .btn {
	background: #c4bde0;
    padding: 4px 12px;
    display: flex;
    margin-bottom: 5px;
    border-radius: 10px;
    white-space: nowrap;
    width: fit-content
}

.btns_in_detail .btn span {
	padding: 0;
	font-size: unset;
	display: table;
}

.btns_in_detail .btn count {
	background: rgba(255,255,255,0.6);
	border-radius: 20px;
	display: inline-block;
	padding: 0 5px;
	margin-left: 10px;
}

.yarn_data .name, .project_data .project_name, .exmpl_data .project_name {
	padding: 10px;
	padding-top: 0;
    margin-left: -10px;
    margin-right: -10px;
    padding-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
}

.rounder {
	height: 10px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    margin-left: -10px;
    margin-right: -10px;
    position: relative;
    margin-top: 20px;
    
    z-index: 3;
}

.white_backa {
	background: #fff;
    margin: -10px;
    margin-bottom: -20px;
    padding: 10px;
}

.yarn_list.in_proj_detail .item {
	border: 0;
	border-radius: 15px 15px 0 15px;
}

.yarn_data .name .righter {
	display: flex;
	font-size :14px;
	line-height: 26px;
	gap: 5px;
}

.yarn_list_second {
	max-width: 500px;
	margin: auto;
	padding: 0 5px;
}

.yarn_data, .project_data, .exmpl_data, .params_data, .blog_data, .yarntoad_projects_data {
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    overflow: auto;
    padding-bottom: 0px
}

.project_data::-webkit-scrollbar, .yarn_data::-webkit-scrollbar, .exmpl_data::-webkit-scrollbar, .blog_data::-webkit-scrollbar, .yarntoad_projects_data::-webkit-scrollbar {
	width: 0;
    height: 0;
    scrollbar-width: none;
}

.yarn_proj_status {
	background: #dacdcc;
    padding: 10px;
    border-radius: 10px;
    display: none;
    margin-top: 20px;
}

.big_comments .proj-cmt:first-child{
	margin-top: 20px;
}

.yarn_list .item_name, .yarn_list_second .item_name, .yarn_data .name, .project_data .project_name, .exmpl_data .project_name {
	font-size: 20px;
	color: #000;
	padding-bottom: 10px;
	padding-top: 4px;
}

.addmorephoto, .addphoto {
	padding: 10px;
	display: none;
	padding-bottom: 20px;
}

.addphoto {
	display: block;
}

.addmorephoto a, .addphoto a {
	text-decoration: none;
    color: var(--text-ink);
    background: #fff;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
}

/* ─── Блок «Фото» в форме проекта/пряжи ───────────────────────────────── */
.block_proj_photo .proj_photo_head,
.block_photo .proj_photo_head,
.block_exmpl_photo .proj_photo_head,
.block_tool_photo .proj_photo_head,
.block_sovm_photo .proj_photo_head,
.block_opisanie_photo .proj_photo_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	row-gap: 10px;
	width: 100%;
}

.block_proj_photo .proj_photo_head_label,
.block_photo .proj_photo_head_label,
.block_exmpl_photo .proj_photo_head_label,
.block_tool_photo .proj_photo_head_label,
.block_sovm_photo .proj_photo_head_label,
.block_opisanie_photo .proj_photo_head_label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-heading);
}

.block_proj_photo .proj_photo_head_icon,
.block_photo .proj_photo_head_icon,
.block_exmpl_photo .proj_photo_head_icon,
.block_tool_photo .proj_photo_head_icon,
.block_sovm_photo .proj_photo_head_icon,
.block_opisanie_photo .proj_photo_head_icon {
	width: 38px;
	height: 38px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(135,100,210,0.85) 0%, rgba(110,80,200,0.9) 45%, rgba(95,65,195,0.95) 100%);
	color: #fff;
}

.block_proj_photo .proj_photo_head_icon svg,
.block_photo .proj_photo_head_icon svg,
.block_exmpl_photo .proj_photo_head_icon svg,
.block_tool_photo .proj_photo_head_icon svg,
.block_sovm_photo .proj_photo_head_icon svg,
.block_opisanie_photo .proj_photo_head_icon svg {
	width: 19px;
	height: 19px;
}

.block_proj_photo .addphoto,
.block_proj_photo .addmorephoto,
.block_photo .addphoto,
.block_photo .addmorephoto,
.block_exmpl_photo .addphoto,
.block_exmpl_photo .addmorephoto,
.block_tool_photo .addphoto,
.block_tool_photo .addmorephoto,
.block_sovm_photo .addphoto,
.block_sovm_photo .addmorephoto,
.block_opisanie_photo .addphoto,
.block_opisanie_photo .addmorephoto {
	padding: 0;
}

.form.proj_add .block_proj_photo .addphoto a,
.form.proj_add .block_proj_photo .addmorephoto a,
.form.yarn_add .block_photo .addphoto a,
.form.yarn_add .block_photo .addmorephoto a,
.form.exmpl_add .block_exmpl_photo .addphoto a,
.form.exmpl_add .block_exmpl_photo .addmorephoto a,
.form.tool_add .block_tool_photo .addphoto a,
.form.tool_add .block_tool_photo .addmorephoto a,
.form.sovm_add .block_sovm_photo .addphoto a,
.form.sovm_add .block_sovm_photo .addmorephoto a,
.form.opisanie_add .block_opisanie_photo .addphoto a,
.form.opisanie_add .block_opisanie_photo .addmorephoto a {
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta));
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	padding: 8px 8px 8px 18px;
	border-radius: 100px;
	white-space: nowrap;
}

.block_proj_photo .proj_photo_add_plus,
.block_photo .proj_photo_add_plus,
.block_exmpl_photo .proj_photo_add_plus,
.block_tool_photo .proj_photo_add_plus,
.block_sovm_photo .proj_photo_add_plus,
.block_opisanie_photo .proj_photo_add_plus {
	width: 26px;
	height: 26px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.28);
	font-size: 18px;
	font-style: normal;
	line-height: 1;
}

/* ─── Заголовки блоков «Пряжа/Образцы/Описания/Инструменты» в форме проекта ─── */
.form.proj_add .proj_block_head,
.form.exmpl_add .proj_block_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	row-gap: 10px;
	width: 100%;
}

.form.proj_add .proj_block_head_label,
.form.exmpl_add .proj_block_head_label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-heading);
}

.form.proj_add .proj_block_head_icon,
.form.exmpl_add .proj_block_head_icon {
	width: 38px;
	height: 38px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(135,100,210,0.85) 0%, rgba(110,80,200,0.9) 45%, rgba(95,65,195,0.95) 100%);
	color: #fff;
}

.form.proj_add .proj_block_head_icon svg,
.form.exmpl_add .proj_block_head_icon svg {
	width: 19px;
	height: 19px;
}

.form.proj_add .proj_block_add_btn,
.form.exmpl_add .proj_block_add_btn,
.form .block_tools .reg-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta)) !important;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 100px;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.form.proj_add .proj_block_add_plus,
.form.exmpl_add .proj_block_add_plus {
	width: 26px;
	height: 26px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,0.28);
	font-size: 18px;
	font-style: normal;
	line-height: 1;
}

#fileform {
	padding-bottom: 20px;
}

.btn_plus, .btn_home {
	transition: 0.3s;
	position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    z-index: -10;
    opacity: 0;
}
.tg-mini .btn_plus, .tg-mini .btn_home { top: 10px; }

.btn_plus {
	margin-left: 450px;
}

.btn_home {
	margin-left: 414px;
	color: var(--text-ink);
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn_plus.actual, .btn_home.actual {
	transform: rotateZ(45deg);
    opacity: 1;
    z-index: 10;
}

/* Скрываем крестик, когда в основном списке активна кнопка действия (.spec_btn).
   Намеренно не включаем контейнеры внутри форм (yarn_in_*_form и т.п.),
   иначе кнопка «Убрать» в прикреплённых элементах скрывала бы крестик закрытия формы. */
body:has(.yarn_list.yarns .item .spec_btn, .yarn_list.projects .item .spec_btn, .yarn_list.examples .item .spec_btn) .btn_plus.actual {
	opacity: 0;
	pointer-events: none;
}

/* Но если открыт toad_window — крестик всегда виден */
body.toad_window_open:has(.yarn_list.yarns .item .spec_btn, .yarn_list.projects .item .spec_btn, .yarn_list.examples .item .spec_btn) .btn_plus.actual {
	opacity: 1;
	pointer-events: auto;
}

.btn_home.actual {
	transform: none;
}

.btn_plus.actual.on_form {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 10px);
	/* Форма: max-width 700px, центрированная в 100vw контейнере.
	   max() страхует на узких экранах когда форма занимает всю ширину. */
	right: max(calc((100vw - 700px) / 2 + 10px), 15px);
	margin-left: 0;
}
.tg-mini .btn_plus.actual.on_form { top: 10px; }

/* Широкий экран: крестик в линию с пузырём заголовка */
@media (min-width: 701px) {
	.btn_plus.actual.on_form {
		top: calc(env(safe-area-inset-top, 0px) + 20px);
	}
	.tg-mini .btn_plus.actual.on_form { top: 20px; }
}

/* Когда открыт toad_window — кнопка в его правом верхнем углу.
   Два селектора: без on_form и с on_form (перебивает on_form по специфичности). */
body.toad_window_open .btn_plus.actual,
body.toad_window_open .btn_plus.actual.on_form {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 5px);
	right: calc((100vw - 500px) / 2 + 0px);
	margin-left: 0;
}

/* Fancybox: верхняя панель и счётчик не должны уезжать под системную полосу (standalone/чёлка) */
.fancybox-toolbar { top: calc(env(safe-area-inset-top, 0px)) !important; }
.fancybox-infobar { top: calc(env(safe-area-inset-top, 0px)) !important; }
.fancybox-navigation .fancybox-button--arrow_left,
.fancybox-navigation .fancybox-button--arrow_right { margin-top: calc(env(safe-area-inset-top, 0px) / 2); }
.tg-mini .fancybox-toolbar,
.tg-mini .fancybox-infobar { top: 0 !important; }
.tg-mini .fancybox-navigation .fancybox-button--arrow_left,
.tg-mini .fancybox-navigation .fancybox-button--arrow_right { margin-top: 0; }

/* Домик — привязан к позиции крестика (тот же расчёт right + 36px левее) */
body.toad_window_open .btn_home.actual {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 5px);
	right: calc((100vw - 500px) / 2 + 40px);
	margin-left: 0;
}

.btn_plus_container, .btn_menu_container {
	display: block;
	width: 60px;
	height: 60px;
}

.form.menu_btns {
	
	z-index: 2;
	width: 30px;
}

.proj-cmt {
	padding: 5px 10px;
	background: #fff;
    border-radius: 10px;
    margin-top: 10px;
	position: relative;
	transition: min-height 0.25s ease;
}

.proj-cmt.selected {
	background: #d7c9c9;
	border-radius: 10px;
}

.proj-cmt.selected rem {
	float: right;
	cursor: pointer;
	border-top: 2px solid #000;
	width: 16px;
	height: 16px;
	transform: rotate(45deg);
	margin-bottom: -3px;
    margin-top: 3px;
}

.proj-cmt.selected rem::after {
	content: '';
    position: absolute;
    border-bottom: 2px solid #000;
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    left: 8px;
    top: -10px;
}

.proj-cmt.remove_confirm_active {
	position: relative;
	overflow: hidden;
	min-height: 100px;
}

.proj-cmt .comment_remove_confirm {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	background: rgba(255,255,255,0.82);
	backdrop-filter: blur(6px);
	text-align: center;
}

.proj-cmt .comment_remove_confirm_text {
	font-size: 14px;
	line-height: 1.25;
	color: rgba(0,0,0,0.68);
}

.proj-cmt .comment_remove_confirm_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.proj-cmt .comment_remove_confirm_yes,
.proj-cmt .comment_remove_confirm_no {
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
}

.proj-cmt .comment_remove_confirm_yes {
	background: #b85662;
	color: #fff;
}

.proj-cmt .comment_remove_confirm_no {
	background: rgba(0,0,0,0.08);
	color: rgba(0,0,0,0.66);
}

.proj-cmt date {
	display: block;
	color: #8e6969;
	font-size: 12px;
}

.proj-cmt .comment_meta_line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.proj-cmt .comment_meta_left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.proj-cmt .comment_actions_wrap {
	position: relative;
	flex: 0 0 auto;
}

.proj-cmt .dots {
	position: relative;
	top: auto;
	right: auto;
	font-size: 18px;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	color: #8e6969;
	user-select: none;
}

.proj-cmt .actions {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 150px;
	padding: 8px 0;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(8px);
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(34, 18, 22, 0.18);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 12;
	pointer-events: none;
}

.proj-cmt .actions.actual {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.proj-cmt .actions a {
	display: block;
	padding: 9px 14px;
	font-size: 13px;
	color: #2e2527;
	text-decoration: none;
	white-space: nowrap;
}

.proj-cmt .actions a:hover {
	background: rgba(125, 74, 90, 0.08);
}

.proj-cmt .comment_author_link {
	padding: 0;
	border: 0;
	background: transparent;
	color: #7c4f5a;
	font-size: 12px;
	line-height: 1.2;
	text-decoration: underline;
	cursor: pointer;
}

.proj-cmt .comment_like_toggle {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	overflow: visible;
	min-width: 18px;
	flex: 0 0 auto;
}

.proj-cmt .comment_bottom_line {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: 8px;
}

.proj_cmts .comment_edit_cancel {
	margin-top: 8px;
	border: 0;
	background: transparent;
	color: #7c4f5a;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.proj-cmt .comment_like_icon {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
	transform-origin: 50% 50%;
	will-change: transform;
}

.proj-cmt .comment_like_toggle.pulse .comment_like_icon {
	animation: blogLikePulse 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.proj-cmt .comment_like_count {
	font-size: 11px;
	font-weight: 600;
	display: inline-block;
	min-width: 0;
	max-width: 0;
	opacity: 0;
	transform: translateX(-14px);
	transition: max-width 0.24s ease, opacity 0.18s ease, transform 0.24s ease, margin-left 0.24s ease;
	margin-left: -8px;
	white-space: nowrap;
	color: rgba(0,0,0,0.52);
	overflow: hidden;
}

.proj-cmt .comment_like_toggle.liked .comment_like_count {
	color: #d34a5b;
}

.proj-cmt .comment_like_count.visible {
	max-width: 32px;
	opacity: 1;
	transform: translateX(0);
	margin-left: 5px;
}

.proj-cmt .comment_media_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 8px;
}

.proj-cmt .comment_media_grid.media_count_1 {
	grid-template-columns: minmax(0, 1fr);
}

.proj-cmt .comment_media_grid img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 12px;
}

.proj-cmt .comment_media_grid.media_count_1 img {
	height: auto;
	max-height: 420px;
	object-fit: contain;
}

.proj-cmt .comment_media_grid.comment_media_pending {
	position: relative;
}

.proj-cmt .comment_media_pending_overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(28, 20, 22, 0.34);
	border-radius: 12px;
	backdrop-filter: blur(3px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.proj-cmt .comment_media_pending_overlay .loading {
	margin: 0;
	display: block;
}

.proj-cmt .comment_files_list,
.proj-cmt .comment_files_rendered {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

/* Список файлов в compose-зоне заметок */
/* Кнопка «Присоединиться» для публичных чатов (не-участник) */
.messages_join_stub {
	padding: 12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
	display: flex;
	justify-content: center;
}

/* Пустой блог пользователя */
.lenta_blog_feed_empty {
	text-align: center;
	color: rgba(0,0,0,0.5);
	font-size: 15px;
	padding: 40px 16px;
}

/* ─── Панель участников чата ──────────────────────────────────────────── */
.messages_conversation_status .messages_members_link {
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.messages_members_overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	background: rgba(20, 15, 35, 0.35);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.messages_members_panel {
	width: 100%;
	max-height: 70%;
	background: #fff;
	border-radius: 20px 20px 0 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 -8px 28px rgba(20,15,40,0.22);
}

.messages_members_panel_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	flex: none;
}
.messages_members_panel_title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-heading);
}
.messages_members_panel_close {
	border: 0;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: #8a8698;
	cursor: pointer;
}

.messages_members_panel_list {
	overflow-y: auto;
	padding: 4px 8px calc(env(safe-area-inset-bottom, 0px) + 12px);
}

.messages_members_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 14px;
	cursor: pointer;
}
.messages_members_row:active {
	background: rgba(0,0,0,0.05);
}

.messages_members_avatar {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #6b4a6b;
}
.messages_members_avatar.empty {
	background: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}

.messages_members_meta {
	min-width: 0;
}
.messages_members_name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.messages_members_username {
	font-size: 13px;
	color: var(--accent);
	margin-top: 2px;
}
.messages_members_empty {
	padding: 24px 12px;
	text-align: center;
	color: rgba(0,0,0,0.5);
	font-size: 14px;
}
.messages_join_btn {
	width: 100%;
	max-width: 320px;
	background: linear-gradient(121deg, var(--accent), var(--accent-magenta));
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: 0;
	border-radius: 100px;
	padding: 13px 24px;
	cursor: pointer;
}
.messages_join_btn.pressed {
	opacity: 0.6;
	pointer-events: none;
}

.messages_compose_stub .comment_files_list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 12px 0;
}
.messages_compose_stub .comment_files_list:empty {
	display: none;
}
.messages_compose_stub .blog_note_file_item {
	position: relative;
}
.messages_compose_stub .blog_article_figure_del {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: rgba(80,50,40,0.12);
	color: #7a5040;
	font-size: 16px;
	line-height: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.messages_compose_stub .blog_article_figure_del:hover {
	background: rgba(200,80,60,0.15);
	color: #c84030;
}

.comments_loading_placeholder {
	pointer-events: none;
	opacity: 0.9;
}

.comments_loading_intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 16px;
	padding-bottom: 16px;
}

.comments_loading_intro .loading {
	display: block;
	width: 40px;
	height: 40px;
	background-size: 28px;
	margin: 0 auto 8px;
	opacity: 0.7;
}

.comments_loading_intro_title {
	font-size: 13px;
	line-height: 1.2;
	color: #5a5353;
	font-weight: 600;
}

.comments_loading_intro_note {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: #8e6969;
}

.comments_loading_line {
	height: 10px;
	border-radius: 999px;
	margin-bottom: 8px;
	background: linear-gradient(90deg, rgba(190,169,169,0.38) 0%, rgba(255,255,255,0.82) 50%, rgba(190,169,169,0.38) 100%);
	background-size: 220% 100%;
	animation: commentsLoadingShine 1.2s linear infinite;
}

.comments_loading_line.width_100 {
	width: 100%;
}

.comments_loading_line.width_92 {
	width: 92%;
}

.comments_loading_line.width_82 {
	width: 82%;
}

.comments_loading_line.width_40 {
	width: 40%;
}

.comments_loading_line.width_32 {
	width: 32%;
}

@keyframes commentsLoadingShine {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -20% 0;
	}
}

.big_comments {
	margin-top: 10px;
}

.big_comments_input {
	padding: 10px; background: #fff; border-radius: 10px; padding-right: 40px;
	padding-left: 40px;
}

.msg-attach {
	background: url(/images/attach_file.svg); background-size: 25px; height: 25px; width: 25px; display: block; position: absolute; margin-top: 7px; margin-left: 4px; cursor: pointer; cursor: pointer;
}

/* ── Блок заметок в toad_window (своя раскладка, не мессенджер) ─────────── */
.proj_cmts .messages_compose_stub {
	margin: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 0 0;
	background: none;
	border-top: none;
}

/* Одна горизонтальная строка: [+] [инпут......] [➤] */
.proj_cmts .messages_compose_box {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.proj_cmts .messages_compose_box .big_comments_input.messages_compose_input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	background: rgba(244,240,243,0.95);
	border-radius: 18px;
	border: 0;
	box-shadow: none;
	font-size: 13px;
	min-height: unset;
	max-height: 80px;
}

.proj_cmts .comment_attach_wrap.messages_compose_actions {
	flex: 0 0 auto;
	position: relative;
	left: auto;
	top: auto;
	z-index: auto;
}

.proj_cmts .messages_compose_attach_btn {
	width: 34px;
	height: 34px;
	font-size: 22px;
}

.proj_cmts .msg_send.messages_compose_send {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	font-size: 15px;
}

.proj_cmts .comment_attach_wrap .messages_compose_attach_menu {
	display: none;
}

.proj_cmts .comment_attach_wrap.open .messages_compose_attach_menu {
	display: flex;
}

/* Лента превью фото — как .messages_compose_media_strip */
.proj_cmts .pics.messages_compose_media_strip {
	display: flex;
	gap: 8px;
	margin: 0 0 10px 0;
	padding: 0 0 2px 0;
	overflow-x: auto;
	box-sizing: border-box;
	min-height: 0;
}

.proj_cmts .pics.messages_compose_media_strip .uploaded {
	position: relative;
	width: 64px;
	height: 64px;
	min-width: 64px;
	flex: 0 0 64px;
	border-radius: 16px;
	overflow: hidden;
	border: 0;
	box-shadow: none;
	background-size: cover;
	background-position: center;
	background-color: rgba(244,240,243,0.95);
}

.proj_cmts .pics.messages_compose_media_strip .uploaded.selected {
	border: 2px solid var(--warm);
	box-shadow: 0 0 0 1px rgba(210, 130, 84, 0.2);
}

.proj_cmts .pics.messages_compose_media_strip .uploaded span {
	top: 5px;
	right: 5px;
	width: 20px;
	height: 20px;
	background: rgba(26,18,24,0.68);
	border-radius: 50%;
	z-index: 3;
}

.proj_cmts .pics.messages_compose_media_strip .uploaded span svg {
	padding: 0;
	width: 10px;
	height: 10px;
}

.proj_cmts .pics.messages_compose_media_strip .uploaded span svg path {
	stroke: #fff;
	stroke-width: 2.2;
}

.proj_cmts .blog_photo_upload_overlay {
	position: absolute;
	inset: 0;
	background: rgba(38, 29, 24, 0.32);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.proj_cmts .blog_photo_upload_spinner {
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #ffffff;
	animation: messagesComposeSpin 0.8s linear infinite;
}

.proj_cmts .pics.messages_compose_media_strip .blog_photo_upload_spinner {
	width: 20px;
	height: 20px;
}

.proj_cmts .blog_photo_upload_error {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(165, 49, 49, 0.92);
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	text-align: center;
	z-index: 2;
}

.sostavi .flex {
	width: fit-content; margin: auto; line-height: 65px;
	position: relative;
}

.sostavi .flex input.yarn_sostav{
	width: 100%;
	text-align: left;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
	background: #dcd5de;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px;
    box-sizing: border-box;
}

.color_remove {
	width: 28px;
	text-align: center;
    height: 20px;
    border-radius: 20px;
    color: #fff;
    background: rgb(98 98 247) !important;
    margin-left: 10px;
    margin-top: 25px;
    line-height: 20px;
    cursor: pointer;
}

.sostavi .flex .btn_blue.yarn_btn.minus {
	padding: 2px 6px;
    display: block;
    height: 15px;
    line-height: 15px;
    margin-top: 24px;
    position: absolute;
    right: -20px;
}

.btn_yarn_container {
	margin-left: -190px;
	}
	
	.btn_projects_container {
	margin-left: 190px;
	}
	
.plus_menu {
	position: absolute;
	margin-top: 50px;
	width: 300px;
	max-width: 300px;
	margin-left: -120px;
	display: block;
	opacity: 0;
	transition: 0.2s;
	transform: scale(5);
	visibility: hidden
}

.plus_menu.actual {
	display: block !important;
	opacity: 1;
	transform: scale(1);
	visibility: inherit
}

.gray {
	color: #7799aa;
	border-bottom: 1px dashed #7799aa; 
}

gray {
	
	color: #785c5c; font-size: 13px;
	
}

graylit {
	 font-size: 13px;
}

.fog {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	min-height: 100vh;
	min-height: 100dvh;
	min-height: var(--app-height, 100vh);
	z-index: 2;
	
	transition: 0.3s;
	opacity: 0;
}

.fog.actual {
	display: block;
	opacity: 1
}

.colornumber, .colortype {
	width: 100%;
	display: none;
	padding-top: 20px;
}

#yarn_meters, #yarn_weight, .lite {
	width: 72px;
	text-align: center;
	padding: 10px;
	margin-right: 4px;
	padding-left: 5px;
	padding-right: 5px;
	height: 10px;
}

.lite {
	font-size: 16px;
	width: 170px;
	margin: 5px;
}

.lite::placeholder {
	font-size: 16px;
	
}

.form.tool_add .block_tool_price input,
.form.tool_add .block_tool_buy_date input {
	display: block;
	width: 200px;
	margin: 0 auto;
}

.form.tool_add #tool_type,
.form.tool_add #tool_material,
.form.proj_add #proj_shoulder_subtype,
.form.proj_add #proj_belt_subtype,
.form.proj_add #proj_accessory_subtype,
.form.proj_add #proj_interior_subtype,
.form.proj_add #proj_toy_subtype {
	width: 170px;
	padding: 10px 32px 10px 10px;
	line-height: 1.2;
	text-align: center;
	text-align-last: center;
	font-size: 18px;
	color: #000;
	background: #fff;
	border: 0;
	border-radius: 18px;
	margin: 5px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.55) 50%),
		linear-gradient(135deg, rgba(0,0,0,0.55) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 3px),
		calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.form.tool_add #tool_type option,
.form.tool_add #tool_material option,
.form.proj_add #proj_shoulder_subtype option,
.form.proj_add #proj_belt_subtype option,
.form.proj_add #proj_accessory_subtype option,
.form.proj_add #proj_interior_subtype option,
.form.proj_add #proj_toy_subtype option {
	color: #000;
	background: #fff;
}

.form.proj_add #proj_accessory_subtype option {
	text-align: left;
}
.form.proj_add #proj_accessory_subtype option.proj_subtype_header {
	font-weight: 700;
	color: #000;
}
.form.proj_add #proj_accessory_subtype option.proj_subtype_sep {
	color: #bbb;
}

#yarn_weight[type="number"]::-webkit-inner-spin-button,
#yarn_weight[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#yarn_meters[type="number"]::-webkit-inner-spin-button,
#yarn_meters[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.block_color .table {
	display: table; 
	margin: auto;
	}
	
.yarn_data .pic, .project_data .pic, .expl_data .pic {
	display: flex;
	gap: 6px;
	padding-top: 10px;
	padding-bottom: 10px;
	overflow: auto;
}

.yarn_data .pic img, .project_data .pic img, .exmpl_data .pic img {
	height: 200px;
    width: unset;
    border-radius: 10px;
}

.pics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 20px;
}

.pics .uploaded {
	width: 75px;
	height: 75px;
	background-size: cover;
	position: relative;
	box-sizing: border-box;
	transition: 0.2s;
	background-position: center;
}

.pics .uploaded.opisaniya {
	width: unset;
	height: unset;
	clear: both;
	background: white;
	margin: auto;
	border-radius: 10px;
	padding: 6px;
	padding-right: 30px;
}

.yarn_types {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 20px;
	justify-content: center
}

.yarn_types div {
	background: #fff;
	border-radius: 10px;
	padding: 6px;
	
}

.pics .uploaded.selected {
	border: 2px solid rgba(100,255,100,0.8)
}

.pics .uploaded span {
	isplay: block;
    position: absolute;
    background: #fff;
    border-radius: 10px;
    height: 30px;
    width: 30px;
    padding: 0;
    font-size: 20px;
    right: -5px;
    top: -5px;
}

.pics .uploaded span svg {
	padding: 8px;
}

/* ─── Универсальная карточка-секция формы ──────────────────────────────── */
.form_card {
	background: linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.38) 100%);
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 18px;
	padding: 16px;
	margin: 0 20px 14px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
	box-sizing: border-box;
}

/* input-container внутри form_card-обёртки: убираем собственные отступы */
.form_card > .input-container {
	margin: 0;
	padding: 0;
}
.form_card > .input-container + .input-container {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.4);
}

/* input_head внутри любой карточки */
.form_card .input_head {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #876f63;
	padding-bottom: 6px;
	padding: 0 0 6px 0;
	width: 100%;
}

.form.yarn_add .block_photo.form_card,
.form.proj_add .block_proj_photo.form_card,
.form.exmpl_add .block_exmpl_photo.form_card,
.form.tool_add .block_tool_photo.form_card,
.form.sovm_add .block_sovm_photo.form_card,
.form.opisanie_add .block_opisanie_photo.form_card {
	width: auto;
}

.form.blog_add .blog_add_compose_tools {
	display: flex;
	justify-content: flex-start;
	padding: 10px 0 0;
	width: 100%;
}

.form.blog_add .blog_add_insert_wrap {
	position: relative;
}

.form.blog_add .blog_add_insert_btn {
	width: 38px;
	height: 38px;
	border: 1px solid #decfc5;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffffff 0%, #f4ece7 100%);
	box-shadow: 0 10px 20px rgba(121, 83, 58, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: #7b5b49;
}

.form.blog_add .blog_add_insert_btn span {
	display: block;
	transform: translateY(-1px);
}

.form.blog_add .blog_add_insert_menu {
	position: absolute;
	left: 0;
	top: calc(100% + 10px);
	min-width: 220px;
	padding: 8px;
	border-radius: 18px;
	border: 1px solid rgba(222, 207, 197, 0.95);
	background: rgba(255, 251, 247, 0.98);
	box-shadow: 0 22px 40px rgba(104, 76, 61, 0.14);
	backdrop-filter: blur(14px);
	display: none;
	z-index: 20;
}

.form.blog_add .blog_add_insert_wrap.open .blog_add_insert_menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.form.blog_add .blog_add_insert_option {
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.35;
	color: #3c2f2a;
}

.form.blog_add .blog_add_insert_option:hover {
	background: rgba(226, 212, 203, 0.42);
}

/* ── Универсальный compose_block (любой контекст формы) ─────────────────── */
.compose_block .blog_add_insert_wrap {
	position: relative;
}

.compose_block .blog_add_insert_btn {
	width: 38px;
	height: 38px;
	border: 1px solid #decfc5;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffffff 0%, #f4ece7 100%);
	box-shadow: 0 10px 20px rgba(121, 83, 58, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 0;
	padding-bottom: 0;
	color: #7b5b49;
}

.compose_block .blog_add_insert_menu {
	position: absolute;
	left: 0;
	top: calc(100% + 10px);
	min-width: 220px;
	padding: 8px;
	border-radius: 18px;
	border: 1px solid rgba(222, 207, 197, 0.95);
	background: rgba(255, 251, 247, 0.98);
	box-shadow: 0 22px 40px rgba(104, 76, 61, 0.14);
	backdrop-filter: blur(14px);
	display: none;
	z-index: 20;
}

.compose_block .blog_add_insert_wrap.open .blog_add_insert_menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.compose_block .compose_insert_opt {
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.35;
	color: #3c2f2a;
	cursor: pointer;
}

.compose_block .compose_insert_opt:hover {
	background: rgba(226, 212, 203, 0.42);
}

/* Конкретные формы (обратная совместимость) */
.form.blog_add .blog_add_secondary_block.is_hidden,
.form.opisanie_add .opisanie_add_secondary_block.is_hidden,
.form.sovm_add .sovm_add_secondary_block.is_hidden {
	display: none;
}
/* Универсальное правило — любой secondary block внутри .form */
.form [class*="_secondary_block"].is_hidden {
	display: none;
}

/* ===== Статейный редактор ===== */
/* ── Статейный редактор: единое поле ────────────────────────────────────── */
#blog_article_editor {
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

/* В input-container (flex) контент-блоки занимают всю ширину ряда */
#blog_article_editor,
#oa_article_editor,
#pe_sovm_article_editor,
#blog_post_input,
#opisanie_post_input,
/* Конкретные формы без pe_wrap */
.form.blog_add .compose_block,
.form.opisanie_add .compose_block,
/* Универсально: любой post_editor (pe_wrap) */
.pe_wrap .pe_note_input,
.pe_wrap .compose_block {
	position: relative;
	width: 100%;
}

/* Кнопка + висит поверх текстового поля — слева снизу */
/* Конкретные формы без pe_wrap */
.form.blog_add .compose_block .compose_insert_wrap,
.form.opisanie_add .compose_block .compose_insert_wrap,
/* Универсально: любой post_editor (pe_wrap) */
.pe_wrap .compose_block .compose_insert_wrap {
	position: absolute;
	top: -50px;
	left: 12px;
	z-index: 5;
}

.blog_article_editor_wrap {
	position: relative;
	overflow: visible;
	margin-left: 50px;
}
@media (max-width: 520px) {
	.blog_article_editor_wrap {
		margin-left: 0;
	}
	.blog_article_plus_btn {
		left: 8px !important;
	}
}

/* Универсально: в pe_wrap и описании кнопка + слева, текст сдвинут вправо */
#oa_article_editor_wrap,
.pe_wrap .blog_article_editor_wrap {
	margin-left: 0;
}
#oa_article_content,
.pe_wrap .blog_article_content {
	padding-left: 59px;
}

.blog_article_content {
	min-height: 600px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px;
	background: #fff;
	border-radius: 14px;
	border: 1.5px solid rgba(222,207,197,0.7);
	font-size: 15px;
	line-height: 1.6;
	outline: none;
	overflow-wrap: break-word;
	text-align: left;
}
.blog_article_content:empty::before {
	content: attr(data-placeholder);
	color: #bbb;
	pointer-events: none;
	display: block;
}
.blog_article_content:focus:empty::before { display: none; }

/* --- Figures (фото, пряжа, проект, образец) --- */
.blog_article_figure {
	display: block;
	margin: 10px 0;
	position: relative;
	cursor: default;
	-webkit-user-select: none;
	user-select: none;
}

/* --- Фото: пузырь ошибки загрузки с «Повторить» и крестиком --- */
/* Прикреплённые к статье объекты — базовый вид (фото слева + текст), без тени */
.blog_article_obj {
	display: block;
	margin: 20px 0 18px 0;
	background: #ede0e173;
	border-radius: 12px;
}
.art_obj_card {
	position: relative;
	min-height: 96px;
	padding-left: 108px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: pointer;
}
.art_obj_img {
	position: absolute;
	left: 0;
	top: 0;
	width: 96px;
	height: 96px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	background-color: #e7dee6;
}
.art_obj_body { min-width: 0; }
.art_obj_brand { font-size: 15px; color: #9a8f97; line-height: 1.2; word-break: break-word; }
.art_obj_name { font-size: 18px; color: #241d24; line-height: 1.25; word-break: break-word; }
.art_obj_after { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.art_obj_tag {
	display: inline-block;
	background: var(--panel-beige, #efe9ee);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12px;
	color: #6d5968;
}
.art_obj_colors { display: inline-flex; gap: 4px; }
.art_obj_colors span { display: inline-block; width: 18px; height: 18px; border-radius: 50%; }

.blog_article_error_bubble {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
	background: #fbeaf4;
	border: 1px solid #e9c6de;
	border-radius: 14px;
	padding: 12px 34px 12px 14px;
	box-sizing: border-box;
}
.blog_article_error_text {
	color: #8d3a86;
	font-size: 13px;
	line-height: 1.3;
}
.blog_article_error_retry {
	border: 0;
	border-radius: 999px;
	background: linear-gradient(124deg, #a06bd8 0%, #7d6bf0 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	cursor: pointer;
}
.blog_article_error_retry:active { transform: translateY(1px); }
.blog_article_error_close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba(141,58,134,0.12);
	color: #8d3a86;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Фото: превью во время загрузки (110×110) --- */
.blog_article_photo_preview {
	position: relative;
	width: 110px;
	height: 110px;
	border-radius: 12px;
	overflow: hidden;
	background: #f2ebe6;
}
.blog_article_photo_preview img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	display: block;
}
.blog_article_photo_preview_overlay {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.52);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Фото: после загрузки (60% ширины) --- */
.blog_article_photo_done {
	width: 60%;
	border-radius: 14px;
	overflow: hidden;
	background: #f2ebe6;
}
.blog_article_photo_done img {
	width: 100%;
	display: block;
	border-radius: 14px;
}

/* --- Карточки пряжи в редакторе --- */
.blog_article_figure .blog_yarn_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
	cursor: default;
	pointer-events: none;
}
.blog_article_figure .blog_yarn_pic {
	width: 58px; height: 58px; flex: 0 0 58px;
	border-radius: 14px;
	background-position: center; background-size: cover; background-repeat: no-repeat;
}
.blog_article_figure .blog_yarn_text { min-width: 0; }
.blog_article_figure .blog_yarn_name { font-size: 13px; line-height: 1.25; color: #000; font-weight: 600; word-break: break-word; }
.blog_article_figure .blog_yarn_item branda { display: block; color: rgba(0,0,0,0.52); font-size: 11px; margin-bottom: 2px; }
.blog_article_figure .blog_yarn_meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.blog_article_figure .blog_yarn_meta span { display: inline-block; background: rgba(255,255,255,0.8); border: 1px solid rgba(0,0,0,0.06); border-radius: 999px; padding: 3px 8px; font-size: 11px; line-height: 1.1; color: rgba(0,0,0,0.68); }

/* --- Карточки проекта в редакторе --- */
.blog_article_figure .blog_project_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #fffaf3 0%, #f4ece1 100%);
	border: 1px solid rgba(92,70,31,0.12);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
	cursor: default;
	pointer-events: none;
}
.blog_article_figure .blog_project_pic {
	width: 58px; height: 58px; flex: 0 0 58px;
	border-radius: 14px;
	background-position: center; background-size: cover; background-repeat: no-repeat;
}
.blog_article_figure .blog_project_text { min-width: 0; }
.blog_article_figure .blog_project_name { font-size: 13px; line-height: 1.25; color: #000; font-weight: 600; word-break: break-word; }
.blog_article_figure .blog_project_meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.blog_article_figure .blog_project_meta span { display: inline-block; background: rgba(255,255,255,0.8); border: 1px solid rgba(92,70,31,0.08); border-radius: 999px; padding: 3px 8px; font-size: 11px; line-height: 1.1; color: rgba(70,51,22,0.7); }

/* --- Карточки образца в редакторе --- */
.blog_article_figure .blog_example_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #f7fbff 0%, #ebf2f8 100%);
	border: 1px solid rgba(50,78,107,0.12);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
	cursor: default;
	pointer-events: none;
}
.blog_article_figure .blog_example_pic {
	width: 58px; height: 58px; flex: 0 0 58px;
	border-radius: 14px;
	background-position: center; background-size: cover; background-repeat: no-repeat;
}
.blog_article_figure .blog_example_text { min-width: 0; }
.blog_article_figure .blog_example_name { font-size: 13px; line-height: 1.25; color: #000; font-weight: 600; word-break: break-word; }
.blog_article_figure .blog_example_meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.blog_article_figure .blog_example_meta span { display: inline-block; background: rgba(255,255,255,0.8); border: 1px solid rgba(50,78,107,0.08); border-radius: 999px; padding: 3px 8px; font-size: 11px; line-height: 1.1; color: rgba(50,78,107,0.7); }

/* --- Кнопка удаления figure --- */
.blog_article_figure_del {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0,0,0,0.45);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	line-height: 1;
	padding: 0;
}
.blog_article_figure_del:hover { background: rgba(0,0,0,0.68); }

/* --- Ошибка загрузки --- */
.blog_article_figure_error {
	padding: 16px;
	color: #c0392b;
	font-size: 13px;
}

/* --- Список файлов в простой записи --- */
.blog_note_files_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 0 4px;
}
.blog_note_file_item {
	position: relative;
}

/* --- Файловый блок в статье --- */
.blog_article_file_wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fdf8f5;
	border: 1.5px solid rgba(222,207,197,0.8);
	border-radius: 14px;
	min-height: 60px;
	position: relative;
	text-decoration: none;
	color: inherit;
}
.blog_article_file_wrap.uploading {
	opacity: 0.75;
}
a.blog_article_file_wrap:hover {
	background: #f5ece4;
	border-color: rgba(196,160,128,0.7);
}
.blog_article_file_ext {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 26px;
	padding: 0 8px;
	border-radius: 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}
.blog_article_file_info {
	flex: 1;
	min-width: 0;
}
.blog_article_file_name {
	font-size: 14px;
	color: #2c1f1a;
	word-break: break-all;
	overflow-wrap: anywhere;
	line-height: 1.4;
}
.blog_article_file_size {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}
.blog_article_file_item_view {
	margin: 8px 0;
}

.blog_article_file_spinner_wrap {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.form.blog_add .blog_article_file_spinner_wrap .blog_photo_upload_spinner,
.form.opisanie_add .blog_article_file_spinner_wrap .blog_photo_upload_spinner,
.form.sovm_add .blog_article_file_spinner_wrap .blog_photo_upload_spinner,
.proj_cmts .blog_article_file_spinner_wrap .blog_photo_upload_spinner {
	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: 2px solid rgba(160,136,120,0.25);
	border-top-color: #a08878;
	animation: messagesComposeSpin 0.8s linear infinite;
}

/* --- Плавающая кнопка + --- */
.blog_article_plus_btn {
	position: absolute;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.13), 0 1px 3px rgba(0,0,0,0.07);
	color: #c4a080;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 1px 0;
	transition: box-shadow 0.2s, transform 0.2s, color 0.2s;
	z-index: 10;
}
.blog_article_plus_btn:hover {
	box-shadow: 0 4px 18px rgba(0,0,0,0.18);
	color: #8a5d3a;
}
.blog_article_plus_btn.open {
	box-shadow: 0 4px 18px rgba(0,0,0,0.18);
	transform: rotate(45deg);
	color: #8a5d3a;
}

/* --- Меню + --- */
.blog_article_plus_menu,
#oa_article_plus_menu {
	display: none;
	position: absolute;
	background: rgba(255,251,247,0.98);
	border: 1px solid rgba(222,207,197,0.95);
	border-radius: 16px;
	padding: 8px;
	z-index: 50;
	box-shadow: 0 16px 32px rgba(104,76,61,0.14);
	min-width: 180px;
}
.blog_article_plus_menu.open,
#oa_article_plus_menu.open { display: block; }
.blog_article_plus_opt,
.oa_article_plus_opt,
.pe_article_plus_opt {
	display: block;
	width: 100%;
	padding: 9px 14px;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: 10px;
	font-size: 14px;
	color: #3c2f2a;
	white-space: nowrap;
}
.blog_article_plus_opt:hover,
.oa_article_plus_opt:hover,
.pe_article_plus_opt:hover { background: rgba(226,212,203,0.42); }

.form.blog_add .blog_add_primary_input .block_blog_photo {
	width: 100%;
}

.form.proj_add .proj_add_primary_photo_block,
.form.exmpl_add .proj_add_primary_photo_block,
.form.yarn_add .proj_add_primary_photo_block,
.form.opisanie_add .proj_add_primary_photo_block,
.form.tool_add .proj_add_primary_photo_block,
.form.sovm_add .proj_add_primary_photo_block {
	width: 100%;
}

.form.blog_add .blog_add_primary_input .block_blog_photo .pics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 12px;
	padding-top: 14px !important;
}

/* Универсальная раскладка фото (фото в ряд + пометка «Обложка») для всех форм */
.proj_add_primary_photo_block .pics {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 28px !important;
}

.form.blog_add .blog_add_primary_input .block_blog_photo .pics .uploaded {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(140, 110, 94, 0.14);
	box-shadow: 0 14px 24px rgba(84, 59, 45, 0.12);
	background-size: cover;
	background-position: center;
}

.proj_add_primary_photo_block .pics .uploaded {
	position: relative;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 14px;
	overflow: visible;
	border: 1px solid rgba(140, 110, 94, 0.14);
	box-shadow: 0 6px 16px rgba(84, 59, 45, 0.1);
	background-size: cover;
	background-position: center;
}

.proj_add_primary_photo_block .pics .uploaded::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 14px;
	pointer-events: none;
}

.proj_add_primary_photo_block .pics:has(.uploaded + .uploaded) .uploaded.selected::before {
	content: 'Обложка';
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-weight: 600;
	color: #7a6a72;
	white-space: nowrap;
	background: rgba(255,255,255,0.82);
	padding: 2px 8px;
	border-radius: 8px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	letter-spacing: 0.04em;
	box-shadow: 0 1px 4px rgba(120,80,100,0.1);
}

.form.blog_add .blog_add_primary_input .block_blog_photo .pics .uploaded.selected {
	border: 2px solid var(--warm);
	box-shadow: 0 16px 26px rgba(210, 130, 84, 0.2);
}

.proj_add_primary_photo_block .pics .uploaded.selected {
	border: 2px solid var(--warm);
	box-shadow: 0 16px 26px rgba(210, 130, 84, 0.2);
}

.form.blog_add .blog_add_primary_input .block_blog_photo .pics .uploaded span {
	position: absolute;
	top: 8px;
	right: 8px;
	left: auto;
	z-index: 3;
	background: rgba(255,255,255,0.94);
	border-radius: 999px;
	height: 24px;
	width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.proj_add_primary_photo_block .pics .uploaded span {
	position: absolute;
	top: 8px;
	right: 8px;
	left: auto;
	z-index: 3;
	background: rgba(255,255,255,0.94);
	border-radius: 999px;
	height: 24px;
	width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.form.blog_add .blog_add_primary_input .block_blog_photo .pics .uploaded span svg {
	padding: 5px;
}

.proj_add_primary_photo_block .pics .uploaded span svg {
	padding: 5px;
}

/* ── compose_block — современные стили фото (округлые) ───────────────────── */
.form.blog_add .compose_photo_block .pics,
.form.opisanie_add .compose_photo_block .pics,
.pe_wrap .compose_photo_block .pics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 12px;
	padding-top: 14px !important;
}

.form.blog_add .compose_photo_block .pics .uploaded,
.form.opisanie_add .compose_photo_block .pics .uploaded,
.pe_wrap .compose_photo_block .pics .uploaded {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(140, 110, 94, 0.14);
	box-shadow: 0 14px 24px rgba(84, 59, 45, 0.12);
	background-size: cover;
	background-position: center;
}

.form.blog_add .compose_photo_block .pics .uploaded.selected,
.form.opisanie_add .compose_photo_block .pics .uploaded.selected,
.pe_wrap .compose_photo_block .pics .uploaded.selected {
	border: 2px solid var(--warm);
	box-shadow: 0 16px 26px rgba(210, 130, 84, 0.2);
}

.form.blog_add .compose_photo_block .pics .uploaded span,
.form.opisanie_add .compose_photo_block .pics .uploaded span,
.pe_wrap .compose_photo_block .pics .uploaded span {
	position: absolute;
	top: 8px;
	right: 8px;
	left: auto;
	z-index: 3;
	background: rgba(255,255,255,0.94);
	border-radius: 999px;
	height: 24px;
	width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.form.blog_add .compose_photo_block .pics .uploaded span svg,
.form.opisanie_add .compose_photo_block .pics .uploaded span svg,
.pe_wrap .compose_photo_block .pics .uploaded span svg {
	padding: 5px;
}

/* ── Upload overlay / spinner / error — универсальные (любая .form) ───────── */
.form .blog_photo_upload_overlay,
.params_userpic_preview .blog_photo_upload_overlay {
	position: absolute;
	inset: 0;
	background: rgba(38, 29, 24, 0.32);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.form .blog_photo_upload_spinner,
.params_userpic_preview .blog_photo_upload_spinner {
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #ffffff;
	animation: messagesComposeSpin 0.8s linear infinite;
}

.form .blog_photo_upload_error {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(165, 49, 49, 0.92);
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	text-align: center;
	z-index: 2;
}

.proj_add_primary_photo_block .pics .uploaded.error {
	opacity: 0.55;
}

.proj_add_primary_photo_block .pics .uploaded.error .blog_photo_upload_error {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: rgba(140, 30, 30, 0.72);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	z-index: 3;
	padding: 6px;
	text-align: center;
}

.proj_add_primary_photo_block .dpu_error_label {
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.proj_add_primary_photo_block .dpu_retry_btn {
	background: rgba(255,255,255,0.22);
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 20px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
}

.proj_add_primary_photo_block .dpu_retry_btn:hover {
	background: rgba(255,255,255,0.38);
}

/* ── Образец: значения усадок / растяжений ────────────────────────────────── */
.exmpl_ratio_value {
	font-size: 22px;
	font-weight: 600;
	color: var(--warm-dark);
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 8px 0 4px;
}

/* Конкретные формы (обратная совместимость) */
.form.blog_add .big_comments_input.blog,
.form.opisanie_add .big_comments_input.blog,
.form.sovm_add .big_comments_input.blog,
/* Универсально: любой post_editor (pe_wrap) */
.pe_wrap .pe_note_input {
	background: #fffdf9;
	border: 1px solid #e5d8cf;
	border-radius: 16px;
	padding: 18px 20px 54px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
	line-height: 1.55;
}

/* ── Универсальный сегментированный переключатель ─────────────────────────── */
.seg_control {
	display: inline-flex;
	align-items: center;
	position: relative;
	padding: 3px;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	box-sizing: border-box;
}

/* «Для продажи» — на всю ширину */
.opisanie_for_sale_toggle.seg_control {
	width: 100%;
	margin-top: 10px;
}

/* Статус / тип проекта — на всю ширину */
.proj_seg_full.seg_control {
	width: 100%;
	margin-top: 4px;
}

/* Многострочный сег-контрол (тип проекта) — кнопки переносятся по строкам */
.proj_seg_multirow.seg_control {
	flex-wrap: wrap;
	row-gap: 3px;
	border-radius: 18px;
	overflow: visible;
}
.proj_seg_multirow .seg_control_opt {
	flex: 1 1 calc(25% - 6px);
}

/* «Тип записи» — автоширина + отступ снизу */
.blog_add_post_type_switcher.seg_control {
	margin-bottom: 12px;
}

.seg_control_slider {
	position: absolute;
	top: 0;
	left: 0;
	height: calc(100% - 6px);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.13), 0 0px 1px rgba(0,0,0,0.06);
	pointer-events: none;
	z-index: 0;
	transition: transform 0.28s cubic-bezier(0.34, 1.20, 0.64, 1),
	            width   0.28s cubic-bezier(0.34, 1.20, 0.64, 1);
	will-change: transform, width;
}

/* ─── Кастомный чекбокс ─────────────────────────────────────────────── */
.yt_checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	width: 100%;
}
.yt_checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.yt_checkbox .yt_checkbox_box {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: #fff;
	border: 2px solid #d8cfe6;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.yt_checkbox .yt_checkbox_box svg {
	width: 15px;
	height: 15px;
	color: #fff;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.yt_checkbox input[type="checkbox"]:checked + .yt_checkbox_box {
	background: linear-gradient(105deg, #e694db, #eb8aac 45%, #d48af1 70%, #a98fe8);
	border-color: transparent;
}
.yt_checkbox input[type="checkbox"]:checked + .yt_checkbox_box svg {
	opacity: 1;
	transform: scale(1);
}
.yt_checkbox:active .yt_checkbox_box { transform: scale(0.92); }
.yt_checkbox .yt_checkbox_label {
	font-size: 15px;
	color: var(--text-heading);
}

/* Поля дат/цены совместника — дефолтная ширина, как у остальных полей */
.sovm_start_date_wrap input[type=date].lite,
.sovm_price_wrap input[type=number].lite {
	width: unset;
}

/* ─── Блок «Автор описания» ─────────────────────────────────────────── */
.block_opisanie_author .yt_checkbox {
	justify-content: center;
}
.block_opisanie_author input.lite {
	box-sizing: border-box;
}

/* Отключение анимации только на время инициализации (см. initSegControl) */
.seg_control_slider.seg_no_anim {
	transition: none !important;
}

.seg_control_opt {
	position: relative;
	z-index: 1;
	flex: 1;
	border: 0;
	background: transparent;
	color: rgba(0,0,0,0.50);
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.22s ease;
	-webkit-user-select: none;
	user-select: none;
}

.seg_control_opt.active {
	color: #111;
}

/* Если опции не влезают — лишнее обрезается, активный пункт подскролливается */
.seg_control {
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.seg_control::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Узкие экраны: убираем обёртку формы, карточки в 1px от края экрана */
@media (max-width: 490px) {
	.form.proj_add, .form.exmpl_add {
		border: 0;
		border-radius: 0;
		background: transparent;
		width: 100%;
	}
	.form_card,
	.input-container.form_card {
		width: calc(100% - 2px);
		margin-left: 1px;
		margin-right: 1px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.seg_control_opt {
		padding: 9px 9px;
	}
}
.opisanie_price_wrap,
.proj_price_wrap,
.sovm_price_wrap {
	position: relative;
}

#opisanie_price,
#proj_price,
#sovm_price {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	outline: none;
}

.form.blog_add .blog_add_post_type_option,
.form.opisanie_add .opisanie_post_type_option {
	border: 0;
	background: transparent;
	color: rgba(0,0,0,0.64);
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.form.blog_add .blog_add_post_type_option.active,
.form.opisanie_add .opisanie_post_type_option.active {
	background: #fff;
	color: #111;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* .form_card .input_head покрывает все формы — см. выше */

.form.blog_add .blog_upload_actions,
.form.blog_add .blog_files_inner {
	display: block;
	width: 100%;
}

.form.blog_add .addphoto,
.form.blog_add .addmorephoto,
.form.proj_add .addphoto,
.form.proj_add .addmorephoto,
.form.exmpl_add .addphoto,
.form.exmpl_add .addmorephoto,
.form.yarn_add .addphoto,
.form.yarn_add .addmorephoto {
	padding: 0;
}

.form.blog_add .addphoto,
.form.proj_add .addphoto,
.form.exmpl_add .addphoto,
.form.yarn_add .addphoto {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.form.blog_add .addphoto a,
.form.blog_add .addmorephoto a,
.form.proj_add .addphoto a,
.form.proj_add .addmorephoto a,
.form.exmpl_add .addphoto a,
.form.exmpl_add .addmorephoto a,
.form.yarn_add .addphoto a,
.form.yarn_add .addmorephoto a {
	background: linear-gradient(135deg, #ffffff 0%, #f4ece7 100%);
	border: 1px solid #decfc5;
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(121, 83, 58, 0.08);
}

.form.blog_add .addphoto a:hover,
.form.blog_add .addmorephoto a:hover,
.form.proj_add .addphoto a:hover,
.form.proj_add .addmorephoto a:hover,
.form.exmpl_add .addphoto a:hover,
.form.exmpl_add .addmorephoto a:hover,
.form.yarn_add .addphoto a:hover,
.form.yarn_add .addmorephoto a:hover {
	transform: translateY(-1px);
}

.form.blog_add .blog_upload_hint {
	color: #8f7c72;
	font-size: 13px;
}

.form.blog_add .block_blog_photo .pics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 12px;
	padding-top: 8px !important;
}

.form.blog_add .block_blog_photo .pics .uploaded {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(140, 110, 94, 0.14);
	box-shadow: 0 14px 24px rgba(84, 59, 45, 0.12);
}

.form.blog_add .block_blog_photo .pics .uploaded.selected {
	border: 2px solid var(--warm);
	box-shadow: 0 16px 26px rgba(210, 130, 84, 0.2);
}

.form.blog_add .block_blog_photo .pics .uploaded span {
	top: 8px;
	right: 8px;
	left: auto;
	background: rgba(255,255,255,0.94);
	border-radius: 999px;
	height: 24px;
	width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.form.blog_add .block_blog_photo .pics .uploaded span svg {
	padding: 5px;
}

.form.blog_add .block_blog_files .pics {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 10px !important;
}

.form.blog_add .block_blog_files .pics .uploaded.opisaniya {
	margin: 0;
	padding: 12px 42px 12px 14px;
	border-radius: 14px;
	border: 1px solid #e2d4cb;
	background: linear-gradient(180deg, #fff 0%, #f7efea 100%);
	box-shadow: 0 10px 22px rgba(118, 85, 64, 0.08);
}

.form.blog_add .block_blog_files .pics .uploaded.opisaniya a {
	color: #3c2f2a;
	text-decoration: none;
	font-weight: 600;
}

.form.blog_add .pic_loading.loading {
	margin-top: 10px;
	margin-bottom: 14px;
}

.yarn_list.blog .item {
	padding: 14px;
	padding-top: 16px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
	background: rgba(255,255,255,0.94);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 22px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.blog_detail .blog_post_single {
	display: block;
	padding: 0;
	margin: 0;
}

.blog_detail .blog_post_single .item {
	position: relative;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 18px;
	padding-top: 18px;
	border-radius: 26px;
	box-shadow: none;
}

.blog_detail .blog_post_single .blog_media.media_count_1 .blog_media_item {
	min-height: 320px;
}

.blog_detail .blog_post_single .blog_yarns_list,
.blog_detail .blog_post_single .blog_projects_list,
.blog_detail .blog_post_single .blog_examples_list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog_detail .blog_post_single .blog_comments_toggle {
	display: none;
}

.blog_detail .big_comments {
	margin-left: 0;
	margin-right: 0;
}

.blog_detail .proj-cmt.blog {
	width: 100%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

/* ── opisanie_detail — рендер как blog_detail ──────────────────────────── */
.opisanie_detail .opisanie_post_single {
	display: block;
	padding: 0;
	margin: 0;
}

.opisanie_detail .opisanie_post_single .item {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 18px;
	border-radius: 26px;
	box-shadow: none;
}

.opisanie_detail .opisanie_post_single .blog_media.media_count_1 .blog_media_item {
	min-height: 320px;
}

.opisanie_detail .opisanie_post_single .blog_yarns_list,
.opisanie_detail .opisanie_post_single .blog_projects_list,
.opisanie_detail .opisanie_post_single .blog_examples_list {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.opisanie_detail .opisanie_post_single .item_name.blog_post_text {
	font-size: 14px;
	line-height: 1.45;
	color: #000;
	white-space: pre-wrap;
	word-break: break-word;
	padding-top: 0;
	padding-bottom: 0;
}

.opisanie_post_title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
	line-height: 1.3;
	word-break: break-word;
}

.opisanie_detail .big_comments {
	margin-left: 0;
	margin-right: 0;
}

.yarn_list.blog .blog_post_head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.yarn_list.blog .blog_post_userpic {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #e6d8d0;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.yarn_list.blog .blog_post_userpic.empty {
	background-image: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}

.yarn_list.blog .blog_post_author {
	min-width: 0;
	text-align: left;
}

.yarn_list.blog .blog_post_author_name {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	color: #000;
}

.yarn_list.blog .blog_post_author_username {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.52);
	margin-top: 3px;
}

.yarn_list.blog .item_name {
	padding-left: 0;
}

.yarn_list.blog .item_name.blog_post_text {
	font-size: 14px;
	line-height: 1.45;
	color: #000;
	white-space: pre-wrap;
	word-break: break-word;
	padding-top: 0;
	padding-bottom: 0;
}

.yarn_list.blog .blog_yarns_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.yarn_list.blog .blog_projects_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.yarn_list.blog .blog_examples_list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.yarn_list.blog .blog_yarn_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
	cursor: pointer;
}

.yarn_list.blog .blog_yarn_pic {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 14px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.yarn_list.blog .blog_project_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #fffaf3 0%, #f4ece1 100%);
	border: 1px solid rgba(92, 70, 31, 0.12);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
	cursor: pointer;
}

.yarn_list.blog .blog_project_pic {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 14px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.yarn_list.blog .blog_example_item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(180deg, #f7fbff 0%, #ebf2f8 100%);
	border: 1px solid rgba(50, 78, 107, 0.12);
	border-radius: 18px;
	padding: 10px;
	color: #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
	cursor: pointer;
}

.yarn_list.blog .blog_example_pic {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	border-radius: 14px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.yarn_list.blog .blog_example_text {
	min-width: 0;
}

.yarn_list.blog .blog_example_name {
	font-size: 13px;
	line-height: 1.25;
	color: #000;
	font-weight: 600;
	word-break: break-word;
}

.yarn_list.blog .blog_example_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.yarn_list.blog .blog_example_meta span {
	display: inline-block;
	background: rgba(255,255,255,0.8);
	border: 1px solid rgba(50, 78, 107, 0.08);
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.1;
	color: rgba(40, 62, 84, 0.7);
}

.yarn_list.blog .blog_comments_toggle {
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(0,0,0,0.54);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: none;
}

.yarn_list.blog .blog_comments_toggle:hover {
	background: transparent;
	color: rgba(0,0,0,0.72);
}

.messages_debug_card {
	max-width: 500px;
	margin: 18px auto 0 auto;
	padding: 16px;
	border-radius: 22px;
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,255,255,0.55);
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.messages_debug_label {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.58);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.messages_session_path {
	font-size: 14px;
	line-height: 1.35;
	color: #000;
	margin-bottom: 12px;
	word-break: break-all;
}

.messages_ws_status {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(0,0,0,0.68);
	margin-bottom: 12px;
}

.messages_session_json {
	margin: 0;
	padding: 14px;
	border-radius: 16px;
	background: rgba(246,241,244,0.95);
	color: #2e2531;
	font-size: 12px;
	line-height: 1.45;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

.messages_shell {
	max-width: 500px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.messages_sidebar,
.messages_conversation {
	position: relative;
	background: rgba(255,255,255,0.9);
	border: 1px solid rgba(255,255,255,0.55);
	box-shadow: 0 10px 24px rgba(0,0,0,0.06);
	border-radius: 22px;
	overflow: hidden;
}

.messages_sidebar {
	overflow: visible;
}

.messages_detail .messages_data {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.messages_search_window .messages_data {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.messages_group_create_window .messages_data {
	width: 100%;
	height: 100%;
	min-height: 0;
}

.messages_detail {
	border: 0;
}

.messages_search_window {
	border: 0;
}

.messages_group_create_window {
	border: 0;
}

.messages_detail .messages_detail_react_root {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
}

.messages_search_window .messages_detail_react_root {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
}

.messages_group_create_window .messages_detail_react_root {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
}

.messages_detail .messages_conversation {
	height: 100%;
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.messages_search_window .messages_conversation {
	height: 100%;
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.messages_group_create_window .messages_conversation {
	height: 100%;
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.messages_sidebar_head,
.messages_conversation_head {
	padding: 16px 16px 14px 16px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,244,246,0.92) 100%);
}

.messages_sidebar_head {
	background: transparent;
}

.messages_sidebar_headline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 2px;
}

.messages_contacts_search {
	padding: 0 16px 12px 16px;
}

.messages_sidebar_actions {
	padding: 0 16px 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.messages_contacts_search_field {
	position: relative;
}

.messages_contacts_search_trigger {
	width: 170px;
	height: 34px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 16px;
	background: rgba(255,255,255,0.9);
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0 12px;
	cursor: pointer;
	box-sizing: border-box;
}

.messages_group_create_trigger {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: rgba(109,89,104,0.12);
	color: var(--text-mauve);
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
}

.messages_contacts_search_trigger_text {
	font-size: 12px;
	line-height: 1;
	color: rgba(36,29,36,0.58);
}

.messages_contacts_search_input {
	width: 100%;
	height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 18px;
	background: rgba(255,255,255,0.9);
	font-size: 12px;
	line-height: 1.2;
	color: var(--text);
	box-sizing: border-box;
}

.messages_contacts_search_input_wide {
	height: 46px;
	border-radius: 20px;
}

.messages_contacts_search_input::placeholder {
	color: rgba(36,29,36,0.48);
}

.messages_contacts_search_btn {
	position: absolute;
	top: 6px;
	right: 6px;
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--text-mauve);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(109,89,104,0.24);
}

.messages_contacts_results {
	padding: 0 0 10px 0;
}

.messages_contacts_results_list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.messages_search_conversation .messages_conversation_head {
	padding-bottom: 10px;
}

.messages_contacts_search_window_box {
	padding-top: 12px;
	padding-bottom: 12px;
}

.messages_contacts_results_thread {
	padding-top: 0;
}

.messages_group_form {
	padding: 12px 16px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.messages_group_input {
	width: 100%;
	height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 18px;
	background: rgba(255,255,255,0.92);
	font-size: 14px;
	line-height: 1.2;
	color: var(--text);
	box-sizing: border-box;
}

.messages_group_type_switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	border-radius: 18px;
	background: rgba(255,255,255,0.72);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.messages_group_type_option {
	height: 38px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: rgba(36,29,36,0.62);
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.messages_group_type_option.active {
	background: #fff;
	color: var(--text);
	box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.messages_group_selected {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.messages_group_selected_item {
	border: 0;
	border-radius: 999px;
	background: rgba(109,89,104,0.12);
	color: var(--text-mauve);
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	padding: 10px 12px;
	cursor: pointer;
}

.messages_group_create_btn {
	height: 42px;
	border: 0;
	border-radius: 18px;
	background: rgba(109,89,104,0.18);
	color: rgba(109,89,104,0.62);
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
	cursor: default;
}

.messages_group_create_btn.active {
	background: var(--text-mauve);
	color: #fff;
	cursor: pointer;
}

.messages_contact_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}

.messages_contact_body {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.messages_contact_start_btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: rgba(109,89,104,0.12);
	color: var(--text-mauve);
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	padding: 10px 12px;
	cursor: pointer;
}

.messages_sidebar_title,
.messages_conversation_name {
	font-size: 18px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--text);
}

.messages_conversation_name.clickable {
	cursor: pointer;
}

.messages_conversation_name.clickable:hover {
	text-decoration: underline;
}

.messages_network_badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.messages_network_badge.online {
	background: rgba(74, 175, 90, 0.14);
	color: #2d8b3c;
}

.messages_network_badge.offline {
	background: rgba(162, 42, 42, 0.12);
	color: #a22a2a;
}

.messages_sidebar_subtitle,
.messages_conversation_status,
.messages_dialog_preview,
.messages_thread_placeholder,
.messages_dialog_placeholder,
.messages_compose_stub_text {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(36,29,36,0.62);
}

.messages_dialog_item {
	width: 100%;
	border: 0;
	background: transparent;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	text-align: left;
	cursor: pointer;
	min-width: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.messages_dialog_item.actual {
	background: rgba(109,89,104,0.08);
}

.messages_dialog_actions_wrap {
	position: relative;
	flex: 0 0 auto;
	align-self: flex-start;
	margin-left: 6px;
}

.messages_dialog_dots {
	border: 0;
	background: transparent;
	color: rgba(36,29,36,0.58);
	font-size: 18px;
	line-height: 1;
	padding: 2px 4px;
	min-width: 24px;
	cursor: pointer;
}

.messages_dialog_dots.actual {
	color: var(--text);
}

.messages_dialog_actions {
	position: absolute;
	top: 0;
	right: 100%;
	margin-right: 8px;
	min-width: 140px;
	padding: 8px;
	border-radius: 16px;
	background: rgba(255,255,255,0.96);
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 14px 28px rgba(0,0,0,0.12);
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: 0.18s ease;
	z-index: 12;
}

.messages_dialog_actions.actual {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.messages_dialog_action_btn {
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	padding: 9px 10px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.25;
	color: var(--text);
	cursor: pointer;
}

.messages_dialog_action_btn:hover {
	background: rgba(109,89,104,0.08);
}

.messages_dialog_action_btn.danger {
	color: #a22a2a;
}

.messages_dialog_confirm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.messages_dialog_confirm_text {
	font-size: 12px;
	line-height: 1.3;
	color: rgba(36,29,36,0.72);
	padding: 2px 4px 0;
}

.messages_dialog_confirm_actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.messages_dialog_avatar,
.messages_conversation_avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(109,89,104,0.9) 0%, rgba(146,125,138,0.95) 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	flex: 0 0 42px;
}

.messages_dialog_body {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.messages_dialog_topline {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
	min-width: 0;
}

.messages_dialog_heading {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.messages_dialog_name {
	font-size: 15px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--text);
	min-width: 0;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_dialog_meta {
	font-size: 11px;
	line-height: 1.2;
	color: rgba(36,29,36,0.5);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_dialog_time {
	font-size: 12px;
	line-height: 1.2;
	color: rgba(36,29,36,0.5);
	flex: 0 0 auto;
}

.messages_dialog_preview {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_dialog_bottomline {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	overflow: hidden;
}

.messages_dialog_unread {
	flex: 0 0 auto;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--text-mauve);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
}

.messages_dialog_skeleton_list {
	padding: 8px 0;
}

.messages_dialog_skeleton_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
}

.messages_dialog_skeleton_avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex: 0 0 42px;
}

.messages_dialog_skeleton_body {
	flex: 1 1 auto;
}

.messages_dialog_skeleton_line {
	height: 11px;
	border-radius: 999px;
	margin-bottom: 8px;
	width: 58%;
}

.messages_dialog_skeleton_line.wide {
	width: 74%;
}

.messages_conversation_head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.messages_conversation_meta {
	min-width: 0;
}

.messages_detail_head_skeleton {
	flex: 1 1 auto;
}

.messages_detail_head_line {
	height: 11px;
	border-radius: 999px;
	margin-bottom: 8px;
	width: 44%;
}

.messages_detail_head_line.wide {
	width: 62%;
}

/* Плавающая плашка с датой при скролле (как в Telegram) */
.messages_floating_date {
	position: absolute;
	left: 50%;
	top: 72px;
	transform: translateX(-50%) translateY(-6px);
	z-index: 5;
	pointer-events: none;
	background: rgba(60,48,58,0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 13px;
	border-radius: 100px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.messages_floating_date.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.messages_thread {
	padding: 16px;
	min-height: 220px;
	flex: 1 1 auto;
	background:
		radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 32%),
		linear-gradient(180deg, rgba(248,244,246,0.88) 0%, rgba(241,234,239,0.92) 100%);
	overflow: auto;
	display: flex;
	flex-direction: column-reverse;
}

.messages_bubble_row {
	display: flex;
	margin-bottom: 10px;
}

.messages_bubble_row.mine {
	justify-content: flex-end;
}

.messages_bubble {
	max-width: 82%;
	padding: 10px 12px 8px 12px;
	border-radius: 18px 18px 18px 6px;
	background: rgba(255,255,255,0.96);
	box-shadow: 0 6px 14px rgba(0,0,0,0.05);
	position: relative;
}

.messages_bubble.mine {
	background: linear-gradient(180deg, rgba(215,244,203,0.96) 0%, rgba(201,238,186,0.98) 100%);
	border-radius: 18px 18px 6px 18px;
}

.messages_bubble_author {
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	color: rgba(35,27,34,0.66);
	margin-bottom: 6px;
}

.messages_bubble.mine .messages_bubble_author {
	color: rgba(47,79,34,0.72);
}

.messages_bubble_author.clickable {
	cursor: pointer;
	display: inline-block;
}

.messages_bubble_author.clickable:hover {
	text-decoration: underline;
}

.messages_bubble_author_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.messages_bubble_author_row .messages_bubble_author {
	margin-bottom: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.messages_bubble_dots {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 2.5px;
	border: 0;
	cursor: pointer;
	background: rgba(0,0,0,0.06);
	border-radius: 100px;
	padding: 5px 8px;
	line-height: 0;
}
.messages_bubble.mine .messages_bubble_dots { background: rgba(47,79,34,0.10); }
.messages_bubble_dots:hover { background: rgba(0,0,0,0.11); }
.messages_bubble_dots_dot {
	width: 3.5px;
	height: 3.5px;
	border-radius: 50%;
	background: rgba(35,27,34,0.5);
	display: inline-block;
}
.messages_bubble.mine .messages_bubble_dots_dot { background: rgba(47,79,34,0.6); }

.messages_bubble_text {
	font-size: 14px;
	line-height: 1.42;
	color: #231b22;
	white-space: pre-wrap;
	word-break: break-word;
}

/* Сообщение, которое сейчас редактируется (правится в основном поле ввода) */
.messages_bubble_row:has(.messages_bubble_text.editing) .messages_bubble {
	outline: 2px solid rgba(162, 79, 176, 0.55);
	outline-offset: 1px;
}

.messages_bubble_text_content {
	white-space: pre-wrap;
}

.messages_bubble_reaction_picker {
	position: absolute;
	top: -18px;
	left: 10px;
	width: max-content;
	min-width: 188px;
	max-width: min(320px, calc(100vw - 72px));
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 16px;
	background: rgba(255,255,255,0.98);
	box-shadow: 0 10px 22px rgba(0,0,0,0.12);
	z-index: 4;
	box-sizing: border-box;
	overflow-x: auto;
}

.messages_bubble.mine .messages_bubble_reaction_picker {
	background: rgba(244,255,238,0.98);
	left: auto;
	right: 10px;
}

.messages_bubble_reaction_option {
	border: 0;
	background: transparent;
	font-size: 19px;
	line-height: 1;
	padding: 4px;
	border-radius: 10px;
	cursor: pointer;
}

.messages_bubble_reaction_option:active,
.messages_bubble_reaction_option:hover {
	background: rgba(0,0,0,0.06);
}

.messages_bubble_picker_actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.messages_bubble_picker_actions.confirm {
	display: block;
}

.messages_bubble_picker_actions.outside {
	position: absolute;
	top: 34px;
	left: 10px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-width: 156px;
	padding: 8px;
	border-radius: 14px;
	background: rgba(255,255,255,0.98);
	box-shadow: 0 10px 22px rgba(0,0,0,0.12);
	z-index: 4;
}

.messages_bubble.mine .messages_bubble_picker_actions.outside {
	left: auto;
	right: 10px;
	background: rgba(244,255,238,0.98);
}

.messages_bubble_picker_confirm_text {
	font-size: 12px;
	line-height: 1.3;
	color: rgba(35,27,34,0.76);
	margin-bottom: 6px;
}

.messages_bubble_picker_confirm_buttons {
	display: flex;
	align-items: center;
	gap: 6px;
}

.messages_bubble_picker_action {
	border: 0;
	background: rgba(0,0,0,0.05);
	color: #231b22;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.messages_bubble_picker_action.danger {
	background: rgba(207,63,63,0.12);
	color: #b23b3b;
}

.messages_bubble_edit {
	margin-top: 2px;
	width: clamp(260px, 80%, 720px);
}

.messages_bubble_edit_input {
	width: 100%;
	min-height: 72px;
	border: 0;
	resize: vertical;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.42;
	color: #231b22;
	background: rgba(255,255,255,0.78);
	box-sizing: border-box;
	outline: none;
}

.messages_bubble.mine .messages_bubble_edit_input {
	background: rgba(255,255,255,0.62);
}

.messages_bubble_edit_actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.messages_bubble_edit_btn {
	border: 0;
	background: rgba(0,0,0,0.06);
	color: #231b22;
	border-radius: 999px;
	padding: 7px 12px;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.messages_bubble_edit_btn.save {
	background: rgba(47,152,255,0.14);
	color: #1479d3;
}

.messages_bubble_time {
	font-size: 11px;
	line-height: 1.2;
	color: rgba(35,27,34,0.5);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	float: right;
	margin-top: 2px;
	margin-left: 8px;
	padding-left: 6px;
}

.messages_bubble_time_text {
	display: inline-block;
}

.messages_bubble_reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.messages_bubble_reaction_chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,0.82);
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1;
	color: rgba(35,27,34,0.76);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.messages_bubble.mine .messages_bubble_reaction_chip {
	background: rgba(255,255,255,0.64);
}

.messages_bubble_reaction_chip.active {
	background: rgba(47,152,255,0.14);
	box-shadow: inset 0 0 0 1px rgba(47,152,255,0.28);
	color: #1479d3;
}

.messages_bubble_reaction_emoji {
	font-size: 14px;
	line-height: 1;
}

.messages_bubble_reaction_count {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.messages_bubble_status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 12px;
	height: 12px;
	color: rgba(35,27,34,0.52);
}

.messages_bubble_status.delivered {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-0.5px);
}

.messages_bubble_status.read {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: var(--link);
	transform: translateY(-0.5px);
	letter-spacing: -1px;
}

.messages_bubble_status.sending {
	gap: 2px;
}

.messages_bubble_status_dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(35,27,34,0.38);
	animation: messagesStatusSendingPulse 1s ease-in-out infinite;
}

.messages_bubble_status_dot:nth-child(2) {
	animation-delay: 0.16s;
}

.messages_bubble_status_dot:nth-child(3) {
	animation-delay: 0.32s;
}

@keyframes messagesStatusSendingPulse {
	0%, 80%, 100% {
		opacity: 0.24;
		transform: scale(0.8);
	}
	40% {
		opacity: 1;
		transform: scale(1);
	}
}

.messages_thread_skeleton {
	padding-top: 2px;
}

.messages_bubble_skeleton {
	width: 58%;
	height: 56px;
	border-radius: 18px 18px 18px 6px;
}

.messages_bubble_skeleton.mine {
	width: 42%;
	border-radius: 18px 18px 6px 18px;
}

.messages_compose_stub {
	padding: 14px 16px 16px 16px;
	border-top: 1px solid rgba(0,0,0,0.06);
	background: rgba(255,255,255,0.95);
	flex: 0 0 auto;
}

.messages_compose_box {
	display: flex;
	flex-direction: column;
	position: relative;
}

.messages_compose_row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.messages_compose_actions {
	position: relative;
	flex: 0 0 auto;
}

.messages_compose_attach_btn {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(244,240,243,0.95);
	color: var(--text-mauve);
	font-size: 28px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}

.messages_compose_attach_btn.actual,
.messages_compose_attach_btn:active {
	background: rgba(224,214,220,0.98);
	transform: scale(0.95);
}

.messages_compose_attach_menu {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	min-width: 186px;
	padding: 8px;
	border-radius: 18px;
	background: rgba(255,255,255,0.98);
	box-shadow: 0 18px 40px rgba(34,24,32,0.16);
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 30;
}

.messages_compose_attach_option {
	border: 0;
	border-radius: 14px;
	background: transparent;
	padding: 11px 12px;
	text-align: left;
	font-size: 13px;
	line-height: 1.25;
	color: var(--text);
	cursor: pointer;
}

.messages_compose_attach_option:hover {
	background: rgba(244,240,243,0.96);
}

.messages_compose_attach_option.disabled {
	color: rgba(36,29,36,0.42);
	cursor: default;
}

.messages_compose_file_input {
	display: none;
}

.messages_compose_media_strip {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.messages_compose_media_item {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(244,240,243,0.95);
	flex: 0 0 64px;
}

.messages_compose_media_item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.messages_compose_media_overlay {
	position: absolute;
	inset: 0;
	background: rgba(26,18,24,0.36);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.messages_compose_media_overlay.error {
	background: rgba(164,61,61,0.72);
}

.messages_compose_media_spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.34);
	border-top-color: #fff;
	animation: messagesComposeSpin .8s linear infinite;
}

.messages_compose_media_remove {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(26,18,24,0.68);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.messages_compose_input {
	flex: 1 1 auto;
	min-height: 22px;
	max-height: 140px;
	padding: 12px 14px;
	border-radius: 18px;
	background: rgba(244,240,243,0.95);
	font-size: 14px;
	line-height: 1.42;
	color: var(--text);
	outline: none;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

.messages_compose_input.is_empty {
	color: rgba(36,29,36,0.46);
}

.messages_compose_input.is_empty:before {
	content: attr(data-placeholder);
	pointer-events: none;
}

.messages_compose_send {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(109,89,104,0.22);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 42px;
	transition: transform .18s ease, background .18s ease, opacity .18s ease;
	opacity: 0.72;
}

.messages_compose_send.active {
	background: linear-gradient(135deg, rgba(109,89,104,0.95) 0%, rgba(146,125,138,0.98) 100%);
	opacity: 1;
}

.messages_compose_send:active {
	transform: scale(0.94);
}

@keyframes messagesComposeSpin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.messages_bubble_media_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin-bottom: 8px;
	max-width: min(280px, 62vw);
}

.messages_bubble.mine .messages_bubble_media_grid {
	margin-left: auto;
}

.messages_bubble_media_grid.count_1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: min(260px, 62vw);
}

.messages_bubble_media_item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(233,226,231,0.96);
	aspect-ratio: 1 / 1;
	cursor: pointer;
}

.messages_bubble_media_grid.count_1 .messages_bubble_media_item {
	aspect-ratio: 4 / 5;
}

.messages_bubble_media_item {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.messages_skeleton_shimmer {
	background: linear-gradient(90deg, rgba(232,226,230,0.95) 0%, rgba(248,244,246,0.98) 50%, rgba(232,226,230,0.95) 100%);
	background-size: 220% 100%;
	animation: messagesSkeletonShimmer 1.4s linear infinite;
}

@keyframes messagesSkeletonShimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@media (max-width: 510px) {
	.messages_shell {
		gap: 10px;
	}

	.messages_thread {
		min-height: 180px;
		padding: 14px;
	}

	.messages_dialog_item {
		gap: 8px;
		padding: 12px;
	}

	.messages_dialog_avatar {
		width: 38px;
		height: 38px;
		flex: 0 0 38px;
		font-size: 16px;
	}

	.messages_dialog_body {
		flex: 1 1 0;
		width: 0;
	}

	.messages_dialog_topline,
	.messages_dialog_bottomline,
	.messages_dialog_heading,
	.messages_dialog_name,
	.messages_dialog_preview {
		max-width: 100%;
	}

	.messages_dialog_time {
		font-size: 11px;
	}

	.messages_dialog_actions_wrap {
		margin-left: 0;
	}

	.messages_dialog_dots {
		min-width: 20px;
		padding: 2px;
	}
}

.yarn_list.blog .blog_comments_toggle_label {
	min-width: 0;
	text-align: left;
	line-height: 1.3;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yarn_list.blog .blog_comments_toggle_count {
	flex: 0 0 auto;
	min-width: 0;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 14px;
	font-weight: 500;
	color: rgba(0,0,0,0.52);
}

.yarn_list.blog .blog_last_comment_media {
	display: flex;
	gap: 6px;
	margin-top: 8px;
	width: 100%;
}

.yarn_list.blog .blog_last_comment_media_item {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	flex: 0 0 44px;
}

.yarn_list.blog .blog_post_footer {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.yarn_list.blog .blog_like_toggle {
	display: inline-flex;
	align-items: center;
	gap: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: rgba(0,0,0,0.52);
	font-size: 13px;
	line-height: 1;
	position: relative;
	overflow: visible;
	min-width: 18px;
	flex: 0 0 auto;
}

.yarn_list.blog .blog_like_icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	transform-origin: 50% 50%;
	will-change: transform;
}

.yarn_list.blog .blog_like_toggle.pulse .blog_like_icon {
	animation: blogLikePulse 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.yarn_list.blog .blog_like_toggle.liked {
	color: #d34a5b;
}

.yarn_list.blog .blog_like_count {
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
	min-width: 0;
	max-width: 0;
	opacity: 0;
	transform: translateX(-18px);
	transition: max-width 0.24s ease, opacity 0.18s ease, transform 0.24s ease, margin-left 0.24s ease;
	margin-left: -10px;
	white-space: nowrap;
	color: rgba(0,0,0,0.52);
	overflow: hidden;
}

.yarn_list.blog .blog_like_toggle.liked .blog_like_count {
	color: #d34a5b;
}

.yarn_list.blog .blog_like_count.visible {
	max-width: 36px;
	opacity: 1;
	transform: translateX(0);
	margin-left: 6px;
}

@keyframes blogLikePulse {
	0% {
		transform: scale(1);
	}
	22% {
		transform: scale(1.22);
	}
	46% {
		transform: scale(0.95);
	}
	72% {
		transform: scale(1.12);
	}
	100% {
		transform: scale(1);
	}
}

.yarn_list.blog .blog_project_text {
	min-width: 0;
}

.yarn_list.blog .blog_project_name {
	font-size: 13px;
	line-height: 1.25;
	color: #000;
	font-weight: 600;
	word-break: break-word;
}

.yarn_list.blog .blog_project_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.yarn_list.blog .blog_project_meta span {
	display: inline-block;
	background: rgba(255,255,255,0.8);
	border: 1px solid rgba(92, 70, 31, 0.08);
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.1;
	color: rgba(70, 51, 22, 0.7);
}

.yarn_list.blog .blog_yarn_text {
	min-width: 0;
}

.yarn_list.blog .blog_yarn_name {
	font-size: 13px;
	line-height: 1.25;
	color: #000;
	font-weight: 600;
	word-break: break-word;
}

.yarn_list.blog .blog_yarn_item branda {
	display: block;
	color: rgba(0,0,0,0.52);
	font-size: 11px;
	margin-bottom: 2px;
}

.yarn_list.blog .blog_yarn_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.yarn_list.blog .blog_yarn_meta span {
	display: inline-block;
	background: rgba(255,255,255,0.8);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 999px;
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.1;
	color: rgba(0,0,0,0.68);
}

.yarn_list.blog .blog_media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-top: 12px;
	margin-bottom: 12px;
	overflow: hidden;
}

.yarn_list.blog .blog_media.media_count_1 {
	grid-template-columns: minmax(0, 1fr);
}

.yarn_list.blog .blog_media_item {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	min-height: 150px;
	object-fit: cover;
}

.yarn_list.blog .blog_media.media_count_1 .blog_media_item {
	aspect-ratio: 16 / 10;
	min-height: 260px;
}

.yarn_list.blog .blog_media.media_count_1.media_uncropped {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	background: transparent;
}

.yarn_list.blog .blog_media.media_count_1.media_uncropped .blog_media_item {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 450px;
	aspect-ratio: auto;
	min-height: 0;
	object-fit: contain;
	margin: 0;
}

.yarn_list.blog .blog_media.media_count_3 .blog_media_item:first-child,
.yarn_list.blog .blog_media.media_count_5 .blog_media_item:first-child {
	grid-row: span 2;
	aspect-ratio: auto;
	min-height: 100%;
}

.yarn_list.blog .blog_files_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.yarn_list.blog .blog_file_item a {
	display: inline-block;
	color: #000;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	background: #f4f4f4;
	border: 1px solid rgba(0,0,0,0.07);
	border-radius: 12px;
	padding: 9px 12px;
}

.yarn_list.blog .blog_file_item a:hover {
	background: #ececec;
}

.yarn_list.blog .blog_publish_time {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.2;
	color: rgba(0,0,0,0.48);
	text-align: right;
}

.yarn_list.blog .aftera,
.yarn_list.blog .yarn_img {
	display: none;
}

.block_color circle {
	position: absolute;
	width: 30px;
	height: 30px;
	border-radius: 100px;
	margin-left: -35px;
	margin-top: 10px;
}

.plus_menu .a{
	padding: 20px;
    margin-bottom: 5px;
    background-color: #fff;
    border-radius: 20px;
    font-size: 18px;
    box-sizing: border-box;
    padding-left: 70px;
    border: 4px solid var(--panel-beige);
	}
	
.input_head {
	font-size: 22px;
	padding: 10px;
	width: 100%;
	box-sizng: border-box;
}

.yarn_add, .proj_add, .exmpl_add {
	transition: 0.3s;
	opacity: 0;
	display: none;
}

#yarn_quant {
	padding-left: 0;
    padding-right: 0;
    width: 100px;
    text-align: center;
}

sel {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 10px;
	padding-right: 30px; 
	cursor: pointer;
	/*border: 1px solid #3f3d4d;*/
	background: #efdbea;
	transition: 0.3s;
	text-align: left;
	height: 27px;
	position: absolute;
	margin-top: -7px;
	margin-left: -130px;
	overflow: hidden;
	z-index: 2;
}

sel.big {
	height: 125px;
	transform: scale(1.3);
	background: #a649b7;
	border: 0;
	color: #fff;
	z-index: 3;
	}
	


sel::after {
	content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 5px 0 5px;
    border-color: #000000 transparent transparent transparent;
    margin-top: 16px;
    position: absolute;
    margin-right: 10px;
    cursor: pointer;
    top: 0;
    right: 0;
    transition: 0.3s;
}

sel.big::after {
	transform: rotate(90deg);
	border-color: #fff transparent transparent transparent;
	}

sel item {
	display: block;
	padding-bottom: 20px;
	transition: 0.3s;
	/*text-indent: -200px;*/
}

sel.big item {
	display: block !important;
	padding-bottom: 7px;
	text-indent: 0 !important;
	}

sel item:first-child {
	display: block;
	text-indent: 0;
}

.yarn_add.active, .proj_add.active, .exmpl_add.active {
	opacity: 1
}

.yarn_brand_help, .yarn_name_help {
	padding: 10px;
}

#nobrand {
	background: rgba(255,255,255,0.45) !important;
	color: #7a6a72 !important;
	border: 1.5px solid rgba(180,150,165,0.45) !important;
	border-radius: 20px !important;
	padding: 6px 16px 6px 12px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	box-shadow: 0 1px 4px rgba(120,80,100,0.08), inset 0 1px 0 rgba(255,255,255,0.7) !important;
	transition: background 0.18s, box-shadow 0.18s, color 0.18s !important;
	text-decoration: none !important;
}

#nobrand::after {
	content: '→';
	margin-left: 6px;
	font-weight: 400;
	opacity: 0.6;
	transition: transform 0.18s;
	display: inline-block;
}

#nobrand:hover::after {
	transform: translateX(3px);
	opacity: 0.9;
}

#nobrand:hover {
	background: rgba(255,255,255,0.72) !important;
	color: #5a4a52 !important;
	box-shadow: 0 2px 8px rgba(120,80,100,0.13), inset 0 1px 0 rgba(255,255,255,0.85) !important;
}

.yarn_color_variats {
	margin-top: 10px;	
}

.yarn_variats div, .yarn_name_variats div, .yarn_color_variats div,
.yarn_recent_brands_list div {
	display: inline-block;
	background: #fff;
	padding: 6px 16px;
	margin: 6px;
	cursor: pointer;
	border-radius: 10px;
}

.yarn_variats .yarn_variats_sep {
	display: block !important;
	width: 100%;
	height: 0;
	background: none !important;
	padding: 0 !important;
	margin: 8px 6px !important;
	border-top: 1px dashed rgba(0,0,0,0.18);
	border-radius: 0 !important;
	cursor: default !important;
}

.yarn_recent_brands {
	margin-top: 8px;
}
.yarn_recent_brands_title {
	width: 100%;
	font-size: 13px;
	opacity: 0.55;
	margin: 6px 6px 2px;
}

.yarn_color_variats div {
	box-sizing: border-box;
	height: 30px;
}

.yarn_color_variats div clr {
    display: inline-block;
    width: 30px;
    height: 30px;
    position: absolute;
    margin-left: -33px;
    margin-top: -6px;
    border-radius: 50px;
    
}

#yarn_color_number {
	float: right;
	margin-left: 15px;
	width: 90px;
}

#yarn_color_number::placeholder {
	font-size: 12px;
}

.placeholder_color_number, .placeholder {
	margin-left: -100px;
    font-size: 12px;
    white-space: nowrap;
    margin-top: 10px;
    height: 10px;
}

.placeholder {
	font-size: 14px;
    white-space: nowrap;
    position: absolute;
    margin: 0;
    display: table;
    padding: 3px 10px;
    border-radius: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 0.2s;
}

/* Если плейсхолдер лежит в обёртке внутри input-container —
   центрируем относительно неё, а не контейнера (у которого может быть padding) */
.input-container > div:has(> .placeholder) {
	position: relative;
}

/* То же для вложенных обёрток полей (напр. блок «Куплено» в форме пряжи),
   где несколько полей лежат в одном relative-контейнере */
.input-container div:has(> input.w_placeholder + .placeholder) {
	position: relative;
}

.placeholder.actual {
	top: 0;
	font-size: 12px;
	color: #4b1240d9;
	background: #e2d6d6;
}

/*
#yarn_color_number::placeholder {
	font-size: 14px;
	position: absolute;
	white-space:pre-line;
	width: 54px;
	margin-left: calc(50% - 47px);
}
*/

#zametka {
	border-radius: 40px;
	min-height: 80px;
	width: 100%;
	border: 0;
	padding: 20px 30px;
	box-sizing: border-box;
	outline: 0;
}

.btn_blue {
	background: rgb(98 98 247) !important;
}

.block_quant {
	
}

#yarn_color {
	width: calc(100% - 90px);
}

.block_quant .input_head space {
	display: inline-block;
	width: 140px;
}

/* ─── Seg-control типа мотка (пряжа) ────────────────────────────────────── */

.yarn_unit_toggle.seg_control {
	background: #f0e6f5;
	width: 100%;
}

.yarn_unit_toggle .seg_control_slider {
	background: #fff;
	box-shadow: 0 2px 8px rgba(155,122,155,0.22), 0 0 1px rgba(155,122,155,0.12);
}

.yarn_unit_toggle .seg_control_opt {
	color: #c0a0c0;
	font-size: 14px;
	font-weight: 500;
}

.yarn_unit_toggle .seg_control_opt.active {
	color: #6b4a6b;
}

.block_quant txt {
	display: block;
    margin-left: 0px;
    padding-top: 10px;
    padding-left: 10px;
    height: 30px;
    margin-top: 17px;
}

.input-imitator {
	display: flex;
	background: #ddd;
	border-radius: 100px;
    padding-right: 20px;
}

.yarn_color_variats div {
	padding-left: 20px;
	margin-right: 19px;
}

.yarn_name_help {
	width: 100%;
}

.yarn_brand_help a, .yarn_name_help a, .yarn_btn {
	
	display: inline-block;
	background: rgb(63 8 64 / 55%);
	color: #fff;
	border-radius: 20px;
	padding: 6px 18px;

	}

.input-container {
	width: unset;
	margin: 20px;
}


@media (max-width: 738px) {
	.btn_plus.actual.on_form {
		
		position: absolute;
	    right: 15px;
	    top: max(calc(env(safe-area-inset-top, 0px) + 20px), 44px);
	
		}
	
	.form h1 {
		font-size: 28px;
		padding-left: 10px;
	}
	
}



@media (max-width: 580px) {
	.yarn_list {
		padding: 0 5px;
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {

	.sostavi .flex .btn_blue.yarn_btn.minus {
		margin-top: 18px;
	}
	
	.lite.yarn_sostav_percent {
		width: 20px !important;
	}
	
	.sostavi .flex input.yarn_sostav {
    width: calc(100% - 150px);
	}
	
	.sostavi .flex .btn_blue.yarn_btn.minus {
		right: -10px;
	}
	
    .input-container {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
    .block_quant txt {
	    margin-left: 0px;
	    border-left: 0px dashed #be96b1;
	    padding-top: 0px;
	    padding-left: 10px;
	    height: 20px;
	    top: 35px;
    }
    
}

@media (max-width: 510px) {
	.btn_plus {
		transition: 0.3s;
		margin-left: 0px;
		right: 10px;
	}

	body.toad_window_open .btn_plus.actual,
	body.toad_window_open .btn_plus.actual.on_form {
		top: calc(env(safe-area-inset-top, 0px) + 14px);
		right: 14px;
	}

	.btn_home {
		margin-left: 0px;
		right: 50px;
	}

	body.toad_window_open .btn_home.actual {
		top: calc(env(safe-area-inset-top, 0px) + 14px);
		right: 50px;
	}

	.params_data {
		padding: 16px 14px 24px;
		border-radius: 0;
	}

	.lenta_blog_feed_data {
		padding: 16px 14px 24px;
		border-radius: 0;
	}

	.yarn_detail, .project_detail, .toad_window {
		transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s ease;
		transform: translateX(105%);
	}

	.yarn_detail.actual, .project_detail.actual, .toad_window.actual {
		transform: translateX(0);
	}

	.params_userpic_block {
		flex-direction: column;
		align-items: flex-start;
	}

	.params_userpic_preview {
		width: 104px;
		height: 104px;
		flex-basis: 104px;
	}

	.params_userpic_actions,
	.params_userpic_actions .reg-button,
	.params_save_wrap .reg-button {
		width: 100%;
		min-width: 0;
	}
}


.messages_bubble_link {
	color: var(--link);
	text-decoration: none;
}

/* Reply quote inside message bubble */
@keyframes messages_bubble_delete {
	0%   { opacity: 1; transform: scale(1);    max-height: 300px; margin-bottom: 6px; }
	40%  { opacity: 0; transform: scale(0.88); max-height: 300px; margin-bottom: 6px; }
	100% { opacity: 0; transform: scale(0.88); max-height: 0;     margin-bottom: 0;   }
}

.messages_bubble_row.deleting {
	animation: messages_bubble_delete 0.32s ease forwards;
	pointer-events: none;
	overflow: hidden;
}

.messages_older_loading {
	display: flex;
	justify-content: center;
	padding: 10px 0 4px;
}

.messages_older_spinner {
	width: 22px;
	height: 22px;
	border: 2px solid rgba(47, 152, 255, 0.25);
	border-top-color: var(--link);
	border-radius: 50%;
	animation: messages_older_spin 0.7s linear infinite;
}

@keyframes messages_older_spin {
	to { transform: rotate(360deg); }
}


.messages_bubble_quote {
	border-left: 3px solid var(--link);
	padding: 4px 8px;
	margin-bottom: 5px;
	border-radius: 2px;
	background: rgba(47, 152, 255, 0.08);
	max-width: 100%;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.messages_bubble_quote_thumb {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	object-fit: cover;
}

.messages_bubble_quote_content {
	flex: 1;
	min-width: 0;
}

.messages_compose_reply_thumb {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	object-fit: cover;
}

.messages_bubble_quote:active {
	background: rgba(47, 152, 255, 0.18);
}

@keyframes messages_bubble_highlight {
	0%   { background: rgba(47, 152, 255, 0.22); }
	100% { background: transparent; }
}

.messages_bubble_row_highlight {
	animation: messages_bubble_highlight 1.2s ease-out forwards;
	border-radius: 10px;
}

.messages_bubble_quote_author {
	font-size: 12px;
	font-weight: 600;
	color: var(--link);
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_bubble_quote_text {
	font-size: 13px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Reply preview bar above compose input */
.messages_compose_reply {
	display: flex;
	align-items: center;
	padding: 6px 10px 8px 12px;
	border-left: 3px solid var(--link);
	background: rgba(47, 152, 255, 0.05);
	border-radius: 4px;
	gap: 8px;
	margin-bottom: 8px;
}

/* Режим редактирования — тот же макет, что и «ответ», но акцент другого цвета */
.messages_compose_editing {
	border-left-color: #b06ad0;
	background: rgba(176, 106, 208, 0.07);
}
.messages_compose_editing .messages_compose_reply_author {
	color: var(--accent-orchid);
}

.messages_compose_reply_content {
	flex: 1;
	min-width: 0;
}

.messages_compose_reply_author {
	font-size: 12px;
	font-weight: 600;
	color: var(--link);
	margin-bottom: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_compose_reply_text {
	font-size: 13px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.messages_compose_reply_cancel {
	background: none;
	border: none;
	color: #aaa;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	flex-shrink: 0;
}

.messages_compose_reply_cancel:hover {
	color: #555;
}

/* ─── Форма совместника ─────────────────────────────────────────────────────── */

.sovm_cover_block {
	width: 100%;
	padding-top: 12px;
}

.sovm_cover_preview {
	position: relative;
	display: inline-block;
	border-radius: 14px;
	overflow: hidden;
	max-width: 100%;
}

.sovm_cover_preview img {
	display: block;
	max-width: 100%;
	max-height: 260px;
	border-radius: 14px;
	object-fit: cover;
}

.sovm_cover_spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.25);
	border-radius: 14px;
}

.sovm_cover_spinner::after {
	content: '';
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	animation: messagesComposeSpin 0.8s linear infinite;
}

.sovm_cover_remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	border: none;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sovm_cover_add a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.75);
	font-size: 14px;
	text-decoration: none;
	padding: 8px 0;
}

.sovm_cover_add a:hover {
	color: #fff;
}

/* Post editor wrap */
.pe_wrap {
	width: 100%;
}

.pe_wrap .pe_type_switcher {
	margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ВИДЕО: модальное окно загрузки
   ═══════════════════════════════════════════════════════════════════════════ */

.pe_video_modal_title {
	font-size: 18px;
	font-weight: 600;
	color: #2a1f2d;
	margin-bottom: 10px;
}

.pe_video_hint {
	font-size: 13px;
	color: #6b5b73;
	margin: 0 0 4px;
	line-height: 1.5;
}

/* Figure видео-ссылки в статейном редакторе */

figure.video_figure {
	margin: 12px 0;
	position: relative;
	user-select: none;
}

figure.video_figure .blog_article_figure_del {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	z-index: 2;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(109,89,104,0.25);
	color: var(--text-mauve);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Видео-ссылки в compose (note mode) */

.compose_videos {
	padding: 10px 0 4px;
}

.compose_video_item {
	position: relative;
	margin-bottom: 8px;
}

.compose_video_item .blog_article_file_wrap {
	padding-right: 46px;
}

.compose_video_remove {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	z-index: 2;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(109,89,104,0.2);
	color: var(--text-mauve);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ─── Прикреплённые видео/карточки в заметках (compose area) ────────────── */

.comment_linked_items {
	padding: 4px 0 0;
}

/* ── Карточка прикреплённого объекта (черновик и рендер) ── */
.comment_linked_items .item,
.comment_linked_items_rendered .item {
	padding: 8px;
	padding-top: 6px;
	box-sizing: border-box;
	border-radius: 12px;
	background: #fff;
	min-height: 80px;
	width: 100%;
	margin-bottom: 10px;
	position: relative;
	border: 4px solid var(--panel-beige);
	overflow: hidden;
	pointer-events: none;
	opacity: 0.92;
}

.comment_linked_items_rendered .item {
	pointer-events: auto;
	cursor: pointer;
	opacity: 1;
}

/* Кнопка «Убрать» в черновике */
.comment_linked_items .spec_btn {
	position: absolute;
	right: 0;
	top: 0;
	height: 22px;
	line-height: 16px;
	padding: 3px 10px;
	background: var(--panel-beige);
	border-radius: 0 0 0 8px;
	font-size: 11px;
	cursor: pointer;
	pointer-events: auto;
	color: var(--text-mauve);
	z-index: 1;
}

/* Картинка */
.comment_linked_items .yarn_img,
.comment_linked_items_rendered .yarn_img {
	width: 72px;
	height: 72px;
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	position: absolute;
	margin-left: -8px;
	margin-top: -6px;
	flex-shrink: 0;
}

/* Название и тип */
.comment_linked_items .item_brand,
.comment_linked_items .item_name,
.comment_linked_items_rendered .item_brand,
.comment_linked_items_rendered .item_name {
	padding-left: 80px;
	font-size: 15px;
	color: #888;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.comment_linked_items .item_brand,
.comment_linked_items_rendered .item_brand {
	font-size: 16px;
	color: #555;
	font-weight: 500;
}

/* Нижняя строка */
.comment_linked_items .aftera,
.comment_linked_items_rendered .aftera {
	padding-left: 80px;
	display: flex;
	justify-content: flex-start;
	gap: 6px;
	flex-wrap: wrap;
	min-height: 12px;
	margin-top: 3px;
	font-size: 12px;
	color: #aaa;
}

/* Opisanie aftera-badges */
.comment_linked_items .aftera.opisanie_aftera,
.comment_linked_items_rendered .aftera.opisanie_aftera {
	height: auto;
	align-items: center;
	padding-top: 4px;
}

/* Совместник — flexbox-карточка уже стилизована через .sovm_item */
.comment_linked_items .sovm_item,
.comment_linked_items_rendered .sovm_item {
	padding: 8px 10px;
}

.comment_linked_items .sovm_item_cover,
.comment_linked_items_rendered .sovm_item_cover {
	width: 46px;
	height: 46px;
}

/* Скрыть служебные элементы */
.comment_linked_items .dots,
.comment_linked_items_rendered .dots,
.comment_linked_items_rendered .spec_btn {
	display: none !important;
}

.comment_linked_card_stub {
	font-size: 12px;
	color: #a08878;
	padding: 4px 0;
}

/* Rendered media in saved comments */
.comment_videos_rendered {
	padding: 4px 0 6px;
}

.comment_videos_rendered .compose_video_item {
	pointer-events: auto;
}

.comment_linked_items_rendered {
	padding: 4px 0 6px;
}

/* ─── Кнопка удаления прикреплённого объекта (в режиме редактирования) ─── */

.cmt_linked_remove_btn {
	position: absolute;
	right: 0;
	top: 0;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background: rgba(0,0,0,0.32);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	border-radius: 0 0 0 8px;
	z-index: 2;
	pointer-events: auto;
	transition: background 0.15s;
}

.cmt_linked_remove_btn:hover {
	background: rgba(180,50,50,0.8);
}

.comment_linked_items_rendered .comment_linked_card.removed-in-edit {
	opacity: 0.25;
	pointer-events: none;
}

/* ─── Инлайн-редактирование заметки ─────────────────────────────────────── */

.cmt_inline_edit_wrap {
	margin-top: 4px;
}

.cmt_inline_edit_input {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 2px solid #c8afc8;
	border-radius: 10px;
	background: #faf7fa;
	font-size: 15px;
	line-height: 1.45;
	color: #333;
	outline: none;
	white-space: pre-wrap;
	word-break: break-word;
}

.cmt_inline_edit_input:focus {
	border-color: #9b7a9b;
	background: #fff;
}

.cmt_inline_edit_actions {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.cmt_inline_save_btn,
.cmt_inline_cancel_btn {
	padding: 5px 16px;
	border-radius: 8px;
	border: none;
	font-size: 13px;
	cursor: pointer;
	line-height: 1.3;
}

.cmt_inline_save_btn {
	background: #9b7a9b;
	color: #fff;
}

.cmt_inline_save_btn:hover {
	background: #7a5c7a;
}

.cmt_inline_cancel_btn {
	background: var(--panel-beige);
	color: var(--text-mauve);
}

.cmt_inline_cancel_btn:hover {
	background: #ddd0d0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   СОВМЕСТНИКИ: карточки списка
   ═══════════════════════════════════════════════════════════════════════════ */

.sovm_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
}

.sovm_item_cover {
	width: 54px;
	height: 54px;
	border-radius: 10px;
	background: rgba(109,89,104,0.15) center/cover no-repeat;
	flex-shrink: 0;
}

.sovm_item_body {
	flex: 1;
	min-width: 0;
}

.sovm_item_body .item_name {
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}

.sovm_item_meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.sovm_status_badge,
.sovm_time_badge {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 100px;
	background: rgba(109,89,104,0.12);
	color: var(--text-mauve);
}

.sovm_status_active  { background: rgba(76,175,80,0.15);  color: #388e3c; }
.sovm_status_stopped { background: rgba(229,57,53,0.12);  color: #c62828; }
.sovm_status_draft   { background: rgba(109,89,104,0.12); color: var(--text-mauve); }

.sovm_item_date {
	font-size: 11px;
	color: #a090a0;
	margin-left: 2px;
}

.sovm_blog_text {
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
	padding: 10px 0;
}

.sovm_section_label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a090a0;
	margin: 14px 0 6px;
}

.sovm_yarns_list,
.sovm_projects_list,
.sovm_examples_list {
	display: block !important;
}

/* ─── Кнопка сохранения с градиентом (save_proj и т.п.) ─────────────────── */
.save-grad-button {
	all: unset;
	box-sizing: border-box;
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 380px;
	height: 56px;
	padding: 0 16px;
	border-radius: 28px;
	cursor: pointer;
	font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
	background: color(srgb 0.63 0.4032 0.6077);
}

.save-grad-button:active { transform: scale(0.985); }

.save-grad-button__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #ffffff 0%, #e9e2fb 60%, #d5c8f5 100%);
	box-shadow:
		inset 0 -2px 4px rgba(140, 110, 220, 0.35),
		0 3px 7px rgba(90, 60, 170, 0.35);
	color: #8e7ae0;
}

.save-grad-button__icon svg { display: block; width: 20px; height: 20px; }

.save-grad-button__label {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 2px rgba(80, 50, 160, 0.35);
	white-space: nowrap;
}

.save-grad-button__arrow {
	margin-left: auto;
	align-self: center;
	display: flex;
	align-items: center;
	color: #fff;
}

.save-grad-button__arrow svg {
	display: block;
	width: 30px;
	height: 14px;
	filter: drop-shadow(0 1px 2px rgba(80, 50, 160, 0.35));
}

@media (max-width: 420px) {
	.save-grad-button { height: 50px; padding: 0 12px; border-radius: 25px; }
	.save-grad-button__icon { width: 34px; height: 34px; }
	.save-grad-button__icon svg { width: 18px; height: 18px; }
	.save-grad-button__label { font-size: 15px; }
	.save-grad-button__arrow svg { width: 26px; height: 13px; }
}

/* ── Состояние загрузки кнопки сохранения ────────────────────────────────
   При клике кнопка плавно сужается к центру, текст/иконки прячутся,
   появляется вращающийся белый клубок. Класс снимается после сохранения,
   при ошибке/нет связи и при повторном открытии формы. */
.save-grad-button {
	transition: width .34s cubic-bezier(.4, 0, .2, 1), padding .34s cubic-bezier(.4, 0, .2, 1), border-radius .34s ease;
}
.save-grad-button.is-loading {
	width: 56px !important;
	min-width: 56px;
	padding: 0;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
	pointer-events: none;
	overflow: hidden;
}
.save-grad-button.is-loading .save-grad-button__label,
.save-grad-button.is-loading .save-grad-button__icon,
.save-grad-button.is-loading .save-grad-button__arrow {
	opacity: 0 !important;
	visibility: hidden;
	transition: opacity .16s ease;
}
.save-grad-button.is-loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='1.25'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%280%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%2830%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%2860%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%2890%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%28120%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='9'%20ry='3.4'%20transform='rotate%28150%2012%2012%29'/%3E%3Cellipse%20cx='12'%20cy='12'%20rx='5.4'%20ry='9'%20transform='rotate%2820%2012%2012%29'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: sgb-yarn-spin .75s linear infinite;
}
@keyframes sgb-yarn-spin {
	to { transform: rotate(360deg); }
}
/* Старые текстовые индикаторы «Секунду...» больше не нужны — их заменил клубок */
.yarn_save_wait,
.proj_save_wait,
.exmpl_save_wait,
.opisanie_save_wait,
.sovm_save_wait,
.blog_save_wait {
	display: none !important;
}
@media (max-width: 420px) {
	.save-grad-button.is-loading { width: 50px; min-width: 50px; }
	.save-grad-button.is-loading::after { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
}

/* Telegram Mini App — сдвигаем toad_window вниз под шапку Telegram */
.tg-mini .yarn_detail,
.tg-mini .project_detail,
.tg-mini .toad_window {
	top: calc(env(safe-area-inset-top, 0px) + 75px);
}

/* Telegram Mini App — опускаем крестик закрытия toad_window ещё на 75px */
.tg-mini body.toad_window_open .btn_plus.actual,
.tg-mini body.toad_window_open .btn_plus.actual.on_form {
	top: calc(env(safe-area-inset-top, 0px) + 89px);
}

/* Кружок-меню рядом с @именем автора в шапке чужого блога */
.lenta_blog_feed_menu_wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.lenta_blog_feed_menu_btn {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.15);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 0;
	cursor: pointer;
}
.lenta_blog_feed_menu_btn span {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	display: block;
}
.lenta_blog_feed_menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
	overflow: hidden;
	min-width: 140px;
}
.lenta_blog_feed_menu_item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: none;
	padding: 10px 14px;
	font-size: 14px;
	color: #b8434f;
	cursor: pointer;
	white-space: nowrap;
}
.lenta_blog_feed_menu_item:active {
	background: rgba(0,0,0,0.05);
}

/* Кнопка «Добавить пост» в окне своего блога */
.lenta_blog_feed_add_post {
	border: 0;
	border-radius: 14px;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	padding: 10px 14px;
	cursor: pointer;
	white-space: nowrap;
}
.lenta_blog_feed_add_post:active {
	transform: translateY(1px);
}
.lenta_blog_feed_share_btn {
	border: 0;
	border-radius: 14px;
	background: rgba(109,89,104,0.14);
	color: #4a3f48;
	font-size: 13px;
	line-height: 1;
	padding: 10px 14px;
	cursor: pointer;
	white-space: nowrap;
}
.lenta_blog_feed_share_btn:active {
	transform: translateY(1px);
}

/* Меню поста (три точки) в окне блога */
.lenta_blog_feed_posts .item {
	position: relative;
}
.blog_post_menu_wrap {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
}
/* Инлайн-вариант: кружок рядом с именем автора (в открытом посте) */
.blog_post_menu_wrap.inline {
	position: relative;
	top: auto;
	right: auto;
	margin-left: 20px;
	flex: 0 0 auto;
}
.blog_post_menu_btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.1);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 0;
	cursor: pointer;
}
.blog_post_menu_btn span {
	width: 3.5px;
	height: 3.5px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	display: block;
}
.blog_post_menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
	overflow: hidden;
	min-width: 150px;
}
.blog_post_menu_item {
	display: block;
	width: 100%;
	text-align: left;
	border: 0;
	background: none;
	padding: 11px 16px;
	font-size: 14px;
	color: #2a2a3a;
	cursor: pointer;
	white-space: nowrap;
}
.blog_post_menu_item:active {
	background: rgba(0,0,0,0.05);
}
.blog_post_menu_item.disabled {
	color: rgba(0,0,0,0.3);
	cursor: default;
}
.blog_post_menu_item.danger {
	color: #b8434f;
}

/* Подтверждение удаления поста — оверлей поверх поста (как у комментариев) */
.lenta_blog_feed_posts .item .post_remove_confirm {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 100px 16px 16px;
	background: rgba(255,255,255,0.82);
	backdrop-filter: blur(6px);
	text-align: center;
	border-radius: inherit;
}
.lenta_blog_feed_posts .item .post_remove_confirm_text {
	font-size: 14px;
	line-height: 1.25;
	color: rgba(0,0,0,0.68);
}
.lenta_blog_feed_posts .item .post_remove_confirm_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.lenta_blog_feed_posts .item .post_remove_confirm_yes,
.lenta_blog_feed_posts .item .post_remove_confirm_no {
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
}
.lenta_blog_feed_posts .item .post_remove_confirm_yes {
	background: #b85662;
	color: #fff;
}
.lenta_blog_feed_posts .item .post_remove_confirm_no {
	background: rgba(0,0,0,0.08);
	color: rgba(0,0,0,0.66);
}

/* Список подписчиков в своём блоге (нижний лист, как участники чата) */
.lenta_blog_feed_subscribers.clickable {
	cursor: pointer;
	text-decoration: underline;
}
.lenta_subscribers_overlay {
	position: absolute;
	inset: 0;
	z-index: 40;
	background: rgba(20, 15, 35, 0.35);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.lenta_subscribers_panel {
	width: 100%;
	max-height: 70%;
	background: #fff;
	border-radius: 20px 20px 0 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 -8px 28px rgba(20,15,40,0.22);
}
.lenta_subscribers_panel_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px;
	flex: none;
}
.lenta_subscribers_panel_title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-heading);
}
.lenta_subscribers_panel_close {
	border: 0;
	background: none;
	font-size: 24px;
	line-height: 1;
	color: #8a8698;
	cursor: pointer;
}
.lenta_subscribers_panel_list {
	overflow-y: auto;
	padding: 4px 8px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.lenta_subscribers_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-radius: 14px;
	cursor: pointer;
}
.lenta_subscribers_row:active {
	background: rgba(0,0,0,0.05);
}
.lenta_subscribers_avatar {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #6b4a6b;
}
.lenta_subscribers_avatar.empty {
	background: linear-gradient(135deg, #ebd8cf 0%, #d9c1b5 100%);
}
.lenta_subscribers_meta {
	min-width: 0;
}
.lenta_subscribers_name {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lenta_subscribers_username {
	font-size: 13px;
	color: var(--accent);
	margin-top: 2px;
}
.lenta_subscribers_empty {
	padding: 24px 12px;
	text-align: center;
	color: rgba(0,0,0,0.5);
	font-size: 14px;
}

/* Блок «N проектов» над постами в блоге пользователя */
.lenta_blog_feed_projects {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px 14px;
	background: rgba(109,89,104,0.08);
	border-radius: 14px;
	cursor: pointer;
	font-size: 14px;
	color: var(--text-heading);
}
.lenta_blog_feed_projects:active {
	background: rgba(109,89,104,0.16);
}
.lenta_blog_feed_projects > svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: var(--accent);
}
.lenta_blog_feed_projects_count {
	flex: 1 1 auto;
	font-weight: 600;
}
.lenta_blog_feed_projects_chevron {
	color: rgba(0,0,0,0.35);
}

/* Шапка окна «Проекты автора» — аватар + имя */
.user_projects_header {
	align-items: center;
}
.user_projects_head_info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.user_projects_head_link { cursor: pointer; }
.user_projects_head_link:active { opacity: 0.7; }
.user_projects_avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
}
.user_projects_avatar.empty {
	background: linear-gradient(135deg, #d8d8d8 0%, #bfbfbf 100%);
}
.user_projects_headmeta {
	min-width: 0;
}
.user_projects_author_name {
	font-size: 17px;
	font-weight: 700;
	color: var(--text-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.user_projects_header .user_projects_title {
	margin-bottom: 0;
	color: rgba(0,0,0,0.5);
}

/* Белый фон для текстовых/числовых полей и полей даты */
input[type=text],
input[type=number],
input[type=date] {
	background-color: #fff;
}

/* Значок публичности в карточке проекта */
.project_items_list .item {
	position: relative;
}
.proj_visibility_badge {
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.9);
	z-index: 0;
}
.proj_visibility_badge svg {
	width: 16px;
	height: 16px;
}
.proj_visibility_badge.public {
	color: #2f9e44;
}
.proj_visibility_badge.hidden {
	color: #8a8391;
}

/* Вкладки «Личные заметки / Публичные комментарии» в детали проекта */
.proj_notes_tabs {
	display: flex;
	gap: 6px;
	margin: 16px 0 4px;
	padding: 4px;
	background: rgba(109,89,104,0.08);
	border-radius: 14px;
}
.proj_notes_tab {
	flex: 1 1 0;
	border: 0;
	background: none;
	border-radius: 10px;
	padding: 9px 10px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(0,0,0,0.5);
	cursor: pointer;
	white-space: nowrap;
}
.proj_notes_tab.active {
	background: #fff;
	color: var(--text-heading);
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.proj_notes_tab:disabled {
	cursor: default;
	color: rgba(0,0,0,0.3);
}

/* Публичные комментарии проекта */
.proj_public_comments {
	margin-top: 10px;
}
.proj_pcomment {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.proj_pcomment_avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}
.proj_pcomment_avatar.empty {
	background: linear-gradient(135deg, #d8d8d8 0%, #bfbfbf 100%);
}
.proj_pcomment_body {
	min-width: 0;
	flex: 1 1 auto;
}
.proj_pcomment_head {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.proj_pcomment_name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-heading);
	cursor: pointer;
}
.proj_pcomment_name:hover {
	text-decoration: underline;
}
.proj_pcomment_date {
	font-size: 12px;
	color: rgba(0,0,0,0.4);
}
.proj_pcomment_text {
	font-size: 14px;
	line-height: 1.35;
	color: rgba(0,0,0,0.78);
	margin-top: 2px;
	word-break: break-word;
}
.proj_pcomment_del {
	margin-top: 4px;
	border: 0;
	background: none;
	padding: 0;
	font-size: 12px;
	color: #b8434f;
	cursor: pointer;
}
.proj_public_comments_empty {
	padding: 18px 8px;
	text-align: center;
	color: rgba(0,0,0,0.45);
	font-size: 14px;
}
.proj_public_comment_composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: 12px;
}
.proj_public_comment_input {
	flex: 1 1 auto;
	min-height: 40px;
	max-height: 160px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 14px;
	padding: 10px 14px;
	font-size: 14px;
	text-align: left;
}
.proj_public_comment_input:empty:before {
	content: attr(data-placeholder);
	color: rgba(0,0,0,0.4);
}
.proj_public_comment_send {
	flex: 0 0 auto;
}

/* Имя автора у публичного комментария проекта (в мете) */
.project_detail .big_comments .pcmt_author {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}
.project_detail .big_comments .pcmt_author:hover {
	text-decoration: underline;
}

/* Лайк проекта в детали (снизу слева) */
.project_detail .proj_like_row {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}
.proj_notes_tab_count {
	display: inline-block;
	margin-left: 6px;
	min-width: 16px;
	padding: 0 5px;
	background: rgba(120,95,144,0.28);
	color: #55406e;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	vertical-align: middle;
}
.proj_notes_tab.active .proj_notes_tab_count {
	background: rgba(255,255,255,0.4);
	color: #fff;
}
.project_detail .proj_comment_jump {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: rgba(0,0,0,0.52);
	flex: 0 0 auto;
}
.project_detail .proj_comment_jump svg { width: 18px; height: 18px; display: block; }
.project_detail .proj_comment_jump:hover { color: rgba(0,0,0,0.78); }
.project_detail .proj_comment_count {
	font-size: 12px;
	font-weight: 600;
	color: rgba(0,0,0,0.6);
}

/* Лайк проекта: анимация сердечка + цвет активного (как в блоге) */
.project_detail .proj_like_toggle .blog_like_icon {
	transform-origin: 50% 50%;
	will-change: transform;
}
.project_detail .proj_like_toggle.pulse .blog_like_icon {
	animation: blogLikePulse 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.project_detail .proj_like_toggle.liked {
	color: #d34a5b;
}

/* Прикреплённая пряжа в форме проекта: скрываем меню-точки, показываем крестик открепления */
.yarn_in_proj_form .item .dots,
.yarn_in_proj_form .item .spec_btn {
	display: none !important;
}
.yarn_in_proj_form .item {
	position: relative;
}
.item_detach_cross {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	color: #b8434f;
	font-size: 18px;
	line-height: 26px;
	text-align: center;
	cursor: pointer;
	z-index: 3;
}
.item_detach_cross:active {
	background: rgba(0,0,0,0.12);
}

/* Пустое состояние комментариев проекта */
.project_detail .big_comments .proj_comments_empty {
	padding: 18px 12px;
	text-align: center;
	color: rgba(0,0,0,0.45);
	font-size: 14px;
}

/* Бейдж количества лайков в списках проектов (только вывод, без клика) */
.proj_like_badge {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	background: rgba(255,255,255,0.9);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #444;
	pointer-events: none;
	z-index: 3;
	line-height: 1;
}
.proj_like_badge_icon {
	width: 13px;
	height: 13px;
	object-fit: contain;
}
/* Личный список: слева от иконки видимости (она справа снизу, right:2px) */
.project_items_list .proj_like_badge_own {
	bottom: 7px;
	right: 25px;
}
/* Есть комментарии — сдвигаем лайк левее, освобождая место под бейдж */
.project_items_list .item.has_proj_comment .proj_like_badge_own {
	right: 66px;
}
/* Бейдж числа публичных комментариев: между лайком и иконкой видимости */
.project_items_list .proj_comment_badge {
	position: absolute;
	bottom: 7px;
	right: 34px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 7px;
	background: rgba(255,255,255,0.9);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #6d5968;
	pointer-events: none;
	z-index: 0;
	line-height: 1;
}
.project_items_list .proj_comment_badge svg {
	width: 13px;
	height: 13px;
}
/* Список чужих проектов: лайк/комментарий в нижней строке (.proj_card_metrics) */
.user_projects_list .item {
	position: relative;
}

/* Точечная правка отступов миниатюр внутри user_projects_list */
.yarn_list.user_projects_list .yarn_list .yarn_img,
.yarn_list.user_projects_list .yarn_list_second .yarn_img,
.yarn_list.yarntoad_projects_list .item > .yarn_img {
	margin-left: -6px;
	margin-top: -3px;
}

/* Пока открыта форма создания/редактирования (.form.active), гарантированно прячем
   фоновый список объектов, чтобы он не просвечивал над формой.
   Исключения:
   - списки ВНУТРИ самой формы (прикреплённые объекты) — :not(.form .yarn_list);
   - список в РЕЖИМЕ ПРИКРЕПЛЕНИЯ (yarn_to_proj и т.п.) — в нём у элементов есть
     кнопка .spec_btn («Добавить в проект/пост/образец»), поэтому :not(:has(.spec_btn)). */
body:has(.form.active) .yarn_list:not(.form .yarn_list):not(:has(.spec_btn)) {
	display: none !important;
}

/* ─── Красивый select (psel), стиль как .gram_dd, с группами ─── */
select.pretty_select { display: none !important; }
.psel { position: relative; display: block; width: 100%; }
.psel_trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e2dbe0;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 15px;
	color: #241d24;
	cursor: pointer;
	line-height: 1.2;
	text-align: left;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.psel_trigger .psel_label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psel_is_placeholder .psel_label { color: #9a8f97; }
.psel_chevron { flex: 0 0 auto; width: 16px; height: 16px; color: #9a8f97; transition: transform 0.15s ease; }
.psel_trigger.open .psel_chevron { transform: rotate(180deg); }
.psel_menu {
	position: absolute;
	left: 0;
	right: auto;
	top: calc(100% + 6px);
	min-width: 100%;
	width: max-content;
	max-width: min(440px, 92vw);
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e7dee6;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.12);
	padding: 6px;
	z-index: 40;
	display: none;
	max-height: 280px;
	overflow-y: auto;
}
.psel_menu.open { display: block; }
.psel_opt {
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 15px;
	color: #241d24;
	cursor: pointer;
	text-align: left;
	white-space: pre;
}
.psel_opt:hover { background: #f4eef3; }
.psel_opt.is_active { background: linear-gradient(124deg, #a06bd8 0%, #7d6bf0 100%); color: #fff; }
.psel_opt.psel_placeholder { color: #9a8f97; }
.psel_opt.psel_group_opt { font-weight: 700; color: #7d6bf0; margin-top: 2px; }
.psel_opt.psel_group_opt.is_active { color: #fff; }
.psel_sep { height: 1px; background: #ece4ea; margin: 6px 10px; }

/* ─── Новая лента v2 (masonry: проекты + посты вперемешку) ─────────────── */
.lenta_v2_block { max-width: 500px; margin: 0 auto 16px auto; }
.lenta_v2_masonry { display: flex; gap: 10px; align-items: flex-start; }
.lenta_v2_col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
@media (max-width: 380px) { .lenta_v2_masonry { gap: 8px; } }
.lenta_v2_card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 10px 0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	display: block;
}
.lenta_v2_ava {
	width: 34px; height: 34px; border-radius: 50%;
	background-size: cover; background-position: center;
	background-color: #e7dfe6; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: #6d5968;
}
/* Пост */
.lenta_v2_post_head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px 12px; }
.lenta_v2_post_meta { min-width: 0; }
.lenta_v2_post_name { font-size: 13px; font-weight: 700; color: #241d24; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lenta_v2_post_time { font-size: 11px; color: rgba(36,29,36,0.5); line-height: 1.3; }
.lenta_v2_post_img { display: block; width: 100%; height: auto; }
.lenta_v2_post_text {
	padding: 8px 12px 0 12px;
	margin: 0 0 12px 0;
	font-size: 13px; line-height: 18px; color: #3a3340;
	max-height: 72px;
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
/* Проект */
.lenta_v2_proj_imgwrap { position: relative; }
.lenta_v2_proj_img { display: block; width: 100%; height: auto; }
.lenta_v2_proj_badge {
	position: absolute; top: 10px; left: 10px;
	background: rgba(125,107,240,0.92); color: #fff;
	font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.lenta_v2_proj_shade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
	background: linear-gradient(to top, rgba(0,0,0,0.58), rgba(0,0,0,0));
	pointer-events: none;
}
.lenta_v2_proj_overlay {
	position: absolute; left: 10px; right: 10px; bottom: 10px;
	display: flex; align-items: center; gap: 8px;
}
.lenta_v2_proj_overlay .lenta_v2_ava { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,0.9); color: #6d5968; }
.lenta_v2_proj_texts { min-width: 0; }
.lenta_v2_proj_name {
	color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0,0,0,0.45);
	overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lenta_v2_proj_type {
	color: rgba(255,255,255,0.92); font-size: 11px; line-height: 1.25;
	text-shadow: 0 1px 2px rgba(0,0,0,0.45);
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.lenta_v2_empty { text-align: center; color: rgba(255,255,255,0.85); font-size: 13px; padding: 16px 6px; }


/* ─── Меню «…» в переключателе новой ленты ───────────────────────────── */
.lenta_v2_title { position: relative; z-index: 60; }
.lenta_v2_menu_wrap { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.lenta_v2_dots {
	border: 0; background: transparent; cursor: pointer;
	padding: 0 14px;
	display: flex; align-items: center; justify-content: center;
	position: relative; z-index: 1;
}
.lenta_v2_dots::before { content: ""; position: absolute; top: -16px; bottom: -16px; left: -2px; right: -2px; }
.lenta_v2_dots_row { display: flex; align-items: center; gap: 3px; }
.lenta_v2_dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: rgba(100,60,160,0.5); transition: background 0.15s ease; }
.lenta_v2_dots:hover .lenta_v2_dot { background: rgba(100,60,160,0.82); }
.lenta_v2_menu {
	position: absolute; top: calc(100% + 8px); right: 0;
	min-width: 160px;
	background: rgba(40,20,60,0.92);
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 14px; overflow: hidden;
	z-index: 1000; padding: 4px 0;
}
.lenta_v2_menu_item {
	display: block; width: 100%; text-align: left; border: 0; background: transparent;
	padding: 11px 18px; font-size: 14px; font-weight: 500; font-family: -apple-system, sans-serif;
	color: rgba(255,255,255,0.88); cursor: pointer; white-space: nowrap; transition: background 0.12s ease;
}
.lenta_v2_menu_item:hover { background: rgba(255,255,255,0.1); }

.lenta_v2_sentinel { width: 100%; height: 1px; }

/* Меню «…» выпадает вниз — не даём переключателю обрезать его (глобальный .seg_control имеет overflow-x:auto) */
.lenta_v2_tabs.seg_control { overflow: visible; }

/* ─── Скелетон подгрузки + пузырь «конец ленты» ───────────────────────── */
.lenta_v2_skel { pointer-events: none; }
.lenta_v2_skel_wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px 0; }
.lenta_v2_skel_wrap .lenta_v2_card { margin: 0; }
.lenta_v2_skel_img { width: 100%; background: #ece2ea; }
.lenta_v2_skel_lines { padding: 10px 12px 14px 12px; }
.lenta_v2_skel_line { height: 11px; border-radius: 6px; margin-bottom: 8px; }
.lenta_v2_skel_line.short { width: 60%; margin-bottom: 0; }
.lenta_v2_skel_img, .lenta_v2_skel_line {
	background: linear-gradient(90deg, #ece2ea 25%, #f6eff5 37%, #ece2ea 63%);
	background-size: 400% 100%;
	animation: lentaV2Shimmer 1.4s ease infinite;
}
@keyframes lentaV2Shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.lenta_v2_end { text-align: center; padding: 18px 6px 10px 6px; }
.lenta_v2_end_bubble {
	display: inline-block; padding: 9px 18px; border-radius: 100px;
	background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.32);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: rgba(60,40,70,0.92); font-size: 13px; font-weight: 600;
}

.lenta_v2_newpill {
	display: block; margin: 0 auto 10px auto; border: 0; cursor: pointer;
	background: linear-gradient(124deg, #a06bd8 0%, #7d6bf0 100%); color: #fff;
	font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
	padding: 9px 18px; border-radius: 100px;
	box-shadow: 0 6px 18px rgba(125,107,240,0.42);
	position: sticky; top: 8px; z-index: 55;
}
.lenta_v2_newpill:hover { filter: brightness(1.05); }

.params_conn_state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px; margin: 0 0 6px; text-align: center; font-size: 13px; line-height: 1.4; color: #5a4f5a; }
.params_conn_error .home_yarn_goto { margin-top: 4px; }

.blog_project_lazy { opacity: 0.55; transition: opacity 0.2s ease; }

.blog_attach_list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.blog_attach_card { position: relative; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.blog_attach_img { width: 74px; height: 74px; border-radius: 10px; background-size: cover; background-position: center; background-color: #ece4ea; flex-shrink: 0; }
.blog_attach_body { min-width: 0; flex: 1 1 auto; }
.blog_attach_brand { font-size: 12px; color: #8a8391; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.blog_attach_name { font-size: 14px; font-weight: 700; color: #241d24; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.blog_attach_type { font-size: 12.5px; color: #6d5968; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.blog_attach_meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12.5px; color: #6d5968; }
.blog_attach_colors { display: inline-flex; align-items: center; gap: 3px; }
.blog_attach_meta .color_round { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.blog_attach_vis { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; }
.blog_attach_vis svg { width: 13px; height: 13px; }
.blog_attach_card .proj_status_line { font-size: 12px; color: #8a8391; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.blog_attach_card .proj_status_date { color: #a89fa8; }

.project_detail_loading { padding: 8px 0 20px; }
.pdl_skel { width: 100%; }
.pdl_skel_img { width: 100%; height: 260px; border-radius: 14px; background: #ece4ea; margin-bottom: 14px; animation: pdlpulse 1.2s ease-in-out infinite; }
.pdl_skel_line { height: 16px; border-radius: 8px; background: #ece4ea; margin-bottom: 10px; animation: pdlpulse 1.2s ease-in-out infinite; }
.pdl_skel_line.w60 { width: 60%; }
.pdl_skel_line.w40 { width: 40%; }
.pdl_spinner { margin: 20px auto 0; }
.pdl_error { text-align: center; padding: 40px 16px; color: #5a4f5a; font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; gap: 12px; align-items: center; }
@keyframes pdlpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.blog_post_attachments { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.blog_post_attachments .blog_article_obj { margin: 0; }

.lenta_v2_post_stats { display: flex; align-items: center; gap: 12px; padding: 2px 12px 12px 12px; }
.lenta_v2_stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: rgba(36,29,36,0.5); line-height: 1; }
.lenta_v2_stat img { width: 18px; height: 18px; object-fit: contain; display: block; }
.lenta_v2_stat_cmt svg { width: 16px; height: 16px; display: block; stroke: rgba(36,29,36,0.5); }
.lenta_v2_stat_like.is_liked { color: #e2536b; }
.lenta_v2_stat_num { min-width: 5px; }

button.lenta_v2_stat_like { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lenta_v2_stat_like .blog_like_count { font-size: 12px; font-weight: 700; color: rgba(36,29,36,0.5); line-height: 1; }
.lenta_v2_stat_like.liked .blog_like_count { color: #e2536b; }
.lenta_v2_stat_like.pulse .blog_like_icon { animation: blogLikePulse 0.42s cubic-bezier(0.22, 1, 0.36, 1); }

/* Нижние toad_window скрыты, пока сверху открыто другое */
.toad_window.toad_window_covered { visibility: hidden; opacity: 0; pointer-events: none; transition: none !important; }


/* Окно чужой пряжи (клик по пряже в публичном проекте) */
.foreign_yarn_window .fyw_pic { margin-bottom: 12px; }
.foreign_yarn_window .fyw_pic_img { width: 100%; height: 220px; border-radius: 18px; background-position: center; background-size: cover; }
.foreign_yarn_window .fyw_brand { font-size: 14px; color: #a08878; }
.foreign_yarn_window .fyw_name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.foreign_yarn_window .fyw_meters { font-size: 14px; color: #7a6a5a; margin-bottom: 14px; }
.foreign_yarn_window .fyw_projects_head { font-size: 15px; font-weight: 600; margin: 14px 0 8px; }
.foreign_yarn_window .yarn_list.fyw_projects .item { cursor: pointer; }


/* Окно чужой пряжи — белая подложка с информацией */
.foreign_yarn_window .fyw_info { background: #fff; border-radius: 24px; padding: 18px 20px; margin-bottom: 14px; }
.foreign_yarn_window .fyw_info .detail_head_row { margin-bottom: 8px; }
.foreign_yarn_window .fyw_meters { margin-bottom: 0; }


/* Окно чужой пряжи — masonry-лента (проекты + посты) */
.foreign_yarn_window .fyw_masonry { display: flex; gap: 10px; align-items: flex-start; }
.foreign_yarn_window .fyw_col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.foreign_yarn_window .fyw_col > .lenta_v2_card { margin-bottom: 10px; }
@media (max-width: 380px) { .foreign_yarn_window .fyw_masonry { gap: 8px; } }


/* Блок «Эта пряжа на YarnToad» в toad_window своей пряжи */
.yarn_on_yarntoad .yarn_yt_head { display: block; text-decoration: none; color: #7d6bf0; cursor: pointer; }
.yarn_on_yarntoad .yarn_yt_head:hover { text-decoration: underline; }
.yarn_yt_more { display: inline-block; margin-top: 8px; font-size: 14px; color: #7d6bf0; text-decoration: none; cursor: pointer; }
.yarn_yt_more:hover { text-decoration: underline; }


/* Блок «Эта пряжа на YarnToad» — компактный пузырь + пилюля счётчика */
.yarn_list.yarn_on_yarntoad {
	display: inline-flex;
	align-items: center;
	width: auto;
	margin: 6px 0 10px;
	padding: 8px 14px 0;
}
.yarn_on_yarntoad .yarn_yt_head {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-orchid);
	text-transform: none;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: normal;
}
.yarn_yt_count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--accent-orchid, #a24fb0);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}


/* Подтверждение удаления проекта — оверлей поверх карточки (как у постов) */
.yarn_list.projects .item { position: relative; }
.yarn_list.projects .item.remove_confirm_active { overflow: hidden; }
.yarn_list.projects .item .item_remove_confirm {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px;
	background: rgba(255,255,255,0.86);
	backdrop-filter: blur(6px);
	text-align: center;
	border-radius: inherit;
}
.yarn_list.projects .item .item_remove_confirm_text {
	font-size: 16px;
	line-height: 1.2;
	color: rgba(0,0,0,0.7);
}
.yarn_list.projects .item .item_remove_confirm_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.yarn_list.projects .item .item_remove_confirm_yes,
.yarn_list.projects .item .item_remove_confirm_no {
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 0;
	font-size: 13px;
	cursor: pointer;
}
.yarn_list.projects .item .item_remove_confirm_yes { background: #b85662; color: #fff; }
.yarn_list.projects .item .item_remove_confirm_no { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.66); }


/* Подтверждение удаления в toad_window — бар, прижатый к верху (под кнопками) */
.detail_remove_confirm {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(6px);
	border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.detail_remove_confirm_text { font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.75); }
.detail_remove_confirm_actions { display: flex; gap: 8px; flex: none; }
.detail_remove_confirm_yes, .detail_remove_confirm_no {
	height: 34px; padding: 0 14px; border-radius: 999px; border: 0; font-size: 13px; cursor: pointer;
}
.detail_remove_confirm_yes { background: #b85662; color: #fff; }
.detail_remove_confirm_no { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.66); }


/* Подтверждение удаления пряжи в списке — оверлей поверх карточки */
.yarn_list.yarns .item { position: relative; }
.yarn_list.yarns .item.remove_confirm_active { overflow: hidden; }
.yarn_list.yarns .item .item_remove_confirm {
	position: absolute; inset: 0; z-index: 6;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; padding: 18px; text-align: center;
	background: rgba(255,255,255,0.86); backdrop-filter: blur(6px); border-radius: inherit;
}
.yarn_list.yarns .item .item_remove_confirm_text { font-size: 16px; line-height: 1.2; color: rgba(0,0,0,0.7); }
.yarn_list.yarns .item .item_remove_confirm_actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.yarn_list.yarns .item .item_remove_confirm_yes, .yarn_list.yarns .item .item_remove_confirm_no {
	height: 34px; padding: 0 14px; border-radius: 999px; border: 0; font-size: 13px; cursor: pointer;
}
.yarn_list.yarns .item .item_remove_confirm_yes { background: #b85662; color: #fff; }
.yarn_list.yarns .item .item_remove_confirm_no { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.66); }
/* ── Скелетон-загрузка карточек в окне пряжи (foreign_yarn_window) ── */
.fyw_skel_card {
	position: relative;
	border-radius: 16px;
	background: rgba(0,0,0,0.05);
	overflow: hidden;
	margin-bottom: 12px;
}
.fyw_skel_card::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg,
		rgba(255,255,255,0) 0,
		rgba(255,255,255,0.55) 50%,
		rgba(255,255,255,0) 100%);
	animation: fyw_shimmer 1.25s infinite;
}
@keyframes fyw_shimmer {
	100% { transform: translateX(100%); }
}


/* Шапка окна проектов автора — белая подложка (как в блоге) */
.user_projects_window .user_projects_header {
	background: #fff;
	border-radius: 24px;
	padding: 18px 20px;
}
/* Фильтр — отдельным блоком, отступы сверху и снизу */
.user_projects_window .up_filters {
	margin-top: 12px;
	margin-bottom: 12px;
}


/* Проекты автора — masonry как в ленте */
.user_projects_list .up_masonry { display: flex; gap: 10px; align-items: flex-start; }
.user_projects_list .up_col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.user_projects_list .up_col > .lenta_v2_card { margin-bottom: 10px; }
@media (max-width: 380px) { .user_projects_list .up_masonry { gap: 8px; } }
