/* ============================================
   VotiveRP Profile Page (member_view)
   Единый CSS файл — все profile стили в одном месте
   Подключается через <link> в PAGE_CONTAINER <head>
   ============================================ */



/* === P-BODY-MAIN скругление (без overflow чтобы не обрезать баннер) === */
body[data-template="member_view"] .p-body-main {
    border-radius: 16px 16px 0 0 !important;
}

/* === GRID LAYOUT === */
body[data-template="member_view"] .p-body-pageContent {
    display: grid !important;
    grid-template-columns: 270px 1fr !important;
    grid-template-rows: auto 1fr !important;
    gap: 0 !important;
    align-items: start !important;
    position: relative !important;
    background: #0e0f12 !important;
    border-radius: 16px !important;
}
/* Sidebar фон на всю высоту */
body[data-template="member_view"] .p-body-pageContent::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    background: linear-gradient(180deg, rgba(71, 93, 125, 0.1), #141518 40%) !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    border-right: 1px solid rgba(205, 205, 205, 0.06) !important;
    border-radius: 16px 0 0 16px !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
body[data-template="member_view"] .p-body-pageContent > .block,
body[data-template="member_view"] .p-body-pageContent > .block > .block-container {
    display: contents !important;
}

/* === SIDEBAR === */
body[data-template="member_view"] .p-body-pageContent .block-body {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: start !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden !important;
    position: sticky !important;
    top: 10px !important;
    z-index: 1 !important;
}

/* === TABS (правая часть, верх) === */
body[data-template="member_view"] .block-tabHeader--memberTabs {
    grid-column: 2 !important;
    grid-row: 1 !important;
    background: #141518 !important;
    border-radius: 0 16px 0 0 !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(205, 205, 205, 0.06) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* === CONTENT (правая часть, низ) === */
body[data-template="member_view"] .p-body-pageContent > .tabPanes,
body[data-template="member_view"] .p-body-pageContent > .js-memberTabPanes {
    grid-column: 2 !important;
    grid-row: 2 !important;
    background: #0e0f12 !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    border-top: none !important;
    border-left: none !important;
    border-radius: 0 0 16px 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    list-style: none !important;
}

/* === PROFILE BANNER === */
body[data-template="member_view"] .memberProfileBanner {
    position: relative !important;
    border-radius: 16px 0 0 0 !important;
    background-size: cover !important;
    background-position: center top !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 92%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 0%, black 92%, transparent 100%) !important;
}
body[data-template="member_view"] .memberProfileBanner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 0px, rgba(20, 21, 24, 0.7) 100px, #141518 160px) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}
body[data-template="member_view"] .memberProfileBanner:not([style*="background"])::before {
    background: linear-gradient(180deg, rgba(71, 93, 125, 0.15) 0%, transparent 120px) !important;
}

/* === MEMBER HEADER === */
body[data-template="member_view"] .memberHeader {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* === AVATAR === */
body[data-template="member_view"] .memberHeader-avatar {
    position: static !important;
    float: none !important;
    width: auto !important;
    text-align: center !important;
    padding: 32px 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 2 !important;
    position: relative !important;
}
body[data-template="member_view"] .memberHeader-avatar .avatarWrapper {
    display: inline-block !important;
}
body[data-template="member_view"] .memberHeader-avatar .avatar {
    width: 100px !important;
    height: 100px !important;
    font-size: 100px !important;
    border-radius: 50% !important;
    border: 3px solid #475d7d !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

/* === CONTENT (внутри profileBanner — sidebar контент) === */
body[data-template="member_view"] .memberHeader-content {
    padding: 2px 24px 25px !important;
    position: relative !important;
    z-index: 2 !important;
    float: none !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* === ORDER sidebar элементов (как в макете) === */
body[data-template="member_view"] .memberHeader-name { order: 1 !important; }
body[data-template="member_view"] .memberHeader-blurbContainer { order: 2 !important; }
body[data-template="member_view"] .memberHeader-banners { order: 3 !important; }
body[data-template="member_view"] .memberHeader-actionTop { order: 0 !important; }

/* === ИМЯ === */
/* История никнеймов — иконка поменьше */
body[data-template="member_view"] .memberHeader-nameChangeIndicator .fa-history {
    font-size: 14px !important;
}
/* Галочка верификации — пробел перед ней */
body[data-template="member_view"] .memberHeader-name .fa-check-circle {
    margin-left: 4px !important;
}
body[data-template="member_view"] .memberHeader-name {
    text-align: center !important;
    margin-top: -9px !important;
}
body[data-template="member_view"] .memberHeader-name .username {
    font-size: 20px !important;
    font-weight: 800 !important;
}

/* === ПОДПИСЬ (userTitle) === */
body[data-template="member_view"] .memberHeader-blurb .userTitle {
    display: block !important;
    text-align: center !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #7a91b4 !important;
    font-weight: 600 !important;
    margin-top: -6px !important;
    margin-bottom: 0 !important;
}

/* === GROUP ICONS (gardolir plugin — скрытый div с margin) === */
body[data-template="member_view"] .memberHeader-blurbContainer .group-icons {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

/* === BLURB CONTAINER === */
body[data-template="member_view"] .memberHeader-blurbContainer {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
#XF body[data-template="member_view"] .memberHeader-blurb {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 2px 0 !important;
    outline: 0 !important;
}

/* === БЕЙДЖИ === */
body[data-template="member_view"] .memberHeader-banners {
    text-align: center !important;
    margin-top: -8px !important;
}
/* При наличии подписи — бейджи ниже */
body[data-template="member_view"] .memberHeader-blurbContainer:has(.userTitle) ~ .memberHeader-banners {
    margin-top: 4px !important;
}

/* === СТАТИСТИКА — золотая рамка как в макете === */
#XF body[data-template="member_view"] .memberHeader-stats {
    order: 6 !important;
    margin: 14px -24px 0 !important;
    padding: 16px 24px !important;
    border: 0 !important;
    border-top: 1px solid rgba(71, 93, 125, 0.25) !important;
    border-bottom: 1px solid rgba(71, 93, 125, 0.25) !important;
    background: linear-gradient(135deg, rgba(71, 93, 125, 0.08), rgba(71, 93, 125, 0.03)) !important;
    box-shadow: 0 0 12px rgba(71, 93, 125, 0.05) inset !important;
    position: relative !important;
}
/* Разделитель вертикальный между статами */
#XF body[data-template="member_view"] .memberHeader-stats::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 1px !important;
    height: 28px !important;
    transform: translateY(-50%) !important;
    background: rgba(205, 205, 205, 0.08) !important;
}
body[data-template="member_view"] .memberHeader-stats .pairJustifier {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    justify-items: center !important;
}
body[data-template="member_view"] .memberHeader-stats dl {
    text-align: center !important;
    display: flex !important;
    flex-direction: column-reverse !important;
}
body[data-template="member_view"] .memberHeader-stats dt {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(205, 205, 205, 0.3) !important;
    font-weight: 600 !important;
    margin-top: -2px !important;
}
body[data-template="member_view"] .memberHeader-stats dd {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #7a91b4 !important;
}
body[data-template="member_view"] .memberHeader-stats dd a {
    color: #7a91b4 !important;
    text-decoration: none !important;
}
body[data-template="member_view"] .memberHeader-stats dd a:hover {
    color: #9badc7 !important;
}

/* === РЕГИСТРАЦИЯ / АКТИВНОСТЬ === */
#XF body[data-template="member_view"] .memberHeader-content > .memberHeader-blurb {
    order: 7 !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    padding: 7px 4px 0 0 !important;
    font-size: 12px !important;
    width: 100% !important;
    text-align: left !important;
    color: rgba(205, 205, 205, 0.5) !important;
    border-top: 1px solid rgba(205, 205, 205, 0.06) !important;
    box-sizing: border-box !important;
}
#XF body[data-template="member_view"] .memberHeader-content > .memberHeader-blurb + .memberHeader-blurb {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: -6px !important;
}
/* Pairs: label слева, value справа — inline row */
body[data-template="member_view"] .memberHeader-blurb .pairs.pairs--inline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 4px 0 !important;
}
#XF body[data-template="member_view"] .memberHeader-blurb .pairs.pairs--inline dt {
    display: inline !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    color: #7a91b4 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
