/* Stream 2.3.0 — стили ленты.
   Цвета и скругления задаются переменными: переопределите их в стилях своего шаблона. */

.st-wrap, .st-mini, .st-lightbox, .st-toast {
	--st-accent: #fdc10a;
	--st-accent-ink: #1b1b1b;
	--st-accent-soft: #fff6d6;
	--st-bg: #fff;
	--st-soft: #f4f5f7;
	--st-line: #e8eaee;
	--st-text: #1f2328;
	--st-muted: #7b8290;
	--st-danger: #d33a3a;
	--st-radius: 16px;
	--st-radius-s: 12px;
	--st-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}

.st-wrap { max-width: 680px; margin: 0 auto; color: var(--st-text); }
.st-wrap *, .st-lightbox * { box-sizing: border-box; }
.st-wrap [hidden], .st-lightbox [hidden] { display: none !important; }
.st-h1 { margin: 0 0 14px; }

/* ---------- общие элементы ---------- */
.st-btn { border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s, transform .1s; }
.st-btn:active { transform: scale(.97); }
.st-btn[disabled] { opacity: .45; cursor: default; }
.st-btn-primary { background: var(--st-accent); color: var(--st-accent-ink); }
.st-btn-primary:not([disabled]):hover { filter: brightness(.95); }
.st-btn-soft { background: var(--st-soft); color: var(--st-text); }
.st-btn-soft:hover { background: #eceef2; }
.st-icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; color: var(--st-muted); }
.st-icon-btn:hover { background: var(--st-soft); color: var(--st-text); }
.st-link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--st-muted); cursor: pointer; }
.st-link-btn:hover { color: var(--st-text); text-decoration: underline; }
.st-ava { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--st-soft); }
.st-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-ava-s { width: 32px; height: 32px; }

/* ---------- форма ---------- */
.st-composer { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: var(--st-radius); box-shadow: var(--st-shadow); padding: 14px; margin-bottom: 16px; }
.st-composer-row { display: flex; gap: 12px; }
.st-composer-main { flex: 1; min-width: 0; }
.st-composer-text { width: 100%; min-height: 56px; max-height: 320px; resize: none; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; line-height: 1.5; padding: 10px 0; color: inherit; }
.st-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--st-line); }
.st-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.st-tool { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--st-muted); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.st-tool:hover { background: var(--st-accent-soft); color: #7a5a00; }
.st-tool-wrap { position: relative; }
.st-popover { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: var(--st-bg); border-radius: var(--st-radius-s); box-shadow: 0 8px 28px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.06); padding: 6px; }
.st-popover button, .st-menu-list button, .st-menu-list a { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--st-text); cursor: pointer; text-decoration: none; }
.st-popover button:hover, .st-menu-list button:hover, .st-menu-list a:hover { background: var(--st-soft); }
.st-submit { display: flex; align-items: center; gap: 10px; }
.st-counter { font-size: 12px; color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st-counter.is-warn { color: var(--st-danger); }

.st-link-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.st-link-input input { flex: 1; min-width: 0; border: 1px solid var(--st-line); border-radius: 999px; padding: 9px 14px; font: inherit; background: var(--st-soft); }

/* превью загруженных фото в форме */
.st-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.st-pv { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--st-soft); }
.st-pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-pv.is-loading img { filter: blur(6px) brightness(.9); transform: scale(1.08); }
.st-pv-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--st-accent); transition: width .15s; }
.st-pv.is-error { outline: 2px solid var(--st-danger); }
.st-pv-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; font-size: 13px; line-height: 24px; padding: 0; }

/* ---------- запись ---------- */
.st-post { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: var(--st-radius); box-shadow: var(--st-shadow); padding: 14px 16px 10px; margin-bottom: 14px; position: relative; animation: st-in .28s ease backwards; }
.st-post.is-pinned { border-color: #f1d77a; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-head { display: flex; align-items: center; gap: 12px; }
.st-head-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; line-height: 1.3; }
.st-author { flex-basis: 100%; font-weight: 700; color: var(--st-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-time { font-size: 13px; color: var(--st-muted); text-decoration: none; }
.st-time:hover { text-decoration: underline; }
.st-menu { position: relative; }
.st-menu-list { position: absolute; right: 0; top: 34px; z-index: 20; min-width: 170px; background: var(--st-bg); border-radius: var(--st-radius-s); box-shadow: 0 8px 28px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.06); padding: 6px; }
.st-menu-list .is-danger { color: var(--st-danger); }
.st-text { margin: 10px 0 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.st-text a { color: #1a6fd6; }

/* фото: размытое превью, поверх него плавно проявляется настоящее */
.st-photos { display: grid; gap: 3px; margin-top: 10px; border-radius: var(--st-radius-s); overflow: hidden; }
.st-n1 { grid-template-columns: 1fr; }
.st-n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.st-n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.st-n3 .st-ph:first-child { grid-row: span 2; }
.st-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1; }
.st-ph { position: relative; display: block; overflow: hidden; background: var(--st-soft); min-height: 80px; }
.st-n1 .st-ph { max-height: 560px; aspect-ratio: 4 / 3; }
.st-ph .st-lqip, .st-card-media .st-lqip {
	position: absolute; inset: -12px; background-size: cover; background-position: center;
	filter: blur(14px);
}
.st-ph img, .st-card-media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .45s ease, filter .45s ease;
}
.st-ph img.is-loaded, .st-card-media img.is-loaded { opacity: 1; }
.st-ph img.is-error { display: none; }
.st-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; font-weight: 700; }

