/* ============================================================
   Конструктор постов (frontend/post-builder.js), 2026-09-24.
   Полноэкранное окно поверх вкладки «Рассылка ботами». Анимации — прозрачность и сдвиг,
   без blur: backdrop-filter на слабом железе тормозит даже свёрнутым.
   ============================================================ */
.pb {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    background: #0A0A0A;
    color: #E8E8E8;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    /* ритм движения как у пульта и доски «Анимации» (09.10): 140 / 220 / 360 мс, плавная кривая и пружина */
    --pb-e: cubic-bezier(.2, .8, .2, 1);
    --pb-spring: cubic-bezier(.34, 1.56, .64, 1);
    transition: opacity 220ms ease, transform 360ms var(--pb-e), visibility 360ms;
}
.pb.is-on { opacity: 1; visibility: visible; transform: none; }
.pb[hidden] { display: none; }
html.pb-open { overflow: hidden; }
/* Подсказки [data-tip] (.uitip, common.css: z-index 1000) живут в body, а окно — 1500: пока конструктор открыт, подсказки
   рисовались под ним и не были видны вовсе (проверка 14.11). Класс pb-open ставит и снимает open()/close() в post-builder.js,
   поэтому подсказки на остальных страницах и после закрытия окна не меняются. */
html.pb-open .uitip { z-index: 1600; }
.pb [hidden] { display: none !important; }