body[data-template="member_view"] .memberHeader-blurb .pairs.pairs--inline dt::after {
    display: none !important;
}
#XF body[data-template="member_view"] .memberHeader-blurb .pairs.pairs--inline dd {
    display: inline-block !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.5) !important;
    text-align: right !important;
    position: relative !important;
}

/* === КАСТОМНЫЕ ПОЛЯ В SIDEBAR === */
/* Sidebar info — inline rows (label слева, value справа) */
.vp-sidebar-info {
    margin-top: 4px;
    padding: 6px 0 0 0;
    border-top: 1px solid rgba(205, 205, 205, 0.06);
    order: 8;
}
.vp-sidebar-info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 2px 0;
}
.vp-sidebar-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #7a91b4;
    font-weight: 600;
}
.vp-sidebar-info-value {
    font-size: 14px;
    color: rgba(205, 205, 205, 0.5);
    text-align: right;
    word-break: break-all;
}
.vp-sidebar-info-value a {
    color: rgba(205, 205, 205, 0.5);
    text-decoration: none;
}
.vp-sidebar-info-value a:hover {
    color: #7a91b4;
}
/* Активность — скрыть детали */
.vp-activity-details {
    display: none;
}
/* Кастомный tooltip (position: fixed, в body) */
.vp-tooltip {
    display: none;
    position: fixed;
    background: #151619;
    border: 1px solid rgba(205, 205, 205, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    color: rgba(205, 205, 205, 0.6);
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    cursor: default;
}
.vp-tooltip a {
    color: #7a91b4;
    text-decoration: none;
}
.vp-tooltip a:hover {
    text-decoration: underline;
}
/* Время активности — всегда пунктир, при hover сплошное */
.memberHeader-blurb .pairs--inline dd time {
    text-decoration: underline dotted !important;
    text-decoration-color: rgba(205, 205, 205, 0.2) !important;
    text-underline-offset: 3px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.memberHeader-blurb .pairs--inline dd time:hover {
    text-decoration-style: solid !important;
    text-decoration-color: #7a91b4 !important;
    color: #7a91b4 !important;
}

.vp-sidebar-info-sep {
    display: none;
    height: 0;
    margin: 0;
}
/* Подписчики / Подписки */
.vp-followers {
    margin-top: 8px;
    padding: 8px 0 5px;
    border-top: 1px solid rgba(205, 205, 205, 0.06);
}
.vp-followers-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #7a91b4;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}
.vp-followers-count {
    font-size: 10px;
    color: rgba(205, 205, 205, 0.3);
    font-weight: 400;
}
.vp-followers-list {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}
.vp-followers-list a {
    display: block;
}
#XF body[data-template="member_view"] .vp-follower-av {
    display: block !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    width: 34px !important;
    height: 34px !important;
}
#XF body[data-template="member_view"] .vp-follower-av .avatar,
#XF body[data-template="member_view"] .vp-follower-av .avatar--xxs {
    width: 34px !important;
    height: 34px !important;
    font-size: 34px !important;
    border-radius: 50% !important;
    background: none !important;
    display: block !important;
}
#XF body[data-template="member_view"] .vp-follower-av .avatar img {
    width: 28px !important;
    height: 28px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
#XF body[data-template="member_view"] .vp-follower-av:hover {
    transform: scale(1.15);
    transition: transform 0.15s;
}
.vp-followers-more {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 205, 205, 0.06);
    font-size: 10px;
    font-weight: 700;
    color: #7a91b4;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    flex-shrink: 0;
    padding: 9px 0 0 8px;
}
.vp-followers-more:hover {
    background: rgba(71, 93, 125, 0.2);
}

