html:has(.profileWrapper),
html.mpp-gallery-page-root,
html.mpp-profile-page-root,
.profileWrapper {
    scrollbar-color: var(--mpp-accent, #ffcd00) transparent;
}

::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--mpp-accent, #ffcd00);
    border: 2px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--mpp-accent, #ffcd00);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.mpp-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.18));
    border-radius: 50%;
    background: color-mix(in srgb, var(--mpp-surface, #2d2b3a) 78%, transparent);
    color: var(--mpp-text, #fff);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mpp-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mpp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    box-sizing: border-box;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-lightbox.is-open {
    display: flex;
}

.mpp-lightbox__stage {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpp-lightbox__viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* padding: 56px 72px 48px; */
    box-sizing: border-box;
}

.mpp-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    user-select: none;
    -webkit-user-drag: none;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.mpp-lightbox__image.is-loading {
    opacity: 0;
}

.mpp-lightbox__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.mpp-lightbox.is-loading .mpp-lightbox__spinner {
    opacity: 1;
    visibility: visible;
    animation: mpp-lightbox-spin 0.7s linear infinite;
}

@keyframes mpp-lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.mpp-lightbox__tools {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpp-lightbox__close,
.mpp-lightbox__panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.mpp-lightbox__close {
    font-size: 28px;
    line-height: 1;
}

.mpp-lightbox__panel svg {
    width: 22px;
    height: 22px;
}

.mpp-lightbox__panel rect,
.mpp-lightbox__panel path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.mpp-lightbox:not(.has-sidebar) .mpp-lightbox__panel {
    display: none;
}

.mpp-lightbox.has-sidebar.is-sidebar-collapsed .mpp-lightbox__sidebar {
    display: none;
}

.mpp-lightbox__close:hover,
.mpp-lightbox__panel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mpp-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, opacity 0.18s ease;
}

.mpp-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.mpp-lightbox__nav path {
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mpp-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mpp-lightbox__nav:disabled {
    opacity: 0.34;
    cursor: default;
}

.mpp-lightbox__nav--prev {
    left: max(12px, env(safe-area-inset-left));
}

.mpp-lightbox__nav--next {
    right: max(12px, env(safe-area-inset-right));
}

.mpp-lightbox__counter {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 4;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
}

.mpp-lightbox__title {
    display: none !important;
    position: absolute;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 4;
    max-width: min(72%, 520px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transform: translateX(-50%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.mpp-lightbox__title[hidden] {
    display: none !important;
}

.mpp-lightbox__nav--hidden {
    display: none;
}

.mpp-lightbox__error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    box-sizing: border-box;
    color: var(--mpp-text, #ffffff);
    text-align: center;
}

.mpp-lightbox.is-error .mpp-lightbox__error {
    display: flex;
}

.mpp-lightbox.is-error .mpp-lightbox__image {
    visibility: hidden;
}

.mpp-lightbox__error-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--mpp-text, #ffffff);
}

.mpp-lightbox__retry {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--mpp-border, rgba(255, 255, 255, 0.28));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--mpp-text, #ffffff);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-lightbox__retry:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mpp-lightbox__sidebar {
    position: relative;
    z-index: 1;
    flex: 0 0 min(380px, 42vw);
    width: min(380px, 42vw);
    max-width: 100%;
    height: 100%;
    min-height: 0;
    display: none;
    flex-direction: column;
    border-left: 1px solid var(--mpp-border, #49475b);
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #ffffff);
    box-sizing: border-box;
    overflow: hidden;
}

.mpp-lightbox.has-sidebar .mpp-lightbox__sidebar {
    display: flex;
}

.mpp-lightbox__sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

@media (max-width: 820px) {
    .mpp-lightbox.is-open {
        flex-direction: column;
    }

    .mpp-lightbox__stage {
        flex: 1 1 auto;
        min-height: 0;
    }

    .mpp-lightbox__viewport {
        padding: 48px 56px 36px;
    }

    .mpp-lightbox__sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: min(42vh, 340px);
        max-height: 42vh;
        border-left: 0;
        border-top: 1px solid var(--mpp-border, #49475b);
    }

    .mpp-lightbox.has-sidebar .mpp-lightbox__nav--next {
        right: max(12px, env(safe-area-inset-right));
    }

    .mpp-lightbox__title {
        max-width: min(84%, 420px);
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.mpp-photo-comments {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    color: var(--mpp-text, #ffffff);
    background: transparent;
}

.mpp-photo-comments__head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--mpp-border, #49475b);
}

.mpp-photo-comments__author {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.mpp-photo-comments__avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--mpp-surface-soft, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--mpp-border, #49475b);
    box-sizing: border-box;
}

.mpp-photo-comments__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-photo-comments__author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mpp-photo-comments__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    color: var(--mpp-accent, #ffcd00);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mpp-photo-comments__date {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    line-height: 1.3;
}

.mpp-photo-comments__caption {
    margin: 0;
    padding: 12px 16px 0;
    color: var(--mpp-text, #fff);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.mpp-photo-comments__caption[hidden] {
    display: none !important;
}

.mpp-photo-comments__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--mpp-border, #49475b);
}

.mpp-photo-comments__count {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
}

.mpp-photo-comments__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 14px;
    -webkit-overflow-scrolling: touch;
}

.mpp-photo-comments__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpp-photo-comments__item {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    list-style: none;
}

.mpp-photo-comments__item .mpp-wall-reply-name {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-photo-comments__more {
    display: block;
    width: 100%;
    margin: 4px 0 8px;
    padding: 10px 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: var(--mpp-control-radius, 8px);
    background: transparent;
    color: var(--mpp-accent, #ffcd00);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.mpp-photo-comments__more:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.06));
}

.mpp-photo-comments__more:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-photo-comments__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 24px 12px;
    text-align: center;
    height: 100%;
}

.mpp-photo-comments__empty-icon {
    color: var(--mpp-muted, #a9a9a9);
    opacity: 0.55;
}

.mpp-photo-comments__empty-text {
    margin: 0;
    max-width: 220px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 14px;
    line-height: 1.4;
}

.mpp-photo-comments__composer {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--mpp-border, #49475b);
    background: transparent;
}

.mpp-photo-comments .mpp-wall-reply-form {
    margin-top: 0;
}

.mpp-lightbox__sidebar-loading {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    height: 100%;
}

/*
 * Lock скролла: html режет scroll, body фиксирует позицию через top:-scrollY.
 * --mpp-scrollbar-comp удерживает ширину контента, когда полоса прокрутки скрыта.
 */
html.mpp-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

html.mpp-scroll-locked body.mpp-scroll-locked,
body.mpp-scroll-locked {
    position: fixed !important;
    left: 0 !important;
    right: var(--mpp-scrollbar-comp, 0px) !important;
    width: auto;
    overflow: visible;
    max-height: none;
}

/* Окна закрывают место полосы страницы, иначе справа остаётся пустой отступ. */
html.mpp-scroll-locked .mpp-friends-drawer,
html.mpp-scroll-locked .mpp-gifts-drawer,
html.mpp-scroll-locked .mpp-confirm-modal,
html.mpp-scroll-locked .mpp-gifts-modal,
html.mpp-scroll-locked .mpp-settings,
html.mpp-scroll-locked .mpp-settings-modal,
html.mpp-scroll-locked .mpp-gallery-modal,
html.mpp-scroll-locked .mpp-gift-view,
html.mpp-scroll-locked .mpp-gallery-uploader,
html.mpp-scroll-locked .mpp-report,
html.mpp-scroll-locked .mpp-emoji-picker,
html.mpp-scroll-locked .mpp-lightbox,
html.mpp-scroll-locked .mpp-welcome {
    right: 0;
}

.mpp-profile-membership {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    justify-content: center;
    margin: 0;
    vertical-align: middle;
    line-height: 0;
}

.mpp-profile-membership__icon {
    display: block;
    object-fit: cover;
}

.mpp-profile-membership--vip .mpp-profile-membership__icon {
    width: var(--mpp-vip-header-w, 32px);
    height: var(--mpp-vip-header-h, 35px);
    padding-bottom: 0;
    box-sizing: border-box;
}

.mpp-profile-membership--premium .mpp-profile-membership__icon {
    width: var(--mpp-premium-header-w, 17px);
    height: var(--mpp-premium-header-h, 35px);
    padding-bottom: 0;
    box-sizing: border-box;
}

button.mpp-profile-membership {
    border: 0;
    cursor: pointer;
}

.mpp-profile-header-shell {
    width: 100%;
    height: 300px;
    position: relative;
}

.mpp-profile-header-shell::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--mpp-bg, #2d2b3a) 100%);
}
.mpp-profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0px;
    box-sizing: border-box;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 20;
    background: var(--mpp-surface, var(--mpp-topbar, #3d3b4c));
    border-bottom: 1px solid var(--mpp-border, #49475b);
    font-size: 14px;
    font-weight: 500;
}

.mpp-profile-topbar .mpp-profile-topbar-nav__item,
.mpp-profile-topbar .mpp-profile-topbar-action {
    font-size: 14px;
    font-weight: 500;
}

.mpp-profile-topbar-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.mpp-profile-topbar-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 16px;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    box-sizing: border-box;
}

.mpp-profile-topbar-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.mpp-profile-topbar-nav__item--home {
    min-width: 40px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1;
}

.mpp-profile-topbar-nav__item--home svg.mpp-icon {
    width: 18px;
    height: 18px;
}

.mpp-profile-topbar-action--window svg.mpp-icon,
.mpp-profile-topbar-action--window-close svg.mpp-icon,
.mpp-profile-topbar-action--transactions svg.mpp-icon,
.mpp-profile-topbar-action--settings svg.mpp-icon,
.mpp-profile-topbar-action[data-mpp-gallery-upload-open] svg.mpp-icon,
.mpp-settings__close svg.mpp-icon,
.mpp-friends-drawer__close svg.mpp-icon,
.mpp-gifts-drawer__close svg.mpp-icon,
.mpp-gifts-drawer__visibility svg.mpp-icon,
.mpp-gifts-modal__close svg.mpp-icon,
.mpp-gift-view__close svg.mpp-icon,
.mpp-gallery-modal__close svg.mpp-icon,
.mpp-gallery-uploader__close svg.mpp-icon,
.mpp-gallery-uploader__remove svg.mpp-icon,
.mpp-gallery-uploader__drop-icon svg.mpp-icon,
.mpp-select__option-icon svg.mpp-icon {
    width: 16px;
    height: 16px;
}

.mpp-gallery-uploader__drop-icon svg.mpp-icon {
    width: 20px;
    height: 20px;
}

.mpp-select__option-icon svg.mpp-icon {
    width: 14px;
    height: 14px;
}

.mpp-lightbox__close svg.mpp-icon {
    width: 20px;
    height: 20px;
}

.mpp-wall-form-preview__remove span svg.mpp-icon {
    width: 12px;
    height: 12px;
}

.mpp-gallery-albums__lock svg.mpp-icon,
.mpp-gallery-albums__star svg.mpp-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
}

.mpp-ad-timer__icon svg.mpp-icon {
    width: 14px;
    height: 14px;
}

.mpp-profile-topbar-nav__item--avatar {
    position: relative;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
}

.mpp-profile-topbar-nav__item--avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.mpp-profile-topbar-nav__item--avatar:hover {
    background: transparent;
}

.mpp-profile-topbar-nav__item--avatar:hover::after {
    opacity: 0.18;
}

.mpp-profile-home-avatar,
.mpp-profile-home-avatar img {
    display: block;
    width: 40px;
    height: 40px;
}

.mpp-profile-home-avatar img {
    object-fit: cover;
    transition: transform 0.28s ease;
}

.mpp-profile-topbar-nav__item--avatar:hover .mpp-profile-home-avatar img {
    transform: scale(1.05);
}

.mpp-wall-compose-btn,
.mpp-gallery-preview__add,
.mpp-gallery-preview__all,
.mpp-profile-sidebar__gift-btn,
.mpp-profile-topbar-action--add-friend,
.mpp-btn,
.mpp-settings__button,
.mpp-gallery-upload__submit,
.mpp-gallery-card__button,
.mpp-gifts-modal__buy,
.mpp-contests__vote {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mpp-profile-topbar-nav__item--back {
    max-width: 180px;
    padding: 0 12px;
    gap: 6px;
}

.mpp-profile-topbar-nav__item--back[hidden] {
    display: none !important;
}

.mpp-profile-topbar-nav__item--back [data-mpp-profile-back-name] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-profile-topbar-nav__item--active,
.mpp-profile-topbar-nav__item--active:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: default;
}

.mpp-news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mpp-accent, #ffcd00);
    color: var(--mpp-bg, #1b1404);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mpp-accent, #ffcd00) 28%, transparent);
    animation: mpp-news-badge-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both, mpp-news-badge-pulse 1.5s ease-in-out 0.45s 2;
}

.mpp-news-badge[hidden] {
    display: none !important;
}

@keyframes mpp-news-badge-in {
    from {
        transform: scale(0.2);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mpp-news-badge-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.16);
    }
}

.mpp-profile-topbar-actions,
.mpp-profile-topbar .profileSettingsWrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    margin-left: auto;
}

.mpp-profile-topbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    color: #fff;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    box-sizing: border-box;
    gap: 6px;
    text-decoration: none;
}

.mpp-profile-topbar-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
}

.mpp-profile-topbar-action--settings[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.14);
}

.mpp-profile-topbar-action--window {
    min-width: 40px;
    padding: 0 12px;
}

.mpp-profile-topbar-action--window.is-fullscreen {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-profile-topbar-action.mpp-profile-topbar-action--window-close {
    display: none;
    min-width: 40px;
    padding: 0 12px;
    color: #ff4d4f;
}

.mpp-profile-topbar-action.mpp-profile-topbar-action--window-close.is-visible {
    display: inline-flex;
}

.mpp-profile-topbar-action.mpp-profile-topbar-action--window-close:hover {
    color: #ff6b6d;
    background: rgba(255, 77, 79, 0.14);
}

.mpp-profile-topbar-action--add-friend {
    align-self: center;
    gap: 6px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
}

.mpp-profile-topbar-action--add-friend:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-profile-more {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 100%;
}

.mpp-profile-more__button {
    min-width: 40px;
    padding: 0 12px;
    letter-spacing: 1px;
    font-size: 15px;
    line-height: 1;
}

.mpp-profile-more.is-open .mpp-profile-more__button,
.mpp-profile-more__button[aria-expanded="true"] {
    background: var(--mpp-control-active, rgba(255, 255, 255, 0.14));
}

.mpp-profile-more__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.mpp-profile-more__menu[hidden] {
    display: none !important;
}

.mpp-profile-more__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mpp-text, #ffffff);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.mpp-profile-more__item[hidden],
.mpp-profile-more__sep[hidden] {
    display: none !important;
}

.mpp-profile-more__item:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.08));
}

.mpp-profile-more__item:disabled {
    color: var(--mpp-muted, #a9a9a9);
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.mpp-profile-more__item:disabled:hover {
    background: transparent;
}

.mpp-profile-more__item--danger {
    color: #ff4f64;
}

.mpp-profile-more__item--danger:hover {
    background: rgba(255, 79, 100, 0.12);
}

.mpp-profile-more__sep {
    height: 1px;
    margin: 6px 8px;
    background: var(--mpp-line, var(--mpp-border, #49475b));
}

.mpp-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    color: var(--mpp-text, #fff);
}

.mpp-confirm-modal[hidden] {
    display: none !important;
}

.mpp-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.55);
}

.mpp-confirm-modal__panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 18px 16px 14px;
    border: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    border-radius: 12px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.mpp-confirm-modal__image {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 12px;
}

.mpp-confirm-modal__image[hidden] {
    display: none !important;
}

.mpp-confirm-modal__text {
    margin: 0 0 14px;
    color: var(--mpp-text, #fff);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: pre-line;
}

.mpp-confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mpp-confirm-modal__cancel,
.mpp-confirm-modal__confirm {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-confirm-modal__confirm {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-confirm-modal__confirm--danger {
    border-color: #ff8b8b;
    color: #ff8b8b;
}

.mpp-confirm-modal--info .mpp-confirm-modal__cancel {
    display: none;
}

.mpp-confirm-modal--info .mpp-confirm-modal__actions {
    justify-content: flex-end;
}


.profileStatusWrapper {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    position: relative;
    z-index: 6;
    background: transparent;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.profileStatus {
    position: relative;
    height: 50px;
    background: var(--mpp-status-bg, #ffffff21);
    border-radius: 1000px;
    border: 1px solid #ffffff1c;
    outline: 1px solid #ffffff17;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
}
.profileStatus.profileStatus--base {
    background: var(--mpp-surface, #3d3b4c);
    border-color: var(--mpp-line, rgba(255, 255, 255, 0.14));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.profileStatusIcon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    border-right: 0px solid #ffffff00;
    display: flex;
    align-items: center;
    justify-content: center;
}
button.profileStatusIcon {
    cursor: pointer;
    border-radius: 50%;
}
button.profileStatusIcon:hover,
button.profileStatusIcon[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
}
.profileStatusIcon__emoji,
.profileStatusIcon > span.profileStatusIcon__emoji {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 35px !important;
    height: 35px !important;
    font-size: 22px;
    line-height: 1;
    background: none !important;
    background-image: none !important;
}
.profileStatusIcon__emoji .mpp-status-icon-img,
.mpp-status-style__chip--emoji .mpp-status-icon-img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}
.profileStatusIcon > span:not(.profileStatusIcon__emoji) {
    display: none !important;
    background: none !important;
    background-image: none !important;
}
.profileStatusText #statusForm {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.profileStatusText #statusForm input,
.profileStatusText .uStat {
    height: 40px;
    border: none !important;
    outline: none;
    background: none;
    width: 100%;
    min-width: 0;
    color: var(--mpp-status-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0px;
    margin: 0px;
    font-weight: 600;
    font-size: 18px;
    overflow: hidden;
    white-space: nowrap;
}

.profileStatusText #statusForm input[data-mpp-status-input] {
    position: relative;
    z-index: 2;
}

.profileStatusText .mpp-status-placeholder {
    position: absolute;
    left: 0;
    top: 0;
    right: 48px;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: var(--mpp-status-color, #ffffff);
    font-weight: 600;
    font-size: 18px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
    transform: none !important;
    transition: opacity 0.15s ease;
}

.profileStatusText #statusForm.is-focused .mpp-status-placeholder,
.profileStatusText #statusForm.has-value .mpp-status-placeholder {
    opacity: 0;
}

.profileStatusText .uStat {
    padding-left: 2px;
    padding-right: 16px;
    justify-content: flex-start;
    text-align: left;
    cursor: default;
}

.profileStatusText .uStat__track {
    display: inline-block;
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap;
    will-change: transform;
    transform: translateX(0);
}

.profileStatusText .uStat.is-overflowing:hover .uStat__track {
    animation: mpp-status-marquee var(--mpp-marquee-duration, 10s) linear infinite alternate;
}

@keyframes mpp-status-marquee {
    0%,
    8% {
        transform: translateX(0);
    }

    92%,
    100% {
        transform: translateX(var(--mpp-marquee-shift, 0px));
    }
}
.profileStatusText #statusForm.mpp-status-form--dirty > button[type="submit"] {
    display: flex !important;
}

.profileStatusText #statusForm.mpp-status-form--saving > button[type="submit"] {
    pointer-events: none;
}

.mpp-status-feedback {
    display: none;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #fff;
    box-sizing: border-box;
    line-height: 1;
    opacity: 0.5;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    margin-right: 20px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mpp-status-form--saved .mpp-status-feedback,
.mpp-status-form--message .mpp-status-feedback {
    display: inline-flex;
}

.mpp-status-form--fading .mpp-status-feedback {
    opacity: 0;
    transform: translateY(-2px);
}

.profileStatusText #statusForm > button[type="submit"] {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #00000042;
    border-left: 0px solid #3a3a3a;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    margin-right: 3px;
    cursor: pointer;
}


.profileHeaderWrapper {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 9;
}
.profileHeaderWrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: none;
}

.profileHeaderWrapper--no-cover::before,
.profileHeaderWrapper:not(:has(.profileHeaderImg))::before {
    background: none;
}

.profileHeader {
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0px 15px;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    padding-bottom: 25px;
}

.profileHeaderWrapper--no-cover .profileHeader,
.profileHeaderWrapper:not(:has(.profileHeaderImg)) .profileHeader {
    background: #0000002e;
}

.profileHeader > .leftHeader > .profileAvatar {
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin-right: 15px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #ffffff26;
    background: rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.profileHeader > .leftHeader > .profileAvatar > img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.profileHeader > .leftHeader > .profileAvatar--editable {
    cursor: pointer;
}

.profileHeader > .leftHeader > button.profileAvatar {
    font: inherit;
    color: inherit;
}

.profileHeader > .leftHeader > .profileAvatar--editable:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

span.profileAllSettings {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    text-decoration: none;
    background: none;
    border: none;
    transition: 0.15s;
    position: relative;
    cursor: pointer;
}
.balanceWrapper {
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    text-decoration: none;
    background: none;
    border: none;
    margin-right: 0px;
    color: white;
}
.profileHeader>.leftHeader .profileNameWrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-flow: row-reverse;
    gap: 3px;
}

.profileHeader>.leftHeader .profileName {
    color: white;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: row;
}

.profileHeader>.leftHeader .profileName.profileName--vip,
.profileWrapper .profileName.profileName--vip,
.profileHeader>.leftHeader .profileName.profileName--premium,
.profileWrapper .profileName.profileName--premium {
    font-weight: 600;
}

.profileHeader>.leftHeader .profileName.profileName--vip,
.profileWrapper .profileName.profileName--vip {
    color: var(--mpp-nick-vip, #ffcd00);
}

.profileHeader>.leftHeader .profileName.profileName--premium,
.profileWrapper .profileName.profileName--premium {
    color: var(--mpp-nick-premium, #4ea2ff);
}

.profileHeader>.leftHeader .profileNameDeleted {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 51, 71, 0.16);
    color: #ff3347;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: default;
}

.profileHeader > .leftHeader .profileOnline {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 2px 10px;
    border: 2px solid #27d1272b;
    border-radius: 100px;
    color: #ffffff;
}

.profileHeader > .leftHeader .profileOnline--offline {
    border-color: #d127272b;
}



.mpp-profile-topbar--user {
    justify-content: flex-start;
}

.mpp-profile-topbar .profileBackWrapper {
    margin: 0;
}

.mpp-profile-clan {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
span.mpp-profile-clan__name {
    font-weight: 600;
    color: white;
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
span.mpp-profile-clan__members {
    color: white;
    font-size: 12px;
}
.mpp-profile-clan__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.mpp-profile-clan__icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.mpp-profile-clan__body {
    display: inline-flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.mpp-profile-clan__name,
.mpp-profile-clan__members,
.mpp-profile-clan__label {
    display: block;
}

button.mpp-profile-clan {
    border: 0;
    cursor: pointer;
}

.mpp-profile-spouse {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    vertical-align: middle;
    box-sizing: border-box;
    overflow: visible;
}

.mpp-profile-spouse--active {
    justify-content: flex-start;
}

.mpp-profile-spouse__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.mpp-profile-spouse__avatar img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.mpp-profile-spouse__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    gap: 2px;
}

.mpp-profile-spouse__name,
.mpp-profile-spouse__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mpp-text, #fff);
    text-decoration: none;
}

.mpp-profile-spouse__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    line-height: 1;
}

.mpp-profile-spouse__status,
.mpp-presence-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
}

.mpp-presence-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

.mpp-presence-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 8px;
    background: var(--mpp-control-bg, rgba(255, 255, 255, 0.06));
    color: var(--mpp-text, #ffffff);
    cursor: pointer;
    overflow: visible;
}

.mpp-presence-action:hover {
    color: var(--mpp-accent, #ffcd00);
    border-color: var(--mpp-accent, #ffcd00);
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.1));
}

.mpp-presence-action svg {
    display: block;
}

svg.mpp-icon {
    color: var(--mpp-icon, currentColor);
}

/* Подсказка локации: правый край у кнопки, растёт влево — не обрезается сайдбаром */
.mpp-presence-action--location[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
    z-index: 80;
    max-width: min(240px, calc(100vw - 48px));
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(18, 18, 22, 0.96);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.mpp-profile-spouse .mpp-presence-actions,
.mpp-profile-spouse .mpp-player-actions,
.mpp-profile-clan .mpp-player-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.mpp-friends-drawer__status .mpp-presence-status {
    color: inherit;
}

a.mpp-profile-spouse__name:link,
a.mpp-profile-spouse__name:visited,
a.mpp-profile-spouse__name:active,
a.mpp-profile-spouse__name:focus {
    color: var(--mpp-text, #fff);
    text-decoration: none;
}

a.mpp-profile-spouse__name:hover,
a.mpp-profile-spouse__name:focus {
    color: var(--mpp-accent, #ffcd00);
}

button.mpp-profile-spouse {
    border: 0;
    cursor: pointer;
}

.mpp-profile-header-aside {
    display: inline-flex;
    align-items: stretch;
    gap: 10px;
    max-width: 100%;
}

.mpp-profile-friends-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid #49475b;
    border-radius: 10px;
    background: #2d2b3a85;
    color: #ffffff;
    cursor: pointer;
}

.mpp-profile-friends-button:hover {
    background: #363443;
}

.mpp-profile-friends-button__label {
    font-weight: 600;
    font-size: 16px;
}

.mpp-profile-friends-button__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.mpp-profile-friends-button__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c5c3d1;
    transition: transform 0.2s ease;
}

.mpp-profile-friends-button[aria-expanded="true"] .mpp-profile-friends-button__arrow {
    transform: rotate(180deg);
}

.mpp-friends-drawer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.mpp-friends-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mpp-friends-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.45);
    /* backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); */
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mpp-friends-drawer.is-open .mpp-friends-drawer__backdrop {
    opacity: 1;
}

.mpp-friends-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 92vw);
    height: 100%;
    background: var(--mpp-sidebar, var(--mpp-surface, #3d3b4c));
    border-left: 1px solid var(--mpp-border, #49475b);
    color: var(--mpp-text, #fff);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mpp-friends-drawer.is-open .mpp-friends-drawer__panel {
    transform: translateX(0);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.15);
}
.mpp-friends-drawer__head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mpp-border, #49475b);
}

.mpp-friends-drawer__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mpp-friends-drawer__title {
    margin: 0;
    color: var(--mpp-text, #ffffff);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-friends-drawer__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mpp-accent, #ffcd00);
    color: #1b1404;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.mpp-friends-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 100px;
    background: transparent;
    color: var(--mpp-text, #ffffff);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mpp-friends-drawer__close:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.08));
}

.mpp-friends-drawer__tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mpp-friends-drawer__filter-wrap {
    position: relative;
}

.mpp-friends-drawer__filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 100px;
    background: transparent;
    color: var(--mpp-text, #ffffff);
    cursor: pointer;
}

.mpp-friends-drawer__filter-btn svg {
    width: 18px;
    height: 18px;
}

.mpp-friends-drawer__filter-btn:hover,
.mpp-friends-drawer__filter-btn.is-open,
.mpp-friends-drawer__filter-btn.is-active {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-friends-drawer__filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    width: max-content;
    min-width: 196px;
    padding: 6px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.mpp-friends-drawer__filter-menu[hidden] {
    display: none !important;
}

.mpp-friends-drawer__check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border-radius: 6px;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.mpp-friends-drawer__check:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.08));
}

.mpp-friends-drawer__check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.mpp-friends-drawer__check-box {
    display: inline-flex;
    flex: 0 0 14px;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    opacity: 0.85;
}

.mpp-friends-drawer__check-box::after {
    content: "";
    width: 7px;
    height: 4px;
    margin-top: -1px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
}

.mpp-friends-drawer__check input:checked + .mpp-friends-drawer__check-box::after {
    opacity: 1;
}

.mpp-friends-drawer__check input:focus-visible + .mpp-friends-drawer__check-box {
    border-color: var(--mpp-accent, #ffcd00);
}

.mpp-friends-drawer__list {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 8px 12px;
    -webkit-overflow-scrolling: touch;
}

.mpp-friends-drawer__empty {
    padding: 24px 8px;
    color: var(--mpp-muted, #a9a9a9);
    text-align: center;
}

.mpp-friends-drawer__item + .mpp-friends-drawer__item {
    margin-top: 0;
}

.mpp-friends-drawer__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    border-radius: 8px;
    box-sizing: border-box;
}

.mpp-friends-drawer__item[hidden] {
    display: none !important;
}

.mpp-friends-drawer__item:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.06));
}

.mpp-friends-drawer__item:hover .mpp-friends-drawer__name {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-friends-drawer__item:hover .profileNameDeleted {
    color: #ff3347;
}

.mpp-friends-drawer__gift {
    flex: 0 0 auto;
}

.mpp-friends-drawer__link + .mpp-presence-actions,
.mpp-friends-drawer__link + .mpp-friends-drawer__gift,
.mpp-friends-drawer__link + .mpp-player-actions {
    margin-left: auto;
}

.mpp-player-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.mpp-player-actions--compact .mpp-presence-action {
    font-size: 14px;
    line-height: 1;
}

.mpp-player-actions--compact .mpp-profile-more__button {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    letter-spacing: 0.5px;
    border-left: 0;
    font-size: 12px;
    outline: none;
    box-shadow: none;
}

.mpp-player-actions--compact .mpp-profile-more__button:focus,
.mpp-player-actions--compact .mpp-profile-more__button:focus-visible {
    outline: none;
}

.mpp-player-actions--compact .mpp-profile-more.is-open .mpp-profile-more__button,
.mpp-player-actions--compact .mpp-profile-more__button[aria-expanded="true"] {
    color: var(--mpp-accent, #ffcd00);
    border-color: var(--mpp-accent, #ffcd00);
    background: var(--mpp-control-active, rgba(255, 255, 255, 0.1));
}

.mpp-profile-more__menu--portal {
    position: fixed;
    z-index: 100080;
    max-height: none;
    overflow: visible;
}

.mpp-friends-drawer__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

.mpp-friends-drawer__actions .profileNameDeleted {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 51, 71, 0.16);
    color: #ff3347;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mpp-friends-drawer__actions .mpp-presence-action,
.mpp-friends-drawer__actions .mpp-profile-more__button {
    width: 28px;
    min-width: 28px;
    height: 28px;
}

.mpp-friends-drawer__unfriend {
    color: #ff3347;
    border-color: rgba(255, 51, 71, 0.45);
}

.mpp-friends-drawer__unfriend:hover {
    color: #ff3347;
    border-color: #ff3347;
    background: rgba(255, 51, 71, 0.12);
}

.mpp-friends-drawer__name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mpp-friends-drawer__name .profileNameDeleted {
    margin-left: 0;
    flex: 0 0 auto;
}

.mpp-friends-drawer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

a.mpp-friends-drawer__link:link,
a.mpp-friends-drawer__link:visited,
a.mpp-friends-drawer__link:active,
a.mpp-friends-drawer__link:focus {
    color: inherit;
    text-decoration: none;
}

.mpp-friends-drawer__link--static {
    cursor: default;
}

.mpp-friends-drawer__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 100px;
    background: #262435;
}

.mpp-friends-drawer__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-friends-drawer__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mpp-friends-drawer__name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--mpp-text, #ffffff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.mpp-friends-drawer__name .mpp-nick__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-friends-drawer__status {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.profileWrapper.mpp-news-page .mpp-profile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--mpp-topbar, var(--mpp-bg, #2d2b3a));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mpp-news-page {
    padding-top: 40px;
}

.mpp-news-page .mpp-profile-body {
    margin-top: 16px;
}

.mpp-news-page:has(.mpp-news.is-list) .mpp-profile-body {
    margin-left: 185px;
    margin-right: 185px;
}

.mpp-news-page .mpp-wall-post-form {
    margin-top: 0;
}

.mpp-news-layout .mpp-profile-topbar-action {
    width: 40px;
    padding: 0;
}

.mpp-news-layout .mpp-profile-topbar-action.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.mpp-news.is-grid .mpp-wall-list {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
}

#mycomments.mpp-news.is-grid ul.mpp-wall-list > li.mpp-wall-post {
    position: absolute;
    width: calc(50% - 4px);
    height: auto;
    min-height: 0;
    margin: 0 !important;
    left: 0;
    top: 0;
}

#mycomments.mpp-news.is-grid ul.mpp-wall-list > li.mpp-wall-post[data-mpp-col="1"] {
    left: calc(50% + 4px);
}

.mpp-news.is-grid .mpp-wall-list > .noPostsInWall {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
}

#mycomments ul.my_commentlist > li {
    margin-bottom: 8px !important;
}

.mpp-news-more {
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.mpp-news-more.is-loading,
.mpp-news-more.is-end {
    width: auto;
    height: auto;
    margin: 8px 0 0;
    overflow: visible;
}

.mpp-news-more__card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    border-radius: 12px;
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.mpp-news-more__card[hidden] {
    display: none !important;
}

.mpp-news-more__spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid var(--mpp-line, rgba(255, 255, 255, 0.2));
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    animation: mpp-lightbox-spin 0.7s linear infinite;
}

.mpp-news-more__end {
    color: var(--mpp-muted, #b7b5c5);
}

.mpp-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: -60px 20px 16px;
    align-items: start;
    box-sizing: border-box;
    position: relative;
    z-index: 12;
    width: auto;
    max-width: none;
}

.mpp-profile-body--with-aside {
    /* 5 фото слева + 3 справа в одной шкале */
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
}

.mpp-profile-body__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mpp-starter {
    margin: 0 0 16px;
    padding: 14px 14px 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background-color: var(--mpp-surface, #2d2b3a);
    color: var(--mpp-text, #fff);
}

.mpp-starter--bg {
    background-image:
        linear-gradient(
            color-mix(in srgb, var(--mpp-surface, #2d2b3a) 42%, transparent),
            color-mix(in srgb, var(--mpp-surface, #2d2b3a) 42%, transparent)
        ),
        var(--mpp-starter-bg);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.mpp-profile-sidebar .mpp-starter {
    margin: 0;
}

.mpp-starter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.mpp-starter__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mpp-text, #fff);
}

.mpp-starter__lead {
    margin: 6px 0 0;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.mpp-starter__count {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--mpp-accent, #ffcd00);
    color: var(--mpp-bg, #1b1404);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.mpp-starter__road {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mpp-starter__track {
    flex: 1 1 auto;
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mpp-text, #fff) 12%, transparent);
    overflow: hidden;
}

.mpp-starter__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mpp-accent, #ffcd00);
}

.mpp-starter__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mpp-starter__step {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.mpp-starter__step:hover {
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
}

.mpp-starter__mark {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 50%;
    box-sizing: border-box;
}

.mpp-starter__step.is-done .mpp-starter__mark {
    border-color: var(--mpp-accent, #ffcd00);
    background: var(--mpp-accent, #ffcd00);
}

.mpp-starter__step.is-done .mpp-starter__mark::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    margin: 2px 0 0 5px;
    border: solid var(--mpp-bg, #1b1404);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.mpp-starter__fraction {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
}

.mpp-starter__step.is-done .mpp-starter__fraction {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-starter__claim {
    width: 100%;
    margin-top: 12px;
}

.mpp-starter__claim[hidden] {
    display: none !important;
}

.mpp-profile-body__main .mpp-gallery-preview,
.mpp-profile-body__main #mycomments,
.mpp-profile-body__main .comments-area {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.mpp-profile-body__main #mycomments .wrapComments,
.mpp-profile-body__main #mycomments.mpp-wall .wrapComments {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.mpp-profile-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    /* На профиле шапка static — без лишнего top, иначе при скролле появляется зазор */
    top: 8px;
    align-self: start;
    height: max-content;
    overflow: visible;
}

.mpp-profile-sidebar__gift-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: 10px;
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    text-decoration: none;
}

a.mpp-profile-sidebar__gift-btn,
a.mpp-profile-sidebar__gift-btn:link,
a.mpp-profile-sidebar__gift-btn:visited,
a.mpp-profile-sidebar__gift-btn:active,
a.mpp-profile-sidebar__gift-btn:focus {
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    text-decoration: none;
}

.mpp-profile-sidebar__gift-btn:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-profile-sidebar__head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
}

.mpp-profile-sidebar__head-actions .mpp-profile-sidebar__gift-btn {
    margin-left: 0;
}

.mpp-profile-sidebar__gifts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mpp-gifts-drawer {
    position: fixed;
    inset: 0;
    z-index: 100050;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.mpp-gifts-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mpp-gifts-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mpp-gifts-drawer.is-open .mpp-gifts-drawer__backdrop {
    opacity: 1;
}

.mpp-gifts-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(460px, 92vw);
    height: 100%;
    background: var(--mpp-sidebar, var(--mpp-surface, #3d3b4c));
    border-left: 1px solid var(--mpp-border, #49475b);
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mpp-gifts-drawer.is-open .mpp-gifts-drawer__panel {
    transform: translateX(0);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}

.mpp-gifts-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 12px 14px;
    border-bottom: 1px solid #49475b;
}

.mpp-gifts-drawer__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mpp-gifts-drawer__title {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gifts-drawer__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.mpp-gifts-drawer__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: 10px;
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.mpp-gifts-drawer__send:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-gifts-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #49475b;
    border-radius: 100px;
    background: transparent;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mpp-gifts-drawer__close:hover {
    background: #363443;
}

.mpp-gifts-drawer__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.mpp-gifts-drawer__empty {
    padding: 24px 8px;
    color: #a9a9a9;
    text-align: center;
}

.mpp-gifts-drawer__items {
    display: block;
}

.mpp-gifts-drawer__item {
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--mpp-border, #49475b);
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    filter: none;
    text-shadow: none;
}

.mpp-gifts-drawer__item.is-hidden {
    opacity: 0.55;
}

.mpp-gifts-drawer__items .mpp-gifts-drawer__item:last-child {
    border-bottom: 0;
}

.mpp-gifts-drawer__more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 12px 0 4px;
    padding: 0 16px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gifts-drawer__more:hover {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-gifts-drawer__more:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-gifts-drawer__item-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.mpp-gifts-drawer__visibility {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 8px;
    background: transparent;
    color: var(--mpp-text, #fff);
    line-height: 1;
    cursor: pointer;
}

.mpp-gifts-drawer__visibility:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.1));
}

.mpp-gifts-drawer__visibility:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-gifts-drawer__visibility > span {
    pointer-events: none;
}

.mpp-gifts-drawer__visibility [hidden],
.mpp-gifts-drawer__hidden-flag[hidden] {
    display: none !important;
}

.mpp-gifts-drawer__sender {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.mpp-gifts-drawer__sender--static {
    cursor: default;
}

.mpp-gifts-drawer__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mpp-border, #49475b);
    box-sizing: border-box;
}

.mpp-gifts-drawer__avatar--anon {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.mpp-gifts-drawer__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gifts-drawer__sender-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mpp-gifts-drawer__name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--mpp-accent, #ffcd00);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mpp-gifts-drawer__sender:hover .mpp-gifts-drawer__name {
    text-decoration: underline;
}

.mpp-gifts-drawer__sender--static .mpp-gifts-drawer__name,
.mpp-gifts-drawer__sender--static:hover .mpp-gifts-drawer__name {
    color: var(--mpp-text, #fff);
    text-decoration: none;
}

.mpp-gifts-drawer__date {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    line-height: 1.3;
}

.mpp-gifts-drawer__note {
    flex: 0 1 42%;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.mpp-gifts-drawer__hidden-flag {
    margin: -4px 0 10px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 11px;
    line-height: 1.35;
}

.mpp-gifts-drawer__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(180px, 100%);
    margin: 0 auto 12px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    filter: none;
}

.mpp-gifts-drawer__media img,
.mpp-gifts-drawer__media video {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    filter: none !important;
}

.mpp-gifts-drawer__media audio {
    display: block;
    width: 100%;
}

.mpp-gifts-drawer__message {
    margin: 0 0 12px;
    color: var(--mpp-text, #fff);
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
}

.mpp-gifts-drawer__reply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gifts-drawer__reply:hover {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-profile-sidebar__gift {
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
}

.mpp-profile-sidebar__gift:hover {
    border-color: transparent;
    opacity: 0.9;
}

.mpp-profile-sidebar__gift.is-hidden {
    opacity: 0.45;
}

.mpp-profile-sidebar__gift.is-hidden:hover {
    opacity: 0.6;
}

.mpp-profile-sidebar__gift img,
.mpp-profile-sidebar__gift video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.mpp-profile-sidebar__gift audio {
    display: block;
    width: 100%;
    margin-top: 28%;
}

.mpp-profile-sidebar__gift a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    color: var(--mpp-text, #fff);
    font-size: 10px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.mpp-gifts-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mpp-gifts-modal.is-open,
.mpp-gifts-modal:not([hidden]) {
    display: flex;
}

.mpp-gifts-modal[hidden] {
    display: none !important;
}

.mpp-gifts-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.mpp-gifts-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background: var(--mpp-surface, #2d2b3a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 100vmax rgba(8, 6, 16, 0.72);
}

.mpp-gifts-modal__sheet {
    display: flex;
    flex-direction: column;
    max-height: min(80vh, 720px);
    overflow: hidden;
    border-radius: inherit;
    min-height: 0;
}

.mpp-gifts-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mpp-border, #49475b);
}

.mpp-gifts-modal__head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mpp-gifts-modal__balance {
    height: 32px;
    margin: 0;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 8px;
}

.mpp-gifts-modal[data-mpp-step="configure"] .mpp-gifts-modal__balance {
    display: none;
}

.mpp-gifts-modal__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mpp-gifts-modal__title {
    margin: 0;
    color: var(--mpp-text, #fff);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gifts-modal__to {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-gifts-modal__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mpp-gifts-modal__body {
    padding: 14px 16px;
    overflow: hidden;
}

.mpp-gifts-modal[data-mpp-step="configure"] .mpp-gifts-modal__sheet {
    max-height: none;
}

.mpp-gifts-modal__step-panel[hidden] {
    display: none !important;
}

.mpp-gifts-modal__step {
    margin: 0 0 12px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    line-height: 1.35;
}

.mpp-gifts-modal__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mpp-accent, #ffcd00);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.mpp-gifts-modal__back::before {
    content: '←';
    font-size: 14px;
    line-height: 1;
}

.mpp-gifts-modal__back:hover {
    color: var(--mpp-text, #fff);
}

.mpp-gifts-modal__back:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-gifts-modal__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.mpp-gifts-modal__cat {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 999px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gifts-modal__cat:hover,
.mpp-gifts-modal__cat.is-active {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-gifts-modal__item[hidden] {
    display: none !important;
}

.mpp-gifts-modal__empty--filter {
    padding: 16px 10px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mpp-gifts-modal__selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
}

.mpp-gifts-modal__selected-media {
    position: relative;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.mpp-gifts-modal__selected-media img,
.mpp-gifts-modal__selected-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gifts-modal__selected-media audio {
    display: block;
    width: 100%;
    margin-top: 40%;
}

.mpp-gifts-modal__selected-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mpp-gifts-modal__selected-price {
    color: var(--mpp-text, #fff);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.mpp-gifts-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.mpp-gifts-modal__check {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.mpp-gifts-modal__check[hidden] {
    display: none !important;
}

.mpp-gifts-modal__check--nested {
    color: var(--mpp-muted, #a9a9a9);
}

/* Переключатели как в maska-vote (фильтры каталога). */
.maska-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 16px;
    flex: 0 0 auto;
    cursor: pointer;
    user-select: none;
}

.profileWrapper .maska-switch input,
.maska-switch input {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.maska-switch-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.25);
    transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.maska-switch-track::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.14s ease, background 0.14s ease;
}

.maska-switch input:checked + .maska-switch-track {
    border-color: rgba(255, 198, 84, 0.85);
    background: rgba(255, 198, 84, 0.28);
    box-shadow: 0 0 0 4px rgba(255, 198, 84, 0.1), inset 0 1px 0 rgba(0, 0, 0, 0.25);
}

.maska-switch input:checked + .maska-switch-track::after {
    transform: translateX(14px);
    background: #fff;
}

.maska-switch input:focus + .maska-switch-track,
.maska-switch input:focus-visible + .maska-switch-track {
    box-shadow: 0 0 0 4px rgba(255, 198, 84, 0.14), inset 0 1px 0 rgba(0, 0, 0, 0.25);
}

.mpp-gifts-modal__message-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--mpp-text, #fff);
    font-size: 13px;
}

.profileWrapper .mpp-gifts-modal textarea.mpp-gifts-modal__message,
.mpp-gifts-modal textarea.mpp-gifts-modal__message {
    width: 100%;
    min-height: 72px !important;
    height: auto !important;
    max-height: none !important;
    resize: vertical;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--mpp-border, #49475b) !important;
    border-radius: var(--mpp-control-radius, 8px) !important;
    background: var(--mpp-bg, #2d2b3a) !important;
    color: var(--mpp-text, #fff) !important;
    font: inherit !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.profileWrapper .mpp-gifts-modal textarea.mpp-gifts-modal__message:focus,
.mpp-gifts-modal textarea.mpp-gifts-modal__message:focus {
    outline: none;
    border-color: var(--mpp-accent, #ffcd00) !important;
    background: var(--mpp-bg, #2d2b3a) !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
}

.profileWrapper .mpp-gifts-modal textarea.mpp-gifts-modal__message::placeholder,
.mpp-gifts-modal textarea.mpp-gifts-modal__message::placeholder {
    color: var(--mpp-muted, #a9a9a9);
    opacity: 1;
}

.mpp-gifts-modal__hint {
    margin: -4px 0 0;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    line-height: 1.35;
}

.mpp-gifts-modal__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--mpp-btn-primary-border, var(--mpp-accent, #ffcd00));
    border-radius: var(--mpp-control-radius, 8px);
    background: var(--mpp-btn-primary-bg, transparent);
    color: var(--mpp-btn-primary-text, var(--mpp-accent, #ffcd00));
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: none;
}

.mpp-gifts-modal__buy:hover:not(:disabled):not(.is-busy):not(.is-ok):not(.is-error) {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-gifts-modal__buy:disabled,
.mpp-gifts-modal__buy.is-busy,
.mpp-gifts-modal__buy.is-ok,
.mpp-gifts-modal__buy.is-error {
    cursor: default;
    pointer-events: none;
}

.mpp-gifts-modal__buy:disabled:hover,
.mpp-gifts-modal__buy.is-busy:hover,
.mpp-gifts-modal__buy.is-ok:hover,
.mpp-gifts-modal__buy.is-error:hover {
    background: var(--mpp-btn-primary-bg, transparent);
}

.mpp-gifts-modal__buy.is-busy {
    opacity: 0.85;
}

.mpp-gifts-modal__buy.is-ok {
    opacity: 1;
    border-color: #7dffb2;
    color: #7dffb2;
}

.mpp-gifts-modal__buy.is-error {
    opacity: 1;
    border-color: #ff8b8b;
    color: #ff8b8b;
}

.mpp-gifts-modal__item.is-selected {
    border-color: var(--mpp-accent, #ffcd00);
    box-shadow: inset 0 0 0 1px var(--mpp-accent, #ffcd00);
}

.mpp-gift-view {
    position: fixed;
    inset: 0;
    z-index: 100055;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mpp-gift-view.is-open,
.mpp-gift-view:not([hidden]) {
    display: flex;
}

.mpp-gift-view[hidden] {
    display: none !important;
}

.mpp-gift-view__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 16, 0.72);
}

.mpp-gift-view__panel {
    position: relative;
    z-index: 1;
    width: min(320px, 100%);
    padding: 18px 16px 16px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background: var(--mpp-surface, #2d2b3a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.mpp-gift-view__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.mpp-gift-view__sender {
    min-width: 0;
    width: calc(100% - 28px);
    margin: 0 0 4px;
}

.mpp-gift-view__sender .mpp-gifts-drawer__sender {
    width: 100%;
    max-width: 100%;
}

.mpp-gift-view__sender .mpp-gifts-drawer__name {
    text-overflow: ellipsis;
}

.mpp-gift-view__media {
    width: 120px;
    height: 120px;
    margin: 12px auto 14px;
    overflow: hidden;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.mpp-gift-view__media img,
.mpp-gift-view__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gift-view__media audio {
    width: 100%;
    margin-top: 40%;
}

.mpp-gift-view__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.mpp-gift-view__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mpp-gift-view__label {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mpp-gift-view__value {
    color: var(--mpp-text, #fff);
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}

.mpp-gift-view__message {
    white-space: pre-wrap;
}


.mpp-gifts-modal__empty {
    color: var(--mpp-muted, #a9a9a9);
    text-align: center;
    padding: 28px 10px;
}

.mpp-gifts-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 10px;
}

.mpp-gifts-modal__grid.is-paging {
    opacity: 0.45;
    pointer-events: none;
}

.mpp-gifts-modal__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.mpp-gifts-modal__pager[hidden] {
    display: none !important;
}

.mpp-gifts-modal__pager-nums {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mpp-gifts-modal__pager button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 8px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gifts-modal__pager button.is-active,
.mpp-gifts-modal__pager button:hover {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-gifts-modal__pager button:disabled {
    opacity: 0.4;
    cursor: default;
}

.mpp-gifts-modal__pager-gap {
    color: var(--mpp-muted, #a9a9a9);
    min-width: 16px;
    text-align: center;
}

.mpp-gifts-modal__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    color: var(--mpp-text, #fff);
    cursor: pointer;
}

.mpp-gifts-modal__item:hover {
    border-color: var(--mpp-accent, #ffcd00);
}

.mpp-gifts-modal__item:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-gifts-modal__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.mpp-gifts-modal[data-mpp-step="pick"] .mpp-gifts-modal__image {
    width: min(100%, 22vh);
    margin-inline: auto;
}

.mpp-gifts-modal__image.is-loading::after,
.mpp-gifts-modal__selected-media.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    animation: mpp-lightbox-spin 0.7s linear infinite;
}

.mpp-gifts-modal__image.is-loading img,
.mpp-gifts-modal__image.is-loading video,
.mpp-gifts-modal__selected-media.is-loading img,
.mpp-gifts-modal__selected-media.is-loading video {
    opacity: 0;
}

.mpp-gifts-modal__image img,
.mpp-gifts-modal__image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.mpp-gifts-modal__image audio {
    display: block;
    width: 100%;
    margin-top: 30%;
}

.mpp-gifts-modal__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px;
    color: var(--mpp-text, #fff);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.mpp-gifts-modal__price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gifts-modal__price--gold {
    color: var(--mainColor, #ffae0b);
}

.mpp-gifts-modal__price--silver {
    color: #ebebe8;
}

.mpp-gifts-modal__price .coinGolds,
.mpp-gifts-modal__price .coinSilvers {
    width: 14px;
    height: 14px;
    margin-right: 0;
    flex: 0 0 14px;
    background-size: contain;
}

.mpp-gifts-modal__selected .mpp-gifts-modal__price {
    font-size: 14px;
}

.mpp-gifts-modal__selected .mpp-gifts-modal__price .coinGolds,
.mpp-gifts-modal__selected .mpp-gifts-modal__price .coinSilvers {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.mpp-gifts-modal__status {
    display: none !important;
}

.mpp-gifts-modal__status.is-error,
.mpp-gifts-modal__status.is-ok {
    display: none !important;
}


.mpp-profile-sidebar__block {
    padding: 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 12px;
    background: var(--mpp-surface-soft, rgba(45, 43, 58, 0.72));
    box-sizing: border-box;
}

.mpp-profile-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.mpp-profile-sidebar__title-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.mpp-profile-sidebar__title-btn--static {
    cursor: default;
}

.mpp-profile-sidebar__title-btn--static:hover .mpp-profile-sidebar__title {
    color: inherit;
}

.mpp-profile-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mpp-text, #fff);
}

.mpp-profile-sidebar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mpp-text, #fff);
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
}

.mpp-profile-sidebar__marriage-days,
.mpp-profile-sidebar__clan-days {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.mpp-profile-sidebar__empty {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    font-weight: 600;
}

.mpp-profile-sidebar__friends-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mpp-profile-sidebar__friend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
    color: var(--mpp-text, #fff);
}

.profileWrapper a.mpp-profile-sidebar__friend,
.profileWrapper a.mpp-profile-sidebar__friend:link,
.profileWrapper a.mpp-profile-sidebar__friend:visited,
.profileWrapper a.mpp-profile-sidebar__friend:active,
.profileWrapper a.mpp-profile-sidebar__friend:focus {
    color: var(--mpp-text, #fff) !important;
    text-decoration: none;
}

.profileWrapper a.mpp-profile-sidebar__friend .mpp-profile-sidebar__friend-name {
    color: var(--mpp-text, #fff) !important;
}

.profileWrapper a.mpp-profile-sidebar__friend:hover,
.profileWrapper a.mpp-profile-sidebar__friend:hover .mpp-profile-sidebar__friend-name {
    color: var(--mpp-accent, #ffcd00) !important;
}

.mpp-profile-sidebar__friend-avatar {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.mpp-profile-sidebar__friend-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-profile-sidebar__friend-name {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mpp-text, #fff);
}

.mpp-profile-sidebar__friend-name .mpp-nick__text {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    text-align: left;
}

.mpp-profile-sidebar__title-btn:hover .mpp-profile-sidebar__title {
    color: var(--mpp-text, #fff);
}

.mpp-profile-sidebar__clan .mpp-profile-clan,
.mpp-profile-sidebar__spouse .mpp-profile-spouse {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.mpp-profile-sidebar__clan .mpp-profile-clan {
    display: flex;
    /* min-height: 64px; */
}

.mpp-profile-sidebar__clan-body {
    width: 100%;
    min-width: 0;
}

.mpp-clan-marquee {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mpp-clan-marquee__track {
    display: flex;
    width: max-content;
    height: 50px;
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
    animation: mpp-clan-marquee var(--mpp-clan-marquee-duration, 16s) linear infinite;
}

.mpp-clan-marquee__seq {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding-inline-end: 8px;
}

.mpp-clan-marquee__tile {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    overflow: hidden;
    background: transparent;
}

.mpp-clan-marquee__tile img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: transparent;
    border: 0;
    outline: 0;
    color: transparent;
}

.mpp-clan-marquee__tile img:not([src]),
.mpp-clan-marquee__tile img[src=""] {
    visibility: hidden;
}

@keyframes mpp-clan-marquee {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mpp-clan-marquee__track {
        animation: none;
    }
}

.mpp-profile-sidebar__spouse,
.mpp-profile-sidebar__spouse-body {
    width: 100%;
    overflow: visible;
}

.mpp-profile-sidebar__spouse .mpp-profile-spouse {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.profileWrapper .mpp-contests.mpp-profile-sidebar__block {
    position: relative;
    overflow: hidden;
    background: var(--mpp-surface);
    border-color: var(--mpp-line) !important;
    color: var(--mpp-text);
}

.profileWrapper .mpp-contests .mpp-profile-sidebar__head,
.profileWrapper .mpp-contests .mpp-contests__viewport {
    position: relative;
    z-index: 2;
}

.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active),
.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-profile-sidebar__title,
.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__arrow,
.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__name,
.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__stat:not(.mpp-contests__stat--place) .mpp-contests__stat-value {
    color: #fff;
}

.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__meta,
.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__stat-label {
    color: rgba(255, 255, 255, 0.82);
}

.mpp-contests__nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mpp-contests__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 6px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.mpp-contests__arrow:hover {
    color: var(--mpp-accent, #ffcd00);
    border-color: var(--mpp-accent, #ffcd00);
}

.mpp-contests__viewport {
    overflow: hidden;
}

.mpp-contests__track {
    display: flex;
    align-items: stretch;
}

.mpp-contests.is-ready .mpp-contests__track {
    transition: transform 0.25s ease;
}

.profileWrapper .mpp-contests__slide {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
    box-sizing: border-box;
}

.profileWrapper .mpp-contests__slide--open {
    cursor: pointer;
}

.profileWrapper .mpp-contests:not(.is-ready) .mpp-contests__slide:not(:first-child) {
    display: none;
}

.mpp-contests__bg,
.mpp-contests__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mpp-contests__bg {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mpp-contests__bg.is-active {
    opacity: 1;
}

.mpp-contests__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-contests__scrim {
    z-index: 1;
    opacity: 0;
    background: linear-gradient(180deg, rgba(10, 8, 16, 0.18) 0%, rgba(10, 8, 16, 0.46) 100%);
}

.profileWrapper .mpp-contests:has(.mpp-contests__bg.is-active) .mpp-contests__scrim {
    opacity: 1;
}

.mpp-contests__face {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.mpp-contests__top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mpp-contests__thumb {
    position: relative;
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--mpp-border, rgba(255, 255, 255, 0.28));
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.mpp-contests__thumb img,
.mpp-contests__thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-contests__ribbon {
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 1;
    min-width: 22px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.mpp-contests__slide--place-1 .mpp-contests__ribbon,
.mpp-contests__slide--place-1 .mpp-contests__stat--place .mpp-contests__stat-value {
    color: #1b1404;
    background: #ffcd00;
}

.mpp-contests__slide--place-2 .mpp-contests__ribbon,
.mpp-contests__slide--place-2 .mpp-contests__stat--place .mpp-contests__stat-value {
    color: #1b1726;
    background: #e7e7ee;
}

.mpp-contests__slide--place-3 .mpp-contests__ribbon,
.mpp-contests__slide--place-3 .mpp-contests__stat--place .mpp-contests__stat-value {
    color: #2a1408;
    background: #e0a06a;
}

.mpp-contests__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    gap: 6px;
}

.mpp-contests__name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mpp-text, #fff);
}

.mpp-contests__meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mpp-muted, rgba(255, 255, 255, 0.82));
}

.mpp-contests__stats {
    display: flex;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.mpp-contests__stat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.mpp-contests__stat-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--mpp-text, #fff);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.mpp-contests__stat--place .mpp-contests__stat-value {
    display: inline-flex;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.mpp-contests__stat-label {
    margin-top: 2px;
    color: var(--mpp-muted, rgba(255, 255, 255, 0.72));
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profileWrapper .mpp-contests__slide--open:hover .mpp-contests__name {
    color: var(--mpp-accent, #ffcd00);
}

.profileWrapper .mpp-contests__vote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: 8px;
    background: var(--mpp-btn-bg, transparent);
    box-shadow: none;
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.profileWrapper .mpp-contests__vote:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-gallery-preview {
    width: auto;
    margin: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    overflow: visible;
}

#mycomments .profileBlockTitle span.mpp-wall-count,
.mpp-wall-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.mpp-gallery-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding-bottom: 10px;
    border-bottom: 0;
    box-sizing: border-box;
}

.mpp-gallery-preview__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

.mpp-gallery-preview__title:hover {
    color: var(--mpp-text, #fff);
}

.mpp-gallery-preview__title-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gallery-preview__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
}

.mpp-gallery-preview__body {
    padding: 0;
    box-sizing: border-box;
}

.mpp-gallery-preview__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mpp-gallery-preview__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #49475b;
    border-radius: 8px;
    background: #262435;
    box-sizing: border-box;
}

.mpp-gallery-preview__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    object-position: center;
    transition: transform 0.2s ease;
}

.mpp-gallery-preview__item img.is-cover {
    object-fit: cover;
}

.mpp-gallery-preview__item:hover img {
    transform: scale(1.04);
}

.mpp-gallery-preview__more {
    color: #fff;
    text-decoration: none;
}

.mpp-gallery-preview__more-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 6, 16, 0.62);
    transition: background 0.2s ease;
}

.mpp-gallery-preview__more:hover .mpp-gallery-preview__more-veil {
    background: rgba(8, 6, 16, 0.5);
}

.mpp-gallery-preview__more-count {
    color: var(--mpp-accent, #ffcd00);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.mpp-gallery-preview__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    padding: 20px;
    border: 1px dashed #49475b;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #c5c3d1;
    text-decoration: none;
    box-sizing: border-box;
}

.mpp-gallery-preview__empty:hover {
    border-color: #6a6780;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.mpp-gallery-preview__empty--readonly {
    cursor: default;
}

.mpp-gallery-preview__empty--readonly:hover {
    border-color: #49475b;
    color: #c5c3d1;
    background: rgba(255, 255, 255, 0.02);
}

.mpp-gallery-preview__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 100px;
    border: 1px solid #49475b;
    font-size: 22px;
    line-height: 1;
}

.mpp-gallery-preview__empty-icon svg.mpp-icon {
    width: 18px;
    height: 18px;
}

.mpp-gallery-preview__empty-text {
    font-size: 14px;
    font-weight: 600;
}

html:has(.profileWrapper),
html.mpp-gallery-page-root,
html.mpp-profile-page-root {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--mpp-bg, #2d2b3a);
}

html.mpp-scroll-locked:has(.profileWrapper),
html.mpp-scroll-locked.mpp-gallery-page-root,
html.mpp-scroll-locked.mpp-profile-page-root {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body:has(.profileWrapper),
body.mpp-gallery-page-root,
body.mpp-profile-page-root {
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
    background: var(--mpp-bg, #2d2b3a);
}

html:has(.profileWrapper) #page,
html:has(.profileWrapper) .site,
html:has(.profileWrapper) #content,
html:has(.profileWrapper) .site-content,
html:has(.profileWrapper) .site-inner {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
}

html.mpp-gallery-page-root .profileWrapper.mpp-gallery-page,
body.mpp-gallery-page-root .profileWrapper.mpp-gallery-page {
    background: var(--mpp-bg, #2d2b3a);
}

.mpp-gallery-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-sizing: border-box;
}

.mpp-profile-topbar--gallery {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--mpp-bg, #2d2b3a) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profileWrapper.mpp-gallery-page .mpp-profile-topbar {
    background: var(--mpp-topbar, var(--mpp-bg, #2d2b3a)) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mpp-gallery-page .mpp-profile-topbar-actions:empty,
.mpp-gallery-page .mpp-profile-topbar-actions .mpp-gallery-page__count,
.mpp-gallery-page .mpp-profile-topbar-action[data-mpp-gallery-upload-open] {
    display: none !important;
}

.mpp-gallery-page__owner {
    margin-left: 8px;
    opacity: 0.65;
}

.mpp-gallery-page__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 44px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
}

.mpp-gallery-albums {
    display: block;
    margin: 0;
}

.mpp-gallery-albums__all,
.mpp-gallery-albums__all[hidden] {
    display: none !important;
}

.mpp-gallery-album-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.mpp-gallery-home-zone {
    margin: 0 0 24px;
}

.mpp-gallery-home-zone[data-mpp-gallery-photos-head] {
    margin: 0 0 16px;
}

.mpp-gallery-home-head {
    margin: 0 0 16px;
}

.mpp-gallery-home-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--mpp-control-h, 36px);
    margin: 0 0 16px;
}

.mpp-gallery-home-zone:has([data-mpp-album-board][hidden]) .mpp-gallery-home-head__row,
.mpp-gallery-home-zone:not(:has([data-mpp-album-board])) .mpp-gallery-home-head__row {
    margin-bottom: 0;
}

.mpp-gallery-home-head__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    flex: 1;
    color: var(--mpp-text, #fff);
    font-size: 20px;
    font-weight: 700;
    line-height: var(--mpp-control-h, 36px);
}

.mpp-gallery-home-head__label {
    min-width: 0;
}

.mpp-gallery-home-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.mpp-gallery-home-head__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--mpp-control-h, 36px);
    padding: 0 12px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: var(--mpp-control-radius, 8px);
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.mpp-gallery-home-head__btn:hover {
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
}

.profileWrapper .mpp-gallery-home-head .mpp-gallery-upload__submit,
.mpp-gallery-home-head .mpp-gallery-upload__submit,
.profileWrapper .mpp-gallery-home-zone .mpp-gallery-upload__submit,
.mpp-gallery-home-zone .mpp-gallery-upload__submit {
    width: auto;
    min-width: 0;
}

.mpp-gallery-home-head__btn svg.mpp-icon {
    width: 14px;
    height: 14px;
}

.mpp-gallery-album-board[hidden],
.mpp-gallery-album-head[hidden],
.mpp-gallery-home-head[hidden],
.mpp-gallery-home-zone[hidden],
.mpp-gallery-page.is-album .mpp-gallery-album-board,
.mpp-gallery-page.is-album .mpp-gallery-home-head,
.mpp-gallery-page.is-album .mpp-gallery-home-zone {
    display: none !important;
}

.mpp-gallery-album-tile {
    position: relative;
    display: block;
    min-width: 0;
    overflow: visible;
}

.mpp-gallery-album-tile--create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px;
    border: 1px dashed var(--mpp-border, var(--mpp-line, rgba(255, 255, 255, 0.22)));
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
    font: inherit;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mpp-gallery-album-tile--create:hover {
    border-color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 8%, transparent);
}

.mpp-gallery-album-tile--create:hover .mpp-gallery-uploader__drop-icon {
    color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 14%, transparent);
}

.mpp-gallery-album-tile > .mpp-wall-more {
    position: absolute;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: auto;
    z-index: 3;
}

.mpp-gallery-album-tile .mpp-wall-more-menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 6px);
    left: auto;
}

.mpp-gallery-album-head .mpp-wall-more-menu {
    top: calc(100% + 6px);
    right: 0;
    bottom: auto;
    left: auto;
}

.mpp-gallery-album-tile > .mpp-gallery-albums__item {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: inherit;
    text-decoration: none;
}

.mpp-gallery-album-tile__mosaic {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-gallery-album-tile__mosaic::before,
.mpp-gallery-album-tile__mosaic::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background: color-mix(in srgb, #ffffff4f 12%, transparent);
}

.mpp-gallery-album-tile__mosaic::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    margin-left: -0.5px;
}

.mpp-gallery-album-tile__mosaic::after {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    margin-top: -0.5px;
}

.mpp-gallery-album-tile__shot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-gallery-album-tile__shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.mpp-gallery-album-tile__shot img.is-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gallery-album-tile__shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    min-height: 68px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.08) 72%, transparent 100%);
    pointer-events: none;
}

.mpp-gallery-album-tile__meta {
    position: absolute;
    left: 8px;
    right: 36px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #fff;
    pointer-events: none;
}

.mpp-gallery-album-tile__name {
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gallery-album-tile__meta .mpp-gallery-albums__lock,
.mpp-gallery-album-tile__meta .mpp-gallery-albums__star {
    flex: 0 0 auto;
    color: #fff;
}

.mpp-gallery-album-head__title .mpp-gallery-albums__lock,
.mpp-gallery-album-head__title .mpp-gallery-albums__star {
    flex: 0 0 auto;
    color: var(--mpp-text, #fff);
}

.mpp-gallery-album-head__title .mpp-gallery-albums__lock svg.mpp-icon,
.mpp-gallery-album-head__title .mpp-gallery-albums__star svg.mpp-icon {
    width: 18px;
    height: 18px;
}

.mpp-gallery-album-tile .mpp-gallery-albums__count {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin: 0;
    padding: 0 6px;
    border-radius: 999px;
    border: 1px solid var(--mpp-border, var(--mpp-line, rgba(255, 255, 255, 0.14)));
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.mpp-gallery-album-tile__more {
    pointer-events: auto;
}

.mpp-gallery-album-head {
    margin: 0 0 16px;
}

.mpp-gallery-album-head__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--mpp-text, #fff);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mpp-gallery-album-head__back-icon {
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.mpp-gallery-album-head__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpp-gallery-album-head__title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: var(--mpp-control-h, 36px);
    flex: 1;
}

.profileWrapper .mpp-gallery-album-head__title h1,
.mpp-gallery-album-head__title h1 {
    margin: 0;
    padding: 0;
    color: var(--mpp-text, #fff);
    font-size: 28px;
    font-weight: 800;
    line-height: var(--mpp-control-h, 36px);
    word-break: break-word;
}

.mpp-gallery-album-head__actions {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    flex: 0 0 auto;
    height: var(--mpp-control-h, 36px);
}

.profileWrapper .mpp-gallery-album-head .mpp-gallery-upload__submit,
.mpp-gallery-album-head .mpp-gallery-upload__submit {
    width: auto;
    min-width: 0;
    height: var(--mpp-control-h, 36px);
    min-height: var(--mpp-control-h, 36px);
}

.mpp-gallery-album-head__more,
.mpp-gallery-album-head__more.mpp-wall-more {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    height: var(--mpp-control-h, 36px);
}

.profileWrapper .mpp-gallery-album-head .mpp-wall-more-button,
.mpp-gallery-album-head .mpp-wall-more-button {
    min-width: var(--mpp-control-h, 36px);
    min-height: var(--mpp-control-h, 36px);
    height: var(--mpp-control-h, 36px);
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: var(--mpp-control-radius, 8px);
    background: transparent;
    color: var(--mpp-text, #fff);
}

.mpp-gallery-albums__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 2px;
    padding: 0 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mpp-text, #fff) 12%, transparent);
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.mpp-gallery-card__select {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.mpp-gallery-grid.is-selecting .mpp-gallery-card__select,
.mpp-gallery-grid.is-editing .mpp-gallery-card__select {
    display: block;
}

.mpp-gallery-card__select[aria-pressed="true"] {
    border-color: var(--mpp-accent, #ffcd00);
    background: var(--mpp-accent, #ffcd00);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mpp-gallery-card__select[aria-pressed="true"]::after {
    content: "";
    display: block;
    width: 6px;
    height: 11px;
    margin: 3px auto 0;
    border: solid #1b1404;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mpp-gallery-card.is-selected .mpp-gallery-card__tile {
    box-shadow: inset 0 0 0 2px var(--mpp-accent, #ffcd00);
}

.mpp-gallery-dock {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 40;
    width: max-content;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
}

.mpp-gallery-dock[hidden] {
    display: none !important;
}

.mpp-gallery-dock__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border: 1px solid color-mix(in srgb, var(--mpp-text, #fff) 12%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--mpp-surface, #2d2b3a) 90%, transparent);
    color: var(--mpp-text, #fff);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.mpp-gallery-dock__row[hidden] {
    display: none !important;
}

.mpp-gallery-dock__label {
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.mpp-gallery-dock__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mpp-gallery-dock__btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--mpp-text, #fff) 16%, transparent);
    border-radius: 10px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    white-space: nowrap;
}

.mpp-gallery-dock__btn:hover {
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
}

.mpp-gallery-dock__btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.mpp-gallery-dock__btn--accent {
    border-color: color-mix(in srgb, var(--mpp-accent, #ffcd00) 50%, transparent);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-gallery-dock__btn--accent:hover {
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 12%, transparent);
}

.mpp-gallery-dock__btn--danger {
    border-color: color-mix(in srgb, #ff6b7a 45%, transparent);
    color: #ff8b96;
}

.mpp-gallery-dock__btn--danger:hover {
    background: color-mix(in srgb, #ff6b7a 12%, transparent);
}

.mpp-gallery-dock__btn--ghost {
    color: var(--mpp-muted, #a9a9a9);
}

@media (max-width: 560px) {
    .mpp-gallery-dock__row {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }

    .mpp-gallery-dock__label {
        width: 100%;
        text-align: center;
    }
}

.mpp-gallery-album-pick {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    margin: 0;
    padding: 4px;
    overflow: auto;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 10px;
    background: var(--mpp-bg, rgba(0, 0, 0, 0.18));
}

.mpp-gallery-album-pick__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--mpp-text, #fff);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gallery-album-pick__row > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-gallery-album-pick__row:hover,
.mpp-gallery-album-pick__row:has(input:checked) {
    background: var(--mpp-surface-soft, rgba(255, 255, 255, 0.06));
}

.mpp-gallery-album-pick input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid var(--mpp-line, rgba(255, 255, 255, 0.35)) !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 0 0 16px;
    cursor: pointer;
}

.mpp-gallery-album-pick input[type="radio"]:checked {
    border-color: var(--mpp-accent, #ffcd00) !important;
    background: radial-gradient(circle at center, var(--mpp-accent, #ffcd00) 0 5px, transparent 6px) !important;
}

.mpp-gallery-modal__create {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpp-gallery-modal__split {
    margin: 2px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.12));
    color: var(--mpp-text, #fff);
    font-size: 14px;
    font-weight: 700;
}

.mpp-gallery-flags {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mpp-gallery-flag {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    margin: 0;
    color: var(--mpp-text, #fff);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-gallery-flag:has(input:disabled) {
    opacity: 0.45;
    cursor: default;
}

.mpp-gallery-modal__actions--stack {
    flex-direction: column;
}

.mpp-gallery-modal__danger {
    position: relative;
    min-height: var(--mpp-control-h, 36px);
    padding: 0 14px;
    border: 0;
    border-radius: var(--mpp-control-radius, 8px);
    background: #ff4f64;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mpp-gallery-modal__danger:hover {
    filter: brightness(0.94);
}

[data-mpp-album-tools-host]:empty {
    display: none;
}

.mpp-gallery-album-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 12px 0 0;
    color: var(--mpp-text, #fff);
    font-size: 13px;
}

.mpp-gallery-album-tools__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.profileWrapper .mpp-gallery-album-tools__delete,
.mpp-gallery-album-tools__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none;
    color: var(--mpp-muted, #a9a9a9);
    cursor: pointer;
    appearance: none;
}

.mpp-gallery-album-tools__delete:hover {
    border-color: color-mix(in srgb, var(--mpp-text, #fff) 36%, transparent);
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent) !important;
    color: var(--mpp-text, #fff);
}

.mpp-gallery-album-tools__delete svg {
    display: block;
}

.mpp-gallery-uploader[hidden] {
    display: none !important;
}

.mpp-gallery-uploader {
    position: fixed;
    inset: 0;
    z-index: 100090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mpp-gallery-uploader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.55);
}

.mpp-gallery-uploader__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(560px, 100%);
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 14px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-sizing: border-box;
}

.mpp-gallery-uploader__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mpp-gallery-uploader__head h2 {
    margin: 0;
    font-size: 18px;
}

.mpp-gallery-uploader__close {
    border: 0;
    background: transparent;
    color: var(--mpp-text, #fff);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mpp-gallery-uploader__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mpp-gallery-uploader__new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpp-gallery-uploader__new[hidden],
.mpp-gallery-uploader__list[hidden],
.mpp-gallery-uploader .mpp-gallery-upload__submit[hidden] {
    display: none !important;
}

.mpp-gallery-uploader__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 132px;
    padding: 18px 16px;
    border: 1px dashed var(--mpp-line, rgba(255, 255, 255, 0.22));
    border-radius: 12px;
    background: color-mix(in srgb, var(--mpp-text, #fff) 3%, transparent);
    color: var(--mpp-text, #fff);
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mpp-gallery-uploader__drop:hover,
.mpp-gallery-uploader__drop.is-hover {
    border-color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 8%, transparent);
}

.mpp-gallery-uploader__drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-gallery-uploader__drop:hover .mpp-gallery-uploader__drop-icon,
.mpp-gallery-uploader__drop.is-hover .mpp-gallery-uploader__drop-icon {
    color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 14%, transparent);
}

.mpp-gallery-uploader__drop-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mpp-text, #fff);
}

.mpp-gallery-uploader__drop-note {
    font-size: 12px;
    font-weight: 500;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-gallery-uploader__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpp-gallery-uploader__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpp-gallery-uploader__thumb {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.mpp-gallery-uploader__row img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.mpp-gallery-uploader__row.is-uploading img,
.mpp-gallery-uploader__row.is-done img {
    opacity: 0.45;
}

.mpp-gallery-uploader__row.is-uploading .mpp-gallery-uploader__thumb::after,
.mpp-gallery-uploader__row.is-done .mpp-gallery-uploader__thumb::after,
.mpp-gallery-uploader__row.is-error .mpp-gallery-uploader__thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    box-sizing: border-box;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-gallery-uploader__row.is-done .mpp-gallery-uploader__thumb::after {
    width: 8px;
    height: 14px;
    margin: -10px 0 0 -4px;
    border-width: 0 2px 2px 0;
    border-color: var(--mpp-accent, #ffcd00);
    border-radius: 0;
    animation: none;
    transform: rotate(45deg);
}

.mpp-gallery-uploader__row.is-error .mpp-gallery-uploader__thumb::after {
    border-color: #ff4f64;
    border-top-color: transparent;
    animation: none;
}

.mpp-gallery-uploader__row.is-uploading .mpp-gallery-uploader__remove,
.mpp-gallery-uploader__row.is-done .mpp-gallery-uploader__remove {
    visibility: hidden;
}

.mpp-gallery-uploader__row .mpp-gallery-upload__input {
    flex: 1 1 auto;
}

.mpp-gallery-uploader__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 999px;
    background: transparent;
    color: var(--mpp-muted, #a9a9a9);
    cursor: pointer;
    appearance: none;
}

.mpp-gallery-uploader__remove:hover {
    border-color: color-mix(in srgb, var(--mpp-text, #fff) 36%, transparent);
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
    color: var(--mpp-text, #fff);
}

.mpp-gallery-uploader__actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.mpp-gallery-uploader__actions .mpp-gallery-upload__submit {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    width: auto;
}

.mpp-gallery-uploader .mpp-gallery-upload__submit.is-done {
    color: transparent !important;
    pointer-events: none;
}

.mpp-gallery-uploader .mpp-gallery-upload__submit.is-done::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 14px;
    margin: -10px 0 0 -4px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: var(--mpp-accent, #ffcd00);
    border-radius: 0;
    animation: none;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.mpp-gallery-uploader__cancel {
    flex: 1 1 100%;
    min-width: 0;
    height: var(--mpp-control-h, 36px);
    min-height: var(--mpp-control-h, 36px);
    padding: 0 14px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.18));
    border-radius: var(--mpp-control-radius, 8px);
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
}

.mpp-gallery-uploader__actions.has-files .mpp-gallery-uploader__cancel {
    flex: 1 1 calc(50% - 4px);
}

.mpp-gallery-uploader__cancel:hover {
    border-color: color-mix(in srgb, var(--mpp-text, #fff) 36%, transparent);
    background: color-mix(in srgb, var(--mpp-text, #fff) 8%, transparent);
}


.mpp-gallery-page__content {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 16px 40px;
    box-sizing: border-box;
}

.mpp-gallery-upload {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background: var(--mpp-surface, rgba(45, 43, 58, 0.72));
    box-sizing: border-box;
}

.mpp-gallery-upload__header {
    margin-bottom: 14px;
}

.mpp-gallery-upload__title {
    margin: 0;
    color: var(--mpp-text, #fff);
    font-size: 20px;
    line-height: 1.2;
}

.mpp-gallery-upload__hint {
    margin: 6px 0 0;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
}

.mpp-gallery-upload__rows {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(160px, 1fr) 160px auto;
    gap: 12px;
    align-items: end;
}

.mpp-gallery-upload__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: visible;
}

.mpp-gallery-upload,
.mpp-settings__field,
.mpp-gallery-modal__dialog {
    overflow: visible;
}

.mpp-gallery-upload__label {
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mpp-gallery-upload__submit {
    position: relative;
    height: var(--mpp-control-h, 36px);
    min-height: var(--mpp-control-h, 36px);
    min-width: 140px;
    padding: 0 14px;
    border: 1px solid var(--mpp-btn-primary-border, var(--mpp-accent, #ffcd00));
    border-radius: var(--mpp-control-radius, 8px) !important;
    background: var(--mpp-btn-primary-bg, transparent);
    color: var(--mpp-btn-primary-text, var(--mpp-accent, #ffcd00));
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.mpp-gallery-upload__submit:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-gallery-upload__file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px dashed var(--mpp-accent, #ffcd00);
    border-radius: var(--mpp-control-radius, 8px);
    background: var(--mpp-drop-bg, rgba(255, 255, 255, 0.04));
    color: var(--mpp-text, #fff);
    cursor: pointer;
    box-sizing: border-box;
}

.mpp-gallery-upload__file.is-selected {
    border-style: solid;
}

.mpp-gallery-upload__file.is-loading {
    pointer-events: none;
    cursor: wait;
}

.mpp-gallery-upload__file.is-loading .mpp-gallery-upload__file-copy,
.mpp-gallery-upload__file.is-loading .mpp-gallery-upload__file-preview {
    opacity: 0.35;
}

.mpp-gallery-upload__file.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    animation: mpp-control-spin 0.7s linear infinite;
    z-index: 2;
}

.mpp-gallery-upload__file-preview {
    display: none;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--mpp-bg, #151515);
    flex: 0 0 42px;
}

.mpp-gallery-upload__file-preview:not([hidden]) {
    display: block;
}

.mpp-gallery-upload__file-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gallery-upload__file-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mpp-gallery-upload__file-title {
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-gallery-upload__file-note {
    margin-top: 2px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
}

.mpp-gallery-upload__native-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mpp-gallery-upload__actions {
    display: flex;
    align-items: center;
}

.mpp-gallery-upload__field .mpp-select {
    width: 100%;
}

.mpp-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 !important;
    width: 100%;
}

.mpp-gallery-page--view .mpp-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mpp-gallery-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: visible;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: none;
}

.mpp-gallery-card__tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-gallery-card--view:hover .mpp-gallery-card__media img {
    transform: scale(1.04);
}

.mpp-gallery-card__media {
    position: absolute !important;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-gallery-card__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease;
}

.mpp-gallery-card__media img.is-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gallery-card__media--empty {
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-gallery-card__bar {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 68px;
    padding: 28px 10px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.08) 72%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.mpp-gallery-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--mpp-icon, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.mpp-gallery-card__stat .mpp-wall-like__icon,
.mpp-gallery-card__stat .mpp-wall-reply-button__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--mpp-icon, #fff);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.mpp-gallery-card__stat .mpp-wall-like__svg--outline,
.mpp-gallery-card__stat .mpp-wall-reply-button__svg {
    display: block;
    width: 18px;
    height: 18px;
}

.mpp-gallery-card__stat .mpp-wall-like__svg--filled {
    display: none;
}

.mpp-gallery-card__bar button {
    pointer-events: auto;
    cursor: pointer;
}

.profileWrapper .mpp-gallery-card__bar button.mpp-gallery-card__stat,
.mpp-gallery-card__bar button.mpp-gallery-card__stat {
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none;
    min-height: 0;
    height: auto;
    color: var(--mpp-icon, #fff);
    appearance: none;
}

.mpp-gallery-card__stat.mpp-wall-like--active,
.mpp-gallery-card__stat.mpp-wall-like--active .mpp-wall-like__icon,
.mpp-gallery-card__stat.mpp-wall-like--active svg.mpp-icon {
    color: #ff3347;
}

.mpp-gallery-card__stat.mpp-wall-like--active .mpp-wall-like__svg--outline {
    display: none;
}

.mpp-gallery-card__stat.mpp-wall-like--active .mpp-wall-like__svg--filled {
    display: block;
    width: 18px;
    height: 18px;
}

.mpp-gallery-card__more {
    margin-left: auto;
    pointer-events: auto;
}

.mpp-gallery-card .mpp-wall-more-menu {
    top: auto;
    right: 0;
    bottom: calc(100% + 6px);
    left: auto;
}

.mpp-photo-comments__head .mpp-wall-more-menu {
    top: calc(100% + 6px);
    right: 0;
    bottom: auto;
    left: auto;
}

html:not(:has([data-mpp-gallery-organize])) [data-mpp-gallery-organize-mode],
html:not(:has([data-mpp-gallery-organize])) [data-mpp-gallery-album] {
    display: none;
}

.mpp-gallery-card:has(.mpp-wall-more.is-open),
.mpp-gallery-card:has(.mpp-wall-more.is-open) .mpp-gallery-card__tile {
    z-index: 6;
    overflow: visible;
}

.mpp-gallery-grid.is-sortable .mpp-gallery-card {
    cursor: pointer;
}

.mpp-gallery-grid.is-selecting .mpp-gallery-card,
.mpp-gallery-grid.is-selecting .mpp-gallery-card__media,
.mpp-gallery-grid.is-selecting.is-sortable .mpp-gallery-card,
.mpp-gallery-grid.is-editing .mpp-gallery-card,
.mpp-gallery-grid.is-editing .mpp-gallery-card__media {
    cursor: pointer;
}

.mpp-gallery-card.is-dragging {
    opacity: 0.7;
}

.mpp-gallery-card__grip {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 22px;
    height: 28px;
    padding: 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
    grid-template-columns: 3px 3px;
    grid-template-rows: repeat(3, 3px);
    align-content: space-between;
    justify-content: space-between;
    pointer-events: none;
}

.mpp-gallery-card__grip span {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card__grip {
    display: grid;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card {
    cursor: grab;
    animation: mpp-gallery-jiggle 0.22s ease-in-out infinite alternate;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card:nth-child(2n) {
    animation-delay: -0.07s;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card:nth-child(3n) {
    animation-delay: -0.13s;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card:nth-child(5n) {
    animation-delay: -0.04s;
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card.is-dragging {
    animation: none;
    cursor: grabbing;
    z-index: 5;
    transform: scale(1.03);
}

.mpp-gallery-grid.is-sorting .mpp-gallery-card__bar,
.mpp-gallery-grid.is-sorting .mpp-wall-more {
    pointer-events: none;
    opacity: 0.4;
}

@keyframes mpp-gallery-jiggle {
    from {
        transform: rotate(-0.35deg);
    }
    to {
        transform: rotate(0.35deg);
    }
}

.mpp-gallery-card__badges {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.mpp-gallery-grid.is-selecting .mpp-gallery-card--manage .mpp-gallery-card__badges,
.mpp-gallery-grid.is-editing .mpp-gallery-card--manage .mpp-gallery-card__badges {
    right: 40px;
}

.mpp-gallery-card__badges .mpp-moderation-chip {
    padding: 4px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: none;
}

.mpp-gallery-card__badges .mpp-moderation-chip__text,
.mpp-gallery-preview__item > .mpp-moderation-chip .mpp-moderation-chip__text {
    display: none;
}

.mpp-gallery-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.mpp-gallery-card__badge--private {
    background: rgba(255, 92, 138, 0.9);
}

.mpp-gallery-card__badge--public {
    background: rgba(46, 213, 115, 0.88);
    color: #08140d;
}

.mpp-gallery-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.mpp-gallery-card__title,
.mpp-gallery-card__caption {
    overflow: hidden;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-gallery-card__caption {
    padding: 8px 10px 10px;
}

.mpp-gallery-card__actions {
    display: flex;
    gap: 6px;
}

.mpp-gallery-card__button {
    flex: 1 1 auto;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.mpp-gallery-card__button--danger {
    border-color: rgba(255, 99, 99, 0.45);
    color: #ffb0b0;
}

.mpp-gallery-empty,
.mpp-gallery-empty--tile {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    aspect-ratio: 1 / 1;
}

.mpp-gallery-empty__text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 1px dashed var(--mpp-border, var(--mpp-line, rgba(255, 255, 255, 0.22)));
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-muted, #a9a9a9);
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.mpp-gallery-photo-tile--create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px;
    border: 1px dashed var(--mpp-border, var(--mpp-line, rgba(255, 255, 255, 0.22)));
    border-radius: 10px;
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
    font: inherit;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.mpp-gallery-photo-tile--create:hover {
    border-color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 8%, transparent);
}

.mpp-gallery-photo-tile--create:hover .mpp-gallery-uploader__drop-icon {
    color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 14%, transparent);
}

.mpp-gallery-photo-tile--create .mpp-gallery-uploader__drop-note {
    padding: 0 2px;
}

button.mpp-gallery-uploader__drop {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.mpp-gallery-empty__text[hidden],
.mpp-gallery-empty [data-mpp-gallery-empty-upload][hidden] {
    display: none !important;
}

.mpp-gallery-empty[hidden],
.mpp-gallery-grid[hidden],
.mpp-gallery-card[hidden],
.mpp-gallery-switch-loader[hidden] {
    display: none !important;
}

.mpp-gallery-stage {
    position: relative;
    min-width: 0;
}

.mpp-gallery-stage.is-switching {
    min-height: 140px;
}

.mpp-gallery-stage.is-switching .mpp-gallery-grid,
.mpp-gallery-stage.is-switching .mpp-gallery-empty {
    visibility: hidden;
}

.mpp-gallery-switch-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mpp-bg, #2d2b3a) 45%, transparent);
    pointer-events: none;
}

.mpp-gallery-stage.is-switching .mpp-gallery-switch-loader {
    display: flex !important;
}

.mpp-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mpp-gallery-modal.is-open {
    display: flex !important;
}

.mpp-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.mpp-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: calc(100vh - 32px);
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background: var(--mpp-surface, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

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

.mpp-gallery-modal__header h3 {
    margin: 0;
    font-size: 18px;
}

.mpp-gallery-modal__close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: var(--mpp-control-radius, 8px);
    background: transparent;
    color: var(--mpp-text, #fff);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mpp-gallery-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpp-gallery-modal__text {
    margin: 0 0 6px;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-gallery-modal__emphasis {
    margin: 0 0 14px;
    font-weight: 700;
}

.mpp-gallery-modal__actions {
    display: flex;
    gap: 8px;
}

.mpp-gallery-modal__actions .mpp-gallery-upload__submit,
.mpp-gallery-modal__actions .mpp-gallery-uploader__cancel {
    flex: 1 1 auto;
    width: auto;
}

.mpp-gallery-modal__actions--stack .mpp-gallery-upload__submit,
.mpp-gallery-modal__actions--stack .mpp-gallery-uploader__cancel {
    width: 100%;
}

@media (max-width: 900px) {
    .mpp-gallery-upload__rows {
        grid-template-columns: 1fr 1fr;
    }

    .mpp-gallery-upload__file {
        grid-column: 1 / -1;
    }

    .mpp-gallery-upload__actions {
        grid-column: 1 / -1;
    }

    .mpp-gallery-upload__submit {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .mpp-gallery-upload__rows {
        grid-template-columns: 1fr;
    }

    .mpp-gallery-grid,
    .mpp-gallery-album-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mpp-gallery-album-head__title h1 {
        font-size: 22px;
    }

    .mpp-gallery-home-head__title {
        font-size: 18px;
    }

    .mpp-gallery-album-head__row {
        flex-wrap: wrap;
        align-items: center;
    }

    .mpp-gallery-album-head__actions {
        width: 100%;
        height: auto;
    }
}

form.mpp-wall-form.mpp-wall-post-form {
    position: relative;
    margin-bottom: 10px;
}

form.mpp-wall-form.mpp-wall-post-form[hidden] {
    display: none !important;
}

.mpp-wall-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 10px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: 10px;
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
}

.mpp-gallery-preview__add,
.mpp-gallery-preview__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: 10px;
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
}

a.mpp-gallery-preview__add,
a.mpp-gallery-preview__add:link,
a.mpp-gallery-preview__add:visited,
a.mpp-gallery-preview__add:active,
a.mpp-gallery-preview__add:focus,
a.mpp-gallery-preview__all,
a.mpp-gallery-preview__all:link,
a.mpp-gallery-preview__all:visited,
a.mpp-gallery-preview__all:active,
a.mpp-gallery-preview__all:focus {
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    text-decoration: none;
}

a.mpp-gallery-preview__add:hover,
a.mpp-gallery-preview__all:hover {
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    text-decoration: none;
}

.mpp-wall-compose-btn:hover,
.mpp-gallery-preview__add:hover,
.mpp-gallery-preview__all:hover {
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
}

.mpp-wall-post-form__shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 10px 12px 8px;
    border: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    border-radius: 12px;
    background: var(--mpp-surface, #3d3b4c);
    box-sizing: border-box;
}

form.mpp-wall-form.mpp-wall-post-form textarea[name="content"] {
    display: block;
    width: 100%;
    height: 20px;
    min-height: 20px !important;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: none !important;
}

form.mpp-wall-form.mpp-wall-post-form textarea[name="content"]:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

form.mpp-wall-form.mpp-wall-post-form button {
    background: none;
    border: none;
}
.mpp-wall-reply-form button {
    background: none;
    border: none;
}

form.mpp-wall-form.mpp-wall-reply-form {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    margin: 10px 0 6px;
    padding: 0 16px;
    position: relative;
    border: 0;
    background: transparent;
}

.mpp-wall-reply-form__avatar {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--mpp-surface-soft, #262435);
}

form.mpp-wall-form.mpp-wall-reply-form > .mpp-wall-post-form__shell {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.mpp-wall-reply-form__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-wall-reply-form__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-post-form__shell textarea[name="content"] {
    display: block;
    width: 100%;
    height: 20px;
    min-height: 20px !important;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: none !important;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-post-form__shell textarea[name="content"]:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-reply-form__compose {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 32px;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-reply-form__compose .mpp-composer {
    flex: 1 1 auto;
    min-width: 0;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-post-form__shell .mpp-wall-form-actions {
    width: auto;
    flex: 0 0 auto;
    align-self: center;
    min-height: 28px;
    margin: 0;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-post-form__shell .mpp-wall-form-preview {
    margin: 8px 0 0;
    padding: 4px 6px 2px 0;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-post-form__shell .mpp-wall-submit {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-wall-submit {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin: 0;
    padding: 0;
    right: auto;
    bottom: auto;
}

.mpp-wall-comments {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.mpp-wall-comments[hidden] {
    display: none !important;
}

.mpp-wall-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpp-wall-replies-more {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.mpp-wall-replies-more:hover {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-reply {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mpp-wall-reply.is-collapsed,
.mpp-wall-reply[hidden] {
    display: none !important;
}

.mpp-wall-reply-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #ffffff0d;
    padding-bottom: 10px;
}

.mpp-wall-reply-avatar {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--mpp-surface-soft, #262435);
    text-decoration: none;
}

.mpp-wall-reply-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-wall-reply-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.mpp-wall-reply-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 32px;
    margin-bottom: 4px;
}

.mpp-wall-reply-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

a.mpp-wall-reply-name:hover {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-reply-content {
    color: var(--mpp-text, #fff);
    font-size: 13px;
    line-height: 1.35;
}

.mpp-wall-reply-content p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.mpp-reply-mention {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 4px;
}

.mpp-reply-mention__lead {
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

button.mpp-gift-card__chip {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

a.mpp-gift-card__chip:hover,
button.mpp-gift-card__chip:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--mpp-text, #fff);
}

.mpp-reply-mention__chip--gone,
.mpp-reply-mention--gone .mpp-reply-mention__lead {
    cursor: default;
    opacity: 0.72;
}

.mpp-reply-to {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mpp-muted, #a9a9a9);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.mpp-reply-to:hover {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-reply-meta__lead {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mpp-reply-target {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    min-height: 18px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    line-height: 1;
}

.mpp-reply-target[hidden] {
    display: none !important;
}

.mpp-reply-target [data-mpp-reply-target-text] {
    display: flex;
    align-items: center;
    min-width: 0;
}

.mpp-reply-target__lead {
    padding-right: 6px;
}

.mpp-reply-target__name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    line-height: 1;
    color: var(--mpp-nick-plain, var(--mpp-text, #fff));
    font-weight: 700;
}

.mpp-reply-target__name .mpp-nick-mark {
    margin-left: 0;
}

.mpp-wall-reply-form .mpp-reply-target__clear {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0;
    color: var(--mpp-muted, #a9a9a9);
    cursor: pointer;
}

.mpp-wall-reply-form .mpp-reply-target__clear .mpp-icon {
    width: 12px;
    height: 12px;
}

form.mpp-wall-form.mpp-wall-reply-form.is-replying {
    row-gap: 6px;
    align-items: center;
}

form.mpp-wall-form.mpp-wall-reply-form.is-replying > .mpp-reply-target {
    grid-column: 2;
    grid-row: 1;
}

form.mpp-wall-form.mpp-wall-reply-form.is-replying > .mpp-wall-reply-form__avatar,
form.mpp-wall-form.mpp-wall-reply-form.is-replying > .mpp-wall-post-form__shell {
    grid-row: 2;
}

.mpp-wall-reply.is-reply-source .mpp-wall-reply-row {
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
    background: #ffffff0a;
}

.mpp-wall-reply.is-reply-flash .mpp-wall-reply-row {
    animation: mpp-reply-flash 1.2s ease;
}

@keyframes mpp-reply-flash {
    0% {
        background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 28%, transparent);
    }
    100% {
        background: transparent;
    }
}

.mpp-wall-reply-meta.mpp-wall-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
}

.mpp-wall-reply-meta .mpp-wall-date {
    font-size: 12px;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-wall-like--compact {
    gap: 4px;
    min-height: 0;
    padding: 0;
    color: var(--mpp-icon, var(--mpp-muted, #a9a9a9));
}

.mpp-wall-like--compact .mpp-wall-like__svg {
    width: 18px;
    height: 18px;
}

.mpp-wall-like--compact .mpp-wall-like__count {
    font-size: 12px;
}

.mpp-wall-more--compact .mpp-wall-more-button {
    min-width: 24px;
    min-height: 24px;
    padding: 0 4px;
    font-size: 12px;
}

.mpp-wall-form-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    align-self: flex-end;
    position: static;
    margin: 0;
    padding: 0;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--mpp-text-muted, var(--mpp-muted, #8d8a99));
    cursor: pointer;
    user-select: none;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    appearance: none;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share__box {
    display: inline-flex;
    flex: 0 0 14px;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    opacity: 0.85;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share__box::after {
    content: "";
    width: 7px;
    height: 4px;
    margin-top: -1px;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share input:checked + .mpp-wall-share__box::after {
    opacity: 1;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share input:focus-visible + .mpp-wall-share__box {
    border-color: #b7b4c2;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-share__text {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

.mpp-wall-form-actions--reply {
    flex: 0 0 auto;
    align-self: center;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-form-actions {
    width: 100%;
    align-self: stretch;
    min-height: 28px;
    margin: 2px 0 0;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-form-actions button:not(.mpp-wall-submit) {
    position: static;
    right: auto;
    bottom: auto;
}

.mpp-wall-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9b9b9b;
    cursor: pointer;
    line-height: 0;
}

.mpp-wall-emoji-button:hover,
.mpp-wall-emoji-button.is-active {
    color: var(--mainColor, var(--mpp-accent, #ffcd00));
}

.mpp-wall-emoji-button__icon,
.mpp-wall-emoji-button__svg {
    display: block;
    width: 22px;
    height: 22px;
}

.mpp-wall-emoji-button svg,
.mpp-wall-emoji-button span,
.mpp-wall-emoji-button img,
.mpp-wall-emoji-button path {
    pointer-events: none;
}

.mpp-emoji-picker {
    position: fixed;
    inset: 0;
    z-index: 100080;
    pointer-events: none;
    /* Токены на body-оверлее: не наследует .profileWrapper */
    --mpp-bg: #2d2b3a;
    --mpp-surface: #3d3b4c;
    --mpp-surface-soft: #2d2b3a85;
    --mpp-border: #49475b;
    --mpp-text: #ffffff;
    --mpp-muted: #a9a9a9;
    --mpp-text-muted: #9b9b9b;
    --mpp-accent: var(--mainColor, #ffcd00);
    --mpp-control-hover: color-mix(in srgb, var(--mpp-text) 12%, transparent);
}

.mpp-emoji-picker[data-mpp-theme="light"] {
    --mpp-bg: #f3f1f7;
    --mpp-surface: #ffffff;
    --mpp-surface-soft: rgba(255, 255, 255, 0.82);
    --mpp-border: #d7d2e2;
    --mpp-text: #1f1b2e;
    --mpp-muted: #6f6a7d;
    --mpp-text-muted: #6f6a7d;
    --mpp-accent: #6b4eff;
}

.mpp-emoji-picker[data-mpp-theme="rose"] {
    --mpp-bg: #2a1620;
    --mpp-surface: #3d2230;
    --mpp-border: #6b3a4f;
    --mpp-text: #ffe9f1;
    --mpp-muted: #d4a3b5;
    --mpp-text-muted: #d4a3b5;
    --mpp-accent: #ff6fae;
}

.mpp-emoji-picker[data-mpp-theme="ocean"] {
    --mpp-bg: #10232c;
    --mpp-surface: #183642;
    --mpp-border: #2f5d6e;
    --mpp-text: #e8f7fb;
    --mpp-muted: #8fb8c5;
    --mpp-text-muted: #8fb8c5;
    --mpp-accent: #35d0ff;
}

.mpp-emoji-picker[data-mpp-theme="ember"] {
    --mpp-bg: #241510;
    --mpp-surface: #3a2218;
    --mpp-border: #6b3d28;
    --mpp-text: #fff1e7;
    --mpp-muted: #d0a48a;
    --mpp-text-muted: #d0a48a;
    --mpp-accent: #ff7a3c;
}

.mpp-emoji-picker[data-mpp-theme="violet"] {
    --mpp-bg: #1b1430;
    --mpp-surface: #2a2148;
    --mpp-border: #4d3d7a;
    --mpp-text: #f1eaff;
    --mpp-muted: #b7a8db;
    --mpp-text-muted: #b7a8db;
    --mpp-accent: #b07cff;
}

.mpp-emoji-picker[data-mpp-theme="mint"] {
    --mpp-bg: #10241f;
    --mpp-surface: #18362e;
    --mpp-border: #2f6b5a;
    --mpp-text: #e8fff7;
    --mpp-muted: #95c9b8;
    --mpp-text-muted: #95c9b8;
    --mpp-accent: #3dffc0;
}

.mpp-emoji-picker[hidden],
.mpp-emoji-picker:not(.is-open) {
    display: none !important;
}

.mpp-emoji-picker.is-open {
    display: block;
}

.mpp-emoji-picker__panel {
    position: fixed;
    z-index: 100081;
    display: flex;
    flex-direction: column;
    /* 8 колонок × ~34px + gaps + padding + запас под scrollbar */
    width: min(340px, calc(100vw - 16px));
    height: min(360px, calc(100vh - 24px));
    overflow: hidden;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 12px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.mpp-emoji-picker__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 8px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.mpp-emoji-picker__section + .mpp-emoji-picker__section {
    margin-top: 12px;
}

.mpp-emoji-picker__title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mpp-text-muted, #9b9b9b);
}

.mpp-emoji-picker__empty {
    margin: 0;
    font-size: 12px;
    color: var(--mpp-text-muted, #9b9b9b);
}

.mpp-emoji-picker .mpp-emoji-picker__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
}

.mpp-emoji-picker .mpp-emoji-picker__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

.mpp-emoji-picker .mpp-emoji-picker__emoji:hover,
.mpp-emoji-picker .mpp-emoji-picker__emoji:focus-visible {
    background: var(--mpp-surface-soft, rgba(255, 255, 255, 0.08));
    outline: none;
}

.mpp-emoji-picker__emoji.is-media-loading,
.mpp-emoji-picker__nav-btn.is-media-loading {
    position: relative;
}

.mpp-emoji-picker__emoji.is-media-loading .mpp-emoji-picker__img,
.mpp-emoji-picker__nav-btn.is-media-loading .mpp-emoji-picker__img,
.mpp-emoji-picker__emoji.is-media-error .mpp-emoji-picker__img {
    opacity: 0;
}

.mpp-emoji-picker__emoji.is-media-loading::after,
.mpp-emoji-picker__nav-btn.is-media-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-emoji-picker__img,
.mpp-wall-emoji--image img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
    pointer-events: none;
}

.mpp-wall-emoji--image {
    width: 26px;
    height: 26px;
    vertical-align: -0.35em;
}

.mpp-emoji-picker .mpp-emoji-picker__nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 8px;
    border-top: 1px solid var(--mpp-border, #49475b);
    background: var(--mpp-surface-soft, rgba(0, 0, 0, 0.18));
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.mpp-emoji-picker .mpp-emoji-picker__nav::-webkit-scrollbar {
    display: none;
}

.mpp-emoji-picker .mpp-emoji-picker__nav-btn {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.mpp-emoji-picker .mpp-emoji-picker__nav-btn:hover,
.mpp-emoji-picker .mpp-emoji-picker__nav-btn:focus-visible,
.mpp-emoji-picker .mpp-emoji-picker__nav-btn.is-active {
    background: var(--mpp-bg, #2d2b3a);
    outline: none;
}

.mpp-emoji-picker .mpp-emoji-picker__emoji:focus-visible,
.mpp-emoji-picker .mpp-emoji-picker__nav-btn:focus-visible {
    box-shadow: inset 0 0 0 1px var(--mpp-accent, #ffcd00);
}

@media (max-width: 420px) {
    .mpp-emoji-picker .mpp-emoji-picker__emoji {
        font-size: 20px;
    }
}

.mpp-wall-form textarea.mpp-composer-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.mpp-composer {
    display: block;
    width: 100%;
    min-height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    box-sizing: border-box;
    cursor: text;
}

.mpp-composer.is-empty:before {
    content: attr(data-placeholder);
    color: var(--mpp-muted, #a9a9a9);
    pointer-events: none;
}

.mpp-composer__emoji {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin: 0 1px;
    object-fit: contain;
    vertical-align: -0.4em;
    pointer-events: none;
}

form.mpp-wall-form.mpp-wall-reply-form .mpp-composer {
    min-height: 28px;
    max-height: 96px;
    overflow: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.35;
}

.mpp-wall-edit-form .mpp-composer {
    min-height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

form.mpp-wall-form.mpp-wall-post-form .mpp-wall-form-preview {
    margin: 8px 0 0;
    padding: 4px 6px 2px 0;
}



.mpp-wall-attachments-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9b9b9b;
    cursor: pointer;
    line-height: 0;
}

.mpp-wall-attachments-field:hover {
    color: var(--mainColor);
}

.mpp-wall-attachments-field__count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 10px;
    margin-right: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.mpp-wall-form--has-attachments .mpp-wall-attachments-field__count {
    display: inline-flex;
}

.mpp-wall-attachments-field__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mpp-wall-attachments-field__svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mpp-wall-attachments-field__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: mpp-wall-spin 0.8s linear infinite;
}

@keyframes mpp-wall-spin {
    to {
        transform: rotate(360deg);
    }
}

.mpp-wall-attachments-field input {
    display: none;
}

.mpp-wall-form-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 2px 8px 0;
    padding: 6px 6px 2px 2px;
}

.mpp-wall-form-preview[hidden] {
    display: none !important;
}

.mpp-wall-form-preview__item {
    position: relative;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
}

.mpp-wall-form-preview__thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 8px;
    background: var(--mpp-surface-soft, #2d2b3a);
}

.mpp-wall-form-preview__item img,
.mpp-wall-form-preview__item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-wall-form-preview__remove {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1f1d29;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.mpp-wall-form-preview__remove span {
    display: block;
    margin-top: -1px;
    color: red;
    font-size: 22px;
}

.mpp-wall-form-preview__remove:hover {
    background: #ff4f64;
    border-color: #fff;
    color: #fff;
}

.mpp-wall-edit-form .mpp-wall-form-preview {
    margin: 8px 0 0;
    padding: 4px 6px 2px 0;
}

.mpp-wall-post > .mpp-wall-attachments {
    margin: 8px 0 6px;
}

.mpp-wall-attachments {
    display: grid;
    gap: 4px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.mpp-wall-attachment {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.mpp-wall-attachment img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1 фото: подложка по ширине картинки, не шире блока поста */
.mpp-wall-attachments--single {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.mpp-wall-attachments--single .mpp-wall-attachment {
    width: fit-content;
    max-width: 100%;
    height: auto;
    max-height: 420px;
}

.mpp-wall-attachment--video video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    background: #111;
    object-fit: contain;
}

.profileWrapper #mycomments .mpp-wall-post--ad {
    border-color: var(--mpp-line) !important;
    box-shadow: none;
    animation: none;
}

.mpp-ad-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0 0;
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--mpp-accent, #ffcd00);
    color: #1b1404;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-ad-action:hover {
    filter: brightness(0.94);
}

.mpp-ad-timer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 12px;
    line-height: 1.2;
}

.mpp-ad-timer__clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 999px;
    background: var(--mpp-surface-soft, rgba(255, 255, 255, 0.06));
    color: var(--mpp-text, #fff);
}

.mpp-ad-timer__icon {
    font-size: 14px;
    line-height: 1;
}

.mpp-ad-timer [data-mpp-ad-timer] {
    font-weight: 700;
    color: var(--mpp-accent, #ffcd00);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.mpp-gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 2px 8px 0;
    text-align: center;
    box-sizing: border-box;
}

.mpp-gift-card__for {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.mpp-gift-card__for-label {
    color: var(--mpp-text, #fff);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.mpp-gift-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 2px 10px 2px 2px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 999px;
    background: var(--mpp-surface-soft, rgba(255, 255, 255, 0.08));
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mpp-gift-card__avatar {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--mpp-bg, rgba(0, 0, 0, 0.2));
}

.mpp-gift-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gift-card__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mpp-gift-card__media {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mpp-gift-card__media img,
.mpp-gift-card__media video {
    display: block;
    width: auto;
    max-width: min(280px, 100%);
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
}

.mpp-gift-card__text,
.mpp-gift-card__text p {
    margin: 0;
    max-width: 36em;
    color: var(--mpp-text, #fff);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

button.mpp-wall-attachment {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

button.mpp-ad-name {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

button.mpp-ad-name:hover {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-attachments--single:has(.mpp-wall-attachment--video) {
    width: 100%;
}

.mpp-wall-attachments--single .mpp-wall-attachment--video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    background: #111;
}

.mpp-wall-attachments--single .mpp-wall-attachment--video video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.mpp-wall-attachments--single .mpp-wall-attachment img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

/* 2 фото */
.mpp-wall-attachments--count-2 {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(180px, 260px);
}

/* 3 фото: большая слева, две справа */
.mpp-wall-attachments--count-3 {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 280px;
}

.mpp-wall-attachments--count-3 .mpp-wall-attachment:nth-child(1) {
    grid-row: 1 / 3;
}

/* 4 фото: 2×2 */
.mpp-wall-attachments--count-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 320px;
}

/* 5 фото: сверху 2, снизу 3 */
.mpp-wall-attachments--count-5 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: minmax(150px, 200px) minmax(130px, 170px);
}

.mpp-wall-attachments--count-5 .mpp-wall-attachment:nth-child(1),
.mpp-wall-attachments--count-5 .mpp-wall-attachment:nth-child(2) {
    grid-column: span 3;
}

.mpp-wall-attachments--count-5 .mpp-wall-attachment:nth-child(3),
.mpp-wall-attachments--count-5 .mpp-wall-attachment:nth-child(4),
.mpp-wall-attachments--count-5 .mpp-wall-attachment:nth-child(5) {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .mpp-wall-attachments--count-2,
    .mpp-wall-attachments--count-3,
    .mpp-wall-attachments--count-4 {
        min-height: 220px;
        grid-auto-rows: minmax(120px, 160px);
    }

    .mpp-wall-attachments--count-3 {
        grid-template-columns: 1fr 1fr;
        min-height: 240px;
    }

    .mpp-wall-attachments--count-5 {
        grid-template-rows: minmax(120px, 150px) minmax(100px, 130px);
    }
}

.mpp-wall-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

a.mpp-wall-author--link,
a.mpp-wall-author--link:link,
a.mpp-wall-author--link:visited,
a.mpp-wall-author--link:active,
a.mpp-wall-author--link:focus {
    color: inherit;
    text-decoration: none;
}

a.mpp-wall-author--link:hover .mpp-wall-author-name {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-author-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: #262435;
    border-radius: 100px;
}

.mpp-wall-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-wall-author-name {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.mpp-wall-author-persona-id {
    display: inline-block;
    max-width: 100%;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #b7b5c5;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-all;
}

.mpp-wall-author-persona-id--missing {
    color: #ff8f9a;
    background: rgba(255, 79, 100, 0.12);
}

.mpp-wall-author-info {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.mpp-wall-post--gift .mpp-wall-author {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.mpp-wall-post--gift .mpp-wall-author-avatar {
    flex: 0 0 40px;
}

.mpp-wall-post--gift .mpp-wall-author-info {
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.mpp-wall-post--gift .mpp-wall-author-name {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
}
.mpp-wall-post--gift .mpp-wall-author-name .mpp-nick__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpp-gift-sent {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-gift-sent__icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-gift-sent__icon.mpp-icon,
.mpp-gift-sent__icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.mpp-gift-sent__label {
    flex: 0 0 auto;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.mpp-gift-sent__person {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.mpp-gift-sent__avatar {
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    overflow: hidden;
    border-radius: 50%;
    background: #262435;
}

.mpp-gift-sent__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-gift-sent__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.mpp-gift-sent__name .mpp-nick__text {
    min-width: 0;
}

a.mpp-gift-sent__person:hover .mpp-gift-sent__name {
    color: var(--mpp-accent, #ffcd00);
}

.mpp-wall-author-info .mpp-wall-date {
    display: block;
}

.mpp-wall-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 0px;
    background: none;
    color: var(--mpp-icon, #9b9b9b);
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}

.mpp-wall-like__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.mpp-wall-like__svg {
    display: block;
    width: 24px;
    height: 24px;
}

.mpp-wall-like__svg--filled,
.mpp-wall-like--active .mpp-wall-like__svg--outline {
    display: none;
}

.mpp-wall-like--active .mpp-wall-like__svg--filled {
    display: block;
}

.mpp-wall-like__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10px;
    font-size: 13px;
    font-weight: 600;
}

.mpp-wall-like--active,
.mpp-wall-like--active svg.mpp-icon {
    border-color: #ff3347;
    color: #ff3347;
}

.mpp-wall-like--inactive:hover {
    color: #ffffff;
}

.mpp-wall-like:disabled {
    opacity: 0.6;
    cursor: default;
}

.mpp-wall-like--readonly {
    cursor: default;
}

.mpp-wall-actions-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mpp-wall-submit,
.mpp-wall-reply-button {
    line-height: 0;
}

.mpp-wall-submit {
    position: relative;
    color: #9b9b9b;
    cursor: default;
}

.mpp-wall-form--ready .mpp-wall-submit {
    color: var(--mainColor);
    cursor: pointer;
}

.mpp-wall-submit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mpp-wall-submit__svg {
    display: block;
    width: 24px;
    height: 24px;
}

.mpp-wall-reply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 0px;
    background: none;
    color: var(--mpp-icon, #9b9b9b);
    cursor: pointer;
    padding: 0px;
    margin: 0px;
}

.mpp-wall-reply-button:hover {
    color: #ffffff;
}

.mpp-wall-reply-button__icon,
.mpp-wall-reply-button__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mpp-wall-reply-button__svg {
    display: block;
    width: 24px;
    height: 24px;
}

.mpp-wall-reply-button__count {
    min-width: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.mpp-wall-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mpp-wall-more-button,
.mpp-profile-more__button {
    display: inline-flex;
}

.mpp-wall-more-button svg.mpp-icon,
.mpp-profile-more__button svg.mpp-icon {
    width: 16px;
    height: 16px;
}

.mpp-wall-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 8px;
    background: var(--mpp-control-bg, rgba(255, 255, 255, 0.06));
    color: var(--mpp-text, #fff);
    cursor: pointer;
    font-size: 20px;
}

.mpp-wall-more-button:hover,
.mpp-player-actions .mpp-presence-action:hover,
.mpp-presence-actions .mpp-presence-action:hover {
    border-color: var(--mpp-line, rgba(255, 255, 255, 0.14));
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.1));
    color: var(--mpp-text, #fff);
}

.mpp-wall-more-menu,
.mpp-profile-more__menu {
    width: max-content;
    max-width: calc(100vw - 24px);
    border: 1px solid var(--mpp-border, #49475b);
    background: var(--mpp-surface, #3d3b4c);
    color: var(--mpp-text, #fff);
}

.mpp-wall-more-menu {
    display: none;
    position: absolute;
    top: 50%;
    right: calc(100% + 6px);
    z-index: 50;
    width: max-content;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.20);
}

.mpp-wall-more-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mpp-text, #ffffff);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.mpp-wall-more-menu__item:hover {
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.08));
}

.mpp-wall-more-menu__item--danger {
    color: #ff4f64;
}
.mpp-wall-actions {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #49475b;
    padding-top: 6px;
    margin-top: 10px;
}
span.mpp-wall-date {
    font-size: 12px;
    font-weight: 400;
    color: #a9a9a9;
}
.mpp-wall-date--stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.35;
    text-align: right;
}
.mpp-wall-reply-meta .mpp-wall-date--stack {
    align-items: flex-start;
    text-align: left;
}
.mpp-wall-date--edited {
    margin-left: 0;
}
.mpp-wall-item-head {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.mpp-wall-item-tools {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 0 0 auto;
}

.mpp-wall-item-tools .mpp-moderation-chip {
    position: relative;
    pointer-events: auto;
    padding: 6px;
    background: transparent;
    box-shadow: none;
}

.mpp-wall-item-tools .mpp-moderation-chip__text {
    display: none;
    position: absolute;
    top: 50%;
    right: calc(100% + 6px);
    z-index: 5;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(13, 10, 28, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-50%);
}

.mpp-wall-item-tools .mpp-moderation-chip:hover .mpp-moderation-chip__text,
.mpp-wall-item-tools .mpp-moderation-chip:focus-within .mpp-moderation-chip__text {
    display: block;
}

#mycomments.mpp-wall .mpp-wall-item,
#mycomments.mpp-wall .mpp-wall-list,
#mycomments.mpp-wall .mpp-wall-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.mpp-wall-content {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.mpp-wall-content p {
    margin: 0px !important;
    line-height: 23px !important; /* запас под увеличенные emoji */
    font-size: 14px !important;
    padding: 10px 0px !important;
    padding-bottom: 0px !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

/* Крупнее соседнего текста; в textarea/edit — обычный Unicode без span. */
#mycomments .mpp-wall-emoji,
.mpp-wall-content .mpp-wall-emoji {
    display: inline-block !important;
    font-size: 20px !important;
    line-height: 1 !important;
    vertical-align: -0.15em;
    font-style: normal;
    font-weight: 400;
}

.mpp-wall-reply-content p,
.mpp-wall-reply-body .mpp-wall-content p {
    padding: 0px 0px !important;
}

.mpp-wall-reply-form textarea {
    background: var(--mpp-surface-soft, #363443);
}


.mpp-wall-edit-form {
    margin-top: 8px;
}

.mpp-wall-edit-form .mpp-wall-form-actions {
    display: flex;
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    gap: 8px;
    min-height: 28px;
    margin-top: 6px;
}

.mpp-wall-edit-form .mpp-wall-emoji-button,
.mpp-wall-edit-form .mpp-wall-edit-form__save,
.mpp-wall-edit-form .mpp-wall-edit-form__cancel {
    appearance: none;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.mpp-wall-edit-form .mpp-wall-edit-form__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    line-height: 0;
}

.mpp-wall-edit-form .mpp-wall-edit-form__cancel {
    height: 28px;
    margin: 0 0 0 auto;
    padding: 0 4px;
    border-radius: 8px;
    color: var(--mpp-muted, #a9a9a9);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.mpp-wall-edit-form .mpp-wall-edit-form__cancel:hover {
    color: var(--mpp-text, #fff);
}

.mpp-wall-load-more,
.mpp-gallery-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    margin: 14px 0 4px;
    padding: 0 16px;
    border: 1px solid #49475b;
    border-radius: 8px;
    background: #2d2b3a;
    color: #ffffff;
    cursor: pointer;
}

.mpp-wall-load-more:hover,
.mpp-gallery-load-more:hover {
    background: #363443;
}

.mpp-gallery-load-more[hidden] {
    display: none !important;
}

.mpp-wall-load-more:disabled,
.mpp-gallery-load-more:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-wall-reply-button--readonly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9b9b9b;
    pointer-events: none;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mpp-surface, rgba(45, 43, 58, 0.72)) !important;
    background-image: none !important;
    color: var(--mpp-text, #fff);
    z-index: 100000;
    height: 100%;
    width: 100%;
    overflow: hidden !important;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.preloader.hide,
.preloader.is-done,
#mainPreloader.hide,
#mainPreloader.is-done {
    display: none !important;
}

.mpp-page-preloader__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--mpp-accent, var(--mainColor, #ffcd00));
    border-radius: 50%;
    animation: mpp-lightbox-spin 0.7s linear infinite;
}

.mpp-media-slot:not(.profileHeaderImg) {
    position: relative;
}

.mpp-media-slot.is-media-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--mpp-accent, var(--mainColor, #ffcd00));
    border-radius: 50%;
    animation: mpp-lightbox-spin 0.7s linear infinite;
    pointer-events: none;
}

.mpp-media-slot.is-media-loading > img,
.mpp-media-slot.is-media-loading > video {
    opacity: 0;
}

.mpp-wall-attachment.mpp-media-slot.is-media-loading,
.mpp-gifts-drawer__media.mpp-media-slot.is-media-loading {
    min-height: 160px;
    background: rgba(255, 255, 255, 0.04);
}

.mpp-wall-attachments--single .mpp-wall-attachment.mpp-media-slot.is-media-loading {
    width: 100%;
}

/* ---- Theme tokens ---- */
.profileWrapper {
    --mpp-bg: #2d2b3a;
    --mpp-surface: #3d3b4c;
    --mpp-sidebar: var(--mpp-surface);
    --mpp-topbar: var(--mpp-surface);
    --mpp-surface-soft: #2d2b3a85;
    --mpp-border: #49475b;
    --mpp-text: #ffffff;
    --mpp-muted: #a9a9a9;
    --mpp-accent: var(--mainColor, #ffcd00);
    --mpp-control-h: 36px;
    --mpp-control-radius: 8px;
    --mpp-control-bg: color-mix(in srgb, var(--mpp-text) 8%, transparent);
    --mpp-line: color-mix(in srgb, var(--mpp-border) 38%, transparent);
    --mpp-control-border: var(--mpp-line);
    --mpp-control-hover: color-mix(in srgb, var(--mpp-text) 12%, transparent);
    --mpp-control-active: color-mix(in srgb, var(--mpp-text) 18%, transparent);
    --mpp-btn-bg: transparent;
    --mpp-btn-border: var(--mpp-accent, var(--mainColor, #ffcd00));
    --mpp-btn-text: var(--mpp-btn-border);
    --mpp-btn-hover-bg: var(--mpp-btn-bg);
    --mpp-btn-hover-border: var(--mpp-btn-border);
    --mpp-btn-hover-text: var(--mpp-btn-text);
    --mpp-btn-primary-bg: var(--mpp-btn-bg);
    --mpp-btn-primary-border: var(--mpp-btn-border);
    --mpp-btn-primary-text: var(--mpp-btn-text);
    --mpp-btn-primary-hover: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    --mpp-drop-bg: color-mix(in srgb, var(--mpp-accent) 10%, transparent);
    width: 100%;
    min-width: 0;
    max-width: var(--mpp-page-max, 1000px);
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    box-sizing: border-box;
    background: var(--mpp-bg);
    color: var(--mpp-text);
}

.profileWrapper[data-mpp-theme="light"] {
    --mpp-bg: #f3f1f7;
    --mpp-surface: #ffffff;
    --mpp-surface-soft: rgba(255, 255, 255, 0.82);
    --mpp-border: #d7d2e2;
    --mpp-text: #1f1b2e;
    --mpp-muted: #6f6a7d;
    --mpp-accent: #6b4eff;
}

.profileWrapper[data-mpp-theme="rose"] {
    --mpp-bg: #2a1620;
    --mpp-surface: #3d2230;
    --mpp-surface-soft: rgba(61, 34, 48, 0.88);
    --mpp-border: #6b3a4f;
    --mpp-text: #ffe9f1;
    --mpp-muted: #d4a3b5;
    --mpp-accent: #ff6fae;
}

.profileWrapper[data-mpp-theme="ocean"] {
    --mpp-bg: #10232c;
    --mpp-surface: #183642;
    --mpp-surface-soft: rgba(24, 54, 66, 0.88);
    --mpp-border: #2f5d6e;
    --mpp-text: #e8f7fb;
    --mpp-muted: #8fb8c5;
    --mpp-accent: #35d0ff;
}

.profileWrapper[data-mpp-theme="ember"] {
    --mpp-bg: #241510;
    --mpp-surface: #3a2218;
    --mpp-surface-soft: rgba(58, 34, 24, 0.88);
    --mpp-border: #6b3d28;
    --mpp-text: #fff1e7;
    --mpp-muted: #d0a48a;
    --mpp-accent: #ff7a3c;
}

.profileWrapper[data-mpp-theme="violet"] {
    --mpp-bg: #1b1430;
    --mpp-surface: #2a2148;
    --mpp-surface-soft: rgba(42, 33, 72, 0.88);
    --mpp-border: #4d3d7a;
    --mpp-text: #f1eaff;
    --mpp-muted: #b7a8db;
    --mpp-accent: #b07cff;
}

.profileWrapper[data-mpp-theme="mint"] {
    --mpp-bg: #10241f;
    --mpp-surface: #18362e;
    --mpp-surface-soft: rgba(24, 54, 46, 0.88);
    --mpp-border: #2f6b5a;
    --mpp-text: #e8fff7;
    --mpp-muted: #95c9b8;
    --mpp-accent: #3dffc0;
}

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .profileWrapper {
        --mpp-line: rgba(255, 255, 255, 0.14);
        --mpp-btn-primary-border: rgba(255, 205, 0, 0.42);
        --mpp-btn-primary-hover: rgba(255, 255, 255, 0.08);
        --mpp-drop-bg: rgba(255, 255, 255, 0.04);
    }

    .profileWrapper[data-mpp-theme="light"] {
        --mpp-line: rgba(31, 27, 46, 0.16);
        --mpp-btn-primary-border: rgba(107, 78, 255, 0.42);
    }
}

.profileWrapper .mpp-profile-topbar,
.profileWrapper .mpp-settings__dialog {
    border-color: var(--mpp-line);
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-topbar {
    background: var(--mpp-bg);
}

.profileWrapper .mpp-settings__dialog {
    background: transparent;
}

.profileWrapper .mpp-settings__dialog::before {
    background: var(--mpp-bg);
}

.profileWrapper .mpp-profile-friends-button {
    background: var(--mpp-surface-soft);
    border-color: var(--mpp-line);
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-clan {
    background: transparent;
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-topbar-nav__item,
.profileWrapper .mpp-profile-topbar-nav__item:hover,
.profileWrapper .mpp-profile-topbar-nav__item--active,
.profileWrapper .mpp-profile-topbar-nav__item--active:hover,
.profileWrapper .mpp-profile-topbar-action:not(.mpp-profile-topbar-action--add-friend),
.profileWrapper .mpp-profile-topbar-action:not(.mpp-profile-topbar-action--add-friend):hover,
.profileWrapper .balanceWrapper,
.profileWrapper .profileHeader > .leftHeader .profileName:not(.profileName--vip):not(.profileName--premium),
.profileWrapper span.mpp-profile-clan__name,
.profileWrapper span.mpp-profile-clan__members,
.profileWrapper .mpp-presence-action,
.profileWrapper .mpp-profile-friends-button,
.profileWrapper .mpp-friends-drawer__title,
.profileWrapper .mpp-friends-drawer__close,
.profileWrapper .mpp-friends-drawer__name,
.profileWrapper .mpp-gifts-drawer__title,
.profileWrapper .mpp-gifts-drawer__close,
.profileWrapper .mpp-gifts-drawer__name,
.profileWrapper .mpp-gifts-drawer__avatar--anon,
.profileWrapper .mpp-gifts-modal__close,
.profileWrapper .mpp-gift-view__close,
.profileWrapper .mpp-status-feedback,
.profileWrapper .mpp-status-style__chip--custom,
.profileWrapper .mpp-wall-load-more,
.profileWrapper .mpp-gallery-load-more,
.profileWrapper .mpp-settings__theme-name {
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-topbar-nav__item {
    border-right-color: var(--mpp-line);
}

.profileWrapper .mpp-profile-topbar-action:not(.mpp-profile-topbar-action--add-friend) {
    border-left-color: var(--mpp-line);
}

.profileWrapper .mpp-profile-topbar-nav__item:hover,
.profileWrapper .mpp-profile-topbar-action:not(.mpp-profile-topbar-action--add-friend):hover,
.profileWrapper .mpp-presence-action:hover,
.profileWrapper .mpp-friends-drawer__close:hover,
.profileWrapper .mpp-gifts-drawer__close:hover,
.profileWrapper .mpp-profile-friends-button:hover,
.profileWrapper .mpp-wall-load-more:hover,
.profileWrapper .mpp-gallery-load-more:hover {
    background: var(--mpp-control-hover);
}

.profileWrapper .mpp-profile-topbar-nav__item--active,
.profileWrapper .mpp-profile-topbar-nav__item--active:hover,
.profileWrapper .mpp-profile-topbar-action--settings[aria-expanded="true"] {
    background: var(--mpp-control-active);
}

.profileWrapper .mpp-presence-action,
.profileWrapper .mpp-friends-drawer__close,
.profileWrapper .mpp-gifts-drawer__close,
.profileWrapper .mpp-wall-load-more,
.profileWrapper .mpp-gallery-load-more {
    border-color: var(--mpp-line);
}

.profileWrapper .mpp-profile-sidebar__gift-btn,
.profileWrapper .mpp-gifts-drawer__send {
    border-color: var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
}

.profileWrapper .mpp-profile-sidebar__gift-btn:hover,
.profileWrapper .mpp-gifts-drawer__send:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.profileWrapper .mpp-presence-action {
    background: transparent;
}

.profileWrapper .mpp-friends-drawer__count,
.profileWrapper .mpp-gifts-drawer__count,
.profileWrapper .mpp-gallery-preview__count,
.profileWrapper .mpp-profile-sidebar__count,
.profileWrapper .mpp-wall-count,
.profileWrapper #mycomments .profileBlockTitle span.mpp-wall-count {
    background: var(--mpp-accent, rgba(255, 255, 255, 0.14));
}

.profileWrapper .mpp-wall-load-more,
.profileWrapper .mpp-gallery-load-more {
    background: var(--mpp-surface);
}

.profileWrapper .mpp-wall-like--inactive:hover {
    color: var(--mpp-text);
}

.profileWrapper .mpp-settings__theme-swatch {
    border-color: var(--mpp-line);
}

.profileWrapper .mpp-profile-spouse__status,
.profileWrapper .mpp-presence-status {
    color: var(--mpp-muted);
}

/* Drawers: сплошной фон, без bleed-through через surface-soft. */
.profileWrapper .mpp-gifts-drawer__panel {
    background: var(--mpp-sidebar, var(--mpp-surface));
    border-color: var(--mpp-line);
    color: var(--mpp-text);
}

/* .profileWrapper .mpp-friends-drawer__backdrop,
.profileWrapper .mpp-settings__backdrop {
    background: color-mix(in srgb, var(--mpp-bg) 55%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
} */

@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .profileWrapper .mpp-friends-drawer__backdrop,
    .profileWrapper .mpp-gifts-drawer__backdrop,
    .profileWrapper .mpp-settings__backdrop {
        background: rgba(8, 6, 18, 0.48);
    }
}

.profileWrapper .mpp-profile-header-shell::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--mpp-bg) 100%);
}

.profileWrapper .profileHeaderWrapper::before {
    background: none;
}

.profileHeaderWrapper--shade .profileHeaderImg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(88deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 24%, rgba(0, 0, 0, 0) 58%);
}

.profileWrapper .profileHeaderWrapper--no-cover::before,
.profileWrapper .profileHeaderWrapper:not(:has(.profileHeaderImg))::before {
    background: none;
}

.profileWrapper .profileHeaderWrapper--no-cover .profileHeader,
.profileWrapper .profileHeaderWrapper:not(:has(.profileHeaderImg)) .profileHeader {
    background: #0000002e;
}

.profileWrapper .profileHeaderWrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--mpp-bg) 100%);
}

.profileHeaderImg,
.profileHeaderWrapper::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.profileWrapper .profileStatusWrapper {
    background: transparent;
}

.profileWrapper .mpp-wall-more-menu,
.profileWrapper .mpp-profile-more__menu {
    background: var(--mpp-surface) !important;
    border-color: var(--mpp-border) !important;
    color: var(--mpp-text);
}

.profileWrapper .mpp-wall-more-button,
.profileWrapper .mpp-gallery-card .mpp-wall-more-button,
.mpp-gallery-card .mpp-wall-more-button,
.profileWrapper .mpp-player-actions .mpp-presence-action,
.profileWrapper .mpp-presence-actions .mpp-presence-action {
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14)) !important;
    background: transparent !important;
    color: var(--mpp-text, #fff);
}

.profileWrapper .mpp-wall-more-button:hover,
.profileWrapper .mpp-gallery-card .mpp-wall-more-button:hover,
.mpp-gallery-card .mpp-wall-more-button:hover,
.profileWrapper .mpp-player-actions .mpp-presence-action:hover,
.profileWrapper .mpp-presence-actions .mpp-presence-action:hover {
    border-color: var(--mpp-line, rgba(255, 255, 255, 0.14)) !important;
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.1)) !important;
    color: var(--mpp-text, #fff);
}

.profileWrapper .mpp-friends-drawer__unfriend,
.profileWrapper .mpp-friends-drawer__unfriend:hover {
    color: #ff3347 !important;
    border-color: rgba(255, 51, 71, 0.45) !important;
    background: transparent !important;
}

.profileWrapper .mpp-friends-drawer__unfriend:hover {
    border-color: #ff3347 !important;
    background: rgba(255, 51, 71, 0.12) !important;
}

.profileWrapper .mpp-gallery-card .mpp-wall-more-button,
.mpp-gallery-card .mpp-wall-more-button,
.profileWrapper .mpp-gallery-card__bar .mpp-wall-more-button,
.mpp-gallery-card__bar .mpp-wall-more-button,
.profileWrapper .mpp-gallery-album-tile .mpp-wall-more-button,
.mpp-gallery-album-tile .mpp-wall-more-button {
    min-width: 28px;
    min-height: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #ffffff29 !important;
    border-radius: var(--mpp-control-radius, 8px);
    background: var(--mpp-btn-bg, transparent) !important;
    color: #ffffff !important;
    filter: none;
    font-size: 16px;
}

.profileWrapper .mpp-gallery-card .mpp-wall-more-button:hover,
.mpp-gallery-card .mpp-wall-more-button:hover,
.profileWrapper .mpp-gallery-card__bar .mpp-wall-more-button:hover,
.mpp-gallery-card__bar .mpp-wall-more-button:hover,
.profileWrapper .mpp-gallery-album-tile .mpp-wall-more-button:hover,
.mpp-gallery-album-tile .mpp-wall-more-button:hover {
    border-color: #ffffff29 !important;
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent)) !important;
    color: #ffffff !important;
}

.mpp-gallery-album-tile:has(.mpp-wall-more.is-open),
.mpp-gallery-album-head:has(.mpp-wall-more.is-open) {
    z-index: 6;
}

.profileWrapper .mpp-wall-more-menu__item {
    color: var(--mpp-text);
    font-size: 13px;
    font-weight: 600;
}

.profileWrapper .profileHeader {
    background: transparent;
}

.profileWrapper #mycomments .mpp-wall-post-form__shell {
    background: var(--mpp-surface) !important;
    border-color: var(--mpp-line) !important;
    color: var(--mpp-text) !important;
}

.profileWrapper #mycomments .mpp-wall-edit-form .mpp-wall-emoji-button,
.profileWrapper #mycomments .mpp-wall-edit-form .mpp-wall-edit-form__save,
.profileWrapper #mycomments .mpp-wall-edit-form .mpp-wall-edit-form__cancel {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.profileWrapper #mycomments .mpp-wall-edit-form .mpp-wall-edit-form__cancel,
.profileWrapper #mycomments .mpp-wall-edit-form .mpp-wall-edit-form__save {
    color: var(--mpp-muted) !important;
}

.profileWrapper #mycomments .mpp-wall-edit-form.mpp-wall-form--ready .mpp-wall-edit-form__save {
    color: var(--mpp-accent, var(--mainColor, #ffcd00)) !important;
}

.profileWrapper #mycomments .mpp-wall-form.mpp-wall-post-form textarea:not(.mpp-composer-source),
.profileWrapper #mycomments .mpp-wall-edit-form__textarea:not(.mpp-composer-source) {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--mpp-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.profileWrapper #mycomments .mpp-wall-form.mpp-wall-reply-form textarea:not(.mpp-composer-source) {
    background: var(--mpp-surface) !important;
    border-color: var(--mpp-border) !important;
    color: var(--mpp-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.profileWrapper #mycomments .mpp-wall-form textarea:not(.mpp-composer-source):focus,
.profileWrapper #mycomments .mpp-wall-edit-form__textarea:not(.mpp-composer-source):focus {
    outline: none !important;
    box-shadow: none !important;
}

.profileWrapper #mycomments .wrapComments,
.profileWrapper #mycomments.mpp-wall,
.profileWrapper .mpp-gallery-preview {
    background: transparent !important;
    border-color: transparent;
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-sidebar__block {
    background: var(--mpp-surface);
    border-color: var(--mpp-line);
    color: var(--mpp-text);
}

.profileWrapper .mpp-profile-friends-button,
.profileWrapper .mpp-profile-clan,
.profileWrapper .mpp-gifts-drawer__panel,
.profileWrapper .mpp-settings__dialog,
.profileWrapper .mpp-profile-sidebar__block,
.profileWrapper .mpp-profile-sidebar__friend-avatar,
.profileWrapper .mpp-gallery-preview__item,
.profileWrapper #mycomments ul.my_commentlist > li,
.profileWrapper #mycomments ul.my_commentlist li.mpp-wall-item,
.profileWrapper #mycomments .mpp-wall-item {
    border-color: var(--mpp-line) !important;
}

.profileWrapper #mycomments ul.my_commentlist > li,
.profileWrapper #mycomments ul.my_commentlist li.mpp-wall-item,
.profileWrapper #mycomments .mpp-wall-item {
    background: var(--mpp-surface) !important;
    color: var(--mpp-text) !important;
}

.profileWrapper #mycomments ul.my_commentlist li.mpp-wall-reply,
.profileWrapper #mycomments ul.children li.mpp-wall-item {
    background: transparent !important;
}

.profileWrapper #mycomments .mpp-wall-reply-meta.mpp-wall-actions {
    border: 0;
}

.profileWrapper #mycomments ul.my_commentlist > li.noPostsInWall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 188px;
    height: auto;
    padding: 20px;
    border: 1px dashed var(--mpp-line, rgba(255, 255, 255, 0.16)) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--mpp-muted, #c5c3d1) !important;
    box-sizing: border-box;
    cursor: pointer;
}

.profileWrapper #mycomments ul.my_commentlist > li.noPostsInWall:hover {
    border-color: var(--mpp-border, #6a6780) !important;
    color: var(--mpp-text, #ffffff) !important;
    background: var(--mpp-control-hover, rgba(255, 255, 255, 0.04)) !important;
}

.profileWrapper #mycomments ul.my_commentlist > li.noPostsInWall--readonly {
    cursor: default;
}

.profileWrapper #mycomments ul.my_commentlist > li.noPostsInWall--readonly:hover {
    border-color: var(--mpp-border, #49475b) !important;
    color: var(--mpp-muted, #c5c3d1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.noPostsInWall__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 100px;
    border: 1px solid var(--mpp-border, #49475b);
    font-size: 22px;
    line-height: 1;
}

.noPostsInWall__icon svg.mpp-icon {
    width: 18px;
    height: 18px;
}

.noPostsInWall__text {
    font-size: 14px;
    font-weight: 600;
}

.profileWrapper #mycomments .profileBlockTitle,
.profileWrapper .mpp-gallery-preview__title,
.profileWrapper .mpp-gallery-preview__title-text,
.profileWrapper .mpp-gallery-preview__title:hover,
.profileWrapper .mpp-profile-sidebar__title,
.profileWrapper .mpp-friends-drawer__title,
.profileWrapper .mpp-gifts-drawer__title {
    color: var(--mpp-text);
}

.profileWrapper #mycomments .mpp-wall-actions {
    border-color: var(--mpp-line);
}


.profileWrapper .mpp-gallery-preview__item {
    border-color: var(--mpp-line);
    background: var(--mpp-surface);
}

.profileWrapper .mpp-gallery-preview__empty {
    border-color: var(--mpp-line);
    color: var(--mpp-muted);
}

.profileWrapper .profileName,
.profileWrapper .mpp-friends-drawer__name,
.profileWrapper .mpp-gifts-drawer__name,
.profileWrapper .mpp-settings__title,
.profileWrapper .mpp-settings__panel-title {
    color: var(--mpp-text);
}

.profileWrapper .mpp-friends-drawer__status,
.profileWrapper .mpp-settings__hint,
.profileWrapper .mpp-wall-date {
    color: var(--mpp-muted);
}

.profileWrapper .mpp-gallery-preview__count,
.profileWrapper .mpp-wall-count,
.profileWrapper #mycomments .profileBlockTitle span.mpp-wall-count,
.profileWrapper .mpp-profile-friends-button__count,
.profileWrapper .mpp-friends-drawer__count,
.profileWrapper .mpp-gifts-drawer__count,
.profileWrapper .mpp-profile-sidebar__count {
    background: var(--mpp-accent, rgba(255, 255, 255, 0.14));
    color: var(--mpp-bg, #2d2b3a);
    font-size: 12px;
    font-weight: 800;
}

.profileWrapper .mpp-gallery-page__count {
    background: transparent;
    color: color-mix(in srgb, var(--mpp-text, #fff) 72%, transparent);
    font-size: 14px;
    font-weight: 500;
}

/* ---- Unified controls (opt-in; wall composer untouched) ---- */
/* Beat legacy `.profileWrapper input` (height:100px, padding-top:15px) */
.profileWrapper .mpp-ui-input,
.profileWrapper .mpp-gallery-upload__input,
.mpp-gallery-modal .mpp-ui-input,
.mpp-gallery-modal .mpp-gallery-upload__input,
.mpp-gallery-uploader .mpp-ui-input,
.mpp-gallery-uploader .mpp-gallery-upload__input,
.profileWrapper .mpp-settings__field input[type="text"],
.profileWrapper .mpp-settings__field input[type="date"],
.profileWrapper .mpp-place__search,
.profileWrapper .mpp-select__trigger {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--mpp-control-h, 36px) !important;
    min-height: var(--mpp-control-h, 36px) !important;
    max-height: var(--mpp-control-h, 36px) !important;
    margin: 0;
    padding: 0 12px !important;
    border: 1px solid var(--mpp-control-border, var(--mpp-border, #49475b)) !important;
    border-radius: var(--mpp-control-radius, 8px) !important;
    background: var(--mpp-control-bg, var(--mpp-bg, #2d2b3a)) !important;
    color: var(--mpp-text, #fff) !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 600;
    line-height: normal !important;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}

.profileWrapper .mpp-ui-input:focus,
.profileWrapper .mpp-gallery-upload__input:focus,
.mpp-gallery-modal .mpp-ui-input:focus,
.mpp-gallery-modal .mpp-gallery-upload__input:focus,
.mpp-gallery-uploader .mpp-ui-input:focus,
.mpp-gallery-uploader .mpp-gallery-upload__input:focus,
.profileWrapper .mpp-settings__field input[type="text"]:focus,
.profileWrapper .mpp-settings__field input[type="date"]:focus,
.profileWrapper .mpp-place__search:focus,
.profileWrapper .mpp-select.is-open .mpp-select__trigger {
    border-color: var(--mpp-accent, #ffcd00) !important;
    outline: none;
    box-shadow: none;
}

.profileWrapper .mpp-ui-input::placeholder,
.profileWrapper .mpp-gallery-upload__input::placeholder,
.mpp-gallery-modal .mpp-ui-input::placeholder,
.mpp-gallery-modal .mpp-gallery-upload__input::placeholder,
.mpp-gallery-uploader .mpp-ui-input::placeholder,
.mpp-gallery-uploader .mpp-gallery-upload__input::placeholder {
    color: var(--mpp-muted, #a9a9a9);
    opacity: 1;
}

.mpp-gallery-modal textarea.mpp-ui-input,
.mpp-gallery-uploader textarea.mpp-ui-input {
    height: auto !important;
    min-height: 76px !important;
    max-height: 160px !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    resize: vertical;
}

.mpp-gallery-modal .mpp-gallery-upload__label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
}

.mpp-ui-select,
.mpp-select {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.mpp-ui-select select,
.mpp-select select,
select.mpp-ui-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    pointer-events: none !important;
}

.mpp-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1;
    cursor: pointer;
}

.mpp-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-select__chevron {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    opacity: 0.7;
    background: center / 12px 12px no-repeat url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3e%3cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.profileWrapper[data-mpp-theme="light"] .mpp-select__chevron {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3e%3cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%231f1b2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.mpp-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 80;
    display: none;
    max-height: 220px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--mpp-control-border, var(--mpp-border, #49475b));
    border-radius: var(--mpp-control-radius, 8px);
    background: var(--mpp-surface, #2d2b3a);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.mpp-select.is-open .mpp-select__menu {
    display: block;
}

.mpp-select__option {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.mpp-select__option--icon,
.mpp-select__value--icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpp-select__option-icon {
    flex: 0 0 auto;
    line-height: 0;
}

.mpp-select__option-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-select__option--create {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 0 0 6px 6px;
}

.mpp-select__option:hover,
.mpp-select__option.is-active {
    background: var(--mpp-control-active, rgba(255, 255, 255, 0.1));
}

.mpp-place.is-disabled .mpp-select__trigger {
    opacity: 0.55;
    cursor: default;
}

.mpp-place .mpp-select__menu {
    flex-direction: column;
    padding: 6px;
}

.mpp-place.is-open .mpp-select__menu {
    display: flex;
}

.mpp-place__search {
    flex: 0 0 32px;
    width: 100%;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    margin: 0 0 4px;
    padding: 0 10px !important;
    border: 1px solid var(--mpp-control-border, var(--mpp-border, #49475b));
    border-radius: 6px;
    background: var(--mpp-control-bg, var(--mpp-bg, #2d2b3a));
    color: var(--mpp-text, #fff);
    font: inherit;
    font-size: 13px !important;
    line-height: 32px !important;
    box-sizing: border-box;
}

.mpp-place__search:focus {
    border-color: var(--mpp-accent, #ffcd00);
    outline: none;
}

.mpp-place__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.mpp-place .mpp-select__option {
    min-height: 32px;
    padding: 6px 8px;
}

.mpp-place__empty {
    padding: 10px 8px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    text-align: center;
}

.mpp-select__option--place,
.mpp-place .mpp-select__value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpp-flag {
    flex: 0 0 auto;
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.profileHeader > .leftHeader .profileInfo .profileCity,
.profileCity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profileCity__text {
    min-width: 0;
}

.mpp-settings__field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

.profileWrapper[data-mpp-theme="light"] .mpp-settings__field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* Shared outline buttons */
.mpp-btn,
.mpp-settings__button,
.mpp-gallery-upload__submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--mpp-control-h, 36px);
    min-height: var(--mpp-control-h, 36px);
    padding: 0 14px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    border-radius: var(--mpp-control-radius, 8px);
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
    outline: none;
}

.mpp-btn:hover,
.mpp-settings__button:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00))));
}

.mpp-btn--primary,
.mpp-gallery-upload__submit {
    border-color: var(--mpp-btn-primary-border, var(--mpp-accent, #ffcd00));
    background: var(--mpp-btn-primary-bg, transparent);
    color: var(--mpp-btn-primary-text, var(--mpp-accent, #ffcd00));
}

.mpp-btn--primary:hover,
.mpp-gallery-upload__submit:hover {
    border-color: var(--mpp-btn-hover-border, var(--mpp-btn-primary-border, var(--mpp-accent, #ffcd00)));
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-primary-hover, rgba(255, 255, 255, 0.08)));
    color: var(--mpp-btn-hover-text, var(--mpp-btn-primary-text, var(--mpp-accent, #ffcd00)));
    filter: none;
}

.mpp-gallery-upload__submit.is-loading,
.mpp-gallery-upload__submit.is-done,
.mpp-btn.is-loading,
.mpp-btn.is-done,
.mpp-settings__button.is-loading,
.mpp-gallery-modal__danger.is-loading,
.mpp-gallery-modal__danger.is-done,
.mpp-wall-submit.is-loading,
.mpp-wall-submit.is-done,
.mpp-welcome__next.is-loading,
.mpp-welcome__next.is-done,
.profileStatusText #statusForm > button[type="submit"].is-loading,
.profileStatusText #statusForm > button[type="submit"].is-done {
    color: transparent !important;
    pointer-events: none;
    filter: none;
    opacity: 1 !important;
}

.mpp-gallery-upload__submit.is-loading::after,
.mpp-btn.is-loading::after,
.mpp-settings__button.is-loading::after,
.mpp-gallery-modal__danger.is-loading::after,
.mpp-wall-submit.is-loading::after,
.mpp-welcome__next.is-loading::after,
.profileStatusText #statusForm > button[type="submit"].is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-gallery-upload__submit.is-done::after,
.mpp-btn.is-done::after,
.mpp-gallery-modal__danger.is-done::after,
.mpp-wall-submit.is-done::after,
.mpp-welcome__next.is-done::after,
.profileStatusText #statusForm > button[type="submit"].is-done::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 14px;
    margin: -10px 0 0 -4px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: var(--mpp-accent, #ffcd00);
    border-radius: 0;
    animation: none;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.mpp-gallery-modal__danger.is-loading::after {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.mpp-gallery-modal__danger.is-done::after {
    border-color: #fff;
}

.mpp-wall-submit.is-loading .mpp-wall-submit__icon,
.mpp-wall-submit.is-done .mpp-wall-submit__icon,
.profileStatusText #statusForm > button[type="submit"].is-loading > *,
.profileStatusText #statusForm > button[type="submit"].is-done > * {
    visibility: hidden;
}

@keyframes mpp-control-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Settings modal ---- */
.mpp-settings-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 4px;
    background: var(--mpp-surface, #3d3b4c);
    cursor: pointer;
}

.mpp-settings-trigger:hover {
    filter: brightness(1.1);
}

.mpp-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 100070;
    display: none;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    overflow: hidden;
}

.mpp-settings.is-open {
    display: flex;
    flex-direction: column;
}

.mpp-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.48);
}

.mpp-settings__dialog {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.mpp-settings__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--mpp-bg, #2d2b3a);
}

.mpp-settings__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--mpp-border, #49475b);
}

.mpp-settings__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.mpp-settings__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mpp-settings__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.mpp-settings__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 210px;
    padding: 14px;
    border-right: 1px solid var(--mpp-border, #49475b);
    overflow: auto;
}

.mpp-settings__nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mpp-settings__nav-item:hover,
.mpp-settings__nav-item.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.mpp-settings__nav-item.is-soon,
.mpp-settings__nav-item.is-soon:hover,
.mpp-settings__nav-item:disabled {
    justify-content: space-between;
    gap: 8px;
    background: transparent;
    opacity: 0.72;
    cursor: default;
}

.mpp-settings__soon {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 205, 0, 0.16);
    color: var(--mpp-accent, #ffcd00);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-transform: uppercase;
}

.profileWrapper[data-mpp-theme="light"] .mpp-settings__nav-item:hover,
.profileWrapper[data-mpp-theme="light"] .mpp-settings__nav-item.is-active {
    background: rgba(31, 27, 46, 0.08);
}

.profileWrapper[data-mpp-theme="light"] .mpp-settings__nav-item.is-soon:hover {
    background: transparent;
}

.mpp-settings__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 20px;
    overflow: auto;
    overscroll-behavior: contain;
}

.mpp-settings__panel {
    display: none;
}

.mpp-settings__panel.is-active {
    display: block;
}

.mpp-settings__panel-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.mpp-settings__hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.4;
}

.mpp-settings__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
}

.mpp-settings__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.mpp-settings__field--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mpp-settings__field input[type="text"],
.mpp-settings__field input[type="date"],
.mpp-settings__field .mpp-select,
.mpp-settings__field .mpp-place {
    width: 100%;
    max-width: 260px;
}

.mpp-settings__field--row .mpp-select {
    max-width: 180px;
}

.mpp-settings__file {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 16px;
    border: 1px dashed var(--mpp-border, #49475b);
    border-radius: 10px;
    cursor: pointer;
}

.mpp-settings__file input {
    display: none;
}

.mpp-settings__form--cover {
    max-width: 520px;
}

.mpp-settings__cover-frame {
    position: relative;
}

.mpp-settings__cover-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
}

.mpp-settings__cover-delete:hover {
    background: rgba(0, 0, 0, 0.82);
    color: #ff4f64;
}

.mpp-settings__cover-delete[hidden] {
    display: none !important;
}

.mpp-settings__cover-picker {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: #151515;
    cursor: pointer;
    line-height: 0;
    font-size: 0;
}

.mpp-settings__cover-picker:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.mpp-settings__cover-picker:hover .mpp-settings__cover-overlay,
.mpp-settings__cover-picker:focus-within .mpp-settings__cover-overlay {
    opacity: 1;
}

.mpp-settings__cover-picker.is-selected {
    border-style: solid;
    border-color: var(--mpp-accent, #ffcd00);
}

.mpp-settings__cover-picker.is-selected .mpp-settings__cover-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

.mpp-settings__cover-picker input[type="file"] {
    display: none;
}

.mpp-settings__cover-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 168px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #151515;
    line-height: 0;
}

.mpp-settings__cover-preview img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    vertical-align: top;
}

.mpp-settings__cover-preview img[hidden],
.mpp-settings__cover-preview img:not([src]) {
    display: none !important;
}

.mpp-settings__cover-preview.is-shade::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(88deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 24%, rgba(0, 0, 0, 0) 58%);
}

.mpp-settings__cover-empty {
    display: none !important;
}

.mpp-settings__cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62));
    color: #fff;
    text-align: center;
    opacity: 0.92;
    transition: opacity 0.18s ease, background 0.18s ease;
    line-height: 1.3;
    font-size: 14px;
}

.mpp-settings__cover-overlay-title {
    font-size: 15px;
    font-weight: 700;
}

.mpp-settings__cover-overlay-hint {
    font-size: 12px;
    opacity: 0.8;
}

.mpp-settings__cover-meta {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 10px;
    line-height: 1.3;
    font-size: 13px;
}

.mpp-settings__cover-meta.is-visible,
.mpp-settings__cover-meta:not([hidden]) {
    display: flex;
}

.mpp-settings__cover-filename {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-settings__cover-clear {
    border: 0;
    background: transparent;
    color: var(--mpp-accent, #ffcd00);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.mpp-settings__cover-clear:hover {
    text-decoration: underline;
}

.mpp-settings__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}

.mpp-settings__check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.mpp-settings__check-box {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 5px;
    background: var(--mpp-control-bg, rgba(255, 255, 255, 0.08));
}

.mpp-settings__check-box::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-bottom: 2px solid var(--mpp-accent, #ffcd00);
    border-left: 2px solid var(--mpp-accent, #ffcd00);
    transform: rotate(-45deg);
    opacity: 0;
}

.mpp-settings__check input:checked + .mpp-settings__check-box::after {
    opacity: 1;
}

.mpp-settings__check input:focus-visible + .mpp-settings__check-box {
    border-color: var(--mpp-accent, #ffcd00);
}

.mpp-settings__actions--cover {
    margin-top: 14px;
}

.mpp-settings__actions--cover:not(:has(.mpp-settings__button:not([hidden]))) {
    margin-top: 0;
}

.mpp-settings__actions--cover [hidden] {
    display: none !important;
}

.mpp-settings__button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}

.mpp-settings__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.mpp-settings__button {
    min-width: 96px;
}

.mpp-settings__button.is-loading {
    color: transparent;
    pointer-events: none;
    filter: none;
    opacity: 1;
}

.mpp-settings__button.is-done {
    min-width: max-content;
    gap: 6px;
    color: var(--mpp-btn-text, var(--mpp-btn-border, var(--mpp-accent, #ffcd00)));
    pointer-events: none;
    filter: none;
    opacity: 1;
}

.mpp-settings__button.is-done::after {
    content: none;
    display: none;
}

.mpp-settings__button-check {
    flex: 0 0 auto;
}

.mpp-settings__button-check svg.mpp-icon {
    width: 14px;
    height: 14px;
}

.mpp-settings__button.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--mpp-accent, #fff);
    border-radius: 50%;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-settings__feedback {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mpp-text, #fff);
}

.mpp-settings__feedback.is-visible {
    display: inline-flex;
}

.mpp-settings__feedback.is-success .mpp-toast__icon {
    color: var(--mpp-icon, var(--mpp-accent, currentColor));
}

.mpp-settings__feedback.is-error {
    color: #ff8b8b;
}

.mpp-settings__feedback .mpp-toast__icon {
    width: 16px;
    height: 16px;
}

.mpp-settings__feedback .mpp-toast__icon svg {
    width: 16px;
    height: 16px;
}

.mpp-settings__themes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-width: 640px;
}

.mpp-settings__theme {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 10px;
    cursor: pointer;
}

.mpp-settings__theme input {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    outline: none;
}

.mpp-settings__theme.is-selected,
.mpp-settings__theme:has(input:checked) {
    border-color: color-mix(in srgb, var(--mpp-accent, #ffcd00) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
}

.mpp-settings__theme-swatch {
    position: relative;
    display: block;
    width: 100%;
    height: 54px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mpp-settings__theme-swatch i,
.mpp-settings__theme-swatch b {
    position: absolute;
    display: block;
    box-sizing: border-box;
}

.mpp-settings__theme-swatch i {
    left: 8%;
    height: 16px;
    border-radius: 4px;
}

.mpp-settings__theme-swatch i:first-of-type {
    top: 10px;
    width: 58%;
}

.mpp-settings__theme-swatch i:nth-of-type(2) {
    top: 30px;
    width: 36%;
}

.mpp-settings__theme-swatch b {
    top: 10px;
    right: 8%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
}

.mpp-settings__theme--dark .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #2d2b3a, #49475b);
}

.mpp-settings__theme--light .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #f3f1f7, #ffffff);
}

.mpp-settings__theme--rose .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #2a1620, #ff6fae);
}

.mpp-settings__theme--ocean .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #10232c, #35d0ff);
}

.mpp-settings__theme--ember .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #241510, #ff7a3c);
}

.mpp-settings__theme--violet .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #1b1430, #b07cff);
}

.mpp-settings__theme--mint .mpp-settings__theme-swatch {
    background: linear-gradient(135deg, #10241f, #3dffc0);
}

.mpp-settings__theme-name {
    font-size: 13px;
    font-weight: 700;
}

.mpp-settings__button--ghost {
    background: transparent;
    color: var(--mpp-text, #fff);
    box-shadow: inset 0 0 0 1px var(--mpp-line, rgba(255, 255, 255, 0.18));
}

.mpp-theme-shop[hidden] {
    display: none !important;
}

.mpp-theme-shop {
    margin-top: 16px;
}

.mpp-theme-shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-width: 640px;
}

.mpp-theme-shop__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.14));
    border-radius: 10px;
}

.mpp-theme-shop__item.is-trying {
    border-color: color-mix(in srgb, var(--mpp-accent, #ffcd00) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
}

.mpp-theme-shop__preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mpp-theme-shop__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.mpp-theme-shop__buy .mpp-gifts-modal__price {
    margin: 0;
}


@media (max-width: 820px) {
    .mpp-settings__body {
        flex-direction: column;
    }

    .mpp-settings__nav {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--mpp-border, #49475b);
    }

    .mpp-settings__nav-item {
        width: auto;
    }
}

/* Universal toasts (bottom-right) — replace legacy top alertGallery strip */
p.alertGallery,
.alertGallery {
    display: none !important;
}

.mpp-toast-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.mpp-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--mpp-line, rgba(255, 255, 255, 0.12));
    background: var(--mpp-surface, rgba(20, 20, 24, 0.92));
    color: var(--mpp-text, #fff);
    font-size: 14px;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.mpp-toast__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--mpp-icon, var(--mpp-accent, currentColor));
}

.mpp-toast__icon svg {
    width: 18px;
    height: 18px;
}

.mpp-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mpp-toast--success {
    border-color: color-mix(in srgb, var(--mpp-accent, #ffcd00) 55%, var(--mpp-line, transparent));
}

.mpp-toast--error {
    border-color: color-mix(in srgb, #ff4f64 62%, var(--mpp-line, transparent));
}

.mpp-toast--error .mpp-toast__icon {
    color: #ff4f64;
}

[data-mpp-undo-hidden] {
    display: none !important;
}

.mpp-toast--undo {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.mpp-toast__meter {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
}

.mpp-toast__meter svg {
    display: block;
    width: 32px;
    height: 32px;
    transform: rotate(-90deg);
}

.mpp-toast__ring-track,
.mpp-toast__ring {
    fill: none;
    stroke-width: 2.5;
}

.mpp-toast__ring-track {
    stroke: var(--mpp-line, rgba(255, 255, 255, 0.28));
}

.mpp-toast__ring {
    stroke: var(--mpp-accent, #ffcd00);
    stroke-linecap: round;
}

.mpp-toast__count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpp-text, #fff);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

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

.mpp-toast__undo {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mpp-accent, #ffcd00);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

[data-mpp-undo-hidden] {
    display: none !important;
}

.mpp-status-feedback {
    display: none !important;
}

.profileStatusText {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
}

.mpp-status-style {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 10px);
    bottom: auto;
    z-index: 40;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(18, 18, 22, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.mpp-status-style.is-open {
    display: flex !important;
}

.mpp-status-style[hidden] {
    display: none !important;
}

.mpp-status-style__colors {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.mpp-status-style__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mpp-status-style__colors .mpp-status-style__chips {
    flex-wrap: nowrap;
}

.mpp-status-style__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mpp-status-style__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mpp-status-style__chip,
.profileStatus .mpp-status-style__chip,
.profileStatusText .mpp-status-style__chip {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.045) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: none;
}

.mpp-status-style__chip:hover,
.mpp-status-style__chip.is-active {
    border-color: var(--mpp-accent, #ffcd00) !important;
    box-shadow: 0 0 0 1px rgba(255, 205, 0, 0.35);
}

.mpp-status-style__chip--emoji {
    font-size: 18px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06) !important;
}

.mpp-status-style__chip--color {
    background: var(--mpp-chip-color, #fff) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mpp-status-style__chip--bg {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent),
        var(--mpp-chip-bg, rgba(255, 255, 255, 0.13)) !important;
}

.mpp-status-style__chip--custom {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff;
}

.mpp-status-style__chip--custom.is-active {
    background: rgba(255, 255, 255, 0.06) !important;
}

.mpp-status-style__custom-icon {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.mpp-status-style__custom-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mpp-status-style__swatch {
    fill: rgba(255, 255, 255, 0.22);
}

.mpp-status-style__chip--custom.is-active .mpp-status-style__glyph,
.mpp-status-style__chip--custom.is-active .mpp-status-style__swatch {
    fill: var(--mpp-custom-color, #fff);
}

.mpp-status-style__picker {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

.mpp-moderation-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 0;
    padding: 2px 7px 2px 4px;
    border-radius: 999px;
    background: rgba(13, 10, 28, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
    pointer-events: none;
}

.mpp-moderation-chip__spin {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    box-sizing: border-box;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-moderation-chip__text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profileHeaderWrapper > .mpp-moderation-chip,
.mpp-gallery-preview__item > .mpp-moderation-chip,
.mpp-settings__cover-picker > .mpp-moderation-chip {
    position: absolute;
    z-index: 4;
}

.profileHeaderWrapper > .mpp-moderation-chip {
    top: 10px;
    right: 12px;
}

.mpp-gallery-preview__item > .mpp-moderation-chip {
    top: 6px;
    right: 6px;
    bottom: auto;
    left: auto;
    padding: 4px;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: none;
}

.mpp-settings__cover-picker > .mpp-moderation-chip {
    left: 6px;
    bottom: 6px;
}

.mpp-cover-report,
.mpp-lightbox__report {
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.mpp-cover-report,
.mpp-lightbox__report {
    position: absolute;
    z-index: 5;
    min-height: 32px;
    padding: 0 12px;
}

.mpp-cover-report {
    right: 12px;
    bottom: 12px;
}

.mpp-lightbox__report {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
}

.mpp-lightbox__report[hidden] {
    display: none !important;
}

.mpp-report {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.mpp-report[hidden] {
    display: none !important;
}

.mpp-report__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.55);
}

.mpp-report__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 16px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 14px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.mpp-report__title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
}

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

.mpp-report__reason {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-report__reason.is-active {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-report__details {
    display: block;
    margin-top: 12px;
}

.mpp-report__details span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.8;
}

.mpp-report__details textarea {
    display: block;
    width: 100%;
    min-height: 76px;
    padding: 10px;
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.mpp-report__error,
.mpp-report__thanks {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.mpp-report__error {
    color: #ff8b8b;
}

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

.mpp-report__cancel,
.mpp-report__send {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--mpp-border, #49475b);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-report__send {
    border-color: var(--mpp-accent, #ffcd00);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-report__send:disabled {
    opacity: 0.55;
    cursor: default;
}

.mpp-report.is-done .mpp-report__reasons,
.mpp-report.is-done .mpp-report__details,
.mpp-report.is-done .mpp-report__send,
.mpp-report.is-done .mpp-report__error {
    display: none;
}

.mpp-blocked {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
}

.mpp-blocked__card {
    width: min(420px, 100%);
    text-align: center;
    background: var(--mpp-surface, #3d3b4c);
    border: 1px solid var(--mpp-border, #49475b);
    border-radius: 16px;
    padding: 28px 22px 22px;
    box-sizing: border-box;
}

.mpp-blocked__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 14%, transparent);
}

.mpp-blocked__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}

.mpp-blocked__reason {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.mpp-blocked__until {
    margin: 16px 0 0;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
}

.mpp-blocked__until strong {
    display: block;
    margin-top: 4px;
    color: var(--mpp-accent, #ffcd00);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.mpp-blocked__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.mpp-blocked__support,
.mpp-blocked__close {
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-blocked__support {
    border: 0;
    background: var(--mpp-accent, #ffcd00);
    color: #1b1404;
}

.mpp-blocked__close {
    background: transparent;
    border: 1px solid var(--mpp-border, #49475b);
    color: var(--mpp-text, #fff);
}

.profileWrapper.ptx-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.profileWrapper.ptx-page .ptx-window {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--mpp-text);
}

.profileWrapper.ptx-page .mpp-profile-topbar {
    position: sticky;
    top: 0;
    flex: 0 0 40px;
    background: var(--mpp-topbar, var(--mpp-bg)) !important;
    border-bottom: 1px solid var(--mpp-line);
    color: var(--mpp-text);
}

.profileWrapper.ptx-page .mpp-profile-topbar-nav__item,
.profileWrapper.ptx-page .mpp-profile-topbar-action {
    color: var(--mpp-text);
    border-color: var(--mpp-border);
}

.profileWrapper.ptx-page .mpp-profile-topbar-nav__item:hover,
.profileWrapper.ptx-page .mpp-profile-topbar-action:hover,
.profileWrapper.ptx-page .mpp-profile-topbar-nav__item--active,
.profileWrapper.ptx-page .mpp-profile-topbar-nav__item--active:hover,
.profileWrapper.ptx-page .ptx-filters-toggle-btn.is-active {
    color: var(--mpp-text);
    background: var(--mpp-control-active);
}

.profileWrapper.ptx-page .ptx-filters-toggle-btn.is-active {
    color: var(--mpp-accent);
}

.profileWrapper.ptx-page .mpp-profile-topbar-nav__item--active {
    max-width: min(62vw, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profileWrapper.ptx-page .ptx-filters-icon {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.profileWrapper.ptx-page .ptx-description {
    margin: 0;
    padding: 0 16px 10px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--mpp-muted);
    text-align: center;
}

.profileWrapper.ptx-page .ptx-week-nav {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: center;
    padding: 12px 12px 8px;
}

.profileWrapper.ptx-page .ptx-week-btn,
.profileWrapper.ptx-page .ptx-range-action,
.profileWrapper.ptx-page .ptx-filter-control,
.profileWrapper.ptx-page .ptx-load-more-btn,
.profileWrapper.ptx-page .ptx-reset-view-btn {
    border: 1px solid var(--mpp-border);
    background: var(--mpp-surface);
    color: var(--mpp-text);
    border-radius: var(--mpp-control-radius);
    font: inherit;
    cursor: pointer;
}

.profileWrapper.ptx-page .ptx-week-btn {
    width: 36px;
    height: 36px;
    padding: 0;
}

.profileWrapper.ptx-page .ptx-week-btn:hover,
.profileWrapper.ptx-page .ptx-range-action:hover,
.profileWrapper.ptx-page .ptx-filter-control:hover,
.profileWrapper.ptx-page .ptx-load-more-btn:hover,
.profileWrapper.ptx-page .ptx-reset-view-btn:hover {
    background: var(--mpp-control-hover);
}

.profileWrapper.ptx-page .ptx-week-btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

.profileWrapper.ptx-page .ptx-week-center {
    min-width: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--mpp-border);
    border-radius: var(--mpp-control-radius);
    background: var(--mpp-surface);
    color: var(--mpp-text);
}

.profileWrapper.ptx-page .ptx-date-cell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profileWrapper.ptx-page .ptx-date-trigger {
    border: 0;
    background: transparent;
    color: var(--mpp-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.profileWrapper.ptx-page .ptx-date-trigger:focus {
    outline: none;
}

.profileWrapper.ptx-page .ptx-date-trigger:focus-visible,
.profileWrapper.ptx-page .ptx-filter-control:focus,
.profileWrapper.ptx-page .ptx-reset-view-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mpp-accent) 45%, transparent);
}

.profileWrapper.ptx-page .ptx-date-separator {
    color: var(--mpp-muted);
    font-weight: 600;
}

.profileWrapper.ptx-page .ptx-range-action {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.profileWrapper.ptx-page .ptx-range-reset-btn.is-hidden {
    display: none;
}

.profileWrapper.ptx-page .ptx-date-anchor {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.profileWrapper.ptx-page .ptx-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: end;
    padding: 4px 12px 12px;
}

.profileWrapper.ptx-page .ptx-filters.is-hidden {
    display: none;
}

.profileWrapper.ptx-page .ptx-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profileWrapper.ptx-page .ptx-filter-label {
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.03em;
    color: var(--mpp-muted);
}

.profileWrapper.ptx-page .ptx-filter-control {
    width: 100%;
    height: var(--mpp-control-h);
    padding: 0 10px;
    box-sizing: border-box;
    color-scheme: dark;
}

.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-filter-control,
.profileWrapper[data-mpp-theme="light"] .ptx-filter-control {
    color-scheme: light;
}

.profileWrapper.ptx-page .ptx-reset-view-btn,
.profileWrapper.ptx-page .ptx-load-more-btn {
    height: var(--mpp-control-h);
    padding: 0 12px;
}

.profileWrapper.ptx-page .ptx-reset-view-btn {
    justify-self: start;
    background: transparent;
    color: var(--mpp-muted);
}

.profileWrapper.ptx-page .ptx-list-wrap {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--mpp-border);
    background: var(--mpp-bg);
}

.profileWrapper.ptx-page .ptx-list {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.profileWrapper.ptx-page #ptx-list-content {
    flex: 0 0 auto;
}

.profileWrapper.ptx-page #ptx-list-content:has(> .ptx-empty-state:only-child) {
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
}

.profileWrapper.ptx-page .ptx-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    color: var(--mpp-muted);
}

.profileWrapper.ptx-page .ptx-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 16px 10px 12px;
    border-bottom: 1px solid var(--mpp-line);
    background: transparent;
}

.profileWrapper.ptx-page .ptx-row:hover {
    background: var(--mpp-control-hover);
}

.profileWrapper.ptx-page .ptx-row.is-incoming {
    border-left: 4px solid #2bbf6a;
}

.profileWrapper.ptx-page .ptx-row.is-outgoing {
    border-left: 4px solid #dc5b5b;
}

.profileWrapper.ptx-page .ptx-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.profileWrapper.ptx-page .ptx-marker {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    background: var(--mpp-surface);
    color: var(--mpp-muted);
}

.profileWrapper.ptx-page .ptx-row.is-incoming .ptx-marker {
    background: rgba(43, 191, 106, 0.18);
    color: #2bbf6a;
}

.profileWrapper.ptx-page .ptx-row.is-outgoing .ptx-marker {
    background: rgba(220, 91, 91, 0.18);
    color: #dc5b5b;
}

.profileWrapper.ptx-page .ptx-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.profileWrapper.ptx-page .ptx-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.profileWrapper.ptx-page .ptx-subtitle {
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--mpp-muted);
    font-size: 12px;
}

.profileWrapper.ptx-page .ptx-subtitle-text {
    min-width: 0;
}

.profileWrapper.ptx-page .ptx-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.profileWrapper.ptx-page .ptx-amount-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.profileWrapper.ptx-page .ptx-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.profileWrapper.ptx-page .ptx-amount-gld,
.profileWrapper.ptx-page .ptx-currency-gld {
    color: var(--mpp-accent);
}

.profileWrapper.ptx-page .ptx-currency-gld {
    background: color-mix(in srgb, var(--mpp-accent) 20%, transparent);
}

.profileWrapper.ptx-page .ptx-amount-slv,
.profileWrapper.ptx-page .ptx-currency-slv {
    color: #9aa3b5;
}

.profileWrapper.ptx-page .ptx-currency-slv {
    background: rgba(154, 163, 181, 0.18);
}

.profileWrapper.ptx-page .ptx-amount-cpn,
.profileWrapper.ptx-page .ptx-currency-cpn {
    color: #7ea2ef;
}

.profileWrapper.ptx-page .ptx-currency-cpn {
    background: rgba(126, 162, 239, 0.18);
}

.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-amount-slv,
.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-currency-slv {
    color: #5c6578;
}

.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-amount-cpn,
.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-currency-cpn {
    color: #3d62c4;
}

.profileWrapper.ptx-page .ptx-currency {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.profileWrapper.ptx-page .ptx-currency-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: cover;
}

.profileWrapper.ptx-page .ptx-date {
    font-size: 12px;
    line-height: 1.3;
    color: var(--mpp-muted);
    white-space: nowrap;
}

.profileWrapper.ptx-page .ptx-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
    background: rgba(176, 106, 214, 0.2);
    color: #d7a6ef;
}

.profileWrapper[data-mpp-theme="light"].ptx-page .ptx-badge {
    color: #8a3cb8;
}

.profileWrapper.ptx-page .ptx-badge-inline {
    flex-shrink: 0;
}

.profileWrapper.ptx-page .ptx-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 12px 16px;
}

.profileWrapper.ptx-page.ptx-is-loading .ptx-list-wrap::before,
.profileWrapper.ptx-page .ptx-is-loading .ptx-list-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: color-mix(in srgb, var(--mpp-bg) 58%, transparent);
    pointer-events: none;
}

.profileWrapper.ptx-page.ptx-is-loading .ptx-list-wrap::after,
.profileWrapper.ptx-page .ptx-is-loading .ptx-list-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    box-sizing: border-box;
    border: 2px solid color-mix(in srgb, var(--mpp-accent) 22%, transparent);
    border-top-color: var(--mpp-accent);
    border-radius: 50%;
    animation: ptx-spin 0.65s linear infinite;
    pointer-events: none;
}

@keyframes ptx-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .profileWrapper.ptx-page .ptx-title {
        font-size: 14px;
    }

    .profileWrapper.ptx-page .ptx-row {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .profileWrapper.ptx-page .ptx-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 28px;
        box-sizing: border-box;
    }

    .profileWrapper.ptx-page .ptx-date {
        white-space: normal;
        text-align: right;
    }
}

.mpp-blocked-shell .mpp-profile-topbar {
    background: var(--mpp-topbar, var(--mpp-bg)) !important;
    color: var(--mpp-text);
}

.mpp-blocked-shell .mpp-profile-topbar-nav__item,
.mpp-blocked-shell .mpp-profile-topbar-nav__item--active,
.mpp-blocked-shell .mpp-profile-topbar-nav__item--active:hover {
    color: var(--mpp-text);
}

.mpp-blocked-shell .mpp-profile-topbar-nav__item:hover,
.mpp-blocked-shell .mpp-profile-topbar-nav__item--active {
    background: var(--mpp-control-active);
}

.mpp-blocked-shell .mpp-blocked-shell__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpp-muted);
}

.mpp-blocked-shell .mpp-blocked-shell__line {
    display: block;
    height: 12px;
    width: 168px;
    margin: 8px 0 0;
    border-radius: 999px;
    background: var(--mpp-surface);
}

.mpp-blocked-shell .mpp-blocked-shell__line--name {
    width: 210px;
    height: 18px;
    margin-top: 0;
}

.mpp-blocked-shell .mpp-blocked-shell__line--short {
    width: 96px;
}

.mpp-blocked-shell .mpp-gallery-preview__title,
.mpp-blocked-shell .profileBlockTitle,
.mpp-blocked-shell .mpp-profile-sidebar__title {
    color: var(--mpp-text);
}

.mpp-blocked-shell .mpp-blocked-shell__cell,
.mpp-blocked-shell .mpp-blocked-shell__post,
.mpp-blocked-shell .mpp-blocked-shell__person,
.mpp-blocked-shell .mpp-blocked-shell__gift {
    background: var(--mpp-surface);
    border: 1px solid var(--mpp-border);
}

.mpp-blocked-shell .mpp-blocked-shell__wall {
    margin-top: 16px;
}

.mpp-blocked-shell .mpp-blocked-shell__post {
    height: 72px;
    margin-top: 10px;
    border-radius: 12px;
    box-sizing: border-box;
}

.mpp-blocked-shell .mpp-blocked-shell__people,
.mpp-blocked-shell .mpp-blocked-shell__gifts {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mpp-blocked-shell .mpp-blocked-shell__person {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-sizing: border-box;
}

.mpp-blocked-shell .mpp-blocked-shell__gifts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mpp-blocked-shell .mpp-blocked-shell__gift {
    aspect-ratio: 1;
    border-radius: 8px;
    box-sizing: border-box;
}

.mpp-style-dock {
    position: fixed;
    z-index: 4000;
    top: auto;
    left: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    width: 320px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 8px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #16151d;
    color: #f4f2f8;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mpp-style-dock[hidden] {
    display: none !important;
}

.mpp-style-dock__body {
    min-height: 0;
    overflow: visible;
}

.mpp-style-dock__jump,
.mpp-style-dock__back {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    height: auto;
    margin-top: 8px;
    padding: 5px 12px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.mpp-style-dock__back {
    background: #ffcd00;
    color: #1a1400;
}

.mpp-style-dock__back:hover {
    background: #ffd84a;
}

.mpp-style-dock__jump {
    background: #2a2838;
    color: #fff;
}

.mpp-style-dock__jump:hover {
    background: #353246;
}

.mpp-style-dock__actions .mpp-style-dock__back,
.mpp-style-dock__actions .mpp-style-dock__reset {
    margin-top: 0;
}

.mpp-style-dock.is-buttons .mpp-style-dock__tools [data-mpp-style-reset],
.mpp-style-dock.is-icons .mpp-style-dock__tools [data-mpp-style-reset] {
    display: none;
}

.mpp-style-dock__actions .mpp-style-dock__jump {
    margin-top: 0;
}

.mpp-style-dock__actions .mpp-style-dock__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    height: auto;
    padding: 5px 12px;
    line-height: 1.2;
}

.mpp-style-dock.is-collapsed {
    width: 36px;
    height: 36px;
    max-height: 36px;
    padding: 0;
}

.mpp-style-dock.is-collapsed .mpp-style-dock__body,
.mpp-style-dock.is-collapsed .mpp-style-dock__head strong,
.mpp-style-dock.is-collapsed .mpp-style-dock__tools {
    display: none;
}

.mpp-style-dock.is-collapsed .mpp-style-dock__head {
    width: 36px;
    height: 36px;
    margin: 0;
    justify-content: center;
}

.mpp-style-dock [hidden] {
    display: none !important;
}

.mpp-style-dock__head,
.mpp-style-dock__row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}

.mpp-style-dock__wall {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
}

.mpp-style-dock__file,
.mpp-style-dock__opacity {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mpp-style-dock__file {
    flex: 0 0 auto;
}

.mpp-style-dock__wall .mpp-style-dock__opacity {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
}

.mpp-style-dock__wall .mpp-style-dock__opacity .mpp-style-dock__lever {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.mpp-style-dock__opacity .mpp-style-dock__lever {
    flex: 0 0 84px;
    width: 84px;
}

.mpp-style-dock__head {
    justify-content: space-between;
}

.mpp-style-dock__head strong {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-style-dock__tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.mpp-style-dock__reset {
    height: 28px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: #2a2838;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
}

.mpp-style-dock__reset:hover {
    background: #353246;
}

.mpp-style-dock__row span,
.mpp-style-dock__file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-style-dock__file-name {
    color: #b7b4c4;
    font-size: 12px;
}

.mpp-style-dock__native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mpp-style-dock__pick,
.mpp-style-dock__clear,
.mpp-style-dock__collapse,
.mpp-style-dock__close {
    border: 0;
    border-radius: 8px;
    background: #2a2838;
    color: #fff;
    cursor: pointer;
}

.mpp-style-dock__pick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font: inherit;
    overflow: hidden;
}

.mpp-style-dock__pick.is-filled,
.mpp-style-dock__pick.is-filled:hover {
    background-color: #2a2838;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.mpp-style-dock__pick.is-filled svg {
    display: none;
}

.mpp-style-dock__pick:hover,
.mpp-style-dock__clear:hover,
.mpp-style-dock__collapse:hover {
    background: #353246;
}

.mpp-style-dock__collapse {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.mpp-style-dock__swatch:hover {
    border-color: #ffcd00;
}

.mpp-style-dock__clear {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.mpp-style-dock__swatch {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background-color: #2a2838;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    cursor: pointer;
}

.mpp-style-dock__swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--mpp-swatch, #000);
}

.mpp-style-dock__swatch--line::after {
    inset: 5px;
    border: 2px solid var(--mpp-swatch, #ffcd00);
    border-radius: 4px;
    background: transparent;
}

.mpp-style-dock__rule {
    height: 1px;
    margin: 4px 0 10px;
    background: rgba(255, 255, 255, 0.14);
}

.mpp-style-dock__group {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.mpp-style-dock__group-title {
    margin: 0 0 6px;
    color: #b7b4c4;
    font-size: 12px;
    font-weight: 700;
}

.mpp-style-dock__group .mpp-style-dock__row:last-child {
    margin-bottom: 0;
}

.mpp-style-dock__pick svg {
    display: block;
}

.mpp-style-dock__lever {
    flex: 0 0 84px;
    width: 84px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.mpp-style-dock__lever::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.mpp-style-dock__lever::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: #ffcd00;
    box-shadow: 0 0 0 2px #16151d;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.mpp-style-dock__lever::-moz-range-track {
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.mpp-style-dock__lever::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #ffcd00;
    cursor: pointer;
}

.mpp-style-dock__close {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.mpp-style-dock__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mpp-style-dock__save {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    margin-top: 0;
    padding: 5px 12px;
    border: 0;
    border-radius: 8px;
    background: #ffcd00;
    color: #1a1400;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-style-dock__save.is-loading,
.mpp-style-dock__save.is-done {
    color: transparent !important;
    pointer-events: none;
}

.mpp-style-dock__save.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(26, 20, 0, 0.35);
    border-top-color: #1a1400;
    border-radius: 50%;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-style-dock__save.is-done::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 14px;
    margin: -10px 0 0 -4px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: #1a1400;
    border-radius: 0;
    animation: none;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.mpp-style-dock__save--admin {
    margin-top: 0;
    border: 1px solid #ffcd00;
    background: transparent;
    color: #ffcd00;
}

.mpp-style-dock__save--admin.is-loading::after {
    border-color: rgba(255, 205, 0, 0.35);
    border-top-color: #ffcd00;
}

.mpp-style-dock__save--admin.is-done::after {
    border-color: #ffcd00;
}

.mpp-style-dock__note {
    margin: 8px 0 0;
    color: #b7b4c4;
    font-size: 12px;
}

.mpp-style-dock__note:empty {
    display: none;
    margin: 0;
}

.mpp-style-offer {
    margin: 0 0 16px;
}

.profileHeader > .leftHeader .profileInfo,
button.profileInfo {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

button.profileInfo.profileInfo--edit {
    cursor: pointer;
}

.profileHeader > .leftHeader .profileInfo__group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profileHeader > .leftHeader .profileInfo__dot {
    display: inline-block;
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    margin: 0 8px;
    border-radius: 50%;
    background: var(--mpp-accent, var(--mainColor, #ffcd00));
    align-self: center;
}

.profileHeader > .leftHeader .profileInfo .profileSexImg,
.profileHeader > .leftHeader .profileInfo .profileSexName,
.profileHeader > .leftHeader .profileInfo .profileSexImgFemale,
.profileHeader > .leftHeader .profileInfo .profileSexImgMale {
    margin-right: 0;
}

.profileSexImg {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    object-fit: contain;
    vertical-align: middle;
}

.profileSexName {
    margin-right: 8px;
}

.mpp-nick-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    margin: 0;
    vertical-align: middle;
    line-height: 0;
}

.mpp-nick-mark__icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpp-nick-mark.mpp-nick-mark--vip {
    width: var(--mpp-vip-mark-w, 25px);
    height: var(--mpp-vip-mark-h, 18px);
    flex-basis: var(--mpp-vip-mark-w, 25px);
}

.mpp-nick-mark.mpp-nick-mark--premium {
    width: var(--mpp-premium-mark-w, 25px);
    height: var(--mpp-premium-mark-h, 18px);
    flex-basis: var(--mpp-premium-mark-w, 25px);
}

.mpp-photo-comments__name.mpp-nick,
.mpp-wall-reply-name.mpp-nick {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    max-width: 100%;
    vertical-align: middle;
}

.mpp-wall-reply-name.mpp-nick,
.mpp-photo-comments__name.mpp-nick {
    justify-content: flex-start;
}

.mpp-nick__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpp-wall-author-name .mpp-nick-mark,
.mpp-friends-drawer__name .mpp-nick-mark,
.mpp-profile-spouse__name .mpp-nick-mark,
.mpp-gifts-drawer__name .mpp-nick-mark,
.mpp-photo-comments__name .mpp-nick-mark,
.mpp-gift-card__name .mpp-nick-mark,
.mpp-wall-reply-name .mpp-nick-mark {
    margin: 0;
    flex: 0 0 auto;
}

.mpp-friends-drawer__name .mpp-nick__text {
    flex: 1 1 auto;
}

.mpp-welcome {
    position: fixed;
    inset: 0;
    z-index: 100080;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    color: var(--mpp-text, #fff);
}

.mpp-welcome[hidden] {
    display: none !important;
}

.mpp-welcome__backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--mpp-bg, #2d2b3a);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mpp-welcome__card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(420px, 42%);
    min-width: 320px;
    height: 100%;
    overflow: hidden;
    padding: 22px 22px 18px;
    border: 0;
    border-right: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    border-radius: 0;
    background: color-mix(in srgb, var(--mpp-bg, #2d2b3a) 62%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
    backdrop-filter: blur(22px) saturate(1.12);
    box-shadow: none;
    box-sizing: border-box;
}

.mpp-welcome__visual {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.mpp-welcome__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.mpp-welcome__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mpp-welcome__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 16px;
}

.mpp-welcome__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0 0 8px;
    padding: 4px 0 0;
}

.mpp-welcome__dots {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(196px, 100%);
    margin: 0;
}

.mpp-welcome__dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 1px;
    background: color-mix(in srgb, var(--mpp-text, #fff) 16%, transparent);
}

.mpp-welcome__dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid color-mix(in srgb, var(--mpp-text, #fff) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--mpp-bg, #2d2b3a) 88%, transparent);
    color: var(--mpp-bg, #2d2b3a);
    box-sizing: border-box;
}

.mpp-welcome__dot-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.mpp-welcome__dot-check svg {
    width: 10px;
    height: 10px;
}

.mpp-welcome__dot.is-on {
    border-color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 16%, transparent);
    box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--mpp-bg, #2d2b3a) 70%, transparent),
        inset 0 0 0 9px var(--mpp-accent, #ffcd00);
}

.mpp-welcome__dot.is-done {
    border-color: var(--mpp-accent, #ffcd00);
    background: var(--mpp-accent, #ffcd00);
    color: var(--mpp-bg, #2d2b3a);
}

.mpp-welcome__dot.is-done .mpp-welcome__dot-check {
    opacity: 1;
}

.mpp-welcome__dot.is-on.is-done {
    box-shadow: none;
}

.mpp-welcome__top .mpp-welcome__skip {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: auto;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mpp-muted, #a9a9a9);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.mpp-welcome__top .mpp-welcome__skip:hover {
    color: var(--mpp-text, #fff);
}

.mpp-welcome__top .mpp-welcome__skip[hidden] {
    display: none;
}

.mpp-welcome__panel[hidden] {
    display: none !important;
}

.mpp-welcome__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 16%, transparent);
    color: var(--mpp-accent, #ffcd00);
}

.mpp-welcome__icon svg.mpp-icon {
    width: 28px;
    height: 28px;
}

.mpp-welcome__title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
}

.mpp-welcome__lead,
.mpp-welcome__meter,
.mpp-welcome__error {
    margin: 0 0 16px;
    text-align: center;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 14px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
}

.mpp-welcome__error {
    color: #ff8b8b;
}

.mpp-welcome__error[hidden] {
    display: none !important;
}

.mpp-welcome__form,
.mpp-welcome__look {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 8px;
}

.mpp-welcome__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--mpp-text, #fff);
    font-size: 13px;
}

.mpp-welcome__field .mpp-place,
.mpp-welcome__field .mpp-select {
    width: 100%;
}

.mpp-welcome__look {
    gap: 12px;
}

.mpp-welcome__avatar,
.mpp-welcome__cover-pick,
.mpp-welcome__shot,
.mpp-welcome__attach {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px dashed var(--mpp-line, var(--mpp-border, #49475b));
    border-radius: 14px;
    background: var(--mpp-bg, #2d2b3a);
    color: var(--mpp-text, #fff);
    cursor: pointer;
    box-sizing: border-box;
    font: inherit;
    text-align: center;
}

.mpp-welcome__shot,
.mpp-welcome__attach {
    flex-direction: row;
    min-height: 72px;
}

.mpp-welcome__look-label {
    display: block;
    width: 100%;
    color: var(--mpp-text, #fff);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    word-break: normal;
}

.mpp-welcome__avatar-pic,
.mpp-welcome__avatar img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-welcome__avatar-pic {
    position: relative;
    overflow: hidden;
}

.mpp-welcome__avatar.is-loading .mpp-welcome__avatar-pic::before,
.mpp-welcome__cover-pick.is-loading .mpp-welcome__cover-frame::before,
.mpp-welcome__avatar.is-done .mpp-welcome__avatar-pic::before,
.mpp-welcome__cover-pick.is-done .mpp-welcome__cover-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 18, 0.42);
}

.mpp-welcome__avatar.is-loading .mpp-welcome__avatar-pic::after,
.mpp-welcome__cover-pick.is-loading .mpp-welcome__cover-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-welcome__avatar.is-done .mpp-welcome__avatar-pic::after,
.mpp-welcome__cover-pick.is-done .mpp-welcome__cover-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 18px;
    margin: -12px 0 0 -5px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: var(--mpp-accent, #ffcd00);
    transform: rotate(45deg);
    box-sizing: border-box;
}

.mpp-welcome__attach img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.mpp-welcome__cover-pick {
    padding: 0;
    overflow: hidden;
}

.mpp-welcome__cover-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--mpp-surface, #3d3b4c);
}

.mpp-welcome__cover-frame img,
.mpp-welcome__cover-frame.has-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.mpp-welcome__cover-empty {
    padding: 0 12px;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    line-height: 1.3;
}

.mpp-welcome__cover-pick .mpp-welcome__look-label {
    padding: 10px 12px 12px;
}

.mpp-welcome__cover-pick,
.mpp-welcome__attach {
    position: relative;
}

.mpp-welcome__cover-pick input,
.mpp-welcome__attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mpp-welcome__shots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}

.mpp-welcome__shot {
    position: relative;
    min-height: 64px;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    color: var(--mpp-muted, #a9a9a9);
}

.mpp-welcome__shot.is-filled,
.mpp-welcome__shot.has-image {
    border-style: solid;
    border-color: var(--mpp-accent, #ffcd00);
    background: color-mix(in srgb, var(--mpp-accent, #ffcd00) 12%, var(--mpp-bg, #2d2b3a));
    color: var(--mpp-accent, #ffcd00);
}

.mpp-welcome__shot.is-busy {
    pointer-events: none;
}

.mpp-welcome__shot.has-image .mpp-welcome__shot-mark,
.mpp-welcome__shot.is-filled.has-image .mpp-welcome__shot-mark {
    visibility: hidden;
}

.mpp-welcome__shot-mark {
    position: relative;
    z-index: 1;
    line-height: 0;
}

.mpp-welcome__shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.mpp-welcome__shot.is-busy::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(8, 6, 18, 0.42);
}

.mpp-welcome__shot-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid color-mix(in srgb, var(--mpp-accent, #ffcd00) 35%, transparent);
    border-top-color: var(--mpp-accent, #ffcd00);
    border-radius: 50%;
    visibility: hidden;
}

.mpp-welcome__shot.is-busy .mpp-welcome__shot-spin {
    visibility: visible;
    animation: mpp-control-spin 0.7s linear infinite;
}

.mpp-welcome .mpp-wall-form.mpp-wall-post-form {
    width: 100%;
    margin: 0 0 8px;
}

.mpp-welcome__attach.has-file {
    border-style: solid;
}

.mpp-welcome__footer {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 12px;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
}

.mpp-welcome__hint {
    margin: 0;
    text-align: center;
    color: var(--mpp-muted, #a9a9a9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.mpp-welcome__footer .mpp-welcome__error {
    margin: 0;
}

.mpp-welcome__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
}

.mpp-welcome__actions--single {
    grid-template-columns: 1fr;
}

.mpp-welcome__back,
.mpp-welcome__next {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mpp-welcome__back {
    border: 1px solid var(--mpp-line, var(--mpp-border, #49475b));
    background: transparent;
    color: var(--mpp-text, #fff);
}

.mpp-welcome__next {
    position: relative;
    min-width: 132px;
    border: 1px solid var(--mpp-btn-border, var(--mpp-accent, #ffcd00));
    background: var(--mpp-btn-bg, transparent);
    color: var(--mpp-btn-text, var(--mpp-accent, #ffcd00));
}

.mpp-welcome__next:hover {
    background: var(--mpp-btn-hover-bg, var(--mpp-btn-bg, transparent));
}

.mpp-welcome__next:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.mpp-welcome__next:disabled:hover {
    background: var(--mpp-btn-bg, transparent);
}

html.mpp-scroll-locked .mpp-welcome {
    right: 0;
}

@media (max-width: 720px) {
    .mpp-welcome__card {
        width: 100%;
        min-width: 0;
        border-right: 0;
    }

    .mpp-welcome__visual {
        display: none;
    }
}