.pb-top {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 24px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(ellipse 60% 140% at 0% 0%, rgba(0, 229, 153, 0.08), transparent 60%), #0C0E0D;
}
.pb-top__title { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; min-width: 0; }
.pb-top__title h2 { margin: 0; font-size: 1.25rem; font-weight: 850; letter-spacing: -0.02em; }
.pb-top__title p { margin: 2px 0 0; font-size: 0.8rem; color: #8E948F; }
.pb-top__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pb-x {
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: #E8E8E8;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pb-x:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
.pb-dirty { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; color: #F0B35B; animation: pb-fade 0.3s ease; }
.pb-dirty i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pb-btn {
    border-radius: 11px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.pb-btn--ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #E8E8E8; }
.pb-btn--ghost:hover { border-color: rgba(0, 229, 153, 0.4); color: #00E599; }
.pb-btn--primary { background: #00E599; border: 1px solid #00E599; color: #03140D; }
.pb-btn--primary:hover:not(:disabled) { box-shadow: 0 0 24px rgba(0, 229, 153, 0.35); }
.pb-btn:disabled { opacity: 0.4; cursor: default; }

.pb-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: #0E100F;
    border: 1px solid rgba(255, 255, 255, 0.09);
}
.pb-seg button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: none;
    color: #9A9F9A;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pb-seg button svg { width: 16px; height: 16px; }
/* бегунок капсулы (segSync в post-builder.js): подложка выбранной кнопки едет к новой */
.pb-seg { position: relative; }
.pb-seg > button { position: relative; z-index: 1; }
.pb-seg__thumb {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 9px;
    background: #1A1D1B;
    box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.42);
    pointer-events: none;
    transition: transform 360ms var(--pb-spring), width 360ms var(--pb-e), height 360ms var(--pb-e), opacity 220ms ease;
}
.pb-seg.has-thumb > button[aria-selected="true"] { background: none; box-shadow: none; }
.pb-seg button:hover { color: #E8E8E8; }
.pb-seg button[aria-selected="true"] { color: #E8E8E8; background: #1A1D1B; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.42); }
.pb-seg button[aria-selected="true"] svg { color: #00E599; }
.pb-seg--sm button { padding: 6px 11px; font-size: 0.8rem; }

.pb-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: start;
    padding: 22px 24px calc(40px + env(safe-area-inset-bottom, 0px));
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.pb-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pb-preview { position: sticky; top: 0; display: grid; gap: 12px; }
/* Колонки сетки сжимаются до ширины экрана (2026-10-05): без этого на телефоне колонку превью распирала
   длинная строка поста, вся страница становилась шире экрана и «Сохранить» с переключателями уезжали за край. */
.pb-steps, .pb-preview, .pb-preview > *, .pb-step { min-width: 0; }

.pb-step {
    padding: 18px;
    border-radius: 18px;
    background: #0E100F;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
/* Шаги выезжают по очереди только при открытии окна, а не при каждом щелчке. */
.pb.is-intro .pb-step { animation: pb-rise 360ms var(--pb-e) both; }
.pb.is-intro .pb-step:nth-child(2) { animation-delay: 40ms; }
.pb.is-intro .pb-step:nth-child(3) { animation-delay: 80ms; }
.pb.is-intro .pb-step:nth-child(4) { animation-delay: 120ms; }
/* превью въезжает чуть позже первых шагов: взгляд идёт слева направо */
.pb.is-intro .pb-preview { animation: pb-rise 360ms var(--pb-e) 120ms both; }
@keyframes pb-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pb-fade { from { opacity: 0; } }
@keyframes pb-pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
/* раскрытый шаг: содержимое проявляется по очереди (стрелку и сводку ведёт toggleStep) */
.pb-step.is-opening > :not(.pb-step__h) { animation: pb-rise 360ms var(--pb-e) both; }
.pb-step.is-opening > :nth-child(3) { animation-delay: 40ms; }
.pb-step.is-opening > :nth-child(4) { animation-delay: 80ms; }
.pb-step.is-opening > :nth-child(n+5) { animation-delay: 120ms; }
.pb-step__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pb-step__h b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; color: #00E599; background: rgba(0, 229, 153, 0.12); }
.pb-step__h h3 { margin: 0; font-size: 0.98rem; font-weight: 800; }
.pb-step__h p { margin: 0 0 0 auto; font-size: 0.76rem; color: #6E746F; }

.pb-cats { display: grid; gap: 6px; }
.pb-cat {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: #121513;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pb-cat.is-off { opacity: 0.5; }
.pb-cat.is-over { border-color: rgba(0, 229, 153, 0.6); transform: translateY(2px); }
.pb-cat.is-drag { opacity: 0.35; }
.pb-grip { display: grid; place-items: center; width: 16px; color: #5E645F; cursor: grab; }
.pb-grip svg { width: 14px; height: 14px; }
.pb-cat[draggable="false"] .pb-grip { visibility: hidden; }
.pb-cat__ico { width: 22px; text-align: center; font-size: 1.05rem; }
.pb-cat__name { font-size: 0.9rem; font-weight: 700; }
.pb-cat__name small { margin-left: 7px; font-weight: 600; color: #6E746F; font-variant-numeric: tabular-nums; }
.pb-mv { display: flex; gap: 2px; }
.pb-mv button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #9A9F9A;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.pb-mv button svg { width: 13px; height: 13px; }
.pb-mv button:hover:not(:disabled) { color: #00E599; background: rgba(0, 229, 153, 0.12); }
.pb-mv button:disabled { opacity: 0.3; cursor: default; }

.pb-switch {
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    border: 0;
    border-radius: 99px;
    background: #262A28;
    cursor: pointer;
    transition: background 220ms ease, opacity 220ms ease;
}
.pb-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8E958F;
    /* кружок перелетает с лёгким перехлёстом, как на доске «Анимации» */
    transition: transform 360ms var(--pb-spring), background 220ms ease;
}
.pb-switch[aria-checked="true"] { background: rgba(0, 229, 153, 0.28); }
.pb-switch[aria-checked="true"]::after { transform: translateX(16px); background: #00E599; }
.pb-switch:disabled { opacity: 0.35; cursor: not-allowed; }

.pb-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-tgl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #121513;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    font-weight: 600;
}
.pb-tgl span { display: inline-flex; align-items: center; gap: 7px; }
.pb-tgl.is-locked { opacity: 0.6; }
.pb-tgl--wide { margin-bottom: 10px; }

/* 05.10 (аудит B7): карточки крупнее — по миниатюре видно, чем стили отличаются; стиль, который сейчас
   в превью, подсвечен подписью «в превью» (листалка ‹ › над превью двигает подсветку) */
.pb-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pb-preset {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #121513;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(.2, .8, .2, 1);
}
.pb-preset:hover { transform: translateY(-2px); }
.pb-preset[aria-checked="true"] { border-color: rgba(0, 229, 153, 0.45); background: rgba(0, 229, 153, 0.05); }
.pb-preset__pv {
    height: 84px;
    overflow: hidden;
    border-radius: 8px;
    padding: 8px 10px;
    background: #16202d;
    font: 500 9.5px/1.45 Arial, sans-serif;
    color: #c6d4df;
    white-space: pre;
}
.pb-preset__pv b { color: #fff; font-size: 10.5px; }
.pb-preset.is-current { box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.55); }
.pb-preset.is-current .pb-preset__pv { position: relative; }
.pb-preset.is-current .pb-preset__pv::after { content: "в превью"; position: absolute; right: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; background: #66c0f4; color: #0b1a26; font: 800 9px/1.3 'Inter', Arial, sans-serif; letter-spacing: 0.02em; }
.pb-preset__name { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; font-weight: 700; }
.pb-preset__name i {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
    transition: background 0.15s ease;
}
.pb-preset[aria-checked="true"] .pb-preset__name i { background: #00E599; color: #03140D; box-shadow: none; }

/* пять раскладок в ряд (с 10.10 есть «Витрина 4×2») */
.pb-layouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.pb-lay {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #121513;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(.2, .8, .2, 1);
}
.pb-lay:hover { transform: translateY(-2px); }
.pb-lay[aria-pressed="true"] { border-color: rgba(0, 229, 153, 0.45); background: rgba(0, 229, 153, 0.05); }
.pb-lay__def {
    position: absolute;
    top: -8px;
    right: 6px;
    padding: 1px 6px;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 800;
    /* в одну строку: с пятой раскладкой (10.10) карточки уже, и плашка переносилась на миниатюру */
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #03140D;
    background: #00E599;
}
.pb-lay__th { height: 58px; border-radius: 7px; background: #0A0F0D; padding: 5px; display: grid; gap: 2px; box-sizing: border-box; }
.pb-lay__th i { border-radius: 2px; background: rgba(0, 229, 153, 0.28); }
.pb-lay__th i.h { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.14); }
.pb-lay__th.is-list { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.pb-lay[aria-pressed="true"] .pb-lay__th i:not(.h) { background: rgba(0, 229, 153, 0.5); }
.pb-lay__name { font-size: 0.82rem; font-weight: 700; }
.pb-lay__name small { display: block; font-size: 0.72rem; font-weight: 500; color: #6E746F; }

.pb-field { display: grid; gap: 6px; margin-bottom: 10px; }
.pb-field > span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: #A3A9A5; }
.pb-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #121513;
    color: #E8E8E8;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pb-field input:focus { outline: none; border-color: rgba(0, 229, 153, 0.55); box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.1); }
.pb-chips { display: flex; gap: 6px; margin: -4px 0 12px; }
.pb-chips button {
    border: 0;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: #9A9F9A;
    font: 600 0.74rem "JetBrains Mono", ui-monospace, Consolas, monospace;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.pb-chips button:hover { color: #00E599; background: rgba(0, 229, 153, 0.1); }
.pb-hint { margin: 2px 0 0; font-size: 0.76rem; color: #6E746F; }
.pb-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #121513;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #A3A9A5;
}
.pb-note svg { flex: none; width: 16px; height: 16px; color: #00E599; margin-top: 1px; }

/* ----- превью ----- */
.pb-pv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-pv-head h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.pb-muted { font-size: 0.8rem; color: #8E948F; }
.pb-muted b { color: #E8E8E8; }
.pb-muted b.is-bad { color: #FF5A73; }
.pb-cyc { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #9A9F9A; font-variant-numeric: tabular-nums; }
.pb-cyc button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: #121513;
    color: #E8E8E8;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.pb-cyc button:hover { border-color: rgba(0, 229, 153, 0.4); color: #00E599; }
/* перерисовка превью (pvAnimate): другой стиль или площадка — пост проявляется целиком,
   правка — изменившиеся строки секунду светятся, подсветка гаснет прозрачностью */
[data-steam-post].is-in, [data-tg-cap].is-in { animation: pb-rise 360ms var(--pb-e) both; }
.pb-chg { position: relative; isolation: isolate; }
.pb-chg::after { content: ""; position: absolute; inset: -1px -4px; z-index: -1; border-radius: 4px; background: var(--edit-chg, rgba(0, 229, 153, 0.24)); pointer-events: none; animation: pb-chg 1400ms var(--pb-e) both; }
@keyframes pb-chg { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
.pb-h2 { display: block; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35; margin: 2px 0 4px; }
/* разделитель в одну строку, как на стене Steam; при правке переносится, чтобы было видно весь */
[data-steam-post] .pb-edit--sep { display: inline-block; max-width: 100%; vertical-align: top; white-space: nowrap; overflow: hidden; letter-spacing: -0.06em; }
[data-steam-post] .pb-edit--sep:focus { white-space: pre-wrap; }
@media (max-width: 560px) { .pb-h2 { font-size: 16px; } }
.pb-meter { padding: 12px 14px; border-radius: 14px; background: #0E100F; border: 1px solid rgba(255, 255, 255, 0.07); }
.pb-meter:empty { display: none; }
.pb-meter__row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; color: #A3A9A5; }
.pb-meter__row span { display: inline-flex; align-items: center; gap: 6px; }
.pb-meter__row b { font: 700 0.84rem "JetBrains Mono", ui-monospace, Consolas, monospace; color: #E8E8E8; }
.pb-meter__bar { position: relative; height: 7px; margin-top: 8px; border-radius: 99px; background: #1E2220; overflow: hidden; }
.pb-meter__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #00E599; transition: width 0.35s cubic-bezier(.2, .8, .2, 1), background 0.25s ease; }
.pb-meter__bar i.warn { background: #F0B35B; }
.pb-meter p { margin: 8px 0 0; font-size: 0.78rem; color: #6E746F; }

/* 09.10: у каждого раздела своя цитата, шапка раздела над ней. Текст между цитатами — блоки .pb-tx (tgHtml). */
.pb-tx { display: block; }

/* стили подписи Telegram в шаге 4 (09.10): те же карточки, что у стилей Steam, миниатюра — пузырь Telegram */
.pb-presets--tg { margin-bottom: 10px; }
.pb-preset__pv--tg {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #182533;
    color: #F5F5F5;
    font: 500 10px/1.4 -apple-system, 'SF Pro Text', Roboto, 'Segoe UI', Arial, sans-serif;
    white-space: normal;
}
.pb-preset__pv--tg .h { font-weight: 700; }
.pb-preset__pv--tg .q { display: block; padding: 1px 6px; border-radius: 3px; background: rgba(123, 200, 98, 0.1); box-shadow: inset 2px 0 0 #7BC862; white-space: pre; overflow: hidden; }
.pb-preset__pv--tg b { color: #fff; font-size: inherit; font-weight: 700; }
.pb-preset__pv--tg i { color: #DCE3EA; }
/* минимализм (17.10): строки текста, строка-ссылка синим, место картинки у «Скрина» */
.pb-preset__pv--tg .t { display: block; white-space: pre; overflow: hidden; color: #DCE3EA; }
.pb-preset__pv--tg .a { display: block; color: #6AB3F3; }
.pb-preset__pv--tg .ph { display: block; padding: 6px 0; border-radius: 3px; text-align: center; color: #8FA3B5; background: linear-gradient(135deg, #22384C, #1B2B3A); }
.pb-tgtype { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 8px; font-size: 0.86rem; }
.pb-tgtype:first-child { margin-top: 0; }
.pb-tgtype b { font-weight: 800; }
.pb-tgtype span { color: #8A918C; font-size: 0.8rem; }
.pb-subh { margin: 16px 0 10px; font-size: 0.86rem; font-weight: 800; }
.pb-pv-cap { margin: 0; text-align: center; font-size: 0.76rem; color: #6E746F; }

.pb-skel { height: 180px; border-radius: 8px; background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 70%) 0 0 / 300% 100%; animation: pb-shimmer 1.4s linear infinite; }
.pb-err { display: flex; gap: 8px; align-items: flex-start; padding: 12px; font-size: 0.84rem; color: #F5C27A; }
.pb-err svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.pb-loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.pb-loading i { width: 9px; height: 9px; border-radius: 50%; background: #00E599; animation: pb-dot 1s ease-in-out infinite; }
.pb-loading i:nth-child(2) { animation-delay: 0.15s; }
.pb-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pb-dot { 50% { opacity: 0.25; transform: translateY(-4px); } }

.pb-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); animation: pb-fade 220ms ease; }
.pb-confirm__card { width: min(380px, 100%); padding: 20px; border-radius: 18px; background: #121513; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); animation: pb-pop 220ms var(--pb-e) both; }
.pb-confirm__card b { font-size: 1.05rem; }
.pb-confirm__card p { margin: 6px 0 16px; color: #9A9F9A; font-size: 0.86rem; }
.pb-confirm__row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* нижняя панель телефона: только там, где превью уходит под настройки */
.pb-mbar { display: none; }
@media (max-width: 1040px) {
    .pb-body { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    .pb-preview { position: static; }
    .pb-body[data-mview="settings"] > .pb-preview { display: none; }
    .pb-body[data-mview="preview"] > .pb-steps { display: none; }
    .pb-top [data-save], .pb-top .pb-dirty { display: none; }
    .pb-mbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px 10px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #0E110F;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.45);
    }
    .pb-mbar__seg { display: grid; grid-template-columns: 1fr 1fr; }
    .pb-mbar__seg button { justify-content: center; }
    .pb-mbar__dirty { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700; color: #F0B35B; }
    .pb-mbar__dirty[hidden] { display: none; }
    .pb-mbar__dirty i { width: 7px; height: 7px; border-radius: 50%; background: #F0B35B; }
}
@media (max-width: 640px) {
    .pb-top { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px; gap: 10px; }
    /* шапка в две строки: крестик с названием и «По умолчанию» сверху, Steam / Telegram под ними */
    .pb-top__title { flex: 1; min-width: 0; }
    .pb-top__actions { order: 2; }
    .pb-top__title p { display: none; }
    .pb-platform { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .pb-platform button { justify-content: center; }
    .pb-top__actions { gap: 6px; }
    .pb-top__actions .pb-btn--ghost { padding: 9px 11px; }
    .pb-dirty { display: none; }
    .pb-body { padding: 14px 16px 40px; gap: 14px; }
    .pb-step { padding: 14px; }
    .pb-hide-m { display: none; }
    .pb-toggles { grid-template-columns: minmax(0, 1fr); }
    .pb-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* нечётная последняя («Список») — во всю ширину, а не одна в ряду */
    .pb-lay:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .pb, .pb-step, .pb-confirm, .pb-confirm__card { animation: none; transition: none; }
    .pb.is-intro .pb-preview, .pb-step.is-opening > *, .pb-step.is-closing .pb-step__sum, .pb-coach, .pb-coach.is-out,
    [data-steam-post].is-in, [data-tg-cap].is-in, .pb-lbx.is-in, .pb-lbx .pb-menu, .pb-lbsheet { animation: none; }
    .pb-chg::after { animation: none; opacity: 0; }
    .pb-seg__thumb, .pb-switch, .pb-switch::after, .pb-step__chev { transition: none; }
}

/* Кнопки, открывающие конструктор, во вкладке «Рассылка ботами». С 05.10 — главная кнопка с заливкой:
   зелёный контур с зелёным текстом на сайте значит «выбрано» (Автопост, 30 дней) и путал с вкладкой. */
.pb-open-btn {
    background: #00E599;
    border: 1px solid #00E599;
    color: #03140D;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.pb-open-btn:hover { background: #12F0A6; box-shadow: 0 0 18px rgba(0, 229, 153, 0.3); }

/* ============================================================
   2026-09-26: предметы в посте, наклейки, источник цен, свои фото, правка прямо в превью
   ============================================================ */
.pb.is-intro .pb-step:nth-child(5) { animation-delay: 0.16s; }
.pb-sub { margin: -4px 0 12px; font-size: 0.8rem; line-height: 1.45; color: #8E948F; }

/* шаг «Предметы в посте» */
.pb-ibar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pb-isearch {
    flex: 1 1 180px;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #121513;
    color: #E8E8E8;
    font: inherit;
    font-size: 0.86rem;
}
.pb-isearch:focus { outline: none; border-color: rgba(0, 229, 153, 0.55); box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.1); }
.pb-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; padding-right: 2px; contain: content; }
.pb-items__ph { grid-column: 1 / -1; padding: 22px 0; text-align: center; font-size: 0.82rem; color: #6E746F; }
.pb-items__more { grid-column: 1 / -1; padding: 9px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 11px; background: none; color: #9A9F9A; font: inherit; font-size: 0.8rem; cursor: pointer; }
.pb-items__more:hover { color: #00E599; border-color: rgba(0, 229, 153, 0.4); }
.pb-it {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 6px 6px 8px;
    border-radius: 11px;
    background: #121513;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 3px 0 0 var(--rc, #5E6A64);
    transition: border-color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.pb-it__img { display: grid; place-items: center; width: 44px; height: 33px; font-size: 1.1rem; }
.pb-it__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pb-it__t { display: grid; gap: 1px; min-width: 0; }
/* название предмета целиком, переносом, без многоточия (правило владельца 08.10) */
.pb-it__t b { font-size: 0.78rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pb-it__t small { font-size: 0.72rem; color: #8E948F; font-variant-numeric: tabular-nums; }
.pb-it__t em { font-style: normal; font-size: 0.68rem; color: #8FD8FF; overflow-wrap: anywhere; }
.pb-it__t em.is-warn { color: #F0B35B; }
/* метка редкого паттерна с номером: бейджем, как на картинке Telegram (05.10) */
/* ----- «Студия»: свёрнутые шаги со сводкой и подсветка их строк в превью (05.10) ----- */
.pb-step__h[data-step-toggle] { cursor: pointer; border-radius: 12px; outline: none; }
.pb-step__h[data-step-toggle]:focus-visible { box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.25); }
.pb-step__chev { margin-left: auto; width: 18px; height: 18px; flex: none; color: #6E746F; transition: transform 0.2s ease; }
.pb-step__chev svg { width: 18px; height: 18px; display: block; }
.pb-step.is-collapsed .pb-step__chev { transform: rotate(-90deg); }
.pb-step.is-collapsed > :not(.pb-step__h) { display: none; }
.pb-step.is-collapsed { padding-bottom: 14px; }
.pb-step.is-collapsed .pb-step__h { margin-bottom: 0; }
/* Сводка свёрнутого шага в одну строку без многоточия: части через « · » уходят целиком с конца,
   главная первой остаётся. Не влезшее падает на вторую строку, а её срезает высота; пустой ::before
   первым элементом — чтобы при совсем узкой ширине уходила и первая часть, а не резалась посередине. */
.pb-step__sum { flex: 1 1 0; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; height: 1.4em; overflow: hidden; font-size: 0.78rem; line-height: 1.4; color: #8E948F; }
.pb-step__sum::before { content: ""; flex: none; width: 0; height: 1.4em; }
.pb-step__sum span { white-space: nowrap; }
.pb-step__sum span + span::before { content: "·"; margin: 0 6px; }
.pb-step.is-closing .pb-step__sum { animation: pb-fade 220ms ease both; }
/* телефон: рядом с названием места нет — сводка второй строкой под ним, целиком, с переносом */
@media (max-width: 640px) {
    .pb-step.is-collapsed .pb-step__h { flex-wrap: wrap; row-gap: 3px; }
    .pb-step__sum { order: 3; flex: 1 0 100%; display: block; height: auto; padding-left: 34px; text-align: left; }
    .pb-step__sum::before { display: none; }
    .pb-step__sum span { white-space: normal; }
    .pb-step__h > .pb-step__sum + .pb-step__chev { margin-left: auto; }
}
.pb-step__sum + .pb-step__chev { margin-left: 8px; }
.pb-step__h > p + .pb-step__chev { margin-left: 8px; }
.pb-step:hover { border-color: rgba(0, 229, 153, 0.22); }
.pb-inline-btn { background: none; border: 0; padding: 0; color: #00E599; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
[data-hl="1"] [data-key^="head:"], [data-hl="1"] [data-key^="sub:"], [data-hl="1"] [data-key^="more:"],
[data-hl="1"] .pb-li, [data-hl="2"] .pb-li, [data-hl="3"] .pb-li,
[data-hl="5"] [data-edit="header"], [data-hl="5"] [data-edit="cta"] {
    background: rgba(0, 229, 153, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 229, 153, 0.45);
    border-radius: 4px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.pb-it__t em.pb-rare { width: fit-content; max-width: 100%; padding: 1px 6px; border-radius: 6px; background: rgba(122, 162, 255, 0.12); border: 1px solid rgba(122, 162, 255, 0.3); color: #A9C4FF; font-weight: 700; }
.pb-it__a { display: flex; gap: 3px; }
.pb-it__a button, .pb-li__act button {
    width: 28px;
    height: 28px;
    border: 0;
    /* 08.10, владелец: иконки были тёмными на тёмном фоне и терялись — светлые, как текст превью */
    color: #EEF3F8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    filter: grayscale(1);
    opacity: 0.55;
    transition: opacity 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.pb-it__a button:hover, .pb-li__act button:hover { opacity: 1; filter: none; background: rgba(255, 255, 255, 0.08); }
.pb-it__a button[aria-pressed="true"] { opacity: 1; filter: none; background: rgba(0, 229, 153, 0.16); }
.pb-it.is-pin { border-color: rgba(0, 229, 153, 0.45); background: rgba(0, 229, 153, 0.05); }
.pb-it.is-hid { opacity: 0.5; }
.pb-it.is-hid .pb-it__t b { text-decoration: line-through; }
.pb-it.is-hid .pb-it__a [data-ihide] { background: rgba(255, 90, 115, 0.16); }
.pb-it.is-secoff:not(.is-pin) { opacity: 0.7; }

/* источник цен и наклейки */
.pb-srcrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.86rem; font-weight: 600; }
.pb-srcrow > span { display: inline-flex; align-items: center; gap: 7px; }
.pb-srcrow.is-off { opacity: 0.45; }
.pb-srcrow .pb-seg button:disabled { cursor: not-allowed; }
/* капсула всегда у правого края: на узком экране она уходит под подпись и встаёт вправо, как в строках, где влезла (14.11) */
.pb-srcrow .pb-seg { margin-left: auto; }
/* «Наклейки на картинке» под раскладками шага 4 (отступ как у блоков фото ниже) */
.pb-layouts + .pb-srcrow { margin: 14px 0 0; }
.pb-sticks { margin-top: 12px; padding: 12px; border-radius: 14px; background: #101311; border: 1px solid rgba(255, 255, 255, 0.05); }
.pb-sticks__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 0.86rem; font-weight: 800; }
.pb-sticks__h small { font-size: 0.72rem; font-weight: 600; color: #6E746F; }
.pb-sticks .pb-srcrow { margin: 10px 0 0; }
.pb-toggles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-layouts.is-off { opacity: 0.4; }
.pb-lay:disabled { cursor: not-allowed; transform: none; }

/* свои фото Telegram */
.pb-photos { margin-top: 14px; padding: 12px; border-radius: 14px; background: #101311; border: 1px solid rgba(255, 255, 255, 0.05); }
.pb-photos__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pb-photos__h b { font-size: 0.86rem; font-weight: 800; }
.pb-photos__h span, .pb-photos__ph { font-size: 0.74rem; color: #6E746F; }
.pb-photos__row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pb-ph { position: relative; width: 72px; height: 72px; border-radius: 11px; overflow: hidden; background: #0A0F0D; border: 1px solid rgba(255, 255, 255, 0.08); box-sizing: border-box; }
.pb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-ph button {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 12, 11, 0.85);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}
.pb-ph button:hover { background: #FF5A73; }
.pb-ph--add { display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; border-style: dashed; color: #9A9F9A; transition: color 0.15s ease, border-color 0.15s ease; }
.pb-ph--add span { font-size: 1.4rem; line-height: 1; }
.pb-ph--add small { font-size: 0.66rem; }
.pb-ph--add:hover { color: #00E599; border-color: rgba(0, 229, 153, 0.5); }
.pb-ph--add.is-busy { opacity: 0.5; pointer-events: none; }

/* фото из игры на картинке (10.10): сколько карточек уже с фото и «Загрузить остальные» */
.pb-gph { margin-top: 14px; padding: 12px; border-radius: 14px; background: #101311; border: 1px solid rgba(255, 255, 255, 0.05); display: grid; gap: 9px; animation: pb-rise 360ms var(--pb-e) both; }
.pb-gph[hidden] { display: none; }
.pb-gph__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.pb-gph__t { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 800; }
.pb-gph__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 0.8rem; }
.pb-gph__spin { width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pb-gph-spin 0.8s linear infinite; }
@keyframes pb-gph-spin { to { transform: rotate(360deg); } }
.pb-gph__wait { font-size: 0.78rem; font-weight: 700; color: #6E746F; }
.pb-gph__bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pb-gph__bar i { display: block; height: 100%; border-radius: 3px; background: #00E599; transition: width 600ms var(--pb-e); }
.pb-gph__bar.is-full i { box-shadow: 0 0 10px rgba(0, 229, 153, 0.5); }
/* пока сервер рисует — по полосе бежит блик */
.pb-gph__bar.is-busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent) no-repeat; background-size: 40% 100%; animation: pb-gph-run 1.3s linear infinite; }
@keyframes pb-gph-run { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.pb-gph__s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.78rem; color: #A3A9A5; font-variant-numeric: tabular-nums; }
.pb-gph__s b { color: #E8E8E8; font-weight: 800; }
.pb-gph__ok { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 229, 153, 0.16); color: #00E599; }
.pb-gph__ok svg { width: 10px; height: 10px; }
.pb-gph__fail { color: #F5C27A; }
.pb-gph__fail::before { content: "·"; margin: 0 6px 0 2px; color: #6E746F; }
.pb-gph__note { font-size: 0.76rem; color: #F0B35B; }
@media (prefers-reduced-motion: reduce) {
    .pb-gph, .pb-gph__spin, .pb-gph__bar.is-busy::after { animation: none; }
    .pb-gph__bar i { transition: none; }
}

/* альбом в превью Telegram */
.pb-album { display: grid; gap: 2px; }
.pb-album a { display: block; overflow: hidden; background: #0B0F14; }
.pb-album img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-album--2 { grid-template-columns: 1fr 1fr; }
.pb-album--2 a, .pb-album--3 a, .pb-album--4 a { aspect-ratio: 1 / 1; }
.pb-album--3 { grid-template-columns: 1fr 1fr; }
.pb-album--4 { grid-template-columns: 1fr 1fr 1fr; }
.pb-album--3 a:first-child, .pb-album--4 a:first-child { grid-column: 1 / -1; aspect-ratio: auto; }
.pb-album--1 img, .pb-album--3 a:first-child img, .pb-album--4 a:first-child img { height: auto; }
.pb-img__none { padding: 14px 10px; font-size: 13px; color: #6D7F8F; text-align: center; }

/* правка прямо в превью */
.pb-edit {
    border-radius: 4px;
    outline: 1px dashed rgba(143, 216, 255, 0.35);
    outline-offset: 2px;
    cursor: text;
    transition: outline-color 0.15s ease, background 0.15s ease;
}
.pb-edit:hover { outline-color: rgba(143, 216, 255, 0.8); background: rgba(143, 216, 255, 0.06); }
.pb-edit:focus { outline: 2px solid #00E599; background: rgba(0, 229, 153, 0.07); }
.pb-edit:empty::before { content: attr(data-ph); color: #6D7F8F; font-weight: 500; }
.pb-li { position: relative; display: block; border-radius: 4px; transition: background 0.15s ease; }
.pb-li:hover { background: rgba(143, 216, 255, 0.08); }
.pb-li__act { display: none; position: absolute; right: 2px; top: -2px; gap: 3px; padding: 2px; border-radius: 9px; background: #0B141E; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.pb-li:hover .pb-li__act, .pb-li:focus-within .pb-li__act { display: inline-flex; }
.pb-li__act button { width: 26px; height: 26px; opacity: 0.92; filter: none; background: rgba(255, 255, 255, 0.07); }
@media (hover: none) {
    .pb-li__act { display: inline-flex; position: static; transform: none; margin-left: 4px; background: none; box-shadow: none; }
}
@media (max-width: 560px) {
    .pb-toggles--3 { grid-template-columns: minmax(0, 1fr); }
    .pb-items { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   2026-09-26 (вторая волна): только отмеченные, массовые действия, правка любой строки,
   фирменный скроллбар сайта (как у .category-dropdown в inventory-filters.css)
   ============================================================ */
.pb-items, .pb-body, .pb-steps, .pb-preview {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 153, 0.45) transparent;
}
.pb-items::-webkit-scrollbar, 
.pb-body::-webkit-scrollbar, .pb-steps::-webkit-scrollbar, .pb-preview::-webkit-scrollbar { width: 5px; height: 5px; }
.pb-items::-webkit-scrollbar-track, 
.pb-body::-webkit-scrollbar-track, .pb-steps::-webkit-scrollbar-track, .pb-preview::-webkit-scrollbar-track { background: transparent; }
.pb-items::-webkit-scrollbar-thumb, 
.pb-body::-webkit-scrollbar-thumb, .pb-steps::-webkit-scrollbar-thumb, .pb-preview::-webkit-scrollbar-thumb { background: rgba(0, 229, 153, 0.45); border-radius: 4px; }
.pb-items::-webkit-scrollbar-thumb:hover, 
.pb-body::-webkit-scrollbar-thumb:hover, .pb-steps::-webkit-scrollbar-thumb:hover, .pb-preview::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 153, 0.75); }

/* что уйдёт в пост: только отмеченные или весь инвентарь */
.pb-imode { display: grid; gap: 3px; margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: #121513; border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.8rem; line-height: 1.45; color: #8E948F; }
.pb-imode b { color: #E8E8E8; }
.pb-imode__on { font-weight: 700; color: #00E599; }
.pb-imode__on b { color: #00E599; }
.pb-imode:has(.pb-imode__on) { border-color: rgba(0, 229, 153, 0.35); background: rgba(0, 229, 153, 0.05); }

/* разделы и массовые действия */
.pb-icats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pb-icats:empty, .pb-ibulk:empty { display: none; }
.pb-icats button {
    padding: 5px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #121513;
    color: #A3A9A5;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pb-icats button:hover { color: #E8E8E8; }
.pb-icats button[aria-pressed="true"] { color: #00E599; border-color: rgba(0, 229, 153, 0.45); background: rgba(0, 229, 153, 0.07); }
.pb-ibulk { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.pb-ibulk button {
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: none;
    color: #C9CEC9;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.pb-ibulk button:hover:not(:disabled) { color: #00E599; border-color: rgba(0, 229, 153, 0.5); }
.pb-ibulk button:disabled { opacity: 0.35; cursor: default; }
.pb-ibulk__tip { margin-left: auto; font-size: 0.7rem; color: #5E645F; }
.pb-it { cursor: pointer; user-select: none; }
.pb-it:hover:not(.is-pin) { border-color: rgba(255, 255, 255, 0.14); }
.pb-it:focus-visible { outline: 2px solid rgba(0, 229, 153, 0.6); outline-offset: 1px; }
.pb-items__load { padding: 12px 0; font-size: 0.76rem; }

/* любая строка шаблона — правится прямо в превью */
.pb-edit--line { outline-color: transparent; }
[data-steam-post]:hover .pb-edit--line { outline-color: rgba(102, 192, 244, 0.28); }
[data-tg-cap]:hover .pb-edit--line { outline-color: var(--edit-line); outline-style: dashed; }
.pb-edit--line:hover { outline-color: rgba(143, 216, 255, 0.8) !important; }
.pb-linkbtn { border: 0; padding: 0; margin-left: 4px; background: none; color: #00E599; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pb-linkbtn:hover { color: #6BFFCB; }

/* ----- готовые наборы одной кнопкой (2026-10-05) ----- */
.pb-quick {
    padding: 14px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(0, 229, 153, 0.06), rgba(0, 229, 153, 0) 70%), #0E100F;
    border: 1px solid rgba(0, 229, 153, 0.16);
}
.pb-quick__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pb-quick__h b { font-size: 0.92rem; font-weight: 800; }
.pb-quick__h span { font-size: 0.76rem; color: #6E746F; }
/* четыре набора в один ряд (05.10): при auto-fill на 1440 выходило 3 + 1, «Весь инвентарь» один во втором ряду */
.pb-quick__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pb-qk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #121513;
    color: #E8E8E8;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.pb-qk:hover { border-color: rgba(0, 229, 153, 0.4); transform: translateY(-1px); }
.pb-qk:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.25); }
.pb-qk[aria-pressed="true"] { border-color: #00E599; background: rgba(0, 229, 153, 0.08); }
.pb-qk__i { flex: none; font-size: 1.15rem; line-height: 1; }
.pb-qk__t { display: grid; gap: 2px; min-width: 0; font-size: 0.84rem; font-weight: 700; }
.pb-qk__t small { font-size: 0.72rem; font-weight: 500; color: #8E948F; }

.pb-note--soft { margin: 0 0 12px; }

/* ----- предупреждения о посте над превью (2026-10-05) ----- */
.pb-warns { display: grid; gap: 8px; }
.pb-warn {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    animation: pb-fade 0.25s ease both;
}
.pb-warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.pb-warn a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pb-warn--warn { background: rgba(255, 183, 77, 0.08); border: 1px solid rgba(255, 183, 77, 0.32); color: #F5D9A8; }
.pb-warn--warn svg { color: #FFB74D; }
.pb-warn--info { background: rgba(130, 175, 255, 0.07); border: 1px solid rgba(130, 175, 255, 0.24); color: #CFDDF5; }
.pb-warn--info svg { color: #8AB4FF; }
@media (max-width: 560px) {
    .pb-quick__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* длинные названия наборов («Рекомендуемый») на телефоне не упираются в край карточки */
/* в четыре колонки «Рекомендуемый» рвался посреди слова (overflow-wrap: anywhere) — переносим по слогам */
.pb-qk__t { overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
/* четыре в ряд: поуже поля и шрифт, чтобы «Рекомендуемый» влезал без переноса */
.pb-qk { padding: 10px; }
.pb-qk__t { font-size: 0.8rem; }
@media (max-width: 560px) { .pb-qk { padding: 10px; gap: 8px; } .pb-qk__t { font-size: 0.8rem; } }

/* ----- пустые разделы одной строкой (05.10) ----- */
.pb-cats-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 9px 12px; border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 12px; font-size: 0.78rem; color: #8E948F; }
.pb-cats-empty button { flex: none; background: none; border: 0; padding: 4px 2px; color: #00E599; font: inherit; font-weight: 700; cursor: pointer; }
.pb-cats-empty button:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ----- тост «Вернуть» после сброса (05.10) ----- */
.pb-undo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 14px 14px 16px; min-width: min(360px, calc(100vw - 32px)); max-width: calc(100vw - 32px); border-radius: 14px; background: #1A201C; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); overflow: hidden; color: #E8E8E8; }
.pb-undo.is-on { animation: pb-fade 0.25s ease both; }
.pb-undo__t { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.pb-undo__t b { font-size: 0.86rem; }
.pb-undo__t small { font-size: 0.74rem; color: #8E948F; }
.pb-undo__btn { flex: none; background: none; border: 1px solid rgba(0, 229, 153, 0.45); border-radius: 10px; padding: 8px 12px; color: #00E599; font: inherit; font-weight: 700; cursor: pointer; }
.pb-undo__btn:hover { background: rgba(0, 229, 153, 0.1); }
.pb-undo__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #00E599; transform-origin: left; }
.pb-undo.is-on .pb-undo__bar { animation: pb-undo-drain 10s linear forwards; }
@keyframes pb-undo-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .pb-undo.is-on, .pb-undo.is-on .pb-undo__bar { animation: none; } }
.pb-undo[hidden] { display: none; }

/* ----- свои иконки интерфейса вместо эмодзи (05.10) ----- */
.pb-ico { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -0.16em; }
.pb-cat__ico .pb-ico { width: 18px; height: 18px; color: #C9D1CB; }
.pb-qk__i .pb-ico { width: 22px; height: 22px; color: #00E599; }
.pb-it__t b .pb-ico, [data-icat] .pb-ico { width: 13px; height: 13px; margin-right: 5px; color: #8E948F; }
.pb-it__img > .pb-ico { width: 26px; height: 26px; color: #6E746F; }
.pb-it__a button .pb-ico, .pb-li__act button .pb-ico { width: 15px; height: 15px; }
.pb-it__a button[aria-pressed="true"] .pb-ico { color: #00E599; }
[data-ibulk] .pb-ico, [data-if] .pb-ico, .pb-imode .pb-ico, .pb-hint .pb-ico, .pb-pv-cap .pb-ico, .pb-sticks__h .pb-ico { color: #00E599; }

/* ----- «Что у вас просят» по офферам расширения (05.10) ----- */
.pb-wanted:empty { display: none; }
.pb-wanted { display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(245, 182, 66, 0.28); background: rgba(245, 182, 66, 0.06); }
.pb-wanted__h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 0.8rem; }
.pb-wanted__h .pb-ico { color: #F5B642; }
.pb-wanted__h span { color: #8E948F; font-size: 0.74rem; }
.pb-wanted__row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; min-width: 0; }
.pb-wanted__n { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pb-wanted__c { color: #F5B642; font-size: 0.74rem; white-space: nowrap; }
.pb-wanted__ok { color: #00E599; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.pb-it__t em.pb-want { color: #F5B642; display: inline-flex; align-items: center; gap: 4px; }
.pb-it__t em.pb-want .pb-ico { width: 11px; height: 11px; }

/* ----- холд Steam (05.10 справка, 11.10 переключатель): «Предметы в холде Steam» и плашка таймера в строке предмета —
   как .lock-pill на карточке сайта (css/skin-card.css: тёмная капсула, часы янтарным), только в строку, а не поверх
   картинки: миниатюра 44×33 ----- */
.pb-held:empty { display: none; }
.pb-held { margin: 0 0 12px; }
.pb-heldtgl { margin-bottom: 6px; }
.pb-heldtgl .pb-ico { color: #F0B35B; }
.pb-heldtgl small { color: #8E948F; font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-heldsub { margin: 0; line-height: 1.45; }
.pb-it .lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px 1px 5px;
    border-radius: 99px;
    background: rgba(12, 14, 13, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #D7DBD8;
    font-size: 0.66rem;
    line-height: 1.3;
    vertical-align: 1px;
    white-space: nowrap;
    cursor: help;
    font-variant-numeric: tabular-nums;
}
.pb-it .lock-pill svg { width: 11px; height: 11px; color: #F0B35B; flex: none; }
.pb-it .lock-pill b { font-weight: 700; }
.pb-it.is-locked .pb-it__img img { filter: saturate(0.85); }

/* ----- «Студия», полировка (05.10): лента группы, подсказка, стрелки по наведению ----- */
.pb-coach { position: relative; display: grid; gap: 6px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: #00E599; color: #03140D; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); animation: pb-rise 360ms var(--pb-e) both; }
.pb-coach.is-out { animation: pb-coachOut 140ms ease both; }
@keyframes pb-coachOut { to { opacity: 0; transform: translateY(-4px); } }
.pb-coach b { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; }
.pb-coach p { margin: 0; font-size: 0.8rem; line-height: 1.45; }
.pb-coach button { justify-self: end; background: #03140D; color: #00E599; border: 0; border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.pb-coach::after { content: ""; position: absolute; left: 34px; bottom: -6px; width: 12px; height: 12px; background: #00E599; transform: rotate(45deg); }
@media (hover: hover) and (min-width: 641px) {
    .pb-cat .pb-mv { opacity: 0; transition: opacity 0.15s ease; }
    .pb-cat:hover .pb-mv, .pb-cat:focus-within .pb-mv { opacity: 1; }
}

/* ----- шаг 2: массовые действия в меню «⋯» (05.10, аудит B11) ----- */
.pb-imenu { position: relative; }
.pb-imenu > summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); color: #C9D1CB; font-weight: 800; letter-spacing: 1px; cursor: pointer; user-select: none; }
.pb-imenu > summary::-webkit-details-marker { display: none; }
.pb-imenu[open] > summary { border-color: rgba(0, 229, 153, 0.5); color: #00E599; }
.pb-imenu .pb-ibulk { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; gap: 6px; min-width: 230px; margin: 0; padding: 10px; border-radius: 12px; background: #141816; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.pb-imenu .pb-ibulk button { justify-content: flex-start; width: 100%; }
.pb-imenu .pb-ibulk__tip { margin: 2px 0 0; }
/* заголовок шага не переносится — длинную сводку обрезает многоточие (05.10) */
.pb-step__h h3 { white-space: nowrap; flex: none; }

/* ===== Ник и аватар клиента на ботах (18.10): переключатель под превью поста, аватар клиента в превью ===== */
.pb-bp { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #0E100F; border: 1px solid rgba(255, 255, 255, 0.07); }
.pb-bp:empty { display: none; }
.pb-bp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; font-weight: 600; }


/* ===== Проверка своего администратором (рефералка 2.0, 27.10) ===== */
.pb-mod { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 4px; padding: 9px 12px; border-radius: 10px; font-size: 0.76rem; line-height: 1.45; }
.pb-mod svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.pb-mod[data-state="pending"] { color: #D9CC9E; background: rgba(205, 191, 142, 0.08); border: 1px solid rgba(205, 191, 142, 0.28); }
.pb-mod[data-state="rejected"], .pb-mod[data-state="auto_rejected"] { color: #FFB1A6; background: rgba(255, 143, 128, 0.08); border: 1px solid rgba(255, 143, 128, 0.3); }
.pb-mod[data-state="approved"] { color: #7EE8BE; background: rgba(0, 229, 153, 0.06); border: 1px solid rgba(0, 229, 153, 0.22); }

/* ============================================================
   Конструктор v2 (14.11, наброски A–D одобрены владельцем): телефон Telegram 1:1, лента и сетка круга картинок,
   большой просмотр с меню на карточке предмета, три положения предмета, фильтр картинок, Steam в окне браузера.
   Иконки Lucide (ISC). Без backdrop-filter: «стекло» — полупрозрачным фоном.
   ============================================================ */
.pb-lu { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -0.18em; }
.pb-preview.is-tall { position: static; }
.pb-pane { display: grid; gap: 12px; min-width: 0; }
.pb-pv-tabs, .pb-pv-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pb-seg button small { margin-left: 3px; font-size: 0.74rem; font-weight: 700; color: #6E746F; font-variant-numeric: tabular-nums; }
.pb-seg button small:empty { display: none; }
.pb-seg button[aria-selected="true"] small { color: #00E599; }
.pb-seg button .pb-lu { width: 16px; height: 16px; }
.pb-seg--xs button { padding: 4px 9px; font-size: 0.74rem; border-radius: 8px; gap: 5px; }
.pb-cyc button { display: inline-grid; place-items: center; padding: 0; }
.pb-cyc button .pb-lu { width: 16px; height: 16px; }
.pb-cyc__v { color: #9A9F9A; }
.pb-cyc__v b { color: #E8E8E8; font-weight: 700; }
.pb-btn--sm, .pb-btn--xs, .pb-lb__foot .pb-btn, .pb-ringsum .pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.pb-btn--sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 10px; }
.pb-btn--xs { padding: 5px 10px; font-size: 0.74rem; border-radius: 9px; }
.pb-btn svg { width: 15px; height: 15px; flex: none; }
.pb-btn:disabled:hover { border-color: rgba(255, 255, 255, 0.1); color: #E8E8E8; }
.pb-ibtn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #E8E8E8; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.pb-ibtn:hover { border-color: rgba(0, 229, 153, 0.4); color: #00E599; }
.pb-inrot { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 700; color: #A3A9A5; white-space: nowrap; }
.pb-switch--sm { width: 30px; height: 18px; }
.pb-switch--sm::after { width: 12px; height: 12px; }
.pb-switch--sm[aria-checked="true"]::after { transform: translateX(12px); }
.pb-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 0.68rem; font-weight: 750; line-height: 1.35; letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.06); color: #A3A9A5; white-space: nowrap; }
.pb-tag--own { background: rgba(0, 229, 153, 0.12); color: #00E599; }
.pb-tag--tpl { background: rgba(143, 216, 255, 0.1); color: #8FD8FF; }
.pb-tag--stk { background: rgba(247, 201, 72, 0.12); color: #F7C948; }
.pb-tag--type { background: rgba(201, 168, 255, 0.12); color: #C9A8FF; }
.pb-ringnote { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: rgba(143, 216, 255, 0.07); border: 1px solid rgba(143, 216, 255, 0.24); color: #CFDDF5; font-size: 0.8rem; line-height: 1.45; animation: pb-fade 0.25s ease both; }
.pb-ringnote .pb-lu { width: 15px; height: 15px; margin-top: 2px; color: #8FD8FF; }

/* ----- телефон Telegram (css/post-phone.css рисует iPhone и Telegram iOS; здесь подпись с правкой в цветах темы) ----- */
.pb-stage { display: flex; justify-content: center; padding: 6px 0 4px; min-width: 0; }
.pp-tg .pb-skel { height: 220px; background: linear-gradient(100deg, rgba(127, 127, 127, 0.08) 30%, rgba(127, 127, 127, 0.18) 50%, rgba(127, 127, 127, 0.08) 70%) 0 0 / 300% 100%; }
.pp-tg { --edit-chg: rgba(46, 158, 62, 0.2); }
.pp-tg.pp-tg--dark { --edit-chg: rgba(123, 200, 98, 0.22); }
.pp-tg .pb-edit { outline-color: var(--edit-soft); }
.pp-tg .pb-edit:hover { outline-color: var(--edit-line); background: var(--edit-hl); }
.pp-tg .pb-edit:focus { outline: 2px solid var(--edit-line); background: var(--edit-hl); }
.pp-tg .pb-edit--line { outline-color: transparent; }
.pp-tg [data-tg-cap]:hover .pb-edit--line { outline-color: var(--edit-soft); outline-style: dashed; }
.pp-tg .pb-edit--line:hover { outline-color: var(--edit-line) !important; }
.pp-tg .pb-edit:empty::before { color: var(--time); }
.pp-tg .pb-li:hover { background: var(--edit-hl); }
.pp-tg .pb-li__act { background: var(--bub); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 0 0 1px var(--edit-soft); }
.pp-tg .pb-li__act button { color: var(--txt); background: var(--edit-hl); opacity: 0.9; }
.pp-tg .pb-li__act button:hover { background: var(--edit-soft); opacity: 1; }
.pp-tg .pb-err { color: #B26B00; }
.pp-tg.pp-tg--dark .pb-err { color: #F5C27A; }
/* телефон и планшет: кнопки строки стоят в строке, без плавающей подложки */
@media (hover: none) { .pp-tg .pb-li__act { background: none; box-shadow: none; } }
/* фото поста в телефоне: заглушка, пока рисуется, и плашка поверх прежней картинки */
.pb-ph-ph { display: grid; place-items: center; width: 100%; min-height: 220px; background: linear-gradient(100deg, #0B0F14 30%, #141c22 50%, #0B0F14 70%) 0 0 / 300% 100%; animation: pb-shimmer 1.4s linear infinite; }
/* известная пропорция картинки (stepAr): заглушка ровно такой формы, как будущая картинка */
.pb-ph-ph.is-ar { min-height: 0; }
.pb-ph-ph span, .pb-ph-busy { padding: 6px 12px; border-radius: 99px; background: rgba(10, 10, 10, 0.82); color: #E8E8E8; font: 650 12px/1.3 'Inter', Arial, sans-serif; letter-spacing: 0; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.45); white-space: nowrap; }
.pb-ph-busy { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; }
.pp-tg__photo:has(> .pb-ph-busy) > img, .pb-lb__img:has(> .pb-ph-busy) > img { opacity: 0.5; transition: opacity 0.2s ease; }
.pb-err--ph { min-height: 160px; align-items: center; justify-content: center; padding: 20px; background: #0B0F14; color: #F5C27A; text-align: left; letter-spacing: 0; font-size: 13px; }
.pp-tg__photo .pb-album img { height: 100%; }

/* ----- лента миниатюр круга над телефоном (А-б) ----- */
.pb-rib { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #0E100F; border: 1px solid rgba(255, 255, 255, 0.07); min-width: 0; }
.pb-rib__h { display: flex; align-items: center; gap: 10px; }
.pb-rib__ttl { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.pb-rib__ttl > b { margin-right: 8px; font-size: 0.9rem; font-weight: 800; }
.pb-rib__ttl .pb-muted { white-space: nowrap; }
.pb-rib__sp { flex: 1; }
.pb-rib__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.pb-rib__track { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 3px; scrollbar-width: none; }
.pb-rib__track::-webkit-scrollbar { display: none; }
.pb-rib__track.is-more { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.pb-rib__t { position: relative; flex: none; width: 72px; display: grid; align-content: start; gap: 5px; scroll-snap-align: start; }
/* номер и галочка — на полосе над картинкой, сама картинка ниже и ничем не закрыта (проверка 14.11, п.9) */
.pb-rib__pic { position: relative; display: grid; grid-template-rows: 22px minmax(0, 1fr); width: 72px; height: 88px; padding: 0 0 4px; border: 0; border-radius: 10px; overflow: hidden; background: #070908; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11); cursor: pointer; transition: box-shadow 0.15s ease; }
.pb-rib__img { display: grid; place-items: center; min-height: 0; padding: 0 3px; container-type: size; }
.pb-rib__pic img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.pb-rib__pic:hover { box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.5); }
.pb-rib__pic:focus-visible { outline: 2px solid #00E599; outline-offset: 2px; }
.pb-rib__t.is-cur .pb-rib__pic { box-shadow: 0 0 0 2px #00E599, 0 0 16px rgba(0, 229, 153, 0.25); }
.pb-rib__t.is-off .pb-rib__pic img { opacity: 0.36; filter: grayscale(0.7); }
.pb-rib__ph { display: block; width: min(100cqw, 100cqh * var(--ar, 1.25)); aspect-ratio: var(--ar, 1.25); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); background: linear-gradient(100deg, #0B0F14 30%, #141c22 50%, #0B0F14 70%) 0 0 / 300% 100%; animation: pb-shimmer 1.4s linear infinite; }
.pb-rib__pic em { align-self: center; justify-self: start; margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 5px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #E8E8E8; font-size: 0.66rem; font-weight: 800; font-style: normal; }
.pb-rib__t.is-cur .pb-rib__pic em { background: #00E599; color: #0A0A0A; }
.pb-rib__chk { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #00E599; color: #0A0A0A; cursor: pointer; box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.6); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.pb-rib__chk:hover { transform: scale(1.08); }
.pb-rib__chk .pb-lu { width: 11px; height: 11px; stroke-width: 3.2; }
.pb-rib__t.is-off .pb-rib__chk { background: rgba(10, 10, 10, 0.88); color: #8E948F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.pb-rib__t.is-off .pb-rib__chk .pb-lu { stroke-width: 2.2; }
.pb-rib__n { font-size: 0.68rem; font-weight: 650; line-height: 1.25; color: #8E948F; text-align: center; overflow-wrap: anywhere; }
.pb-rib__t.is-cur .pb-rib__n { color: #00E599; }
.pb-rib__cur { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pb-rib__cur > b { font-size: 0.88rem; font-weight: 800; overflow-wrap: anywhere; }

/* ----- «Все картинки» (А-а) ----- */
.pb-allpics { padding: 16px; border-radius: 18px; background: #0E100F; border: 1px solid rgba(255, 255, 255, 0.07); min-width: 0; }
.pb-allpics__top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pb-allpics__top .pb-muted { flex: 1 1 260px; line-height: 1.45; }
.pb-allpics__filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-allpics__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pb-at { display: grid; align-content: start; gap: 8px; padding: 8px; border-radius: 14px; background: #101311; border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; transition: border-color 0.2s ease, background 0.2s ease; }
/* плитка: полоса с номером и «в превью» на рамке, под ней картинка целиком, ничем не закрытая сверху (проверка 14.11, п.9) */
.pb-at__img { position: relative; display: grid; grid-template-rows: 30px minmax(0, 1fr); width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.pb-at__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.pb-at__pic { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 9px; overflow: hidden; background: #070908; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11); container-type: size; }
.pb-at__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s var(--pb-e), opacity 0.2s ease; }
.pb-at__img:hover img { transform: scale(1.025); }
.pb-at__img:focus-visible { outline: 2px solid #00E599; outline-offset: 2px; border-radius: 9px; }
.pb-at__n { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: #E8E8E8; font-size: 0.72rem; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pb-at.is-cur .pb-at__n { background: rgba(0, 229, 153, 0.14); color: #00E599; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.45); }
.pb-at__cur { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: #00E599; color: #0A0A0A; font-size: 0.68rem; font-weight: 800; line-height: 16px; }
.pb-at__zoom { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 10, 10, 0.8); color: #E8E8E8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pb-at__zoom .pb-lu { width: 14px; height: 14px; }
.pb-at__off { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 40px 8px 8px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent); font-size: 0.7rem; font-weight: 750; color: #C9CEC9; text-align: left; }
.pb-at.is-off .pb-at__img img { opacity: 0.36; filter: grayscale(0.7); }
.pb-at.is-off .pb-at__meta b { color: #8E948F; }
.pb-at.is-cur { border-color: rgba(0, 229, 153, 0.42); background: rgba(0, 229, 153, 0.04); }
.pb-at__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 0 2px 2px; }
.pb-at__meta > div { min-width: 0; }
.pb-at__meta b { display: block; font-size: 0.8rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.pb-at__meta small { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; margin-top: 4px; font-size: 0.7rem; color: #6E746F; }
.pb-at__meta .pb-switch { margin-top: 1px; }
.pb-at__skel { display: grid; place-items: center; width: min(100cqw, 100cqh * var(--ar, 1.25)); aspect-ratio: var(--ar, 1.25); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #8E948F; font-size: 0.74rem; font-weight: 700; background: linear-gradient(100deg, #0B0F14 30%, #141c22 50%, #0B0F14 70%) 0 0 / 300% 100%; animation: pb-shimmer 1.4s linear infinite; }
.pb-at__busy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; border-radius: 99px; background: rgba(10, 10, 10, 0.85); color: #E8E8E8; font-size: 0.7rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.45); }
.pb-at__pic:has(> .pb-at__busy) img { opacity: 0.5; }
.pb-at__why { display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; text-align: center; font-size: 0.74rem; line-height: 1.4; color: #A3A9A5; }
.pb-at__why svg { width: 22px; height: 22px; color: #6E746F; }
.pb-at__img.is-why { cursor: default; }
.pb-at__img.is-why .pb-at__pic { background: repeating-linear-gradient(135deg, #0A0C0B 0 10px, #0D100E 10px 20px); }
.pb-at.is-why .pb-at__meta b { color: #8E948F; }
.pb-at__ghost { display: block; width: 60%; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.pb-dups { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #121513; border: 1px dashed rgba(255, 255, 255, 0.12); font-size: 0.78rem; line-height: 1.45; color: #A3A9A5; }
.pb-dups p { margin: 0; }
.pb-dups .pb-lu { margin-top: 2px; color: #8FD8FF; }

/* ----- карточка круга в шаге «Стили и картинка» ----- */
.pb-ringsum-box:empty { display: none; }
.pb-ringsum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px; border-radius: 14px; background: #101311; border: 1px solid rgba(255, 255, 255, 0.06); }
.pb-ringsum__th { position: relative; flex: none; width: 112px; height: 44px; }
.pb-ringsum__i { position: absolute; top: 0; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: #070908; box-shadow: 0 0 0 2px #101311, inset 0 0 0 1px rgba(255, 255, 255, 0.11); }
.pb-ringsum__i:nth-child(1) { left: 0; z-index: 3; }
.pb-ringsum__i:nth-child(2) { left: 34px; z-index: 2; }
.pb-ringsum__i:nth-child(3) { left: 68px; z-index: 1; }
.pb-ringsum__i img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pb-ringsum__i.is-ph { background: linear-gradient(100deg, #0B0F14 30%, #141c22 50%, #0B0F14 70%) 0 0 / 300% 100%; animation: pb-shimmer 1.4s linear infinite; }
.pb-ringsum__t { flex: 1 1 180px; min-width: 0; font-size: 0.8rem; line-height: 1.4; color: #8E948F; }
.pb-ringsum__t b { display: block; color: #E8E8E8; font-size: 0.86rem; }

/* ----- большой просмотр картинки круга (А-а низ, Б-а) ----- */
.pb-lbx { position: absolute; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px 32px; box-sizing: border-box; background: rgba(0, 0, 0, 0.78); }
.pb-lbx.is-in { animation: pb-fade 200ms ease both; }
.pb-lbx.is-in .pb-lb { animation: pb-pop 260ms var(--pb-e) both; }
.pb-lb { position: relative; max-width: 1080px; margin: 0 auto; border-radius: 22px; background: #0C0E0D; border: 1px solid rgba(255, 255, 255, 0.11); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.pb-lb__h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pb-lb__h h3 { margin: 0 auto 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; font-size: 1rem; font-weight: 800; }
.pb-lb__name { overflow-wrap: anywhere; }
.pb-lb__n { font-size: 0.8rem; font-weight: 700; color: #8E948F; font-variant-numeric: tabular-nums; }
.pb-lb__x { display: grid; place-items: center; padding: 0; }
.pb-lb__x .pb-lu { width: 18px; height: 18px; }
.pb-lb__stage { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 10px; padding: 18px 14px; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 229, 153, 0.05), transparent 70%), #080A09; }
.pb-lb__nav { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #E8E8E8; cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.pb-lb__nav:hover { border-color: rgba(0, 229, 153, 0.5); color: #00E599; }
.pb-lb__nav .pb-lu { width: 22px; height: 22px; }
.pb-lb__img { --lbh: max(260px, calc(100dvh - 400px)); position: relative; container-type: inline-size; justify-self: center; width: min(100%, calc(var(--lbh) * var(--ar)), 960px); aspect-ratio: var(--ar); }
.pb-lb__img > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pb-lb__img.is-ph { display: grid; }
.pb-lb__img .pb-ph-ph, .pb-lb__img .pb-err--ph { height: 100%; min-height: 0; border-radius: 8px; box-sizing: border-box; }
/* карточка предмета на картинке: обводка при наведении, по нажатию меню */
.pb-hot { position: absolute; padding: 0; border: 0; border-radius: 1.4cqw; background: transparent; cursor: pointer; transition: box-shadow 0.15s ease; }
.pb-hot:hover, .pb-hot.is-on, .pb-hot:focus-visible { outline: none; box-shadow: 0 0 0 2px #00E599, 0 0 0 6px rgba(0, 229, 153, 0.18), 0 0 30px rgba(0, 229, 153, 0.35); }
.pb-hot.is-gone { container-type: size; display: grid; place-items: center; align-content: center; gap: 4px; padding: 2px; box-sizing: border-box; text-align: center; color: #E8E8E8; cursor: default; background: repeating-linear-gradient(135deg, rgba(8, 10, 9, 0.86) 0 10px, rgba(8, 10, 9, 0.76) 10px 20px); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 115, 0.6); }
.pb-hot.is-gone .pb-lu { width: clamp(12px, 18cqmin, 26px); height: clamp(12px, 18cqmin, 26px); color: #FF5A73; }
.pb-hot.is-gone span { font-size: clamp(8px, 9cqw, 12px); font-weight: 750; line-height: 1.2; padding: 0 3px; }
.pb-hot.is-gone button { padding: 3px 8px; border: 0; border-radius: 99px; background: rgba(0, 229, 153, 0.16); color: #00E599; font: inherit; font-size: clamp(8px, 9cqw, 11px); font-weight: 750; cursor: pointer; }
.pb-hot.is-gone button:hover { background: rgba(0, 229, 153, 0.28); }
@container (max-width: 84px) { .pb-hot.is-gone span { display: none; } }
@container (max-height: 70px) { .pb-hot.is-gone .pb-lu { display: none; } }
.pb-menu { position: absolute; z-index: 5; width: 300px; max-width: calc(100vw - 48px); padding: 6px; box-sizing: border-box; border-radius: 14px; background: #151917; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4); text-align: left; visibility: hidden; }
.pb-menu.is-in { visibility: visible; animation: pb-pop 180ms var(--pb-e) both; }
.pb-menu::before { content: ""; position: absolute; top: var(--ay, 26px); width: 12px; height: 12px; background: #151917; transform: rotate(45deg); }
.pb-menu[data-side="r"]::before { left: -7px; border-left: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.pb-menu[data-side="l"]::before { right: -7px; border-right: 1px solid rgba(255, 255, 255, 0.12); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pb-menu[data-side="c"]::before { display: none; }
.pb-menu__h { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pb-menu__h > div { min-width: 0; }
.pb-menu__h b { display: block; font-size: 0.84rem; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.pb-menu__h small { display: block; margin-top: 1px; font-size: 0.72rem; line-height: 1.35; color: #8E948F; }
.pb-menu__ph { flex: none; width: 46px; height: 34px; border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #0A0F0D; }
.pb-menu__ph img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pb-menu button { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: #E8E8E8; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s ease; }
.pb-menu button:hover, .pb-menu button:focus-visible { outline: none; background: rgba(255, 255, 255, 0.05); }
.pb-menu button .pb-lu { width: 18px; height: 18px; margin-top: 1px; color: #A3A9A5; }
.pb-menu button b { display: block; font-size: 0.84rem; font-weight: 700; line-height: 1.3; }
.pb-menu button small { display: block; font-size: 0.72rem; line-height: 1.35; color: #8E948F; }
.pb-menu button.is-hl { background: rgba(0, 229, 153, 0.08); box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.25); }
.pb-menu button.is-hl:hover { background: rgba(0, 229, 153, 0.13); }
.pb-menu button.is-hl .pb-lu { color: #00E599; }
.pb-menu button.is-danger .pb-lu { color: #FF5A73; }
/* «Убраны:» под картинкой */
.pb-removed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pb-removed__l { font-size: 0.78rem; font-weight: 700; color: #8E948F; }
.pb-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; box-sizing: border-box; padding: 4px 5px 4px 10px; border-radius: 99px; background: #121513; border: 1px solid rgba(255, 255, 255, 0.11); font-size: 0.76rem; color: #A3A9A5; animation: pb-pop 200ms var(--pb-e) both; }
.pb-chip b { min-width: 0; color: #E8E8E8; font-weight: 700; overflow-wrap: anywhere; }
.pb-chip em { font-style: normal; color: #6E746F; white-space: nowrap; }
.pb-chip button { flex: none; padding: 3px 9px; border: 0; border-radius: 99px; background: rgba(0, 229, 153, 0.12); color: #00E599; font: inherit; font-size: 0.72rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.pb-chip button:hover { background: rgba(0, 229, 153, 0.22); }
.pb-chip--more { padding: 6px 12px; font: inherit; font-size: 0.76rem; font-weight: 750; color: #E8E8E8; cursor: pointer; }
.pb-chip--more:hover { border-color: rgba(0, 229, 153, 0.45); color: #00E599; }
.pb-removed__note { display: flex; align-items: flex-start; gap: 8px; width: 100%; font-size: 0.76rem; line-height: 1.45; color: #8E948F; }
.pb-removed__note .pb-lu { width: 14px; height: 14px; margin-top: 2px; color: #8FD8FF; }
.pb-lb__strip { display: flex; justify-content: safe center; gap: 8px; padding: 12px 16px 14px; overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, 0.07); scrollbar-width: thin; scrollbar-color: rgba(0, 229, 153, 0.45) transparent; }
.pb-lb__th { flex: none; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #070908; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11); cursor: pointer; transition: box-shadow 0.15s ease; }
.pb-lb__th img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pb-lb__th:hover { box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.5); }
.pb-lb__th.is-cur { box-shadow: 0 0 0 2px #00E599, 0 0 16px rgba(0, 229, 153, 0.25); }
.pb-lb__th.is-off img { opacity: 0.36; filter: grayscale(0.7); }
.pb-lb__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pb-lb__foot .pb-muted { flex: 1 1 260px; line-height: 1.45; }
/* телефон: меню снизу выезжающей панелью */
.pb-lbsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; background: #121513; border-top: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6); animation: pb-sheet 260ms var(--pb-e) both; }
@keyframes pb-sheet { from { transform: translateY(100%); } }
.pb-lbsheet__hd { display: block; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.pb-lbsheet .pb-menu { position: static; width: auto; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; visibility: visible; animation: none; }
.pb-lbsheet .pb-menu::before { display: none; }
.pb-lbsheet .pb-menu button { padding: 12px 10px; }
.pb-lbsheet__x { width: 100%; margin-top: 8px; }
.pb-lbx.has-sheet::after { content: ""; position: fixed; inset: 0; z-index: 2; background: rgba(0, 0, 0, 0.55); }

/* ----- шаг «Предметы в посте»: легенда, фильтр картинок, три положения (Б-б, B-filtr) ----- */
.pb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #121513; border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.76rem; color: #A3A9A5; }
.pb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pb-legend b { font-weight: 750; }
.pb-legend .pb-lu { width: 15px; height: 15px; }
.pb-legend .is-all b, .pb-legend .is-all .pb-lu { color: #00E599; }
.pb-legend .is-txt b, .pb-legend .is-txt .pb-lu { color: #8FD8FF; }
.pb-legend .is-hid b, .pb-legend .is-hid .pb-lu { color: #FF5A73; }
.pb-imode .pb-lu { width: 14px; height: 14px; color: #00E599; }
.pb-flt { display: grid; gap: 12px; margin: -4px 0 14px; padding: 14px; border-radius: 14px; background: #101311; border: 1px solid rgba(0, 229, 153, 0.22); }
.pb-flt__h { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 0.9rem; }
.pb-flt__h .pb-lu { width: 17px; height: 17px; color: #00E599; }
.pb-flt__h b { font-weight: 800; }
.pb-flt__h small { margin-left: auto; font-size: 0.74rem; font-weight: 650; color: #6E746F; }
.pb-flt__row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.pb-flt__row > span { font-size: 0.84rem; font-weight: 700; }
.pb-flt__row > span small { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 0.74rem; font-weight: 500; color: #8E948F; }
.pb-flt__row .pb-seg { margin-left: auto; }
.pb-rar { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pb-rar i { width: 8px; height: 8px; border-radius: 2px; }
.pb-flt__res { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.pb-flt__res p { margin: 0; font-size: 0.8rem; line-height: 1.45; color: #A3A9A5; }
.pb-flt__res p b { color: #E8E8E8; }
.pb-flt__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-ich { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 3px; border-radius: 99px; background: #151917; border: 1px solid rgba(255, 255, 255, 0.11); font-size: 0.74rem; color: #A3A9A5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pb-ich i { width: 28px; height: 22px; border-radius: 99px; display: grid; place-items: center; overflow: hidden; background: #0A0F0D; }
.pb-ich i img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pb-ich b { color: #E8E8E8; font-weight: 650; }
.pb-ich--more { padding: 3px 10px; }
.pb-flt__note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.74rem; line-height: 1.45; color: #6E746F; }
.pb-flt__note .pb-lu { width: 14px; height: 14px; margin-top: 2px; color: #00E599; }
.pb-items { grid-template-columns: minmax(0, 1fr); max-height: 440px; }
.pb-it { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 7px 8px; }
/* слот действий постоянной ширины: отметка в одну колонку у всех строк, капсула у правого края */
.pb-it__a { align-items: center; justify-content: space-between; gap: 6px; width: 214px; }
.pb-it__a button[aria-pressed="true"] .pb-lu { color: #00E599; }
.pb-it__a .pb-lu { width: 15px; height: 15px; }
.pb-it__pin { display: inline-grid; place-items: center; }
.pb-st3 { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: #0B0D0C; border: 1px solid rgba(255, 255, 255, 0.08); }
.pb-it__a .pb-st3 button { display: inline-flex; align-items: center; gap: 5px; width: auto; height: 26px; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: #7C827E; font: inherit; font-size: 0.72rem; font-weight: 700; white-space: nowrap; opacity: 1; filter: none; cursor: pointer; transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.pb-it__a .pb-st3 button:hover { color: #E8E8E8; background: rgba(255, 255, 255, 0.05); }
.pb-st3 button .pb-lu { width: 14px; height: 14px; }
.pb-st3 button span { display: none; }
.pb-st3 button[aria-checked="true"] span { display: inline; }
.pb-it__a .pb-st3 .is-all[aria-checked="true"] { color: #00E599; background: rgba(0, 229, 153, 0.12); box-shadow: inset 0 0 0 1px rgba(0, 229, 153, 0.35); }
.pb-it__a .pb-st3 .is-txt[aria-checked="true"] { color: #8FD8FF; background: rgba(143, 216, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(143, 216, 255, 0.35); }
.pb-it__a .pb-st3 .is-hid[aria-checked="true"] { color: #FF5A73; background: rgba(255, 90, 115, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 90, 115, 0.35); }
.pb-it.is-txt .pb-it__img, .pb-it.is-flt .pb-it__img { opacity: 0.5; }
.pb-it__t em.pb-it__no { display: inline-flex; align-items: center; gap: 5px; color: #8FD8FF; }
.pb-it__t em.pb-it__no .pb-lu { width: 12px; height: 12px; }
.pb-items__foot { margin: 12px 0 0; }
@media (max-width: 560px) {
    .pb-it { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "img t" "img a"; row-gap: 6px; }
    .pb-it__img { grid-area: img; align-self: start; }
    .pb-it__t { grid-area: t; }
    .pb-it__a { grid-area: a; justify-content: flex-start; width: auto; }
}

/* ----- телефон 390 и узкие окна ----- */
@media (max-width: 640px) {
    .pb-pv-tabs .pb-seg, .pb-pv-ctl .pb-seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .pb-pv-tabs .pb-seg button, .pb-pv-ctl .pb-seg button { justify-content: center; }
    .pb-pv-ctl .pb-cyc { width: 100%; justify-content: space-between; }
    .pb-pv-ctl .pb-cyc__v { flex: 1; text-align: center; }
    .pb-rib { padding: 12px; }
    .pb-rib__row { grid-template-columns: minmax(0, 1fr); }
    .pb-rib__go { display: none; }
    .pb-rib__t, .pb-rib__pic { width: 64px; }
    .pb-rib__pic { height: 80px; }
    .pb-allpics { padding: 12px; }
    .pb-allpics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pb-allpics__filters .pb-seg { width: 100%; display: flex; flex-wrap: wrap; }
    .pb-lbx { padding: 0; background: #050605; }
    .pb-lb { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; }
    .pb-lb__h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
    .pb-lb__h h3 { margin: 0; }
    .pb-lb__h .pb-lb__x { grid-row: 1; grid-column: 2; }
    .pb-lb__h .pb-inrot { grid-column: 1 / -1; }
    .pb-lb__stage { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; }
    .pb-lb__stage > .pb-lb__nav, .pb-lb__stage > span:empty { display: none; }
    .pb-lb__img { width: 100%; }
    .pb-lb__strip { justify-content: flex-start; }
    .pb-lb__th { width: 54px; height: 54px; }
    .pb-lb__foot .pb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pb-ph-ph, .pb-rib__ph, .pb-at__skel, .pb-ringsum__i.is-ph { animation: none; }
    .pb-chip, .pb-ringnote { animation: none; }
}

/* ===== Превью Steam — как на проде (master a3287faa; владелец 14.11: «стим можно оставить так как щас на проде»): комментарий
   на стене группы без окна браузера и шапки группы, тот же вид, что у карточки «Пост» на пульте (.stw в css/pult.css). Стена и
   форум выглядят одинаково, меняется только текст. Чужих комментариев («Как в ленте») нет (владелец 14.11). ===== */
.pb-steam { padding: 12px; border-radius: 12px; background: #1b2838; box-shadow: 0 0 0 1px #2a3f55; text-align: left; font: 14px/1.45 "Motiva Sans", Arial, Helvetica, sans-serif; color: #c6d4df; }
.pb-steam__area {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: min(60vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 14px 14px 16px;
    background: #212d3a;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
    scrollbar-width: thin;
    scrollbar-color: #4c5c6d #18222d;
    contain: content;
}
.pb-stc { position: relative; flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-right: 24px; }
.pb-stc__main { min-width: 0; }
.pb-stc__ava { box-sizing: border-box; width: 40px; height: 40px; padding: 2px; background: #5d5d5d; align-self: start; }
.pb-stc__ava i { display: grid; place-items: center; width: 100%; height: 100%; background: #262626; color: #d4d4d4; font: 700 20px/1 Arial, sans-serif; font-style: normal; }
.pb-stc__ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-stc__auth { display: grid; margin-bottom: 4px; }
.pb-stc__auth b { color: #fff; font-size: 15px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.pb-stc__auth span { color: #5b7590; font-size: 13px; line-height: 1.3; }
.pb-stc__flag { position: absolute; top: 2px; right: 0; width: 16px; height: 16px; fill: #8f98a0; opacity: 0.8; }
.pb-steam__post { color: #c6d4df; white-space: pre-wrap; overflow-wrap: anywhere; }
.pb-steam__post a { color: #ebebeb; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
    .pb-steam { padding: 8px; }
    .pb-steam__area { padding: 12px; }
    .pb-stc { gap: 10px; grid-template-columns: 36px minmax(0, 1fr); padding-right: 18px; }
    .pb-stc__ava { width: 36px; height: 36px; }
}