.vp-sidebar-edit-input {
    width: 100%;
    background: rgba(205, 205, 205, 0.04);
    border: 1px solid rgba(71, 93, 125, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #cdcdcd;
    outline: none;
    text-align: right;
}
.vp-sidebar-edit-input:focus {
    border-color: #475d7d;
    box-shadow: 0 0 6px rgba(71, 93, 125, 0.2);
}

/* === СКРЫТЫЕ ЭЛЕМЕНТЫ === */
body[data-template="member_view"] .memberHeader-separator {
    display: none !important;
}

/* Верхняя панель профиля скрывалась целиком, а в ней лежала единственная штатная
   кнопка загрузки баннера — из-за этого баннер нельзя было сменить даже у себя.
   Возвращаем только её, «Жалоба» и модераторские инструменты остаются скрытыми. */
body[data-template="member_view"] .memberHeader-actionTop {
    display: flex !important;
    justify-content: center;
    margin: 10px 0 0;
    padding: 0;
}
body[data-template="member_view"] .memberHeader-actionTop .buttonGroup {
    display: flex;
    justify-content: center;
}
body[data-template="member_view"] .memberHeader-actionTop .buttonGroup > *:not([href$="/account/banner"]) {
    display: none !important;
}
body[data-template="member_view"] .memberHeader-actionTop a[href$="/account/banner"] {
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
    padding: 5px 12px !important;
    border-radius: 9px !important;
    background: rgba(205, 205, 205, 0.06) !important;
    border: 1px solid rgba(205, 205, 205, 0.12) !important;
    color: #6f7587 !important;
}
/* штатная подпись «Редактировать баннер профиля» не влезает в колонку */
body[data-template="member_view"] .memberHeader-actionTop a[href$="/account/banner"] .button-text {
    font-size: 0 !important;
}
body[data-template="member_view"] .memberHeader-actionTop a[href$="/account/banner"] .button-text::after {
    content: "Сменить баннер";
    font-size: 12px;
}
/* Скрыть стандартные поля на странице настроек.
   Правило намеренно ограничено account_* — без этого оно прятало дату рождения
   и на форме регистрации, где поле обязательное: зарегистрироваться было нельзя. */
body[data-template^="account_"] dl.formRow:has([name="dob_month"]),
body[data-template^="account_"] dl.formRow:has([name="option[show_dob_date]"]),
body[data-template^="account_"] dl.formRow:has([name="profile[location]"]),
body[data-template^="account_"] dl.formRow:has([name="profile[website]"]),
body[data-template^="account_"] dl.formRow:has([name="about_html"]) {
    display: none !important;
}

/* === ВТОРОЙ CONTENT (вне profileBanner — пустой после JS) === */
body[data-template="member_view"] .memberHeader > .memberHeader-content {
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
body[data-template="member_view"] .memberHeader-separator {
    display: none !important;
}

/* Скрываем "Найти", меню, игнор */
body[data-template="member_view"] .memberHeader-buttons .menuTrigger,
body[data-template="member_view"] .memberHeader-buttons .menu,
body[data-template="member_view"] .memberHeader-buttons .button[href*="ignore"],
body[data-template="member_view"] .memberHeader-buttons .button[href*="find"] {
    display: none !important;
}

/* Кнопки: единая группа, после баннеров */
body[data-template="member_view"] .memberHeader-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 13px 0 0 0 !important;
    padding: 0 !important;
    order: 4 !important;
}
body[data-template="member_view"] .memberHeader > .memberHeader-content > .memberHeader-buttons .buttonGroup {
    display: contents !important;
}

/* Стили кнопок */
body[data-template="member_view"] .memberHeader-buttons .button {
    border-radius: 8px !important;
    border: 1px solid rgba(205, 205, 205, 0.08) !important;
    background: rgba(205, 205, 205, 0.03) !important;
    color: rgba(205, 205, 205, 0.6) !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}
body[data-template="member_view"] .memberHeader-buttons .button:hover {
    background: rgba(71, 93, 125, 0.15) !important;
    border-color: rgba(71, 93, 125, 0.3) !important;
    color: #7a91b4 !important;
}
/* Подписаться */
body[data-template="member_view"] .memberHeader-buttons .button[href*="follow"]:not([href*="unfollow"]) {
    background: linear-gradient(135deg, #475d7d, #546e95) !important;
    border: none !important;
    color: #cdcdcd !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    letter-spacing: 0.3px !important;
    order: 1 !important;
}
body[data-template="member_view"] .memberHeader-buttons .button[href*="follow"]:not([href*="unfollow"]):hover {
    background: linear-gradient(135deg, #546e95, #7a91b4) !important;
}
/* Отписаться — высокая специфичность чтобы перебить follow стили */
#XF body[data-template="member_view"] .memberHeader-buttons .button.vp-btn-unfollow {
    background: rgba(205, 205, 205, 0.04) !important;
    border: 1px solid rgba(205, 205, 205, 0.1) !important;
    color: rgba(205, 205, 205, 0.4) !important;
    text-shadow: none !important;
    order: 1 !important;
}
#XF body[data-template="member_view"] .memberHeader-buttons .button.vp-btn-unfollow:hover {
    background: rgba(224,96,96,0.1) !important;
    border-color: rgba(224,96,96,0.25) !important;
    color: rgb(224,130,130) !important;
}
body[data-template="member_view"] .memberHeader-buttons .button[href*="conversations"] {
    order: 2 !important;
    font-size: 0 !important;
}
body[data-template="member_view"] .memberHeader-buttons .button[href*="conversations"]::after {
    content: "Написать" !important;
    font-size: 13px !important;
}

/* === ТАБЫ === */
body[data-template="member_view"] .tabs {
    border-bottom: 1px solid rgba(71, 93, 125, 0.15) !important;
}
body[data-template="member_view"] .tabs-tab {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(205, 205, 205, 0.4) !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease !important;
}
body[data-template="member_view"] .tabs-tab:hover {
    color: rgba(205, 205, 205, 0.7) !important;
}
body[data-template="member_view"] .tabs-tab.is-active {
    color: #7a91b4 !important;
    border-bottom-color: #475d7d !important;
}

/* === ОБЁРТКА ПОСТОВ — убираем borders и фон === */
body[data-template="member_view"] .block-body.js-replyNewMessageContainer {
    border: none !important;
    background: none !important;
}
body[data-template="member_view"] .block-container {
    background: none !important;
    box-shadow: none !important;
}

/* === Ячейка аватарки (XenFocus) === */
body[data-template="member_view"] .message-cell--user {
    background: none !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    padding: 0 12px 0 0 !important;
    border-radius: 0 !important;
    vertical-align: top !important;
}
/* Аватарка в постах (НЕ quickReply) — ниже к нику, правее */
body[data-template="member_view"] .message--simple:not(.message--quickReply) > .message-inner > .message-cell--user {
    padding-top: 42px !important;
    padding-left: 19px !important;
}
/* Quick reply аватарка — выше, левее */
body[data-template="member_view"] .message--quickReply .message-cell--user {
    vertical-align: top !important;
    padding-top: 3px !important;
    padding-right: 17px !important;
}
body[data-template="member_view"] .message-avatar-wrapper {
    transform: none !important;
}

/* Все аватарки в постах — убрать фон */
body[data-template="member_view"] .message .avatar,
body[data-template="member_view"] .message .avatar img {
    background: none !important;
    background-color: transparent !important;
}

/* Quick reply: аватарка круглая 36px, на уровне инпута */
body[data-template="member_view"] .message--quickReply .message-cell--user {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
}
body[data-template="member_view"] .message--quickReply .avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
}
body[data-template="member_view"] .message--quickReply .avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

/* Quick reply: инпут — убрать чёрную рамку, сделать как в рефе */
body[data-template="member_view"] .message--quickReply .input {
    background: rgba(205, 205, 205, 0.04) !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    color: rgba(205, 205, 205, 0.3) !important;
    font-size: 13px !important;
}

/* Посты: аватарка 42px, на уровне username */
body[data-template="member_view"] .message--simple .avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 42px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(71, 93, 125, 0.15) !important;
}
body[data-template="member_view"] .message--simple .avatar img {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* Посты: убрать верхнюю линию/обводку, inner выше */
body[data-template="member_view"] .message--simple {
    border-top: none !important;
    box-shadow: none !important;
}
body[data-template="member_view"] .message--simple:not(.message--quickReply) .message-inner {
    margin-top: -10px !important;
}

/* message-responseRow — стиль как comment-reply в рефе */
body[data-template="member_view"] .message-responseRow {
    background: rgba(205, 205, 205, 0.02) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(205, 205, 205, 0.04) !important;
    border-left: 3px solid #475d7d !important;
    padding: 12px 14px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* comment-contentWrapper правее */
body[data-template="member_view"] .message-responseRow .comment-contentWrapper {
    margin-left: 20px !important;
}
body[data-template="member_view"] .message-responseRow .messageNotice--deleted {
    margin-left: 20px !important;
}

/* Дата комментария — правый верхний угол */
body[data-template="member_view"] .js-quickEditTargetComment {
    position: relative !important;
}
body[data-template="member_view"] .js-quickEditTargetComment .comment-footer .u-dt {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
}

/* message-cell--main ближе к аватарке */
body[data-template="member_view"] .message-cell--main {
    padding-left: 0 !important;
}

/* Аватарки в ответах (response) — маленькие, без overlap */
body[data-template="member_view"] .message-response .avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
    border-radius: 6px !important;
    border: none !important;
}
body[data-template="member_view"] .message-response .avatar img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 6px !important;
}
body[data-template="member_view"] .message-response .message-avatar-wrapper {
    transform: none !important;
}

/* === ПОСТЫ НА СТЕНЕ === */
body[data-template="member_view"] .message--simple {
    background: #141518 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    margin-bottom: 10px !important;
    padding: 16px !important;
    transition: border-color 0.2s ease !important;
}
body[data-template="member_view"] .message--simple:hover {
    border-color: rgba(71, 93, 125, 0.2) !important;
}
body[data-template="member_view"] .message--simple .message-name .username {
    font-weight: 700 !important;
    font-size: 14px !important;
}
body[data-template="member_view"] .message--simple .message-attribution-time {
    color: rgba(205, 205, 205, 0.3) !important;
    font-size: 11px !important;
}
body[data-template="member_view"] .message--simple .message-body {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(205, 205, 205, 0.8) !important;
}
body[data-template="member_view"] .message--simple .message-response {
    background: rgba(205, 205, 205, 0.02) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(205, 205, 205, 0.04) !important;
    border-left: 3px solid #475d7d !important;
    margin-top: 10px !important;
    padding: 12px 14px !important;
}
body[data-template="member_view"] .message--simple .message-responseRow {
    background: rgba(205, 205, 205, 0.02) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 6px !important;
}
body[data-template="member_view"] .message--simple .actionBar-action {
    color: rgba(205, 205, 205, 0.3) !important;
    font-size: 12px !important;
    transition: color 0.2s ease !important;
}
body[data-template="member_view"] .message--simple .actionBar-action:hover {
    color: #7a91b4 !important;
}
body[data-template="member_view"] .message--quickReply {
    background: #141518 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    margin-bottom: 16px !important;
    padding: 14px 16px !important;
}
body[data-template="member_view"] .message--simple .actionBar .actionBar-set--external {
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}
body[data-template="member_view"] .message--simple:hover .actionBar .actionBar-set--external {
    opacity: 0.4 !important;
}
/* В unified feed — external управляется отдельно (см. секцию TOOLBAR) */
body[data-template="member_view"] .message--simple .message-responseRow--action {
    font-size: 12px !important;
    color: rgba(205, 205, 205, 0.35) !important;
    border: none !important;
    padding: 6px 10px !important;
}
body[data-template="member_view"] .message--simple .message-responseRow .message-inner {
    padding: 0 !important;
}

