/*
 * Modern responsive shell for the public Meendo pages.
 * Keeps the existing brand assets and legacy navigation links intact.
 */

:root {
    --meendo-ink: #22384a;
    --meendo-muted: #647787;
    --meendo-pink: #ef476f;
    --meendo-pink-dark: #d93661;
    --meendo-sky: #eef9ff;
    --meendo-border: #d8e8f1;
    --meendo-header-height: 76px;
    --meendo-access-panel-height: 92px;
}

/* Use a heart for every positive rating instead of the legacy thumbs-up sprite. */
.ico.i-positive,
.ico.i-positive-sm,
.ico.i-for {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: none !important;
    color: #f23868;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    line-height: 1;
    text-indent: 0;
}

.ico.i-positive::before,
.ico.i-positive-sm::before,
.ico.i-for::before {
    content: "\2665";
    display: block;
    color: #f23868;
    line-height: 1;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 3px 5px rgba(117, 23, 48, 0.32);
}

.ico.i-positive::before {
    font-size: 38px;
}

.ico.i-positive-sm::before {
    font-size: 30px;
}

.ico.i-for::before {
    font-size: 25px;
}

/* Keep the large media view inside the viewport. This also prevents CDN
   placeholders and broken images from being enlarged to the full column. */
body.modern-user-shell .big-pic,
body.guest_img_blur .big-pic {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow: hidden;
}

body.modern-user-shell .big-pic ins,
body.guest_img_blur .big-pic ins {
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

body.modern-user-shell .big-pic .image,
body.guest_img_blur .big-pic .image {
    display: block;
    box-sizing: border-box;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    margin: 0 auto;
    object-fit: contain;
}

body.modern-user-shell .big-pic .image.is-broken,
body.guest_img_blur .big-pic .image.is-broken {
    width: min(100%, 420px) !important;
    max-height: 280px !important;
    object-fit: contain;
    background: #eef3f7;
}

@media (max-width: 900px) {
    body.modern-user-shell .big-pic .image,
    body.guest_img_blur .big-pic .image {
        max-height: calc(100vh - 220px);
        max-height: calc(100dvh - 220px);
    }

    body.modern-user-shell .big-pic .image.is-broken,
    body.guest_img_blur .big-pic .image.is-broken {
        max-height: 220px !important;
    }
}

/* The floating photo pagination must not shorten the metadata separator below it. */
body.modern-user-shell .upload > .alb-info,
body.guest_img_blur .upload > .alb-info {
    box-sizing: border-box;
    clear: both;
    width: 100%;
}

/* Photo/video detail action bar (like/favorite/download/nav). */
body.modern-user-shell .upload > .msg-area,
body.guest_img_blur .upload > .msg-area {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 14px 0 12px;
    padding: 12px 14px;
    overflow: visible;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    position: relative;
}

body.modern-user-shell .upload > .msg-area > .act-area,
body.guest_img_blur .upload > .msg-area > .act-area {
    flex: 0 0 auto;
    float: none;
    margin: 0;
}

body.modern-user-shell .upload > .msg-area .act-area span,
body.guest_img_blur .upload > .msg-area .act-area span,
body.modern-user-shell .upload > .msg-area .act-area > a,
body.guest_img_blur .upload > .msg-area .act-area > a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #edf6fb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

body.modern-user-shell .upload > .msg-area .act-area .like,
body.guest_img_blur .upload > .msg-area .act-area .like,
body.modern-user-shell .upload > .msg-area .act-area.like,
body.guest_img_blur .upload > .msg-area .act-area.like {
    color: #13a900;
}

body.modern-user-shell .upload > .msg-area .act-area .dislike,
body.guest_img_blur .upload > .msg-area .act-area .dislike,
body.modern-user-shell .upload > .msg-area .act-area.dislike,
body.guest_img_blur .upload > .msg-area .act-area.dislike {
    color: #f00;
}

body.modern-user-shell .upload > .msg-area .act-area .like em,
body.guest_img_blur .upload > .msg-area .act-area .like em,
body.modern-user-shell .upload > .msg-area .act-area.like em,
body.guest_img_blur .upload > .msg-area .act-area.like em {
    width: 24px !important;
    height: 24px !important;
    margin: 0 2px 0 0 !important;
}

body.modern-user-shell .upload > .msg-area .act-area em.favorite,
body.guest_img_blur .upload > .msg-area .act-area em.favorite,
body.modern-user-shell .upload > .msg-area .act-area em.rem-favorite,
body.guest_img_blur .upload > .msg-area .act-area em.rem-favorite,
body.modern-user-shell .upload > .msg-area .act-area .savevideo em,
body.guest_img_blur .upload > .msg-area .act-area .savevideo em,
body.modern-user-shell .upload > .msg-area .act-area .fullsize em,
body.guest_img_blur .upload > .msg-area .act-area .fullsize em,
body.modern-user-shell .upload > .msg-area .act-area .abuse em,
body.guest_img_blur .upload > .msg-area .act-area .abuse em {
    margin-top: 0;
    margin-bottom: 0;
}

body.modern-user-shell .upload > .msg-area > .pagination,
body.guest_img_blur .upload > .msg-area > .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 0 auto;
    padding: 0;
    position: static;
    transform: none;
}

body.modern-user-shell .upload > .msg-area .pagination .count,
body.guest_img_blur .upload > .msg-area .pagination .count {
    margin-right: 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f0f5f8;
    color: #526b7b;
    font-size: 13px;
    line-height: 1.3;
}

body.modern-user-shell .upload > .msg-area .pagination .pg-prev a,
body.guest_img_blur .upload > .msg-area .pagination .pg-prev a,
body.modern-user-shell .upload > .msg-area .pagination .pg-next a,
body.guest_img_blur .upload > .msg-area .pagination .pg-next a {
    box-sizing: border-box;
    min-width: 76px;
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 8px;
}

/* Photo/video album action bar: stats + favorites/slideshow. */
body.modern-user-shell .upload .alb-info,
body.guest_img_blur .upload .alb-info {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    min-height: 0;
    margin: 12px 0 14px;
    padding: 12px 14px;
    overflow: visible;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
}

body.modern-user-shell .upload .alb-info .alb-tools,
body.guest_img_blur .upload .alb-info .alb-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    order: 1;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    float: none;
}

body.modern-user-shell .upload .alb-info .alb-tools > div,
body.guest_img_blur .upload .alb-info .alb-tools > div {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    float: none;
    min-height: 36px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f0f5f8;
    color: #526b7b;
    font-size: 14px;
    line-height: 1.3;
}

