.container > .row.account-section-layout {
    --account-frame: 1px solid rgba(255, 255, 255, .27);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: clamp(12px, 2vw, 22px);
    align-items: start;
    margin: clamp(14px, 1.5vw, 18px) 0 24px !important;
    padding: clamp(12px, 1.6vw, 20px);
    background: var(--user-bg);
    border: var(--account-frame);
    border-radius: 4px;

    &::before, &::after { content: none; }

    & > :is(.col-lg-3, .profile-page) {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding-inline: 0;
    }

    & :is(.detailed-profile, .vertical-navigation, .profile-top-menu, .profile-page > .block,
          .col-lg-3 > .block, .pay_area .block, .tab-pane .user, #operations > .table-row,
          #my_stores > .table-row, #notifications_line > #notifications) {
        border: var(--account-frame);
        border-radius: 4px;
    }

    & .detailed-profile { margin-bottom: 12px; }
    & .profile-top-menu {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        padding: 3px;
        margin: 0 0 12px !important;
        list-style: none;
        background: var(--detailed-profile-bg);
    }
    & .profile-top-menu li { flex: 1 1 auto; }
    & .profile-top-menu li a {
        float: none;
        padding: 9px 8px;
        text-align: center;
        line-height: 1.4;
    }
    & .profile-top-menu li a.active { color: var(--color-w-b); }

    & .toolbar {
        padding: 10px 12px;
        margin: 0 0 10px;
        background: var(--detailed-profile-bg);
        border: var(--account-frame);
        border-radius: 4px;
    }
    & .toolbar + br { display: none; }
    & .toolbar__header { min-width: 0; overflow-wrap: anywhere; }
    & .toolbar__title { margin: 0; font-size: 18px; line-height: 1.3; }
    & .toolbar__subtitle { margin-top: 3px; line-height: 1.4; }
    & .toolbar__icon i { font-size: 24px !important; color: #ce878c !important; }
    & #notifications_line > #notifications { background: var(--detailed-profile-bg); }
    & #notifications_line > #notifications:empty { border: 0; }
    & .empty-element {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
        padding: 8px;
        line-height: 1.4;
        text-align: center;
        white-space: normal;
    }
    & .col-lg-3 img, & .pay_area img { max-width: 100%; }

    @media (max-width: 991.98px) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        & .col-lg-3 > :last-child { margin-bottom: 0; }
    }
    @media (max-width: 575.98px) {
        padding: 10px;
        & .profile-top-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
        & .profile-top-menu li a { padding: 10px 3px; }
        & .toolbar { padding: 9px 10px; }
        & .profile-page > .block:last-child { margin-bottom: 0; }
    }
}

/* В публичном профиле пустой блок не занимает строку сетки. */
.profile-side-layout .profile-overview > #admins:has(> .table-adaptive.profile-empty),
.profile-side-layout .profile-overview > #admins:has(> .table-adaptive > .empty-element:only-child),
.profile-side-layout .profile-overview > #admins:has(> .table-adaptive:empty) {
    display: none;
}
.profile-side-layout .profile-overview > #admins:has(> .table-adaptive .table-row) {
    display: block;
}


.account-section-layout .detailed-profile table tr > td:first-child > i.fa-comment-alt {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2014a3%203%200%200%201-3%203H9l-5%204v-4a2%202%200%200%201-1-2V6a3%203%200%200%201%203-3h11a3%203%200%200%201%203%203Z%22%2F%3E%3Cpath%20d%3D%22M7%208h9m-9%204h6%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i.fa-heart {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.2%205.8a5%205%200%200%200-7.1%200L12%207l-1.1-1.2a5%205%200%200%200-7.1%207.1L12%2021l8.2-8.1a5%205%200%200%200%200-7.1Z%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i.fa-star {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.6%204.5%201.1%206.3-5.6-3-5.6%203%201.1-6.3L3%209.6l6.2-.9Z%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i.fa-calendar {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%203v4m10-4v4M3%2010h18m-13%205%202.5%202.5L16%2013%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i.fa-clock {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3.5%202%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i.fa-crosshairs {
    --stat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23dc999d%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%227%22%2F%3E%3Cpath%20d%3D%22M12%202v5m0%2010v5M2%2012h5m10%200h5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%221.5%22%2F%3E%3C%2Fsvg%3E");
}
.account-section-layout .detailed-profile table tr > td:first-child > i:is(.fa-comment-alt, .fa-heart, .fa-star, .fa-calendar, .fa-clock, .fa-crosshairs) {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(208, 122, 132, .27);
    background: rgba(130, 48, 57, .15) var(--stat-icon) center / 19px 19px no-repeat;
}
.account-section-layout .detailed-profile table tr > td:first-child > i:is(.fa-comment-alt, .fa-heart, .fa-star, .fa-calendar, .fa-clock, .fa-crosshairs)::before { content: none; }


.account-profile-card .account-stats-status { margin: 8px; text-align: center; }
.account-profile-card ul:not(:has(li)) { display: none; }
.account-profile-card table { width: 100%; }
.account-profile-card table tr td:nth-child(2),
.account-profile-card table tr td:nth-child(2) span { width: auto !important; max-width: 100%; }