/* ============================================
   UNIFIED FEED — плагин VotiveRP/UnifiedProfile
   ============================================ */

/* Filters */
.vp-filters {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: #141518;
    border-bottom: 1px solid rgba(205, 205, 205, 0.06);
    flex-wrap: wrap;
    border-radius: 0 16px 0 0;
}
.vp-filter {
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(205, 205, 205, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.vp-filter:hover {
    color: rgba(205, 205, 205, 0.5);
    background: rgba(205, 205, 205, 0.03);
}
.vp-filter--active {
    color: #7a91b4 !important;
    background: rgba(71, 93, 125, 0.1) !important;
    border-color: rgba(71, 93, 125, 0.2) !important;
}

/* Content area */
.vp-content {
    padding: 20px;
    background: #0e0f12;
    border-radius: 0 0 16px 0;
    border-right: 1px solid rgba(205, 205, 205, 0.06);
    border-bottom: 1px solid rgba(205, 205, 205, 0.06);
}

/* Feed avatar */
.vp-feed-av {
    width: 34px !important;
    height: 34px !important;
    font-size: 34px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}
.vp-feed-av img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: none !important;
}
.vp-feed-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Write input */
.vp-write {
    margin-bottom: 25px;
}
.vp-write-input {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: 2px dashed rgba(205, 205, 205, 0.08);
    border-radius: 12px;
    color: rgba(205, 205, 205, 0.3);
    font-size: 14px;
    transition: border-color 0.2s;
    cursor: text;
}
.vp-write-input:hover {
    border-color: #475d7d;
}

/* Feed item */
.vp-feed-item {
    position: relative;
    margin-bottom: 24px;
}

.vp-feed-item[data-type="post"] {
    margin-top: 14px;
    margin-bottom: 14px;
    position: relative;
    background: rgba(205, 205, 205, 0.025);
    border-radius: 14px;
    padding: 16px 18px 16px 18px;
}
.vp-feed-item[data-type="post"]:first-child {
    margin-top: 0;
}
.vp-feed-item[data-type="post"]:first-child::before {
    display: none;
}
/* Пост после поста — убрать верхнюю линию (divider уже есть) */
.vp-feed-item[data-type="post"] + .vp-feed-divider + .vp-feed-item[data-type="post"]::before {
    display: none;
}

/* --- ПОСТЫ — крупнее, заметнее --- */
.vp-feed-item[data-type="post"] .vp-feed-post-native .message-attribution .avatar img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
}
#XF .vp-feed-post-native .message-attribution .avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 36px !important;
}
.vp-feed-item[data-type="post"] .message-attribution .username {
    font-size: 16px !important;
}

/* --- АКТИВНОСТЬ + ПУБЛИКАЦИИ — единый компактный стиль, без разделителей --- */
.vp-feed-item[data-type="activity"],
.vp-feed-item[data-type="content"] {
    margin-bottom: 22px;
}
.vp-feed-item[data-type="activity"] + .vp-feed-divider,
.vp-feed-item[data-type="content"] + .vp-feed-divider {
    display: none;
}
.vp-feed-item[data-type="activity"] .vp-feed-header,
.vp-feed-item[data-type="content"] .vp-feed-header {
    margin-bottom: 2px;
    gap: 6px;
}
.vp-feed-item[data-type="activity"] .vp-feed-av,
.vp-feed-item[data-type="content"] .vp-feed-av {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    border-radius: 50% !important;
}
.vp-feed-item[data-type="activity"] .vp-feed-av img,
.vp-feed-item[data-type="content"] .vp-feed-av img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}
.vp-feed-item[data-type="activity"] .vp-feed-author,
.vp-feed-item[data-type="content"] .vp-feed-author {
    font-size: 13px;
    font-weight: 600;
    color: rgba(205, 205, 205, 0.4);
}
.vp-feed-item[data-type="activity"] .vp-feed-dot,
.vp-feed-item[data-type="activity"] .vp-feed-date,
.vp-feed-item[data-type="content"] .vp-feed-dot,
.vp-feed-item[data-type="content"] .vp-feed-date {
    font-size: 13px;
    color: rgba(205, 205, 205, 0.25);
}
.vp-feed-item[data-type="activity"] .vp-feed-type,
.vp-feed-item[data-type="content"] .vp-feed-type {
    font-size: 10px;
    padding: 1px 5px;
}
.vp-feed-item[data-type="activity"] .vp-activity-text {
    padding-left: 26px;
    font-size: 14px;
    color: rgba(205, 205, 205, 0.45);
}
.vp-feed-item[data-type="activity"] .vp-activity-preview {
    padding-left: 26px;
    font-size: 13px;
    color: rgba(205, 205, 205, 0.25);
}
.vp-feed-item[data-type="content"] .vp-feed-body {
    padding-left: 26px;
    font-size: 14px;
    color: rgba(205, 205, 205, 0.35);
}
.vp-feed-item[data-type="content"] .vp-feed-context {
    padding-left: 26px;
}

/* Feed header */
.vp-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: -6px;
}
.vp-feed-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
}
.vp-feed-avatar img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}
.vp-feed-author {
    font-weight: 700;
    font-size: 14px;
    color: #cdcdcd;
    text-decoration: none;
}
.vp-feed-author:hover {
    color: #7a91b4;
}
.vp-feed-dot {
    color: rgba(205, 205, 205, 0.3);
    font-size: 12px;
}
.vp-feed-date {
    font-size: 12px;
    color: rgba(205, 205, 205, 0.3);
    text-decoration: none;
}
.vp-feed-date:hover {
    color: #7a91b4;
}

/* Type badges */
.vp-feed-type {
    display: inline-block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}
