/* Модуль «Сообщество»: «созвездие клуба» и мини-виджеты особенностей.
   Разметка — resources/views/site/modules/community.blade.php, сценарий — community.js */
.cm, .cmf {
    --cm-ease: cubic-bezier(.2, .7, .2, 1);
    --c-nick: #2f5bd8; --c-grp: #1f9a5f; --c-ray: #8a63e8; --c-live: #e0457b; --c-note: #d38a12; --c-mod: #7c5cff;
}
.cm-head { max-width: 760px; }
.cm-head .lead { margin-top: 18px; }

/* Монограмма */
.cm-mono {
    width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
    font-size: 11px; font-weight: 650; letter-spacing: .02em; color: hsl(var(--h, 220) 45% 28%);
    background: linear-gradient(135deg, hsl(var(--h, 220) 85% 90%), hsl(calc(var(--h, 220) + 40) 75% 80%));
}
.cm-mono-club { background: var(--ink); color: #fff; }

/* ── Сцена ── */
.cm-stage {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; margin-top: 44px;
    border: 1px solid var(--line-card); border-radius: 20px; overflow: hidden; background: #fff;
    box-shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 30px 80px rgba(20, 20, 19, .08);
}
.cm-sky {
    position: relative; aspect-ratio: 1000 / 640; container-type: inline-size; overflow: hidden;
    background:
        radial-gradient(40% 50% at 18% 70%, rgba(185, 230, 207, .45), transparent 70%),
        radial-gradient(35% 45% at 80% 25%, rgba(255, 200, 222, .45), transparent 70%),
        radial-gradient(40% 45% at 55% 50%, rgba(205, 214, 255, .5), transparent 70%),
        radial-gradient(30% 40% at 82% 85%, rgba(255, 226, 180, .45), transparent 70%),
        #fcfcfb;
}
.cm-sky::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(20, 20, 19, .13) 1px, transparent 1.4px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.cm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cm-count { position: absolute; left: 16px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line-card); font-size: 12.5px; color: var(--ink-2); backdrop-filter: blur(6px); }
.cm-count i { width: 7px; height: 7px; border-radius: 50%; background: #22a35a; animation: cm-pulse 1.6s infinite; }
.cm-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes cm-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .5); } 70% { box-shadow: 0 0 0 7px rgba(34, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 163, 90, 0); } }