/* карточка ссылки */
.st-card { display: block; margin-top: 10px; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); overflow: hidden; color: inherit; text-decoration: none; background: var(--st-bg); transition: border-color .15s, box-shadow .15s; }
.st-card:hover { border-color: #d5d9e0; box-shadow: var(--st-shadow); text-decoration: none; color: inherit; }
.st-card-media { position: relative; display: block; aspect-ratio: 1.91 / 1; background: var(--st-soft); overflow: hidden; }
.st-card-body { display: block; padding: 11px 14px 13px; }
.st-card.is-noimg .st-card-body { border-left: 4px solid var(--st-accent); }
.st-card-site { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 16px; line-height: 1.35; margin-top: 2px; }
.st-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--st-muted); margin-top: 3px; }
.st-link-preview { position: relative; margin-top: 8px; }
.st-link-preview .st-card-x, .st-video-preview .st-card-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; line-height: 28px; padding: 0; }
.st-skeleton { height: 86px; border-radius: var(--st-radius-s); background: linear-gradient(90deg, var(--st-soft) 25%, #eceef2 50%, var(--st-soft) 75%); background-size: 200% 100%; animation: st-shimmer 1.2s linear infinite; }
@keyframes st-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* низ записи */
.st-foot { margin-top: 10px; }
.st-stats { display: flex; align-items: center; justify-content: space-between; min-height: 22px; font-size: 13px; color: var(--st-muted); }
.st-react-sum { display: inline-flex; align-items: center; gap: 5px; }
.st-react-icons { letter-spacing: -2px; }
.st-actions { display: flex; gap: 2px; border-top: 1px solid var(--st-line); margin-top: 6px; padding-top: 4px; }
.st-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 9px 6px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--st-muted); cursor: pointer; transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.st-act:hover { background: var(--st-soft); color: var(--st-text); }
.st-act.is-active { color: #b57f00; }
.st-act-ico { font-size: 17px; line-height: 1; }
.st-react-wrap { position: relative; flex: 1; display: flex; }
.st-react-wrap .st-act { flex: 1; }
.st-react-picker { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 25; display: flex; gap: 2px; background: var(--st-bg); border-radius: 999px; padding: 5px 8px; box-shadow: 0 8px 28px rgba(16,24,40,.18), 0 0 0 1px rgba(16,24,40,.06); animation: st-pop .14s ease both; }
.st-react-picker button { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px 6px; cursor: pointer; border-radius: 50%; transition: transform .12s; }
.st-react-picker button:hover { transform: scale(1.3) translateY(-3px); }
@keyframes st-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* комментарии */
.st-comments { border-top: 1px solid var(--st-line); margin-top: 6px; padding: 10px 0 4px; }
.st-comment { display: flex; gap: 8px; margin-top: 8px; }
.st-comment-body { min-width: 0; }
.st-comment-bubble { display: inline-block; max-width: 100%; background: var(--st-soft); border-radius: 14px; padding: 7px 12px; }
.st-comment-author { font-weight: 700; font-size: 13px; color: var(--st-text); text-decoration: none; }
.st-comment-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.st-comment-meta { display: flex; gap: 12px; font-size: 12px; color: var(--st-muted); padding: 2px 12px 0; }
.st-all-comments { display: block; margin-bottom: 4px; }
.st-comment-form { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.st-comment-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid transparent; background: var(--st-soft); border-radius: 18px; padding: 8px 14px; font: inherit; font-size: 14px; line-height: 1.4; max-height: 140px; outline: 0; }
.st-comment-form textarea:focus { border-color: var(--st-accent); background: var(--st-bg); }
.st-send { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--st-accent); color: var(--st-accent-ink); cursor: pointer; font-size: 14px; }
.st-send[disabled] { opacity: .4; }

.st-empty { text-align: center; color: var(--st-muted); padding: 40px 0; }
.st-more-wrap { text-align: center; margin: 8px 0 24px; }
.st-back { margin: 8px 0 24px; }

/* виджет «последние записи» */
.st-mini { display: flex; flex-direction: column; gap: 8px; }
.st-mini-item { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.35; }
.st-mini-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.st-mini-all { font-size: 13px; }

/* просмотрщик фото */
.st-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(8,10,14,.94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; animation: st-fade .15s ease both; }
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
.st-lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.st-lb-btn { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.st-lb-btn:hover { background: rgba(255,255,255,.22); }
.st-lb-close { top: 14px; right: 14px; }
.st-lb-prev { left: 14px; top: 50%; margin-top: -22px; }
.st-lb-next { right: 14px; top: 50%; margin-top: -22px; }
.st-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfd3da; font-size: 14px; }

.st-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 99998; background: #1f2328; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); max-width: calc(100vw - 32px); animation: st-pop .18s ease both; }
.st-toast a { color: var(--st-accent); margin-left: 8px; }
.st-toast.is-error { background: var(--st-danger); }

@media (max-width: 560px) {
	.st-post, .st-composer { border-radius: 14px; padding-left: 12px; padding-right: 12px; }
	.st-tool span { display: none; }
	.st-act-ico { font-size: 20px; }
	.st-lb-prev, .st-lb-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.st-post, .st-react-picker, .st-lightbox, .st-toast { animation: none; }
	.st-ph img, .st-card-media img { transition: none; }
}

/* ---------- 1.1.0: видео, опросы, до/после ---------- */
.st-video { position: relative; margin-top: 10px; aspect-ratio: 16 / 9; border-radius: var(--st-radius-s); overflow: hidden; background: #111; }
.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; margin: 0; cursor: pointer; background: #1b1d22; display: block; color: #fff; font: inherit; }
.st-video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.st-video-play img.is-loaded { opacity: 1; }
.st-video-play .st-lqip { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(14px); }
.st-video-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.6); transition: transform .15s, background .15s; }
.st-video-btn::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.st-video-play:hover .st-video-btn { background: var(--st-accent); transform: scale(1.06); }
.st-video-play:hover .st-video-btn::after { border-left-color: var(--st-accent-ink); }
.st-video-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; text-align: left; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-video-preview { position: relative; margin-top: 8px; }
.st-video-preview .st-video { margin-top: 0; }
.st-video-preview .st-video-play { cursor: default; }
.st-video-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.st-video-input input { flex: 1; min-width: 0; border: 1px solid var(--st-line); border-radius: 999px; padding: 9px 14px; font: inherit; background: var(--st-soft); }

.st-panel { margin-top: 10px; padding: 12px; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); background: var(--st-soft); }
.st-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.st-input { width: 100%; border: 1px solid var(--st-line); border-radius: 10px; padding: 8px 12px; font: inherit; background: #fff; }
.st-poll-opts { display: grid; gap: 6px; margin: 8px 0; }
.st-poll-optrow { display: flex; gap: 4px; align-items: center; }
.st-poll-set { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; color: var(--st-muted); }
.st-poll-set select { font: inherit; margin-left: 4px; }
.st-hint { margin: 8px 0 0; font-size: 12px; color: var(--st-muted); }

.st-compare-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-slot { position: relative; display: grid; gap: 6px; }
.st-slot-pick { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border: 2px dashed var(--st-line); border-radius: 10px; background: #fff center / cover no-repeat; cursor: pointer; font: inherit; color: var(--st-muted); }
.st-slot-pick:hover { border-color: var(--st-accent); }
.st-slot-plus { font-size: 26px; line-height: 1; }
.st-slot.has-img .st-slot-pick { border-style: solid; border-color: transparent; }
.st-slot.has-img .st-slot-pick > * { display: none; }
.st-slot.is-loading .st-slot-pick { opacity: .5; }
.st-slot .st-pv-x { position: absolute; top: 6px; right: 6px; }
.st-slot-label { border: 1px solid var(--st-line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; background: #fff; min-width: 0; }

.st-compare { --p: 50%; position: relative; margin-top: 10px; border-radius: var(--st-radius-s); overflow: hidden; background: var(--st-soft); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.st-cmp-img { position: absolute; inset: 0; }
.st-cmp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.st-cmp-img img.is-loaded { opacity: 1; }
.st-cmp-img .st-lqip { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(14px); }
.st-cmp-before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.st-cmp-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); pointer-events: none; }
.st-cmp-tag-l { left: 10px; }
.st-cmp-tag-r { right: 10px; }
.st-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); outline: none; }

.st-poll { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); }
.st-poll-q { font-weight: 600; margin-bottom: 10px; overflow-wrap: anywhere; }
.st-poll-list { display: grid; gap: 6px; margin-bottom: 10px; }
.st-poll-opt { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--st-line); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.st-poll-opt:hover { border-color: var(--st-accent); background: var(--st-accent-soft); }
.st-poll-opt input { flex: none; accent-color: var(--st-accent); }
.st-poll-res { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--st-soft); overflow: hidden; }
.st-poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--st-accent-soft); transition: width .5s; }
.st-poll-res.is-mine .st-poll-bar { background: var(--st-accent); opacity: .55; }
.st-poll-title, .st-poll-pct { position: relative; }
.st-poll-title { overflow-wrap: anywhere; }
.st-poll-pct { font-weight: 600; flex: none; }
.st-poll-meta, .st-poll-note { font-size: 12px; color: var(--st-muted); }
.st-poll-note { margin-bottom: 6px; }