.vp-feed-type--post { color: #7a91b4; background: rgba(71, 93, 125, 0.1); }
.vp-feed-type--activity { color: #5b9bd5; background: rgba(91,155,213,0.1); }
.vp-feed-type--content { color: #8a9bb5; background: rgba(138,155,181,0.1); }
.vp-feed-type--warning { color: #e06060; background: rgba(224,96,96,0.1); }

/* Feed body */
.vp-feed-body {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(205, 205, 205, 0.85);
    padding-left: 51px;
}
.vp-feed-body--snippet {
    font-size: 13px;
    color: rgba(205, 205, 205, 0.35);
    font-style: normal;
    line-height: 1.5;
}
.vp-feed-body--snippet a {
    color: rgba(205, 205, 205, 0.35) !important;
    text-decoration: none !important;
}
.vp-feed-body--snippet a:hover {
    color: #7a91b4 !important;
}

/* Deleted info indicator */
.vp-feed-deleted-info {
    font-size: 11px;
    color: rgba(205, 205, 205, 0.2);
    padding-left: 30px;
    margin-bottom: 4px;
}
.vp-feed-deleted-user {
    color: rgba(205, 205, 205, 0.4) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.vp-feed-deleted-user:hover {
    color: #7a91b4 !important;
    text-decoration: underline !important;
}
.vp-feed-deleted-reason {
    color: rgba(205, 205, 205, 0.25);
    font-style: italic;
}

/* Deletion info inline в header поста */
.vp-feed-deletion-inline {
    font-size: 12px;
    color: rgba(205, 205, 205, 0.25);
    margin-left: 8px;
}
.vp-feed-deletion-inline a {
    color: rgba(205, 205, 205, 0.35);
    text-decoration: none;
}
.vp-feed-deletion-inline a:hover {
    color: #7a91b4;
}
/* Удалённый пост — тинт серым */
.vp-feed-post-native.vp-post-deleted .message-content,
.vp-feed-post-native.vp-post-deleted .message-responses {
    opacity: 0.5;
}
/* Скрыть нативный deletion notice только на уровне поста (не в комментариях) */
#XF .vp-feed-post-native .message-main > .messageNotice--deleted,
#XF .vp-feed-post-native .message-body .messageNotice--deleted,
#XF .vp-feed-post-native .message-content .messageNotice--deleted {
    display: none !important;
}

/* Feed context (link to thread) */
.vp-feed-context {
    font-size: 14px;
    color: rgba(205, 205, 205, 0.3);
    padding-left: 42px;
    margin-top: 4px;
}
.vp-feed-context a {
    color: #7a91b4;
    text-decoration: none;
}
.vp-feed-context a:hover {
    text-decoration: underline;
}

/* Activity text */
.vp-activity-text {
    font-size: 13px;
    color: rgba(205, 205, 205, 0.6);
    padding-left: 42px;
}
.vp-activity-text a {
    color: #7a91b4;
    text-decoration: none;
}
.vp-activity-text a:hover {
    text-decoration: underline;
}
.vp-reaction-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin: 0 2px;
}
.vp-activity-preview {
    font-size: 12px;
    color: rgba(205, 205, 205, 0.3);
    padding-left: 42px;
    margin-top: 4px;
    font-style: italic;
}

/* Warning */
.vp-warning-item {
    padding-left: 30px;
}
.vp-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(224,96,96,0.08);
    border: 1px solid rgba(224,96,96,0.15);
    font-size: 13px;
    color: rgb(224,130,130);
}
.vp-warning-detail {
    font-size: 12px;
    color: rgba(205, 205, 205, 0.35);
    margin-top: 6px;
}
.vp-warning-detail a {
    color: #7a91b4;
    text-decoration: none;
}
.vp-warning-detail a:hover {
    text-decoration: underline;
}
.vp-warning-expired {
    color: rgba(205, 205, 205, 0.3);
    font-style: italic;
}

/* Deleted post */
.vp-feed-deleted {
    padding: 12px 16px;
    background: rgba(224,96,96,0.04);
    border-radius: 10px;
    border: 1px solid rgba(224,96,96,0.08);
    border-left: 3px solid rgba(224,96,96,0.25);
}
.vp-feed-author--deleted {
    color: rgba(205, 205, 205, 0.35) !important;
}
.vp-feed-type--deleted {
    color: #e06060;
    background: rgba(224,96,96,0.1);
}
.vp-feed-deleted-text {
    font-size: 12px;
    color: rgba(205, 205, 205, 0.25);
    padding-left: 42px;
    margin-top: 4px;
}
.vp-feed-deleted-show {
    color: #7a91b4;
    text-decoration: none;
    margin-left: 6px;
}
.vp-feed-deleted-show:hover {
    text-decoration: underline;
}
.vp-feed-deleted-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(224,96,96,0.1);
}
.vp-feed-deleted-restore {
    color: #6bc96b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}
.vp-feed-deleted-restore:hover {
    text-decoration: underline;
}
.vp-feed-deleted-text strong {
    color: rgba(205, 205, 205, 0.4);
}
.vp-feed-deleted-user {
    color: rgba(205, 205, 205, 0.45);
    text-decoration: none;
    font-weight: 700;
}
.vp-feed-deleted-user:hover {
    color: #7a91b4;
}
.vp-feed-deleted-body {
    padding-left: 42px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(224,96,96,0.1);
    font-size: 14px;
    color: rgba(205, 205, 205, 0.5);
}

/* ============================================
   Native profile post inside unified feed
   ============================================ */
.vp-feed-post-native {
    position: relative;
}
.vp-feed-post-native > .vp-feed-type {
    position: absolute;
    right: 0;
    top: 4px;
    z-index: 2;
}

/* === Post card — убираем карточку (высокая специфичность чтобы перебить общие стили member_view) === */
#XF body[data-template="member_view"] .vp-feed-post-native .message--simple {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .message--simple:hover {
    background: none !important;
    border: none !important;
}

/* === Layout — flat, без двухколоночности === */
.vp-feed-post-native .message-inner {
    display: block !important;
    margin: 0 !important;
}

/* КЛЮЧЕВОЕ: Скрыть большую аватарку слева */
.vp-feed-post-native .message-cell--user {
    display: none !important;
}

/* Main cell — на всю ширину */
.vp-feed-post-native .message-cell--main {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* === Attribution как feed-header (аватар + имя + · + дата) === */
.vp-feed-post-native .message-attribution {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

/* Показать маленькую аватарку в attribution */
#XF .vp-feed-post-native .message-attribution .avatar {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 34px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: none !important;
}
.vp-feed-post-native .message-attribution .avatar img {
    width: 34px !important;
    height: 34px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: none !important;
}

/* listInline — flex row без дефолтных стилей */
.vp-feed-post-native .message-attribution .listInline {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}
.vp-feed-post-native .message-attribution .listInline > li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
/* Bullet separator — стиль точки */
.vp-feed-post-native .message-attribution .listInline--bullet > li + li::before {
    content: "\00B7" !important;
    margin: 0 3px 0 5px !important;
    color: rgba(205, 205, 205, 0.3) !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Username */
.vp-feed-post-native .message-attribution .username {
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}
.vp-feed-post-native .message-attribution h4 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Date */
.vp-feed-post-native .message-attribution .u-concealed {
    font-size: 12px !important;
    color: rgba(205, 205, 205, 0.3) !important;
    text-decoration: none !important;
}

/* === Body — padding-left 42px (32px avatar + 10px gap), только для поста, не для комментов === */
.vp-feed-post-native .message-content .lbContainer {
    padding-left: 51px !important;
    margin-top: -8px !important;
}
.vp-feed-post-native .comment .lbContainer {
    padding-left: 0 !important;
}
.vp-feed-post-native article.message-body {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: rgba(205, 205, 205, 0.85) !important;
}

/* === Footer === */
.vp-feed-post-native .message-footer {
    padding-left: 42px !important;
}

/* === TOOLBAR — иконки действий при hover === */

/* ActionBar (parent) — правый верхний угол */
#XF body[data-template="member_view"] .vp-feed-post-native .message-actionBar,
#XF body[data-template="member_view"] .vp-feed-post-native .comment-actionBar {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
    z-index: 5 !important;
    padding: 4px !important;
    background: #151619 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(205, 205, 205, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* Оба set — inline внутри единого toolbar */
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--external {
    display: flex !important;
    gap: 2px !important;
    position: static !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Реакция всегда слева, mod actions справа */
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--external {
    order: 1 !important;
    border-right: 1px solid rgba(205, 205, 205, 0.08) !important;
    padding-right: 4px !important;
    margin-right: 4px !important;
    font-size: 0 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal {
    order: 2 !important;
}

/* Position relative на родителях */
.vp-feed-post-native .message-main {
    position: relative !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native div.comment {
    position: relative !important;
}

/* При hover — показать actionBar ТОЛЬКО на своём элементе */
/* Пост: hover на контент */
#XF .vp-feed-post-native .message-content:hover ~ footer > .message-actionBar {
    opacity: 1 !important;
}
/* Пост: hover на сам actionBar */
#XF body[data-template="member_view"] .vp-feed-post-native .message-actionBar:hover {
    opacity: 1 !important;
}
/* Коммент: hover на коммент или его actionBar */
#XF .vp-feed-post-native div.comment:hover > .comment-inner .comment-actionBar {
    opacity: 1 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .comment-actionBar:hover {
    opacity: 1 !important;
}

/* Все действия — иконки (текст скрыт через color:transparent + font-size:0) */
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal .actionBar-action {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    transition: all 0.15s !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    overflow: visible !important;
}
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action:hover {
    background: rgba(71, 93, 125, 0.15) !important;
    color: #7a91b4 !important;
}
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action--delete:hover {
    background: rgba(255,50,50,0.1) !important;
    color: rgb(255,100,100) !important;
}

/* Скрыть ненужные — ПОСЛЕ show rule чтобы перебить display:flex */
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal .actionBar-action--report,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal .actionBar-action--inlineMod,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal .actionBar-action--menuTrigger,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal .actionBar-action--unapprove,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal > .menu,
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-set--internal > span.actionBar-action {
    display: none !important;
}

/* Кнопка реакции — как 28x28 иконка в toolbar */
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-action--reaction {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-action--reaction .reaction-text {
    display: none !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-action--reaction i {
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-action--reaction .reaction-sprite {
    width: 16px !important;
    height: 16px !important;
}
#XF .vp-feed-post-native .actionBar-action--reaction:hover {
    background: rgba(71, 93, 125, 0.15) !important;
    border-radius: 6px !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .actionBar-action--reaction:hover i {
    color: #7a91b4 !important;
}
/* Tooltip "Реакция" */
#XF .vp-feed-post-native .actionBar-action--reaction:hover::after {
    content: "\0420\0435\0430\043A\0446\0438\044F" !important;
    position: absolute !important;
    bottom: -28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0e0f12 !important;
    color: rgba(205, 205, 205, 0.7) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    border: 1px solid rgba(205, 205, 205, 0.08) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    line-height: normal !important;
}

/* Иконки через ::before */
#XF .vp-feed-post-native .actionBar-action--edit::before {
    content: "\270E" !important;
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--delete::before {
    content: "\2715" !important;
    font-size: 13px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--ip::before {
    content: "IP" !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--warn::before {
    content: "\26A0" !important;
    font-size: 13px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--unapprove::before {
    content: "\2298" !important;
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--changeOwnerAndDate::before {
    content: "\21BB" !important;
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .actionBar-action--undelete::before {
    content: "\21A9" !important;
    font-size: 14px !important;
    color: rgba(107,201,107,0.6) !important;
}
/* Hover цвет иконок */
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action:hover::before {
    color: #7a91b4 !important;
}
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action--delete:hover::before {
    color: rgb(255,100,100) !important;
}

/* Tooltip при hover — название действия */
#XF .vp-feed-post-native .actionBar-action--edit:hover::after {
    content: "\0418\0437\043C\0435\043D\0438\0442\044C" !important;
}
#XF .vp-feed-post-native .actionBar-action--delete:hover::after {
    content: "\0423\0434\0430\043B\0438\0442\044C" !important;
}
#XF .vp-feed-post-native .actionBar-action--ip:hover::after {
    content: "IP" !important;
}
#XF .vp-feed-post-native .actionBar-action--warn:hover::after {
    content: "\041F\0440\0435\0434\0443\043F\0440\0435\0434\0438\0442\044C" !important;
}
#XF .vp-feed-post-native .actionBar-action--unapprove:hover::after {
    content: "\041E\0442\043A\043B\043E\043D\0438\0442\044C" !important;
}
#XF .vp-feed-post-native .actionBar-action--changeOwnerAndDate:hover::after {
    content: "\0421\043C\0435\043D\0438\0442\044C\0020\0430\0432\0442\043E\0440\0430" !important;
}
#XF .vp-feed-post-native .actionBar-action--undelete:hover::after {
    content: "\0412\043E\0441\0441\0442\0430\043D\043E\0432\0438\0442\044C" !important;
}
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action--undelete:hover::before {
    color: rgb(107,201,107) !important;
}
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action--undelete:hover {
    background: rgba(107,201,107,0.1) !important;
}
/* Стиль tooltip */
#XF .vp-feed-post-native .actionBar-set--internal .actionBar-action:hover::after {
    position: absolute !important;
    bottom: -28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0e0f12 !important;
    color: rgba(205, 205, 205, 0.7) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    border: 1px solid rgba(205, 205, 205, 0.08) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    overflow: visible !important;
    line-height: normal !important;
}

/* === Reactions row === */
#XF body[data-template="member_view"] .vp-feed-post-native .message-responseRow {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .message-responseRow--reactions {
    padding: 4px 0 4px 42px !important;
}

/* === Комменты — треды с золотой полосой === */

/* Comment loader "Показать предыдущие" */
#XF body[data-template="member_view"] .vp-feed-post-native .message-responseRow.js-commentLoader {
    padding: 0 !important;
    margin-left: 56px !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    border-left: 2px solid rgba(71, 93, 125, 0.15) !important;
    background: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}
#XF .vp-feed-post-native .js-commentLoader a {
    display: inline-block !important;
    margin-left: 30px !important;
    padding: 4px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(205, 205, 205, 0.25) !important;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
#XF .vp-feed-post-native .js-commentLoader a:hover {
    color: rgba(205, 205, 205, 0.5) !important;
}
/* Линия-разделитель ТОЛЬКО между комментами (не на первом) */
#XF body[data-template="member_view"] .vp-feed-post-native .js-replyNewMessageContainer > .message-responseRow + .message-responseRow div.comment {
    background: linear-gradient(to right, transparent 26px, rgba(205, 205, 205, 0.05) 26px, rgba(205, 205, 205, 0.05) calc(100% - 20px), transparent calc(100% - 20px)) no-repeat top !important;
    background-size: 100% 1px !important;
}