body.modern-user-shell .upload .alb-info .alb-tools .ico,
body.guest_img_blur .upload .alb-info .alb-tools .ico {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

body.modern-user-shell .upload .alb-info > .act-area,
body.guest_img_blur .upload .alb-info > .act-area {
    order: 2;
    float: none;
    margin: 0;
}

body.modern-user-shell .upload .alb-info > .act-area span,
body.guest_img_blur .upload .alb-info > .act-area span {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #edf6fb;
    color: #267fae;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

body.modern-user-shell .upload .alb-info > .act-area .fullsize,
body.guest_img_blur .upload .alb-info > .act-area .fullsize {
    color: #267fae;
}

body.modern-user-shell .upload .alb-info .alb-txt,
body.guest_img_blur .upload .alb-info .alb-txt {
    order: 3;
    flex: 1 1 100%;
    margin: 0;
    padding-top: 2px;
    color: #6d7f8b;
    font-size: 14px;
    line-height: 1.45;
}

body.modern-user-shell .upload .alb-info .alb-txt p,
body.guest_img_blur .upload .alb-info .alb-txt p {
    margin: 0;
}

/* Mobile messenger: dialog list first, full conversation after selection. */
.mmsg-mobile-list-header,
.mmsg-mobile-chat-header {
    display: none;
}

/* Desktop messenger: conversation fills the box, dialog list is a fixed right column. */
@media (min-width: 901px) {
    body.modern-user-shell .mmsg {
        box-sizing: border-box;
        width: 100%;
        min-height: 480px;
        display: flex;
        align-items: stretch;
    }

    body.modern-user-shell .mmsg::after {
        display: none;
        content: none;
    }

    body.modern-user-shell .mmsg-main {
        width: auto;
        min-width: 0;
        float: none;
        flex: 1 1 auto;
        border-right: 1px solid #e1e8ed;
    }

    body.modern-user-shell .mmsg-side {
        width: 300px;
        float: none;
        flex: 0 0 300px;
        display: flex;
        flex-direction: column;
        background: #fbfcfd;
    }

    body.modern-user-shell .mmsg-mobile-list-header {
        padding: 14px 14px 12px;
        display: block;
        flex: 0 0 auto;
        border-bottom: 1px solid #e1e8ed;
    }

    body.modern-user-shell .mmsg-mobile-list-header h3 {
        margin: 0 0 10px;
        color: #21394b;
        font: 700 16px/1.25 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-mobile-search {
        box-sizing: border-box;
        width: 100%;
        height: 36px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        border: 1px solid #d7e1e7;
        border-radius: 10px;
        background: #fff;
    }

    body.modern-user-shell .mmsg-mobile-search > span {
        box-sizing: border-box;
        width: 12px;
        height: 12px;
        position: relative;
        flex: 0 0 auto;
        border: 2px solid #8a9aa6;
        border-radius: 50%;
    }

    body.modern-user-shell .mmsg-mobile-search > span::after {
        content: "";
        width: 5px;
        height: 2px;
        position: absolute;
        right: -4px;
        bottom: -2px;
        border-radius: 2px;
        background: #8a9aa6;
        transform: rotate(45deg);
    }

    body.modern-user-shell .mmsg-mobile-search input {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 34px;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #20394b;
        font: 400 14px/1.3 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-side .mes-roll {
        min-height: 0;
        flex: 1 1 0;
        overflow: hidden;
    }

    body.modern-user-shell .mmsg-hide {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.modern-user-shell .mmsg-contacts {
        width: 100%;
        min-height: 0;
        margin: 0;
    }

    body.modern-user-shell .mmsg-contacts ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.modern-user-shell .mmsg-contacts li a {
        box-sizing: border-box;
        height: auto;
        min-height: 58px;
        padding: 10px 30px 10px 62px;
        display: block;
        position: relative;
        border-bottom: 1px solid #edf1f4;
        color: #253c4d;
        text-decoration: none;
    }

    body.modern-user-shell .mmsg-contacts li a:hover,
    body.modern-user-shell .mmsg-contacts li a.active {
        background: #eef7fc !important;
    }

    body.modern-user-shell .mmsg-contacts .image {
        width: 38px;
        height: 38px;
        top: 10px;
        left: 12px;
        border-radius: 50%;
        object-fit: cover;
    }

    body.modern-user-shell .mmsg-login {
        margin: 1px 0 4px;
        overflow: hidden;
        color: #20394b;
        font: 700 14px/1.25 Arial, Helvetica, sans-serif;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.modern-user-shell .mmsg-last-msg {
        height: auto;
        overflow: hidden;
        color: #7b8b96;
        font: 400 13px/1.3 Arial, Helvetica, sans-serif;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.modern-user-shell .mmsg-status-online {
        box-sizing: border-box;
        width: 11px;
        height: 11px;
        top: 38px;
        left: 41px;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #35c75a;
    }

    body.modern-user-shell .mmsg-start {
        padding: 130px 40px 40px;
        color: #7b8b96;
        font: 400 15px/1.45 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-start .mmsg-arr {
        margin-top: 6px;
        color: #a9bac6;
        font-size: 32px;
        text-shadow: none;
    }

    body.modern-user-shell .mmsg-top {
        color: #20394b;
        font: 700 14px/1.3 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-msg .ms {
        padding: 7px 12px;
        border-radius: 12px;
        color: #253b4a;
        font: 400 14px/1.4 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-date {
        color: #8a9aa6;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    body.modern-user-shell .mmsg-page-box > .i1 {
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 0 0 14px 14px;
    }

    body.modern-user-shell .mmsg {
        box-sizing: border-box;
        width: 100%;
        min-height: 520px;
        display: block;
        overflow: hidden;
        background: #fff;
    }

    body.modern-user-shell .mmsg::after {
        display: none;
    }

    body.modern-user-shell .mmsg-main,
    body.modern-user-shell .mmsg-side {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin: 0;
        float: none;
        border: 0;
    }

    body.modern-user-shell .mmsg-main {
        min-height: 520px;
        display: none;
        flex-direction: column;
        background: #f7f9fb;
    }

    body.modern-user-shell .mmsg-side {
        min-height: 520px;
        display: block;
        background: #fff;
    }

    body.modern-user-shell .mmsg.is-mobile-chat-open .mmsg-main {
        height: calc(100vh - 190px);
        height: calc(100dvh - 190px);
        display: flex;
    }

    body.modern-user-shell .mmsg.is-mobile-chat-open .mmsg-side {
        display: none;
    }

    body.modern-user-shell .mmsg-mobile-list-header {
        padding: 14px 14px 12px;
        display: block;
        border-bottom: 1px solid #e1e8ed;
        background: #fff;
    }

    body.modern-user-shell .mmsg-mobile-list-header h3 {
        margin: 0 0 12px;
        color: #21394b;
        font: 700 20px/1.25 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-mobile-search {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        gap: 9px;
        border: 1px solid #d7e1e7;
        border-radius: 12px;
        background: #f1f4f6;
    }

    body.modern-user-shell .mmsg-mobile-search > span {
        box-sizing: border-box;
        width: 14px;
        height: 14px;
        position: relative;
        flex: 0 0 auto;
        border: 2px solid #758896;
        border-radius: 50%;
    }

    body.modern-user-shell .mmsg-mobile-search > span::after {
        content: "";
        width: 6px;
        height: 2px;
        position: absolute;
        right: -5px;
        bottom: -2px;
        border-radius: 2px;
        background: #758896;
        transform: rotate(45deg);
    }

    body.modern-user-shell .mmsg-mobile-search input {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 4px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #20394b;
        font: 400 16px/1.3 Arial, Helvetica, sans-serif !important;
    }

    body.modern-user-shell .mmsg-side .mes-roll,
    body.modern-user-shell .mmsg-hide,
    body.modern-user-shell .mmsg-contacts {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        margin: 0;
    }

    body.modern-user-shell .mmsg-hide {
        overflow: visible;
    }

    body.modern-user-shell .mmsg-contacts ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.modern-user-shell .mmsg-contacts li {
        margin: 0;
        border-bottom: 1px solid #edf1f4;
    }

    body.modern-user-shell .mmsg-contacts li a {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 68px;
        padding: 11px 48px 10px 68px;
        display: block;
        position: relative;
        background: #fff;
        color: #253c4d;
        text-decoration: none;
    }

    body.modern-user-shell .mmsg-contacts li a:hover,
    body.modern-user-shell .mmsg-contacts li a:active,
    body.modern-user-shell .mmsg-contacts li a.active {
        background: #eef7fc !important;
    }

    body.modern-user-shell .mmsg-contacts .image {
        width: 46px;
        height: 46px;
        left: 12px;
        top: 11px;
        border-radius: 50%;
        object-fit: cover;
    }

    body.modern-user-shell .mmsg-login {
        margin: 0 0 5px;
        overflow: hidden;
        color: #20394b;
        font: 700 16px/1.2 Arial, Helvetica, sans-serif;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.modern-user-shell .mmsg-last-msg {
        height: auto;
        overflow: hidden;
        color: #7b8b96;
        font: 400 14px/1.25 Arial, Helvetica, sans-serif;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.modern-user-shell .mmsg-status-online {
        width: 10px;
        height: 10px;
        top: 16px;
        right: 17px;
        left: auto;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #35c75a;
    }

    body.modern-user-shell .mmsg-contacts .i-newmsg {
        width: 9px;
        height: 9px;
        top: 43px;
        right: 19px;
        left: auto;
        border-radius: 50%;
        background: #2d8fca !important;
    }

    body.modern-user-shell .mmsg-mobile-chat-header {
        box-sizing: border-box;
        min-height: 58px;
        padding: 7px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
        border-bottom: 1px solid #dce5ea;
        background: #fff;
    }

    body.modern-user-shell .mmsg-mobile-back {
        box-sizing: border-box;
        width: 42px;
        height: 42px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 0;
        border-radius: 50%;
        background: #eef5f9;
        color: #287eae;
        cursor: pointer;
    }

    body.modern-user-shell .mmsg-mobile-back span {
        display: block;
        font: 400 36px/34px Arial, Helvetica, sans-serif;
        transform: translateY(-2px);
    }

    body.modern-user-shell .mmsg-mobile-chat-avatar {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border-radius: 50%;
        object-fit: cover;
    }

    body.modern-user-shell .mmsg-mobile-chat-name {
        min-width: 0;
        overflow: hidden;
        color: #20394b;
        font: 700 17px/1.25 Arial, Helvetica, sans-serif;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.modern-user-shell .mmsg-top-container {
        display: none;
    }

    body.modern-user-shell .mmsg-window-hold {
        min-height: 0;
        height: auto;
        margin: 0;
        flex: 1 1 auto;
        overflow: hidden;
        background: #f7f9fb;
    }

    body.modern-user-shell .mmsg-window-hold .mes-window {
        height: 100%;
        padding: 10px 4px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.modern-user-shell .mmsg-main .mes-cont {
        box-sizing: border-box;
        min-height: 100% !important;
        padding: 0 4px 12px;
    }

    body.modern-user-shell .mmsg-start {
        padding: 120px 28px 40px;
        font-size: 15px;
    }

    body.modern-user-shell .mmsg-msg {
        box-sizing: border-box;
        align-items: flex-end;
    }

    body.modern-user-shell .mmsg-msg .ms {
        box-sizing: border-box;
        max-width: 82%;
        margin: 3px 8px;
        padding: 9px 12px;
        border-radius: 14px 14px 14px 4px;
        background: #fff;
        color: #253b4a;
        font: 400 15px/1.38 Arial, Helvetica, sans-serif;
        box-shadow: 0 1px 3px rgba(30, 55, 70, 0.1);
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .mmsg-msg.mine .ms {
        margin-left: auto;
        border-radius: 14px 14px 4px 14px;
        background: #dff1fb;
    }

    body.modern-user-shell .mmsg-msg .ms img {
        max-width: 100%;
        height: auto;
    }

    body.modern-user-shell .mmsg-date {
        margin: 14px 5px 8px;
        color: #8b99a2;
        font-size: 12px;
    }

    body.modern-user-shell .mmsg-tools {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        flex: 0 0 auto;
        border-top: 1px solid #dce5ea;
        background: #fff;
    }

    body.modern-user-shell .mmsg-tools .mmsg-write {
        margin: 0;
        padding: 8px 10px;
        border-bottom: 0;
    }

    body.modern-user-shell .mmsg-buts {
        min-height: 30px;
        align-items: center !important;
        justify-content: flex-end;
        gap: 3px;
        flex-wrap: wrap;
    }

    body.modern-user-shell .mmsg-lettercount {
        display: none !important;
    }

    body.modern-user-shell .mmsg-compose {
        box-sizing: border-box;
        width: 100%;
        padding: 8px 12px 12px;
    }

    body.modern-user-shell .mmsg-tools textarea,
    body.modern-user-shell .mmsg-tools #message-area.message-area,
    body.modern-user-shell .mmsg-compose #message-area.message-area {
        box-sizing: border-box;
        position: relative;
        width: 100% !important;
        min-height: 72px;
        margin: 8px 0 0;
        padding: 12px 14px !important;
        display: block;
        resize: vertical;
        border: 1px solid #cddbe4;
        border-radius: 12px;
        background: #fff;
        color: #253b4a;
        font: 400 16px/1.35 Arial, Helvetica, sans-serif !important;
        box-shadow: inset 0 1px 2px rgba(37, 59, 74, 0.04);
    }

    body.modern-user-shell .mmsg-tools #message-area.message-area:focus,
    body.modern-user-shell .mmsg-compose #message-area.message-area:focus {
        border-color: #e91e63;
        box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    }

    body.modern-user-shell .mmsg-tools #message-area.message-area:empty:before,
    body.modern-user-shell .mmsg-compose #message-area.message-area:empty:before,
    body.modern-user-shell .mmsg-tools #message-area.message-area.is-empty:before,
    body.modern-user-shell .mmsg-compose #message-area.message-area.is-empty:before {
        content: attr(data-placeholder);
        position: absolute;
        left: 14px;
        top: 12px;
        right: 14px;
        color: #9aa8b3;
        pointer-events: none;
        line-height: 1.35;
    }

    body.modern-user-shell .mmsg-compose-notice {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        width: auto;
        max-width: none;
        min-height: 0;
        height: auto;
        margin: 12px;
        padding: 16px 18px;
        border: 1px solid #e2c48a;
        border-radius: 12px;
        background: #fff8e8;
        color: #6a5324;
        font: 400 14px/1.45 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .mmsg-tools > .mes-spot {
        box-sizing: border-box;
        width: auto;
        max-width: none;
        margin: 0 12px 12px;
        border-top: 12px solid transparent;
        overflow: hidden;
    }

    body.modern-user-shell .mmsg-tools > #limit-reached {
        margin: 12px;
    }

    body.modern-user-shell .mmsg-tools .mes-spot .overflow {
        width: 100%;
        max-width: 100%;
    }
}

/* Breadcrumbs: replace the cramped legacy sprite with a readable separator. */
.box h2.bredcrumbs > span {
    padding-right: 4px;
}

.box h2.bredcrumbs > em {
    min-width: 0;
    margin: 0;
    padding: 10px 4px 10px 0;
    display: inline-flex;
    align-items: center;
    float: none !important;
    background: none !important;
    color: #fff;
    font: 600 16px/1.4 Arial, Helvetica, sans-serif;
    font-style: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.box h2.bredcrumbs > em:not(:empty)::before {
    content: "\203A";
    width: auto;
    height: auto;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 10px;
    align-self: center;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    font: 700 22px/1 Arial, Helvetica, sans-serif;
    text-shadow: none;
    transform: none;
}

.box h2.bredcrumbs > em:empty {
    display: none;
}

/* 18+ confirmation: keep the decision visible while long legal text scrolls inside. */
html:has(.age-confirm-modal),
body:has(.age-confirm-modal) {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.age-confirm-scroll-locked {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.age-confirm-scroll-locked {
    position: fixed !important;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

body.age-confirm-scroll-locked .age-confirm-modal,
body.age-confirm-scroll-locked .age-confirm-modal .modal-body {
    touch-action: pan-y;
}

/* Cookie consent: override the legacy mobile rule that scales text to 36-42px. */
.cookies-panel-gdpr.is-visible,
.cookies-panel-gdpr-mobile.is-visible {
    box-sizing: border-box;
    right: auto;
    bottom: 14px;
    left: 50%;
    width: min(680px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 0;
    padding: 18px 20px;
    overflow-y: auto;
    transform: translateX(-50%);
    border: 1px solid #d9e5ec;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 1;
    box-shadow: 0 12px 38px rgba(25, 45, 58, 0.28);
    color: #263b49;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}

.cookies-panel-gdpr.is-visible p,
.cookies-panel-gdpr-mobile.is-visible p {
    max-width: none;
    margin: 0 0 14px;
    color: #263b49;
    font: 400 14px/1.45 Arial, Helvetica, sans-serif !important;
    text-align: left;
}

.cookies-panel-gdpr.is-visible a,
.cookies-panel-gdpr-mobile.is-visible a {
    color: #2e7db8;
    font: inherit !important;
    font-weight: 600 !important;
    line-height: inherit !important;
}

.cookies-panel-gdpr.is-visible button,
.cookies-panel-gdpr-mobile.is-visible button {
    box-sizing: border-box;
    width: auto;
    min-width: 160px;
    min-height: 44px;
    max-width: 100%;
    margin: 0 0 0 auto;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: #3588bf;
    color: #fff;
    font: 700 16px/1.3 Arial, Helvetica, sans-serif !important;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(53, 136, 191, 0.24);
}

@media (max-width: 600px) {
    .cookies-panel-gdpr.is-visible,
    .cookies-panel-gdpr-mobile.is-visible {
        bottom: 8px;
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 16px;
        border-radius: 14px;
    }

    .cookies-panel-gdpr.is-visible button,
    .cookies-panel-gdpr-mobile.is-visible button {
        width: 100%;
        margin: 0;
    }
}

.age-confirm-modal {
    box-sizing: border-box;
    padding: 16px;
    overflow: hidden !important;
    overscroll-behavior: contain;
}

.age-confirm-modal .modal-dialog {
    width: min(620px, 100%) !important;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto !important;
}

.age-confirm-modal .modal-content {
    box-sizing: border-box;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.age-confirm-modal .modal-header {
    padding: 18px 28px 20px;
    flex: 0 0 auto;
}

.age-confirm-modal .modal-header .m-logo {
    width: 112px;
    height: 56px;
    margin: 0 auto 10px;
}

.age-confirm-modal .modal-title {
    color: #171717;
    font: 700 24px/1.2 Arial, Helvetica, sans-serif !important;
    text-align: center;
}

.age-confirm-modal .modal-body {
    min-height: 0;
    padding: 20px 26px;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.age-confirm-modal .modal-body p {
    margin: 0 0 14px;
    color: #202020;
    font: 400 15px/1.4 Arial, Helvetica, sans-serif !important;
}

.age-confirm-modal .modal-body p:last-child {
    margin-bottom: 0;
}

.age-confirm-modal .modal-footer {
    padding: 14px 20px 18px;
    flex: 0 0 auto;
}

.age-confirm-modal .age-confirm-actions {
    margin: 0;
    display: -webkit-flex;
    display: flex;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    gap: 12px;
    list-style: none;
}

.age-confirm-modal .age-confirm-actions li {
    display: block;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    color: #566671;
    font: 600 14px/1.2 Arial, Helvetica, sans-serif !important;
    text-align: center;
}

.age-confirm-modal .age-confirm-actions .age-confirm-separator {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-right: 12px;
    margin-left: 12px;
}

@supports (display: grid) {
    .age-confirm-modal .age-confirm-actions .age-confirm-separator {
        margin-right: 0;
        margin-left: 0;
    }
}

.age-confirm-modal .age-confirm-actions .btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font: 700 16px/1.3 Arial, Helvetica, sans-serif !important;
    text-decoration: none;
}

@media (max-width: 600px) {
    .age-confirm-modal {
        padding: 10px;
    }

    .age-confirm-modal .modal-dialog,
    .age-confirm-modal .modal-content {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .age-confirm-modal .modal-header {
        padding: 12px 18px 14px;
    }

    .age-confirm-modal .modal-header .m-logo {
        width: 96px;
        height: 48px;
        margin-bottom: 6px;
    }

    .age-confirm-modal .modal-title {
        font-size: 20px !important;
    }

    .age-confirm-modal .modal-body {
        padding: 16px 18px;
    }

    .age-confirm-modal .modal-body p {
        margin-bottom: 12px;
        font-size: 14px !important;
        line-height: 1.35 !important;
    }

    .age-confirm-modal .modal-footer {
        padding: 12px 14px 14px;
    }

    .age-confirm-modal .age-confirm-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .age-confirm-modal .age-confirm-actions > li:first-child {
        margin-right: 4px;
    }

    .age-confirm-modal .age-confirm-actions > li:last-child {
        margin-left: 4px;
    }

    @supports (display: grid) {
        .age-confirm-modal .age-confirm-actions > li:first-child,
        .age-confirm-modal .age-confirm-actions > li:last-child {
            margin-right: 0;
            margin-left: 0;
        }
    }

    .age-confirm-modal .age-confirm-separator {
        display: none !important;
    }

    .age-confirm-modal .age-confirm-actions .btn {
        min-height: 44px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 15px !important;
        white-space: normal;
    }
}

/* VIP page: replace the fixed 740px comparison table with a stable mobile grid. */
@media (max-width: 700px) {
    body.modern-user-shell .vipbox .upload {
        min-width: 0;
        overflow: hidden;
    }

    body.modern-user-shell .vipbox .nominal {
        box-sizing: border-box;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 0 6px;
    }

    body.modern-user-shell .vipbox .prolong {
        box-sizing: border-box;
        padding: 8px 16px 14px;
    }

    body.modern-user-shell .vipbox .prolong label {
        display: inline-flex;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        font-size: 14px;
        line-height: 1.4;
    }

    body.modern-user-shell .vipbox .prolong input {
        width: 18px;
        height: 18px;
        margin-top: 1px;
        flex: 0 0 auto;
    }

    body.modern-user-shell .vipbox .advantages {
        box-sizing: border-box;
        width: 100%;
        padding: 0 12px;
    }

    body.modern-user-shell .vipbox .advantages > h3 {
        margin: 16px 0 12px;
        color: #445b6b;
        font-size: 18px;
        line-height: 1.3;
        text-align: left;
    }

    body.modern-user-shell .vipbox .tablediv {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 24px;
        padding-top: 58px;
        overflow: hidden;
        border-color: #b7d1e1;
        border-radius: 10px;
        background: #fff;
    }

    body.modern-user-shell .vipbox .thead {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 58px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-bottom: 1px solid #b7d1e1;
        background: #f5f9fc;
    }

    body.modern-user-shell .vipbox .thead .th,
    body.modern-user-shell .vipbox .thead .th:first-child {
        box-sizing: border-box;
        width: auto;
        height: 58px;
        margin: 0;
        padding: 8px 6px;
        float: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #667985;
        font-size: 12px;
        line-height: 1.2;
    }

    body.modern-user-shell .vipbox .thead .th + .th {
        border-left: 1px solid #b7d1e1;
    }

    body.modern-user-shell .vipbox .thead .th strong {
        margin-bottom: 2px;
        color: #5f7280;
        font-size: 15px;
        line-height: 1.1;
    }

    body.modern-user-shell .vipbox .thead .th:first-child strong {
        color: #f08a00;
    }

    body.modern-user-shell .vipbox .tablediv > .tr {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        border-top: 1px solid #d8e4eb;
    }

    body.modern-user-shell .vipbox .tablediv > .tr:first-child {
        border-top: 0;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .td {
        box-sizing: border-box;
        width: auto;
        height: auto;
        min-height: 44px;
        padding: 11px 9px;
        float: none;
        font-size: 13px;
        line-height: 1.35;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .firstcell {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 6px;
        border-bottom: 1px solid #d8e4eb;
        background: #f7fafc;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .vipcell,
    body.modern-user-shell .vipbox .tablediv > .tr > .notvipcell {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 0;
        border-bottom: 0;
        text-align: center;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .vipcell {
        border-right: 1px solid #b7d1e1;
        border-left: 0;
        background: #edf6fc;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .notvipcell {
        background: #fff;
    }

    body.modern-user-shell .vipbox .tablediv > .tr.alt > .firstcell {
        background: #eaf3f9;
    }

    body.modern-user-shell .vipbox .tablediv > .tr.alt > .vipcell {
        background: #e2f0f9;
    }

    body.modern-user-shell .vipbox .tbody {
        display: none;
    }
}

/* VIP page: plan cards for all widths; desktop comparison table follows the box width. */
body.modern-user-shell .vipbox .nominal {
        box-sizing: border-box;
        max-width: 780px;
        margin: 6px auto 4px;
        padding: 12px 16px 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        overflow: visible;
    }

    body.modern-user-shell .vipbox .nominal a {
        display: block;
        text-decoration: none;
    }

    body.modern-user-shell .vipbox .nominal ins,
    body.modern-user-shell .vipbox .nominal a:hover ins {
        box-sizing: border-box;
        width: auto;
        height: 100%;
        margin: 0;
        padding: 18px 12px 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        position: relative;
        overflow: visible;
        border: 1px solid #d6e4ee;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(30, 70, 100, 0.08);
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    body.modern-user-shell .vipbox .nominal a:hover ins {
        border-color: #8fc0dc;
        box-shadow: 0 8px 20px rgba(30, 70, 100, 0.14);
        transform: translateY(-2px);
    }

    body.modern-user-shell .vipbox .nominal ins.best,
    body.modern-user-shell .vipbox .nominal a:hover ins.best {
        border-color: #f5b300;
        background: #fffaf0;
    }

    body.modern-user-shell .vipbox .nominal ins.best::before {
        content: "BEST";
        position: absolute;
        top: -10px;
        right: 12px;
        padding: 3px 9px;
        border-radius: 999px;
        background: #e53935;
        color: #fff;
        font: 700 11px/1.2 Arial, Helvetica, sans-serif;
        letter-spacing: 0.5px;
    }

    body.modern-user-shell .vipbox .nominal span {
        width: auto;
        position: static;
    }

    body.modern-user-shell .vipbox .nominal .creds {
        color: #5f7280;
        font: 400 13px/1.2 Arial, Helvetica, sans-serif;
        text-shadow: none;
    }

    body.modern-user-shell .vipbox .nominal .creds strong {
        color: #1f5f8f;
        font: 700 32px/1.1 Arial, Helvetica, sans-serif;
        text-shadow: none;
    }

    body.modern-user-shell .vipbox .nominal .money {
        color: #7b8b96;
        font: 400 13px/1.3 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .nominal .money strong {
        color: #2bac0d;
        font: 700 18px/1.2 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .nominal .discount {
        min-height: 18px;
        color: #253b4a;
        font: 400 13px/1.35 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .nominal .buy {
        box-sizing: border-box;
        width: 100%;
        margin-top: auto;
        padding: 9px 6px;
        border: 1px solid #c8dce8;
        border-radius: 9px;
        background: #f3f8fc;
        color: #23415a;
        font: 700 14px/1.2 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .nominal .buy.s_button_mod {
        border-color: #e0a400;
        background: linear-gradient(180deg, #ffd54a 0%, #f5b300 100%);
        color: #401b00;
    }

    body.modern-user-shell .vipbox .nominal a:hover .buy {
        text-decoration: none;
        filter: brightness(0.96);
    }

    body.modern-user-shell .vipbox .prolong {
        margin: 0;
        padding: 14px 16px 4px;
    }

    body.modern-user-shell .vipbox .prolong label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #4a5d6b;
        font: 400 14px/1.4 Arial, Helvetica, sans-serif;
        cursor: pointer;
    }

    body.modern-user-shell .vipbox .prolong label .grey {
        color: inherit;
    }

    body.modern-user-shell .vipbox .prolong input {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
    }

    body.modern-user-shell .vipbox .vip-bot {
        height: auto;
        padding: 18px 16px;
        border-radius: 0 0 12px 12px;
        background: linear-gradient(135deg, #5aa8dc 0%, #2f7ab3 100%);
        color: #fff;
        font: 700 16px/1.35 Arial, Helvetica, sans-serif;
        text-shadow: none;
    }

@media (max-width: 700px) {
    body.modern-user-shell .vipbox .nominal {
        margin: 0 auto 4px;
        padding: 14px 12px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.modern-user-shell .vipbox .nominal ins,
    body.modern-user-shell .vipbox .nominal a:hover ins {
        padding: 16px 10px 12px;
    }

    body.modern-user-shell .vipbox .nominal a:hover ins {
        transform: none;
    }

    body.modern-user-shell .vipbox .nominal .creds strong {
        font-size: 28px;
    }

    body.modern-user-shell .vipbox .nominal .buy {
        padding: 11px 6px;
        font-size: 15px;
    }

    body.modern-user-shell .vipbox .prolong {
        padding: 14px 16px 6px;
    }

    body.modern-user-shell .vipbox .prolong label {
        align-items: flex-start;
        text-align: left;
    }

    body.modern-user-shell .vipbox .prolong input {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    body.modern-user-shell .vipbox .vip-bot {
        font-size: 15px;
    }
}

@media (min-width: 701px) {
    body.modern-user-shell .vipbox .advantages {
        box-sizing: border-box;
        padding: 0 16px;
    }

    body.modern-user-shell .vipbox .advantages > h3 {
        margin: 22px 0 12px;
        color: #21394b;
        font: 700 18px/1.3 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .tablediv {
        box-sizing: border-box;
        margin: 0 0 28px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #d6e4ee;
        border-radius: 12px;
        background: #fff;
    }

    body.modern-user-shell .vipbox .thead,
    body.modern-user-shell .vipbox .tablediv > .tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 170px 170px;
    }

    body.modern-user-shell .vipbox .thead {
        order: -1;
        position: static;
        border-bottom: 1px solid #d6e4ee;
        background: #f5f9fc;
    }

    body.modern-user-shell .vipbox .thead::before {
        content: "";
    }

    body.modern-user-shell .vipbox .thead .th,
    body.modern-user-shell .vipbox .thead .th:first-child {
        box-sizing: border-box;
        width: auto;
        height: auto;
        padding: 10px 6px;
        float: none;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #7b8b96;
        font: 400 12px/1.3 Arial, Helvetica, sans-serif;
        text-align: center;
    }

    body.modern-user-shell .vipbox .thead .th:first-child {
        border-right: 1px solid #d6e4ee;
        border-left: 1px solid #d6e4ee;
        background: #fff4e0;
    }

    body.modern-user-shell .vipbox .thead .th strong {
        color: #5f7280;
        font: 700 16px/1.2 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .thead .th:first-child strong {
        color: #f08a00;
    }

    body.modern-user-shell .vipbox .tablediv > .tr {
        width: auto;
        position: relative;
        overflow: visible;
        border-top: 1px solid #edf1f4;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > a[name] {
        position: absolute;
        top: 0;
        left: 0;
    }

    body.modern-user-shell .vipbox .tablediv > .tr:first-child {
        border-top: 0;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .td {
        box-sizing: border-box;
        width: auto;
        height: auto;
        min-height: 44px;
        padding: 11px 14px;
        float: none;
        display: flex;
        align-items: center;
        gap: 6px;
        color: #253b4a;
        font: 400 14px/1.4 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .vipcell,
    body.modern-user-shell .vipbox .tablediv > .tr > .notvipcell {
        padding: 11px 6px;
        justify-content: center;
        text-align: center;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .td,
    body.modern-user-shell .vipbox .tablediv > .tr.alt > .td {
        background: #fff;
    }

    body.modern-user-shell .vipbox .tablediv > .tr.alt > .td {
        background: #f7fafc;
    }

    body.modern-user-shell .vipbox .tablediv > .tr > .vipcell {
        border-right: 1px solid #d6e4ee;
        border-left: 1px solid #d6e4ee;
        background: #fffaf0;
    }

    body.modern-user-shell .vipbox .tablediv > .tr.alt > .vipcell {
        background: #fff4e0;
    }

    body.modern-user-shell .vipbox .tbody {
        display: none;
    }
}

/* Wallet operations history: table on desktop, stacked cards on phones. */
body.modern-user-shell table.wallet.wallet-history {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #d6e4ee;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

body.modern-user-shell .wallet-history th,
body.modern-user-shell .wallet-history th.cashcol,
body.modern-user-shell .wallet-history th.desccol {
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid #d6e4ee;
    background: #f5f9fc;
    color: #7b8b96;
    font: 700 12px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0.4px;
    text-align: left;
    text-transform: uppercase;
}

body.modern-user-shell .wallet-history th.cashcol {
    text-align: right;
}

body.modern-user-shell .wallet-history td,
body.modern-user-shell .wallet-history td.cashcol,
body.modern-user-shell .wallet-history td.desccol {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid #edf1f4;
    background: #fff;
    color: #253b4a;
    font: 400 14px/1.4 Arial, Helvetica, sans-serif;
    vertical-align: middle;
}

body.modern-user-shell .wallet-history .wallet-history-head + tr td {
    border-top: 0;
}

body.modern-user-shell .wallet-history tr:hover td {
    background: #f7fafc;
}

body.modern-user-shell .wallet-history td.datecol {
    width: 110px;
    color: #7b8b96;
    font-size: 13px;
    white-space: nowrap;
}

body.modern-user-shell .wallet-history td.cashcol {
    width: 120px;
    text-align: right;
    white-space: nowrap;
}

body.modern-user-shell .wallet-history .cashcol strong {
    box-sizing: border-box;
    min-width: 64px;
    padding: 4px 10px;
    display: inline-block;
    border-radius: 999px;
    font: 700 14px/1.3 Arial, Helvetica, sans-serif;
    text-align: center;
}

body.modern-user-shell .wallet-history .cashcol strong.plus {
    background: #e8f7e4;
    color: #23960b;
}

body.modern-user-shell .wallet-history .cashcol strong.minus {
    background: #fdecec;
    color: #d93025;
}

@media (max-width: 700px) {
    body.modern-user-shell table.wallet.wallet-history,
    body.modern-user-shell .wallet-history tbody {
        display: block;
    }

    body.modern-user-shell .wallet-history .wallet-history-head {
        display: none;
    }

    body.modern-user-shell .wallet-history tr {
        padding: 12px 14px;
        display: grid;
        grid-template-areas:
            "desc cash"
            "date cash";
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        row-gap: 3px;
        align-items: center;
        border-top: 1px solid #edf1f4;
    }

    body.modern-user-shell .wallet-history .wallet-history-head + tr {
        border-top: 0;
    }

    body.modern-user-shell .wallet-history td,
    body.modern-user-shell .wallet-history td.cashcol,
    body.modern-user-shell .wallet-history td.desccol,
    body.modern-user-shell .wallet-history tr:hover td {
        width: auto;
        padding: 0;
        display: block;
        border: 0;
        background: transparent;
    }

    body.modern-user-shell .wallet-history td.desccol {
        grid-area: desc;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .wallet-history td.datecol {
        grid-area: date;
        font-size: 12px;
    }

    body.modern-user-shell .wallet-history td.cashcol {
        grid-area: cash;
    }
}

/* Desktop /search/: keep labels aligned, but keep the card compact. */
@media (min-width: 701px) {
    .modern-search-page:not(.modern-search-page-compact).modern-user-search-card > h2 {
        min-height: 42px;
    }

    .modern-search-page:not(.modern-search-page-compact).modern-user-search-card > h2 span {
        padding: 8px 16px;
        font-size: 16px;
    }

    .modern-search-page:not(.modern-search-page-compact).modern-user-search-card > h2 em {
        padding: 8px 16px 8px 0;
        font-size: 13px;
    }

    .modern-search-page:not(.modern-search-page-compact).modern-user-search-card .user-search-inner {
        padding: 12px 14px !important;
    }

    .modern-search-page:not(.modern-search-page-compact).modern-user-search-card .user-search-inner form {
        gap: 8px !important;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-primary-fields {
        grid-template-columns: minmax(180px, 1fr) 148px 148px;
        align-items: start;
        justify-content: start;
        gap: 10px 12px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-age-fields {
        display: contents;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-gender-field,
    .modern-search-page:not(.modern-search-page-compact) .search-age-fields > .search-field,
    .modern-search-page:not(.modern-search-page-compact) .search-location-grid > .search-field {
        display: grid;
        grid-template-rows: 18px 34px;
        align-items: start;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-field > label,
    .modern-search-page:not(.modern-search-page-compact) .search-field > span:not(.modern-mobile-select-shell) {
        box-sizing: border-box;
        height: 18px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        font-size: 12px;
        line-height: 18px !important;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-field > .modern-mobile-select-shell {
        box-sizing: border-box;
        width: 100%;
        height: 34px;
        margin: 0;
        padding: 0;
        display: block;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-section-title,
    .modern-search-page:not(.modern-search-page-compact) .search-features legend {
        height: auto;
        margin: 0 0 4px !important;
        font-size: 12px;
        line-height: 16px !important;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-field select,
    .modern-search-page:not(.modern-search-page-compact) .search-field input.text {
        box-sizing: border-box;
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        border-radius: 8px;
        font-size: 14px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-feature-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(34px, auto);
        align-items: stretch;
        gap: 8px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-feature-options > label {
        box-sizing: border-box;
        height: 100%;
        min-height: 34px;
        margin: 0 !important;
        padding: 4px 8px;
        gap: 6px;
        border-radius: 8px;
        font-size: 13px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-feature-options input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-location-grid {
        align-items: start;
        gap: 10px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap {
        gap: 8px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .modern-search-submit,
    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .searchlink {
        box-sizing: border-box;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        align-items: center;
        border-radius: 8px;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .modern-search-submit {
        min-width: 112px !important;
        box-shadow: 0 4px 10px rgba(218, 145, 17, 0.18) !important;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .modern-search-submit span {
        padding: 0 14px !important;
        font-size: 14px !important;
    }

    .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .searchlink {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Own photo albums: modern management cards without changing legacy actions. */
body.modern-user-shell .modern-photo-manager {
    --photo-manager-blue: #3b9dce;
    --photo-manager-blue-dark: #247eae;
    --photo-manager-surface: #f4f8fc;
    --photo-manager-border: #d7e5ee;
    box-sizing: border-box;
    padding: 14px 16px 22px;
    color: var(--meendo-ink);
}

body.modern-user-shell .modern-photo-manager > .profhd {
    box-sizing: border-box;
    width: 100%;
    min-height: 68px;
    margin: 0 0 12px;
    padding: 12px 14px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: visible;
    border: 1px solid var(--photo-manager-border);
    border-left: 5px solid var(--photo-manager-blue);
    border-radius: 14px;
    background: var(--photo-manager-surface);
    box-shadow: 0 5px 15px rgba(34, 76, 101, 0.08);
}

body.modern-user-shell .photo-manager-shell > .i1 > .up-tabs {
    margin-bottom: 8px;
    border-bottom: 0;
}

body.modern-user-shell .modern-photo-manager > .profhd::before {
    display: none;
}

body.modern-user-shell .modern-photo-manager > .profhd h3 {
    min-width: 0;
    margin: 0;
    float: none;
    color: #23394b;
    font: 700 21px/1.25 Arial, Helvetica, sans-serif;
    overflow-wrap: anywhere;
}

body.modern-user-shell .modern-photo-manager > .profhd h3 span {
    margin-left: 8px;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 999px;
    background: #d9effb;
    color: #237daf;
    font-size: 16px;
    line-height: 1;
}

body.modern-user-shell .modern-photo-manager > .profhd ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    float: none;
    background: none;
}

body.modern-user-shell .modern-photo-manager > .profhd li {
    margin: 0;
    padding: 0;
    float: none;
    background: none;
}

body.modern-user-shell .modern-photo-manager > .profhd a,
body.modern-user-shell .modern-photo-manager > .profhd > a {
    box-sizing: border-box;
    min-height: 38px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e5ee;
    border-radius: 10px;
    background: #e8f2fa;
    color: #247ead;
    font: 700 14px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(41, 100, 135, 0.08);
}

body.modern-user-shell .modern-photo-manager > .profhd a:hover {
    border-color: #a9cfe2;
    background: #fff;
    color: #176e9d;
}

body.modern-user-shell .modern-photo-manager > .alb-info {
    box-sizing: border-box;
    width: 100%;
    min-height: 58px;
    margin: 0 0 14px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: max-content minmax(120px, 1fr) max-content;
    align-items: center;
    gap: 12px;
    overflow: visible;
    border: 1px solid var(--photo-manager-border);
    border-radius: 12px;
    background: #fff;
}

body.modern-user-shell .modern-photo-manager .alb-tools {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

body.modern-user-shell .modern-photo-manager .alb-tools > div {
    box-sizing: border-box;
    min-height: 40px;
    margin: 0;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    float: none;
    border-radius: 8px;
    background: #f0f5f8;
    color: #526b7b;
    line-height: 20px;
}

body.modern-user-shell .modern-photo-manager .alb-tools .ico {
    flex: 0 0 auto;
}

body.modern-user-shell .modern-photo-manager .alb-txt {
    grid-column: 2;
    grid-row: 1;
    min-width: 140px;
    min-height: 40px;
    display: flex;
    align-items: center;
    color: #6d7f8b;
}

body.modern-user-shell .modern-photo-manager .alb-txt p {
    margin: 0;
}

body.modern-user-shell .modern-photo-manager .alb-info .act-area {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    float: none;
}

body.modern-user-shell .modern-photo-manager .alb-info .fullsize {
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #edf6fb;
    color: #267fae;
    font-weight: 700;
}

body.modern-user-shell .modern-photo-manager > .per-photos.wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 14px;
    padding: 2px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    align-items: start;
    gap: 14px;
    overflow: visible;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px;
    float: none;
    position: relative;
    border: 1px solid var(--photo-manager-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(28, 72, 98, 0.09);
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item.checked {
    padding: 8px;
    border: 2px solid #f2b400;
    background: #fffaf0;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > .title {
    width: 100%;
    height: 28px;
    margin: 0 0 7px;
    display: flex;
    align-items: center;
    overflow: hidden;
    line-height: 28px;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > .title label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #314a5c;
    font-weight: 600;
    cursor: pointer;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > .title input,
body.modern-user-shell .modern-photo-manager .album-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--photo-manager-blue-dark);
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > .title span {
    width: auto;
    min-width: 0;
    margin: 0;
    float: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item > a > .image {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    border: 0;
    border-radius: 10px;
}

body.modern-user-shell .modern-photo-manager > .per-photos > .item:hover .overlay {
    left: 50% !important;
    top: calc(100% + 7px) !important;
    z-index: 190;
    max-width: min(260px, calc(100vw - 24px));
    transform: translateX(-50%);
}

body.modern-user-shell .modern-photo-manager > .album-select {
    box-sizing: border-box;
    width: 100%;
    min-height: 54px;
    margin: 0 0 18px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
    border: 1px solid var(--photo-manager-border);
    border-radius: 12px;
    background: #f7fafc;
}

body.modern-user-shell .modern-photo-manager .album-select .checkall {
    padding: 0 14px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    float: none;
    font-weight: 600;
}

body.modern-user-shell .modern-photo-manager .move-remove {
    padding: 0 0 0 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    float: none;
    border-left-color: #cfdee7;
}

body.modern-user-shell .modern-photo-manager .move-remove strong {
    padding: 0;
    float: none;
}

body.modern-user-shell .modern-photo-manager .move-remove strong a {
    min-height: 34px;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: #e8f2fa;
    color: #247ead;
    text-decoration: none;
}

body.modern-user-shell .modern-photo-manager .move-remove strong:last-child a {
    background: #fff0f2;
    color: #ca3d59;
}

body.modern-user-shell .modern-photo-manager .move-remove select {
    box-sizing: border-box;
    width: auto;
    min-width: 155px;
    min-height: 34px;
    margin: 0;
    padding: 6px 28px 6px 9px;
    float: none;
    border: 1px solid #c8dce8;
    border-radius: 8px;
    background-color: #fff;
}

body.modern-user-shell .modern-photo-manager > .favs.wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 2px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
    gap: 14px;
    overflow: visible;
}

body.modern-user-shell .modern-photo-manager > .favs > .fav-photoalbum {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 8px;
    aspect-ratio: 1;
    float: none;
    position: relative;
    border: 1px solid var(--photo-manager-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(28, 72, 98, 0.09);
}

body.modern-user-shell .modern-photo-manager > .favs > .fav-photoalbum > a,
body.modern-user-shell .modern-photo-manager > .favs > .fav-photoalbum > a > img {
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    display: block;
}

body.modern-user-shell .modern-photo-manager > .favs > .fav-photoalbum > a > img {
    padding: 0;
    object-fit: cover;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}

body.modern-user-shell .modern-photo-manager > .favs > .fav-photoalbum:hover .overlay {
    left: 50% !important;
    top: calc(100% + 7px) !important;
    z-index: 190;
    max-width: min(260px, calc(100vw - 24px));
    transform: translateX(-50%);
}

body.modern-user-shell .modern-photo-manager .alb-nothing {
    box-sizing: border-box;
    margin: 14px 0 18px;
    padding: 42px 18px;
    border: 1px dashed #bed7e5;
    border-radius: 13px;
    background: #f8fbfd;
    color: #647b8a;
}

@media (max-width: 700px) {
    body.modern-user-shell .modern-photo-manager {
        padding: 10px 8px 18px;
    }

    body.modern-user-shell .modern-photo-manager > .profhd {
        min-height: 0;
        padding: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    body.modern-user-shell .modern-photo-manager > .profhd h3 {
        font-size: 19px;
    }

    body.modern-user-shell .modern-photo-manager > .profhd ul,
    body.modern-user-shell .modern-photo-manager > .profhd > a {
        width: 100%;
        justify-content: flex-start;
    }

    body.modern-user-shell .modern-photo-manager > .profhd li {
        flex: 1 1 130px;
    }

    body.modern-user-shell .modern-photo-manager > .profhd li a,
    body.modern-user-shell .modern-photo-manager > .profhd > a {
        width: 100%;
    }

    body.modern-user-shell .modern-photo-manager > .alb-info {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    body.modern-user-shell .modern-photo-manager .alb-info .act-area {
        order: initial;
        margin: 0;
    }

    body.modern-user-shell .modern-photo-manager .alb-info .fullsize {
        width: 100%;
        justify-content: center;
    }

    body.modern-user-shell .modern-photo-manager > .per-photos.wrapper,
    body.modern-user-shell .modern-photo-manager > .favs.wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 2px !important;
    }

    body.modern-user-shell .modern-photo-manager > .album-select,
    body.modern-user-shell .modern-photo-manager .move-remove {
        align-items: stretch;
        flex-direction: column;
    }

    body.modern-user-shell .modern-photo-manager .album-select .checkall,
    body.modern-user-shell .modern-photo-manager .move-remove {
        width: 100%;
        padding: 0;
        border-left: 0;
    }

    body.modern-user-shell .modern-photo-manager .move-remove select,
    body.modern-user-shell .modern-photo-manager .move-remove strong a {
        box-sizing: border-box;
        width: 100%;
        justify-content: center;
    }
}

/* Desktop avatar previews open below the thumbnail instead of covering it. */
@media (min-width: 641px) {
    body.guest_img_blur .leftcol .related-users-box .fav-user,
    body.modern-user-shell .leftcol .related-users-box .fav-user,
    body.guest_img_blur .leftcol .friends-list > li,
    body.modern-user-shell .leftcol .friends-list > li {
        overflow: visible !important;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user:hover,
    body.modern-user-shell .leftcol .related-users-box .fav-user:hover,
    body.guest_img_blur .leftcol .friends-list > li:hover,
    body.modern-user-shell .leftcol .friends-list > li:hover {
        z-index: 150 !important;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user:hover .overlay,
    body.modern-user-shell .leftcol .related-users-box .fav-user:hover .overlay,
    body.guest_img_blur .leftcol .friends-list > li:hover .overlay,
    body.modern-user-shell .leftcol .friends-list > li:hover .overlay {
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        z-index: 150 !important;
    }
}

/* Profile guests and online friends also open their cards below avatars. */
@media (min-width: 641px) {
    body.guest_img_blur .maincol .profile .favs,
    body.modern-user-shell .maincol .profile .favs,
    body.guest_img_blur .maincol .profile .fav-user,
    body.modern-user-shell .maincol .profile .fav-user {
        overflow: visible !important;
    }

    body.guest_img_blur .maincol .profile .fav-user:hover,
    body.modern-user-shell .maincol .profile .fav-user:hover {
        z-index: 160 !important;
    }

    body.guest_img_blur .maincol .profile .fav-user:hover .overlay,
    body.modern-user-shell .maincol .profile .fav-user:hover .overlay {
        left: 50% !important;
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        z-index: 160 !important;
        animation: none !important;
        transform: translateX(-50%) !important;
    }
}

/* Mobile search page: align the heading and replace conflicting legacy checkboxes. */
@media (max-width: 700px) {
    .modern-search-page.modern-user-search-card > h2.bredcrumbs {
        box-sizing: border-box;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 14px 16px !important;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 3px;
        overflow: hidden;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > span {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
        background: none !important;
        font-size: 19px;
        line-height: 1.25;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > span::before,
    .modern-search-page.modern-user-search-card > h2.bredcrumbs > span::after {
        display: none !important;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > span > a {
        margin: 0 !important;
        padding: 0 !important;
        display: inline !important;
        color: #fff !important;
        line-height: inherit !important;
        text-decoration: none !important;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > em {
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
        color: rgba(255, 255, 255, 0.92);
        font-size: 13px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.35;
        text-align: left !important;
    }

    .modern-search-page.modern-user-search-card .user-search-inner form {
        gap: 20px !important;
    }

    .modern-search-page.modern-user-search-card .search-primary-fields,
    .modern-search-page.modern-user-search-card .search-age-fields,
    .modern-search-page.modern-user-search-card .search-location-grid,
    .modern-search-page.modern-user-search-card .search-feature-options {
        gap: 12px !important;
    }

    .modern-search-page.modern-user-search-card .search-field > label,
    .modern-search-page.modern-user-search-card .search-field > span,
    .modern-search-page.modern-user-search-card .search-section-title,
    .modern-search-page.modern-user-search-card .search-features legend {
        margin: 0 0 8px !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }

    .modern-search-page.modern-user-search-card .search-feature-options label {
        min-height: 52px !important;
        margin: 0 !important;
        padding: 11px 12px !important;
        gap: 10px !important;
        align-items: center !important;
        line-height: 1.25 !important;
    }

    .modern-search-page.modern-user-search-card .search-feature-options input[type="checkbox"] {
        box-sizing: border-box !important;
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
        flex: 0 0 22px !important;
        position: static !important;
        border: 2px solid #9db4c4 !important;
        border-radius: 6px !important;
        outline: none !important;
        background: #fff !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        cursor: pointer;
    }

    .modern-search-page.modern-user-search-card .search-feature-options input[type="checkbox"]:checked {
        border-color: #258fc5 !important;
        background-color: #258fc5 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.2 5.5 10 11.5 3.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 14px 14px !important;
    }

    .modern-search-page.modern-user-search-card .search-feature-options input[type="checkbox"]:focus-visible {
        border-color: #258fc5 !important;
        box-shadow: 0 0 0 3px rgba(37, 143, 197, 0.16) !important;
    }

    .modern-search-page.modern-user-search-card .search-feature-options label > span {
        min-width: 0;
        line-height: 1.25;
    }
}

/* Keep cloud artwork out of the page canvas; header and footer own their backgrounds. */
html {
    background-color: #d8eaf4 !important;
    background-image: none !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.guest_img_blur {
    box-sizing: border-box;
    padding-top: var(--meendo-header-height) !important;
}

body.guest_img_blur .table-wrapper {
    box-sizing: border-box;
    padding-top: 0 !important;
}

/* Branding belongs directly below the fixed public navigation. */
.modern-branding-slot {
    position: relative;
    left: 50%;
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    height: 0;
    margin: 0;
    overflow: hidden;
    transform: translateX(-50%);
}

.content-frame > .container {
    margin-top: 0 !important;
}

@media (min-width: 901px) {
    .content-frame > .container {
        box-sizing: border-box;
        width: 80% !important;
    }

    .content-frame > .container > .lenta-carousel,
    .content-frame > .container > .m_ads,
    .content-frame > .container > .wrapper {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
    }

    .content-frame > .container > .m_ads {
        text-align: center;
    }

    .content-frame > .container > .m_ads img {
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
        object-fit: cover;
    }

    .content-frame > .container > .lenta-carousel .lenta-button {
        flex: 0 0 134px;
    }

    .content-frame > .container > .lenta-carousel .lenta-item {
        width: 104px;
        min-width: 0;
        flex: 0 0 104px;
    }

    .content-frame > .container > .lenta-carousel .lenta-item img {
        box-sizing: border-box;
        width: 104px;
        height: 104px;
        object-fit: cover;
    }

    .content-frame > .container > .lenta-carousel .lenta-item:nth-child(n+10) {
        display: block;
    }

    .content-frame > .container > .wrapper {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .content-frame > .container > .wrapper::after {
        display: none;
        content: none;
    }

    .content-frame > .container > .wrapper > .leftcol,
    .content-frame > .container > .wrapper > .rightcol {
        box-sizing: border-box;
        width: 236px;
        min-width: 0;
        margin-right: 0;
        float: none;
        flex: 0 0 236px;
    }

    .content-frame > .container > .wrapper > .maincol,
    .content-frame > .container > .wrapper > .widecol {
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        float: none;
        flex: 1 1 0;
    }

    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 0 !important;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        align-items: start;
        gap: 12px;
    }

    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden)::after {
        display: none;
        content: none;
    }

    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > .fav-user,
    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > .fav-photo,
    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > .fav-video,
    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > .fav-photoalbum,
    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > .fav-videoalbum {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
        aspect-ratio: 1;
    }

    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > div > a {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        display: block;
    }

    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > div > a > img,
    .content-frame > .container > .wrapper > .widecol .favs.wrapper:not(.hidden) > div > a > .image {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        display: block;
        object-fit: cover;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 0 !important;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        align-items: start;
        gap: 12px;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper::after {
        display: none;
        content: none;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > .fav-photo,
    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > .fav-video {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
        aspect-ratio: 1;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > div > a {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        display: block;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > div > a > img,
    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > div > a > .image {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        display: block;
        object-fit: cover;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > div > a > .double-pic {
        box-sizing: border-box;
        width: 100%;
        height: 100%;
    }

    .content-frame > .container > .wrapper > .maincol .profile > .favs.wrapper > div > a > .double-pic > img {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }
}

.modern-branding-slot .background-banner {
    position: absolute !important;
    top: 0;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 268px !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
}

.modern-branding-slot #MeendoBrandCenter {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 268px;
}

/* Responsive top-users carousel */
.lenta-carousel {
    position: relative;
    box-sizing: border-box;
    width: min(984px, 100%);
    margin: 0 auto;
}

.lenta-carousel .lenta {
    box-sizing: border-box;
    /* width: 0 + min-width keeps the nowrap row out of the min-content width of the table layout (.table-wrapper) */
    width: 0;
    min-width: 100%;
}

.lenta-carousel-control {
    display: none;
}

/* Responsive signup25 / login25 page */
.signup25-root {
    min-width: 0 !important;
}

.signup25-root,
.signup25-root body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.signup25-root .content-frame > .container {
    box-sizing: border-box;
    width: min(1180px, 100%) !important;
    padding-right: 20px;
    padding-left: 20px;
}

.signup25-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 28px 0 20px;
    overflow: visible !important;
}

.signup25-page > .box,
.signup25-page > .box > .i1 {
    box-sizing: border-box;
    width: 100%;
}

.signup25-page > .box > .i1 {
    overflow: visible;
}

.signup25-page .ind-sign-hold.wrapper {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(350px, 400px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.signup25-page .ind-sign,
.signup25-page .ind-sign-txt {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    float: none !important;
}

.signup25-page .ind-sign {
    padding: 0 18px;
}

.signup25-page .ind-sign-txt {
    padding-top: 8px;
}

.signup25-page .ind-sign .row {
    box-sizing: border-box;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.signup25-page .ind-sign .row::after {
    display: none;
}

.signup25-page .ind-sign .leftcell,
.signup25-page .ind-sign .rightcell {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    margin: 0;
    float: none !important;
}

.signup25-page .ind-sign .leftcell {
    padding-top: 9px;
    text-align: right;
    line-height: 18px;
}

.signup25-page .ind-sign .text,
.signup25-page .ind-sign textarea,
.signup25-page .ind-sign select {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #bccbd4;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    line-height: 20px;
}

.signup25-page .ind-sign .text:focus,
.signup25-page .ind-sign select:focus {
    border-color: var(--meendo-pink);
    box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.12);
    outline: none;
}

.signup25-page .ind-sign select.dd,
.signup25-page .ind-sign select.mm,
.signup25-page .ind-sign select.yy {
    width: calc((100% - 16px) / 3) !important;
    margin: 0 8px 0 0;
    float: left;
}

.signup25-page .ind-sign select.yy {
    margin-right: 0;
}

.signup25-page .setgender .leftcell {
    padding-top: 8px;
}

.signup25-page #genicons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.signup25-page .setgender b {
    box-sizing: border-box;
    width: 43px;
    height: 43px;
    margin: 0;
    flex: 0 0 43px;
    border-radius: 9px;
}

.signup25-page #genicons .default-msg {
    flex-basis: 100%;
}

.signup25-page .default-msg,
.signup25-page .error-msg,
.signup25-page .confirm-msg {
    box-sizing: border-box;
    max-width: 100%;
    padding-top: 4px;
    overflow-wrap: anywhere;
}

.signup25-page .ind-sign .accept {
    box-sizing: border-box;
    width: 100%;
    min-height: 28px;
    margin: 2px 0 4px;
    padding: 3px 0 0 35px;
    float: none;
    overflow: visible;
    font-size: 12px !important;
    line-height: 17px !important;
}

.signup25-page .recaptcha_wrapp {
    max-width: 100%;
    text-align: left;
    overflow: hidden;
}

.signup25-page .g-recaptcha {
    max-width: 100%;
}

.signup25-page #error_msg {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.signup25-page #sigButton {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    border-radius: 9px;
    background: #2c2c2c;
    color: #fff;
    text-shadow: none;
}

.signup25-page #sigButton span {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    float: none;
    background: none;
    text-align: center;
    font-size: 14px;
}

.signup25-page .ind-sign-txt .hd-signup {
    overflow-wrap: anywhere;
}

.signup25-page .ind-sign-txt p,
.signup25-page .ind-list li {
    overflow-wrap: anywhere;
}

.signup25-page .ind-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
}

.signup25-page .ind-bot {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
}

.signup25-page .ind-bot > .wrapper {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 32px;
}

.signup25-page .ind-bot .txt,
.signup25-page .ind-bot .list-tags {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
}

@media (max-width: 900px) {
    .signup25-root .content-frame > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .signup25-page {
        padding-top: 20px;
    }

    .signup25-page .ind-sign-hold.wrapper {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .signup25-page .ind-sign {
        width: min(100%, 640px);
        margin: 0 auto;
    }

    .signup25-page .ind-sign-txt {
        width: min(100%, 720px);
        margin: 0 auto;
    }

    .signup25-page .ind-bot > .wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .signup25-root .content-frame > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .signup25-page {
        padding: 12px 0;
    }

    .signup25-page .ind-sign-hold.wrapper {
        padding: 12px;
        gap: 24px;
    }

    .signup25-page .ind-sign {
        padding: 0 14px;
    }

    .signup25-page .ind-sign h2 {
        font-size: 21px;
        line-height: 26px;
    }

    .signup25-page .ind-sign .row {
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 14px 0;
    }

    .signup25-page .ind-sign .leftcell {
        padding-top: 0;
        text-align: left;
    }

    .signup25-page .setgender .leftcell {
        padding: 0;
    }

    .signup25-page .ind-list {
        grid-template-columns: 1fr;
    }

    .signup25-page .ind-bot {
        padding: 18px 12px;
    }

    .signup25-page .ind-bot h3 {
        font-size: 15px;
        line-height: 20px;
    }
}

@media (max-width: 360px) {
    .signup25-page .ind-sign {
        padding-right: 10px;
        padding-left: 10px;
    }

    .signup25-page .g-recaptcha {
        width: 304px;
        transform: scale(0.82);
        transform-origin: 0 0;
        margin-bottom: -14px;
    }

    .signup25-page .setgender b {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* Responsive signup24 / login24 landing page */
.signup24-root {
    min-width: 0 !important;
}

.signup24-root,
.signup24-root body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.signup24-root .content-frame > .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none;
    padding: 0;
}

.signup24-root .container > .wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    overflow: visible;
}

.signup24-root .new-login-page-hero {
    box-sizing: border-box;
    width: 100%;
    min-height: auto !important;
    overflow: hidden !important;
}

.signup24-root .new-login-page-hero-content {
    box-sizing: border-box;
    width: min(1320px, 100%);
    max-width: 1320px;
    min-height: auto !important;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px) 48px;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.signup24-root .new-login-page-hero-left {
    min-width: 0;
}

.signup24-root .new-login-page-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.signup24-root .new-login-page-hero p {
    max-width: 660px;
    font-size: clamp(16px, 1.4vw, 19px);
}

.signup24-root .new-login-page-buttons {
    align-items: stretch;
}

.signup24-root .new-login-page-btn {
    box-sizing: border-box;
    min-height: 52px;
}

.signup24-root .new-login-page-hero-right {
    box-sizing: border-box;
    width: 100%;
    height: clamp(460px, 43vw, 600px);
    min-width: 0;
    margin: 0;
}

.signup24-root .new-login-profile-images {
    width: min(100%, 600px);
    max-width: 600px;
    margin: 0 auto;
}

.signup24-root .new-login-profile-card {
    width: clamp(190px, 18vw, 240px);
    height: clamp(238px, 22.5vw, 300px);
}

.signup24-root .new-login-form-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 40px 0 0;
}

.signup24-root .new-login-form input,
.signup24-root .new-login-form-submit {
    box-sizing: border-box;
    max-width: 100%;
}

.signup24-root .new-login-form-submit:disabled,
.signup24-root .new-login-form-submit:disabled:hover {
    background: #a91552;
    opacity: 0.72;
    cursor: wait;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.login-loading-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.login-loading-spinner {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: login-spinner-rotate 0.75s linear infinite;
}

@keyframes login-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-loading-spinner {
        animation-duration: 1.5s;
    }
}

@media (max-width: 1024px) {
    .signup24-root .new-login-page-hero-content {
        width: min(100%, 780px);
        padding: 44px 28px 36px;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .signup24-root .new-login-page-hero-left {
        text-align: center;
    }

    .signup24-root .new-login-page-hero h1,
    .signup24-root .new-login-page-hero p {
        margin-right: auto;
        margin-left: auto;
    }

    .signup24-root .new-login-page-buttons {
        justify-content: center;
    }

    .signup24-root .new-login-page-hero-right {
        width: min(100%, 620px);
        height: 450px;
        margin: 0 auto;
    }

    .signup24-root .new-login-profile-card {
        width: 180px;
        height: 225px;
    }

    .signup24-root .new-login-profile-card-1 {
        left: 4%;
    }

    .signup24-root .new-login-profile-card-2 {
        left: 25%;
    }

    .signup24-root .new-login-profile-card-3 {
        right: 6%;
        left: auto;
    }
}

@media (max-width: 640px) {
    .signup24-root .new-login-page-hero-content {
        width: 100%;
        padding: 30px 18px 24px;
        gap: 20px;
    }

    .signup24-root .new-login-page-hero-left {
        text-align: left;
    }

    .signup24-root .new-login-page-hero h1 {
        margin-bottom: 16px;
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.08;
    }

    .signup24-root .new-login-page-hero p {
        margin-bottom: 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    .signup24-root .new-login-page-buttons {
        width: 100%;
        gap: 10px;
        flex-direction: column;
    }

    .signup24-root .new-login-page-btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 13px 18px;
    }

    .signup24-root .new-login-form-wrapper {
        width: 100%;
        max-width: none;
        margin: 24px 0 0;
        padding: 20px;
        border-radius: 12px;
    }

    .signup24-root .new-login-page-hero-right {
        width: 100%;
        height: 340px;
        overflow: hidden;
    }

    .signup24-root .new-login-profile-images {
        width: min(100%, 460px);
        height: 100%;
    }

    .signup24-root .new-login-profile-card {
        width: clamp(112px, 34vw, 150px);
        height: clamp(145px, 43vw, 192px);
        border-radius: 12px;
    }

    .signup24-root .new-login-profile-card-1 {
        top: 28px;
        left: 3%;
        transform: rotate(-10deg) translateZ(0);
    }

    .signup24-root .new-login-profile-card-2 {
        top: 96px;
        left: 25%;
        transform: rotate(-4deg) translateZ(0);
    }

    .signup24-root .new-login-profile-card-3 {
        top: 38px;
        right: 3%;
        left: auto;
        transform: rotate(7deg) translateZ(0);
    }

    .signup24-root .new-login-profile-card-4 {
        right: 23%;
        bottom: 4px;
        transform: rotate(10deg) translateZ(0);
    }

    .signup24-root .new-login-shape-1 {
        width: 160px;
        height: 160px;
        top: 0;
        right: -60px;
    }

    .signup24-root .new-login-shape-2 {
        width: 120px;
        height: 120px;
        bottom: -24px;
        left: -44px;
    }
}

@media (max-width: 400px) {
    .signup24-root .new-login-page-hero-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .signup24-root .new-login-page-hero-right {
        height: 290px;
    }

    .signup24-root .new-login-profile-card {
        width: 108px;
        height: 140px;
    }

    .signup24-root .new-login-profile-card-2 {
        top: 84px;
    }

    .signup24-root .new-login-profile-card-4 {
        right: 20%;
    }
}

/* Fixed public header */
.modern-guest-header.header {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 20000;
    box-sizing: border-box;
    width: 100%;
    height: var(--meendo-header-height);
    padding: 0 !important;
    border: 0;
    border-bottom: 1px solid rgba(125, 160, 181, 0.22);
    border-radius: 0;
    background: #d8eef9 url("../images/bg-html.png") repeat-x 50% 0;
    background-size: auto 76px;
    box-shadow: 0 8px 30px rgba(38, 73, 94, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.modern-guest-header .guest-header-inner {
    box-sizing: border-box;
    width: min(1280px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.modern-guest-header .logo {
    position: static !important;
    flex: 0 0 112px;
    width: 112px;
    height: 52px;
    margin: 0;
    background: url("../images/logo.svg") no-repeat 50% 50%;
    background-size: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modern-guest-header .logo:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.modern-guest-header .guest-header-menu {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.modern-guest-header.header .navigation {
    order: 1;
    min-width: 0;
    flex: 1;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modern-guest-header.header .navigation > ul {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 2px;
    overflow: visible;
    list-style: none;
}

.modern-guest-header.header .navigation > ul > li {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: none !important;
}

.modern-guest-header.header .navigation > ul > li > a {
    box-sizing: border-box;
    height: auto !important;
    min-height: 40px;
    padding: 10px 9px !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #152736 !important;
    font: 800 14.5px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    letter-spacing: -0.01em;
    text-shadow: none !important;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.modern-guest-header.header .navigation > ul > li > a:hover,
.modern-guest-header.header .navigation > ul > li > a:focus-visible {
    color: var(--meendo-pink) !important;
    background: #fff3f6 !important;
    text-decoration: none;
    outline: none;
}

.modern-guest-header.header .navigation > ul > li.faq-nav > a {
    color: var(--meendo-ink) !important;
    font-style: normal !important;
}

.modern-guest-header.header .navigation > ul > li.faq-nav > a i {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    float: none !important;
    overflow: visible !important;
    display: inline !important;
    background: none !important;
    color: inherit;
    font-style: normal;
    line-height: inherit;
    text-indent: 0 !important;
}

.modern-guest-header.header .navigation > ul > li.faq-nav > a::after {
    content: "?";
    width: 18px;
    height: 18px;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf3f7;
    color: #688091;
    font-size: 11px;
    font-weight: 800;
}

.modern-guest-header.header .navigation > ul > li > a img.do-not-blur-this-is-image {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    filter: none !important;
}

.modern-guest-header .signin {
    position: static !important;
    order: 2;
    flex: 0 0 auto;
    height: auto;
    display: flex;
    align-items: center;
}

.modern-guest-header .guest-auth-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
}

.modern-guest-header .guest-btn {
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 15px !important;
    border-radius: 10px;
    font: 700 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modern-guest-header .guest-btn-login {
    border: 2px solid var(--meendo-pink);
    background: #fff;
    color: var(--meendo-pink);
}

.modern-guest-header .guest-btn-register {
    border: 2px solid #2b2b2b;
    background: #2b2b2b;
    color: #fff;
}

.modern-guest-header .guest-btn:hover,
.modern-guest-header .guest-btn:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

.modern-guest-header .guest-btn-login:hover,
.modern-guest-header .guest-btn-login:focus-visible {
    border-color: var(--meendo-pink-dark);
    background: #fff3f6;
    color: var(--meendo-pink-dark);
}

.modern-guest-header .guest-btn-register:hover,
.modern-guest-header .guest-btn-register:focus-visible {
    border-color: #171717;
    background: #171717;
    color: #fff;
}

.modern-guest-header .modern-lang-selector {
    position: relative;
}

.modern-guest-header .modern-lang-btn {
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--meendo-border);
    border-radius: 10px;
    background: #fff;
    color: var(--meendo-ink);
    font: 700 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.modern-guest-header .modern-lang-btn > .lang-flag {
    font-size: 22px;
}

.modern-guest-header .modern-lang-btn:hover,
.modern-guest-header .modern-lang-btn:focus-visible,
.modern-guest-header .modern-lang-selector.active .modern-lang-btn {
    border-color: #b9d3e1;
    background: #f6fbfe;
    outline: none;
}

.modern-guest-header .lang-arrow {
    width: 7px;
    height: 7px;
    margin: -4px 1px 0 3px;
    display: block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.modern-guest-header .modern-lang-selector.active .lang-arrow {
    margin-top: 4px;
    transform: rotate(225deg);
}

.modern-guest-header .modern-lang-menu {
    top: calc(100% + 9px);
    right: 0;
    z-index: 3;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(34, 56, 74, 0.16);
}

.guest-menu-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    color: var(--meendo-ink);
    box-shadow: 0 6px 18px rgba(34, 56, 74, 0.08);
    cursor: pointer;
}

.guest-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modern-guest-header.menu-open .guest-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.modern-guest-header.menu-open .guest-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.modern-guest-header.menu-open .guest-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Fixed authenticated header and full account drawer */
body.modern-user-shell {
    box-sizing: border-box;
    padding-top: var(--meendo-header-height) !important;
}

body.modern-user-menu-is-open {
    overflow: hidden !important;
    padding-right: var(--modern-user-scrollbar-width, 0px) !important;
}

/* Keep profile identity and activity date in separate columns. */
body.guest_img_blur .leftcol .profile-short-card .prof-author,
body.modern-user-shell .leftcol .profile-short-card .prof-author {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

body.guest_img_blur .leftcol .profile-short-card .prof-author .author,
body.modern-user-shell .leftcol .profile-short-card .prof-author .author {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

body.guest_img_blur .leftcol .profile-short-card .prof-author .author a,
body.modern-user-shell .leftcol .profile-short-card .prof-author .author a {
    max-width: 100% !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

.modern-user-header.header {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 20000;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: var(--meendo-header-height);
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-bottom: 1px solid rgba(125, 160, 181, 0.22);
    border-radius: 0;
    background: #d8eef9 url("../images/bg-html.png") repeat-x 50% 0 !important;
    background-size: auto 76px !important;
    box-shadow: 0 8px 30px rgba(38, 73, 94, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.modern-user-header .modern-user-header-inner {
    box-sizing: border-box;
    width: min(1560px, 100%);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modern-user-header .logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex: 0 0 112px;
    width: 112px;
    height: 52px;
    margin: 0;
    display: block;
    overflow: hidden;
    background: url("../images/logo.svg") no-repeat 50% 50% !important;
    background-size: contain !important;
    text-indent: -9999px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modern-user-header .logo:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.modern-user-quick-menu {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modern-user-quick-menu-section {
    position: relative;
}

.modern-user-quick-menu-trigger {
    position: relative;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--meendo-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--meendo-ink);
    box-shadow: 0 4px 14px rgba(34, 56, 74, 0.06);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modern-user-quick-menu-trigger:hover,
.modern-user-quick-menu-trigger:focus-visible {
    border-color: #b7d2e0;
    color: var(--meendo-pink);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.modern-user-quick-menu-trigger > b {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #e8f6fc;
    border-radius: 10px;
    background: var(--meendo-pink);
    color: #fff;
    font: 800 10px/14px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.modern-user-quick-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    box-sizing: border-box;
    width: 280px;
    padding: 7px;
    visibility: hidden;
    border: 1px solid var(--meendo-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(34, 56, 74, 0.2);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.modern-user-quick-menu-dropdown::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 9px;
}

.modern-user-quick-menu-section:hover .modern-user-quick-menu-dropdown,
.modern-user-quick-menu-section:focus-within .modern-user-quick-menu-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.modern-user-quick-menu-dropdown > a {
    box-sizing: border-box;
    min-height: 42px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    color: var(--meendo-ink);
    font: 750 13px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}

.modern-user-quick-menu-title {
    min-height: 42px;
    margin: -7px -7px 4px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--meendo-border);
    border-radius: 13px 13px 0 0;
    background: #eef8fd;
    color: var(--meendo-pink);
    font: 800 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.modern-user-quick-menu-title .modern-user-alert-icon {
    width: 21px;
    height: 21px;
}

.modern-user-quick-menu-dropdown > a:hover,
.modern-user-quick-menu-dropdown > a:focus-visible {
    background: #eef8fd;
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.modern-user-quick-menu-item-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f0f7fb;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
    line-height: 1;
}

.modern-user-quick-menu-item-icon .modern-user-alert-icon {
    width: 19px;
    height: 19px;
}

.modern-user-quick-menu-dropdown > a > b {
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--meendo-pink);
    color: #fff;
    font-size: 10px;
}

.modern-user-primary {
    min-width: 0;
    flex: 1 1 auto;
}

.modern-user-primary ul {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    overflow: visible;
    list-style: none;
}

.modern-user-primary li {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: none !important;
}

.modern-user-primary a {
    position: relative;
    box-sizing: border-box;
    min-height: 40px;
    padding: 10px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    color: #152736;
    font: 800 14.5px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.modern-user-primary li.is-active a {
    color: #203b4e;
    background: rgba(255, 255, 255, 0.72);
}

.modern-user-primary li.is-active a::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 6px;
    left: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(233, 30, 99, 0.15) 0%,
        rgba(233, 30, 99, 0.95) 22%,
        rgba(255, 92, 120, 1) 50%,
        rgba(255, 122, 98, 0.95) 78%,
        rgba(255, 122, 98, 0.15) 100%
    );
    box-shadow:
        0 0 0.5px rgba(233, 30, 99, 0.35),
        0 1px 6px rgba(233, 30, 99, 0.28);
    opacity: 1;
}

.modern-user-primary a:hover,
.modern-user-primary a:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.modern-user-primary img {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    object-fit: contain;
    filter: none !important;
}

.modern-user-primary .is-telegram a {
    min-height: 36px;
    padding: 7px 7px;
    gap: 5px;
    font-size: 13px;
    line-height: 17px;
}

.modern-user-primary img.modern-user-telegram-icon {
    width: 14px !important;
    height: 14px !important;
}

.modern-user-telegram-money {
    box-sizing: border-box;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffe08a;
    color: #8f6500;
    font: 800 10px/1 Arial, Helvetica, sans-serif;
}

.modern-user-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.modern-user-alerts {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modern-user-alerts a,
.modern-user-language,
.modern-user-credit,
.modern-user-vip,
.modern-user-profile-link {
    box-sizing: border-box;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--meendo-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--meendo-ink);
    font: 700 12px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(34, 56, 74, 0.05);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-user-alerts a:hover,
.modern-user-alerts a:focus-visible,
.modern-user-language:hover,
.modern-user-language:focus-visible,
.modern-user-credit:hover,
.modern-user-credit:focus-visible,
.modern-user-vip:hover,
.modern-user-vip:focus-visible,
.modern-user-profile-link:hover,
.modern-user-profile-link:focus-visible {
    border-color: #b7d2e0;
    color: var(--meendo-pink);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.modern-user-language {
    width: 48px;
    padding: 0;
    cursor: pointer;
}

.modern-user-language-selector {
    position: relative;
}

.modern-user-language > .lang-flag {
    font-size: 22px;
    line-height: 1;
}

.modern-user-language .lang-arrow {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin: -4px 1px 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.modern-user-language-selector.active .modern-user-language .lang-arrow {
    margin-top: 4px;
    transform: rotate(225deg);
}

.modern-user-language-selector.active .modern-user-language {
    border-color: #b7d2e0;
    background: #f6fbfe;
}

.modern-user-language-menu {
    top: calc(100% + 9px);
    right: 0;
    z-index: 20;
    min-width: 170px;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(34, 56, 74, 0.18);
}

.modern-lang-option.is-current {
    background: #edf7fc;
    color: #1f5b7e;
    font-weight: 800;
}

.modern-lang-option.is-current::after {
    content: "\2713";
    margin-left: auto;
    color: #2c8bc2;
    font-weight: 900;
}

.modern-user-language-label {
    white-space: nowrap;
}

.modern-user-alerts a {
    position: relative;
    width: 38px;
    padding: 0;
    color: var(--meendo-ink);
}

.modern-user-alert-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 22px;
}

.modern-user-alerts a b {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8f6fc;
    border-radius: 10px;
    background: var(--meendo-pink);
    color: #fff;
    font-size: 10px;
    line-height: 14px;
}

.modern-user-credit {
    gap: 6px;
    padding: 0 11px;
}

.modern-user-credit > span {
    color: #ffbd2d;
    font-size: 14px;
}

.modern-user-vip {
    min-width: 58px;
    padding: 0 12px;
    border-color: #ffd8e2;
    color: var(--meendo-pink);
    white-space: nowrap;
}

.modern-user-vip.is-active {
    border-color: #f5c246;
    background: #fff9df;
    color: #8f6500;
}

.modern-user-profile-link {
    max-width: 150px;
    padding: 4px 10px 4px 5px;
    justify-content: flex-start;
    gap: 7px;
}

.modern-user-profile-link > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-user-avatar {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9c5d2, #d9eef9);
    color: var(--meendo-pink-dark);
}

.modern-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover;
    filter: none !important;
}

.modern-user-avatar b {
    font-size: 14px;
    line-height: 1;
}

.modern-user-menu-toggle {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    color: var(--meendo-ink);
    box-shadow: 0 6px 18px rgba(34, 56, 74, 0.08);
    cursor: pointer;
}

.modern-user-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modern-user-header.menu-open .modern-user-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.modern-user-header.menu-open .modern-user-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.modern-user-header.menu-open .modern-user-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.modern-user-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20020;
    visibility: hidden;
    background: rgba(16, 31, 42, 0.48);
    opacity: 0;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modern-user-menu-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
}

.modern-user-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20030;
    box-sizing: border-box;
    width: min(680px, 92vw);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    border-left: 1px solid rgba(125, 160, 181, 0.22);
    background: #eef9ff;
    box-shadow: -20px 0 60px rgba(16, 31, 42, 0.2);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modern-user-drawer.is-open {
    transform: translateX(0);
}

.modern-user-drawer-head {
    box-sizing: border-box;
    min-height: 82px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--meendo-border);
    background: #d8eef9 url("../images/bg-html.png") repeat-x 50% 0;
    background-size: auto 82px;
}

.modern-user-drawer-profile {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--meendo-ink);
    text-decoration: none;
}

.modern-user-drawer-profile .modern-user-avatar {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(34, 56, 74, 0.12);
}

.modern-user-drawer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modern-user-drawer-name-row {
    min-width: 0;
    display: flex;
    align-items: center;
}

.modern-user-drawer-profile strong {
    overflow: hidden;
    color: var(--meendo-ink);
    font: 800 17px/22px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-user-drawer-profile small {
    color: var(--meendo-muted);
    font: 600 12px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.modern-user-drawer-credit {
    flex: 0 0 auto;
    max-width: 42%;
    min-height: 36px;
    gap: 5px;
    padding: 0 10px;
    overflow: hidden;
    border-color: #ffe3a8;
    background: linear-gradient(135deg, #fff9eb 0%, #fff 70%);
    color: #8f6500;
    font: 800 12px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(184, 132, 18, 0.1);
}

.modern-user-drawer-credit > span {
    color: #ffbd2d;
    font-size: 13px;
}

.modern-user-drawer-credit:hover,
.modern-user-drawer-credit:focus-visible {
    border-color: #f0c45a;
    color: #8f6500;
}

.modern-user-drawer-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    color: var(--meendo-ink);
    font: 300 31px/38px Arial, sans-serif;
    cursor: pointer;
}

.modern-user-drawer-close:hover,
.modern-user-drawer-close:focus-visible {
    border-color: var(--meendo-pink);
    color: var(--meendo-pink);
    outline: none;
}

.modern-user-drawer-scroll {
    box-sizing: border-box;
    height: calc(100% - 82px);
    padding: 18px 18px calc(26px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modern-user-drawer-primary {
    display: grid;
    gap: 8px;
}

.modern-user-drawer-primary a {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    border: 1px solid var(--meendo-border);
    border-radius: 11px;
    background: #fff;
    color: #152736;
    font: 800 14px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
}

.modern-user-menu-icon {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    filter: drop-shadow(0 1px 1px rgba(21, 39, 54, 0.12));
}

.modern-user-primary-menu-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 20px;
}

.modern-user-drawer-primary a:hover,
.modern-user-drawer-primary a:focus-visible {
    border-color: #b7d2e0;
    background: #f9fdff;
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.modern-user-buy-vip {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 12px 0 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #e4b438;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff4b8 0%, #ffd760 100%);
    color: #765000;
    font: 850 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(183, 129, 0, 0.16);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-user-buy-vip:hover,
.modern-user-buy-vip:focus-visible {
    border-color: #c69314;
    color: #5e4100;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(183, 129, 0, 0.22);
    outline: none;
}

.modern-user-buy-vip .modern-user-menu-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 21px;
}

.modern-user-drawer-primary img {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
    display: inline-block !important;
    object-fit: contain;
    filter: none !important;
}

.modern-user-drawer-primary img.modern-user-telegram-icon {
    width: 14px !important;
    height: 14px !important;
}

.modern-user-drawer-primary .modern-user-telegram-money {
    box-sizing: border-box;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffe08a;
    color: #8f6500;
    font: 800 10px/1 Arial, Helvetica, sans-serif;
}

.modern-user-drawer-primary {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.modern-user-menu-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.modern-user-menu-group {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(34, 56, 74, 0.04);
}

.gallery-heading {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 12px;
}

.gallery-heading > span {
    min-width: 0;
}

.gallery-heading .gallery-upload-action {
    box-sizing: border-box;
    min-height: 36px;
    margin: 0 12px 0 auto;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(28, 87, 126, 0.18);
    color: #246f9f;
    font: 800 13px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-heading .gallery-upload-action:hover,
.gallery-heading .gallery-upload-action:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.gallery-upload-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #dff5e5;
    color: #218743;
    font: 900 18px/22px Arial, Helvetica, sans-serif;
}

.gallery-heading + .i1 > .upload {
    clear: both;
    padding-top: 18px;
}

@media (max-width: 520px) {
    .gallery-heading {
        gap: 6px;
    }

    .gallery-heading > span {
        padding-right: 8px;
        padding-left: 12px;
    }

    .gallery-heading .gallery-upload-action {
        min-height: 34px;
        margin-right: 8px;
        padding: 6px 9px;
        gap: 5px;
        font-size: 12px;
    }

    .gallery-upload-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: 16px;
        line-height: 20px;
    }

    .gallery-heading + .i1 > .upload {
        padding-top: 14px;
    }
}

.modern-user-menu-group h3 {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8f1f6;
    background: #f6fbfe;
    color: #152736;
    font: 800 13px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
}

.modern-user-menu-group.is-collapsed h3 {
    border-bottom-color: transparent;
}

.modern-user-menu-group-toggle {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
}

.modern-user-menu-group-toggle:hover,
.modern-user-menu-group-toggle:focus-visible {
    background: #eef8fd;
    color: var(--meendo-pink);
    outline: none;
}

.modern-user-menu-group-toggle > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.modern-user-menu-group-toggle .ico {
    display: none !important;
}

.modern-user-menu-group-chevron {
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.modern-user-menu-group-toggle[aria-expanded="true"] .modern-user-menu-group-chevron {
    transform: rotate(225deg);
}

.modern-user-menu-group ul {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 3px !important;
    float: none !important;
    overflow: visible !important;
    list-style: none;
}

.modern-user-menu-group ul[hidden] {
    display: none !important;
}

.modern-user-menu-group li {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: none !important;
}

.modern-user-menu-item {
    position: relative;
    box-sizing: border-box;
    min-height: 32px;
    padding: 5px 36px 5px 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 7px;
    color: #152736;
    font: 700 13px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.modern-user-menu-item > .modern-user-menu-icon {
    font-size: 21px;
}

.modern-user-menu-item:hover,
.modern-user-menu-item:focus-visible {
    background: #eef8fd;
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.modern-user-menu-item > .ico {
    position: absolute !important;
    top: 50% !important;
    left: 7px !important;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    display: block;
    transform: translateY(-50%);
}

.modern-user-menu-item > span:not(.modern-user-menu-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-user-menu-item > b {
    min-width: 18px;
    height: 18px;
    margin-left: auto;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--meendo-pink);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
}

.modern-user-edit-link {
    position: absolute;
    top: 50%;
    right: 6px;
    z-index: 1;
    padding: 1px 4px;
    border-radius: 5px;
    transform: translateY(-50%);
    color: var(--meendo-muted);
    font: 600 10px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}

.modern-user-edit-link:hover,
.modern-user-edit-link:focus-visible {
    background: #fff;
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

.modern-user-logout {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--meendo-pink);
    border-radius: 12px;
    background: #fff;
    color: var(--meendo-pink);
    font: 800 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}

.modern-user-logout:hover,
.modern-user-logout:focus-visible {
    background: #fff3f6;
    color: var(--meendo-pink-dark);
    text-decoration: none;
    outline: none;
}

@media (max-width: 1500px) {
    .modern-user-primary .is-secondary {
        display: none;
    }

    .modern-user-drawer-primary {
        display: grid;
    }

    .modern-user-drawer-primary .is-primary {
        display: none;
    }
}

@media (max-width: 1240px) {
    .modern-user-header .modern-user-header-inner {
        gap: 14px;
    }

    .modern-user-primary a {
        padding-right: 6px;
        padding-left: 6px;
    }

    .modern-user-profile-link > span:last-child {
        display: none;
    }

    .modern-user-profile-link {
        padding-right: 5px;
    }
}

@media (max-width: 1080px) {
    .modern-user-quick-menu {
        display: none;
    }

    .modern-user-primary {
        display: none;
    }

    .modern-user-actions {
        margin-left: auto;
    }

    .modern-user-drawer-primary {
        display: grid;
    }

    .modern-user-drawer-primary .is-primary {
        display: flex;
    }
}

@media (max-width: 760px) {
    .modern-user-header.header {
        background-size: auto var(--meendo-header-height) !important;
    }

    .modern-user-header .modern-user-header-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .modern-user-header .logo {
        flex-basis: 104px;
        width: 104px;
        height: 49px;
    }

    .modern-user-vip,
    .modern-user-profile-link {
        display: none;
    }

    .modern-user-language {
        width: 42px;
        padding: 0;
    }

    .modern-user-language-label {
        display: none;
    }

    .modern-user-language .lang-arrow {
        display: none;
    }

    .modern-user-drawer {
        width: min(620px, 94vw);
    }

    .modern-user-drawer-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-user-drawer-primary > a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .modern-user-menu-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .modern-user-header .modern-user-header-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    .modern-user-alerts {
        display: flex;
    }

    .modern-user-drawer {
        width: 94vw;
    }

    .modern-user-drawer-head {
        padding-right: 14px;
        padding-left: 14px;
    }

    .modern-user-drawer-scroll {
        padding-right: 12px;
        padding-left: 12px;
    }

    .modern-user-drawer-primary {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
}

@media (max-width: 380px) {
    .modern-user-header .modern-user-header-inner {
        padding-right: 8px;
        padding-left: 8px;
        gap: 6px;
    }

    .modern-user-header .logo {
        flex-basis: 88px;
        width: 88px;
        height: 44px;
    }

    .modern-user-actions {
        gap: 4px;
    }

    .modern-user-alerts {
        gap: 2px;
    }

    .modern-user-language,
    .modern-user-alerts a {
        width: 34px;
        min-height: 36px;
        border-radius: 10px;
    }

    .modern-user-language > .lang-flag {
        font-size: 23px;
    }

    .modern-user-menu-toggle {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .modern-user-alerts a:not(.modern-user-alert-message):not(.modern-user-alert-users):not(.modern-user-alert-upload) {
        display: none;
    }

    .modern-user-alerts a b {
        top: -6px;
        right: -4px;
    }
}

/* Modern footer */
#footer.modern-site-footer {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    margin-top: auto;
    display: block !important;
    overflow: hidden;
    border-top: 0;
    background: #ffffff;
}

#footer.modern-site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 78px;
    background: url("../images/bg-body.png") repeat-x 50% 0;
    background-size: auto 108px;
    pointer-events: none;
}

#footer.modern-site-footer .footer-holder,
#footer.modern-site-footer .footer-frame {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

#footer.modern-site-footer .footer-holder {
    position: relative;
    z-index: 1;
}

#footer.modern-site-footer .footer {
    box-sizing: border-box;
    width: min(1240px, calc(100% - 40px)) !important;
    min-height: 0;
    margin: 0 auto !important;
    padding: 86px 0 16px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--meendo-muted);
}

#footer.modern-site-footer .footer-logo {
    position: static !important;
    grid-column: 1;
    grid-row: 1 / span 8;
    width: 112px;
    height: 54px;
    margin: 0 0 12px;
    display: block;
    background: url("../images/logo.svg") no-repeat 50% 50%;
    background-size: contain;
}

#footer.modern-site-footer .footer ul {
    box-sizing: border-box;
    grid-column: 2;
    width: min(100%, 1100px);
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    overflow: visible;
    list-style: none;
}

#footer.modern-site-footer .footer li {
    margin: 0;
    padding: 0;
    float: none;
    background: none;
    color: var(--meendo-muted);
    font: 600 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#footer.modern-site-footer .footer a {
    color: #4e6575;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer.modern-site-footer .footer a:hover,
#footer.modern-site-footer .footer a:focus-visible {
    color: var(--meendo-pink);
    text-decoration: none;
    outline: none;
}

#footer.modern-site-footer .footer > a:not(.footer-logo) {
    grid-column: 2;
    width: min(100%, 1000px);
    margin: 0 0 10px;
    text-align: center;
    color: #4e6575;
    font: 600 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#footer.modern-site-footer .footer p {
    grid-column: 2;
    width: min(100%, 1000px);
    margin: 5px 0 0;
    text-align: center;
    color: #748896;
    font: 12px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#footer.modern-site-footer .teasers {
    box-sizing: border-box;
    width: min(984px, calc(100% - 40px));
}

body.guest_img_blur.has-access-panel #footer.modern-site-footer::after {
    content: "";
    box-sizing: border-box;
    width: 100%;
    height: calc(var(--meendo-access-panel-height) + env(safe-area-inset-bottom, 0px));
    display: block;
    background: #fff;
    pointer-events: none;
}

@media (max-width: 1180px) {
    :root {
        --meendo-header-height: 72px;
    }

    .modern-guest-header.header {
        background-size: auto 72px;
    }

    .modern-guest-header .guest-header-inner {
        padding: 0 20px;
    }

    .modern-guest-header .logo {
        flex-basis: 104px;
        width: 104px;
        height: 48px;
    }

    .guest-menu-toggle {
        display: flex;
    }

    .modern-guest-header .guest-header-menu {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 2;
        box-sizing: border-box;
        width: min(90vw, 440px);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: calc(var(--meendo-header-height) + 22px) 22px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(255, 255, 255, 0.99);
        border-left: 1px solid var(--meendo-border);
        box-shadow: -18px 0 42px rgba(34, 56, 74, 0.2);
        visibility: hidden;
        transform: translateX(105%);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .modern-guest-header.menu-open .guest-header-menu {
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
    }

    .guest-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 19990;
        display: block;
        background: rgba(20, 37, 49, 0.46);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .guest-menu-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .modern-guest-header.menu-open .guest-menu-toggle {
        position: relative;
        z-index: 3;
    }

    body.guest-menu-is-open {
        overflow: hidden;
    }

    .modern-guest-header .signin {
        order: 1;
        width: 100%;
    }

    .modern-guest-header .guest-auth-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .modern-guest-header .modern-lang-selector {
        grid-column: 1 / -1;
    }

    .modern-guest-header .modern-lang-btn,
    .modern-guest-header .guest-btn {
        width: 100%;
    }

    .modern-guest-header .modern-lang-btn {
        justify-content: center;
    }

    .modern-guest-header .modern-lang-menu {
        left: 0;
        right: 0;
    }

    .modern-guest-header.header .navigation {
        order: 2;
        width: 100%;
    }

    .modern-guest-header.header .navigation > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .modern-guest-header.header .navigation > ul > li > a {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px !important;
        justify-content: flex-start;
        background: #f5fafc !important;
        color: #152736 !important;
        font: 800 14.5px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
        letter-spacing: -0.01em;
    }
}

@media (max-width: 720px) {
    .lenta-carousel {
        width: 100%;
        padding: 0 42px;
    }

    .lenta-carousel .lenta {
        margin: 10px 0;
        padding: 3px 8px 8px;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lenta-carousel .lenta::-webkit-scrollbar {
        display: none;
    }

    .lenta-carousel .lenta-button,
    .lenta-carousel .lenta-item {
        scroll-snap-align: start;
    }

    .lenta-carousel .lenta-item:nth-child(n+10) {
        display: block;
    }

    .lenta-carousel-control {
        position: absolute;
        top: 50%;
        z-index: 4;
        box-sizing: border-box;
        width: 34px;
        height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--meendo-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 5px 16px rgba(34, 56, 74, 0.14);
        color: var(--meendo-ink);
        font: 700 31px/1 Arial, sans-serif;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .lenta-carousel-control span {
        margin-top: -3px;
    }

    .lenta-carousel-prev {
        left: 4px;
    }

    .lenta-carousel-next {
        right: 4px;
    }

    .lenta-carousel-control:disabled {
        opacity: 0.32;
        cursor: default;
    }

    .modern-guest-header .guest-header-inner {
        padding: 0 16px;
    }

    .modern-guest-header .guest-header-menu {
        width: min(92vw, 420px);
        padding: calc(var(--meendo-header-height) + 18px) 18px 22px;
    }

    #footer.modern-site-footer .footer {
        width: min(100% - 32px, 560px) !important;
        min-height: 0;
        padding: 76px 0 16px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    #footer.modern-site-footer .footer-logo {
        width: 104px;
        height: 50px;
        margin-bottom: 12px;
    }

    #footer.modern-site-footer::before {
        height: 68px;
        background-size: auto 96px;
    }

    #footer.modern-site-footer .footer ul {
        gap: 10px 18px;
        margin-bottom: 14px;
        justify-content: center;
    }

    #footer.modern-site-footer .footer > a:not(.footer-logo),
    #footer.modern-site-footer .footer p {
        width: 100%;
    }
}

/*
 * Responsive public pages.
 * The legacy desktop layout has a hard 1000px minimum width. Guests now get
 * one fluid content column while the signed-in desktop interface stays intact.
 */
@media (max-width: 900px) {
    html:has(> body.guest_img_blur) {
        height: 100%;
        width: 100%;
        min-width: 0 !important;
        overflow: hidden;
    }

    body.guest_img_blur {
        box-sizing: border-box;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        min-width: 0 !important;
        padding-top: var(--meendo-header-height) !important;
        overflow: hidden;
    }

    body.guest_img_blur .table-wrapper {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        min-height: 0;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.guest_img_blur #content,
    body.guest_img_blur #content .content-holder,
    body.guest_img_blur .content-frame {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    body.guest_img_blur #content {
        flex: 1 0 auto;
    }

    body.guest_img_blur #footer.modern-site-footer {
        flex: 0 0 auto;
        min-height: 1px;
    }

    body.guest_img_blur .content-frame > .container {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    html:not(.signup24-root):not(.signup25-root) > body.guest_img_blur .container > .wrapper {
        box-sizing: border-box;
        width: min(calc(100% - 32px), 984px) !important;
        max-width: 984px !important;
        min-width: 0;
        margin-right: auto !important;
        margin-left: auto !important;
        display: flex;
        flex-direction: column;
    }

    body.guest_img_blur .container > .wrapper > .widecol,
    body.guest_img_blur .container > .wrapper > .maincol,
    body.guest_img_blur .container > .wrapper > .rightcol,
    body.guest_img_blur .container > .wrapper > .leftcol {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
        float: none !important;
    }

    body.guest_img_blur .container > .wrapper > .widecol,
    body.guest_img_blur .container > .wrapper > .maincol {
        order: 1;
    }

    body.guest_img_blur .container > .wrapper > .leftcol,
    body.guest_img_blur .container > .wrapper > .rightcol {
        order: 2;
        margin-top: 12px !important;
    }

    body.guest_img_blur.guest-profile-page .container > .wrapper > .leftcol {
        order: 0;
    }

    body.guest_img_blur.guest-profile-page .container > .wrapper > .maincol {
        order: 1;
    }

    body.guest_img_blur.guest-profile-page .container > .wrapper > .rightcol {
        order: 2;
    }

    body.guest_img_blur .box,
    body.guest_img_blur .sign-box,
    body.guest_img_blur .box > .i1,
    body.guest_img_blur .upload,
    body.guest_img_blur .fav-tagbox,
    body.guest_img_blur #tagsbox,
    body.guest_img_blur .tabs-scroll-wrap {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    body.guest_img_blur .box > h2 {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 44px;
        padding: 11px 16px;
        overflow: visible;
        font-size: 18px;
        line-height: 1.3;
    }

    body.guest_img_blur .box > h2 span,
    body.guest_img_blur .box > h2 em {
        height: auto;
        min-height: 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.guest_img_blur .box > .hd_list {
        box-sizing: border-box;
        max-width: 100%;
        height: auto;
        padding: 8px 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        position: static;
    }

    body.guest_img_blur .box > .hd_list li {
        margin: 0;
        float: none;
    }

    body.guest_img_blur .tabs-scroll-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    body.guest_img_blur .tabs-scroll-wrap .up-tabs {
        width: max-content !important;
        min-width: 100%;
    }

    body.guest_img_blur .favs.wrapper {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        padding: 0 12px 12px !important;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
        gap: 12px;
    }

    body.guest_img_blur .favs.wrapper::after {
        display: none;
    }

    body.guest_img_blur .favs.wrapper > .fav-user,
    body.guest_img_blur .favs.wrapper > .fav-photo,
    body.guest_img_blur .favs.wrapper > .fav-video,
    body.guest_img_blur .favs.wrapper > .fav-photoalbum,
    body.guest_img_blur .favs.wrapper > .fav-videoalbum {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 220px;
        height: auto !important;
        aspect-ratio: 1;
        margin: 0 auto !important;
        float: none !important;
    }

    body.guest_img_blur .favs.wrapper > .fav-user > a,
    body.guest_img_blur .favs.wrapper > .fav-photo > a,
    body.guest_img_blur .favs.wrapper > .fav-video > a,
    body.guest_img_blur .favs.wrapper > .fav-photoalbum > a,
    body.guest_img_blur .favs.wrapper > .fav-videoalbum > a,
    body.guest_img_blur .favs.wrapper > div > a > img.image,
    body.guest_img_blur .favs.wrapper > div > a > img {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        object-fit: cover;
    }

    body.guest_img_blur .user-search-inner,
    body.guest_img_blur .user-search-inner form,
    body.guest_img_blur .user-search-inner .row,
    body.guest_img_blur .user-search-inner .features,
    body.guest_img_blur #advancedSearch {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    body.guest_img_blur .user-search-inner {
        padding: 14px;
    }

    body.guest_img_blur .user-search-inner .row {
        height: auto;
        padding-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow: visible;
    }

    body.guest_img_blur .user-search-inner .row label,
    body.guest_img_blur .user-search-inner .row .fts,
    body.guest_img_blur .user-search-inner .features strong,
    body.guest_img_blur .user-search-inner .features label {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        float: none;
        white-space: normal;
    }

    body.guest_img_blur .user-search-inner .row .fts,
    body.guest_img_blur .user-search-inner .features {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    body.guest_img_blur .user-search-inner select,
    body.guest_img_blur .user-search-inner input.text {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        float: none;
        border: 1px solid #b3ccdf;
        border-radius: 8px;
        background-color: #fff;
        font-size: 16px;
    }

    body.guest_img_blur .user-search-inner .withbut .m_button,
    body.guest_img_blur .user-search-inner form > .wrap .m_button {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        margin: 2px 0 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: none;
    }

    body.guest_img_blur .user-search-inner form > .wrap {
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    body.guest_img_blur .user-search-inner .searchlink {
        margin: 0;
        float: none;
    }

    body.guest_img_blur #searchResults > .wrapper,
    body.guest_img_blur #searchResults .up-video-box.friend-box {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    body.guest_img_blur #searchResults > .wrapper {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.guest_img_blur #searchResults .act-area {
        max-width: 100%;
    }

    body.guest_img_blur #searchResults .up-video-box.friend-box {
        height: auto;
        min-height: 128px;
    }

    body.guest_img_blur .sign-content,
    body.guest_img_blur .sign-content .bot-c {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        background: none;
    }

    body.guest_img_blur .sign-content {
        padding: 20px;
    }

    body.guest_img_blur .sign-content .bot-c {
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    body.guest_img_blur .sign-content .orangebox,
    body.guest_img_blur .sign-content .bluebox {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 24px;
        float: none;
        border: 1px solid var(--meendo-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 8px 24px rgba(34, 56, 74, 0.08);
    }

    body.guest_img_blur .sign-content .orangebox .row {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 14px 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        overflow: visible;
    }

    body.guest_img_blur .sign-content .orangebox .leftcell,
    body.guest_img_blur .sign-content .orangebox .rightcell {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        float: none;
        text-align: left;
    }

    body.guest_img_blur .sign-content .orangebox input.text,
    body.guest_img_blur .sign-content .orangebox textarea,
    body.guest_img_blur .sign-content .orangebox select {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-height: 42px;
        padding: 9px 11px;
        font-size: 16px;
    }

    body.guest_img_blur .sign-content .orangebox .m_button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 640px) {
    html:not(.signup24-root):not(.signup25-root) > body.guest_img_blur .container > .wrapper {
        width: calc(100% - 24px) !important;
    }

    body.guest_img_blur .modern-branding-slot[style],
    body.guest_img_blur .modern-branding-slot[style] .background-banner,
    body.guest_img_blur .modern-branding-slot[style] #MeendoBrandCenter {
        height: 180px !important;
    }

    body.guest_img_blur .box {
        margin-top: 12px;
        border-radius: 14px;
        overflow: hidden;
    }

    body.guest_img_blur .favs.wrapper {
        padding-right: 8px !important;
        padding-left: 8px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.guest_img_blur .sign-content {
        padding: 12px;
    }

    body.guest_img_blur .sign-content .bot-c {
        grid-template-columns: 1fr;
    }

    body.guest_img_blur .sign-content .orangebox,
    body.guest_img_blur .sign-content .bluebox {
        padding: 20px 16px;
        border-radius: 14px;
    }
}

/* Collapsible guest sidebar for gallery, search, users and homepage listings. */
.guest-sidebar-toggle {
    display: none;
}

@media (min-width: 901px) {
    body.guest_img_blur .guest-users-leftcol > .kingbox {
        display: none !important;
    }
}

@media (max-width: 900px) {
    body.guest_img_blur .container > .wrapper > .leftcol.guest-inline-sidebar-source {
        display: none !important;
    }

    body.guest_img_blur .widecol > .leftcol.guest-inline-sidebar-block,
    body.guest_img_blur .maincol > .leftcol.guest-inline-sidebar-block {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        margin: 12px 0 0 !important;
        float: none !important;
    }

    body.guest_img_blur .guest-inline-sidebar-block > .box {
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 !important;
    }

    body.guest_img_blur .container > .wrapper > .guest-sidebar-toggle {
        box-sizing: border-box;
        width: 100%;
        min-height: 48px;
        margin: 12px 0 0;
        padding: 11px 14px;
        order: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border: 1px solid #c7dce8;
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 6px 18px rgba(34, 56, 74, 0.08);
        color: var(--meendo-ink);
        font: 700 15px/22px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        text-align: left;
        cursor: pointer;
    }

    body.guest_img_blur .guest-sidebar-toggle:hover,
    body.guest_img_blur .guest-sidebar-toggle:focus-visible,
    body.guest_img_blur .guest-sidebar-toggle[aria-expanded="true"] {
        border-color: #aacbdc;
        background: #f8fcfe;
        outline: none;
    }

    body.guest_img_blur .guest-sidebar-toggle-icon {
        position: relative;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    body.guest_img_blur .guest-sidebar-toggle-icon::before,
    body.guest_img_blur .guest-sidebar-toggle-icon::after {
        content: "";
        position: absolute;
        top: 8px;
        left: 2px;
        width: 14px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease;
    }

    body.guest_img_blur .guest-sidebar-toggle-icon::after {
        transform: rotate(90deg);
    }

    body.guest_img_blur .guest-sidebar-toggle[aria-expanded="true"] .guest-sidebar-toggle-icon::after {
        transform: rotate(0);
    }

    body.guest_img_blur .container > .wrapper:has(> .guest-sidebar-toggle) > .widecol,
    body.guest_img_blur .container > .wrapper:has(> .guest-sidebar-toggle) > .maincol {
        order: 2;
    }

    body.guest_img_blur .container > .wrapper > .leftcol.guest-responsive-sidebar {
        box-sizing: border-box;
        width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0;
        order: 1;
        display: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px;
    }

    body.guest_img_blur .container > .wrapper > .leftcol.guest-responsive-sidebar.is-open {
        display: grid !important;
    }

    body.guest_img_blur .leftcol.guest-responsive-sidebar > .box {
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 !important;
    }

    body.guest_img_blur .leftcol.guest-responsive-sidebar > script {
        display: none !important;
    }
}

@media (max-width: 640px) {
    body.guest_img_blur .container > .wrapper > .leftcol.guest-responsive-sidebar.is-open {
        grid-template-columns: minmax(0, 1fr);
    }

    body.guest_img_blur .container > .wrapper > .guest-sidebar-toggle {
        width: 100%;
        margin-top: 10px;
        font-size: 14px;
    }
}

/* Responsive help, feedback, privacy and terms pages */
@media (max-width: 900px) {
    html:has(> body.responsive-info-page) {
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    body.responsive-info-page {
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    body.responsive-info-page .table-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column;
    }

    body.responsive-info-page #content,
    body.responsive-info-page #content .content-holder,
    body.responsive-info-page .content-frame {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    body.responsive-info-page .content-frame > .container {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.responsive-info-page .container > .wrapper {
        box-sizing: border-box;
        width: min(100% - 32px, 984px) !important;
        max-width: 984px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    body.responsive-info-page .container > .wrapper *,
    body.responsive-info-page .widecol,
    body.responsive-info-page .leftcol {
        box-sizing: border-box;
        max-width: 100%;
    }

    body.responsive-info-page .container > .wrapper > .leftcol,
    body.responsive-info-page .container > .wrapper > .widecol {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    body.responsive-info-page .container > .wrapper > .widecol {
        margin-top: 12px;
    }

    body.responsive-info-page .box,
    body.responsive-info-page .sign-box,
    body.responsive-info-page .wrap {
        width: 100%;
        min-width: 0;
    }

    body.responsive-info-page .box > h2 {
        box-sizing: border-box;
        height: auto;
        min-height: 44px;
        padding: 11px 16px;
        font-size: 20px;
        line-height: 1.3;
    }

    body.responsive-info-page .box > h2 span {
        overflow-wrap: anywhere;
    }

    body.responsive-info-page .txt-page {
        margin: 16px 18px 0;
        color: #263746;
        font-size: 15px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

    body.responsive-info-page .txt-page p,
    body.responsive-info-page .txt-page li {
        font-size: inherit;
        line-height: inherit;
    }

    body.responsive-info-page .txt-page h4 {
        margin-top: 26px;
        color: var(--meendo-ink);
        font-size: 18px;
        line-height: 1.35;
    }

    body.responsive-info-page .txt-page ul,
    body.responsive-info-page .faq-list {
        padding-left: 22px;
    }

    body.responsive-info-page .txt-page a,
    body.responsive-info-page .faq-list a {
        overflow-wrap: anywhere;
    }

    body.responsive-info-page .sign-content,
    body.responsive-info-page .sign-content .bot-c {
        width: 100%;
        background: none;
    }

    body.responsive-info-page .sign-content .bot-c {
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.responsive-info-page .orangebox,
    body.responsive-info-page .bluebox {
        width: 100%;
        padding: 24px;
        float: none;
        border: 1px solid var(--meendo-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 8px 24px rgba(34, 56, 74, 0.08);
    }

    body.responsive-info-page .orangebox .row {
        height: auto;
        min-height: 0;
        margin: 14px 0;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    body.responsive-info-page .orangebox .leftcell,
    body.responsive-info-page .orangebox .rightcell {
        width: 100%;
        margin: 0;
        float: none;
        text-align: left;
    }

    body.responsive-info-page .orangebox .text,
    body.responsive-info-page .orangebox textarea,
    body.responsive-info-page .orangebox select {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 42px;
        padding: 9px 11px;
        font-size: 16px;
    }

    body.responsive-info-page .orangebox textarea {
        min-height: 150px;
    }

    body.responsive-info-page .orangebox .m_button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    body.responsive-info-page .bluebox ul {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    body.responsive-info-page .container > .wrapper {
        width: calc(100% - 24px) !important;
    }

    body.responsive-info-page .modern-branding-slot,
    body.responsive-info-page .modern-branding-slot .background-banner,
    body.responsive-info-page .modern-branding-slot #MeendoBrandCenter {
        height: 180px !important;
    }

    body.responsive-info-page .box > h2 {
        padding: 10px 13px;
        font-size: 18px;
    }

    body.responsive-info-page .txt-page {
        margin-right: 14px;
        margin-left: 14px;
        font-size: 14px;
        line-height: 1.6;
    }

    body.responsive-info-page .txt-page h4 {
        font-size: 17px;
    }

    body.responsive-info-page .orangebox,
    body.responsive-info-page .bluebox {
        padding: 20px 16px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .modern-guest-header.header .navigation > ul,
    .modern-guest-header .guest-auth-buttons {
        grid-template-columns: 1fr;
    }

    .modern-guest-header .modern-lang-selector {
        grid-column: 1;
    }

    #footer.modern-site-footer .footer ul {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* Keep the primary footer navigation compact on phones and small tablets. */
@media (min-width: 380px) and (max-width: 900px) {
    #footer.modern-site-footer .footer > ul:first-of-type {
        width: 100% !important;
        margin-bottom: 14px;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        align-items: center;
        gap: 8px 6px;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li {
        width: 100%;
        font-size: 11px;
        line-height: 15px;
        text-align: center;
    }
}

@media (max-width: 379px) {
    #footer.modern-site-footer .footer > ul:first-of-type {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Modern search card used on the main desktop and mobile pages. */
.modern-user-search-card {
    box-sizing: border-box;
    padding-bottom: 0;
    overflow: hidden;
    border: 1px solid #cfe1ee;
    border-radius: 18px;
    background: #f7fbfe;
    box-shadow: 0 12px 30px rgba(36, 91, 126, 0.12);
}

.modern-user-search-card > h2 {
    min-height: 58px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    background: linear-gradient(135deg, #3095c9 0%, #58afd5 100%) !important;
}

.modern-user-search-card > h2 span {
    padding: 16px 22px;
    color: #fff;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(16, 66, 96, 0.3);
}

.modern-user-search-card .user-search {
    box-sizing: border-box;
    margin: 0;
    padding: 22px;
    border: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%);
}

.modern-user-search-card .user-search form {
    display: grid;
    gap: 18px;
}

.modern-user-search-card .search-primary-fields {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.25fr);
    gap: 16px;
    align-items: end;
}

.modern-user-search-card .search-age-fields,
.modern-user-search-card .search-location-grid,
.modern-user-search-card .search-feature-options {
    display: grid;
    gap: 12px;
}

.modern-user-search-card .search-age-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modern-user-search-card .search-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modern-user-search-card .search-feature-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modern-user-search-card .search-field,
.modern-user-search-card .search-location,
.modern-user-search-card .search-features {
    min-width: 0;
}

.modern-user-search-card .search-field > label,
.modern-user-search-card .search-field > span,
.modern-user-search-card .search-section-title,
.modern-user-search-card .search-features legend {
    box-sizing: border-box;
    margin: 0 0 7px;
    padding: 0;
    display: block;
    float: none;
    color: #314b5f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.modern-user-search-card .search-features {
    margin: 0;
    padding: 0;
    border: 0;
}

.modern-user-search-card .search-features legend {
    width: 100%;
}

.modern-user-search-card .search-feature-options label {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    float: none;
    border: 1px solid #d4e3ed;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
    color: #263c4d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.modern-user-search-card .search-feature-options label:hover,
.modern-user-search-card .search-feature-options label:focus-within {
    border-color: #68add2;
    background: #fff;
    box-shadow: 0 4px 12px rgba(48, 123, 164, 0.1);
}

.modern-user-search-card .search-feature-options label:has(input:checked) {
    border-color: #3095c9;
    background: #e6f5fc;
}

.modern-user-search-card .search-feature-options input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #258fc5;
}

.modern-user-search-card select,
.modern-user-search-card input.text {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-height: 46px;
    height: 46px;
    margin: 0 !important;
    padding: 10px 40px 10px 13px;
    float: none;
    border: 1px solid #bcd3e2;
    border-radius: 11px;
    outline: none;
    background-color: #fff;
    color: #1f3444;
    font: 600 15px/1.3 Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 7px rgba(42, 89, 119, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.modern-user-search-card input.text {
    padding-right: 13px;
}

.modern-user-search-card select:hover,
.modern-user-search-card input.text:hover {
    border-color: #7fb6d5;
}

.modern-user-search-card select:focus,
.modern-user-search-card input.text:focus {
    border-color: #258fc5;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 143, 197, 0.14);
}

.modern-user-search-card .search-submit-wrap {
    display: flex;
    justify-content: flex-end;
}

.modern-user-search-card .modern-search-submit,
.modern-user-search-card .modern-search-submit span {
    box-sizing: border-box;
}

.modern-user-search-card .modern-search-submit {
    min-width: 190px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    border: 1px solid #e79d16;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd955 0%, #ffb516 100%);
    color: #35260b;
    box-shadow: 0 7px 16px rgba(218, 145, 17, 0.22);
    cursor: pointer;
    appearance: none;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.modern-user-search-card .modern-search-submit span {
    width: auto;
    height: auto;
    padding: 0 22px;
    display: block;
    background: none;
    color: inherit;
    font: 750 15px/1.2 Arial, Helvetica, sans-serif;
    text-shadow: none;
}

.modern-user-search-card .modern-search-submit:hover,
.modern-user-search-card .modern-search-submit:focus-visible {
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(218, 145, 17, 0.28);
}

.modern-user-search-card .modern-search-submit:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .modern-user-search-card {
        border-radius: 15px;
    }

    .modern-user-search-card > h2 {
        min-height: 52px;
    }

    .modern-user-search-card > h2 span {
        padding: 13px 16px;
        font-size: 18px;
    }

    .modern-user-search-card .user-search {
        padding: 16px;
    }

    .modern-user-search-card .user-search form {
        gap: 16px;
    }

    .modern-user-search-card .search-primary-fields,
    .modern-user-search-card .search-location-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .modern-user-search-card .search-feature-options {
        gap: 9px;
    }

    .modern-user-search-card .search-feature-options label {
        min-height: 44px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .modern-user-search-card .modern-search-submit {
        width: 100%;
        min-width: 0;
    }
}

.mobile-side-ads {
    display: none;
}

@media (max-width: 900px) {
    .mobile-side-ads:not(:empty) {
        box-sizing: border-box;
        width: calc(100% - 24px);
        margin: 18px auto 0;
        display: block;
    }

    .mobile-side-ads > .box,
    .mobile-interleaved-side-ad {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Responsive authenticated pages */
html.modern-user-shell-root {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
}

body.modern-user-shell {
    width: 100%;
    min-width: 0 !important;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    body.modern-user-shell .table-wrapper,
    body.modern-user-shell #content,
    body.modern-user-shell #content .content-holder,
    body.modern-user-shell #content .content-frame {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    body.modern-user-shell .content-frame > .container {
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: none;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.modern-user-shell .container > .wrapper {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        width: 100% !important;
    }

    body.modern-user-shell .container > .wrapper > div,
    body.modern-user-shell .box,
    body.modern-user-shell .box .i1,
    body.modern-user-shell .box .i2,
    body.modern-user-shell .upload,
    body.modern-user-shell .profile,
    body.modern-user-shell .settings,
    body.modern-user-shell .up-wrap,
    body.modern-user-shell .favs,
    body.modern-user-shell .messenger,
    body.modern-user-shell .mod-gifts {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    body.modern-user-shell .wrapper img,
    body.modern-user-shell .wrapper video,
    body.modern-user-shell .wrapper canvas,
    body.modern-user-shell .wrapper object,
    body.modern-user-shell .wrapper embed,
    body.modern-user-shell .wrapper iframe {
        max-width: 100%;
    }

    body.modern-user-shell .big-screen,
    body.modern-user-shell .over-screen,
    body.modern-user-shell .big-pic,
    body.modern-user-shell .big-pic .image,
    body.modern-user-shell .big-screen .image {
        box-sizing: border-box;
        max-width: 100%;
    }

    body.modern-user-shell .big-pic {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.modern-user-shell .big-pic .image,
    body.modern-user-shell .big-screen .image {
        width: auto !important;
        height: auto !important;
        max-height: calc(100vh - 220px);
        max-height: calc(100dvh - 220px);
        object-fit: contain;
    }

    body.modern-user-shell .up-wrap,
    body.modern-user-shell .favs {
        width: 100%;
    }

    body.modern-user-shell .pagination ul {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    body.modern-user-shell .pagination li {
        float: none;
    }

    body.modern-user-shell .container > .wrapper > .leftcol,
    body.modern-user-shell .container > .wrapper > .maincol,
    body.modern-user-shell .container > .wrapper > .rightcol,
    body.modern-user-shell .container > .wrapper > .widecol {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none;
        margin: 0 !important;
        float: none !important;
    }

    body.modern-user-shell .container > .wrapper > .leftcol,
    body.modern-user-shell .container > .wrapper > .maincol {
        margin-bottom: 12px !important;
    }

    body.modern-user-shell .container > .wrapper > .leftcol {
        order: -1;
    }

    body.modern-user-shell .container > .wrapper > .rightcol {
        order: 2;
    }

    body.modern-user-shell .box,
    body.modern-user-shell .sign-box {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    body.modern-user-shell .leftcol .favs,
    body.modern-user-shell .maincol .favs,
    body.modern-user-shell .maincol .profile .favs {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    body.modern-user-shell .box > h2 {
        box-sizing: border-box;
        height: auto;
        min-height: 44px;
        padding: 11px 16px;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .box > h2 span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .favs .overlay,
    body.modern-user-shell .per-photos .overlay,
    body.modern-user-shell .msg .overlay {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.modern-user-shell .content-frame > .container {
        width: calc(100% - 20px);
    }

    body.modern-user-shell .upload {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.modern-user-shell .upload .settings,
    body.modern-user-shell .settings,
    body.modern-user-shell .groupedit .settings {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.modern-user-shell .settings .row,
    body.modern-user-shell .groupedit .row,
    body.modern-user-shell .edit-row {
        box-sizing: border-box;
        width: 100% !important;
        height: auto;
        min-width: 0;
        margin: 12px 0;
        padding-right: 0;
        padding-left: 0;
        overflow: visible;
    }

    body.modern-user-shell .settings .leftcell,
    body.modern-user-shell .settings .rightcell,
    body.modern-user-shell .settings .longcell,
    body.modern-user-shell .edit-row .half {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
        float: none !important;
        text-align: left;
    }

    body.modern-user-shell .settings .rightcell {
        margin-top: 6px !important;
    }

    body.modern-user-shell .settings .leftcell .m_button {
        margin-right: 0;
        float: none;
    }

    body.modern-user-shell .settings select,
    body.modern-user-shell .settings input.text,
    body.modern-user-shell .settings input[type="text"],
    body.modern-user-shell .settings input[type="email"],
    body.modern-user-shell .settings input[type="password"],
    body.modern-user-shell .settings input[type="number"],
    body.modern-user-shell .settings textarea,
    body.modern-user-shell .groupedit select,
    body.modern-user-shell .groupedit input.text,
    body.modern-user-shell .edit-row select,
    body.modern-user-shell .edit-row input.text,
    body.modern-user-shell .edit-row textarea,
    body.modern-user-shell .edit-row .half textarea,
    body.modern-user-shell .nickname input.text,
    body.modern-user-shell .portrait textarea {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-height: 40px;
        margin-right: 0;
        margin-left: 0;
        float: none;
        font-size: 16px;
    }

    body.modern-user-shell .settings textarea,
    body.modern-user-shell .edit-row textarea,
    body.modern-user-shell .portrait textarea {
        min-height: 96px;
    }

    body.modern-user-shell .settings .text.short {
        width: 74px !important;
    }

    body.modern-user-shell .set-news {
        box-sizing: border-box;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    body.modern-user-shell .nickname {
        box-sizing: border-box;
        width: 100%;
        overflow: visible;
    }

    body.modern-user-shell .edit-row .half {
        margin-top: 16px !important;
    }

    body.modern-user-shell .edit-row .half:first-child {
        margin-top: 0 !important;
    }

    body.modern-user-shell .edit-orientation,
    body.modern-user-shell .edit-orientation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
        height: auto;
        overflow: visible;
    }

    body.modern-user-shell .edit-orientation li,
    body.modern-user-shell .edit-orientation label {
        margin: 0;
        float: none;
    }

    body.modern-user-shell .groupedit .hd {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        text-align: left;
    }

    body.modern-user-shell .groupedit .hd h3,
    body.modern-user-shell .groupedit .but {
        float: none;
    }

    body.modern-user-shell .up-tabs {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    body.modern-user-shell .up-tabs li {
        flex: 0 0 auto;
        float: none;
    }

    body.modern-user-shell .tablink {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        float: none;
        display: flex;
        flex-wrap: wrap;
    }

    body.modern-user-shell .tablink li {
        float: none;
    }

    body.modern-user-shell .up-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.modern-user-shell .up-photo,
    body.modern-user-shell .up-video {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin: 0;
        float: none;
    }

    body.modern-user-shell .up-wrap .text,
    body.modern-user-shell .up-wrap select {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    body.modern-user-shell .widecol .favs:not(.hidden) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-right: 0;
        padding-left: 0;
    }

    body.modern-user-shell .widecol .favs > .fav-user,
    body.modern-user-shell .widecol .favs > .fav-photo,
    body.modern-user-shell .widecol .favs > .fav-video,
    body.modern-user-shell .widecol .favs > .fav-photoalbum,
    body.modern-user-shell .widecol .favs > .fav-videoalbum {
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
        aspect-ratio: 1;
    }

    body.modern-user-shell .widecol .favs > .fav-user > .image,
    body.modern-user-shell .widecol .favs > .fav-photo > .image,
    body.modern-user-shell .widecol .favs > .fav-video > .image,
    body.modern-user-shell .widecol .favs > .fav-photoalbum > .image,
    body.modern-user-shell .widecol .favs > .fav-videoalbum > .image,
    body.modern-user-shell .widecol .favs > div > a > img {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    body.modern-user-shell #tabs_load,
    body.modern-user-shell .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.modern-user-shell .upload > table.msg,
    body.modern-user-shell .upload > table.wallet {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.modern-user-shell .msg {
        min-width: 620px;
    }

    body.modern-user-shell .wallet {
        min-width: 560px;
    }

    body.modern-user-shell .msg td.txtcell .wrap,
    body.modern-user-shell #tabs_load .msg td.txtcell .wrap {
        width: auto;
        min-width: 180px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .msg-area {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        min-height: 30px;
    }

    body.modern-user-shell .msg-but,
    body.modern-user-shell .msg-area .pagination,
    body.modern-user-shell .upload .msg-area .pagination {
        width: auto;
        max-width: 100%;
        padding: 0;
        float: none;
    }

    body.modern-user-shell .album-selector,
    body.modern-user-shell .upload-video .pagination,
    body.modern-user-shell .added-date,
    body.modern-user-shell .up-hd .added {
        width: 100%;
        margin-top: 8px;
        float: none;
    }

    body.modern-user-shell .album-selector select {
        box-sizing: border-box;
        width: 100%;
        font-size: 16px;
    }

    body.modern-user-shell .user-search-inner {
        box-sizing: border-box;
        width: 100%;
        padding: 12px;
    }

    body.modern-user-shell .user-search-inner .row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        overflow: visible;
    }

    body.modern-user-shell .user-search-inner .row label,
    body.modern-user-shell .user-search-inner .row label:first-child,
    body.modern-user-shell .user-search-inner .row .fts,
    body.modern-user-shell #advs {
        padding: 0;
        float: none;
    }

    body.modern-user-shell .user-search-inner select,
    body.modern-user-shell .user-search-inner input.text {
        box-sizing: border-box;
        width: auto;
        max-width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        float: none;
        font-size: 16px;
    }

    body.modern-user-shell .user-search-inner select.country,
    body.modern-user-shell .user-search-inner select.region,
    body.modern-user-shell .user-search-inner select.city {
        min-width: min(190px, 100%);
        flex: 1 1 190px;
    }

    body.modern-user-shell .user-search-inner input.age {
        width: 62px;
        flex: 0 0 62px;
    }

    body.modern-user-shell div.features {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    body.modern-user-shell div.features strong,
    body.modern-user-shell div.features label {
        padding: 0;
        float: none;
        white-space: normal;
    }

    body.modern-user-shell .stat-change {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        float: none;
    }

    body.modern-user-shell .send-wall textarea,
    body.modern-user-shell .upload .send-wall textarea,
    body.modern-user-shell .send-wall #commentText.message-area,
    body.modern-user-shell .upload .send-wall #commentText.message-area {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        font-size: 16px;
    }

    body.modern-user-shell .maincol .wall,
    body.modern-user-shell .wall {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    body.modern-user-shell .wall .txt,
    body.modern-user-shell .upload .wall .txt {
        box-sizing: border-box;
        width: calc(100% - 68px);
        max-width: calc(100% - 68px);
        padding-left: 8px;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .friend-main,
    body.modern-user-shell .friend-side {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        float: none;
    }

    body.modern-user-shell .friend-side {
        margin-top: 10px;
    }

    body.modern-user-shell .friend-side ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
    }

    body.modern-user-shell .carousel .overflow {
        box-sizing: border-box;
        width: calc(100% - 28px);
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.modern-user-shell .carousel ul {
        width: max-content;
        min-width: 100%;
    }

    body.modern-user-shell .king-history {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    body.modern-user-shell .king-history .dates,
    body.modern-user-shell .king-history .friend-main {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    body.modern-user-shell .alb-info .col1,
    body.modern-user-shell .alb-tools {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        float: none;
    }

    body.modern-user-shell .tabl-holder {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: none;
    }

    body.modern-user-shell .tabl-holder .inner {
        min-width: 660px;
        background: none;
    }

    body.modern-user-shell .up-hd {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    body.modern-user-shell .content-frame > .container {
        width: calc(100% - 16px);
    }

    body.modern-user-shell .box > h2 {
        min-height: 42px;
        padding: 10px 13px;
        font-size: 18px;
        line-height: 1.3;
    }

    body.modern-user-shell .upload {
        padding-right: 10px;
        padding-left: 10px;
    }

    body.modern-user-shell .up-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    body.modern-user-shell .settings .m_button,
    body.modern-user-shell .groupedit .m_button,
    body.modern-user-shell .upload > .m_button {
        box-sizing: border-box;
        max-width: 100%;
    }

    body.modern-user-shell .act-area {
        margin-right: 4px;
        margin-left: 0;
    }

    body.modern-user-shell .act-area strong {
        max-width: calc(100vw - 48px);
    }

    body.modern-user-shell .act-area ul,
    body.modern-user-shell .msg-but ul {
        max-width: calc(100vw - 32px);
    }

    body.modern-user-shell .act-area li a,
    body.modern-user-shell .msg-but li a {
        box-sizing: border-box;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .king-history {
        min-height: 0;
        padding: 12px;
    }

    body.modern-user-shell .king-history .ava {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 12px;
    }
}

/*
 * Final mobile containment for legacy blocks that still receive desktop
 * dimensions from inline styles or advertising scripts after page load.
 */
@media (max-width: 900px) {
    body.guest_img_blur .modern-branding-slot,
    body.modern-user-shell .modern-branding-slot,
    body.responsive-info-page .modern-branding-slot,
    body.advertising-body .modern-branding-slot,
    body.guest_img_blur .modern-branding-slot[style],
    body.modern-user-shell .modern-branding-slot[style],
    body.responsive-info-page .modern-branding-slot[style],
    body.advertising-body .modern-branding-slot[style] {
        box-sizing: border-box;
        width: 100vw !important;
        max-width: 100vw !important;
        height: clamp(132px, 26vw, 180px) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.guest_img_blur .modern-branding-slot .background-banner,
    body.modern-user-shell .modern-branding-slot .background-banner,
    body.responsive-info-page .modern-branding-slot .background-banner,
    body.advertising-body .modern-branding-slot .background-banner,
    body.guest_img_blur .modern-branding-slot #MeendoBrandCenter,
    body.modern-user-shell .modern-branding-slot #MeendoBrandCenter,
    body.responsive-info-page .modern-branding-slot #MeendoBrandCenter,
    body.advertising-body .modern-branding-slot #MeendoBrandCenter {
        box-sizing: border-box;
        width: 100vw !important;
        max-width: 100vw !important;
        height: clamp(132px, 26vw, 180px) !important;
        overflow: hidden !important;
    }

    body.guest_img_blur .modern-branding-slot .background-banner,
    body.modern-user-shell .modern-branding-slot .background-banner,
    body.responsive-info-page .modern-branding-slot .background-banner,
    body.advertising-body .modern-branding-slot .background-banner {
        background-position: top center !important;
        background-size: cover !important;
    }

    body.guest_img_blur #m_ads,
    body.modern-user-shell #m_ads,
    body.responsive-info-page #m_ads,
    body.advertising-body #m_ads,
    body.guest_img_blur .m_ads,
    body.modern-user-shell .m_ads,
    body.responsive-info-page .m_ads,
    body.advertising-body .m_ads,
    body.guest_img_blur .topbp,
    body.modern-user-shell .topbp,
    body.guest_img_blur .centerspot,
    body.modern-user-shell .centerspot,
    body.guest_img_blur .floatspot,
    body.modern-user-shell .floatspot {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow: hidden !important;
    }

    body.guest_img_blur #m_ads img,
    body.modern-user-shell #m_ads img,
    body.responsive-info-page #m_ads img,
    body.advertising-body #m_ads img,
    body.guest_img_blur #m_ads iframe,
    body.modern-user-shell #m_ads iframe,
    body.responsive-info-page #m_ads iframe,
    body.advertising-body #m_ads iframe,
    body.guest_img_blur .topbp img,
    body.modern-user-shell .topbp img,
    body.guest_img_blur .centerspot img,
    body.modern-user-shell .centerspot img,
    body.guest_img_blur .floatspot img,
    body.modern-user-shell .floatspot img {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /*
     * This legacy prompt offers the separate mobile site. It is redundant on
     * the responsive layout and its four-em desktop text breaks the viewport.
     */
    .cookies-panel.white {
        display: none !important;
    }
}

@media (max-width: 900px) {
    body.modern-user-shell .box,
    body.modern-user-shell .box > .i1,
    body.modern-user-shell .upload {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    body.modern-user-shell .box > h2 {
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        min-height: 44px;
        padding: 11px 16px;
        display: flex;
        align-items: center;
        overflow: visible;
        font-size: 18px;
        line-height: 1.3;
    }

    body.modern-user-shell .box > h2 span,
    body.modern-user-shell .box > h2 em {
        box-sizing: border-box;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 0;
        display: block;
        overflow-wrap: normal;
        word-break: normal;
    }

    body.modern-user-shell .box > .hd_list {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 8px 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        position: static;
    }

    body.modern-user-shell .box > .hd_list li {
        margin: 0;
        float: none;
    }

    body.modern-user-shell .user-search-inner,
    body.modern-user-shell .user-search-inner form,
    body.modern-user-shell .user-search-inner .row,
    body.modern-user-shell .user-search-inner .features,
    body.modern-user-shell .user-search-inner .fts,
    body.modern-user-shell .user-search-inner .withbut,
    body.modern-user-shell #advancedSearch {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.modern-user-shell .user-search-inner {
        padding: 14px;
    }

    body.modern-user-shell .user-search-inner .row,
    body.modern-user-shell .user-search-inner .row.withbut {
        height: auto !important;
        min-height: 0;
        padding-bottom: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        overflow: visible;
    }

    body.modern-user-shell .user-search-inner .row > label,
    body.modern-user-shell .user-search-inner .row > label:first-child,
    body.modern-user-shell .user-search-inner .row .fts,
    body.modern-user-shell .user-search-inner .features > strong {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        float: none;
        white-space: normal;
    }

    body.modern-user-shell .user-search-inner .fts,
    body.modern-user-shell .user-search-inner .features {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    body.modern-user-shell .user-search-inner .fts label,
    body.modern-user-shell .user-search-inner .features label {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 5px;
        float: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .user-search-inner .fts input,
    body.modern-user-shell .user-search-inner .features input {
        flex: 0 0 auto;
    }

    body.modern-user-shell .user-search-inner select,
    body.modern-user-shell .user-search-inner select.gender,
    body.modern-user-shell .user-search-inner select.country,
    body.modern-user-shell .user-search-inner select.region,
    body.modern-user-shell .user-search-inner select.city {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 42px;
        padding: 8px 10px;
        flex: none;
        float: none;
        border: 1px solid #b3ccdf;
        border-radius: 8px;
        background-color: #fff;
        font-size: 16px;
    }

    body.modern-user-shell .user-search-inner input.age {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 42px;
        padding: 8px 10px;
        flex: none;
        float: none;
        border: 1px solid #b3ccdf;
        border-radius: 8px;
        background-color: #fff;
        font-size: 16px;
    }

    body.modern-user-shell .user-search-inner .withbut .m_button,
    body.modern-user-shell .user-search-inner form > .wrap .m_button {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: none;
    }

    body.modern-user-shell .user-search-inner .withbut .m_button span,
    body.modern-user-shell .user-search-inner form > .wrap .m_button span {
        box-sizing: border-box;
        width: 100%;
        text-align: center;
    }

    body.modern-user-shell .user-search-inner form > .wrap {
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    body.modern-user-shell .user-search-inner .searchlink {
        margin: 0;
        float: none;
    }

    body.modern-user-shell .widecol .favs:not(.hidden) {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        padding: 0 12px 12px !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.modern-user-shell .widecol .favs:not(.hidden)::after {
        display: none;
    }

    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-user,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-photo,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-video,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-photoalbum,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-videoalbum {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 220px;
        height: auto !important;
        aspect-ratio: 1;
        margin: 0 auto !important;
        float: none !important;
    }

    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-user > a,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-photo > a,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-video > a,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-photoalbum > a,
    body.modern-user-shell .widecol .favs:not(.hidden) > .fav-videoalbum > a,
    body.modern-user-shell .widecol .favs:not(.hidden) > div > a > img.image,
    body.modern-user-shell .widecol .favs:not(.hidden) > div > a > img {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        object-fit: cover;
    }
}

/* Authenticated listing/search blocks: tablet and phone composition. */
@media (max-width: 900px) {
    html.modern-user-shell-root {
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.modern-user-shell {
        box-sizing: border-box;
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.modern-user-shell .table-wrapper {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 100%;
        height: auto !important;
        display: flex !important;
        flex-direction: column;
        overflow-x: hidden !important;
    }

    body.modern-user-shell #content,
    body.modern-user-shell #content .content-holder,
    body.modern-user-shell #content .content-frame {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    body.modern-user-shell #content {
        flex: 1 0 auto;
    }

    body.modern-user-shell #footer.modern-site-footer {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto;
        overflow-x: hidden;
    }

    body.modern-user-shell .content-frame > .container {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.modern-user-shell .container > .wrapper {
        box-sizing: border-box;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        min-width: 0 !important;
        margin-right: auto !important;
        margin-left: auto !important;
        position: relative;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        overflow: visible;
    }

    body.modern-user-shell .container > .wrapper > .widecol,
    body.modern-user-shell .container > .wrapper > .maincol,
    body.modern-user-shell .container > .wrapper > .leftcol,
    body.modern-user-shell .container > .wrapper > .rightcol,
    body.modern-user-shell .box,
    body.modern-user-shell .box > .i1,
    body.modern-user-shell .upload {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

    body.modern-user-shell .warning-news,
    body.advertising-body .warning-news {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 16px 0 !important;
        padding: 16px 42px 16px 16px !important;
        align-items: flex-start !important;
        gap: 8px 12px !important;
        overflow: hidden !important;
    }

    body.modern-user-shell .warning-news::before,
    body.advertising-body .warning-news::before {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    body.modern-user-shell .warning-news > strong:first-child,
    body.modern-user-shell .warning-news > p,
    body.modern-user-shell .warning-news > a:not(.close),
    body.advertising-body .warning-news > strong:first-child,
    body.advertising-body .warning-news > p,
    body.advertising-body .warning-news > a:not(.close) {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.modern-user-shell .warning-news > p,
    body.advertising-body .warning-news > p {
        width: calc(100% - 50px) !important;
        flex: 1 1 calc(100% - 50px) !important;
    }

    #footer.modern-site-footer .footer,
    #footer.modern-site-footer .footer ul,
    #footer.modern-site-footer .footer li,
    #footer.modern-site-footer .footer a,
    #footer.modern-site-footer .footer p {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal;
    }

    .lenta-carousel {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 0 42px;
        overflow: hidden;
    }

    .lenta-carousel .lenta {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
        padding: 3px 8px 8px;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #8bbbd4 transparent;
    }

    .lenta-carousel .lenta::-webkit-scrollbar {
        display: block;
        height: 5px;
    }

    .lenta-carousel .lenta::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #8bbbd4;
    }

    .lenta-carousel .lenta-button,
    .lenta-carousel .lenta-item {
        display: block !important;
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }

    .lenta-carousel .lenta-item:nth-child(n+10) {
        display: block !important;
    }

    .lenta-carousel-control {
        position: absolute;
        top: 50%;
        z-index: 4;
        box-sizing: border-box;
        width: 34px;
        height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--meendo-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 5px 16px rgba(34, 56, 74, 0.14);
        color: var(--meendo-ink);
        font: 700 31px/1 Arial, sans-serif;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .lenta-carousel-prev {
        left: 4px;
    }

    .lenta-carousel-next {
        right: 4px;
    }

    .lenta-carousel-control:disabled {
        opacity: 0.32;
        cursor: default;
    }

    body.modern-user-shell .user-search-inner,
    body.modern-user-shell .user-search-inner form {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child {
        box-sizing: border-box;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: max-content minmax(130px, 1fr) max-content 72px max-content 72px;
        align-items: center;
        gap: 10px;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child > label,
    body.modern-user-shell .user-search-inner form > .row:first-child > label:first-child {
        width: auto !important;
        margin: 0;
        padding: 0;
        display: block !important;
        color: #17212b !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child > select,
    body.modern-user-shell .user-search-inner form > .row:first-child > input {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        display: block !important;
        color: #17212b !important;
        background: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child > .fts {
        grid-column: 1 / -1;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px 14px;
    }

    body.modern-user-shell .user-search-inner .fts label,
    body.modern-user-shell .user-search-inner .features label {
        min-height: 26px;
        display: flex !important;
        align-items: center;
        color: #17212b !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .user-search-inner form > .features {
        box-sizing: border-box;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 8px 14px;
    }

    body.modern-user-shell .user-search-inner form > .features > strong {
        grid-column: 1 / -1;
        color: #17212b !important;
    }

    body.modern-user-shell .user-search-inner form > .row.withbut {
        box-sizing: border-box;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(110px, auto);
        align-items: center;
        gap: 8px;
    }

    body.modern-user-shell .user-search-inner form > .features + .row {
        box-sizing: border-box;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: max-content repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
    }

    body.modern-user-shell .user-search-inner form > .features + .row > label {
        width: auto !important;
        color: #17212b !important;
    }

    body.modern-user-shell .user-search-inner select,
    body.modern-user-shell .user-search-inner input.text {
        box-sizing: border-box;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        display: block !important;
        color: #17212b !important;
        background: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .user-search-inner .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 42px;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        align-items: start;
        gap: 12px !important;
        overflow: visible;
    }

    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > .fav-user,
    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > .fav-photo,
    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > .fav-video,
    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > .fav-photoalbum,
    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > .fav-videoalbum {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        display: block !important;
        aspect-ratio: 1;
        float: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > div > a {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > div > a > img,
    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) > div > a > .image {
        box-sizing: border-box;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        display: block !important;
        object-fit: cover;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Advertising uses a full-width page canvas; keep global notices in the regular site column. */
body.advertising-body .content-frame > .container > .warning-news,
body.advertising-body .content-frame > .container > .warning-error#ttt,
body.advertising-body .content-frame > .container > .warning-ok#ttt {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (max-width: 480px) {
    body.advertising-body .content-frame > .container > .warning-news,
    body.advertising-body .content-frame > .container > .warning-error#ttt,
    body.advertising-body .content-frame > .container > .warning-ok#ttt {
        width: calc(100% - 16px) !important;
    }
}

/* Keep the compact search gender and age controls on one exact height. */
.modern-search-page-compact .search-page-compact-primary > select.gender,
.modern-search-page-compact .search-page-compact-primary > input.text.age {
    box-sizing: border-box !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: block !important;
    line-height: 24px !important;
    vertical-align: middle !important;
}

.modern-search-page-compact .search-page-compact-primary > input.text.age {
    padding-right: 13px !important;
    padding-left: 13px !important;
    text-align: left !important;
}

@media (min-width: 701px) {
    .modern-search-page-compact .search-page-compact-primary > select.gender,
    .modern-search-page-compact .search-page-compact-primary > input.text.age {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }
}

@media (min-width: 901px) {
    body.guest_img_blur .modern-search-page-compact .search-page-compact-primary,
    body.modern-user-shell .modern-search-page-compact .search-page-compact-primary {
        grid-template-columns: minmax(280px, 1fr) max-content max-content !important;
        justify-content: start !important;
        column-gap: 18px !important;
    }

    body.guest_img_blur .modern-search-page-compact .search-page-compact-primary > label,
    body.guest_img_blur .modern-search-page-compact .search-page-compact-primary > label:first-child,
    body.modern-user-shell .modern-search-page-compact .search-page-compact-primary > label,
    body.modern-user-shell .modern-search-page-compact .search-page-compact-primary > label:first-child {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
        white-space: nowrap;
    }

    body.guest_img_blur .modern-search-page-compact .search-compact-pair,
    body.modern-user-shell .modern-search-page-compact .search-compact-pair {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    body.guest_img_blur .modern-search-page-compact .search-compact-pair > label,
    body.modern-user-shell .modern-search-page-compact .search-compact-pair > label {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        color: #314b5f !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 22px !important;
        white-space: nowrap;
    }

    body.guest_img_blur .modern-search-page-compact .search-compact-gender select,
    body.modern-user-shell .modern-search-page-compact .search-compact-gender select {
        min-width: 220px !important;
        flex: 1 1 auto;
    }

    body.guest_img_blur .modern-search-page-compact .search-compact-age input.age,
    body.modern-user-shell .modern-search-page-compact .search-compact-age input.age {
        width: 76px !important;
        flex: 0 0 76px;
    }

    body.guest_img_blur .modern-search-page-compact .search-feature-options,
    body.modern-user-shell .modern-search-page-compact .search-feature-options {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .modern-search-page-compact .search-page-compact-primary {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .modern-search-page-compact .search-compact-pair {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(105px, auto) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .modern-search-page-compact .search-compact-pair > label {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    .modern-search-page-compact .search-feature-options {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    body.modern-user-shell .container > .wrapper {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    body.modern-user-shell .user-search-inner form > .row:first-child > .fts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.modern-user-shell .user-search-inner form > .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.modern-user-shell .user-search-inner form > .row.withbut,
    body.modern-user-shell .user-search-inner form > .features + .row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.modern-user-shell .user-search-inner form > .features + .row > label {
        width: 100% !important;
    }

    body.modern-user-shell .widecol .favs.wrapper:not(.hidden) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/*
 * Keep every advertising and sidebar block available on responsive pages.
 * Third-party creatives that support fluid sizing shrink to the column;
 * fixed-width creatives remain usable through local horizontal scrolling.
 */
@media (max-width: 900px) {
    body.guest_img_blur .container > .wrapper > .leftcol:not(.guest-inline-sidebar-source),
    body.guest_img_blur .container > .wrapper > .rightcol,
    body.modern-user-shell .container > .wrapper > .leftcol,
    body.modern-user-shell .container > .wrapper > .rightcol,
    body.responsive-info-page .container > .wrapper > .leftcol,
    body.responsive-info-page .container > .wrapper > .rightcol {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.guest_img_blur .guest-inline-sidebar-block,
    body.guest_img_blur .guest-inline-sidebar-block > .box,
    body.guest_img_blur .sidebp,
    body.modern-user-shell .sidebp,
    body.responsive-info-page .sidebp,
    body.advertising-body .sidebp,
    body.guest_img_blur #m_ads,
    body.modern-user-shell #m_ads,
    body.responsive-info-page #m_ads,
    body.advertising-body #m_ads,
    body.guest_img_blur .m_ads,
    body.modern-user-shell .m_ads,
    body.responsive-info-page .m_ads,
    body.advertising-body .m_ads,
    body.guest_img_blur .topbp,
    body.modern-user-shell .topbp,
    body.guest_img_blur .centerspot,
    body.modern-user-shell .centerspot,
    body.guest_img_blur .floatspot,
    body.modern-user-shell .floatspot,
    #footer.modern-site-footer .teasers {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    body.guest_img_blur .sidebp,
    body.modern-user-shell .sidebp,
    body.responsive-info-page .sidebp,
    body.advertising-body .sidebp {
        margin: 12px 0 0 !important;
        padding: 0 0 12px;
        overflow: hidden !important;
    }

    #footer.modern-site-footer .teasers {
        width: min(984px, calc(100% - 24px)) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding-top: 18px;
    }

    body.guest_img_blur .sidebp > center,
    body.modern-user-shell .sidebp > center,
    body.responsive-info-page .sidebp > center,
    body.advertising-body .sidebp > center,
    #footer.modern-site-footer .teasers > center {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    body.guest_img_blur .sidebp > center > div,
    body.modern-user-shell .sidebp > center > div,
    body.responsive-info-page .sidebp > center > div,
    body.advertising-body .sidebp > center > div,
    body.guest_img_blur .sidebp a,
    body.modern-user-shell .sidebp a,
    body.responsive-info-page .sidebp a,
    body.advertising-body .sidebp a {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }

    body.guest_img_blur .sidebp img,
    body.modern-user-shell .sidebp img,
    body.responsive-info-page .sidebp img,
    body.advertising-body .sidebp img,
    body.guest_img_blur #m_ads img,
    body.modern-user-shell #m_ads img,
    body.responsive-info-page #m_ads img,
    body.advertising-body #m_ads img,
    body.guest_img_blur .topbp img,
    body.modern-user-shell .topbp img,
    body.guest_img_blur .centerspot img,
    body.modern-user-shell .centerspot img,
    body.guest_img_blur .floatspot img,
    body.modern-user-shell .floatspot img,
    #footer.modern-site-footer .teasers img {
        box-sizing: border-box;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin-right: auto;
        margin-left: auto;
        object-fit: contain;
    }

    body.guest_img_blur .sidebp img,
    body.modern-user-shell .sidebp img,
    body.responsive-info-page .sidebp img,
    body.advertising-body .sidebp img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 620px !important;
        max-height: min(72svh, 620px) !important;
        height: auto !important;
        object-fit: contain;
    }

    body.guest_img_blur .sidebp iframe,
    body.modern-user-shell .sidebp iframe,
    body.responsive-info-page .sidebp iframe,
    body.advertising-body .sidebp iframe,
    body.guest_img_blur #m_ads iframe,
    body.modern-user-shell #m_ads iframe,
    body.responsive-info-page #m_ads iframe,
    body.advertising-body #m_ads iframe,
    body.guest_img_blur .topbp iframe,
    body.modern-user-shell .topbp iframe,
    body.guest_img_blur .centerspot iframe,
    body.modern-user-shell .centerspot iframe,
    body.guest_img_blur .floatspot iframe,
    body.modern-user-shell .floatspot iframe,
    #footer.modern-site-footer .teasers iframe {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        margin-right: auto !important;
        margin-left: auto !important;
        border: 0;
    }

    body.guest_img_blur .sidebp iframe,
    body.modern-user-shell .sidebp iframe,
    body.responsive-info-page .sidebp iframe,
    body.advertising-body .sidebp iframe {
        width: auto !important;
        max-width: 100% !important;
        max-height: 620px !important;
        max-height: min(72svh, 620px) !important;
    }

    body.guest_img_blur .sidebp object,
    body.modern-user-shell .sidebp object,
    body.guest_img_blur .sidebp embed,
    body.modern-user-shell .sidebp embed,
    body.guest_img_blur #m_ads object,
    body.modern-user-shell #m_ads object,
    body.guest_img_blur #m_ads embed,
    body.modern-user-shell #m_ads embed,
    #footer.modern-site-footer .teasers object,
    #footer.modern-site-footer .teasers embed {
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    #footer.modern-site-footer .teasers {
        width: calc(100% - 16px) !important;
        padding-top: 12px;
    }

    body.guest_img_blur .leftcol .friends-list,
    body.modern-user-shell .leftcol .friends-list {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 14px 16px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.guest_img_blur .leftcol .friends-list > li,
    body.modern-user-shell .leftcol .friends-list > li {
        width: auto;
        min-width: 0;
        padding: 0;
        float: none;
    }

    body.guest_img_blur .leftcol .friends-list > li > a,
    body.modern-user-shell .leftcol .friends-list > li > a {
        width: 100%;
        aspect-ratio: 1;
        display: block;
        overflow: hidden;
        border-radius: 12px;
    }

    body.guest_img_blur .leftcol .friends-list > li > a .image,
    body.modern-user-shell .leftcol .friends-list > li > a .image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    body.guest_img_blur .leftcol .friends-list .overlay,
    body.modern-user-shell .leftcol .friends-list .overlay {
        display: none !important;
    }

    body.guest_img_blur .leftcol .related-users-box .favs.wrapper,
    body.modern-user-shell .leftcol .related-users-box .favs.wrapper {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 14px 16px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user,
    body.modern-user-shell .leftcol .related-users-box .fav-user {
        width: auto;
        min-width: 0;
        height: auto;
        margin: 0;
        float: none;
        aspect-ratio: 1;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user > a,
    body.modern-user-shell .leftcol .related-users-box .fav-user > a,
    body.guest_img_blur .leftcol .related-users-box .fav-user > a .image,
    body.modern-user-shell .leftcol .related-users-box .fav-user > a .image {
        width: 100% !important;
        height: 100% !important;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user .overlay,
    body.modern-user-shell .leftcol .related-users-box .fav-user .overlay {
        display: none !important;
    }
}

/* Keep missing-avatar placeholders inside the desktop friends hover card. */
body.guest_img_blur .leftcol .friends-list .overlay .double-pic img,
body.modern-user-shell .leftcol .friends-list .overlay .double-pic img {
    box-sizing: border-box;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: cover;
}

body.guest_img_blur .leftcol .related-users-box .related-users-head,
body.modern-user-shell .leftcol .related-users-box .related-users-head {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.guest_img_blur .leftcol .related-users-box .related-users-head h3,
body.modern-user-shell .leftcol .related-users-box .related-users-head h3 {
    min-width: 0;
    flex: 1 1 auto;
    float: none;
    font-size: 12px;
    line-height: 17px;
    white-space: normal;
}

body.guest_img_blur .leftcol .related-users-box .related-users-head a,
body.modern-user-shell .leftcol .related-users-box .related-users-head a {
    flex: 0 0 auto;
}

.mobile-sidebar-order-target:empty {
    display: none;
}

@media (max-width: 900px) {
    body.modern-user-shell .mobile-sidebar-order-target {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none;
        margin: 12px 0 0 !important;
        float: none !important;
    }

    body.modern-user-shell .mobile-profile-friends-target,
    body.modern-user-shell .mobile-profile-related-users-target {
        margin-top: 0 !important;
    }

    body.modern-user-shell .mobile-photo-sidebar-target > .profile-user-friends-block,
    body.modern-user-shell .mobile-video-sidebar-target > .profile-user-friends-block {
        margin-bottom: 12px;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
    }

    body.modern-user-shell .mobile-sidebar-order-target > .related-users-box {
        margin: 0 !important;
    }

    /* Photo/video detail action bar: larger touch targets on mobile. */
    body.modern-user-shell .upload > .msg-area,
    body.guest_img_blur .upload > .msg-area {
        gap: 10px;
        margin: 14px 0 16px;
        padding: 12px;
    }

    body.modern-user-shell .upload > .msg-area > .act-area,
    body.guest_img_blur .upload > .msg-area > .act-area {
        margin: 0;
    }

    body.modern-user-shell .upload > .msg-area .act-area span,
    body.guest_img_blur .upload > .msg-area .act-area span,
    body.modern-user-shell .upload > .msg-area .act-area > a,
    body.guest_img_blur .upload > .msg-area .act-area > a {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 15px;
    }

    body.modern-user-shell .upload > .msg-area .act-area em,
    body.guest_img_blur .upload > .msg-area .act-area em {
        transform: scale(1.15);
        transform-origin: left center;
    }

    body.modern-user-shell .upload > .msg-area .act-area .like em,
    body.guest_img_blur .upload > .msg-area .act-area .like em,
    body.modern-user-shell .upload > .msg-area .act-area.like em,
    body.guest_img_blur .upload > .msg-area .act-area.like em {
        width: 28px !important;
        height: 28px !important;
        transform: none;
    }

    body.modern-user-shell .upload > .msg-area .act-area .like em::before,
    body.guest_img_blur .upload > .msg-area .act-area .like em::before,
    body.modern-user-shell .upload > .msg-area .act-area.like em::before,
    body.guest_img_blur .upload > .msg-area .act-area.like em::before {
        font-size: 28px;
    }

    body.modern-user-shell .upload > .msg-area > .pagination,
    body.guest_img_blur .upload > .msg-area > .pagination {
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 8px;
        margin: 4px 0 0;
        padding: 0;
    }

    body.modern-user-shell .upload > .msg-area .pagination .count,
    body.guest_img_blur .upload > .msg-area .pagination .count {
        margin-right: 0;
        padding: 8px 10px;
        font-size: 14px;
    }

    body.modern-user-shell .upload > .msg-area .pagination ul,
    body.guest_img_blur .upload > .msg-area .pagination ul {
        display: flex;
        flex: 1 1 auto;
        gap: 8px;
    }

    body.modern-user-shell .upload > .msg-area .pagination .pg-prev,
    body.guest_img_blur .upload > .msg-area .pagination .pg-prev,
    body.modern-user-shell .upload > .msg-area .pagination .pg-next,
    body.guest_img_blur .upload > .msg-area .pagination .pg-next {
        flex: 1 1 0;
    }

    body.modern-user-shell .upload > .msg-area .pagination .pg-prev a,
    body.guest_img_blur .upload > .msg-area .pagination .pg-prev a,
    body.modern-user-shell .upload > .msg-area .pagination .pg-next a,
    body.guest_img_blur .upload > .msg-area .pagination .pg-next a {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 15px;
        border-radius: 8px;
    }

    body.modern-user-shell .upload .alb-info,
    body.guest_img_blur .upload .alb-info {
        gap: 10px;
        margin: 12px 0 16px;
        padding: 12px;
    }

    body.modern-user-shell .upload .alb-info .alb-tools > div,
    body.guest_img_blur .upload .alb-info .alb-tools > div {
        min-height: 40px;
        padding: 6px 12px;
        font-size: 15px;
    }

    body.modern-user-shell .upload .alb-info > .act-area,
    body.guest_img_blur .upload .alb-info > .act-area {
        flex: 1 1 auto;
    }

    body.modern-user-shell .upload .alb-info > .act-area span,
    body.guest_img_blur .upload .alb-info > .act-area span {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        padding: 8px 12px;
        font-size: 15px;
    }

    body.modern-user-shell .upload .alb-info .alb-txt,
    body.guest_img_blur .upload .alb-info .alb-txt {
        font-size: 14px;
        line-height: 1.45;
    }

    /* Keep photo/video blue block header visible under the fixed site header. */
    body.modern-user-shell #photoLoad,
    body.guest_img_blur #photoLoad,
    body.modern-user-shell #videoLoad,
    body.guest_img_blur #videoLoad,
    body.modern-user-shell .widecol > .box,
    body.guest_img_blur .widecol > .box {
        overflow: visible;
    }

    body.modern-user-shell #photoLoad > h2.bredcrumbs,
    body.guest_img_blur #photoLoad > h2.bredcrumbs,
    body.modern-user-shell #videoLoad > h2.bredcrumbs,
    body.guest_img_blur #videoLoad > h2.bredcrumbs,
    body.modern-user-shell .widecol > .box > h2.bredcrumbs,
    body.guest_img_blur .widecol > .box > h2.bredcrumbs {
        position: sticky;
        top: var(--meendo-header-height);
        z-index: 45;
        margin: 0;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 2px 8px rgba(23, 52, 74, 0.12);
    }
}

@media (min-width: 641px) {
    body.guest_img_blur .maincol .fav-vote,
    body.modern-user-shell .maincol .fav-vote {
        overflow: visible;
    }

    body.guest_img_blur .maincol .fav-vote:hover,
    body.modern-user-shell .maincol .fav-vote:hover {
        z-index: 120;
    }

    body.guest_img_blur .maincol .fav-vote:hover .overlay,
    body.modern-user-shell .maincol .fav-vote:hover .overlay {
        left: 50%;
        top: 72px;
        z-index: 120;
        box-sizing: border-box;
        width: 194px;
        padding: 0;
        overflow: hidden;
        border: 1px solid #b9cbd6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 14px 34px rgba(25, 55, 75, 0.24);
        transform: translateX(-50%);
    }

    body.guest_img_blur .maincol .fav-vote .overlay .i1,
    body.modern-user-shell .maincol .fav-vote .overlay .i1 {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 10px;
        overflow: hidden;
        border: 0;
        border-radius: 13px;
        background: #fff;
    }

    body.guest_img_blur .maincol .fav-vote .overlay .double-pic,
    body.modern-user-shell .maincol .fav-vote .overlay .double-pic {
        display: none;
    }

    body.guest_img_blur .maincol .fav-vote .vote-overlay-label,
    body.modern-user-shell .maincol .fav-vote .vote-overlay-label {
        margin: 7px 0 8px;
        color: #2c3e50;
        font-size: 13px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }

    body.guest_img_blur .maincol .fav-vote .overlay .item-pic,
    body.modern-user-shell .maincol .fav-vote .overlay .item-pic,
    body.guest_img_blur .maincol .fav-vote .overlay .item-pic > a,
    body.modern-user-shell .maincol .fav-vote .overlay .item-pic > a {
        width: 172px;
        height: 172px;
        display: block;
        overflow: hidden;
        border-radius: 10px;
    }

    body.guest_img_blur .maincol .fav-vote .overlay .item-pic img,
    body.modern-user-shell .maincol .fav-vote .overlay .item-pic img {
        box-sizing: border-box;
        width: 172px !important;
        height: 172px !important;
        padding: 0;
        border: 0;
        border-radius: 10px;
        object-fit: cover;
        transform: none !important;
    }

    body.guest_img_blur .leftcol .rate-content,
    body.modern-user-shell .leftcol .rate-content {
        overflow: visible;
    }

    body.guest_img_blur .leftcol .rate-content .rater .overlay,
    body.modern-user-shell .leftcol .rate-content .rater .overlay {
        display: none !important;
    }

    body.guest_img_blur .leftcol .vote-media-preview,
    body.modern-user-shell .leftcol .vote-media-preview {
        position: absolute;
        left: 50%;
        top: -22px;
        z-index: 120;
        box-sizing: border-box;
        width: 194px;
        padding: 10px;
        display: none;
        overflow: hidden;
        border: 1px solid #b9cbd6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 14px 34px rgba(25, 55, 75, 0.24);
        transform: translateX(-50%);
    }

    body.guest_img_blur .leftcol .rate-content:hover .vote-media-preview,
    body.modern-user-shell .leftcol .rate-content:hover .vote-media-preview {
        display: block;
    }

    body.guest_img_blur .leftcol .vote-media-preview strong,
    body.modern-user-shell .leftcol .vote-media-preview strong {
        margin-bottom: 8px;
        display: block;
        color: #2c3e50;
        font-size: 13px;
        line-height: 18px;
        text-align: center;
    }

    body.guest_img_blur .leftcol .vote-media-preview > a,
    body.modern-user-shell .leftcol .vote-media-preview > a {
        display: block;
        overflow: hidden;
        border-radius: 10px;
        background: #f2f4f6;
    }

    body.guest_img_blur .leftcol .vote-media-preview img,
    body.modern-user-shell .leftcol .vote-media-preview img {
        box-sizing: border-box;
        width: 172px !important;
        height: 172px !important;
        display: block;
        border: 0;
        border-radius: 10px;
        object-fit: cover;
        transform: none !important;
    }

    body.guest_img_blur .leftcol .vote-video-preview img,
    body.modern-user-shell .leftcol .vote-video-preview img {
        height: 108px !important;
    }

    body.guest_img_blur .leftcol .vote-media-preview > span,
    body.modern-user-shell .leftcol .vote-media-preview > span {
        margin-top: 8px;
        display: block;
        color: #2f7ab3;
        font-size: 12px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body.guest_img_blur .leftcol .vote-media-preview,
    body.modern-user-shell .leftcol .vote-media-preview,
    body.guest_img_blur .leftcol .rate-content .rater .overlay,
    body.modern-user-shell .leftcol .rate-content .rater .overlay {
        display: none !important;
    }
}

/* Match the compact desktop profile card to its mobile presentation. */
@media (min-width: 641px) {
    body.guest_img_blur .leftcol .related-users-box .favs.wrapper,
    body.modern-user-shell .leftcol .related-users-box .favs.wrapper {
        box-sizing: border-box;
        width: 100%;
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user,
    body.modern-user-shell .leftcol .related-users-box .fav-user {
        width: auto;
        min-width: 0;
        height: auto;
        margin: 0;
        float: none;
        aspect-ratio: 1;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user > a,
    body.modern-user-shell .leftcol .related-users-box .fav-user > a {
        width: 100%;
        height: 100%;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user > a .image,
    body.modern-user-shell .leftcol .related-users-box .fav-user > a .image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user .overlay,
    body.modern-user-shell .leftcol .related-users-box .fav-user .overlay {
        left: 50%;
        top: -18px;
        box-sizing: border-box;
        width: 188px;
        padding: 0;
        overflow: hidden;
        border: 1px solid #b9cbd6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(25, 55, 75, 0.22);
        animation: none;
        transform: translateX(-50%);
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user .overlay .i1,
    body.modern-user-shell .leftcol .related-users-box .fav-user .overlay .i1 {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 10px 11px;
        overflow: hidden;
        border: 0;
        border-radius: 13px;
        background: #fff;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user .overlay .double-pic,
    body.modern-user-shell .leftcol .related-users-box .fav-user .overlay .double-pic {
        padding: 6px 0 8px;
    }

    body.guest_img_blur .leftcol .related-users-box .fav-user .overlay .double-pic img,
    body.modern-user-shell .leftcol .related-users-box .fav-user .overlay .double-pic img {
        box-sizing: border-box;
        width: 112px !important;
        height: 112px !important;
        max-width: 112px !important;
        max-height: 112px !important;
        border-radius: 11px;
        object-fit: cover;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list,
    body.modern-user-shell .leftcol .profile-side-card .friends-list {
        box-sizing: border-box;
        width: 100%;
        padding: 6px 0 12px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list > li,
    body.modern-user-shell .leftcol .profile-side-card .friends-list > li {
        width: auto;
        min-width: 0;
        padding: 0;
        float: none;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list > li > a,
    body.modern-user-shell .leftcol .profile-side-card .friends-list > li > a {
        width: 100%;
        aspect-ratio: 1;
        display: block;
        overflow: hidden;
        border-radius: 10px;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list > li > a .image,
    body.modern-user-shell .leftcol .profile-side-card .friends-list > li > a .image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay {
        left: 50%;
        top: -18px;
        box-sizing: border-box;
        width: 156px;
        padding: 0;
        overflow: hidden;
        border: 1px solid #b9cbd6;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(25, 55, 75, 0.2);
        transform: translateX(-50%);
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay .arrow,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay .arrow {
        display: none;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay .i1,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay .i1 {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 9px 10px 10px;
        overflow: hidden;
        border: 0;
        border-radius: 13px;
        background: #fff;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .author,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .author {
        max-width: 100%;
        height: 20px;
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 20px;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .author span,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .author span {
        max-width: 112px;
        height: 20px;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay .double-pic,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay .double-pic {
        padding: 4px 0 8px;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay .double-pic img,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay .double-pic img {
        box-sizing: border-box;
        width: 104px !important;
        height: 104px !important;
        max-width: 104px !important;
        max-height: 104px !important;
        padding: 2px;
        border-radius: 11px;
        object-fit: cover;
    }

    body.guest_img_blur .leftcol .profile-side-card .friends-list .overlay ul,
    body.modern-user-shell .leftcol .profile-side-card .friends-list .overlay ul {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        line-height: 22px;
    }

    body.guest_img_blur .leftcol .profile-short-card,
    body.modern-user-shell .leftcol .profile-short-card {
        box-sizing: border-box;
        width: 100%;
        padding: 0 10px 12px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author,
    body.modern-user-shell .leftcol .profile-short-card .prof-author {
        box-sizing: border-box;
        width: 100%;
        margin: 10px 0 0;
        padding: 8px 9px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        overflow: visible;
        background: #f4f8fb;
        border: 1px solid #e1e9ee;
        border-radius: 8px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author,
    body.guest_img_blur .leftcol .profile-short-card .prof-author .status,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .status {
        float: none;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author {
        min-width: 0;
        font-size: 13px;
        line-height: 18px;
        white-space: nowrap;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author a,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author a {
        max-width: 92px;
        vertical-align: bottom;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .status,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .status {
        flex: 0 0 auto;
        padding: 3px 6px;
        border-radius: 5px;
        font-size: 10px;
        line-height: 16px;
        white-space: nowrap;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .status-off,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .status-off {
        background: #7e8791;
    }

    body.guest_img_blur .leftcol .profile-short-card .photo,
    body.modern-user-shell .leftcol .profile-short-card .photo {
        box-sizing: border-box;
        width: 100%;
        padding: 10px 0;
    }

    body.guest_img_blur .leftcol .profile-short-card .photo .image,
    body.modern-user-shell .leftcol .profile-short-card .photo .image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-rel,
    body.modern-user-shell .leftcol .profile-short-card .prof-rel {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 10px;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating {
        box-sizing: border-box;
        width: 100% !important;
        height: 24px;
        border-left-width: 30px;
        border-radius: 6px;
        line-height: 24px;
        overflow: hidden;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating strong,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating strong {
        left: -30px;
        width: 30px;
        font-size: 12px;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating em,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating em {
        height: 24px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-status,
    body.modern-user-shell .leftcol .profile-short-card .prof-status {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 10px;
        padding: 8px 9px;
        color: #34495e;
        background: #f4f8fb;
        border: 1px solid #e1e9ee;
        border-radius: 8px;
        font-size: 13px;
        line-height: 18px;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count,
    body.modern-user-shell .leftcol .profile-short-card .prof-count {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 8px 0 0;
        border-top: 1px solid #e1e9ee;
        font-size: 12px;
        line-height: 20px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count ul,
    body.modern-user-shell .leftcol .profile-short-card .prof-count ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count li,
    body.modern-user-shell .leftcol .profile-short-card .prof-count li {
        box-sizing: border-box;
        min-width: 0;
        padding: 2px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        float: none;
        background: none;
        border-left: 1px solid #e1e9ee;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count li:first-child,
    body.modern-user-shell .leftcol .profile-short-card .prof-count li:first-child {
        padding-left: 5px;
        border-left: 0;
    }
}

/* Mobile profile composition and readable site-wide typography. */
@media (max-width: 640px) {
    body.guest_img_blur,
    body.modern-user-shell,
    body.responsive-info-page,
    body.advertising-body {
        font-size: 15px;
        line-height: 1.45;
    }

    body.guest_img_blur .leftcol .profile,
    body.modern-user-shell .leftcol .profile {
        box-sizing: border-box;
        width: 100%;
        padding: 0 14px 14px;
    }

    body.guest_img_blur .leftcol .prof-author,
    body.modern-user-shell .leftcol .prof-author {
        box-sizing: border-box;
        width: 100%;
        padding-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 12px;
        overflow: visible;
    }

    body.guest_img_blur .leftcol .prof-author .author,
    body.guest_img_blur .leftcol .prof-author .status,
    body.modern-user-shell .leftcol .prof-author .author,
    body.modern-user-shell .leftcol .prof-author .status {
        max-width: 100%;
        float: none;
        font-size: 14px;
        line-height: 20px;
    }

    body.guest_img_blur .leftcol .prof-author .author a,
    body.modern-user-shell .leftcol .prof-author .author a {
        max-width: min(210px, 58vw);
    }

    body.guest_img_blur .leftcol .photo,
    body.modern-user-shell .leftcol .photo {
        box-sizing: border-box;
        width: 100%;
        padding: 12px 0;
        display: flex;
        justify-content: center;
    }

    body.guest_img_blur .leftcol .photo > a,
    body.modern-user-shell .leftcol .photo > a {
        max-width: 100%;
        display: block;
        position: relative;
    }

    body.guest_img_blur .leftcol .photo .image,
    body.modern-user-shell .leftcol .photo .image {
        width: auto !important;
        max-width: 100% !important;
        max-height: 72vh;
        height: auto !important;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }

    body.guest_img_blur .leftcol .prof-rel,
    body.modern-user-shell .leftcol .prof-rel {
        width: min(100%, 420px);
        margin-right: auto;
        margin-left: auto;
    }

    body.guest_img_blur .leftcol .prof-count,
    body.modern-user-shell .leftcol .prof-count {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 22px;
    }

    body.guest_img_blur .leftcol .prof-count ul,
    body.modern-user-shell .leftcol .prof-count ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    body.guest_img_blur .leftcol .prof-count li,
    body.modern-user-shell .leftcol .prof-count li {
        float: none;
    }

    /* Compact profile shown above the mobile messenger and media pages. */
    body.guest_img_blur .leftcol .profile-short-card .prof-author,
    body.modern-user-shell .leftcol .profile-short-card .prof-author {
        margin: 12px 0 0;
        padding: 10px 12px;
        flex-wrap: nowrap;
        background: #f4f8fb;
        border: 1px solid #e1e9ee;
        border-radius: 10px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author {
        min-width: 0;
        font-size: 16px;
        line-height: 22px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author a,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author a {
        max-width: min(250px, 48vw);
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .author a > i,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .author a > i {
        flex: 0 0 auto;
        float: none;
        margin: 0 4px 0 0 !important;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .status,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .status {
        flex: 0 0 auto;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 18px;
        white-space: nowrap;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-author .status-off,
    body.modern-user-shell .leftcol .profile-short-card .prof-author .status-off {
        background: #7e8791;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-rel,
    body.modern-user-shell .leftcol .profile-short-card .prof-rel {
        box-sizing: border-box;
        width: 100%;
        margin: 2px 0 12px;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating {
        box-sizing: border-box;
        width: 100% !important;
        height: 28px;
        border-left-width: 36px;
        border-radius: 6px;
        line-height: 28px;
        overflow: hidden;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating strong,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating strong {
        left: -36px;
        width: 36px;
        font-size: 14px;
    }

    body.guest_img_blur .leftcol .profile-short-card .profile-rating em,
    body.modern-user-shell .leftcol .profile-short-card .profile-rating em {
        height: 28px;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-status,
    body.modern-user-shell .leftcol .profile-short-card .prof-status {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 12px;
        padding: 10px 12px;
        color: #34495e;
        background: #f4f8fb;
        border: 1px solid #e1e9ee;
        border-radius: 9px;
        font-size: 15px;
        line-height: 21px;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count,
    body.modern-user-shell .leftcol .profile-short-card .prof-count {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 10px 0 0;
        border-top: 1px solid #e1e9ee;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count ul,
    body.modern-user-shell .leftcol .profile-short-card .prof-count ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count li,
    body.modern-user-shell .leftcol .profile-short-card .prof-count li {
        box-sizing: border-box;
        min-width: 0;
        padding: 3px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border-left: 1px solid #e1e9ee;
    }

    body.guest_img_blur .leftcol .profile-short-card .prof-count li:first-child,
    body.modern-user-shell .leftcol .profile-short-card .prof-count li:first-child {
        padding-left: 8px;
        border-left: 0;
    }

    body.guest_img_blur .leftcol .profoptions,
    body.modern-user-shell .leftcol .profoptions {
        box-sizing: border-box;
        width: min(100%, 440px);
        margin-right: auto;
        margin-left: auto;
        border-radius: 9px;
    }

    body.guest_img_blur .leftcol .profoptions a,
    body.modern-user-shell .leftcol .profoptions a {
        box-sizing: border-box;
        min-height: 40px;
        padding: 9px 12px 9px 38px;
        display: flex;
        align-items: center;
        font-size: 15px;
        line-height: 20px;
    }

    body.guest_img_blur .leftcol .profoptions .ico,
    body.guest_img_blur .leftcol .profoptions .ico.i-msg,
    body.guest_img_blur .leftcol .profoptions .ico.i-gift,
    body.guest_img_blur .leftcol .profoptions .ico.i-addbl,
    body.modern-user-shell .leftcol .profoptions .ico,
    body.modern-user-shell .leftcol .profoptions .ico.i-msg,
    body.modern-user-shell .leftcol .profoptions .ico.i-gift,
    body.modern-user-shell .leftcol .profoptions .ico.i-addbl {
        left: 10px;
        top: 50%;
        margin: 0;
        transform: translateY(-50%);
    }

    body.guest_img_blur .maincol .profile,
    body.modern-user-shell .maincol .profile {
        box-sizing: border-box;
        width: 100%;
        padding: 0 14px 16px;
    }

    body.guest_img_blur .maincol .proftitle,
    body.modern-user-shell .maincol .proftitle {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        overflow: visible;
        line-height: 22px;
    }

    body.guest_img_blur .maincol .proftitle .half,
    body.modern-user-shell .maincol .proftitle .half {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        float: none !important;
        overflow: visible;
    }

    body.guest_img_blur .maincol .proftitle .half strong,
    body.modern-user-shell .maincol .proftitle .half strong {
        max-width: calc(100% - 70px);
        float: none;
    }

    /* Keep each member of a couple above their own profile details. */
    body.guest_img_blur .maincol .proftitle:has(> .half.right),
    body.modern-user-shell .maincol .proftitle:has(> .half.right) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px;
    }

    body.guest_img_blur .maincol .proftitle:has(> .half.right) .half,
    body.modern-user-shell .maincol .proftitle:has(> .half.right) .half {
        width: auto;
        align-content: flex-start;
    }

    body.guest_img_blur .maincol .profwrap,
    body.modern-user-shell .maincol .profwrap {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }

    body.guest_img_blur .maincol .profloco,
    body.modern-user-shell .maincol .profloco {
        max-width: 100%;
        float: none;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .maincol .profile > .wrap,
    body.modern-user-shell .maincol .profile > .wrap {
        box-sizing: border-box;
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        overflow: visible;
    }

    body.guest_img_blur .maincol .profile > .wrap:has(> .profmeta.right),
    body.modern-user-shell .maincol .profile > .wrap:has(> .profmeta.right) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.guest_img_blur .maincol .profile > .wrap:has(> .profmeta.right) > .profmeta,
    body.modern-user-shell .maincol .profile > .wrap:has(> .profmeta.right) > .profmeta {
        align-self: stretch;
        padding: 0 8px 12px;
    }

    body.guest_img_blur .maincol .profmeta,
    body.modern-user-shell .maincol .profmeta,
    body.guest_img_blur .maincol .profmeta.left,
    body.guest_img_blur .maincol .profmeta.right,
    body.modern-user-shell .maincol .profmeta.left,
    body.modern-user-shell .maincol .profmeta.right {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        margin: 0;
        padding: 0 0 12px;
        float: none !important;
    }

    body.guest_img_blur .maincol .profmeta dt,
    body.modern-user-shell .maincol .profmeta dt {
        padding-top: 10px;
        font-size: 14px;
        line-height: 18px;
    }

    body.guest_img_blur .maincol .profmeta dd,
    body.modern-user-shell .maincol .profmeta dd {
        font-size: 15px;
        line-height: 20px;
        overflow: visible;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .maincol .profmeta.wide,
    body.modern-user-shell .maincol .profmeta.wide {
        padding-bottom: 8px;
    }

    body.guest_img_blur .maincol .profmeta.wide dt,
    body.modern-user-shell .maincol .profmeta.wide dt {
        margin: 9px 0 2px;
        padding: 0;
        line-height: 20px;
    }

    body.guest_img_blur .maincol .profmeta.wide dt:first-child,
    body.modern-user-shell .maincol .profmeta.wide dt:first-child {
        margin-top: 4px;
    }

    body.guest_img_blur .maincol .profmeta.wide dd,
    body.modern-user-shell .maincol .profmeta.wide dd {
        margin: 0;
        padding: 0;
    }

    body.guest_img_blur .maincol .profhd,
    body.modern-user-shell .maincol .profhd {
        box-sizing: border-box;
        width: 100%;
        padding: 11px 13px 11px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 12px;
        text-align: left;
        overflow: visible;
    }

    body.guest_img_blur .maincol .profhd h3,
    body.guest_img_blur .maincol .profhd ul,
    body.modern-user-shell .maincol .profhd h3,
    body.modern-user-shell .maincol .profhd ul {
        max-width: 100%;
        margin: 0;
        float: none;
    }

    body.guest_img_blur .maincol .profhd ul,
    body.modern-user-shell .maincol .profhd ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.guest_img_blur .maincol .profhd li,
    body.modern-user-shell .maincol .profhd li {
        margin: 0;
        padding: 0;
        float: none;
        background: none;
    }
}

/* Replace the sliced legacy button sprite with one fluid mobile button. */
@media (max-width: 900px) {
    body.guest_img_blur .user-search-inner .m_button,
    body.modern-user-shell .user-search-inner .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: stretch;
        justify-content: stretch;
        overflow: hidden;
        float: none !important;
        border: 1px solid #f5b91f;
        border-radius: 11px;
        background: linear-gradient(180deg, #ffe86a 0%, #ffca24 68%, #ffb813 100%) !important;
        box-shadow: 0 2px 0 rgba(214, 142, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.65);
        color: #401b00;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.72);
    }

    body.guest_img_blur .user-search-inner .m_button span,
    body.modern-user-shell .user-search-inner .m_button span {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 42px;
        margin: 0 !important;
        padding: 10px 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        float: none !important;
        background: none !important;
        text-align: center;
    }

    body.guest_img_blur .user-search-inner .m_button:hover,
    body.guest_img_blur .user-search-inner .m_button:focus-visible,
    body.modern-user-shell .user-search-inner .m_button:hover,
    body.modern-user-shell .user-search-inner .m_button:focus-visible {
        background: linear-gradient(180deg, #ffed83 0%, #ffd13b 68%, #ffc126 100%) !important;
        text-decoration: none;
        outline: 2px solid rgba(239, 71, 111, 0.28);
        outline-offset: 2px;
    }

    body.guest_img_blur .user-search-inner .m_button:hover span,
    body.modern-user-shell .user-search-inner .m_button:hover span {
        text-decoration: none;
    }
}

/*
 * Use the document as the only mobile scroll owner. The previous nested
 * table-wrapper scroll could leave the document and its inner viewport at
 * different positions, making the beginning of a page unreachable.
 */
@media (max-width: 900px) {
    html:has(> body.guest_img_blur),
    html.modern-user-shell-root {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scroll-padding-top: var(--meendo-header-height);
    }

    body.guest_img_blur,
    body.modern-user-shell {
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: var(--meendo-header-height) !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.guest_img_blur .table-wrapper,
    body.modern-user-shell .table-wrapper {
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        min-height: calc(100vh - var(--meendo-header-height));
        min-height: calc(100dvh - var(--meendo-header-height));
        padding-top: 0 !important;
        overflow: visible !important;
        overscroll-behavior: auto;
    }
}

@media (max-width: 420px) {
    .lenta-carousel {
        padding-right: 38px;
        padding-left: 38px;
    }

    body.modern-user-shell .user-search-inner form > .row:first-child {
        grid-template-columns: minmax(0, 1fr);
    }

    body.modern-user-shell .user-search-inner form > .row:first-child > .fts,
    body.modern-user-shell .user-search-inner form > .features {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Native upload picker used instead of the retired Flash uploader. */
body.modern-user-shell .modern-upload-page .up-info {
    box-sizing: border-box;
    width: min(100% - 28px, 540px);
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

body.modern-user-shell .modern-upload-page .up-info .warning,
body.modern-user-shell .modern-upload-page .up-info .warning-error,
body.modern-user-shell .modern-upload-page .up-info .warning-ok {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.modern-user-shell .modern-upload-page .up-info .warning > *,
body.modern-user-shell .modern-upload-page .up-info .warning-error > *,
body.modern-user-shell .modern-upload-page .up-info .warning-ok > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.modern-user-shell .modern-upload-page .up-box {
    box-sizing: border-box;
    width: min(100% - 28px, 520px);
    margin: 18px auto;
    padding: 14px;
    border: 1px solid #c9dce8;
    border-radius: 12px;
    background: #f7fbfd;
}

body.modern-user-shell .modern-upload-picker {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

body.modern-user-shell .modern-upload-picker > input[type="file"] {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.modern-user-shell .modern-upload-picker-button {
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #2f84b8;
    border-radius: 9px;
    background: linear-gradient(135deg, #2f7ab3 0%, #53a2cc 100%);
    color: #fff;
    font: 700 14px/20px Arial, Helvetica, sans-serif;
    text-shadow: none;
    box-shadow: 0 3px 9px rgba(47, 122, 179, 0.22);
    cursor: pointer;
}

body.modern-user-shell .modern-upload-picker-button:hover {
    background: linear-gradient(135deg, #256b9f 0%, #418fb8 100%);
}

body.modern-user-shell .modern-upload-picker > input[type="file"]:focus + .modern-upload-picker-button {
    outline: 3px solid rgba(47, 132, 184, 0.24);
    outline-offset: 2px;
}

body.modern-user-shell .modern-upload-file-name {
    min-width: 0;
    color: #5d7180;
    font: 500 14px/20px Arial, Helvetica, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    body.modern-user-shell .modern-upload-page .up-info {
        width: calc(100% - 8px);
    }

    body.modern-user-shell .modern-upload-page .up-info .warning,
    body.modern-user-shell .modern-upload-page .up-info .warning-error,
    body.modern-user-shell .modern-upload-page .up-info .warning-ok {
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 12px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    body.modern-user-shell .modern-upload-page .up-info .warning i,
    body.modern-user-shell .modern-upload-page .up-info .warning-error i,
    body.modern-user-shell .modern-upload-page .up-info .warning-ok i {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    body.modern-user-shell .modern-upload-picker {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    body.modern-user-shell .modern-upload-picker-button {
        width: 100%;
    }

    body.modern-user-shell .modern-upload-file-name {
        padding: 0 4px;
        text-align: center;
    }
}

/* Tabbed pages: keep the primary action beside the tabs without competing with the content. */
body.modern-user-shell .tabs-with-page-action {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
}

body.modern-user-shell .tabs-with-page-action > .up-tabs,
body.modern-user-shell .tabs-with-page-action > .tabs-scroll-wrap {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    margin: 12px 0 12px 14px;
    grid-column: 1;
    grid-row: 1;
}

body.modern-user-shell .tabs-with-page-action > .tabs-scroll-wrap .up-tabs {
    width: auto !important;
    min-width: 0;
}

body.modern-user-shell .tabs-with-page-action > .tabs-scroll-wrap:not(.has-overflow) .up-tabs {
    margin-right: 0;
    margin-left: 0;
}

body.modern-user-shell .tabs-with-page-action > .tablink {
    box-sizing: border-box;
    width: auto !important;
    max-width: none;
    margin: 12px 14px 12px 0;
    grid-column: 2;
    grid-row: 1;
}

body.modern-user-shell .tabs-with-page-action > .tablink a {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

body.modern-user-shell .tabs-with-page-action > #tabs_load {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 2;
}

@media (max-width: 700px) {
    body.modern-user-shell .tabs-with-page-action {
        grid-template-columns: minmax(0, 1fr);
    }

    body.modern-user-shell .tabs-with-page-action > .up-tabs,
    body.modern-user-shell .tabs-with-page-action > .tabs-scroll-wrap {
        width: calc(100% - 24px) !important;
        margin: 10px 12px 0;
        grid-column: 1;
        grid-row: 1;
    }

    body.modern-user-shell .tabs-with-page-action > .tablink {
        width: auto !important;
        margin: 10px 12px 14px;
        grid-column: 1;
        grid-row: 2;
    }

    body.modern-user-shell .tabs-with-page-action > .tablink a {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    body.modern-user-shell .tabs-with-page-action > #tabs_load {
        grid-column: 1;
        grid-row: 3;
    }
}

/* Keep footer links visually grouped instead of scattering short and long labels. */
@media (max-width: 900px) {
    #footer.modern-site-footer .footer {
        width: min(100% - 28px, 560px) !important;
    }

    #footer.modern-site-footer .footer > ul:first-of-type {
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 0 16px;
        padding: 0;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        align-items: start;
        justify-items: stretch;
        column-gap: 20px;
        row-gap: 12px;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        font-size: 13px;
        line-height: 20px;
        text-align: left;
        align-self: start;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li:empty {
        display: none;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li > a {
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        padding: 2px 0 5px;
        display: block;
        position: relative;
        border-radius: 0;
        background: transparent;
        line-height: 20px;
        text-align: left;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li > a::after {
        content: "";
        width: 0;
        height: 2px;
        position: absolute;
        right: auto;
        bottom: 0;
        left: 0;
        border-radius: 2px;
        background: currentColor;
        opacity: 0.45;
        transition: width 180ms ease;
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li > a:hover::after,
    #footer.modern-site-footer .footer > ul:first-of-type > li > a:focus-visible::after {
        width: 100%;
    }

    #footer.modern-site-footer .footer > ul:nth-of-type(2) {
        box-sizing: border-box;
        width: 100% !important;
        margin: 0;
        padding: 15px 0 0;
        display: flex !important;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid #dce7ed;
    }

    #footer.modern-site-footer .footer > ul:nth-of-type(2) > li,
    #footer.modern-site-footer .footer > a:not(.footer-logo) {
        width: 100%;
        margin: 0;
        font-size: 13px;
        line-height: 19px;
        text-align: center;
    }

    #footer.modern-site-footer .footer > a:not(.footer-logo) {
        box-sizing: border-box;
        padding: 15px 0 0;
        border-top: 1px solid #dce7ed;
    }

    #footer.modern-site-footer .footer > p:first-of-type {
        box-sizing: border-box;
        margin-top: 16px;
        padding-top: 15px;
        border-top: 1px solid #dce7ed;
        line-height: 20px;
    }

    #footer.modern-site-footer .footer > p:last-of-type {
        margin-top: 9px;
        line-height: 20px;
    }
}

@media (max-width: 419px) {
    #footer.modern-site-footer .footer > ul:first-of-type {
        grid-template-columns: minmax(0, 1fr);
    }

    #footer.modern-site-footer .footer > ul:first-of-type > li:last-child:nth-child(odd) {
        grid-column: 1;
    }
}

/* Reveal more of the next mobile carousel card without shrinking its image. */
@media (max-width: 900px) {
    .lenta-carousel {
        padding-right: 32px;
        padding-left: 32px;
    }

    .lenta-carousel .lenta {
        padding-right: 4px;
        padding-left: 4px;
    }
}

/* Slightly enlarge typography across every phone and small-tablet page. */
@media (max-width: 900px) {
    html {
        -webkit-text-size-adjust: 108%;
        text-size-adjust: 108%;
    }

    body {
        font-size: 15px;
    }

    body.guest_img_blur .box > .hd_list,
    body.modern-user-shell .box > .hd_list {
        font: 15px/22px Tahoma, Arial, Helvetica, sans-serif;
    }

    body.guest_img_blur .box > .hd_list li,
    body.modern-user-shell .box > .hd_list li {
        padding: 0;
        background: none;
    }

    body.guest_img_blur .box > .hd_list a,
    body.modern-user-shell .box > .hd_list a {
        min-height: 38px;
        padding: 7px 4px;
        display: inline-flex;
        align-items: center;
        color: #246b99;
        text-shadow: none;
        text-decoration-color: rgba(36, 107, 153, 0.55);
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .box > .hd_list a:hover,
    body.guest_img_blur .box > .hd_list a:focus-visible,
    body.modern-user-shell .box > .hd_list a:hover,
    body.modern-user-shell .box > .hd_list a:focus-visible {
        color: var(--meendo-pink-dark);
        text-decoration: none;
        outline: none;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list),
    body.modern-user-shell .box:has(> h2):has(> .hd_list) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: stretch;
        position: relative;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list)::before,
    body.modern-user-shell .box:has(> h2):has(> .hd_list)::before {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1 / span 2;
        z-index: 0;
        border-radius: 10px 10px 0 0;
        background: #55a6cf;
        pointer-events: none;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > h2,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > h2 {
        grid-column: 1;
        grid-row: 1;
        z-index: 1;
        box-sizing: border-box;
        width: auto !important;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 14px 16px 6px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 6px;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
        overflow-wrap: anywhere;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > h2 > span,
    body.guest_img_blur .box:has(> h2):has(> .hd_list) > h2 > em,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > h2 > span,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > h2 > em {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        font-size: inherit;
        line-height: inherit;
        word-break: normal;
        overflow-wrap: break-word;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > .hd_list,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > .hd_list {
        grid-column: 1;
        grid-row: 2;
        z-index: 1;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: auto;
        min-width: 0;
        min-height: 48px;
        margin: 0;
        padding: 4px 16px 12px;
        align-content: center;
        justify-content: flex-start;
        gap: 5px 7px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 14px;
        line-height: 18px;
        transform: none;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > .hd_list li,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > .hd_list li {
        min-width: 0;
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > .hd_list a,
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > .hd_list a {
        box-sizing: border-box;
        min-height: 32px;
        padding: 6px 8px;
        justify-content: center;
        border: 1px solid rgba(31, 91, 126, 0.16);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.94);
        color: #1f5b7e;
        text-align: center;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(34, 75, 99, 0.12);
    }

    body.guest_img_blur .box:has(> h2):has(> .hd_list) > :not(h2):not(.hd_list),
    body.modern-user-shell .box:has(> h2):has(> .hd_list) > :not(h2):not(.hd_list) {
        grid-column: 1 / -1;
    }
}

/* Keep the Current King card border inside its column. The legacy 100% width
 * used content-box sizing, so the gold border extended past the blue header. */
body.guest_img_blur .kingbox,
body.modern-user-shell .kingbox {
    box-sizing: border-box;
}

body.guest_img_blur .kingbox > h2,
body.modern-user-shell .kingbox > h2 {
    box-sizing: border-box;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

@media (max-width: 900px) {
    body.guest_img_blur .box.kingbox.kingbox {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
    }

    body.guest_img_blur .box.kingbox.kingbox::before {
        display: none !important;
    }

    body.guest_img_blur .box.kingbox.kingbox > h2 {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-height: 58px;
        margin: 0 !important;
        padding: 14px 8px 14px 16px;
        border-radius: 10px 0 0 0;
        background: #55a6cf !important;
    }

    body.guest_img_blur .box.kingbox.kingbox > .hd_list {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        min-height: 58px;
        margin: 0;
        padding: 13px 16px 13px 8px;
        align-items: center;
        justify-content: flex-end;
        border-radius: 0 10px 0 0;
        background: #55a6cf !important;
    }

    body.guest_img_blur .box.kingbox.kingbox > .hd_list a {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        text-decoration: underline;
        box-shadow: none;
    }

    body.guest_img_blur .box.kingbox.kingbox > :not(h2):not(.hd_list) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

/* Compact gift grids; gift details open below the thumbnail. */
body.guest_img_blur .favs.wrapper:not(.hidden):has(> .fav-gift),
body.modern-user-shell .favs.wrapper:not(.hidden):has(> .fav-gift) {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    padding-top: 10px !important;
    gap: 10px !important;
    overflow: visible !important;
}

body.guest_img_blur .favs.wrapper > .fav-gift,
body.modern-user-shell .favs.wrapper > .fav-gift {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    margin: 0 !important;
    overflow: visible !important;
}

body.guest_img_blur .favs.wrapper > .fav-gift > a,
body.modern-user-shell .favs.wrapper > .fav-gift > a {
    width: 100%;
    height: 100%;
}

body.guest_img_blur .favs.wrapper > .fav-gift > a > img,
body.modern-user-shell .favs.wrapper > .fav-gift > a > img,
body.guest_img_blur .favs.wrapper > .fav-gift:hover > a > img,
body.modern-user-shell .favs.wrapper > .fav-gift:hover > a > img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

body.guest_img_blur .favs.wrapper > .fav-gift:hover .overlay,
body.modern-user-shell .favs.wrapper > .fav-gift:hover .overlay {
    left: 50% !important;
    top: calc(100% + 6px) !important;
    bottom: auto !important;
    z-index: 180 !important;
    max-width: calc(100vw - 24px);
    animation: none !important;
    transform: translateX(-50%) !important;
}

@media (min-width: 641px) {
    body.guest_img_blur .favs.wrapper > .fav-photo:not(.fav-gift),
    body.modern-user-shell .favs.wrapper > .fav-photo:not(.fav-gift) {
        overflow: visible !important;
    }

    body.guest_img_blur .favs.wrapper > .fav-photo:not(.fav-gift):hover .overlay,
    body.modern-user-shell .favs.wrapper > .fav-photo:not(.fav-gift):hover .overlay {
        left: 50% !important;
        top: calc(100% + 6px) !important;
        bottom: auto !important;
        z-index: 180 !important;
        max-width: calc(100vw - 24px);
        animation: none !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 520px) {
    body.guest_img_blur .favs.wrapper:not(.hidden):has(> .fav-gift),
    body.modern-user-shell .favs.wrapper:not(.hidden):has(> .fav-gift) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modern-guest-header *,
    .guest-menu-backdrop,
    .modern-user-header *,
    .modern-user-menu-backdrop,
    .modern-user-drawer,
    #footer.modern-site-footer * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Safari can reuse legacy .header/.logo/button declarations from the
 * old responsive skin. Restore only the visual properties of the guest
 * header; the drawer geometry and its full-height behaviour stay unchanged. */
@media (max-width: 1180px) {
    .modern-guest-header.header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #d8eef9 !important;
        background-image: url("/images/bg-html.png") !important;
        background-repeat: repeat-x !important;
        background-position: 50% 0 !important;
        background-size: auto 72px !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .modern-guest-header .guest-header-inner {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .modern-guest-header .logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
        background: transparent url("/images/logo.svg") no-repeat 50% 50% !important;
        background-size: contain !important;
        color: transparent !important;
        text-indent: -9999px !important;
    }

    .modern-guest-header .guest-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 1px solid #c9dce8 !important;
        background: #fff !important;
        color: #193447 !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .modern-guest-header .guest-menu-toggle span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #193447 !important;
    }

    .modern-guest-header.menu-open .guest-menu-toggle span:nth-child(2) {
        opacity: 0 !important;
    }

    .modern-guest-header .guest-header-menu .modern-lang-selector,
    .modern-guest-header .guest-header-menu .modern-lang-btn {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .modern-guest-header .guest-header-menu .modern-lang-btn {
        display: flex !important;
    }
}

/* Unified search UI for /search/ and the guest /?logo landing page. */
.modern-search-page.modern-user-search-card > .i1 {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* The legacy .darkbox adds a six-pixel sprite strip below the card. */
.modern-search-page.modern-user-search-card::after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: none !important;
}

.modern-search-page.modern-user-search-card > h2 em {
    box-sizing: border-box;
    margin: 0;
    padding: 16px 22px 16px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
}

/*
 * Keep breadcrumb content optically centered. The title stays fixed while the
 * description owns the remaining width and wraps only between words.
 */
.modern-search-page.modern-user-search-card > h2.bredcrumbs {
    align-items: center;
    flex-wrap: nowrap;
}

.modern-search-page.modern-user-search-card > h2.bredcrumbs > span,
.modern-search-page.modern-user-search-card > h2.bredcrumbs > em {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
}

.modern-search-page.modern-user-search-card > h2.bredcrumbs > span {
    flex: 0 0 auto;
}

.modern-search-page.modern-user-search-card > h2.bredcrumbs > em {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* Override the more specific legacy mobile .features grid. */
body.guest_img_blur .modern-search-page.modern-user-search-card .user-search-inner form > fieldset.search-features,
body.modern-user-shell .modern-search-page.modern-user-search-card .user-search-inner form > fieldset.search-features,
.modern-search-page.modern-user-search-card .user-search-inner form > fieldset.search-features {
    box-sizing: border-box;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    display: block !important;
}

.modern-search-page.modern-user-search-card .search-feature-options label,
.modern-search-page.modern-user-search-card .search-feature-options label > span {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none;
}

@media (max-width: 700px) {
    .modern-search-page.modern-user-search-card > h2.bredcrumbs {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > span,
    .modern-search-page.modern-user-search-card > h2.bredcrumbs > em {
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        align-self: auto;
    }

    .modern-search-page.modern-user-search-card > h2.bredcrumbs > em {
        display: flex !important;
        align-items: center;
    }

    .modern-search-page.modern-user-search-card .search-feature-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .modern-search-page.modern-user-search-card .search-feature-options label > span {
        max-width: 100%;
    }

    /* Reserve a separate bottom row for the absolutely positioned rating. */
    .modern-search-page.modern-user-search-card #searchResults .friend-box .inner {
        padding-bottom: 42px !important;
    }

    .modern-search-page.modern-user-search-card #searchResults .friend-box > .profile-rating.abs {
        box-sizing: border-box;
        left: 126px;
        right: 9px;
        width: auto !important;
    }

    .modern-search-page.modern-user-search-card #searchResults .friend-box .f-date {
        min-width: 0;
        overflow: hidden;
    }

    .modern-search-page.modern-user-search-card #searchResults .friend-box .lookingfor {
        max-width: 100%;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 3px 5px;
        float: none;
    }

    .modern-search-page.modern-user-search-card #searchResults .friend-box .lookingfor span {
        min-width: 0;
        padding-left: 0;
        float: none;
        overflow-wrap: break-word;
        word-break: normal;
    }
}

@media (max-width: 340px) {
    .modern-search-page.modern-user-search-card .search-feature-options {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* 404 page: make the missing-page state unmistakable and easy to recover from. */
body.not-found-page {
    background: #d8eaf4;
}

body.not-found-page .content-frame > .container {
    box-sizing: border-box;
    width: min(1440px, calc(100% - 48px));
    max-width: 1440px;
}

body.not-found-page .content-frame > .container > .wrapper {
    display: block;
    width: 100%;
}

.page-404-column {
    box-sizing: border-box;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.page-404 {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(100vh - 190px);
    display: flex;
    align-items: center;
    padding: 40px 0 70px;
}

.page-404 .box404 {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 72px;
    width: 100%;
    min-height: 590px;
    margin: 0;
    padding: 64px 76px;
    overflow: hidden;
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-404 .box404::before {
    display: none;
}

.page-404 .box404__visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-404 .box404__visual::before {
    position: absolute;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(188, 229, 248, .55));
    box-shadow: inset 0 0 0 1px rgba(85, 166, 207, .17), 0 24px 60px rgba(65, 145, 187, .17);
    content: '';
}

.page-404 .box404__orbit {
    position: absolute;
    z-index: auto;
    border: 1px solid rgba(85, 166, 207, .3);
    border-radius: 50%;
    transform: rotate(-16deg);
}

.page-404 .box404__orbit--one {
    width: 390px;
    height: 170px;
}

.page-404 .box404__orbit--two {
    width: 170px;
    height: 390px;
}

.page-404 .box404__orbit-heart {
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    color: #ef476f;
    content: '\2665';
    font: 700 28px/28px Arial, Helvetica, sans-serif;
    text-align: center;
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        0 5px 12px rgba(190, 48, 84, .25);
    transform: rotate(16deg);
}

.page-404 .box404__orbit-heart::before {
    content: '\2665';
}

.page-404 .box404__orbit-heart--top {
    top: -14px;
    left: calc(50% - 14px);
}

.page-404 .box404__orbit-heart--right {
    top: calc(50% - 14px);
    right: -14px;
}

.page-404 .box404__orbit-heart--bottom {
    bottom: -14px;
    left: calc(50% - 14px);
}

.page-404 .box404__orbit-heart--left {
    top: calc(50% - 14px);
    left: -14px;
}

.page-404 .box404__code {
    position: relative;
    z-index: 1;
    color: #55a6cf;
    font: 800 150px/1 Arial, Helvetica, sans-serif;
    letter-spacing: -12px;
    text-align: center;
    text-shadow: 0 7px 0 #fff, 0 16px 30px rgba(50, 133, 177, .16);
}

.page-404 .box404__content {
    min-width: 0;
}

.page-404 .box404__label {
    display: inline-block;
    margin-bottom: 12px;
    color: #3787b2;
    font: 700 15px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-404 .box404 h1 {
    margin: 0 0 18px;
    color: #253d4d;
    font: 700 48px/1.1 Arial, Helvetica, sans-serif;
}

.page-404 .box404__content > p:not(.box404__url) {
    max-width: 650px;
    margin: 0;
    color: #58707e;
    font: 19px/1.6 Arial, Helvetica, sans-serif;
}

.page-404 .box404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.page-404 .box404__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 13px;
    font: 700 16px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.page-404 .box404__button:hover,
.page-404 .box404__button:focus-visible {
    transform: translateY(-1px);
}

.page-404 .box404__button--primary {
    background: #55a6cf;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(53, 132, 174, .24);
}

.page-404 .box404__button--primary:hover,
.page-404 .box404__button--primary:focus-visible {
    background: #3f94bf;
}

.page-404 .box404__button--secondary {
    border-color: #bdd8e7;
    background: #fff;
    color: #327da5 !important;
}

.page-404 .box404__button--secondary:hover,
.page-404 .box404__button--secondary:focus-visible {
    background: #edf7fc;
}

.page-404 .box404 p.box404__url {
    margin: 28px 0 0;
    color: #82939d;
    font: 13px/1.5 Arial, Helvetica, sans-serif;
}

.page-404 .box404__url span,
.page-404 .box404__url code {
    display: block;
}

.page-404 .box404__url code {
    max-width: 100%;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #6e818d;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 700px) {
    body.not-found-page .content-frame > .container {
        width: 100%;
    }

    .page-404 {
        min-height: calc(100vh - 90px);
        padding: 18px 12px 36px;
    }

    .page-404 .box404 {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        margin: 0;
        padding: 30px 20px;
        border-radius: 0;
        text-align: center;
    }

    .page-404 .box404__visual {
        min-height: 210px;
    }

    .page-404 .box404__visual::before {
        width: 180px;
        height: 180px;
    }

    .page-404 .box404__orbit--one {
        width: 230px;
        height: 100px;
    }

    .page-404 .box404__orbit--two {
        width: 100px;
        height: 230px;
    }

    .page-404 .box404__code {
        font-size: 88px;
        letter-spacing: -7px;
    }

    .page-404 .box404 h1 {
        font-size: 30px;
    }

    .page-404 .box404__content > p:not(.box404__url) {
        font-size: 15px;
    }

    .page-404 .box404__actions {
        justify-content: center;
    }

    .page-404 .box404__button {
        flex: 1 1 190px;
    }

    .page-404 .box404 p.box404__url {
        text-align: left;
    }
}

@media (min-width: 701px) and (max-width: 1050px) {
    .page-404 .box404 {
        grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
        gap: 38px;
        padding: 48px 42px;
    }

    .page-404 .box404__code {
        font-size: 120px;
    }

    .page-404 .box404 h1 {
        font-size: 40px;
    }
}

.modern-search-page.modern-user-search-card .user-search-inner {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 22px !important;
    overflow: visible !important;
    border: 0 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%) !important;
}

.modern-search-page.modern-user-search-card .user-search-inner form {
    box-sizing: border-box;
    width: 100%;
    display: grid !important;
    gap: 18px;
}

.modern-search-page.modern-user-search-card .search-submit-wrap {
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    float: none !important;
}

.modern-search-page.modern-user-search-card .modern-search-submit {
    min-width: 190px !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    border: 1px solid #e79d16 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffd955 0%, #ffb516 100%) !important;
    color: #35260b !important;
    box-shadow: 0 7px 16px rgba(218, 145, 17, 0.22) !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.modern-search-page.modern-user-search-card .modern-search-submit:hover,
.modern-search-page.modern-user-search-card .modern-search-submit:focus,
.modern-search-page.modern-user-search-card .modern-search-submit:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    text-decoration: none !important;
}

.modern-search-page.modern-user-search-card .modern-search-submit:active {
    background: linear-gradient(135deg, #ffd044 0%, #f5a900 100%) !important;
    box-shadow: 0 3px 8px rgba(196, 126, 8, 0.24) !important;
    filter: none !important;
    transform: translateY(1px) !important;
}

.modern-search-page.modern-user-search-card .modern-search-submit span {
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 22px !important;
    display: block !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font: 750 15px/1.2 Arial, Helvetica, sans-serif !important;
    text-shadow: none !important;
}

.modern-search-page.modern-user-search-card .modern-search-submit:hover span,
.modern-search-page.modern-user-search-card .modern-search-submit:focus span,
.modern-search-page.modern-user-search-card .modern-search-submit:active span {
    text-decoration: none !important;
}

.modern-search-page.modern-user-search-card .searchlink {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    float: none !important;
    border: 1px solid #bcd6e6;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
    color: #187db2;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.modern-search-page.modern-user-search-card #advancedSearch:not(:empty) {
    box-sizing: border-box;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #d5e4ed;
}

.modern-search-page-compact .user-search-inner form {
    gap: 14px !important;
}

.modern-search-page-compact .search-page-compact-primary {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: max-content minmax(180px, 320px) max-content 76px max-content 76px !important;
    align-items: center !important;
    justify-content: start !important;
    column-gap: 6px !important;
    row-gap: 10px !important;
    overflow: visible !important;
}

.modern-search-page-compact .search-page-compact-primary > label,
.modern-search-page-compact .search-page-compact-primary > label:first-child {
    box-sizing: border-box;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    float: none !important;
    color: #314b5f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.modern-search-page-compact .search-page-compact-primary > select,
.modern-search-page-compact .search-page-compact-primary > input {
    min-width: 0 !important;
}

.modern-search-page-compact .search-feature-options {
    box-sizing: border-box;
    width: 100% !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    float: none !important;
}

.modern-search-page-compact .search-feature-options label {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 9px 10px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    float: none !important;
    border: 1px solid #d4e3ed;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.82);
    color: #263c4d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

.modern-search-page-compact .search-feature-options label:has(input:checked) {
    border-color: #3095c9;
    background: #e6f5fc;
}

.modern-search-page-compact .search-feature-options input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex: 0 0 auto;
    accent-color: #258fc5;
}

.modern-search-page-compact .search-page-compact-location,
.modern-search-page-compact .search-page-compact-location.row.withbut {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    overflow: visible !important;
}

.modern-search-page-compact .search-page-compact-location .modern-search-submit {
    min-width: 130px !important;
}

@media (min-width: 701px) {
    .modern-search-page-compact.modern-user-search-card > h2 {
        min-height: 48px;
    }

    .modern-search-page-compact.modern-user-search-card > h2 span {
        padding: 11px 18px;
        font-size: 18px;
    }

    .modern-search-page-compact.modern-user-search-card .user-search-inner {
        padding: 14px 16px !important;
    }

    .modern-search-page-compact .user-search-inner form {
        gap: 10px !important;
    }

    .modern-search-page-compact .search-page-compact-primary,
    .modern-search-page-compact .search-feature-options,
    .modern-search-page-compact .search-page-compact-location,
    .modern-search-page-compact .search-page-compact-location.row.withbut {
        gap: 8px;
    }

    .modern-search-page-compact .search-page-compact-primary {
        grid-template-columns: max-content minmax(180px, 320px) max-content 76px max-content 76px !important;
        justify-content: start !important;
        column-gap: 6px !important;
        row-gap: 8px !important;
    }

    .modern-search-page-compact .search-page-compact-primary > label,
    .modern-search-page-compact .search-page-compact-primary > label:first-child {
        margin-bottom: 0 !important;
        font-size: 15px;
    }

    .modern-search-page-compact.modern-user-search-card select,
    .modern-search-page-compact.modern-user-search-card input.text {
        min-height: 40px !important;
        height: 40px !important;
        padding-top: 7px;
        padding-bottom: 7px;
        border-radius: 9px;
        font-size: 15px;
    }

    .modern-search-page-compact .search-feature-options label {
        min-height: 40px;
        padding: 7px 9px !important;
        border-radius: 9px;
        font-size: 15px;
    }

    .modern-search-page-compact .search-feature-options input {
        width: 16px !important;
        height: 16px !important;
    }

    .modern-search-page-compact.modern-user-search-card .modern-search-submit {
        min-width: 112px !important;
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    .modern-search-page-compact.modern-user-search-card .modern-search-submit span {
        padding: 0 16px !important;
        font-size: 15px !important;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .modern-search-page-compact.modern-user-search-card {
        border-radius: 15px;
    }

    .modern-search-page-compact.modern-user-search-card .user-search-inner {
        padding: 13px 15px !important;
    }

    .modern-search-page-compact .search-page-compact-primary,
    .modern-search-page-compact .search-feature-options,
    .modern-search-page-compact .search-page-compact-location,
    .modern-search-page-compact .search-page-compact-location.row.withbut {
        gap: 8px;
    }

    .modern-search-page-compact .search-page-compact-location,
    .modern-search-page-compact .search-page-compact-location.row.withbut {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 96px;
    }

    .modern-search-page-compact.modern-user-search-card .search-page-compact-location select {
        padding-right: 26px;
        padding-left: 11px;
    }
}

@media (max-width: 700px) {
    .modern-search-page.modern-user-search-card > h2 em {
        width: 100%;
        padding: 0 16px 13px;
        font-size: 13px;
    }

    .modern-search-page.modern-user-search-card .user-search-inner {
        padding: 16px !important;
    }

    .modern-search-page-compact.modern-user-search-card .user-search-inner {
        padding: 13px !important;
    }

    .modern-search-page-compact .user-search-inner form {
        gap: 12px !important;
    }

    .modern-search-page.modern-user-search-card .search-primary-fields,
    .modern-search-page.modern-user-search-card .search-location-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .modern-search-page.modern-user-search-card .search-submit-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .modern-search-page.modern-user-search-card .modern-search-submit,
    .modern-search-page.modern-user-search-card .searchlink {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center;
    }

    .modern-search-page-compact .search-page-compact-primary {
        grid-template-columns: max-content minmax(0, 1fr) !important;
        align-items: center !important;
        justify-content: start !important;
        column-gap: 6px !important;
        row-gap: 10px !important;
    }

    .modern-search-page-compact .search-feature-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-search-page-compact .search-page-compact-location,
    .modern-search-page-compact .search-page-compact-location.row.withbut {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Mobile search collapse: keep the blue title bar visible and hide the form. */
.modern-mobile-search-toggle {
    display: none;
}

@media (max-width: 700px) {
    .modern-search-page-compact.mobile-search-collapsible > h2 {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 62px !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        gap: 10px;
        overflow: visible !important;
    }

    .modern-search-page-compact.mobile-search-collapsible > h2 > span {
        box-sizing: border-box;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 13px 0 13px 16px !important;
        display: block !important;
        font-size: 18px;
        line-height: 1.25;
        overflow-wrap: break-word;
    }

    .modern-search-page-compact.mobile-search-collapsible .modern-mobile-search-toggle {
        box-sizing: border-box;
        min-height: 40px;
        margin: 10px 12px 10px 0;
        padding: 8px 10px 8px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(31, 91, 126, 0.18);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.96);
        color: #1f5b7e;
        box-shadow: 0 2px 7px rgba(26, 75, 104, 0.16);
        cursor: pointer;
    }

    .modern-search-page-compact.mobile-search-collapsible .modern-mobile-search-toggle b {
        margin: 0;
        padding: 0;
        font: 700 13px/1.2 Arial, Helvetica, sans-serif;
        white-space: nowrap;
    }

    .modern-search-page-compact.mobile-search-collapsible .modern-mobile-search-toggle i {
        box-sizing: border-box;
        width: 9px;
        height: 9px;
        margin-top: -4px;
        display: block;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 160ms ease, margin 160ms ease;
    }

    .modern-search-page-compact.mobile-search-collapsible .modern-mobile-search-toggle[aria-expanded="true"] i {
        margin-top: 4px;
        transform: rotate(225deg);
    }

    .modern-search-page-compact.mobile-search-collapsible:not(.is-mobile-search-open) > .i1 {
        display: none !important;
    }

    .modern-search-page-compact.mobile-search-collapsible.is-mobile-search-open > .i1 {
        display: block !important;
    }
}

@media (max-width: 420px) {
    .modern-search-page-compact.mobile-search-collapsible > h2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .modern-search-page-compact.mobile-search-collapsible > h2 > span {
        padding: 13px 14px 5px !important;
    }

    .modern-search-page-compact.mobile-search-collapsible .modern-mobile-search-toggle {
        width: calc(100% - 28px);
        margin: 0 14px 12px;
    }
}

/* Mobile location picker: replaces the oversized native options popup. */
.modern-mobile-select-trigger,
.modern-mobile-select-modal {
    display: none;
}

.modern-mobile-select-shell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    display: block;
}

@media (max-width: 700px) {
    body.modern-mobile-select-open {
        overflow: hidden !important;
    }

    .modern-mobile-select-shell {
        position: relative;
    }

    .modern-user-search-card .modern-mobile-select-shell select.modern-mobile-native-select {
        width: 1px !important;
        min-width: 1px !important;
        height: 1px !important;
        min-height: 1px !important;
        padding: 0 !important;
        position: absolute !important;
        inset: 50% auto auto 50%;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .modern-mobile-select-trigger {
        box-sizing: border-box;
        width: 100%;
        min-height: 46px;
        padding: 10px 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid #bcd3e2;
        border-radius: 11px;
        background: #fff;
        color: #1f3444;
        font: 600 15px/1.3 Arial, Helvetica, sans-serif;
        text-align: left;
        box-shadow: 0 2px 7px rgba(42, 89, 119, 0.06);
        cursor: pointer;
    }

    .modern-mobile-select-trigger > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .modern-mobile-select-trigger > i {
        width: 8px;
        height: 8px;
        flex: 0 0 auto;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
    }

    .modern-mobile-select-trigger:focus-visible {
        border-color: #258fc5;
        outline: none;
        box-shadow: 0 0 0 4px rgba(37, 143, 197, 0.14);
    }

    .modern-mobile-select-trigger:disabled {
        border-color: #d6e1e8;
        background: #f3f6f8;
        color: #738694;
        box-shadow: none;
        cursor: default;
    }

    .modern-mobile-select-trigger:disabled > i {
        opacity: 0.35;
    }

    .modern-mobile-select-modal:not([hidden]) {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        position: fixed;
        inset: 0;
        z-index: 100000;
    }

    .modern-mobile-select-backdrop {
        width: 100%;
        height: 100%;
        padding: 0;
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(18, 38, 52, 0.58);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }

    .modern-mobile-select-sheet {
        box-sizing: border-box;
        width: min(100%, 560px);
        max-height: min(72vh, 560px);
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: relative;
        border-radius: 18px 18px 0 0;
        background: #f7fbfe;
        box-shadow: 0 -12px 34px rgba(15, 49, 70, 0.24);
    }

    .modern-mobile-select-header {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .modern-mobile-select-header strong {
        color: #203b4d;
        font-size: 18px;
        line-height: 1.25;
    }

    .modern-mobile-select-close {
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 1px solid #d1e0e9;
        border-radius: 50%;
        background: #fff;
        color: #29495e;
        font: 400 28px/1 Arial, Helvetica, sans-serif;
        cursor: pointer;
    }

    .modern-mobile-select-search {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid #bcd3e2;
        border-radius: 10px;
        outline: none;
        background: #fff;
        color: #1f3444;
        font: 500 16px/1.3 Arial, Helvetica, sans-serif;
    }

    .modern-mobile-select-search:focus {
        border-color: #258fc5;
        box-shadow: 0 0 0 4px rgba(37, 143, 197, 0.14);
    }

    .modern-mobile-select-options {
        min-height: 0;
        padding: 2px 0 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .modern-mobile-select-option {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        flex: 0 0 auto;
        border: 1px solid transparent;
        border-radius: 10px;
        background: #fff;
        color: #263f50;
        font: 600 15px/1.3 Arial, Helvetica, sans-serif;
        text-align: left;
        cursor: pointer;
    }

    .modern-mobile-select-option.is-selected {
        border-color: #3095c9;
        background: #e3f4fc;
        color: #126e9e;
    }

    .modern-mobile-select-option:focus-visible {
        border-color: #258fc5;
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 143, 197, 0.12);
    }

    .modern-mobile-select-empty {
        margin: 0;
        padding: 18px 8px;
        color: #6a8291;
        font-size: 15px;
        text-align: center;
    }
}

/* Final compact-search layout overrides after the legacy responsive rules. */
@media (max-width: 700px) {
    body.guest_img_blur .modern-search-page-compact .search-page-compact-primary,
    body.modern-user-shell .modern-search-page-compact .search-page-compact-primary {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.guest_img_blur .modern-search-page-compact .search-compact-pair,
    body.modern-user-shell .modern-search-page-compact .search-compact-pair {
        display: grid;
        grid-template-columns: minmax(105px, auto) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    body.guest_img_blur .modern-search-page-compact .search-feature-options,
    body.modern-user-shell .modern-search-page-compact .search-feature-options {
        grid-column: 1 !important;
    }
}

/* Final desktop alignment for the full search page. */
@media (min-width: 701px) {
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-primary-fields,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-primary-fields {
        grid-template-columns: minmax(180px, 1fr) 148px 148px !important;
        align-items: start !important;
        justify-content: start !important;
        gap: 10px 12px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-age-fields,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-age-fields {
        display: contents !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-gender-field,
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-age-fields > .search-field,
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-location-grid > .search-field,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-gender-field,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-age-fields > .search-field,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-location-grid > .search-field {
        display: grid !important;
        grid-template-rows: 18px 34px !important;
        align-items: start !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-field > label,
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-field > span:not(.modern-mobile-select-shell),
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-field > label,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-field > span:not(.modern-mobile-select-shell) {
        box-sizing: border-box;
        width: auto !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        float: none !important;
        font-size: 12px !important;
        line-height: 18px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-field > .modern-mobile-select-shell,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-field > .modern-mobile-select-shell {
        box-sizing: border-box;
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-field select,
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-field input.text,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-field select,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-field input.text {
        box-sizing: border-box;
        width: 100% !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 4px 22px 4px 10px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-feature-options,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-feature-options {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(34px, auto) !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-feature-options > label,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-feature-options > label {
        box-sizing: border-box;
        height: auto !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-location-grid,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-location-grid {
        align-items: start !important;
        gap: 10px !important;
    }

    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .modern-search-submit,
    body.guest_img_blur .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .searchlink,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .modern-search-submit,
    body.modern-user-shell .modern-search-page:not(.modern-search-page-compact) .search-submit-wrap .searchlink {
        box-sizing: border-box;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        align-items: center !important;
        border-radius: 8px !important;
    }
}

/* /kings/: replace the fixed-width 2011 layout on phones. */
@media (max-width: 700px) {
    body.modern-user-shell .king-service-page,
    body.modern-user-shell .king-service-page > .i1 {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    body.modern-user-shell .king-service-page > h2.bredcrumbs {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 18px;
        line-height: 1.3;
    }

    body.modern-user-shell .king-service-page .king-top {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 150px;
        padding: 22px 18px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background-position: center;
        background-size: cover;
    }

    body.modern-user-shell .king-service-page .king-top h1 {
        margin: 0 0 8px;
        font-size: clamp(24px, 7vw, 31px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .king-service-page .king-top strong {
        font-size: 15px;
        line-height: 1.35;
    }

    body.modern-user-shell .king-service-page .promo4 {
        box-sizing: border-box;
        width: 100%;
        padding: 18px 14px 22px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow: visible;
        background: linear-gradient(180deg, #f4fbff 0%, #fff 38%);
    }

    body.modern-user-shell .king-service-page .promo4 .ava {
        box-sizing: border-box;
        width: 268px;
        max-width: 100%;
        min-height: 221px;
        margin: 0 auto;
        padding: 0;
        float: none;
        background-position: center top;
    }

    body.modern-user-shell .king-service-page .promo4 .img {
        margin: 49px auto 68px;
    }

    body.modern-user-shell .king-service-page .promo4 .txt,
    body.modern-user-shell .king-service-page .promo4 .txt.kfk {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 16px;
        float: none;
        border: 1px solid #c9dfeb;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(35, 85, 114, 0.1);
    }

    body.modern-user-shell #kingPurchaseBlock {
        scroll-margin-top: 88px;
    }

    body.modern-user-shell .king-service-page .promo4 .bet {
        box-sizing: border-box;
        min-height: 42px;
        margin: 0 0 12px;
        padding: 10px 12px 10px 38px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        border-radius: 10px;
        background: #eef7fc;
        color: #314b5c;
        font-size: 15px;
        line-height: 1.35;
    }

    body.modern-user-shell .king-service-page .promo4 .bet i {
        top: 11px;
        left: 11px;
    }

    body.modern-user-shell .king-service-page .orb3 {
        margin: 0 0 13px;
        padding: 0;
        border-radius: 10px;
        background: #f7fafc;
    }

    body.modern-user-shell .king-service-page .orb3-mid {
        padding: 12px;
        background: none;
        color: #526b7b;
        font-size: 14px;
        line-height: 1.45;
    }

    body.modern-user-shell .king-service-page .king-left {
        box-sizing: border-box;
        margin: 0 0 12px;
        padding: 11px 12px;
        border-radius: 10px;
        background: #fff7df;
        font-size: 14px;
        line-height: 1.45;
    }

    body.modern-user-shell .king-service-page .king-msg {
        box-sizing: border-box;
        width: 100% !important;
        height: 44px;
        margin: 0 0 12px;
        padding: 10px 12px;
        border: 1px solid #b9d3e2;
        border-radius: 10px;
        font-size: 16px;
        line-height: 22px;
    }

    body.modern-user-shell .king-service-page .promo4 .txt > .wrap {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        overflow: visible;
    }

    body.modern-user-shell .king-service-page .promo4 .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 48px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none !important;
        overflow: hidden;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(135deg, #6677ed 0%, #7d45b5 100%);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 7px 16px rgba(91, 75, 183, 0.24);
    }

    body.modern-user-shell .king-service-page .promo4 .m_button span {
        box-sizing: border-box;
        width: 100%;
        padding: 12px 10px;
        display: block;
        background: none;
        color: inherit;
        font: 700 15px/1.3 Arial, Helvetica, sans-serif;
        text-align: center;
        white-space: normal;
    }

    body.modern-user-shell .king-service-page .congradulate {
        margin: 0 0 10px;
        font-size: 15px;
        line-height: 1.4;
    }

    body.modern-user-shell .king-service-page .time-count {
        margin: 0 0 12px;
        padding: 8px 10px 8px 30px;
        border-radius: 9px;
        background: #fff7df;
        font-size: 22px;
        line-height: 28px;
    }

    body.modern-user-shell .king-service-page .time-count i {
        top: 15px;
        left: 10px;
    }

    body.modern-user-shell .king-service-page .promo4 .dates {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    body.modern-user-shell .king-service-page .promo4 .dates span {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 36px;
        padding: 8px 10px 8px 32px;
        display: block;
        border-radius: 8px;
        background: #f3f7fa;
        font-size: 14px;
        line-height: 20px;
    }

    body.modern-user-shell .king-service-page .promo4 .dates .ico {
        top: 10px;
        left: 10px;
    }

    body.modern-user-shell .king-service-page .upload {
        box-sizing: border-box;
        width: 100%;
        padding: 0 12px 12px;
        overflow: hidden;
    }

    body.modern-user-shell .king-service-page table.viplus,
    body.modern-user-shell .king-service-page .viplus thead,
    body.modern-user-shell .king-service-page .viplus tbody {
        box-sizing: border-box;
        width: 100%;
        display: block;
    }

    body.modern-user-shell .king-service-page table.viplus {
        margin: 0;
        overflow: hidden;
        border: 1px solid #c9dce7;
        border-radius: 12px;
        background: #fff;
    }

    body.modern-user-shell .king-service-page .viplus thead tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 54px 64px;
        background: #edf5fa;
    }

    body.modern-user-shell .king-service-page .viplus tbody tr {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr) 54px 64px;
        border-top: 1px solid #d9e5ec;
    }

    body.modern-user-shell .king-service-page .viplus th,
    body.modern-user-shell .king-service-page .viplus th:first-child,
    body.modern-user-shell .king-service-page .viplus td,
    body.modern-user-shell .king-service-page .viplus td.vc1-1,
    body.modern-user-shell .king-service-page .viplus td.vc2 {
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 10px 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 0;
        border-left: 1px solid #d9e5ec;
        background: transparent;
        font-size: 12px;
        line-height: 1.35;
        text-indent: 0;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .king-service-page .viplus th:first-child,
    body.modern-user-shell .king-service-page .viplus td.vc1-1 {
        border-left: 0;
    }

    body.modern-user-shell .king-service-page .viplus th:first-child {
        justify-content: flex-start;
        font-size: 13px;
    }

    body.modern-user-shell .king-service-page .viplus td.vc2 {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    body.modern-user-shell .king-service-page .viplus td.vc2 strong {
        margin-bottom: 4px;
        font-size: 14px;
        line-height: 1.3;
    }

    body.modern-user-shell .king-service-page .viplus img {
        box-sizing: border-box;
        width: 54px;
        max-width: 100%;
        height: auto;
        padding: 0;
        border: 0;
        border-radius: 7px;
    }

    body.modern-user-shell .king-service-page .vip-bot {
        box-sizing: border-box;
        width: calc(100% - 24px);
        height: auto;
        min-height: 0;
        margin: 0 12px 14px;
        padding: 16px;
        border-radius: 11px;
        background: #55a6cf;
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
    }
}

/* /kings/ desktop: full-width header, avatar and info card side by side, modern benefits table. */
@media (min-width: 701px) {
    body.modern-user-shell .king-service-page .king-top {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 170px;
        padding: 34px 24px 46px 190px;
        background-position: left bottom;
        background-size: cover;
    }

    body.modern-user-shell .king-service-page .king-top h1 {
        margin: 0 0 8px;
        font-size: 28px;
        line-height: 1.15;
    }

    body.modern-user-shell .king-service-page .king-top strong {
        font-size: 16px;
        line-height: 1.35;
    }

    body.modern-user-shell .king-service-page .promo4 {
        box-sizing: border-box;
        padding: 20px 24px 28px;
        display: grid;
        grid-template-columns: 268px minmax(0, 460px);
        justify-content: center;
        align-items: center;
        gap: 36px;
        overflow: visible;
    }

    body.modern-user-shell .king-service-page .promo4 .ava {
        box-sizing: border-box;
        width: 268px;
        min-height: 221px;
        margin: 0;
        padding: 0;
        float: none;
        background-position: center top;
    }

    body.modern-user-shell .king-service-page .promo4 .txt,
    body.modern-user-shell .king-service-page .promo4 .txt.kfk {
        box-sizing: border-box;
        width: auto;
        margin: 0;
        padding: 20px;
        float: none;
        border: 1px solid #c9dfeb;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(35, 85, 114, 0.1);
        color: #253b4a;
        font: 400 14px/1.45 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .king-service-page .congradulate {
        margin: 0 0 10px;
        font: 400 15px/1.4 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .king-service-page .time-count {
        margin: 0 0 14px;
        padding: 8px 12px 8px 34px;
        border-radius: 9px;
        background: #fff7df;
        font: 700 24px/30px Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .king-service-page .time-count i {
        top: 17px;
        left: 12px;
    }

    body.modern-user-shell .king-service-page .promo4 .dates {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    body.modern-user-shell .king-service-page .promo4 .dates span {
        box-sizing: border-box;
        height: auto;
        min-height: 36px;
        padding: 8px 10px 8px 34px;
        border-radius: 8px;
        background: #f3f7fa;
        font: 400 14px/20px Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .king-service-page .promo4 .dates .ico {
        top: 11px;
        left: 11px;
    }

    body.modern-user-shell .king-service-page .promo4 .bet {
        box-sizing: border-box;
        min-height: 42px;
        margin: 0 0 12px;
        padding: 10px 12px 10px 38px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        border-radius: 10px;
        background: #eef7fc;
        color: #314b5c;
        font-size: 15px;
        line-height: 1.35;
    }

    body.modern-user-shell .king-service-page .promo4 .bet i {
        top: 11px;
        left: 11px;
    }

    body.modern-user-shell .king-service-page .orb3 {
        margin: 0 0 12px;
        padding: 0;
        border-radius: 10px;
        background: #f7fafc;
    }

    body.modern-user-shell .king-service-page .orb3-mid {
        padding: 12px;
        background: none;
        color: #526b7b;
        font-size: 14px;
        line-height: 1.45;
    }

    body.modern-user-shell .king-service-page .king-left {
        box-sizing: border-box;
        margin: 0 0 12px;
        padding: 11px 12px;
        border-radius: 10px;
        background: #fff7df;
        font-size: 14px;
        line-height: 1.45;
    }

    body.modern-user-shell .king-service-page .king-msg {
        box-sizing: border-box;
        width: 100% !important;
        height: 42px;
        margin: 0 0 12px;
        padding: 10px 12px;
        border: 1px solid #b9d3e2;
        border-radius: 10px;
        font-size: 15px;
        line-height: 20px;
    }

    body.modern-user-shell .king-service-page .promo4 .txt > .wrap {
        width: 100%;
        margin: 0;
        overflow: visible;
    }

    body.modern-user-shell .king-service-page .promo4 .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 46px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none !important;
        border: 0;
        border-radius: 11px;
        background: linear-gradient(135deg, #6677ed 0%, #7d45b5 100%);
        color: #fff;
        text-decoration: none;
        box-shadow: 0 7px 16px rgba(91, 75, 183, 0.24);
    }

    body.modern-user-shell .king-service-page .promo4 .m_button:hover {
        filter: brightness(1.05);
    }

    body.modern-user-shell .king-service-page .promo4 .m_button span {
        padding: 12px 14px;
        background: none;
        color: inherit;
        font: 700 15px/1.3 Arial, Helvetica, sans-serif;
        text-align: center;
    }

    body.modern-user-shell .king-service-page .upload {
        box-sizing: border-box;
        padding: 0 24px 22px;
    }

    body.modern-user-shell .king-service-page table.viplus {
        width: 100%;
        margin: 0;
        overflow: hidden;
        border: 1px solid #d6e4ee;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 12px;
        background: #fff;
    }

    body.modern-user-shell .king-service-page .viplus th,
    body.modern-user-shell .king-service-page .viplus th:first-child {
        padding: 12px 14px;
        border-bottom: 1px solid #d6e4ee;
        background: #f5f9fc;
        color: #21394b;
        font: 700 14px/1.3 Arial, Helvetica, sans-serif;
        text-indent: 0;
    }

    body.modern-user-shell .king-service-page .viplus th + th {
        width: 110px;
        text-align: center;
    }

    body.modern-user-shell .king-service-page .viplus th:nth-child(2) {
        border-right: 1px solid #d6e4ee;
        border-left: 1px solid #d6e4ee;
        background: #fff4e0;
    }

    body.modern-user-shell .king-service-page .viplus td,
    body.modern-user-shell .king-service-page .viplus tbody tr:first-child td {
        padding: 14px;
        border: 0;
        border-top: 1px solid #edf1f4;
        color: #4a5d6b;
        font: 400 14px/1.45 Arial, Helvetica, sans-serif;
        text-align: center;
        vertical-align: middle;
    }

    body.modern-user-shell .king-service-page .viplus tbody tr:first-child td {
        border-top: 0;
    }

    body.modern-user-shell .king-service-page .viplus td.vc1-1 {
        width: 86px;
        padding-right: 0;
    }

    body.modern-user-shell .king-service-page .viplus img {
        width: 72px;
        height: auto;
        padding: 0;
        display: block;
        border: 0;
        border-radius: 8px;
    }

    body.modern-user-shell .king-service-page .viplus td.vc2,
    body.modern-user-shell .king-service-page .viplus tbody tr:first-child td.vc2 {
        width: auto;
        padding: 14px 18px;
        text-align: left;
    }

    body.modern-user-shell .king-service-page .viplus td.vc2 strong {
        margin-bottom: 4px;
        color: #21394b;
        font: 700 15px/1.35 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .king-service-page .viplus td:nth-child(3) {
        border-right: 1px solid #d6e4ee;
        border-left: 1px solid #d6e4ee;
        background: #fffaf0;
    }
}

@media (max-width: 390px) {
    body.modern-user-shell .king-service-page .viplus thead tr {
        grid-template-columns: minmax(0, 1fr) 58px 66px;
    }

    body.modern-user-shell .king-service-page .viplus tbody tr {
        grid-template-columns: 50px minmax(0, 1fr) 58px 66px;
    }

    body.modern-user-shell .king-service-page .viplus th + th {
        overflow-wrap: normal;
        white-space: nowrap;
    }

    body.modern-user-shell .king-service-page .viplus th,
    body.modern-user-shell .king-service-page .viplus th:first-child,
    body.modern-user-shell .king-service-page .viplus td,
    body.modern-user-shell .king-service-page .viplus td.vc1-1,
    body.modern-user-shell .king-service-page .viplus td.vc2 {
        padding: 8px 5px;
        font-size: 11px;
    }

    body.modern-user-shell .king-service-page .viplus img {
        width: 40px;
    }
}

/* /profile/ cabinet: stats and REAL hints as cards, denser avatar grids for guests, friends and votes. */
body.modern-user-shell .maincol .profile > .wrap {
    box-sizing: border-box;
    padding: 12px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
}

body.modern-user-shell .maincol .profile .general-stats,
body.modern-user-shell .maincol .profile .ad-stats {
    box-sizing: border-box;
    width: auto;
    min-height: 92px;
    margin: 0;
    float: none;
    border: 1px solid #d6e4ee;
    border-radius: 12px;
    background: #f7fbfe;
    color: #3d5161;
    font: 400 14px/1.4 Arial, Helvetica, sans-serif;
}

body.modern-user-shell .maincol .profile .general-stats {
    padding: 14px 14px 14px 72px;
}

body.modern-user-shell .maincol .profile .general-stats > strong {
    margin-left: 4px;
    color: #f08c00;
    font-size: 20px;
    line-height: 1;
}

body.modern-user-shell .maincol .profile .gs-ico {
    left: 14px;
}

body.modern-user-shell .maincol .profile .general-stats .wrapper {
    margin: 10px 0 0;
}

body.modern-user-shell .maincol .profile .ad-stats {
    padding: 14px 16px 14px 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 6px 12px;
}

body.modern-user-shell .maincol .profile .ad-stats::before {
    top: 50%;
    left: 16px;
    margin-top: -22px;
}

body.modern-user-shell .maincol .profile .ad-stats dt {
    margin: 0;
}

body.modern-user-shell .maincol .profile .ad-stats dd {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.1;
}

body.modern-user-shell .maincol .profile .advice {
    box-sizing: border-box;
    margin: 12px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #c9dfeb;
    border-radius: 12px;
    background: #f7fbfe;
}

body.modern-user-shell .maincol .profile .advice .piece {
    box-sizing: border-box;
    width: auto;
    padding: 14px 18px;
    float: none;
    border-left: 1px solid #dfe9f0;
    font: 400 14px/1.45 Arial, Helvetica, sans-serif;
}

body.modern-user-shell .maincol .profile .advice .piece:first-child {
    border-left: 0;
}

body.modern-user-shell .maincol .profile .advice .piece strong {
    margin: 0 0 6px;
    color: #21394b;
    font-size: 15px;
}

body.modern-user-shell .maincol .profile > p.nothing {
    margin: 0;
    padding: 18px 0;
    color: #6b7f8e;
    font-size: 14px;
    text-align: center;
}

body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-user),
body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-vote) {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-user)::after,
body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-vote)::after {
    content: none;
}

body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-user,
body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-vote {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
    aspect-ratio: 1;
    border-radius: 10px;
}

body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-user > a,
body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-vote > a {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-user > a img,
body.modern-user-shell .maincol .profile > .favs.wrapper > .fav-vote > a img {
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    padding: 0;
    border-radius: 10px;
    object-fit: cover;
}

@media (max-width: 700px) {
    body.modern-user-shell .maincol .profile > .wrap,
    body.modern-user-shell .maincol .profile .advice {
        grid-template-columns: minmax(0, 1fr);
    }

    body.modern-user-shell .maincol .profile .advice .piece {
        border-top: 1px solid #dfe9f0;
        border-left: 0;
    }

    body.modern-user-shell .maincol .profile .advice .piece:first-child {
        border-top: 0;
    }

    body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-user),
    body.modern-user-shell .content-frame .maincol .profile > .favs.wrapper:has(> .fav-vote) {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
        gap: 8px;
    }
}

/* /users/: the ad inserted between user cards spans the whole grid row instead of one card cell. */
body.modern-user-shell .favs > .floatspot,
body.guest_img_blur .favs > .floatspot {
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0;
    grid-column: 1 / -1;
    float: none;
    text-align: center;
}

body.modern-user-shell .favs > .floatspot img,
body.guest_img_blur .favs > .floatspot img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
}

/* /kings/all/: history cards fill the box; stats as chips, profile actions in a side column. */
body.modern-user-shell .king-history {
    box-sizing: border-box;
    width: 100%;
    min-height: 186px;
    margin: 0 0 12px;
    padding: 14px 16px 14px 206px;
    border: 1px solid #dfe7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(35, 85, 114, 0.06);
    color: #3d5161;
    font: 400 13px/1.45 Arial, Helvetica, sans-serif;
}

body.modern-user-shell .king-history.king-current {
    border-color: #f2d29e;
    background: #fffaf0;
}

body.modern-user-shell .king-history .ava {
    top: 14px;
    left: 14px;
}

body.modern-user-shell .king-history .hd {
    margin: 0 0 10px;
    padding: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    overflow: visible;
    border-bottom: 1px solid #edf1f4;
}

body.modern-user-shell .king-history .dates {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    float: none;
    font: 700 13px/20px Arial, Helvetica, sans-serif;
}

body.modern-user-shell .king-history .dates > span {
    margin: 0;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    float: none;
    border-radius: 999px;
    background: #f1f6fa;
    color: #21394b;
}

body.modern-user-shell .king-history.king-current .dates > span {
    background: #fff0d2;
}

body.modern-user-shell .king-history .dates .ico {
    margin: 0;
    float: none;
}

body.modern-user-shell .king-history .hd .profile-rating {
    float: none;
    flex: 0 0 auto;
}

body.modern-user-shell .king-history > .wrapper {
    width: auto;
    display: flex;
    gap: 16px;
}

body.modern-user-shell .king-history > .wrapper::after {
    content: none;
}

body.modern-user-shell .king-history .friend-main {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    float: none;
}

body.modern-user-shell .king-history .friend-main .author a {
    font-size: 15px;
    font-weight: 700;
}

body.modern-user-shell .king-history .friend-main .location,
body.modern-user-shell .king-history .friend-main p,
body.modern-user-shell .king-history .friend-main ul a {
    font-size: 13px;
    line-height: 1.45;
}

body.modern-user-shell .king-history .friend-main p {
    margin: 6px 0;
    overflow-wrap: anywhere;
}

body.modern-user-shell .king-history .friend-side {
    box-sizing: border-box;
    width: 210px;
    flex: 0 0 210px;
    padding-left: 14px;
    float: none;
    border-left: 1px solid #edf1f4;
}

body.modern-user-shell .king-history .friend-side li a {
    font-size: 13px;
    line-height: 22px;
}

body.modern-user-shell .king-history .become {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #f2e2c4;
}

@media (max-width: 700px) {
    body.modern-user-shell .king-history {
        min-height: 0;
        padding: 14px;
    }

    body.modern-user-shell .king-history .ava {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 12px;
    }

    body.modern-user-shell .king-history .hd {
        justify-content: center;
    }

    body.modern-user-shell .king-history .dates {
        justify-content: center;
    }

    body.modern-user-shell .king-history > .wrapper {
        flex-direction: column;
        gap: 10px;
    }

    body.modern-user-shell .king-history .friend-side {
        width: 100%;
        flex-basis: auto;
        padding: 10px 0 0;
        border-top: 1px solid #edf1f4;
        border-left: 0;
    }

    body.modern-user-shell .king-history .friend-side ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
    }

    body.modern-user-shell .king-history .become .m_button {
        box-sizing: border-box;
        width: 100%;
    }
}

/* King return alert: keep translated text together instead of separate flex columns. */
.warning.king-alert {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.warning.king-alert > .king-alert__content {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.warning.king-alert > .king-alert__content strong {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .warning.king-alert {
        width: calc(100% - 24px);
        margin: 12px !important;
        padding: 14px !important;
        align-items: flex-start !important;
        gap: 12px !important;
        overflow: hidden !important;
    }

    .warning.king-alert > i {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .warning.king-alert > .king-alert__content {
        font-size: 16px;
        line-height: 1.45;
    }

    .warning.king-alert > .king-alert__content a {
        display: inline-block;
    }
}

/* /billing/service/up: raise-up page — clear mobile layout + already-first state */
body.modern-user-shell .box.raiseup-service-page,
body.modern-user-shell .raiseup-service-page.box {
    padding-bottom: 0 !important;
}

body.modern-user-shell .raiseup-service-page .raiseup-status {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #9ed0a8;
    border-radius: 14px;
    background: #f1faf3;
}

body.modern-user-shell .raiseup-service-page .raiseup-status__badge {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd56a 0%, #f0a51a 100%);
    color: #7a4a00;
    font: 700 18px/1 Arial, Helvetica, sans-serif;
    box-shadow: 0 4px 12px rgba(180, 120, 20, 0.28);
}

body.modern-user-shell .raiseup-service-page .raiseup-status__body {
    min-width: 0;
    flex: 1 1 auto;
}

body.modern-user-shell .raiseup-service-page .raiseup-status__body strong {
    display: block;
    margin: 0 0 4px;
    color: #1f6b35;
    font-size: 17px;
    line-height: 1.25;
}

body.modern-user-shell .raiseup-service-page .raiseup-status__body p {
    margin: 0;
    color: #3f6a4a;
    font-size: 14px;
    line-height: 1.45;
}

body.modern-user-shell .raiseup-service-page .raiseup-stats {
    display: grid;
    gap: 10px;
}

body.modern-user-shell .raiseup-service-page .raiseup-stats__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

body.modern-user-shell .raiseup-service-page .raiseup-stats__label {
    color: #526b7b;
    font-weight: normal;
}

body.modern-user-shell .raiseup-service-page .raiseup-stats__value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 900px) {
    body.modern-user-shell .raiseup-service-page,
    body.modern-user-shell .raiseup-service-page > .i1 {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    body.modern-user-shell .raiseup-service-page > h2.bredcrumbs {
        box-sizing: border-box;
        height: auto;
        min-height: 52px;
        padding: 12px 14px;
        font-size: 17px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .raiseup-service-page > h2.bredcrumbs span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .leftcol .nav-wallet {
        box-sizing: border-box;
        width: auto;
        margin: 0 8px 10px;
        border-radius: 10px;
        overflow: hidden;
    }

    body.modern-user-shell .leftcol .nav-wallet li {
        float: none;
        width: 100%;
    }

    body.modern-user-shell .leftcol .nav-wallet a {
        box-sizing: border-box;
        min-height: 48px;
        padding: 12px 14px 12px 28px;
        font-size: 14px;
        line-height: 1.35;
    }

    body.modern-user-shell .leftcol .nav-wallet a strong {
        display: block;
        margin-bottom: 2px;
        font-size: 15px;
    }

    body.modern-user-shell .leftcol .balance.table {
        box-sizing: border-box;
        width: calc(100% - 16px);
        margin: 8px;
    }
}

@media (max-width: 700px) {
    body.modern-user-shell .raiseup-service-page .serv-top,
    body.modern-user-shell .raiseup-service-page .serv-top.win-top {
        box-sizing: border-box;
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 18px 16px 20px 118px;
        display: block;
        background: linear-gradient(135deg, #6bb7d8 0%, #4a91b4 55%, #3d7ea0 100%);
        overflow: hidden;
    }

    body.modern-user-shell .raiseup-service-page .win-top::before {
        content: "" !important;
        display: block !important;
        position: absolute;
        left: 10px;
        top: 50%;
        width: 96px;
        height: 96px;
        margin-top: -48px;
        text-indent: 0;
        background: url("../images/bg-serv-win.jpg") no-repeat 50% 50% !important;
        background-size: contain !important;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(20, 55, 75, 0.22);
        z-index: 1;
    }

    body.modern-user-shell .raiseup-service-page .serv-top h1 {
        position: relative;
        z-index: 2;
        margin: 0 0 6px;
        padding: 0;
        color: #fff;
        font-size: clamp(22px, 6.2vw, 28px);
        line-height: 1.15;
        overflow-wrap: anywhere;
        text-shadow: 0 1px 0 rgba(40, 70, 90, 0.45);
    }

    body.modern-user-shell .raiseup-service-page .serv-top strong {
        position: relative;
        z-index: 2;
        display: block;
        padding: 0;
        color: rgba(255, 255, 255, 0.95);
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
        text-shadow: none;
        font-weight: 600;
    }

    body.modern-user-shell .raiseup-service-page .promo5 {
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 16px 14px 18px;
        overflow: visible;
        background: #fff;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    body.modern-user-shell .raiseup-service-page .orb4 {
        margin: 0 0 14px;
        padding: 0;
        border: 1px solid #f0c989;
        border-radius: 12px;
        background: #fff8e8;
        overflow: hidden;
    }

    body.modern-user-shell .raiseup-service-page .orb4-mid {
        padding: 14px;
        background: none;
        color: #5a4a2e;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .raiseup-service-page .current-pos,
    body.modern-user-shell .raiseup-service-page .raiseup-stats {
        box-sizing: border-box;
        margin: 0 0 14px;
        padding: 14px;
        border: 1px solid #c9dfeb;
        border-radius: 12px;
        background: #f7fbfe;
        font-size: 15px;
        line-height: 1.55;
        box-shadow: none;
    }

    body.modern-user-shell .raiseup-service-page .raiseup-stats__value {
        font-size: 22px;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt > p {
        margin: 0 0 16px;
        color: #445b6b;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt > .wrap {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        overflow: visible;
        text-align: center;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 48px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        float: none !important;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffd978 0%, #f0b429 100%) !important;
        color: #401b00;
        text-shadow: none;
        box-shadow: 0 6px 14px rgba(180, 120, 20, 0.22);
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button span {
        box-sizing: border-box;
        float: none !important;
        width: 100%;
        margin: 0;
        padding: 12px 16px !important;
        display: block;
        background: none !important;
        font-size: 15px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button:hover span,
    body.modern-user-shell .raiseup-service-page .promo5 .m_button:focus-visible span {
        text-decoration: none;
    }

    body.modern-user-shell .raiseup-service-page .vip-bot {
        box-sizing: border-box;
        width: calc(100% - 24px);
        height: auto;
        min-height: 0;
        margin: 0 12px 12px;
        padding: 14px 16px;
        border-radius: 11px;
        background: #55a6cf;
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    body.modern-user-shell .raiseup-service-page.is-already-first .serv-top,
    body.modern-user-shell .raiseup-service-page.is-already-first .serv-top.win-top {
        background: linear-gradient(135deg, #57b27a 0%, #3e9460 55%, #2f7a4d 100%);
    }
}

/* /up/ desktop: full-width header, illustration and info card side by side. */
@media (min-width: 701px) {
    body.modern-user-shell .raiseup-service-page .serv-top {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 150px;
        padding: 30px 24px 46px 190px;
        background-position: left bottom;
        background-size: cover;
    }

    body.modern-user-shell .raiseup-service-page .serv-top h1 {
        margin: 0 0 8px;
        font-size: 28px;
        line-height: 1.15;
    }

    body.modern-user-shell .raiseup-service-page .serv-top strong {
        font-size: 16px;
        line-height: 1.35;
    }

    body.modern-user-shell .raiseup-service-page .promo5 {
        box-sizing: border-box;
        min-height: 0;
        margin: 0;
        padding: 20px 24px 28px;
        display: grid;
        grid-template-columns: 257px minmax(0, 440px);
        justify-content: center;
        align-items: center;
        gap: 48px;
        background: none;
    }

    body.modern-user-shell .raiseup-service-page .promo5::before {
        content: "";
        width: 257px;
        height: 240px;
        background: url("../images/bg-promo5.jpg") no-repeat center;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt {
        box-sizing: border-box;
        width: auto;
        margin: 0;
        padding: 20px;
        float: none;
        border: 1px solid #c9dfeb;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(35, 85, 114, 0.1);
        color: #3d5161;
        font: 400 14px/1.45 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .raiseup-service-page .orb4 {
        margin: 0 0 14px;
        padding: 0;
        overflow: hidden;
        border: 1px solid #f0c989;
        border-radius: 12px;
        background: #fff8e8;
    }

    body.modern-user-shell .raiseup-service-page .orb4-mid {
        padding: 12px 14px;
        background: none;
        color: #5a4a2e;
        font-size: 14px;
        line-height: 1.5;
    }

    body.modern-user-shell .raiseup-service-page .current-pos,
    body.modern-user-shell .raiseup-service-page .raiseup-stats {
        box-sizing: border-box;
        margin: 0 0 14px;
        padding: 12px 14px;
        border: 1px solid #c9dfeb;
        border-radius: 12px;
        background: #f7fbfe;
        font: 400 14px/1.5 Arial, Helvetica, sans-serif;
    }

    body.modern-user-shell .raiseup-service-page .raiseup-stats__value {
        font-size: 22px;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt > p {
        margin: 0 0 16px;
        color: #445b6b;
        font-size: 14px;
        line-height: 1.5;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .txt > .wrap {
        width: 100%;
        margin: 0;
        overflow: visible;
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 46px;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        float: none !important;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffd978 0%, #f0b429 100%) !important;
        color: #401b00;
        text-decoration: none;
        text-shadow: none;
        box-shadow: 0 6px 14px rgba(180, 120, 20, 0.22);
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button:hover {
        filter: brightness(1.04);
    }

    body.modern-user-shell .raiseup-service-page .promo5 .m_button span {
        float: none !important;
        margin: 0;
        padding: 12px 16px !important;
        background: none !important;
        font: 700 15px/1.3 Arial, Helvetica, sans-serif;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body.modern-user-shell .raiseup-service-page .serv-top,
    body.modern-user-shell .raiseup-service-page .serv-top.win-top {
        padding: 112px 14px 16px;
        text-align: center;
    }

    body.modern-user-shell .raiseup-service-page .win-top::before {
        left: 50%;
        top: 12px;
        margin-top: 0;
        margin-left: -48px;
    }

    body.modern-user-shell .raiseup-service-page .serv-top h1,
    body.modern-user-shell .raiseup-service-page .serv-top strong {
        padding-left: 0;
        width: 100%;
    }
}

.modern-icon-tip {
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    max-width: 240px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #1f3444;
    color: #fff;
    font: 600 12px/1.35 Arial, Helvetica, sans-serif;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(20, 45, 62, 0.22);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

.modern-icon-tip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 120ms ease, transform 120ms ease;
}

.modern-icon-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: var(--tip-arrow-x, 50%);
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #1f3444;
}

.modern-icon-tip.is-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1f3444;
}

/* Site-wide vector replacements for the 2011 sprite icons (zodiac stays on the sprite). */
.ico.i-msg,
.ico.i-addfriend,
.ico.i-addfav,
.ico.i-remfav,
.ico.i-gift,
.ico.i-photo,
.ico.i-video,
.i-male,
.i-female,
.i-couple,
.i-lesbiancouple,
.i-gaycouple,
.friend-main .location > i {
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.ico.i-msg,
.ico.i-addfriend,
.ico.i-addfav,
.ico.i-remfav,
.ico.i-gift {
    width: 16px !important;
    height: 16px !important;
}

.friend-box .friend-side li > a > .ico {
    width: 16px !important;
    height: 16px !important;
    top: 50% !important;
    left: 0 !important;
    margin-top: -8px !important;
}

.ico.i-msg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E") !important;
}

.ico.i-addfriend {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-.5A6.5 6.5 0 0 1 8.5 14h1a6.5 6.5 0 0 1 6.5 6.5v.5'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") !important;
}

.ico.i-addfav {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

.ico.i-remfav {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5b301' stroke='%23e09a00' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

.ico.i-gift {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-money,
.profoptions .ico.i-vip-small,
.profoptions .ico.i-remfriend,
.profoptions .ico.i-addbl,
.profoptions .ico.i-rembl,
.profoptions .ico.i-abuse {
    width: 16px !important;
    height: 16px !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.profoptions .ico.i-money {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='9' cy='6.5' rx='6' ry='2.5'/%3E%3Cpath d='M3 6.5v4c0 1.4 2.7 2.5 6 2.5s6-1.1 6-2.5v-4'/%3E%3Cpath d='M9 15.5c-3.3 0-6-1.1-6-2.5v4c0 1.4 2.7 2.5 6 2.5 1 0 2-.1 2.8-.3'/%3E%3Ccircle cx='17' cy='16' r='4.5'/%3E%3Cpath d='M17 14v4'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-vip-small {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 7 18h10l4-9.5-5 3.5-4-6.5-4 6.5z'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-remfriend {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-.5A6.5 6.5 0 0 1 8.5 14h1a6.5 6.5 0 0 1 6.5 6.5v.5'/%3E%3Cpath d='M16 11h6'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-addbl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9534f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-rembl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9d5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E") !important;
}

.profoptions .ico.i-abuse {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e08a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.5A2 2 0 0 0 4.1 20.5h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5v4M12 17h.01'/%3E%3C/svg%3E") !important;
}

.friend-main .location > i {
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10c0 5.5-7.5 11.5-7.5 11.5S4.5 15.5 4.5 10a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10' r='2.75'/%3E%3C/svg%3E") !important;
}

.friend-main ul li {
    background: none !important;
}

.friend-main ul li + li {
    margin-left: 4px !important;
    padding-left: 10px !important;
    border-left: 1px solid #d5e4ed;
}

.ico.i-photo,
.ico.i-video {
    width: 16px !important;
    height: 16px !important;
}

.friend-main ul li .ico.i-photo,
.friend-main ul li .ico.i-video {
    margin: 0 4px 0 0 !important;
}

.ico.i-photo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7.5 7H4.5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h15a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3z'/%3E%3Ccircle cx='12' cy='13' r='3.25'/%3E%3C/svg%3E") !important;
}

.ico.i-video {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='13' height='12' rx='2.5'/%3E%3Cpath d='m21.5 8-6 4 6 4z'/%3E%3C/svg%3E") !important;
}

i.i-male,
i.i-female {
    width: 13px !important;
    height: 13px !important;
}

i.i-couple,
i.i-lesbiancouple,
i.i-gaycouple {
    width: 17px !important;
    height: 13px !important;
}

.i-male {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3E%3Ccircle cx='8' cy='4.75' r='3.25'/%3E%3Cpath d='M1.75 15c0-3.4 2.8-5.75 6.25-5.75s6.25 2.35 6.25 5.75z'/%3E%3C/svg%3E") !important;
}

.i-female {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ec4899'%3E%3Ccircle cx='8' cy='4.75' r='3.25'/%3E%3Cpath d='M1.75 15c0-3.4 2.8-5.75 6.25-5.75s6.25 2.35 6.25 5.75z'/%3E%3C/svg%3E") !important;
}

.i-couple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 16'%3E%3Cg fill='%233b82f6'%3E%3Ccircle cx='6.5' cy='4.75' r='3'/%3E%3Cpath d='M1 15c0-3.2 2.4-5.5 5.5-5.5S12 11.8 12 15z'/%3E%3C/g%3E%3Cg fill='%23ec4899' stroke='%23fff' stroke-width='1'%3E%3Ccircle cx='14.5' cy='4.75' r='3'/%3E%3Cpath d='M9 15c0-3.2 2.4-5.5 5.5-5.5S20 11.8 20 15z'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.i-lesbiancouple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 16'%3E%3Cg fill='%23f472b6'%3E%3Ccircle cx='6.5' cy='4.75' r='3'/%3E%3Cpath d='M1 15c0-3.2 2.4-5.5 5.5-5.5S12 11.8 12 15z'/%3E%3C/g%3E%3Cg fill='%23db2777' stroke='%23fff' stroke-width='1'%3E%3Ccircle cx='14.5' cy='4.75' r='3'/%3E%3Cpath d='M9 15c0-3.2 2.4-5.5 5.5-5.5S20 11.8 20 15z'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.i-gaycouple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 16'%3E%3Cg fill='%2360a5fa'%3E%3Ccircle cx='6.5' cy='4.75' r='3'/%3E%3Cpath d='M1 15c0-3.2 2.4-5.5 5.5-5.5S12 11.8 12 15z'/%3E%3C/g%3E%3Cg fill='%232563eb' stroke='%23fff' stroke-width='1'%3E%3Ccircle cx='14.5' cy='4.75' r='3'/%3E%3Cpath d='M9 15c0-3.2 2.4-5.5 5.5-5.5S20 11.8 20 15z'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/*
 * Photo/video detail action bar: one row of equal buttons, then a separate
 * "back | N of M | next" row. Comes last to win over the earlier mobile rules.
 */
body.modern-user-shell .upload > .msg-area,
body.guest_img_blur .upload > .msg-area {
    gap: 8px;
    padding: 12px;
}

body.modern-user-shell .upload > .msg-area .act-area span,
body.guest_img_blur .upload > .msg-area .act-area span {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    float: none;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #f3f8fc;
    color: #23415a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 140ms ease, border-color 140ms ease;
}

body.modern-user-shell .upload > .msg-area .act-area:hover span,
body.guest_img_blur .upload > .msg-area .act-area:hover span {
    border-color: #8fc0dc;
    background: #e6f2fa;
}

body.modern-user-shell .upload > .msg-area .act-area span > a,
body.guest_img_blur .upload > .msg-area .act-area span > a {
    margin: 0;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    float: none;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-decoration: none;
}

body.modern-user-shell .upload > .msg-area .act-area span > a.like,
body.guest_img_blur .upload > .msg-area .act-area span > a.like {
    color: #16a34a;
}

body.modern-user-shell .upload > .msg-area .act-area span > a.dislike,
body.guest_img_blur .upload > .msg-area .act-area span > a.dislike {
    color: #dc2626;
}

body.modern-user-shell .upload > .msg-area .act-area em,
body.guest_img_blur .upload > .msg-area .act-area em {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    display: block !important;
    flex: 0 0 18px;
    float: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transform: none !important;
}

body.modern-user-shell .upload > .msg-area .act-area em::before,
body.guest_img_blur .upload > .msg-area .act-area em::before {
    content: none !important;
}

body.modern-user-shell .upload > .msg-area .act-area .like em,
body.guest_img_blur .upload > .msg-area .act-area .like em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f23868'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.7 4.5c2.1 0 3.5 1.1 4.3 2.4.8-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.7 4.3 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area .dislike em,
body.guest_img_blur .upload > .msg-area .act-area .dislike em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V3'/%3E%3Cpath d='M9 18.1 10 14H4.2a2 2 0 0 1-1.9-2.6l2.3-7A2 2 0 0 1 6.5 3H20a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-2.8a2 2 0 0 0-1.8 1.1L12 22a3.1 3.1 0 0 1-3-3.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area em.favorite,
body.guest_img_blur .upload > .msg-area .act-area em.favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area em.rem-favorite,
body.guest_img_blur .upload > .msg-area .act-area em.rem-favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5b301' stroke='%23e09a00' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area .savevideo em,
body.guest_img_blur .upload > .msg-area .act-area .savevideo em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area .fullsize em,
body.guest_img_blur .upload > .msg-area .act-area .fullsize em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='m10 9 5 3-5 3z' fill='%23258fc5'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area .abuse em,
body.guest_img_blur .upload > .msg-area .act-area .abuse em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h12l-2.5 4.5L17 13H5'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload > .msg-area .act-area .abuse,
body.guest_img_blur .upload > .msg-area .act-area .abuse {
    width: 36px;
    padding: 0;
    justify-content: center;
}

/* Report is a secondary action: keep it at the far end of the button row. */
body.modern-user-shell .upload > .msg-area > .act-area:has(.abuse),
body.guest_img_blur .upload > .msg-area > .act-area:has(.abuse) {
    margin-left: auto;
}

body.modern-user-shell .upload > .msg-area > .pagination,
body.guest_img_blur .upload > .msg-area > .pagination {
    box-sizing: border-box;
    width: 100%;
    margin: 4px 0 0;
    padding: 10px 0 0;
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #e3edf3;
}

body.modern-user-shell .upload > .msg-area .pagination ul,
body.guest_img_blur .upload > .msg-area .pagination ul {
    display: contents;
}

body.modern-user-shell .upload > .msg-area .pagination .pg-prev,
body.guest_img_blur .upload > .msg-area .pagination .pg-prev {
    order: 0;
    flex: 0 0 auto;
    float: none;
}

body.modern-user-shell .upload > .msg-area .pagination .count,
body.guest_img_blur .upload > .msg-area .pagination .count {
    box-sizing: border-box;
    order: 1;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    float: none;
    border-radius: 9px;
    background: #f0f5f8;
    color: #526b7b;
    font-size: 13px;
    line-height: 1;
}

body.modern-user-shell .upload > .msg-area .pagination .pg-next,
body.guest_img_blur .upload > .msg-area .pagination .pg-next {
    order: 2;
    flex: 0 0 auto;
    float: none;
}

body.modern-user-shell .upload > .msg-area .pagination .pg-prev a,
body.guest_img_blur .upload > .msg-area .pagination .pg-prev a,
body.modern-user-shell .upload > .msg-area .pagination .pg-next a,
body.guest_img_blur .upload > .msg-area .pagination .pg-next a {
    box-sizing: border-box;
    width: auto;
    min-width: 96px;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    justify-content: center;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #f3f8fc;
    box-shadow: none;
    color: #23415a;
    font-size: 14px;
}

body.modern-user-shell .upload > .msg-area .pagination .pg-prev a:hover,
body.guest_img_blur .upload > .msg-area .pagination .pg-prev a:hover,
body.modern-user-shell .upload > .msg-area .pagination .pg-next a:hover,
body.guest_img_blur .upload > .msg-area .pagination .pg-next a:hover {
    border-color: #8fc0dc;
    background: #e6f2fa;
}

@media (max-width: 700px) {
    body.modern-user-shell .upload > .msg-area > .act-area:not(:has(.abuse)),
    body.guest_img_blur .upload > .msg-area > .act-area:not(:has(.abuse)) {
        flex: 1 1 auto;
    }

    body.modern-user-shell .upload > .msg-area > .act-area:not(:has(.abuse)) span,
    body.guest_img_blur .upload > .msg-area > .act-area:not(:has(.abuse)) span {
        width: 100%;
        height: 40px;
        min-height: 40px;
        justify-content: center;
    }

    body.modern-user-shell .upload > .msg-area .act-area .abuse,
    body.guest_img_blur .upload > .msg-area .act-area .abuse {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    body.modern-user-shell .upload > .msg-area .pagination .pg-prev,
    body.guest_img_blur .upload > .msg-area .pagination .pg-prev,
    body.modern-user-shell .upload > .msg-area .pagination .pg-next,
    body.guest_img_blur .upload > .msg-area .pagination .pg-next {
        flex: 1 1 0;
    }

    body.modern-user-shell .upload > .msg-area .pagination .pg-prev a,
    body.guest_img_blur .upload > .msg-area .pagination .pg-prev a,
    body.modern-user-shell .upload > .msg-area .pagination .pg-next a,
    body.guest_img_blur .upload > .msg-area .pagination .pg-next a {
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
    }

    body.modern-user-shell .upload > .msg-area .pagination .count,
    body.guest_img_blur .upload > .msg-area .pagination .count {
        height: 40px;
    }
}

/* Comment/wall composer spans its column like the section header above it. */
body.modern-user-shell .send-wall,
body.guest_img_blur .send-wall {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

body.modern-user-shell .send-wall textarea,
body.guest_img_blur .send-wall textarea,
body.modern-user-shell .send-wall #commentText.message-area,
body.guest_img_blur .send-wall #commentText.message-area {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
}

/*
 * Album header bar: stat chips on the left, actions on the right, tags as a
 * separate row. Same 36px controls and vector icons as the photo action bar.
 */
body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info {
    gap: 8px;
    padding: 12px;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools {
    gap: 8px;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools > div,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools > div {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 9px;
    color: #3b5468;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    flex: 0 0 16px;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    text-indent: -9999px;
    overflow: hidden;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico::before,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico::before {
    content: none !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-for,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-for {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f23868'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.2 3 4.5 6.7 4.5c2.1 0 3.5 1.1 4.3 2.4.8-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.7 4.3 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-against,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-against {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V3'/%3E%3Cpath d='M9 18.1 10 14H4.2a2 2 0 0 1-1.9-2.6l2.3-7A2 2 0 0 1 6.5 3H20a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-2.8a2 2 0 0 0-1.8 1.1L12 22a3.1 3.1 0 0 1-3-3.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-views,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-views {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-access,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools .ico.i-access {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area {
    flex: 0 0 auto;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area:first-of-type,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area:first-of-type {
    margin-left: auto;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area span,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area span {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    gap: 6px;
    background: #f3f8fc;
    color: #23415a !important;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 140ms ease, border-color 140ms ease;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area:hover span,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area:hover span {
    border-color: #8fc0dc;
    background: #e6f2fa;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area em,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area em {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    display: block !important;
    flex: 0 0 18px;
    float: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area em.favorite,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area em.favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area em.rem-favorite,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area em.rem-favorite {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5b301' stroke='%23e09a00' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area .fullsize em,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area .fullsize em {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='m10 9 5 3-5 3z' fill='%23258fc5'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-txt,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-txt {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e3edf3;
}

@media (max-width: 700px) {
    body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area,
    body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area {
        flex: 1 1 0;
        margin-left: 0;
    }

    body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area span,
    body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area span {
        width: 100%;
        height: 40px;
        min-height: 40px;
        justify-content: center;
    }
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info {
    gap: 6px;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools {
    gap: 6px;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info .alb-tools > div,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info .alb-tools > div {
    padding: 0 9px;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
}

body.modern-user-shell .upload :not(.modern-photo-manager) > .alb-info > .act-area span,
body.guest_img_blur .upload :not(.modern-photo-manager) > .alb-info > .act-area span {
    padding: 0 10px;
    font-size: 13px;
}

/*
 * Messages (inbox/outbox): one compact toolbar row, the list as a bordered
 * card, and a footer row with bulk actions and the pager. Everything uses the
 * same 36px controls as the rest of the modern shell.
 */
body.modern-user-shell .list-page #tabs_load > .wrapper:not(.favs) {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

body.modern-user-shell .list-page #tabs_load > .wrapper:not(.favs)::after {
    content: none;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) {
    width: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) .check-area,
body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) .act-area {
    margin: 0;
    float: none;
    position: relative;
}

body.modern-user-shell .list-page .check-area {
    box-sizing: border-box;
    width: 52px;
    height: 36px;
    padding: 0 0 0 11px;
    display: flex;
    align-items: center;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #f3f8fc !important;
    cursor: pointer;
}

body.modern-user-shell .list-page .check-area::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-top: 5px solid #62889f;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: translateY(-50%);
}

body.modern-user-shell .list-page .msg-bot .check-area::after {
    border-top: 0;
    border-bottom: 5px solid #62889f;
}

body.modern-user-shell .list-page .check-area input {
    width: 16px;
    height: 16px;
    margin: 0;
    float: none;
    accent-color: #258fc5;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) .act-area strong {
    height: 36px;
    min-height: 36px;
    padding: 0 30px 0 12px;
    display: flex;
    align-items: center;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #f3f8fc;
    color: #23415a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) .act-area strong:hover,
body.modern-user-shell .list-page .check-area:hover {
    border-color: #8fc0dc;
    background: #e6f2fa !important;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) .act-area strong::after {
    right: 11px;
    border-top-color: #62889f;
    border-right-width: 4px;
    border-left-width: 4px;
    border-top-width: 5px;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) span.sort {
    width: 16px;
    height: 16px;
    margin: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23258fc5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4'/%3E%3Cpath d='M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) ul {
    min-width: 180px;
    padding: 6px 0;
    border: 1px solid #c8dce8;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(28, 63, 88, 0.16);
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left):not(.msg-bot) ul {
    top: calc(100% + 4px);
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left):not(.msg-bot) ul::before {
    top: -8px;
    height: 8px;
}

body.modern-user-shell .list-page #tabs_load > .wrapper > :is(.msg-but, .left) li a {
    padding: 8px 14px 8px 30px;
    font-size: 14px;
}

body.modern-user-shell .list-page .fav-quant {
    margin: 0 0 0 auto;
    padding: 0;
    float: none;
}

body.modern-user-shell .list-page .fav-quant a {
    box-sizing: border-box;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    color: #267fae;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.modern-user-shell .list-page .fav-quant a:hover {
    background: #eef6fb;
}

body.modern-user-shell .list-page .fav-search {
    box-sizing: border-box;
    width: 200px;
    height: 36px;
    margin: 0;
    padding: 0;
    position: relative;
    float: none;
}

body.modern-user-shell .list-page .fav-search .text {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 38px 0 12px;
    float: none;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #fff;
    color: #22384a;
    font-size: 14px;
    line-height: 34px;
    text-transform: none;
}

body.modern-user-shell .list-page .fav-search .text:focus {
    border-color: #258fc5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 143, 197, 0.16);
}

body.modern-user-shell .list-page .fav-search .button {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    float: none;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362889f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") no-repeat center / 17px 17px !important;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

body.modern-user-shell .messages-page .space {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
}

body.modern-user-shell .messages-page table.msg {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

body.modern-user-shell .messages-page .msg th {
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #e3edf3;
    background: #f5f9fc;
    color: #647787;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.modern-user-shell .messages-page .msg th:last-child,
body.modern-user-shell .messages-page .msg td.msg-tools {
    text-align: right;
    padding-right: 14px;
}

body.modern-user-shell .messages-page .msg td {
    padding: 12px 10px;
    border-top: 1px solid #edf2f6;
    vertical-align: middle;
    transition: background-color 140ms ease;
}

body.modern-user-shell .messages-page .msg tbody tr:first-child td {
    border-top: 0;
}

body.modern-user-shell .messages-page .msg tbody tr:hover td {
    background: #f7fbfe;
}

body.modern-user-shell .messages-page .msg .newmsg td {
    background: #eef6fc;
}

body.modern-user-shell .messages-page .msg .newmsg td.check {
    box-shadow: inset 3px 0 0 #258fc5;
}

body.modern-user-shell .messages-page .msg td.check {
    width: 40px;
    padding-right: 0;
    padding-left: 12px;
}

body.modern-user-shell .messages-page .msg .check label {
    padding: 0;
    display: flex;
}

body.modern-user-shell .messages-page .msg .check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #258fc5;
}

body.modern-user-shell .messages-page .msg td.authorcell {
    width: 210px;
}

body.modern-user-shell .messages-page .authorcell .image,
body.modern-user-shell .messages-page .authorcell .image img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

body.modern-user-shell .messages-page .authorcell .image {
    margin-right: 10px;
    overflow: hidden;
    background: #eef3f7;
}

body.modern-user-shell .messages-page .authorcell .author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #1f6f9e;
    font-size: 14px;
    font-weight: 600;
}

body.modern-user-shell .messages-page .authorcell .author-status {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 600;
}

body.modern-user-shell .messages-page .authorcell .datetime {
    margin: 4px 0 0;
    color: #647787;
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
}

body.modern-user-shell .messages-page .authorcell .datetime span {
    color: #8a9aa7;
}

body.modern-user-shell .messages-page .msg td.txtcell {
    padding-right: 16px;
}

body.modern-user-shell .messages-page .msg td.txtcell a {
    color: #22384a;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
}

body.modern-user-shell .messages-page .msg .newmsg td.txtcell a {
    font-weight: 600;
}

body.modern-user-shell .messages-page .msg td.msg-tools {
    width: 96px;
    white-space: nowrap;
}

body.modern-user-shell .messages-page .msg-tools ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    list-style: none;
}

body.modern-user-shell .messages-page .msg-tools ul li {
    margin: 0;
}

body.modern-user-shell .messages-page .msg-tools a {
    font-size: 13px;
    font-weight: 600;
    color: #267fae;
}

body.modern-user-shell .messages-page .msg-tools li:last-child a {
    color: #b4233c;
}

body.modern-user-shell .messages-page .msg .checkedmsg td {
    background: #fff8e1 !important;
}

body.modern-user-shell .messages-page #tabs_load > .space + .wrapper,
body.modern-user-shell .messages-page #tabs_load > .msg-nothing + .wrapper {
    margin: 12px 0 0;
}

body.modern-user-shell .list-page .pagination {
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
}

body.modern-user-shell .list-page .pagination .count {
    margin: 0;
    padding: 0 4px;
    float: none;
    color: #526b7b;
    font-size: 13px;
}

body.modern-user-shell .list-page .pagination ul {
    gap: 6px;
    float: none;
}

body.modern-user-shell .list-page .pagination li {
    float: none;
}

body.modern-user-shell .list-page .pagination a {
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    float: none;
    border: 1px solid #c8dce8;
    border-radius: 9px;
    background: #f3f8fc;
    box-shadow: none;
    color: #23415a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transform: none;
}

body.modern-user-shell .list-page .pagination a:hover {
    border-color: #8fc0dc;
    background: #e6f2fa;
    box-shadow: none;
    transform: none;
}

body.modern-user-shell .list-page .pagination a span,
body.modern-user-shell .list-page .pagination a:hover span {
    float: none;
    color: inherit;
    text-decoration: none;
}

body.modern-user-shell .list-page .pagination a.inactive,
body.modern-user-shell .list-page .pagination a.inactive:hover {
    border-color: #e3edf3;
    background: #f7f9fb;
    color: #a3b2bd;
    opacity: 1;
}

body.modern-user-shell .list-page .pagination .pg-first a,
body.modern-user-shell .list-page .pagination .pg-last a {
    width: 36px;
    padding: 0;
}

body.modern-user-shell .list-page .pagination a i {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    display: block;
    float: none;
    background: no-repeat center / contain !important;
    opacity: 0.85;
}

body.modern-user-shell .list-page .pagination .pg-first i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323415a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5M18 17l-5-5 5-5'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .list-page .pagination .pg-prev i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323415a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .list-page .pagination .pg-next i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323415a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .list-page .pagination .pg-last i {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323415a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m13 17 5-5-5-5M6 17l5-5-5-5'/%3E%3C/svg%3E") !important;
}

body.modern-user-shell .list-page .pagination a.inactive i {
    opacity: 0.35;
}

@media (max-width: 700px) {
    body.modern-user-shell .list-page .fav-quant {
        margin-left: 0;
    }

    body.modern-user-shell .list-page .fav-search {
        width: 100%;
    }

    body.modern-user-shell .messages-page .msg thead {
        display: none;
    }

    body.modern-user-shell .messages-page .msg td.authorcell {
        width: auto;
    }

    body.modern-user-shell .list-page .pagination {
        width: 100%;
        margin: 0;
        justify-content: space-between;
    }
}

body.modern-user-shell .messages-page .msg td.msg-tools {
    width: 112px;
}

body.modern-user-shell .messages-page .msg-tools a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

body.modern-user-shell .messages-page .msg-tools a:hover {
    text-decoration: underline;
}

body.modern-user-shell .messages-page .msg-tools a::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: currentColor;
    -webkit-mask: var(--msg-tool-icon) no-repeat center / contain;
    mask: var(--msg-tool-icon) no-repeat center / contain;
}

body.modern-user-shell .messages-page .msg-tools a[onclick^="messageReply"] {
    --msg-tool-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");
}

body.modern-user-shell .messages-page .msg-tools a[onclick^="messageNew"] {
    --msg-tool-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E");
}

body.modern-user-shell .messages-page .msg-tools a[href*="/messenger"] {
    --msg-tool-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}

body.modern-user-shell .messages-page .msg-tools a[onclick^="delete"] {
    --msg-tool-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5M14 11v5'/%3E%3C/svg%3E");
    color: #b4233c;
}

body.modern-user-shell .messages-page .msg th:last-child,
body.modern-user-shell .messages-page .msg td.msg-tools {
    text-align: left;
}

body.modern-user-shell .messages-page .msg-tools ul {
    align-items: flex-start;
}

/* Messages on phones: each table row becomes a card (author, text, actions). */
@media (max-width: 700px) {
    body.modern-user-shell .messages-page table.msg,
    body.modern-user-shell .messages-page table.msg tbody {
        display: block;
        width: 100%;
    }

    body.modern-user-shell .messages-page table.msg tr {
        box-sizing: border-box;
        padding: 12px 12px 12px 0;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "check author"
            ". text"
            ". tools";
        row-gap: 8px;
        border-top: 1px solid #edf2f6;
        background: #fff;
    }

    body.modern-user-shell .messages-page table.msg tbody tr:first-child {
        border-top: 0;
    }

    body.modern-user-shell .messages-page table.msg tr.newmsg {
        background: #eef6fc;
        box-shadow: inset 3px 0 0 #258fc5;
    }

    body.modern-user-shell .messages-page table.msg tr.checkedmsg {
        background: #fff8e1;
    }

    body.modern-user-shell .messages-page .msg td {
        width: auto;
        padding: 0;
        display: block;
        border: 0;
    }

    body.modern-user-shell .messages-page .msg td,
    body.modern-user-shell .messages-page .msg .newmsg td,
    body.modern-user-shell .messages-page .msg tbody tr:hover td,
    body.modern-user-shell .messages-page .msg .checkedmsg td {
        background: transparent !important;
        box-shadow: none;
    }

    body.modern-user-shell .messages-page .msg td.check {
        grid-area: check;
        align-self: center;
        justify-self: center;
        width: auto;
        padding: 0;
    }

    body.modern-user-shell .messages-page .msg td.authorcell {
        grid-area: author;
        width: auto;
        min-height: 40px;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
    }

    body.modern-user-shell .messages-page .authorcell .image {
        grid-row: 1 / span 3;
        margin: 0;
        float: none;
    }

    body.modern-user-shell .messages-page .authorcell .image,
    body.modern-user-shell .messages-page .authorcell .image img {
        width: 40px;
        height: 40px;
        float: none;
    }

    body.modern-user-shell .messages-page .authorcell .author,
    body.modern-user-shell .messages-page .authorcell .author-status,
    body.modern-user-shell .messages-page .authorcell .datetime {
        grid-column: 2;
        margin: 0;
        min-width: 0;
    }

    body.modern-user-shell .messages-page .msg td.txtcell {
        grid-area: text;
        padding: 0;
    }

    body.modern-user-shell .messages-page .msg td.txtcell .wrap {
        width: auto;
    }

    body.modern-user-shell .messages-page .msg td.msg-tools {
        grid-area: tools;
        width: auto;
        padding: 0;
    }

    body.modern-user-shell .messages-page .msg-tools ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    body.modern-user-shell .messages-page .msg-tools a {
        box-sizing: border-box;
        height: 32px;
        padding: 0 10px;
        border: 1px solid #c8dce8;
        border-radius: 8px;
        background: #f3f8fc;
    }

    body.modern-user-shell .messages-page .msg-tools a:hover {
        text-decoration: none;
    }

    body.modern-user-shell .messages-page .msg-tools a[onclick^="delete"] {
        border-color: #f0c9d0;
        background: #fdf3f5;
    }

    body.modern-user-shell .list-page .pagination ul {
        gap: 4px;
    }

    body.modern-user-shell .list-page .pagination a {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
    }

    body.modern-user-shell .list-page .pagination .pg-first a,
    body.modern-user-shell .list-page .pagination .pg-last a {
        width: 34px;
    }

    body.modern-user-shell .list-page.tabs-with-page-action > .tablink a {
        min-height: 40px;
    }
}

@media (max-width: 380px) {
    body.modern-user-shell .list-page .pagination .pg-prev span,
    body.modern-user-shell .list-page .pagination .pg-next span {
        display: none;
    }
}

/* Friends list: vector icons and button-like actions instead of 2011 sprites. */
body.modern-user-shell .list-page > .tablink a .ico.i-friends {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    display: inline-block;
    flex: 0 0 18px;
    float: none;
    vertical-align: middle;
    background: currentColor !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-.5A6.5 6.5 0 0 1 8.5 14h1a6.5 6.5 0 0 1 6.5 6.5v.5'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21v-.5A6.5 6.5 0 0 1 8.5 14h1a6.5 6.5 0 0 1 6.5 6.5v.5'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.modern-user-shell .friends-page .friend-box .author ins {
    margin-left: 4px;
    vertical-align: middle;
}

body.modern-user-shell .friends-page .friend-side .profile-rating {
    box-sizing: border-box;
    height: 22px;
    border-radius: 6px;
    background: #eef3f7;
    font-size: 12px;
    line-height: 22px;
}

body.modern-user-shell .friends-page .friend-side .profile-rating strong,
body.modern-user-shell .friends-page .friend-side .profile-rating span,
body.modern-user-shell .friends-page .friend-side .profile-rating em {
    height: 22px;
    line-height: 22px;
}

body.modern-user-shell .friends-page .friend-side .profile-rating strong {
    text-shadow: none;
}

body.modern-user-shell .friends-page .friend-side .profile-rating em {
    max-width: 100%;
    border-radius: 0 6px 6px 0;
}

body.modern-user-shell .friends-page .friend-box ul.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body.modern-user-shell .friends-page .friend-box ul.actions li {
    margin: 0;
    float: none;
}

body.modern-user-shell .friends-page .friend-box ul.actions a {
    box-sizing: border-box;
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8dce8;
    border-radius: 8px;
    background: #f3f8fc;
    color: #267fae;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

body.modern-user-shell .friends-page .friend-box ul.actions a:hover {
    border-color: #8fc0dc;
    background: #e6f2fa;
}

body.modern-user-shell .friends-page .friend-box ul.actions em {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    display: block;
    flex: 0 0 14px;
    float: none;
    background: currentColor !important;
}

body.modern-user-shell .friends-page .friend-box ul.actions em span {
    display: none;
}

body.modern-user-shell .friends-page .friend-box ul.actions em.but-cancel {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.modern-user-shell .friends-page .friend-box ul.actions em.but-apply {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

body.modern-user-shell .friends-page .friend-box ul.actions a:has(.but-cancel) {
    border-color: #f0c9d0;
    background: #fdf3f5;
    color: #b4233c;
}

body.modern-user-shell .friends-page .friend-box ul.actions a:has(.but-cancel):hover {
    border-color: #e4a3b0;
    background: #fbe6ea;
}

body.modern-user-shell .friends-page .friend-box ul.actions a:has(.but-apply) {
    border-color: #b9e0c4;
    background: #f0faf3;
    color: #15803d;
}

body.modern-user-shell .friends-page .friend-box ul.actions a:has(.but-apply):hover {
    border-color: #8fcfa2;
    background: #e3f5e9;
}

@media (max-width: 700px) {
    body.modern-user-shell .friends-page .friend-box ul.actions {
        margin: 10px 0 0;
        position: static;
        justify-content: flex-end;
    }

    body.modern-user-shell .friends-page .friend-box ul.actions li {
        flex: 1 1 0;
    }

    body.modern-user-shell .friends-page .friend-box ul.actions a {
        width: 100%;
        height: 38px;
        justify-content: center;
    }
}

body.modern-user-shell .list-page .fav-quant {
    color: #526b7b;
    font-size: 14px;
    line-height: 36px;
}

body.modern-user-shell .list-page .fav-quant strong {
    color: #22384a;
}

body.modern-user-shell .guests-page #tabs_load > .favs.wrapper + .wrapper,
body.modern-user-shell .guests-page #tabs_load > .fav-nothing + .wrapper {
    margin-top: 12px;
}

body.modern-user-shell .list-page:not(.tabs-with-page-action) #tabs_load > .wrapper:not(.favs):first-child {
    margin-top: 14px;
}

.warning-ok > .warning-ok-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.6;
}

/* Invisible mode toggle */
.modern-user-drawer-invisible {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0 0 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--meendo-border);
    border-radius: 12px;
    background: #fff;
    color: var(--meendo-ink);
    font: 700 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
}

.modern-user-buy-vip + .modern-user-drawer-invisible {
    margin-top: -6px;
}

.modern-user-drawer-invisible:hover,
.modern-user-drawer-invisible:focus-visible {
    border-color: #b7d2e0;
    color: var(--meendo-ink);
    text-decoration: none;
    outline: none;
}

.modern-user-drawer-invisible .modern-user-alert-icon {
    color: #8a9aa8;
}

.modern-user-drawer-invisible.bar-ufo .modern-user-alert-icon {
    color: var(--meendo-pink);
}

.modern-user-drawer-invisible > span:not(.modern-user-invisible-switch) {
    flex: 1 1 auto;
}

.modern-user-invisible-state {
    color: #8a9aa8;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.modern-user-drawer-invisible.bar-ufo .modern-user-invisible-state.is-off,
.modern-user-drawer-invisible.bar-ufo-off .modern-user-invisible-state.is-on {
    display: none;
}

.modern-user-drawer-invisible.bar-ufo .modern-user-invisible-state.is-on {
    color: #2a9d5f;
}

.modern-user-invisible-switch {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: #cfdbe4;
    transition: background-color 0.2s ease;
}

.modern-user-invisible-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.modern-user-drawer-invisible.bar-ufo .modern-user-invisible-switch {
    background: #2fbf71;
}

.modern-user-drawer-invisible.bar-ufo .modern-user-invisible-switch::after {
    transform: translateX(16px);
}

.mmsg-last-msg .mmsg-preview-smile {
    width: 16px;
    height: 16px;
    margin: 0 1px;
    display: inline-block;
    vertical-align: -3px;
    object-fit: contain;
}

body.modern-user-shell .mmsg-contacts li a.dialog {
    position: relative;
}

body.modern-user-shell .mmsg-contacts li a.new-msg-dialogue {
    background: #eaf5fd;
    box-shadow: inset 3px 0 0 #2d8fca;
}

body.modern-user-shell .mmsg-contacts li a.new-msg-dialogue .mmsg-login,
body.modern-user-shell .mmsg-contacts li a.new-msg-dialogue .mmsg-last-msg {
    color: #18344a;
    font-weight: 700;
}

body.modern-user-shell .mmsg-contacts li a .ico.i-newmsg {
    position: absolute;
    top: 50%;
    right: 12px;
    left: auto;
    width: 9px;
    height: 9px;
    margin: 0;
    border-radius: 50%;
    background: #2d8fca !important;
    transform: translateY(-50%);
}

@media (max-width: 1080px) {
    .modern-user-header .modern-user-quick-menu {
        margin-left: auto;
        display: flex;
    }

    .modern-user-header .modern-user-quick-menu + .modern-user-primary + .modern-user-actions {
        margin-left: 0;
    }

    .modern-user-quick-menu-dropdown {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .modern-user-quick-menu {
        gap: 4px;
    }

    .modern-user-quick-menu-trigger {
        width: 38px;
        height: 40px;
    }
}

@media (max-width: 380px) {
    .modern-user-quick-menu {
        gap: 2px;
    }

    .modern-user-quick-menu-trigger {
        width: 34px;
        height: 36px;
        border-radius: 10px;
    }

    .modern-user-quick-menu-trigger .modern-user-alert-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .modern-user-quick-menu-trigger > b {
        top: -6px;
        right: -4px;
    }
}

@media (max-width: 520px) {
    .modern-user-alerts a.modern-user-alert-gift {
        display: none;
    }
}
body.mmsg-no-dialog .mmsg-tools {
    visibility: hidden;
}

/* Wall / comments list */
body.modern-user-shell .profhd > a[name]:empty,
body.guest_img_blur .profhd > a[name]:empty {
    display: none !important;
}

body.modern-user-shell #comment_output ul.wall,
body.guest_img_blur #comment_output ul.wall {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 6px 0 0;
    padding: 0;
    display: block;
    float: none;
    clear: both;
    list-style: none;
}

body.modern-user-shell #comment_output ul.wall > li,
body.guest_img_blur #comment_output ul.wall > li {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #edf1f4;
    background: none;
    overflow: hidden;
}

body.modern-user-shell #comment_output ul.wall > li:last-child,
body.guest_img_blur #comment_output ul.wall > li:last-child {
    border-bottom: 0;
}

body.modern-user-shell #comment_output ul.wall > li > a,
body.guest_img_blur #comment_output ul.wall > li > a {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    float: none;
    border-radius: 50%;
    box-shadow: none;
}

body.modern-user-shell #comment_output ul.wall > li > a img,
body.guest_img_blur #comment_output ul.wall > li > a img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

body.modern-user-shell #comment_output ul.wall .txt,
body.guest_img_blur #comment_output ul.wall .txt {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

body.modern-user-shell #comment_output ul.wall .txt .wrap,
body.guest_img_blur #comment_output ul.wall .txt .wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    border: 0;
}

body.modern-user-shell #comment_output ul.wall .txt .author,
body.guest_img_blur #comment_output ul.wall .txt .author {
    margin: 0;
    float: none;
    color: #f0a020;
    font-size: 13px;
    font-weight: 600;
}

body.modern-user-shell #comment_output ul.wall .txt .author a,
body.guest_img_blur #comment_output ul.wall .txt .author a {
    color: #1f6fa8;
    font-size: 14px;
    font-weight: 700;
}

body.modern-user-shell #comment_output ul.wall .txt .added,
body.guest_img_blur #comment_output ul.wall .txt .added {
    margin: 0;
    float: none;
    color: #9aa8b3;
    font-size: 12px;
}

body.modern-user-shell #comment_output ul.wall .txt .clearcom,
body.guest_img_blur #comment_output ul.wall .txt .clearcom {
    position: relative;
    box-sizing: border-box;
    width: 30px !important;
    height: 30px !important;
    margin: -6px -4px -6px auto;
    padding: 0;
    float: none !important;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 9px;
    background: none !important;
    color: #9aa8b3;
    font-size: 0;
    line-height: 0;
    text-indent: 0;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body.modern-user-shell #comment_output ul.wall .txt .clearcom::before,
body.guest_img_blur #comment_output ul.wall .txt .clearcom::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--wall-action-icon) center / contain no-repeat;
    mask: var(--wall-action-icon) center / contain no-repeat;
}

body.modern-user-shell #comment_output ul.wall .txt .clearcom[onclick^="deleteComment"],
body.guest_img_blur #comment_output ul.wall .txt .clearcom[onclick^="deleteComment"] {
    --wall-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E");
}

body.modern-user-shell #comment_output ul.wall .txt .clearcom:not([onclick^="deleteComment"]),
body.guest_img_blur #comment_output ul.wall .txt .clearcom:not([onclick^="deleteComment"]) {
    --wall-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E");
}

body.modern-user-shell #comment_output ul.wall .txt .clearcom:hover,
body.guest_img_blur #comment_output ul.wall .txt .clearcom:hover,
body.modern-user-shell #comment_output ul.wall .txt .clearcom:focus-visible,
body.guest_img_blur #comment_output ul.wall .txt .clearcom:focus-visible {
    background: #fdeef3 !important;
    color: #d9465f;
    outline: none;
}

body.modern-user-shell #comment_output ul.wall .txt > p,
body.guest_img_blur #comment_output ul.wall .txt > p {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    color: #253c4d;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    overflow: hidden;
}

/* Invisible service page: replace the old fixed-width layout with fluid blocks. */
body.modern-user-shell .vipbox .invisible-top {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 128px;
}

body.modern-user-shell .vipbox .search-promo {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 12px 24px;
}

body.modern-user-shell .vipbox .search-promo > img {
    grid-row: 1 / span 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0;
    float: none;
}

body.modern-user-shell .vipbox .search-promo > p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

body.modern-user-shell .vipbox .viplus {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

body.modern-user-shell .vipbox .viplus th,
body.modern-user-shell .vipbox .viplus td {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.modern-user-shell .vipbox .vip-bot {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 100px;
}

@media (max-width: 700px) {
    body.modern-user-shell .vipbox .upload {
        padding-right: 12px;
        padding-left: 12px;
    }

    body.modern-user-shell .vipbox .invisible-top {
        min-height: 0;
        padding: 20px;
        background-position: center;
        border-radius: 12px;
    }

    body.modern-user-shell .vipbox .invisible-top::before {
        display: none;
    }

    body.modern-user-shell .vipbox .invisible-top h1,
    body.modern-user-shell .vipbox .invisible-top p {
        max-width: none;
    }

    body.modern-user-shell .vipbox .search-promo {
        display: block;
    }

    body.modern-user-shell .vipbox .search-promo > img {
        width: min(100%, 360px);
        max-width: 360px;
        margin: 0 auto 16px;
        display: block;
    }

    body.modern-user-shell .vipbox .search-promo > p + p {
        margin-top: 10px;
    }

    body.modern-user-shell .vipbox .viplus,
    body.modern-user-shell .vipbox .viplus thead,
    body.modern-user-shell .vipbox .viplus tbody {
        display: block;
        width: 100%;
    }

    body.modern-user-shell .vipbox .viplus tr {
        box-sizing: border-box;
        width: 100%;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) 56px 56px;
        align-items: center;
    }

    body.modern-user-shell .vipbox .viplus thead tr {
        grid-template-columns: minmax(0, 1fr) 56px 56px;
    }

    body.modern-user-shell .vipbox .viplus th,
    body.modern-user-shell .vipbox .viplus td,
    body.modern-user-shell .vipbox .viplus .vc1,
    body.modern-user-shell .vipbox .viplus .vc2 {
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        padding: 10px 6px;
        display: block;
    }

    body.modern-user-shell .vipbox .viplus thead th:first-child {
        grid-column: 1;
    }

    body.modern-user-shell .vipbox .viplus .vc2 {
        font-size: 12px;
        text-align: center;
    }

    body.modern-user-shell .vipbox .prolong {
        margin: 18px 0;
        text-align: center;
    }

    body.modern-user-shell .vipbox .wrap > .s_button {
        box-sizing: border-box;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    body.modern-user-shell .vipbox .vip-bot {
        min-height: 0;
        padding: 24px 20px;
        background-size: cover;
        border-radius: 12px;
    }
}

body.modern-user-shell #comment_output ul.wall .txt > p img,
body.guest_img_blur #comment_output ul.wall .txt > p img {
    max-height: 28px;
    vertical-align: middle;
}

body.modern-user-shell .send-wall #commentText.message-area,
body.guest_img_blur .send-wall #commentText.message-area {
    border: 1px solid #d7e3ea !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.modern-user-shell .send-wall #commentText.message-area:focus,
body.guest_img_blur .send-wall #commentText.message-area:focus {
    border-color: #8cc3e3 !important;
    box-shadow: 0 0 0 3px rgba(44, 139, 194, 0.12) !important;
    outline: none;
}

/* Stripchat branding banner (markup is injected by js/branding_stripchat_en.js) */
.modern-branding-slot .background-banner.is-stripchat {
    background: #2a0609 !important;
    cursor: pointer;
}

.sc-brand {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(255, 70, 85, 0.45) 0%, rgba(255, 70, 85, 0) 60%),
        linear-gradient(115deg, #22040a 0%, #6d0f19 32%, #a51d2a 52%, #6d0f19 72%, #22040a 100%);
}

.sc-brand__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.sc-brand__glow--left {
    top: -220px;
    left: -120px;
    background: #ff2d55;
}

.sc-brand__glow--right {
    right: -140px;
    bottom: -260px;
    background: #ff7a45;
}

.sc-brand__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.sc-brand__col {
    min-width: 0;
}

.sc-brand__promo,
.sc-brand__features {
    box-sizing: border-box;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(10, 2, 4, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.sc-brand__promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    justify-self: start;
    max-width: 300px;
}

.sc-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sc-brand__logo-mark {
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 4px;
    background: linear-gradient(135deg, #ff4d5e, #c3142a);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
}

.sc-brand__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.sc-brand__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    color: #1b0b0e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-brand:hover .sc-brand__cta {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.sc-brand__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.sc-brand__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ff2d46;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow: 0 0 18px rgba(255, 45, 70, 0.6);
}

.sc-brand__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: sc-brand-pulse 1.4s ease-in-out infinite;
}

.sc-brand__wordmark {
    font-size: 88px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.sc-brand__sub {
    font-size: 17px;
    font-weight: 500;
    opacity: 0.88;
}

.sc-brand__cta--compact {
    display: none;
}

.sc-brand__features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    justify-self: end;
    max-width: 300px;
    margin: 0;
    list-style: none;
}

.sc-brand__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.25;
}

.sc-brand__features svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ff8a96;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes sc-brand-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
    .sc-brand__live-dot {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .sc-brand__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    }

    .sc-brand__features {
        display: none;
    }

    .sc-brand__wordmark {
        font-size: 72px;
    }
}

@media (max-width: 900px) {
    .sc-brand__inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 16px;
    }

    .sc-brand__promo {
        display: none;
    }

    .sc-brand__center {
        gap: 6px;
    }

    .sc-brand__wordmark {
        font-size: clamp(34px, 8vw, 52px);
    }

    .sc-brand__sub {
        font-size: 13px;
    }

    .sc-brand__live {
        padding: 3px 8px;
        font-size: 10px;
    }

    .sc-brand__cta--compact {
        display: inline-flex;
        margin-top: 2px;
        padding: 7px 14px;
        font-size: 13px;
    }
}