@media (max-width: 480px) { .st-compare-slots { gap: 6px; } .st-video-btn { width: 54px; height: 54px; margin: -27px 0 0 -27px; } .st-video-btn::after { left: 21px; top: 15px; } }
@media (prefers-reduced-motion: reduce) { .st-video-play img, .st-cmp-img img, .st-poll-bar { transition: none; } }

/* ---------- 1.1.1: компактная форма, единый нижний блок, правка ---------- */
.st-composer, .st-post { container-type: inline-size; }
.st-composer { padding: 12px 14px 10px; }
.st-composer-row { display: flex; gap: 10px; align-items: flex-start; }
.st-composer-row .st-ava { width: 40px; height: 40px; margin-top: 2px; }
.st-composer-main { flex: 1; min-width: 0; }
.st-composer-text { min-height: 44px; padding: 9px 0 6px; }
.st-composer-body > :first-child { margin-top: 0; }
.st-toolbar { margin-top: 6px; padding-top: 8px; flex-wrap: nowrap; }
.st-tools { flex-wrap: nowrap; gap: 2px; min-width: 0; }
.st-tool { flex: none; padding: 7px 10px; }
.st-submit { flex: none; }
.st-submit .st-btn { padding: 8px 18px; }
@container (max-width: 560px) {
	.st-tool span { display: none; }
	.st-tool { padding: 8px; }
	.st-submit .st-btn { padding: 8px 14px; font-size: 14px; }
}

.st-edited { margin-left: 6px; font-size: 12px; color: var(--st-muted); }

/* нижний блок записи: всё в одном стиле — мягкие «таблетки» */
.st-foot { margin-top: 12px; }
.st-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 0; margin-top: 0; padding-top: 0; }
.st-act { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--st-soft); color: var(--st-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.st-act:hover { background: #eceef2; color: var(--st-text); }
.st-act:active { transform: scale(.97); }
.st-act.is-active { background: var(--st-accent-soft); color: #7a5a00; }
.st-act-ico { font-size: 16px; line-height: 1; }
.st-act-share { margin-left: auto; width: 36px; padding: 0; }
.st-react-wrap { position: relative; flex: none; display: flex; }
.st-react-sum { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--st-soft); font-size: 13px; font-weight: 600; color: var(--st-muted); }
.st-react-sum[hidden] { display: none; }
.st-react-icons { letter-spacing: -2px; font-size: 14px; }
.st-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--st-accent); color: var(--st-accent-ink); font-size: 12px; line-height: 20px; text-align: center; }
.st-count[hidden] { display: none; }

.st-comments { border-top: 0; margin-top: 12px; padding: 12px; background: var(--st-soft); border-radius: var(--st-radius-s); }
.st-comment-bubble { background: var(--st-bg); }
.st-comment-form textarea { background: var(--st-bg); border-color: var(--st-line); }
.st-comment-form textarea:focus { border-color: var(--st-accent); }

.st-edit { margin-top: 8px; }
.st-edit-text { width: 100%; resize: none; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); padding: 10px 12px; font: inherit; line-height: 1.5; background: var(--st-soft); outline: 0; }
.st-edit-text:focus { border-color: var(--st-accent); background: var(--st-bg); }
.st-edit-bar { display: flex; gap: 8px; margin-top: 8px; }

@container (max-width: 420px) {
	.st-act { padding: 0 12px; }
	.st-act-comments .st-act-label { display: none; }
	.st-react-wrap .st-act-label { display: inline; }
}