/* Comment — с золотой полосой слева */
#XF body[data-template="member_view"] .vp-feed-post-native div.comment {
    padding: 12px 0 12px 16px !important;
    margin-left: 56px !important;
    border-left: 2px solid rgba(71, 93, 125, 0.15) !important;
    border-top: none !important;
    background: none !important;
    border-radius: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
    position: relative !important;
}
/* Первый коммент после loader — без разделителя */

/* Comment inner — flex, сдвиг вправо, отступ справа */
#XF .vp-feed-post-native .comment-inner {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
    margin-left: 30px !important;
    margin-right: 20px !important;
}

/* Comment avatar — 20px, круглый */
#XF .vp-feed-post-native .comment-avatar {
    flex-shrink: 0 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .comment-avatar .avatar {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    border-radius: 50% !important;
    border: none !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .comment-avatar .avatar img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    background: none !important;
}

/* Comment main — растянуть на всю ширину, убрать лишние отступы */
#XF body[data-template="member_view"] .vp-feed-post-native .comment-main {
    flex: 1 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .comment-contentWrapper {
    margin-left: 0 !important;
}
#XF body[data-template="member_view"] .vp-feed-post-native .comment-content {
    padding: 0 !important;
}

/* Comment user */
.vp-feed-post-native .comment-user {
    font-weight: 700 !important;
    font-size: 13px !important;
}