/* Рёбра */
.cm-e { stroke: var(--k, #c9c9c4); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 0; transition: opacity .5s, stroke .4s; }
.cm-e.is-on { opacity: .55; }
.cm-e-base { opacity: .5; stroke: #d8d8d3; stroke-dasharray: 3 6; }
.cm-e[data-kind='nick'] { --k: var(--c-nick); }
.cm-e[data-kind='grp'], .cm-e[data-kind='invite'] { --k: var(--c-grp); }
.cm-e[data-kind='invite'] { stroke-dasharray: 2 7; }
.cm-e[data-kind='ray'] { --k: var(--c-ray); stroke-width: 1.3; }
.cm-e[data-kind='ray'].is-on { opacity: .28; }
.cm-e[data-kind='live'] { --k: var(--c-live); }
.cm-e[data-kind='note'] { --k: var(--c-note); }
.cm-e[data-kind='mod'] { --k: var(--c-mod); }
.cm-e.is-cur { opacity: 1; stroke-width: 2.6; stroke-dasharray: 10 8; animation: cm-flow 1s linear infinite; }
.cm-e[data-kind='ray'].is-cur { opacity: .8; stroke-width: 1.8; animation-direction: normal; }
.cm-e[data-kind='mod'].is-cut { opacity: .7 !important; stroke: #b9b9b4; stroke-dasharray: 3 6; animation: none; }
@keyframes cm-flow { to { stroke-dashoffset: -36; } }
.cm-hull { opacity: 0; transition: opacity .8s; transform-origin: 178px 430px; }
.cm-hull.is-on { opacity: 1; }
.cm-hull.is-cur { animation: cm-breathe 2.4s ease-in-out infinite; }
@keyframes cm-breathe { 50% { transform: scale(1.04); } }
.cm-hull-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--c-grp); border: 1px solid #c4e8d4; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .5s, transform .5s var(--cm-ease); }
.cm-hull-label.is-on { opacity: 1; }

/* Узлы */
.cm-node { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cm-node > i {
    font-style: normal; width: max(30px, 4.8cqw); height: max(30px, 4.8cqw); border-radius: 50%; display: grid; place-items: center;
    font-size: max(10px, 1.35cqw); font-weight: 650; letter-spacing: .02em; transition: transform .4s var(--cm-ease), box-shadow .4s, filter .4s, opacity .4s;
}
.cm-node small { font-size: max(10px, 1.15cqw); font-weight: 600; color: var(--ink-2); white-space: nowrap; background: rgba(255, 255, 255, .8); padding: 0 6px; border-radius: 6px; }
.cm-p > i {
    color: hsl(var(--h) 45% 28%); background: linear-gradient(135deg, hsl(var(--h) 85% 90%), hsl(calc(var(--h) + 40) 75% 79%));
    box-shadow: 0 0 0 3px #fff, 0 6px 16px hsl(var(--h) 50% 50% / .22);
}
.cm-p.is-dim > i { filter: saturate(.25); opacity: .55; }
.cm-p.is-hot > i { transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 0 0 7px hsl(var(--h) 80% 70% / .45), 0 8px 22px hsl(var(--h) 50% 50% / .3); }
.cm-p.is-ping > i { animation: cm-ping .6s var(--cm-ease); }
@keyframes cm-ping { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.cm-club > i { width: max(46px, 7.4cqw); height: max(46px, 7.4cqw); border-radius: 30%; background: var(--ink); color: #fff; box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(20, 20, 19, .25); }
.cm-club.is-hot > i { animation: cm-beacon 1.4s ease-out infinite; }
@keyframes cm-beacon { 0% { box-shadow: 0 0 0 4px #fff, 0 0 0 4px rgba(138, 99, 232, .5); } 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 30px rgba(138, 99, 232, 0); } }
.cm-trainer > i { width: max(40px, 6.2cqw); height: max(40px, 6.2cqw); flex-direction: column; gap: 0; background: linear-gradient(135deg, #ffd6e4, #ffb38a); color: #8c2a4c; box-shadow: 0 0 0 3px #fff, 0 8px 22px rgba(224, 69, 123, .25); }
.cm-trainer > i b { font-size: max(9px, 1.15cqw); line-height: 1; }
.cm-trainer.is-hot > i { animation: cm-live 1.3s ease-out infinite; }
@keyframes cm-live { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(224, 69, 123, .55); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 26px rgba(224, 69, 123, 0); } }
.cm-locker > i { width: max(36px, 5.4cqw); height: max(36px, 5.4cqw); border-radius: 28%; background: linear-gradient(135deg, #fff1cc, #ffd28a); color: #8a5a0e; box-shadow: 0 0 0 3px #fff, 0 8px 20px rgba(211, 138, 18, .25); }
.cm-locker.is-hot > i { transform: rotate(-8deg) scale(1.12); }

/* Пост на модерации */
.cm-post {
    position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid #d9cffd; color: var(--ink); font-size: max(10px, 1.2cqw); font-weight: 600; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .18); opacity: 0; transition: opacity .5s, transform .8s var(--cm-ease), filter .6s, background .5s, border-color .5s;
}
.cm-post .i { color: var(--c-mod); }
.cm-post em { display: none; font-style: normal; color: var(--muted); }
.cm-post.is-on { opacity: 1; }
.cm-post.is-scan::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: 0; width: 34%; border-radius: 6px; background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .55), transparent); animation: cm-scan 1s ease-in-out infinite alternate; }
@keyframes cm-scan { from { left: -10%; } to { left: 76%; } }
.cm-post.is-blocked { filter: grayscale(1); background: #f3f3f1; border-color: var(--line-strong); box-shadow: none; transform: translate(-50%, -50%) translate(-14px, -4px) rotate(-4deg); opacity: .75; }
.cm-post.is-blocked span { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.cm-post.is-blocked em { display: inline-flex; }

/* ── Правая колонка: карточка события ── */
.cm-side { position: relative; border-left: 1px solid var(--line); background: #fafaf9; padding: 22px; min-width: 0; }
.cm-card { position: absolute; inset: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s, transform .5s var(--cm-ease), visibility 0s .5s; font-size: 13px; }
.cm-card.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .1s, transform .5s .1s var(--cm-ease); }
.cm-cap { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cm-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1.5px solid var(--c-nick); box-shadow: 0 0 0 4px rgba(47, 91, 216, .1); font-size: 14px; color: var(--muted); }
.cm-search span { color: var(--ink); font-weight: 500; white-space: pre; }
.cm-caret { width: 1.5px; height: 18px; margin-left: -6px; background: var(--c-nick); animation: cm-caret 1s steps(1) infinite; }
@keyframes cm-caret { 50% { opacity: 0; } }
.cm-hit, .cm-grp, .cm-req, .cm-joined { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-card); }
.cm-hit > div, .cm-grp > div { min-width: 0; flex: 1; }
.cm-hit b, .cm-grp b { display: block; font-size: 14px; font-weight: 600; }
.cm-hit span:not(.cm-mono) { display: block; color: var(--c-nick); }
.cm-grp span { display: block; color: var(--muted); }
.cm-hit em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); background: var(--chip); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.cm-hit, .cm-chat p, .cm-req, .cm-joined, .cm-chpost, .cm-paper, .cm-fpost, .cm-verdict { transition: opacity .4s, transform .5s var(--cm-ease); }
.is-hide { opacity: 0 !important; transform: translateY(10px) scale(.97) !important; }
.cm-chat { display: flex; flex-direction: column; gap: 6px; }
.cm-chat p { max-width: 88%; padding: 8px 11px; font-size: 13px; line-height: 1.4; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--line-card); }
.cm-chat p[data-m='me'] { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--c-nick); border-color: var(--c-nick); color: #fff; }
.cm-grp-cover { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #1b6e46; background: linear-gradient(135deg, #c9f0dc, #9fdcbf 60%, #e3f6c2); }
.cm-grp-cover.cm-dark { background: var(--ink); color: #fff; }
.cm-req-t { flex: 1; min-width: 0; font-weight: 500; }
.cm-req-btn { height: 30px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 500; transition: transform .12s, opacity .3s; }
.cm-req-btn.is-press { transform: scale(.9); }
.cm-req-ok { display: none; color: var(--ok); }
.cm-req.is-done { background: var(--ok-soft); border-color: #c4e3cf; }
.cm-req.is-done .cm-req-btn { display: none; }
.cm-req.is-done .cm-req-ok { display: grid; }
.cm-invite { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; border: 1px dashed #9fd8bc; color: var(--c-grp); font-weight: 600; background: #f2fbf6; }
.cm-joined { color: var(--ink-2); opacity: 0; transform: translateY(8px); }
.cm-joined.is-on { opacity: 1; transform: none; }
.cm-chpost { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-card); }
.cm-chpost p { font-size: 14px; line-height: 1.45; }
.cm-chpost-f { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 12px; }
.cm-chpost-f > span { display: inline-flex; align-items: center; gap: 5px; }
.cm-chpost-f b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-reacts { gap: 6px !important; }
.cm-reacts i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #fdeef3; color: var(--c-live); }
.cm-reacts i + i { background: #fff3e2; color: #c06a0a; }
.cm-note-s { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cm-note-s.is-ok { color: var(--ok); }
[data-cm-replied] { opacity: 0; transition: opacity .4s; }
[data-cm-replied].is-on { opacity: 1; }

.cm-live { position: relative; border-radius: 14px; overflow: hidden; background: #1c1a24; padding: 8px; }
.cm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cm-tile {
    position: relative; aspect-ratio: 4 / 3; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h) 80% 86%), hsl(calc(var(--h) + 50) 70% 72%)); color: hsl(var(--h) 45% 25%);
    transition: opacity .4s, transform .5s var(--cm-ease);
}
.cm-tile b { font-size: 18px; font-weight: 650; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.cm-tile small { position: absolute; left: 7px; bottom: 6px; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .7); }
.cm-tile:not(.is-host) { opacity: .0; transform: scale(.8); }
.cm-tile.is-on { opacity: 1; transform: none; }
.cm-tile.is-host::after { content: ''; position: absolute; inset: 0; border: 2px solid #fff; border-radius: 10px; opacity: .8; }
.cm-live-b { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: #e0245e; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cm-live-b i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: cm-blink 1s steps(1) infinite; }
@keyframes cm-blink { 50% { opacity: .2; } }
.cm-live-v { position: absolute; z-index: 2; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; }
.cm-live-v b { font-variant-numeric: tabular-nums; }
.cm-floats { position: absolute; right: 12px; bottom: 8px; width: 40px; height: 70%; pointer-events: none; }
.cm-floats span { position: absolute; bottom: 0; right: 0; color: #ff5b8f; animation: cm-float 2.2s ease-out forwards; }
.cm-floats span[data-c='1'] { color: #ffb020; }
.cm-floats span[data-c='2'] { color: #7cc4ff; }
@keyframes cm-float { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x, -14px), -150px) scale(1.15); } }
.cm-live-t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cm-live-t b { font-size: 14px; }
.cm-live-t span { color: var(--c-live); font-weight: 600; font-size: 12.5px; white-space: nowrap; }

.cm-paper {
    position: relative; padding: 16px 16px 18px; border-radius: 4px 14px 14px 14px; background: #fff7d6; color: #4a3a12;
    box-shadow: 0 10px 24px rgba(160, 120, 20, .15); transform: rotate(-1.2deg);
    background-image: repeating-linear-gradient(#fff7d6 0 23px, #f2e5b2 23px 24px);
}
.cm-paper small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #8a6d1f; margin-bottom: 6px; }
.cm-paper p { font-size: 16px; line-height: 24px; font-weight: 500; font-style: italic; }
.cm-chat p[data-cm-b='2'] { background: var(--c-note); border-color: var(--c-note); }

.cm-fpost { position: relative; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line-card); overflow: hidden; transition: filter .6s, background .5s; }
.cm-fpost-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-fpost-h b { font-size: 13.5px; }
.cm-fpost-h small { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.cm-fpost p { font-size: 14px; line-height: 1.45; }
.cm-beam { position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .32), transparent); border-bottom: 2px solid rgba(124, 92, 255, .7); opacity: 0; pointer-events: none; }
.cm-fpost.is-scan .cm-beam { opacity: 1; animation: cm-beam 1.1s ease-in-out infinite alternate; }
@keyframes cm-beam { from { top: -20px; } to { top: calc(100% - 10px); } }
.cm-scan-l { position: absolute; right: 10px; bottom: 8px; display: none; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--c-mod); background: #f1edfd; padding: 2px 8px; border-radius: 999px; }
.cm-fpost.is-scan .cm-scan-l { display: inline-flex; }
.cm-fpost.is-blocked { filter: grayscale(1); background: #f5f5f3; }
.cm-fpost.is-blocked p { color: var(--muted); }
.cm-verdict { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #f1edfd; border: 1px solid #ddd3fb; opacity: 0; transform: translateY(10px); }
.cm-fpost.is-blocked + .cm-verdict { opacity: 1; transform: none; }
.cm-verdict b { display: flex; align-items: center; gap: 6px; color: #5a3fc4; font-size: 13.5px; }
.cm-verdict > span { color: var(--ink-2); line-height: 1.4; }
.cm-restore { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line-strong); font-weight: 500; color: var(--ink) !important; }

/* Управление */
.cm-ctl { display: flex; align-items: flex-start; gap: 24px; margin-top: 18px; }
.cm-steps { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cm-steps button { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 14px; border-radius: 10px; text-align: left; transition: background .2s; }
.cm-steps button:hover { background: var(--hover-soft); }
.cm-st-ico { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--cm-ease); }
.cm-st-t { min-width: 0; }
.cm-st-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cm-st-t small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.cm-st-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cm-st-bar i { display: block; height: 100%; width: 100%; background: var(--k, var(--ink)); transform: scaleX(0); transform-origin: left; }
.cm-steps li:nth-child(1) { --k: var(--c-nick); } .cm-steps li:nth-child(2) { --k: var(--c-grp); } .cm-steps li:nth-child(3) { --k: var(--c-ray); }
.cm-steps li:nth-child(4) { --k: var(--c-live); } .cm-steps li:nth-child(5) { --k: var(--c-note); } .cm-steps li:nth-child(6) { --k: var(--c-mod); }
.cm-steps button[data-st='on'] .cm-st-ico { background: var(--k); color: #fff; transform: scale(1.08); }
.cm-steps button[data-st='on'] .cm-st-bar i { animation: cm-prog var(--dur, 4s) linear forwards; }
.cm.is-paused .cm-steps button[data-st='on'] .cm-st-bar i { animation-play-state: paused; }
@keyframes cm-prog { to { transform: none; } }
.cm-steps button[data-st='done'] .cm-st-ico { color: var(--k); background: #fff; box-shadow: inset 0 0 0 1.5px var(--k); }
.cm-steps button[data-st='done'] .cm-st-bar i { transform: none; opacity: .5; }
.cm-ctl-btns { display: flex; gap: 8px; padding-top: 6px; }
.cm-ctl-btns .btn { gap: 6px; }

@media (max-width: 1279px) {
    .cm-stage { grid-template-columns: minmax(0, 1fr) 330px; }
    .cm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .cm-stage { grid-template-columns: minmax(0, 1fr); }
    .cm-side { border-left: 0; border-top: 1px solid var(--line); height: 360px; }
}
@media (max-width: 767px) {
    .cm-stage { margin-top: 28px; border-radius: 16px; }
    .cm-side { padding: 16px; height: 380px; }
    .cm-card { inset: 16px; }
    .cm-node small { display: none; }
    .cm-club small, .cm-locker small { display: block; font-size: 9.5px; }
    .cm-hull-label { font-size: 10px; padding: 2px 7px; }
    .cm-hull-label .i { display: none; }
    .cm-hull-label { left: 1.5% !important; transform: translateY(-50%); }
    .cm-post span { display: none; }
    .cm-post { padding: 5px 7px; }
    .cm-count { display: none; }
    .cm-ctl { flex-direction: column; gap: 10px; }
    .cm-steps { grid-template-columns: 1fr 1fr; width: 100%; }
    .cm-steps button { padding: 9px 6px 12px; align-items: center; }
    .cm-st-t small { display: none; }
    .cm-ctl-btns { width: 100%; }
    .cm-ctl-btns .btn { flex: 1; }
}

/* ── Особенности: мини-виджеты ── */
.cmf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cmf-card { border: 1px solid var(--line-card); border-radius: 18px; background: #fff; overflow: hidden; padding-bottom: 22px; }
.cmf-wide { grid-column: span 2; }
.cmf-card h3 { display: flex; align-items: center; gap: 8px; margin: 20px 22px 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cmf-card h3 .i { color: var(--k, var(--accent)); }
.cmf-card > p { margin: 0 22px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.cmf-vis { position: relative; height: 236px; padding: 18px; overflow: hidden; border-bottom: 1px solid var(--line); font-size: 13px; background: var(--bg-k, #fafaf9); }
.cmf .cmf-vis *, .cmf .cmf-vis *::after, .cmf .cmf-vis *::before { animation-play-state: paused; }
.cmf.is-on .cmf-vis *, .cmf.is-on .cmf-vis *::after, .cmf.is-on .cmf-vis *::before { animation-play-state: running; }

/* Скретч-записка */
.cmf-scratch { --k: var(--c-note); --bg-k: linear-gradient(135deg, #fff8e6, #ffeef3 60%, #eef3ff); }
.cmf-scratch .cmf-vis { display: grid; place-items: center; }
.cmf-locker { display: flex; align-items: center; gap: 22px; }
.cmf-door { width: 84px; height: 170px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8a5a0e; background: linear-gradient(160deg, #ffe7b0, #f5c46a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 12px 28px rgba(160, 110, 20, .18); }
.cmf-door b { font-size: 22px; font-weight: 700; }
.cmf-sheet { position: relative; width: min(380px, 52vw); padding: 20px 22px 18px; border-radius: 4px 16px 16px 16px; transform: rotate(-1.5deg); background: #fffbe8; background-image: repeating-linear-gradient(#fffbe8 0 25px, #f2e7bb 25px 26px); color: #4a3a12; box-shadow: 0 14px 30px rgba(160, 120, 20, .16); overflow: hidden; }
.cmf-sheet p { font-size: 18px; line-height: 26px; font-weight: 500; font-style: italic; }
.cmf-sheet small { display: block; margin-top: 6px; color: #8a6d1f; }
.cmf-reply { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--c-note); color: #fff; font-weight: 500; font-size: 12.5px; }
.cmf-sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .6s; }
.cmf-sheet canvas.is-gone { opacity: 0; pointer-events: none; }
.cmf-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink-2); font-style: normal; font-size: 12px; font-weight: 600; pointer-events: none; transition: opacity .4s; animation: cm-nudge 1.6s ease-in-out infinite; }
.cmf-hint.is-gone { opacity: 0; }
@keyframes cm-nudge { 50% { transform: translateX(-50%) translateY(-3px); } }

/* Модерация */
.cmf-mod { --k: var(--c-mod); --bg-k: linear-gradient(160deg, #f5f2ff, #fafaf9); }
.cmf-mod .cmf-vis { display: flex; flex-direction: column; gap: 8px; }
.cmf-mp { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line-card); overflow: hidden; }
.cmf-mp > div { min-width: 0; }
.cmf-mp b { display: block; font-size: 12px; }
.cmf-mp span:not(.cm-mono) { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmf-mp.is-bad { animation: cmf-block 6s infinite; }
@keyframes cmf-block { 0%, 30% { filter: none; background: #fff; } 45%, 92% { filter: grayscale(1); background: #f3f3f1; } 100% { filter: none; background: #fff; } }
.cmf-beam { position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .45), transparent); animation: cmf-beam 6s infinite; }
@keyframes cmf-beam { 0% { left: -30%; } 10% { left: -30%; } 22% { left: 100%; } 28% { left: -30%; } 36% { left: 100%; } 100% { left: 100%; } }
.cmf-mv { position: absolute; inset: auto 8px 4px auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #f1edfd; color: #5a3fc4; font-style: normal; font-size: 11px; font-weight: 600; opacity: 0; animation: cmf-mv 6s infinite; }
.cmf-mv u { text-decoration: none; margin-left: 4px; padding-left: 6px; border-left: 1px solid #d6cbfb; color: var(--ink); }
@keyframes cmf-mv { 0%, 40% { opacity: 0; transform: translateY(4px); } 46%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cmf-mp.is-bad > div { padding-bottom: 14px; }

/* Эфир */
.cmf-live { --k: var(--c-live); --bg-k: linear-gradient(160deg, #fff0f5, #fafaf9); }
.cmf-live .cmf-vis { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; align-items: center; }
.cmf-screen { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 6px; padding-top: 30px; border-radius: 14px; background: #1c1a24; }
.cmf-tile { aspect-ratio: 4 / 3; border-radius: 9px; display: grid; place-items: center; font-size: 15px; font-weight: 650; color: hsl(var(--h) 45% 25%); background: linear-gradient(135deg, hsl(var(--h) 80% 86%), hsl(calc(var(--h) + 50) 70% 72%)); animation: cmf-talk 2.8s var(--d) infinite; }
@keyframes cmf-talk { 0%, 60%, 100% { box-shadow: none; } 20%, 40% { box-shadow: inset 0 0 0 2.5px #fff; } }
.cmf-screen .cm-live-b { left: 8px; top: 7px; font-size: 10px; }
.cmf-screen .cm-live-v { right: 8px; top: 7px; font-size: 10px; }
.cmf-poll { display: flex; flex-direction: column; gap: 7px; }
.cmf-poll b { font-size: 13px; }
.cmf-opt { position: relative; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line-card); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; overflow: hidden; font-size: 12px; }
.cmf-opt i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: #ffe0ea; animation: cmf-grow 3s var(--cm-ease) infinite alternate; transform-origin: left; }
.cmf-opt + .cmf-opt i { background: #eef0f5; }
@keyframes cmf-grow { from { transform: scaleX(.15); } to { transform: none; } }
.cmf-opt span, .cmf-opt em { position: relative; font-style: normal; }
.cmf-opt em { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Группы */
.cmf-groups { --k: var(--c-grp); --bg-k: linear-gradient(160deg, #effaf4, #fafaf9); }
.cmf-gl { display: flex; flex-direction: column; gap: 6px; }
.cmf-gl li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 5px; border-radius: 10px; background: #fff; border: 1px solid var(--line-card); }
.cmf-gi { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: hsl(var(--h) 45% 28%); background: linear-gradient(135deg, hsl(var(--h) 85% 90%), hsl(calc(var(--h) + 40) 75% 80%)); }
.cmf-gl b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmf-gl small { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.cmf-gb { height: 24px; padding: 0 9px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--ink); color: #fff; transition: background .3s, color .3s, transform .15s; white-space: nowrap; }
.cmf-gb[data-s='request'] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cmf-gb.is-sent { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.cmf-gb.is-press { transform: scale(.88); }
.cmf-link { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 10px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px dashed #9fd8bc; background: #f2fbf6; color: var(--c-grp); font-weight: 600; font-size: 12px; overflow: hidden; }
.cmf-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmf-link em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; font-style: normal; background: var(--c-grp); color: #fff; opacity: 0; transition: opacity .3s; }
.cmf-link.is-copied em { opacity: 1; }

/* Ленты */
.cmf-feeds { --k: var(--accent); --bg-k: linear-gradient(160deg, #eef3ff, #fafaf9); }
.cmf-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line-card); }
.cmf-tabs button { flex: 1; height: 28px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .25s, color .25s; }
.cmf-tabs button[aria-current] { background: var(--ink); color: #fff; }
.cmf-fl { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cmf-fl li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 46px; padding: 0 10px 0 8px; border-radius: 11px; background: #fff; border: 1px solid var(--line-card); animation: cmf-in .45s var(--cm-ease) both; animation-delay: calc(var(--i) * .07s); }
@keyframes cmf-in { from { opacity: 0; transform: translateY(8px); } }
.cmf-fl b { font-size: 12.5px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmf-fl small { display: inline-flex; align-items: center; gap: 3px; color: var(--c-live); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Сторис */
.cmf-stories { --k: var(--c-ray); --bg-k: linear-gradient(160deg, #f4efff, #fff4ec); }
.cmf-stories .cmf-vis { display: flex; flex-direction: column; gap: 14px; }
.cmf-rings { display: flex; gap: 10px; justify-content: space-between; }
.cmf-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); }
.cmf-ring i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--h) 45% 28%); background: linear-gradient(135deg, hsl(var(--h) 85% 92%), hsl(calc(var(--h) + 40) 75% 82%)) padding-box, conic-gradient(from 0deg, #ff7aa8, #ffb35c, #8a63e8, #ff7aa8) border-box; border: 2.5px solid transparent; animation: cmf-ring 4s var(--d) infinite; }
.cmf-ring.is-club i { background: linear-gradient(var(--ink), var(--ink)) padding-box, conic-gradient(from 0deg, #ff7aa8, #ffb35c, #8a63e8, #ff7aa8) border-box; color: #fff; }
@keyframes cmf-ring { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.1); } }
.cmf-story { position: relative; flex: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #2b2340, #4b2b5a); }
.cmf-story-art { position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 30%, rgba(255, 122, 168, .7), transparent 70%), radial-gradient(50% 70% at 80% 70%, rgba(255, 179, 92, .6), transparent 70%), radial-gradient(40% 60% at 60% 20%, rgba(138, 99, 232, .7), transparent 70%); animation: cmf-drift 8s ease-in-out infinite alternate; }
@keyframes cmf-drift { to { transform: scale(1.2) translate(-6%, 4%); } }
.cmf-bars { position: absolute; z-index: 2; left: 10px; right: 10px; top: 8px; display: flex; gap: 4px; }
.cmf-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.cmf-bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; animation: cmf-bar 9s linear infinite; }
.cmf-bars i:nth-child(2)::after { animation-name: cmf-bar2; } .cmf-bars i:nth-child(3)::after { animation-name: cmf-bar3; }
@keyframes cmf-bar { 0% { transform: scaleX(0); } 33%, 100% { transform: none; } }
@keyframes cmf-bar2 { 0%, 33% { transform: scaleX(0); } 66%, 100% { transform: none; } }
@keyframes cmf-bar3 { 0%, 66% { transform: scaleX(0); } 100% { transform: none; } }
.cmf-seen { position: absolute; z-index: 2; left: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 11.5px; font-weight: 500; }

/* Жалобы */
.cmf-rep { --k: var(--bad); --bg-k: linear-gradient(160deg, #fff4f2, #fafaf9); }
.cmf-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cmf-reasons li { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line-card); font-size: 12px; white-space: nowrap; overflow: hidden; }
.cmf-reasons i { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.cmf-reasons li.is-pick { animation: cmf-pick 7s infinite; }
.cmf-reasons li.is-pick i { animation: cmf-dot 7s infinite; }
@keyframes cmf-pick { 0%, 12% { border-color: var(--line-card); } 18%, 95% { border-color: var(--bad); background: var(--bad-soft); } }
@keyframes cmf-dot { 0%, 12% { box-shadow: none; } 18%, 95% { border-color: var(--bad); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--bad); } }
.cmf-sent, .cmf-kept { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 500; opacity: 0; }
.cmf-sent { color: var(--bad); animation: cmf-show 7s infinite; --a: 25%; }
.cmf-kept { color: var(--ok); animation: cmf-show2 7s infinite; }
@keyframes cmf-show { 0%, 25% { opacity: 0; transform: translateY(4px); } 30%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cmf-show2 { 0%, 58% { opacity: 0; transform: translateY(4px); } 64%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cmf-ban { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line-card); font-size: 12.5px; font-weight: 500; }
.cmf-ban span { display: inline-flex; align-items: center; gap: 6px; }
.cmf-ban i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); animation: cmf-sw 7s infinite; }
.cmf-ban i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); animation: cmf-knob 7s infinite; }
@keyframes cmf-sw { 0%, 45% { background: var(--line-strong); } 50%, 95% { background: var(--bad); } }
@keyframes cmf-knob { 0%, 45% { transform: none; } 50%, 95% { transform: translateX(14px); } }

/* Работа дня */
.cmf-art { --k: #c0567f; }
.cmf-art .cmf-vis { padding: 0; }
.cmf-canvas { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #ffd9c7 0%, #ffc1cf 38%, #c8b6ff 72%, #a9c3ff 100%); }
.cmf-sun { position: absolute; left: 62%; top: 22%; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #ffd27a 60%, rgba(255, 210, 122, 0) 72%); animation: cmf-sun 10s ease-in-out infinite alternate; }
@keyframes cmf-sun { to { transform: translateY(-14px); } }
.cmf-canvas i:not(.cmf-sun) { position: absolute; left: -10%; right: -10%; bottom: 0; }
.cmf-m1 { height: 62%; background: #9d8ed8; clip-path: polygon(0 100%, 0 55%, 14% 30%, 26% 48%, 40% 12%, 56% 44%, 70% 22%, 86% 50%, 100% 34%, 100% 100%); opacity: .75; }
.cmf-m2 { height: 46%; background: #6f6bb8; clip-path: polygon(0 100%, 0 60%, 18% 34%, 34% 58%, 50% 26%, 66% 52%, 82% 30%, 100% 56%, 100% 100%); opacity: .85; animation: cmf-par 12s ease-in-out infinite alternate; }
.cmf-m3 { height: 26%; background: #3f3f7a; clip-path: polygon(0 100%, 0 50%, 22% 30%, 44% 60%, 64% 36%, 84% 62%, 100% 40%, 100% 100%); animation: cmf-par 12s ease-in-out infinite alternate-reverse; }
@keyframes cmf-par { to { transform: translateX(4%); } }
.cmf-art-cap { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 600; color: #8c2a4c; }
.cmf-art-t { position: absolute; left: 14px; bottom: 14px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.cmf-art-t b { display: block; font-size: 16px; }
.cmf-art-t small { font-size: 12px; opacity: .9; }
.cmf-gal { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); }

@media (max-width: 1279px) {
    .cmf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cmf-wide { grid-column: span 2; }
}
@media (max-width: 767px) {
    .cmf-grid { grid-template-columns: 1fr; }
    .cmf-wide { grid-column: auto; }
    .cmf-door { display: none; }
    .cmf-sheet { width: 100%; }
    .cmf-live .cmf-vis { grid-template-columns: 1fr 1fr; }
    .cmf-vis { height: 230px; }
    .cmf-reasons li { white-space: normal; line-height: 1.15; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .cm *, .cmf * { animation: none !important; }
    .cmf-mv, .cmf-sent, .cmf-kept { opacity: 1; }
    .cmf-mp.is-bad { filter: grayscale(1); background: #f3f3f1; }
    .cmf-reasons li.is-pick { border-color: var(--bad); background: var(--bad-soft); }
    .cmf-ban i { background: var(--bad); }
    .cmf-ban i::after { transform: translateX(14px); }
    .cmf-bars i::after { transform: none; }
}