/* ---------- 1.2.0: вкладки лент, видимость записи ---------- */
.st-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--st-soft); color: var(--st-text); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s; }
.st-tab:hover { background: #eceef2; color: var(--st-text); }
.st-tab.is-active { background: var(--st-accent); color: var(--st-accent-ink); }
.st-privacy { flex: none; max-width: 170px; height: 36px; padding: 0 28px 0 12px; border: 0; border-radius: 999px; background: var(--st-soft); color: var(--st-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.st-privacy:focus-visible { outline: 2px solid var(--st-accent); }
.st-priv { margin-left: 6px; font-size: 12px; }
.st-in-profile { max-width: none; }

/* панель инструментов: если не хватает места, «Опубликовать» уходит на вторую строку */
.st-toolbar { flex-wrap: wrap; row-gap: 8px; }
.st-tools { flex: 1 1 auto; }
.st-submit { margin-left: auto; }
@container (max-width: 720px) {
	.st-tool span { display: none; }
	.st-tool { padding: 8px; }
}
@container (max-width: 440px) {
	.st-submit { width: 100%; justify-content: space-between; }
	.st-submit .st-btn { padding: 9px 22px; }
}

/* ---------- 1.3.0: лента в профиле, выбор «куда» ---------- */
.st-profile-block { margin-top: 24px; }
.st-block-title { margin: 0 0 12px; font-size: 20px; }
.st-target { max-width: 190px; }

/* узкая форма: два списка делят строку, кнопка на всю ширину ниже */
@container (max-width: 520px) {
	.st-submit { width: 100%; flex-wrap: wrap; gap: 8px; justify-content: stretch; }
	.st-submit .st-privacy { flex: 1 1 0; min-width: 0; max-width: none; }
	.st-submit .st-btn { flex: 1 1 100%; }
	.st-counter { flex: 1 1 100%; text-align: right; }
}

/* ---------- значки Font Awesome ---------- */
.st-wrap i.fa-solid, .st-lightbox i.fa-solid, .st-toast i.fa-solid { line-height: 1; font-style: normal; }
.st-act-ico .fa-solid { font-size: 16px; }
.st-act.is-active .fa-heart, .st-react-icons .fa-heart, .st-react-picker .fa-heart { color: #e0364b; }
.st-react-icons .fa-thumbs-up, .st-react-picker .fa-thumbs-up { color: #2f7de1; }
.st-react-icons .fa-face-laugh, .st-react-icons .fa-face-surprise, .st-react-icons .fa-face-sad-tear,
.st-react-picker .fa-face-laugh, .st-react-picker .fa-face-surprise, .st-react-picker .fa-face-sad-tear { color: #f0a81c; }
.st-react-icons { display: inline-flex; gap: 3px; letter-spacing: 0; font-size: 14px; }
.st-react-picker button { font-size: 22px; }
.st-tool .fa-solid { font-size: 18px; }
.st-pin-badge { color: var(--st-accent-ink); font-size: 13px; }
.st-priv { color: var(--st-muted); }
.st-video-btn { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; }
.st-video-btn::after { display: none; }
.st-video-btn .fa-solid { margin-left: 4px; }
.st-video-play:hover .st-video-btn { color: var(--st-accent-ink); }
.st-cmp-knob { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; color: #444; font-size: 15px; }
.st-cmp-handle:focus-visible .st-cmp-knob { outline: 2px solid var(--st-accent); outline-offset: 2px; }
.st-slot-plus { font-size: 24px; }
.st-pv-x .fa-solid, .st-card-x .fa-solid { font-size: 12px; }
.st-send .fa-solid { font-size: 14px; }

/* ---------- ограниченная высота записи ---------- */
.st-body { position: relative; }
.st-post:not(.is-open) .st-body { max-height: var(--st-clamp, 480px); overflow: hidden; }
.st-full .st-post .st-body, .st-post.is-open .st-body { max-height: none; overflow: clip; }
.st-post.is-clamped .st-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--st-bg) 85%); }
.st-expand { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 6px 0 2px; padding: 8px; border: 0; border-radius: var(--st-radius-s); background: var(--st-soft); color: var(--st-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-expand:hover { background: #eceef2; }
.st-expand[hidden] { display: none !important; }
.st-expand .fa-solid { font-size: 12px; transition: transform .2s; }
.st-post.is-open .st-expand .fa-solid { transform: rotate(180deg); }
.st-post .st-ph img, .st-post .st-compare, .st-post .st-video { max-width: 100%; }

/* ---------- теги ---------- */
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.st-tags[hidden] { display: none !important; }
.st-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--st-soft); color: var(--st-text); font-size: 13px; line-height: 1.5; text-decoration: none; transition: background .15s; }
.st-tag:hover { background: var(--st-accent-soft); text-decoration: none; color: var(--st-text); }
.st-tag.is-auto { background: var(--st-accent-soft); }
.st-tag.is-active { background: var(--st-accent); color: var(--st-accent-ink); }
.st-tag .fa-solid { font-size: 11px; opacity: .75; }
.st-tag-hash { opacity: .55; font-weight: 600; }
.st-hash { color: #2f7de1; text-decoration: none; }
.st-hash:hover { text-decoration: underline; }
.st-tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.st-tagbar-ico { color: var(--st-muted); margin-right: 2px; }
.st-back { margin: 0 0 10px; }
.st-back a { color: var(--st-muted); text-decoration: none; }
.st-back a:hover { color: var(--st-text); }
.st-popover .fa-solid, .st-menu-list .fa-solid { width: 18px; text-align: center; margin-right: 6px; opacity: .7; }
@media (max-width: 520px) { .st-post:not(.is-open) .st-body { max-height: min(var(--st-clamp, 480px), 420px); } }

/* ---------- цены Биллинга ---------- */
.st-price { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--st-accent-soft); color: #7a5a00; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.st-price .fa-solid { font-size: 11px; }
.st-price.is-bonus { background: #e4f6ea; color: #1f7a44; }
.st-submit .st-price { margin: 0 4px 0 0; }
.st-menu-list .st-price { margin-left: auto; float: right; }
.st-tool { position: relative; }
.st-tool .st-price { display: inline-flex !important; position: absolute; top: -5px; right: -4px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 16px; }
.st-tool .st-price .fa-solid { display: none; }

/* ---------- реклама ---------- */
.st-ad { position: relative; margin: 0 0 14px; background: var(--st-bg); border: 1px dashed var(--st-line); border-radius: var(--st-radius); padding: 14px; overflow: hidden; }
.st-ad-label { display: inline-block; margin-bottom: 8px; padding: 1px 8px; border-radius: 999px; background: var(--st-soft); color: var(--st-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.st-ad-card { display: flex; gap: 14px; align-items: stretch; color: inherit; text-decoration: none; }
.st-ad-media { flex: none; width: 38%; max-width: 200px; border-radius: var(--st-radius-s); overflow: hidden; background: var(--st-soft); }
.st-ad-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-ad-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-content: center; }
.st-ad-title { font-size: 16px; }
.st-ad-text { font-size: 14px; color: var(--st-muted); word-break: break-word; }
.st-ad-btn { align-self: flex-start; display: inline-block; margin-top: 4px; }
.st-ad-html img, .st-ad-html iframe { max-width: 100%; }
@media (max-width: 520px) { .st-ad-card { flex-direction: column; } .st-ad-media { width: 100%; max-width: none; aspect-ratio: 16 / 9; } }

/* ---------- ответы и лайки комментариев ---------- */
.st-comment.is-reply { margin-top: 8px; }
.st-replies { margin-top: 4px; }
.st-replies-list { margin-left: 0; padding-left: 12px; border-left: 2px solid var(--st-line); }
.st-replies-list[hidden] { display: none !important; }
.st-replies-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; font-weight: 600; }
.st-replies-toggle .fa-solid { font-size: 10px; }
.st-reply-form { margin: 6px 0 4px; }
.st-reply-to { color: var(--st-muted); font-size: 13px; }
.st-reply-to .fa-solid { font-size: 11px; }
.st-clike { display: inline-flex; align-items: center; gap: 4px; }
.st-clike .fa-solid { font-size: 12px; }
.st-clike.is-active { color: #2f7de1; font-weight: 700; }
.st-clike.is-static { color: var(--st-muted); font-size: 13px; }
.st-comment-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- виды записей: событие, объявление, услуга, геометка ---------- */
.st-kind { border: 1px solid var(--st-line, #e3e6ea); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--st-soft, #f7f8fa); display: flex; flex-direction: column; gap: 6px; }
.st-kind-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.st-kind-ico { color: var(--st-accent, #2f6fed); }
.st-kind-title { font-size: 1.05em; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.st-kind-price { font-weight: 700; white-space: nowrap; color: var(--st-accent, #2f6fed); }
.st-kind-flag { font-size: .75em; padding: 2px 8px; border-radius: 999px; background: #e9ecef; color: #555; }
.st-kind-row { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.st-kind-row .fa-solid { width: 1.1em; opacity: .65; text-align: center; }
.st-kind-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.st-kind.is-closed, .st-kind.is-past { opacity: .65; }
.st-kind.is-closed .st-kind-title { text-decoration: line-through; }
.st-going-count { font-size: .9em; opacity: .8; }
.st-going.is-active { background: var(--st-accent, #2f6fed); color: #fff; }
.st-order-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.st-order-form[hidden] { display: none; }
.st-geo { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: .92em; flex-wrap: wrap; }
.st-geo .fa-solid { color: #d9534f; }
.st-geo-link { margin-left: auto; white-space: nowrap; }
.st-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-fields-2 label { display: flex; flex-direction: column; gap: 3px; font-size: .85em; opacity: .9; }
.st-check { display: flex; gap: 8px; align-items: center; font-size: .9em; }
.st-order { padding: 14px; margin-bottom: 12px; }
.st-order-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.st-order-head .st-time { margin-left: auto; font-size: .85em; opacity: .7; }
.st-order .st-btn.is-active { background: var(--st-accent, #2f6fed); color: #fff; }
@media (max-width: 520px) { .st-fields-2 { grid-template-columns: 1fr; } }

/* ---------- правка записи ---------- */
.st-edit { display: flex; flex-direction: column; gap: 10px; }
.st-edit-group { border: 1px solid var(--st-line, #e3e6ea); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.st-edit-cap { font-size: .85em; opacity: .8; display: block; }
.st-edit-field { display: flex; flex-direction: column; gap: 3px; font-size: .85em; opacity: .95; }
.st-edit-row { display: flex; gap: 10px; flex-wrap: wrap; }
.st-edit-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.st-edit-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; background-size: cover; background-position: center; }
.st-edit-thumb .st-icon-btn { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.6); color: #fff; width: 22px; height: 22px; border-radius: 50%; }
.st-edit-thumb.is-removed { opacity: .3; outline: 2px dashed #d9534f; }
.st-edit-bar { margin-top: 0; }
.st-dt { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.st-dt input[type=date] { flex: 1 1 auto; min-width: 0; }
.st-dt select { width: auto; flex: 0 0 auto; }

/* ---------- несколько видео, аудио, пар «до / после» ---------- */
.st-videos, .st-compares, .st-audios { display: grid; gap: 10px; margin-top: 10px; }
.st-videos .st-video, .st-compares .st-compare { margin-top: 0; }
.st-audio { padding: 10px 12px; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); background: var(--st-soft); }
.st-audio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.st-audio-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--st-accent); color: var(--st-accent-ink); font-size: 14px; }
.st-audio-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.st-audio-size { flex: 0 0 auto; font-size: 12px; color: var(--st-muted); }
.st-audio audio { display: block; width: 100%; height: 40px; }

/* список вложений в форме и при правке */
.st-ml-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.st-ml-row { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--st-line); border-radius: var(--st-radius-s); background: #fff; transition: box-shadow .15s, opacity .15s; }
.st-ml-row.is-dragging { opacity: .45; }
.st-ml-row.is-over { box-shadow: 0 0 0 2px var(--st-accent); }
.st-ml-grip { flex: 0 0 auto; width: 18px; text-align: center; color: var(--st-muted); cursor: grab; font-size: 14px; padding: 6px 0; touch-action: none; }
.st-ml-grip:active { cursor: grabbing; }
.st-ml-body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.st-ml-thumb { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 80px; height: 45px; border-radius: 8px; overflow: hidden; background: #1b1d22; color: #fff; font-size: 14px; }
.st-ml-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-ml-thumb .fa-solid { position: relative; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.st-ml-thumb-audio { width: 45px; background: var(--st-accent); color: var(--st-accent-ink); }
.st-ml-text { position: relative; flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.st-ml-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ml-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--st-muted); }
.st-ml-text audio { display: block; width: 100%; height: 36px; margin-top: 4px; }
.st-ml-bar { display: block; height: 4px; width: 0; margin-top: 4px; border-radius: 2px; background: var(--st-accent); transition: width .15s; }
.st-ml-ctl { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0; }
.st-ml-ctl .st-icon-btn { width: 28px; height: 24px; border-radius: 8px; font-size: 12px; }
.st-ml-ctl .st-icon-btn[disabled] { opacity: .25; cursor: default; }
.st-ml-ctl .st-icon-btn.is-danger:hover { color: var(--st-danger); }
.st-ml-add { display: flex; gap: 8px; align-items: center; }
.st-ml-url { flex: 1; min-width: 0; border: 1px solid var(--st-line); border-radius: 999px; padding: 9px 14px; font: inherit; background: #fff; }
.st-ml-hint { margin-top: 6px; }
.st-ml-compare .st-ml-body { display: block; }
.st-ml-compare .st-compare-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-ml-compare .st-slot-pick:disabled { cursor: default; }
.st-ml-compare .st-slot-pick:disabled:hover { border-color: transparent; }
.st-edit-media { margin-top: 10px; }
@media (max-width: 480px) {
	.st-ml-thumb { width: 64px; height: 36px; }
	.st-ml-add .st-btn { padding: 9px 12px; }
}


/* 2.4.1: панель кнопок не выходит за рамку формы — скрытое прокручивается по горизонтали */
.st-toolbar { min-width: 0; flex-wrap: wrap; }
.st-tools { flex: 1 1 200px; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 2px; }
.st-tools::-webkit-scrollbar { height: 4px; }
.st-tools::-webkit-scrollbar-thumb { background: var(--st-line); border-radius: 4px; }
.st-tool { flex: none; }

/* 2.5.0: теги одним компактным меню */
.st-tagmenu { position: relative; margin: 0 0 12px; display: inline-block; max-width: 100%; }
.st-tagmenu-btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--st-soft); color: var(--st-text); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; max-width: 100%; }
.st-tagmenu-btn::-webkit-details-marker { display: none; }
.st-tagmenu-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tagmenu-btn.is-active { background: var(--st-accent); color: var(--st-accent-ink); }
.st-tagmenu-btn .st-tagbar-ico { margin: 0; }
.st-tagmenu-arrow { font-size: 11px; transition: transform .15s; }
.st-tagmenu[open] .st-tagmenu-arrow { transform: rotate(180deg); }
.st-tagmenu-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; max-width: min(92vw, 360px); max-height: 50vh; overflow-y: auto; background: var(--st-bg); border-radius: var(--st-radius-s); box-shadow: 0 8px 28px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.06); padding: 6px; }
.st-tagmenu-item { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; color: var(--st-text); font-size: 14px; text-decoration: none; }
.st-tagmenu-item:hover { background: var(--st-soft); text-decoration: none; color: var(--st-text); }
.st-tagmenu-item.is-active { background: var(--st-accent-soft); font-weight: 600; }

/* 2.6.0: запись аудио, «взять из профиля» */
.st-rec.is-rec { background: #fde8e8; color: #b42318; }
.st-rec.is-rec i { animation: st-rec-blink 1s steps(2, start) infinite; }
@keyframes st-rec-blink { to { visibility: hidden; } }
.st-muted { color: var(--st-muted); }

/* 2.7.0: отметки людей, меню тегов в одной строке с вкладками */
.st-people { margin: 6px 0 2px; font-size: 14px; color: var(--st-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.st-people[hidden] { display: none; }
.st-person { color: var(--st-text); font-weight: 600; text-decoration: none; }
.st-person:hover { text-decoration: underline; }
.st-untag { margin-left: 8px; }
.st-pp-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-pp-chips:empty { display: none; }
.st-pp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--st-accent-soft); font-size: 14px; font-weight: 600; }
.st-pp-chip button { border: 0; background: transparent; cursor: pointer; padding: 2px 6px; color: var(--st-muted); }
.st-pp-find { position: relative; }
.st-pp-res { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--st-bg); border-radius: var(--st-radius-s); box-shadow: 0 8px 28px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.06); padding: 6px; max-height: 280px; overflow-y: auto; }
.st-pp-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--st-text); cursor: pointer; }
.st-pp-item:hover { background: var(--st-soft); }
.st-pp-cap, .st-pp-none { padding: 6px 12px; font-size: 13px; color: var(--st-muted); }
.st-toprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.st-toprow .st-tabs { margin: 0; flex: 1 1 auto; min-width: 0; }
.st-toprow .st-tagmenu { margin: 0; display: block; flex: none; }
.st-toprow .st-tagmenu-list { left: auto; right: 0; }

/* 2.8.0: виджет-кнопка и окно с формой */
.st-cw { max-width: none; margin: 0; }
.st-cw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-cw.is-full .st-cw-row .st-btn { flex: 1 1 100%; justify-content: center; }
.st-cw-view[hidden] { display: none; }
.st-cw-view.is-new { animation: st-pop .25s ease both; }
.st-cw-modal { position: fixed; inset: 0; z-index: 99990; background: rgba(16,24,40,.55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; }
.st-cw-modal[hidden] { display: none; }
.st-cw-box { width: 100%; max-width: 640px; margin: 0; background: var(--st-bg); border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.st-cw-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; font-size: 17px; }
.st-cw-box .st-composer { box-shadow: none; border: 0; padding: 0; margin: 0; }
html.st-cw-lock { overflow: hidden; }
@media (max-width: 560px) { .st-cw-modal { padding: 0; } .st-cw-box { max-width: none; min-height: 100%; border-radius: 0; } }
.st-cw-ico { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; }
.st-cw-open { display: inline-flex; align-items: center; gap: 6px; }

/* 2.9.0: значки-ссылки «добавить» под формой и кнопка-иконка */
.st-addlinks { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; margin: 8px 0 0; padding: 0; }
.st-addlink { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--st-soft); color: var(--st-text); text-decoration: none; transition: background .15s, transform .1s; }
.st-addlink:hover { background: var(--st-accent); color: var(--st-accent-ink); }
.st-addlink:active { transform: scale(.94); }
.st-cw.is-icon .st-btn { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.st-cw.is-icon .st-cw-ico { width: 24px; height: 24px; }
.st-cw-open[hidden] { display: none; }
.st-cw.is-icon .st-btn[hidden] { display: none; }

/* 2.9.1: всплывающее меню записи не должно прятаться под соседней записью (у каждой записи свой слой из-за контейнерных запросов) */
.st-post:focus-within,
.st-post:has(.st-menu-list:not([hidden])),
.st-post:has(.st-popover:not([hidden])),
.st-post:has(.st-react-picker) { z-index: 2; }
.st-feed { display: flow-root; }

.st-pm .st-cw-box { padding-bottom: 6px; }
.st-pm .st-feed { margin: 0; }
.st-pm .st-post { margin-bottom: 8px; box-shadow: none; }
.st-pm-load { text-align: center; color: var(--st-muted); padding: 40px 0; }
.st-addlinks-intro { flex: 1 1 100%; margin: 0; color: var(--st-muted); font-size: 14px; }
.st-addlink.has-title { width: auto; height: 38px; border-radius: 999px; padding: 0 14px; gap: 8px; font-size: 14px; font-weight: 600; }
.st-addlink svg { width: 18px; height: 18px; }

/* 2.10.1: блоки с фото и «до / после» обрезают содержимое жёстко (на телефонах размытые превью могли вылезать за свою рамку, когда запись открыта целиком);
   размытое превью после загрузки настоящей картинки убирается, чтобы не держать лишние слои */
.st-photos, .st-ph, .st-compare, .st-card-media, .st-video { contain: paint; isolation: isolate; }
.st-ph .st-lqip, .st-cmp-img .st-lqip, .st-card-media .st-lqip { transition: visibility 0s .6s; }
.st-ph:has(img.is-loaded) .st-lqip, .st-cmp-img:has(img.is-loaded) .st-lqip, .st-card-media:has(img.is-loaded) .st-lqip { visibility: hidden; }

/* 2.11.0: форма — поле с аватаром, кнопки спускаются при нажатии на поле, каждая панель открывается в своём окне */
@keyframes st-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.st-composer .st-tool span { display: inline !important; }
.st-composer .st-tool { padding: 8px 12px; }
.st-pnl-modal .st-panel { margin: 0; border: 0; box-shadow: none; background: transparent; padding: 0; }
.st-pnl-foot { display: flex; justify-content: flex-end; padding: 10px 0 2px; }
.st-panel.is-parked { display: none; }

/* 2.11.0: отступ снизу под закреплённую панель сайта */
.st-wrap:has(> [data-st-feed]), .st-wrap:has(> .st-more-wrap) { padding-bottom: var(--st-bottom, 96px); }
.st-cw-modal { padding-bottom: max(4vh, var(--st-bottom, 96px)); }
@media (max-width: 560px) { .st-cw-modal { padding-bottom: var(--st-bottom, 96px); } }
.st-toast { bottom: calc(var(--st-bottom, 96px) - 12px); }

/* 2.12.0: отметка на кнопке, что в панели уже есть добавленное */
.st-tool.is-filled { background: var(--st-accent-soft); color: #7a5a00; }
.st-tool .st-tool-n { position: absolute; top: -5px; left: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--st-accent); color: var(--st-accent-ink); font: 700 11px/18px sans-serif; font-style: normal; text-align: center; }
/* вкладки видов вложений в записи */
.st-ptabs { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.st-ptabs::-webkit-scrollbar { display: none; }
.st-ptab { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--st-soft); color: var(--st-muted); padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-ptab em { font-style: normal; font-size: 12px; opacity: .75; }
.st-ptab.is-active { background: var(--st-accent); color: var(--st-accent-ink); }
.st-ptabs + .st-photos, .st-ptabs + .st-compares, .st-ptabs + .st-videos, .st-ptabs + .st-audios { margin-top: 8px; }

/* загруженные видеофайлы */
.st-video.st-video-local { aspect-ratio: auto; contain: none; position: relative; border-radius: var(--st-radius, 12px); overflow: hidden; background: #000; }
.st-video-local video { display: block; width: 100%; height: auto; max-height: min(75vh, 640px); object-fit: contain; background: #000; }
.st-video-local .st-video-wait { margin: 0; padding: 28px 16px; text-align: center; color: #fff; font-size: 14px; background: rgba(0,0,0,.72); }
.st-video-local .st-video-wait.is-failed { color: #ffb4b4; }

/* страница и окно записи: никакого ограничения высоты, в том числе на телефоне (правило для узких экранов выше иначе перебивало бы) */
.st-full .st-post:not(.is-open) .st-body, .st-full .st-post .st-body { max-height: none; overflow: clip; }
.st-full .st-post.is-clamped .st-body::after { display: none; }

/* правка записи: окно как у формы добавления */
.st-edit-modal .st-edit { display: flex; flex-direction: column; gap: 10px; }
.st-edit-modal .st-edit-text { min-height: 96px; }
.st-edit-modal .st-edit-group { margin: 0; }
.st-edit-modal .st-edit-group[hidden] { display: none; }
.st-edit-modal .st-tool.is-open { background: var(--st-accent-soft); color: #7a5a00; }
.st-edit-modal .st-toolbar { flex-wrap: wrap; }
.st-edit-modal .st-submit { margin-left: auto; }

.st-tagmenu-cap { display: block; padding: 8px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--st-muted); }
.st-tagmenu-item .fa-solid { width: 16px; margin-right: 6px; text-align: center; }

.st-tg-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--st-muted); cursor: pointer; white-space: nowrap; }
.st-tg-toggle input { margin: 0; }
@media (max-width: 480px) { .st-tg-toggle span { display: none; } }

/* обложка записи: первое фото сверху, над текстом */
.st-cover { position: relative; display: block; margin: 10px 0 0; border-radius: var(--st-radius-s); overflow: hidden; background: var(--st-soft); max-height: 560px; width: 100%; }
.st-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s; }
.st-cover img.is-loaded { opacity: 1; }
.st-cover img.is-error { display: none; }
.st-cover .st-lqip { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(14px); }
.st-cover:has(img.is-loaded) .st-lqip { visibility: hidden; }
.st-cover + .st-text { margin-top: 10px; }
.st-body > .st-cover:first-child { margin-top: 8px; }
/* порядок фото в форме и при правке */
.st-pv-cover, .st-thumb-cover { position: absolute; left: 4px; bottom: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; font-size: 12px; line-height: 24px; padding: 0; }
.st-thumb-cover { top: auto; right: auto; width: 22px; height: 22px; line-height: 22px; background: rgba(0,0,0,.6); }
.st-pv.is-cover .st-pv-cover, .st-edit-thumb.is-cover .st-thumb-cover { background: var(--st-accent); color: var(--st-accent-ink); }
.st-pv.is-cover, .st-edit-thumb.is-cover { outline: 2px solid var(--st-accent); }
.st-pv[draggable=true], .st-edit-thumb[draggable=true] { cursor: grab; }
.st-pv.is-dragging, .st-edit-thumb.is-dragging { opacity: .45; }
.st-edit-thumb { width: 84px; height: 84px; }

/* «До / После» на весь экран */
.st-cmp-full { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 15px; padding: 0; }
.st-cmp-full:hover { background: rgba(0,0,0,.75); }
.st-cmp-lb .st-compare.st-cmp-big { margin: 0; border-radius: 0; background: #000; width: min(100vw, calc(100vh * var(--r, 1.33))); max-height: 100vh; aspect-ratio: var(--r, 1.33); }
.st-cmp-lb .st-cmp-img img { object-fit: contain; opacity: 1; }
.st-cmp-lb .st-cmp-tag { top: 14px; }
.st-cmp-lb .st-cmp-fs { top: 14px; right: 66px; }
.st-cmp-modes { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); }
.st-cmp-modes button { border: 0; background: transparent; color: #fff; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.st-cmp-modes button:hover { background: rgba(255,255,255,.2); }


/* ===== 2.17.0: меню кнопок формы ===== */
.st-popover .st-tool, .st-more-pop .st-tool { display: flex; width: 100%; justify-content: flex-start; border-radius: 8px; padding: 9px 12px; color: var(--st-text); font-weight: 500; }
.st-popover .st-tool:hover { background: var(--st-soft); color: var(--st-text); }
.st-popover .st-tool.is-filled { background: var(--st-accent-soft); }
.st-more-pop { min-width: 210px; }
.st-popover .st-tool .st-tool-n { margin-left: auto; }
.st-tool-more .fa-plus, .st-tool-more svg { transition: transform .15s; }

/* шапка записи: шаблоны сайта часто красят все <header> — в записи шапка без фона */
.st-wrap .st-head, .st-mini .st-head { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 0; padding-right: 0; min-height: 0; position: static; color: inherit; }
.st-wrap .st-head .st-author { color: var(--st-text) !important; }
.st-wrap .st-head .st-time { color: var(--st-muted) !important; }

/* ===== 2.17.0: тёмная тема сайта ===== */

/* ===== 2.17.0: прямые углы (настройка компонента) ===== */
html.st-square .st-wrap, html.st-square .st-mini, html.st-square .st-lightbox, html.st-square .st-popover { --st-radius: 0; --st-radius-s: 0; }
html.st-square .st-wrap :is(.st-post, .st-composer, .st-privacy, .st-slot-pick, .st-tag, .st-react-sum, .st-ptab, .st-comment-bubble, .st-comment-form textarea, .st-pv, .st-video-input input, .st-tagmenu-btn, .st-addlink, .st-ad-label, .st-btn, .st-tool, .st-tab, .st-act, .st-input, .st-slot-label, .st-ml-row, .st-ml-url, .st-link-input input, .st-poll, .st-poll-opt, .st-poll-res, .st-kind, .st-kind-flag, .st-edit-group, .st-price, .st-addlink.has-title, .st-cw-box, .st-popover, .st-popover button, .st-menu-list, .st-menu-list a, .st-menu-list button, .st-comments, .st-card, .st-video, .st-compare, .st-photo, .st-photos, .st-skeleton, .st-react-picker, .st-tagmenu-list, .st-pp-res, .st-going, .st-cmp-tag, .st-tool-n),
html.st-square .st-cw-box, html.st-square .st-popover, html.st-square .st-popover button, html.st-square .st-popover .st-tool { border-radius: 0 !important; }


/* кнопки панели и меню «Ещё» стоят ровно в одну линию */
.st-composer .st-tools { align-items: center; }
.st-composer .st-tool-wrap { display: flex; }
/* на телефоне кнопки панели — значок над подписью, все в одну строку без прокрутки */
@container (max-width: 520px) {
	.st-composer .st-tools { flex: 1 1 100%; justify-content: space-between; gap: 2px; }
	.st-composer .st-tools > .st-tool, .st-composer .st-tools > .st-tool-wrap { flex: 1 1 0; min-width: 0; }
	.st-composer .st-tools > .st-tool-wrap > .st-tool { flex: 1 1 auto; }
	.st-composer .st-tools .st-tool:not(.st-popover .st-tool) { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 2px; font-size: 11px; line-height: 1.1; min-width: 0; }
	.st-composer .st-tools .st-tool:not(.st-popover .st-tool) span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.st-composer .st-tools .st-tool:not(.st-popover .st-tool) .fa-solid { font-size: 18px; }
}

/* ===== тёмная тема сайта (2.18: узнаётся по разным признакам темы) ===== */
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-wrap, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-mini, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-lightbox, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-toast, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-cw-box { --st-bg: #23272e; --st-soft: #2c3139; --st-line: #3a404a; --st-text: #e6e8eb; --st-muted: #9aa2ad; --st-accent-soft: rgba(253,193,10,.16); --st-shadow: 0 1px 2px rgba(0,0,0,.3); color: var(--st-text); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-post, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-composer, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-card, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-poll, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-kind, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-edit-group, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-cw-box { background-color: var(--st-bg) !important; color: var(--st-text); border-color: var(--st-line); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tab, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-act, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-react-sum, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tag, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-ptab, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-btn-soft, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-privacy, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-comments, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-comment-bubble, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-expand, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tagmenu-btn, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-addlink { background-color: var(--st-soft) !important; color: var(--st-text) !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tab.is-active, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-ptab.is-active { background-color: var(--st-accent) !important; color: var(--st-accent-ink) !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-btn-soft:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-act:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tab:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-expand:hover { background-color: #353b45 !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tool:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tool.is-filled, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-act.is-active, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-edit-modal .st-tool.is-open { color: #ffd43b; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-text, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-comment, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-poll-q, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-card-title { color: var(--st-text); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-text a, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-hash, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-clike.is-active { color: #74b3ff; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-input, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-slot-label, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-ml-row, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-ml-url, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-link-input input, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-poll-set select, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-video-input input, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-comment-form textarea { background-color: #1c2026 !important; color: var(--st-text) !important; border-color: var(--st-line) !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-slot-pick { background-color: #1c2026; color: var(--st-muted); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-input::placeholder, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-composer-text::placeholder, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-ml-url::placeholder, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-comment-form textarea::placeholder { color: #7c848f; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-composer-text { color: var(--st-text) !important; background: transparent !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-card:hover { border-color: #4a515c; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-skeleton { background: linear-gradient(90deg, var(--st-soft) 25%, #353b45 50%, var(--st-soft) 75%); background-size: 200% 100%; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-post.is-pinned { border-color: rgba(253,193,10,.45); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-post.is-clamped .st-body::after { background: linear-gradient(to bottom, rgba(35,39,46,0), var(--st-bg)); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-kind-flag { background: #353b45; color: #c9ced6; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-price.is-bonus { background: rgba(47,158,90,.2); color: #7fd6a1; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-rec.is-rec { background: rgba(211,58,58,.2); color: #ff9b9b; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-menu-list, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-react-picker, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-pp-res, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tagmenu-list { background: var(--st-bg, #23272e) !important; box-shadow: 0 8px 28px rgba(0,0,0,.5), 0 0 0 1px #3a404a; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover button, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover a, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-menu-list button, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-menu-list a, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-tagmenu-list a { color: var(--st-text, #e6e8eb) !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover button:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-popover a:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-menu-list button:hover, :is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-menu-list a:hover { background: #2c3139; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-cw-modal { background: rgba(0,0,0,.7); }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-cw-box { box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px #3a404a; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-toast { background: #e6e8eb; color: #1f2328; }

/* ===== 2.18: группы кнопок формы ===== */
.st-tool-group .st-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; margin-left: 2px; }
.st-group-pop { min-width: 230px; max-width: min(92vw, 320px); }
.st-pop-title { display: block; padding: 6px 12px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--st-muted); }
.st-popover .st-tool-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; color: var(--st-text); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 8px; }
.st-popover .st-tool-link:hover { background: var(--st-soft); text-decoration: none; }
.st-popover .st-tool .fa-solid, .st-popover .st-tool-link .fa-solid { width: 20px; text-align: center; color: var(--st-accent); font-size: 16px; }
.st-popover .st-tool span, .st-popover .st-tool-link span { display: inline !important; }
@container (max-width: 520px) {
	.st-composer .st-tools .st-tool-group .st-caret { display: none; }
}

/* ===== 2.18.2: защита от стилей шаблона сайта, которые перекрашивали записи ===== */
html body .st-wrap .st-post, html body .st-wrap .st-composer { background: var(--st-bg) !important; color: var(--st-text) !important; border-color: var(--st-line) !important; }
html body .st-wrap .st-post > header.st-head, html body .st-wrap header.st-head, html body .st-mini header.st-head { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; color: var(--st-text) !important; position: static !important; }
html body .st-wrap .st-head .st-author { color: var(--st-text) !important; }
html body .st-wrap .st-head .st-time, html body .st-wrap .st-head .st-edited, html body .st-wrap .st-head .st-priv { color: var(--st-muted) !important; }
html body .st-wrap .st-head .st-ava { width: 44px !important; height: 44px !important; flex: 0 0 44px !important; border-radius: 50% !important; overflow: hidden; }
html body .st-wrap .st-head .st-ava img { width: 100% !important; height: 100% !important; object-fit: cover; }
html body .st-wrap .st-tab:not(.is-active), html body .st-wrap .st-act, html body .st-wrap .st-react-sum, html body .st-wrap .st-expand, html body .st-wrap .st-tagmenu-btn { background-color: var(--st-soft) !important; color: var(--st-text) !important; border-color: var(--st-line) !important; }
html body .st-wrap .st-tab.is-active { background-color: var(--st-accent) !important; color: var(--st-accent-ink) !important; }
html body .st-wrap .st-text, html body .st-wrap .st-body { color: var(--st-text) !important; }
:is(html, body):is([data-bs-theme="dark"], [data-theme="dark"], [data-color-scheme="dark"], [data-mode="dark"], .dark, .dark-theme, .theme-dark, .is-dark, .dark-mode, .night-mode, .darkmode, .st-dark) .st-wrap .st-post.is-clamped .st-body::after { background: linear-gradient(to bottom, rgba(35,39,46,0), #23272e) !important; }
html body .st-wrap header.st-head::after, html body .st-mini header.st-head::after { display: none !important; content: none !important; }