/* Comment body */
.vp-feed-post-native .comment-body {
    font-size: 14px !important;
    color: rgba(205, 205, 205, 0.6) !important;
}

/* (comment hover уже выше в toolbar секции) */

/* Comment reactions */
/* Реакции — pill badge как в макете */
.vp-feed-post-native .comment-reactions,
.vp-feed-post-native .message-responseRow--reactions {
    font-size: 12px !important;
    margin-left: 30px !important;
}
#XF .vp-feed-post-native .comment-reactions .reactionSummary,
#XF .vp-feed-post-native .message-responseRow--reactions .reactionSummary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    background: rgba(71, 93, 125, 0.1) !important;
    list-style: none !important;
    margin: 0 !important;
}
#XF .vp-feed-post-native .reactionSummary li {
    display: inline-flex !important;
    align-items: center !important;
}
/* Reaction sprite icons — не трогаем нативные стили XenForo */
#XF .vp-feed-post-native .reactionsBar-link {
    color: #7a91b4 !important;
    text-decoration: none !important;
    font-size: 12px !important;
}
#XF .vp-feed-post-native .reactionsBar-link:hover {
    text-decoration: underline !important;
}
#XF .vp-feed-post-native .comment-reactions .u-srOnly {
    display: none !important;
}

/* Deleted comments — тихий текст как в макете */
#XF .vp-feed-post-native .messageNotice--deleted {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 0 8px 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
    color: rgba(205, 205, 205, 0.2) !important;
    box-shadow: none !important;
}
#XF .vp-feed-post-native .messageNotice--deleted a {
    color: #7a91b4 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    margin-left: 12px !important;
}
#XF .vp-feed-post-native .messageNotice--deleted a:hover {
    text-decoration: underline !important;
}

/* New comment form */
#XF body[data-template="member_view"] .vp-feed-post-native form.comment {
    margin-left: 56px !important;
    border-left: 2px solid rgba(71, 93, 125, 0.15) !important;
    padding: 10px 0 0 16px !important;
    border-top: none !important;
    background: none !important;
    border-radius: 0 !important;
    border-right: none !important;
    border-bottom: none !important;
}
/* Редактор внутри формы — ограничить ширину */
#XF .vp-feed-post-native form.comment .fr-box,
#XF .vp-feed-post-native form.comment .editorPlaceholder-editor,
#XF .vp-feed-post-native form.comment .comment-main,
#XF .vp-feed-post-native form.comment .comment-inner {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
#XF .vp-feed-post-native form.comment .comment-inner {
    margin-left: 0 !important;
}
/* Скрыть аватарку в форме комментария */
#XF body[data-template="member_view"] .vp-feed-post-native form.comment .comment-avatar {
    display: none !important;
}
/* Placeholder "Напишите комментарий" → "Ответить..." */
#XF .vp-feed-post-native form.comment .editorPlaceholder-placeholder {
    font-size: 0 !important;
    cursor: text !important;
    padding: 0 !important;
}
#XF .vp-feed-post-native form.comment .editorPlaceholder-placeholder::before {
    content: "\041E\0442\0432\0435\0442\0438\0442\044C..." !important;
    font-size: 12px !important;
    color: rgba(205, 205, 205, 0.3) !important;
    cursor: text !important;
    transition: color 0.2s !important;
}
#XF .vp-feed-post-native form.comment .editorPlaceholder-placeholder:hover::before {
    color: #7a91b4 !important;
}
/* Скрыть инпут-обёртку */
#XF .vp-feed-post-native form.comment .editorPlaceholder-placeholder .input {
    display: none !important;
}

/* Комментировать + Загрузить в одну строку */
.vp-feed-post-native .formButtonGroup-primary {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.vp-feed-post-native .formButtonGroup-primary .formButtonGroup-extra {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    top: -7px !important;
}
/* Fix: дублирующиеся formButtonGroup — ПОСЛЕ flex rule чтобы перебить */
.formButtonGroup-primary > .formButtonGroup + .formButtonGroup {
    display: none !important;
}

/* Quick reply inside post */
.vp-feed-post-native .message--quickReply {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Divider — с просветом слева и справа */
.vp-feed-divider {
    display: none;
}

/* Thread (replies) */
.vp-thread {
    padding-left: 42px;
    margin-top: 12px;
    border-left: 2px solid rgba(71, 93, 125, 0.15);
    margin-left: 56px;
}

/* Reply */
.vp-reply {
    padding: 12px 0 12px 16px;
    border-top: 1px solid rgba(205, 205, 205, 0.04);
}
.vp-reply:first-child {
    border-top: none;
}
.vp-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-reply-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
}
.vp-reply-avatar img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.vp-reply-author {
    font-weight: 700;
    font-size: 12px;
    color: #cdcdcd;
    text-decoration: none;
}
.vp-reply-date {
    font-size: 10px;
    color: rgba(205, 205, 205, 0.3);
}
.vp-reply-body {
    font-size: 13px;
    color: rgba(205, 205, 205, 0.6);
    margin-top: 2px;
    padding-left: 28px;
}

/* Load more */
.vp-load-more {
    text-align: center;
    padding: 16px;
}
.vp-load-more-btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(205, 205, 205, 0.06);
    background: none;
    color: rgba(205, 205, 205, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.vp-load-more-btn:hover {
    border-color: #475d7d;
    color: #7a91b4;
}

/* ============================================
   THREAD VIEW — Редизайн страницы темы
   ============================================ */

/* Скрыть дубль автора в мета-строке header */
.p-description .listInline--bullet > li:first-child {
    display: none;
}
/* Скрыть пустой contentCol */
.p-body-contentCol:empty {
    display: none;
}

/* OP — блок автора article post: inline bar */
.message-articleUserInfo {
    padding: 14px 24px;
    background: rgba(205, 205, 205, 0.015);
    border-bottom: 1px solid rgba(205, 205, 205, 0.06);
}
.message-articleUserInfo .contentRow {
    display: flex;
    align-items: center;
    gap: 8px;
}
.message-articleUserInfo .contentRow-figure {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}
.message-articleUserInfo .contentRow-figure .avatar {
    width: 57px !important;
    height: 57px !important;
    display: block;
}
.message-articleUserInfo .contentRow-figure img {
    width: 57px !important;
    height: 57px !important;
    max-width: none !important;
    border-radius: 50% !important;
    border: 2px solid rgba(71, 93, 125, 0.25) !important;
}
.message-articleUserInfo .contentRow-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
}
.message-articleUserInfo .message-articleUserFirstLine {
    display: contents;
}
.message-articleUserInfo .message-articleWrittenBy {
    display: none;
}
.message-articleUserInfo .message-articleUserName {
    order: 1;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.message-articleUserInfo .message-articleUserBlurb {
    order: 3;
    flex-basis: 100%;
    font-size: 12px;
}
.message-articleUserInfo .message-articleUserBanners {
    order: 2;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0 !important;
}

.message-articleUserInfo .message-articleUserStats {
    display: none;
}



/* Fix: unified feed grid placement */
body[data-template="member_view"] .vp-content {
    grid-column: 2 !important;
    grid-row: 2 / 4 !important;
    display: block !important;
}


/* Fix: force profile post edit links to use overlay */
body[data-template="member_view"] .vp-content .actionBar-action[href*="/edit"] {
    cursor: pointer;
}
/* Fix: Froala dropdown scroll */
.fr-dropdown-menu {
    max-height: 300px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}
.fr-dropdown-menu .fr-dropdown-wrapper {
    max-height: 300px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}

/* Froala editor styling */
.vp-inline-editor .fr-box.fr-basic .fr-wrapper {
    border-color: rgba(71, 93, 125, 0.2) !important;
}
.vp-inline-editor .fr-box.fr-basic.fr-top .fr-wrapper {
    border-top: none !important;
}
.vp-inline-editor .fr-box.fr-basic .fr-wrapper:focus-within {
    border-color: rgba(71, 93, 125, 0.4) !important;
}
.vp-inline-editor .fr-toolbar .fr-btn-grp {
    border-color: rgba(205, 205, 205, 0.06) !important;
}
.vp-inline-editor .fr-toolbar .fr-command.fr-btn {
    color: rgba(205, 205, 205, 0.5) !important;
}
.vp-inline-editor .fr-toolbar .fr-command.fr-btn:hover {
    background: rgba(71, 93, 125, 0.15) !important;
    color: #7a91b4 !important;
}
.vp-inline-editor .fr-toolbar .fr-command.fr-btn.fr-active {
    color: #7a91b4 !important;
}
.vp-inline-editor .fr-toolbar {
    border-color: rgba(71, 93, 125, 0.15) !important;
}
/* Dropdown */
.fr-dropdown-menu {
    background: #16171a !important;
    border: 1px solid rgba(71, 93, 125, 0.2) !important;
    border-radius: 8px !important;
}
.fr-dropdown-menu .fr-command {
    color: rgba(205, 205, 205, 0.7) !important;
}
.fr-dropdown-menu .fr-command:hover,
.fr-dropdown-menu .fr-command.fr-active {
    background: rgba(71, 93, 125, 0.15) !important;
    color: #7a91b4 !important;
}
/* Popup (link insert, etc) */
.fr-popup {
    background: #16171a !important;
    border: 1px solid rgba(71, 93, 125, 0.2) !important;
    border-radius: 10px !important;
}
.fr-popup .fr-input-line input {
    background: rgba(205, 205, 205, 0.05) !important;
    border-color: rgba(71, 93, 125, 0.2) !important;
    color: #cdcdcd !important;
}
.fr-popup .fr-command {
    color: rgba(205, 205, 205, 0.6) !important;
}
.fr-popup .fr-command:hover {
    background: rgba(71, 93, 125, 0.15) !important;
    color: #7a91b4 !important;
}

/* Fix: kill ALL white borders in Froala */
.vp-inline-editor .fr-box,
.vp-inline-editor .fr-box *,
.vp-inline-editor .fr-wrapper,
.vp-inline-editor .fr-toolbar {
    border-color: rgba(71, 93, 125, 0.15) !important;
    outline-color: rgba(71, 93, 125, 0.3) !important;
}
.vp-inline-editor .fr-box.fr-basic {
    border: 1px solid rgba(71, 93, 125, 0.2) !important;
    border-radius: 10px !important;
}

/* Fix: toolbar group separators transparent */
.vp-inline-editor .fr-toolbar .fr-btn-grp {
    border-color: transparent !important;
}
.vp-inline-editor .fr-toolbar .fr-more-toolbar {
    border-color: transparent !important;
    background: #16171a !important;
}
.vp-inline-editor .fr-newline {
    border-color: transparent !important;
}

/* Fix: fr-newline white line */
.vp-inline-editor .fr-newline {
    background: rgba(205, 205, 205, 0.06) !important;
}

/* Fix: fr-dropdown-menu lines */
.fr-dropdown-menu {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
.fr-dropdown-menu .fr-dropdown-wrapper {
    border: none !important;
}

/* Fix: remove fr-box border */
.vp-inline-editor .fr-box.fr-basic {
    border: none !important;
}

/* ============================================================
   МОБИЛЬНАЯ ВЁРСТКА
   Страница профиля собрана гридом 270px + контент и до сих пор не имела
   ни одного медиазапроса: на телефоне обе колонки оставались рядом, и
   страница уезжала за правый край на ~270 пикселей.
   Ниже — та же страница в один столбец: карточка пользователя сверху,
   вкладки и лента под ней.
   ============================================================ */
@media (max-width: 800px) {

    /* --- раскладка в один столбец --- */
    body[data-template="member_view"] .p-body-pageContent {
        display: block !important;
        background: #0e0f12 !important;
        border-radius: 16px !important;
    }
    /* фон боковой колонки рисовался полосой в 270px — на телефоне не нужен */
    body[data-template="member_view"] .p-body-pageContent::before {
        display: none !important;
    }
    body[data-template="member_view"] .p-body-pageContent > .block,
    body[data-template="member_view"] .p-body-pageContent > .block > .block-container {
        display: block !important;
    }

    /* --- карточка пользователя --- */
    body[data-template="member_view"] .p-body-pageContent .block-body {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        background: linear-gradient(180deg, rgba(71, 93, 125, .10), #141518 40%) !important;
        border: 1px solid rgba(205, 205, 205, .06) !important;
        border-bottom: 0 !important;
        border-radius: 16px 16px 0 0 !important;
    }
    body[data-template="member_view"] .memberHeader-content {
        padding: 2px 16px 20px !important;
    }
    body[data-template="member_view"] .memberHeader-avatar {
        padding-top: 24px !important;
    }

    /* --- вкладки и лента --- */
    body[data-template="member_view"] .block-tabHeader--memberTabs,
    body[data-template="member_view"] .vp-content {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    body[data-template="member_view"] .vp-content {
        padding: 0 12px 16px !important;
    }
    body[data-template="member_view"] .vp-filters {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    body[data-template="member_view"] .vp-write,
    body[data-template="member_view"] .vp-feed-item {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* содержимое сообщений не должно распирать ленту */
    body[data-template="member_view"] .message-content,
    body[data-template="member_view"] .message-body,
    body[data-template="member_view"] .bbWrapper {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }
    body[data-template="member_view"] .bbWrapper img,
    body[data-template="member_view"] .message-body img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    body[data-template="member_view"] .memberHeader-stats .pairJustifier {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    body[data-template="member_view"] .vp-content {
        padding: 0 8px 14px !important;
    }
}


/* --- Ответ на комментарий под записью профиля (js/votive/profile-reply.js) --- */
/* Кнопка живёт в тулбаре комментария, сразу за реакцией — иконка 28x28, как остальные */
#XF body[data-template="member_view"] .vp-feed-post-native .comment-actionBar .vp-commentReply {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    position: relative !important;
    overflow: visible !important;
    transition: all 0.15s !important;
}
#XF .vp-feed-post-native .comment-actionBar .vp-commentReply::before {
    content: "\21A9" !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: rgba(205, 205, 205, 0.4) !important;
}
#XF .vp-feed-post-native .comment-actionBar .vp-commentReply:hover {
    background: rgba(71, 93, 125, 0.15) !important;
}
#XF .vp-feed-post-native .comment-actionBar .vp-commentReply:hover::before {
    color: #7a91b4 !important;
}
/* Тултип — как у реакции */
#XF .vp-feed-post-native .comment-actionBar .vp-commentReply:hover::after {
    content: "\041E\0442\0432\0435\0442\0438\0442\044C" !important;
    position: absolute !important;
    bottom: -28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0e0f12 !important;
    color: rgba(205, 205, 205, 0.7) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    border: 1px solid rgba(205, 205, 205, 0.08) !important;
    pointer-events: none !important;
    z-index: 10 !important;
    line-height: normal !important;
}
