.accounts-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.accounts-layout__sidebar {
    flex: 0 0 220px;
    width: 220px;
    min-height: 100vh;
    background-color: #1d2b36;
}

.accounts-sidebar-brand {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 86px;
    padding: 14px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.accounts-sidebar-brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.accounts-sidebar-brand__icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.accounts-sidebar-brand__icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.accounts-sidebar-brand__text {
    min-width: 0;
    text-align: center;
}

.accounts-sidebar-brand__name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.accounts-sidebar-brand__name-link,
.accounts-sidebar-brand__name-link:visited,
.accounts-sidebar-brand__name-link:hover,
.accounts-sidebar-brand__name-link:focus,
.accounts-sidebar-brand__name-link:active {
    color: #ffffff;
    text-decoration: none;
}

.accounts-sidebar-brand__subtitle {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.015em;
}

.accounts-sidebar-current {
    display: none;
}

.accounts-menu-toggle {
    display: none;
}

.accounts-sidebar-menu-wrap {
    display: grid;
    grid-template-rows: 1fr;
}

.accounts-sidebar-menu {
    min-height: 0;
    padding: 14px 0;
    box-sizing: border-box;
    border-radius: 0;
}

.accounts-sidebar-menu__item {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.accounts-sidebar-menu__item:visited {
    color: rgba(255, 255, 255, 0.76);
}

.accounts-sidebar-menu__item:hover,
.accounts-sidebar-menu__item:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    text-decoration: none;
    transform: translateX(2px);
    outline: none;
}

.accounts-sidebar-menu__item.is-active,
.accounts-sidebar-menu__item.is-active:visited,
.accounts-sidebar-menu__item.is-active:hover,
.accounts-sidebar-menu__item.is-active:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.105);
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.9);
}

.accounts-sidebar-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
}

.accounts-sidebar-menu__icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.accounts-sidebar-menu__label {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.accounts-layout__content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
}

/*
 * WordPress добавляет отступ сверху под #wpadminbar. Поэтому на страницах
 * личного кабинета вычитаем высоту админбара из высоты окна, чтобы пустая
 * страница не получала лишнюю вертикальную прокрутку.
 */
body.admin-bar .accounts-layout {
    --accounts-admin-bar-height: 32px;
    min-height: calc(100vh - var(--accounts-admin-bar-height));
}

body.admin-bar .accounts-layout__sidebar,
body.admin-bar .accounts-layout__content {
    min-height: calc(100vh - var(--accounts-admin-bar-height));
}

@media (max-width: 1035px) {
    .accounts-layout {
        flex-direction: column;
    }

    .accounts-layout__sidebar {
        position: relative;
        z-index: 100;
        flex: 0 0 50px;
        width: 100%;
        min-height: 50px;
        height: 50px;
        overflow: visible;
        background-color: #1d2b36;
    }

    .accounts-sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        width: 100%;
        min-height: 50px;
        height: 50px;
        padding: 5px 10px 5px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
    }

    .accounts-sidebar-brand__text {
        order: 2;
        flex: 0 1 auto;
        text-align: left;
    }

    .accounts-sidebar-brand__icon {
        order: 1;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .accounts-sidebar-brand__icon img {
        width: 32px;
        height: 32px;
    }

    .accounts-sidebar-brand__name {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
    }

    .accounts-sidebar-brand__subtitle {
        display: none;
    }

    .accounts-sidebar-current {
        order: 3;
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        gap: 7px;
        min-width: 0;
        margin-left: 5px;
        padding-left: 10px;
        border-left: 1px solid rgba(255, 255, 255, 0.13);
        color: rgba(255, 255, 255, 0.82);
    }

    .accounts-sidebar-current__icon {
        display: inline-flex;
        flex: 0 0 26px;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.07);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .accounts-sidebar-current__icon img {
        display: block;
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    .accounts-sidebar-current__label {
        min-width: 0;
        overflow: hidden;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .accounts-menu-toggle {
        order: 4;
        display: inline-flex;
        position: relative;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        margin: 0 0 0 auto;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.055);
        box-shadow: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
    }

    .accounts-menu-toggle:hover,
    .accounts-menu-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.14);
        outline: none;
    }

    .accounts-menu-toggle:active {
        transform: scale(0.96);
    }

    .accounts-menu-toggle__line {
        position: absolute;
        left: 10px;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transform-origin: center;
        transition: transform 220ms ease, opacity 160ms ease, top 220ms ease;
    }

    .accounts-menu-toggle__line:nth-child(1) {
        top: 12px;
    }

    .accounts-menu-toggle__line:nth-child(2) {
        top: 17px;
    }

    .accounts-menu-toggle__line:nth-child(3) {
        top: 22px;
    }

    .accounts-layout__sidebar.is-menu-open .accounts-menu-toggle__line:nth-child(1) {
        top: 17px;
        transform: rotate(45deg);
    }

    .accounts-layout__sidebar.is-menu-open .accounts-menu-toggle__line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.35);
    }

    .accounts-layout__sidebar.is-menu-open .accounts-menu-toggle__line:nth-child(3) {
        top: 17px;
        transform: rotate(-45deg);
    }

    .accounts-sidebar-menu-wrap {
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 110;
        display: grid;
        grid-template-rows: 0fr;
        width: 100%;
        background-color: #1d2b36;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0);
        transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease, visibility 0s linear 300ms;
    }

    .accounts-layout__sidebar.is-menu-open .accounts-sidebar-menu-wrap {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
        transition: grid-template-rows 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease, visibility 0s linear 0s;
    }

    .accounts-sidebar-menu {
        overflow: hidden;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        border-bottom: 0 solid rgba(255, 255, 255, 0.08);
        transition: padding 300ms cubic-bezier(0.22, 1, 0.36, 1), border-width 300ms ease;
    }

    .accounts-layout__sidebar.is-menu-open .accounts-sidebar-menu {
        padding: 10px 0 12px;
        border-bottom-width: 1px;
    }

    .accounts-sidebar-menu__item {
        min-height: 46px;
        padding: 7px 12px;
    }

    .accounts-sidebar-menu__item:hover,
    .accounts-sidebar-menu__item:focus-visible {
        transform: none;
    }

    .accounts-layout__content {
        width: 100%;
        min-height: calc(100vh - 50px);
    }

    body.admin-bar .accounts-layout__sidebar {
        min-height: 50px;
    }

    body.admin-bar .accounts-layout__content {
        min-height: calc(100vh - var(--accounts-admin-bar-height) - 50px);
    }
}

@media (max-width: 620px) {
    .accounts-sidebar-current {
        gap: 5px;
        margin-left: 2px;
        padding-left: 7px;
    }

    .accounts-sidebar-current__icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .accounts-sidebar-current__icon img {
        width: 17px;
        height: 17px;
    }

    .accounts-sidebar-current__label {
        font-size: 12px;
    }
}

/* На экранах до 782px WordPress увеличивает высоту #wpadminbar до 46px. */
@media (max-width: 782px) {
    body.admin-bar .accounts-layout {
        --accounts-admin-bar-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-sidebar-menu-wrap,
    .accounts-sidebar-menu,
    .accounts-sidebar-menu__item,
    .accounts-menu-toggle,
    .accounts-menu-toggle__line {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
 * ПУНКТ «ВЫХОД» И ОКНО ПОДТВЕРЖДЕНИЯ
 * ========================================================= */
.accounts-sidebar-menu__item--logout {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.accounts-sidebar-menu__item--logout:hover,
.accounts-sidebar-menu__item--logout:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
}

.accounts-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.accounts-logout-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 220ms ease, visibility 0s linear 0s;
}

.accounts-logout-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 24, 32, 0.64);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.accounts-logout-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 30px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(13, 24, 32, 0.28);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.975);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accounts-logout-modal.is-open .accounts-logout-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.accounts-logout-modal__dialog:focus {
    outline: none;
}

.accounts-logout-modal__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #1d2b36;
    box-shadow: 0 10px 24px rgba(29, 43, 54, 0.2);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
}

.accounts-logout-modal__badge img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.accounts-logout-modal__title {
    margin: 0;
    color: #1d2b36;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.accounts-logout-modal__text {
    margin: 9px 0 0;
    color: rgba(29, 43, 54, 0.62);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.accounts-logout-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.accounts-logout-modal__button,
.accounts-logout-modal__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.accounts-logout-modal__button:hover,
.accounts-logout-modal__button:focus-visible {
    text-decoration: none;
    outline: none;
    transform: translateY(-1px);
}

.accounts-logout-modal__button:active {
    transform: translateY(0) scale(0.985);
}

.accounts-logout-modal__button--confirm,
.accounts-logout-modal__button--confirm:visited {
    border: 1px solid #1d2b36;
    background: #1d2b36;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(29, 43, 54, 0.16);
}

.accounts-logout-modal__button--confirm:hover,
.accounts-logout-modal__button--confirm:focus-visible {
    background: #263946;
    border-color: #263946;
    color: #ffffff;
}

.accounts-logout-modal__button--cancel {
    border: 1px solid rgba(29, 43, 54, 0.13);
    background: #f4f6f7;
    color: #1d2b36;
}

.accounts-logout-modal__button--cancel:hover,
.accounts-logout-modal__button--cancel:focus-visible {
    border-color: rgba(29, 43, 54, 0.2);
    background: #e9eef1;
    color: #1d2b36;
}

body.accounts-logout-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .accounts-logout-modal {
        padding: 14px;
    }

    .accounts-logout-modal__dialog {
        padding: 24px 18px 18px;
        border-radius: 18px;
    }

    .accounts-logout-modal__title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-logout-modal,
    .accounts-logout-modal__dialog,
    .accounts-logout-modal__button {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
 * ГЛАВНАЯ СТРАНИЦА ЛИЧНОГО КАБИНЕТА / ARCHIVE ACCOUNTS
 * ========================================================= */
.accounts-dashboard {
    padding: 15px;
    box-sizing: border-box;
    background: #f5f7f8;
}

.accounts-welcome-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
}

.accounts-welcome-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1d2b36;
}

.accounts-welcome-card__top {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 0;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.accounts-welcome-card__avatar-wrap {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accounts-welcome-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #edf1f3;
    box-shadow: 0 0 0 1px rgba(29, 43, 54, 0.08), 0 10px 24px rgba(29, 43, 54, 0.12);
}

.accounts-welcome-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-welcome-card__body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.accounts-welcome-card__title {
    margin: 0;
    color: #1d2b36;
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.accounts-welcome-card__description {
    grid-column: 2;
    grid-row: 2;
    margin: 8px 0 0;
    color: rgba(29, 43, 54, 0.65);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.accounts-welcome-card__role-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 5px;
}

.accounts-welcome-card__role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 7px 12px 7px 8px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 999px;
    background: #f3f6f7;
    color: #1d2b36;
}

.accounts-welcome-card__role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d2b36;
    color: #ffffff;
}

.accounts-welcome-card__role-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-welcome-card__role-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


.accounts-welcome-card__store-registration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px 6px 7px;
    box-sizing: border-box;
    border: 1px solid #8f1907;
    border-radius: 999px;
    background: #b52008;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(181, 32, 8, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.accounts-welcome-card__store-registration:hover,
.accounts-welcome-card__store-registration:focus,
.accounts-welcome-card__store-registration:visited {
    color: #ffffff;
    text-decoration: none;
}

.accounts-welcome-card__store-registration:hover {
    transform: translateY(-1px);
    background: #9f1c07;
    border-color: #7f1606;
    box-shadow: 0 9px 20px rgba(181, 32, 8, 0.24);
}

.accounts-welcome-card__store-registration:focus-visible {
    outline: 2px solid rgba(181, 32, 8, 0.34);
    outline-offset: 3px;
}

.accounts-welcome-card__store-registration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.accounts-welcome-card__store-registration-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-welcome-card__store-registration-arrow {
    margin-left: 1px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: transform 180ms ease;
}

.accounts-welcome-card__store-registration:hover .accounts-welcome-card__store-registration-arrow {
    transform: translateX(2px);
}

.accounts-welcome-card__last-login {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 30px;
    box-sizing: border-box;
    border-top: 1px solid rgba(29, 43, 54, 0.07);
    background: #fafbfb;
    color: rgba(29, 43, 54, 0.66);
}

.accounts-welcome-card__last-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(29, 43, 54, 0.07);
    color: #1d2b36;
}

.accounts-welcome-card__last-login-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-welcome-card__last-login-text {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.accounts-welcome-card__last-login-text strong {
    color: #1d2b36;
    font-weight: 700;
}

@media (max-width: 1035px) {
    .accounts-dashboard {
        padding: 15px;
    }

    .accounts-welcome-card {
        border-radius: 18px;
    }

    .accounts-welcome-card__top {
        grid-template-columns: 94px minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 0;
        padding: 15px;
    }

    .accounts-welcome-card__avatar-wrap {
        grid-column: 1;
        grid-row: 1;
    }

    .accounts-welcome-card__body {
        grid-column: 2;
        grid-row: 1;
    }

    .accounts-welcome-card__description {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 12px;
    }

    .accounts-welcome-card__role-row {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: center;
        justify-self: stretch;
        margin-top: 5px;
    }

    .accounts-welcome-card__avatar {
        width: 82px;
        height: 82px;
    }

    .accounts-welcome-card__title {
        font-size: 25px;
    }

    .accounts-welcome-card__last-login {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 620px) {
    .accounts-dashboard {
        padding: 5px;
    }

    .accounts-welcome-card {
        border-radius: 16px;
    }

    .accounts-welcome-card__top {
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 0;
        align-items: center;
        padding: 15px;
    }

    .accounts-welcome-card__avatar {
        width: 66px;
        height: 66px;
        border-width: 3px;
    }

    .accounts-welcome-card__title {
        font-size: 21px;
        line-height: 1.22;
    }

    .accounts-welcome-card__description {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
    }

    .accounts-welcome-card__role {
        min-height: 32px;
        padding: 5px 10px 5px 6px;
    }

    .accounts-welcome-card__role-row {
        gap: 7px;
    }

    .accounts-welcome-card__store-registration {
        min-height: 32px;
        padding: 4px 10px 4px 6px;
        font-size: 12px;
    }

    .accounts-welcome-card__store-registration-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .accounts-welcome-card__store-registration-icon svg {
        width: 18px;
        height: 18px;
    }

    .accounts-welcome-card__role-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .accounts-welcome-card__role-icon svg {
        width: 18px;
        height: 18px;
    }

    .accounts-welcome-card__role-label {
        font-size: 12px;
    }

    .accounts-welcome-card__last-login {
        align-items: flex-start;
        gap: 9px;
        min-height: 0;
        padding: 12px 16px;
    }

    .accounts-welcome-card__last-login-icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .accounts-welcome-card__last-login-text {
        padding-top: 4px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .accounts-welcome-card__top {
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 12px;
        padding: 15px;
    }

    .accounts-welcome-card__avatar {
        width: 54px;
        height: 54px;
    }

    .accounts-welcome-card__title {
        font-size: 19px;
    }

    .accounts-welcome-card__role-row {
        column-gap: 6px;
        row-gap: 6px;
    }

    .accounts-welcome-card__store-registration {
        padding-right: 9px;
    }

    .accounts-welcome-card__last-login {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* =========================================================
 * ИНФОРМАЦИЯ О ПОДПИСКЕ И ТОВАРАХ
 * На десктопе используется сетка из двух равных колонок.
 * ========================================================= */
.accounts-dashboard-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
}

.accounts-dashboard-card {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
}

.accounts-dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1d2b36;
}

.accounts-dashboard-card--subscription {
    grid-column: 1;
}

.accounts-dashboard-card--products {
    grid-column: 2;
}

.accounts-dashboard-card--products::before {
    background: #b52008;
}

.accounts-dashboard-card__header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.accounts-dashboard-card__title {
    margin: 0;
    text-align: center;
    color: #1d2b36;
    font-size: clamp(20px, 1.45vw, 24px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.018em;
}

.accounts-dashboard-card__body {
    padding: 8px 20px 20px;
}

.accounts-dashboard-details {
    margin: 0;
}

.accounts-dashboard-details__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
    gap: 14px;
    align-items: start;
    min-height: 48px;
    padding: 13px 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
}

.accounts-dashboard-details__row:last-child {
    border-bottom: 0;
}

.accounts-dashboard-details__row dt,
.accounts-dashboard-details__row dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.accounts-dashboard-details__row dt {
    min-width: 0;
    color: rgba(29, 43, 54, 0.68);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.accounts-dashboard-details__row dd {
    color: #1d2b36;
    font-weight: 750;
    text-align: right;
    overflow-wrap: anywhere;
}

.accounts-dashboard-details__row--total {
    margin-top: 2px;
}

.accounts-dashboard-details__row--total dt,
.accounts-dashboard-details__row--total dd {
    color: #1d2b36;
    font-weight: 750;
}

.accounts-dashboard-details__row--total dd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-width: 38px;
    min-height: 30px;
    padding: 4px 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #1d2b36;
    color: #ffffff;
}

.accounts-dashboard-card--products .accounts-dashboard-details__row--total dd {
    background: #b52008;
}

.accounts-dashboard-card__subtitle {
    margin: 17px 0 2px;
    color: #1d2b36;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.accounts-dashboard-details--statuses .accounts-dashboard-details__row {
    min-height: 45px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.accounts-dashboard-card__notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    margin-top: 12px;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid rgba(181, 32, 8, 0.14);
    border-radius: 15px;
    background: rgba(181, 32, 8, 0.055);
    color: #8f1907;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1035px) {
    .accounts-dashboard-info {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .accounts-dashboard-card--subscription,
    .accounts-dashboard-card--products {
        grid-column: 1;
    }

    .accounts-dashboard-card {
        height: auto;
        border-radius: 18px;
    }

    .accounts-dashboard-card__header {
        padding: 18px 18px 14px;
    }

    .accounts-dashboard-card__body {
        padding: 8px 18px 18px;
    }

    .accounts-dashboard-details__row {
        grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
    }
}

@media (max-width: 620px) {
    .accounts-dashboard-info {
        margin-top: 10px;
        gap: 10px;
    }

    .accounts-dashboard-card {
        border-radius: 16px;
    }

    .accounts-dashboard-card__header {
        padding: 17px 15px 13px;
    }

    .accounts-dashboard-card__title {
        font-size: 20px;
    }

    .accounts-dashboard-card__body {
        padding: 5px 15px 15px;
    }

    .accounts-dashboard-details__row {
        grid-template-columns: minmax(0, 1fr) minmax(90px, 42%);
        gap: 10px;
        min-height: 46px;
        padding: 11px 0;
    }

    .accounts-dashboard-card__subtitle {
        margin-top: 15px;
    }

    .accounts-dashboard-card__notice {
        min-height: 100px;
        margin-top: 10px;
        padding: 17px 14px;
    }
}

@media (max-width: 430px) {
    .accounts-dashboard-details__row {
        grid-template-columns: minmax(0, 1fr) minmax(82px, 40%);
        gap: 8px;
    }
}

/* =========================================================
 * СТАТИСТИКА ПОЛЬЗОВАТЕЛЕЙ ДЛЯ АДМИНИСТРАТОРА
 * ========================================================= */
.accounts-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
}

.accounts-admin-stats__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    min-width: 0;
    min-height: 82px;
    padding: 15px 17px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(29, 43, 54, 0.055);
}

.accounts-admin-stats__item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: #1d2b36;
    opacity: 0.9;
}

.accounts-admin-stats__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f1f4f5;
    color: #1d2b36;
}

.accounts-admin-stats__icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-admin-stats__text {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #1d2b36;
    text-align: left;
}

.accounts-admin-stats__label {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.3;
}

.accounts-admin-stats__value {
    color: #b52008;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (max-width: 1035px) {
    .accounts-admin-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .accounts-admin-stats__item {
        min-height: 76px;
        padding: 13px 14px;
    }
}

@media (max-width: 620px) {
    .accounts-admin-stats {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 5px;
    }

    .accounts-admin-stats__item {
        min-height: 66px;
        padding: 11px 13px;
        border-radius: 14px;
    }

    .accounts-admin-stats__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .accounts-admin-stats__icon svg {
        width: 19px;
        height: 19px;
    }

    .accounts-admin-stats__label {
        font-size: 16px;
    }

    .accounts-admin-stats__value {
        font-size: 20px;
    }
}

/* =========================================================
 * СТРАНИЦА ТОВАРОВ
 * ========================================================= */
.accounts-products {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.accounts-products__toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 15px;
}

.accounts-products__status-column {
    min-width: 0;
}

.accounts-products__status-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.accounts-products__status-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px 9px 15px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 12px;
    background: #ffffff;
    color: rgba(29, 43, 54, 0.72);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(29, 43, 54, 0.04);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accounts-products__status-tab:hover,
.accounts-products__status-tab:focus-visible {
    color: #1d2b36;
    border-color: rgba(29, 43, 54, 0.2);
    background: #f8f9f9;
    outline: none;
    transform: translateY(-1px);
}

.accounts-products__status-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 999px;
    background: #f1f4f5;
    color: #53616b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.accounts-products__status-tab.is-active,
.accounts-products__status-tab.is-active:hover,
.accounts-products__status-tab.is-active:focus-visible {
    color: #ffffff;
    border-color: #1d2b36;
    background: #1d2b36;
    box-shadow: 0 8px 20px rgba(29, 43, 54, 0.17);
}

.accounts-products__status-tab.is-active .accounts-products__status-count {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.accounts-products__status-select-wrap {
    position: relative;
    display: none;
    width: 100%;
}

.accounts-products__status-select {
    appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 5px 6px 5px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #1d2b36;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    outline: none;
    box-shadow: 0 6px 18px rgba(29, 43, 54, 0.055);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.accounts-products__status-select:hover,
.accounts-products__status-select:focus-visible,
.accounts-products__status-select-wrap.is-open .accounts-products__status-select {
    border-color: rgba(29, 43, 54, 0.28);
    background: #fbfcfc;
    box-shadow: 0 0 0 3px rgba(29, 43, 54, 0.06), 0 8px 20px rgba(29, 43, 54, 0.07);
}

.accounts-products__status-select-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-products__status-select-count,
.accounts-products__status-option-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 999px;
    background: #eef2f3;
    color: #46555f;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.accounts-products__status-select-count {
    margin-left: auto;
}

.accounts-products__status-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-left: 7px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 50%;
    background: #f3f5f6;
    color: #46555f;
    pointer-events: none;
    box-shadow: 0 2px 7px rgba(29, 43, 54, 0.05);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.accounts-products__status-select-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 50% 50%;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accounts-products__status-select-wrap.is-open .accounts-products__status-select-icon {
    color: #1d2b36;
    background: #e9edef;
    border-color: rgba(29, 43, 54, 0.13);
    box-shadow: 0 3px 9px rgba(29, 43, 54, 0.09);
}

.accounts-products__status-select-wrap.is-open .accounts-products__status-select-icon svg {
    transform: rotate(180deg);
}

.accounts-products__status-options {
    position: absolute;
    z-index: 40;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(29, 43, 54, 0.16);
}

.accounts-products__status-options[hidden] {
    display: none;
}

.accounts-products__status-option {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 8px 7px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #33434e;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
}

.accounts-products__status-option + .accounts-products__status-option {
    margin-top: 2px;
}

.accounts-products__status-option:hover,
.accounts-products__status-option:focus-visible {
    background: #f3f5f6;
    color: #1d2b36;
    outline: none;
}

.accounts-products__status-option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-products__status-option-count {
    margin-left: auto;
}

.accounts-products__status-option.is-active {
    background: #1d2b36;
    color: #ffffff;
}

.accounts-products__status-option.is-active .accounts-products__status-option-count {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.accounts-products__action-column {
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
}

.accounts-products__add-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 15px 8px 9px;
    border: 1px solid #8f1907;
    border-radius: 12px;
    background: #b52008;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(181, 32, 8, 0.18);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.accounts-products__add-button:hover,
.accounts-products__add-button:focus-visible {
    background: #9f1c07;
    border-color: #7f1606;
    box-shadow: 0 9px 22px rgba(181, 32, 8, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.accounts-products__add-button:active {
    transform: translateY(0);
}

.accounts-products__add-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
}

.accounts-products__add-button-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.accounts-products-table {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(29, 43, 54, 0.055);
}

.accounts-products-table__scroll {
    width: 100%;
    overflow-x: auto;
}

.accounts-products-table__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.accounts-products-table__table th,
.accounts-products-table__table td {
    box-sizing: border-box;
    padding: 14px 13px;
    text-align: left;
    vertical-align: middle;
}

.accounts-products-table__table th {
    border-bottom: 1px solid rgba(29, 43, 54, 0.09);
    background: #b52008;
    color: rgb(255 255 255);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

@media (min-width: 1036px) {
    .accounts-products-table__table {
        table-layout: fixed;
    }

    .accounts-products-table__table th {
        font-size: 13px;
    }

    .accounts-products-table__table th:first-child,
    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td:first-child {
        width: 28%;
    }

    .accounts-products-table__table th:last-child,
    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td:last-child {
        width: 10%;
    }
}

.accounts-products-table__table td {
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    color: #1d2b36;
    font-size: 13px;
    line-height: 1.4;
}

.accounts-products-table__table tbody tr:last-child td {
    border-bottom: 0;
}

.accounts-products-table__product-row {
    transition: background-color 180ms ease;
}

@media (min-width: 1036px) {
    .accounts-products-table__product-row:hover {
        background: #fbfcfc;
    }
}

.accounts-product-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.accounts-product-admin-comment {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.accounts-product-admin-comment strong {
    font-weight: 800;
}

.accounts-product-admin-comment span {
    white-space: pre-line;
}

.accounts-product-admin-comment.is-attention {
    color: #c62828;
}

.accounts-product-admin-comment.is-resubmitted {
    color: #b77900;
}

.accounts-product-summary__image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 12px;
    background: #f2f5f6;
}

.accounts-product-summary__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-product-summary__image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(29, 43, 54, 0.58);
}

.accounts-product-summary__image-placeholder svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-product-summary__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.accounts-product-summary__title {
    max-width: 100%;
    overflow: hidden;
    color: #1d2b36;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.32;
    text-overflow: ellipsis;
}

.accounts-product-summary__title a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

.accounts-product-summary__title a:hover,
.accounts-product-summary__title a:focus-visible {
    color: #b52008;
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: none;
}

.accounts-product-summary__article {
    margin-top: 3px;
    color: rgba(29, 43, 54, 0.56);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.35;
}

.accounts-product-status,
.accounts-product-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.accounts-product-status {
    margin-top: 7px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.accounts-product-status.is-published {
    border-color: #ccebd8;
    background: #e9f8ef;
    color: #18723d;
}

.accounts-product-status.is-draft {
    border-color: #d9e0e4;
    background: #eef2f4;
    color: #53636e;
}

.accounts-product-status.is-moderation {
    border-color: #cfe3f9;
    background: #eaf4ff;
    color: #275f92;
}

.accounts-product-status.is-revision {
    border-color: #f0d9a8;
    background: #fff4dc;
    color: #8a5a0a;
}

.accounts-product-status.is-rejected {
    border-color: #1d2b36;
    background: #26333c;
    color: #ffffff;
}

.accounts-product-status.is-neutral,
.accounts-product-stock.is-neutral {
    border-color: #dde3e6;
    background: #f2f5f6;
    color: #5c6972;
}

.accounts-product-stock {
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.2;
}

.accounts-product-stock.is-in-stock {
    border-color: #ccebd8;
    background: #e9f8ef;
    color: #18723d;
}

.accounts-product-stock.is-on-order {
    border-color: #f0d7a1;
    background: #fff3d9;
    color: #8a5a08;
}

.accounts-product-stock.is-out-of-stock {
    border-color: #f0cdca;
    background: #fcebea;
    color: #a52b1c;
}

.accounts-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: nowrap;
}

.accounts-product-price__base,
.accounts-product-price__sale {
    font-variant-numeric: tabular-nums;
}

.accounts-product-price__base {
    color: #1d2b36;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.accounts-product-price__base.is-old-price {
    color: rgba(29, 43, 54, 0.48);
    font-size: 11px;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.accounts-product-price__sale {
    color: #b52008;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.accounts-product-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.accounts-product-categories__item,
.accounts-product-tags,
.accounts-product-seller,
.accounts-product-date {
    color: rgba(29, 43, 54, 0.78);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
}

.accounts-product-categories__item {
    display: block;
    padding-left: calc(var(--accounts-category-depth, 0) * 12px);
}

.accounts-product-categories__item.is-child {
    position: relative;
}

.accounts-product-categories__item.is-child::before {
    content: "↳";
    position: absolute;
    left: calc((var(--accounts-category-depth, 0) - 1) * 12px);
    color: rgba(29, 43, 54, 0.32);
}

.accounts-product-tags {
    overflow-wrap: anywhere;
}

.accounts-product-seller {
    display: inline-block;
    font-weight: 650;
}

.accounts-product-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.accounts-product-cell-empty {
    color: rgba(29, 43, 54, 0.38);
}

.accounts-products-table__actions-cell {
    min-width: 0;
}

.accounts-product-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.accounts-product-actions__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 1px solid rgba(29, 43, 54, 0.10);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.accounts-product-actions__button img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    pointer-events: none;
}

.accounts-product-actions__button:hover,
.accounts-product-actions__button:focus-visible {
    border-color: rgba(29, 43, 54, 0.26);
    background: #f7f9f9;
    outline: none;
    transform: translateY(-1px);
}

.accounts-product-actions__button--delete:hover,
.accounts-product-actions__button--delete:focus-visible {
    border-color: rgba(181, 32, 8, 0.28);
    background: rgba(181, 32, 8, 0.05);
}

.accounts-product-actions__button:disabled,
.accounts-product-actions__button.is-loading {
    opacity: 0.45;
    cursor: wait;
    transform: none;
}

.accounts-products-table__empty-row td {
    padding: 0;
}

.accounts-products-table__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 210px;
    padding: 28px 18px;
    box-sizing: border-box;
    color: rgba(29, 43, 54, 0.64);
    text-align: center;
}

.accounts-products-table__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f1f4f5;
    color: #1d2b36;
}

.accounts-products-table__empty-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-products-table__empty-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.accounts-products-table__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.88);
    color: #1d2b36;
    font-size: 13px;
    font-weight: 650;
    backdrop-filter: blur(2px);
}

.accounts-products-table__loading[hidden] {
    display: none;
}

.accounts-products-table__spinner {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid rgba(29, 43, 54, 0.16);
    border-top-color: #1d2b36;
    border-radius: 50%;
    animation: accounts-products-spin 700ms linear infinite;
}

@keyframes accounts-products-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1035px) {
    .accounts-products {
        padding: 15px;
    }

    .accounts-products__toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .accounts-products__action-column {
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .accounts-products__status-column {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .accounts-products__status-tabs {
        display: none;
    }

    .accounts-products__status-select-wrap {
        display: block;
    }

    .accounts-products__status-select {
        min-height: 42px;
    }

    .accounts-products__add-button {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .accounts-products-table {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .accounts-products-table__scroll {
        overflow: visible;
    }

    .accounts-products-table__table,
    .accounts-products-table__table tbody,
    .accounts-products-table__table tr,
    .accounts-products-table__table td {
        display: block;
        width: 100%;
    }

    .accounts-products-table__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) {
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid rgba(29, 43, 54, 0.08);
        border-radius: 15px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(29, 43, 54, 0.05);
    }

    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td {
        display: grid;
        grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        min-height: 46px;
        padding: 11px 13px;
        border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    }

    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td::before {
        content: attr(data-label);
        color: rgba(29, 43, 54, 0.6);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.3;
    }

    .accounts-products-table__product-cell .accounts-product-admin-comment {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 1px;
        box-sizing: border-box;
    }

    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td:last-child {
        border-bottom: 0;
    }

    .accounts-products-table__empty-row {
        overflow: hidden;
        border: 1px solid rgba(29, 43, 54, 0.08);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(29, 43, 54, 0.05);
    }

    .accounts-products-table__empty-row td {
        display: block;
        padding: 0;
    }

    .accounts-products-table__empty {
        min-height: 180px;
    }

    .accounts-product-summary {
        gap: 10px;
    }

    .accounts-product-summary__image {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 11px;
    }

    .accounts-product-status {
        margin-top: 6px;
    }
}

@media (max-width: 620px) {
    .accounts-products {
        padding: 5px;
    }

    .accounts-products__toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .accounts-products__action-column,
    .accounts-products__add-button {
        width: 100%;
    }

    .accounts-products__add-button {
        justify-content: center;
    }

    .accounts-products-table__empty {
        min-height: 160px;
        padding: 24px 14px;
    }

    .accounts-products-table__empty-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .accounts-products-table__table tbody tr:not(.accounts-products-table__empty-row) td {
        grid-template-columns: minmax(88px, 32%) minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .accounts-product-summary__image {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .accounts-product-summary__title {
        font-size: 13px;
    }
}


@media (max-width: 600px) {
    .accounts-sidebar-brand__name {
        display: none;
    }
}


/* =========================================================
 * Регистрация магазина
 * ========================================================= */
.accounts-store-registration {
    --accounts-store-accent: #b52008;
    --accounts-store-accent-dark: #8f1907;
    --accounts-store-text: #1d2b36;
    --accounts-store-muted: rgba(29, 43, 54, 0.62);
    --accounts-store-border: rgba(29, 43, 54, 0.10);
    --accounts-store-soft: #f7f8f9;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    color: var(--accounts-store-text);
}

.accounts-store-registration *,
.accounts-store-registration *::before,
.accounts-store-registration *::after {
    box-sizing: border-box;
}

.accounts-store-registration button,
.accounts-store-registration input {
    font: inherit;
}

/* Этапы регистрации должны действительно скрываться при переключении через hidden. */
.accounts-store-registration [hidden] {
    display: none !important;
}

.accounts-store-registration__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--accounts-store-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(29, 43, 54, 0.055);
}

.accounts-store-registration__heading-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(145deg, #c52a11 0%, #9d1b07 100%);
    box-shadow: 0 9px 22px rgba(181, 32, 8, 0.20);
}

.accounts-store-registration__heading-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-registration__heading-copy {
    min-width: 0;
}

.accounts-store-registration__title {
    margin: 0;
    color: var(--accounts-store-text);
    font-size: 25px;
    font-weight: 760;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.accounts-store-registration__intro {
    margin: 5px 0 0;
    color: var(--accounts-store-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.accounts-store-registration__type-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.accounts-store-registration__type-button {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 88px;
    padding: 15px 16px;
    border: 1px solid var(--accounts-store-border);
    border-radius: 17px;
    color: var(--accounts-store-text);
    text-align: left;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(29, 43, 54, 0.05);
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.accounts-store-registration__type-button:hover,
.accounts-store-registration__type-button:focus-visible {
    border-color: rgba(181, 32, 8, 0.28);
    background: #fffdfd;
    box-shadow: 0 12px 30px rgba(29, 43, 54, 0.075);
    transform: translateY(-2px);
    outline: none;
}

.accounts-store-registration__type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--accounts-store-accent);
    background: rgba(181, 32, 8, 0.075);
}

.accounts-store-registration__type-icon svg,
.accounts-store-registration__type-arrow svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-registration__type-icon svg {
    width: 25px;
    height: 25px;
}

.accounts-store-registration__type-text {
    min-width: 0;
}

.accounts-store-registration__type-text strong,
.accounts-store-registration__type-text small {
    display: block;
}

.accounts-store-registration__type-text strong {
    font-size: 16px;
    font-weight: 720;
    line-height: 1.3;
}

.accounts-store-registration__type-text small {
    margin-top: 4px;
    color: var(--accounts-store-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.accounts-store-registration__type-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: rgba(29, 43, 54, 0.42);
    background: rgba(29, 43, 54, 0.045);
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.accounts-store-registration__type-arrow svg {
    width: 16px;
    height: 16px;
}

.accounts-store-registration__type-button:hover .accounts-store-registration__type-arrow,
.accounts-store-registration__type-button:focus-visible .accounts-store-registration__type-arrow {
    color: #ffffff;
    background: var(--accounts-store-accent);
    transform: translateX(2px);
}

.accounts-store-registration__master-form,
.accounts-store-tariff {
    padding: 18px;
    border: 1px solid var(--accounts-store-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(29, 43, 54, 0.055);
}

.accounts-store-registration__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.accounts-store-field {
    min-width: 0;
}

.accounts-store-field__label {
    display: block;
    margin-bottom: 8px;
    color: var(--accounts-store-text);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.35;
}

.accounts-store-field__input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(29, 43, 54, 0.14);
    border-radius: 12px;
    color: var(--accounts-store-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(29, 43, 54, 0.02);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.accounts-store-field__input::placeholder {
    color: rgba(29, 43, 54, 0.38);
}

.accounts-store-field__input:hover {
    border-color: rgba(29, 43, 54, 0.24);
}

.accounts-store-field__input:focus {
    border-color: rgba(181, 32, 8, 0.58);
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.09);
}

.accounts-store-field__hint {
    margin: 7px 0 0;
    color: rgba(29, 43, 54, 0.52);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.45;
}

.accounts-store-upload {
    position: relative;
}

.accounts-store-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.accounts-store-upload__dropzone {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 112px;
    padding: 14px;
    border: 1.5px dashed rgba(29, 43, 54, 0.18);
    border-radius: 14px;
    color: var(--accounts-store-text);
    text-align: left;
    background: linear-gradient(180deg, #fbfcfc 0%, #f7f8f9 100%);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accounts-store-upload__dropzone:hover,
.accounts-store-upload__dropzone:focus-visible,
.accounts-store-upload.is-dragover .accounts-store-upload__dropzone {
    border-color: rgba(181, 32, 8, 0.52);
    background: rgba(181, 32, 8, 0.025);
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.06);
    outline: none;
}

.accounts-store-upload.is-dragover .accounts-store-upload__dropzone {
    transform: translateY(-1px);
}

.accounts-store-upload__dropzone-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: var(--accounts-store-accent);
    background: rgba(181, 32, 8, 0.075);
}

.accounts-store-upload__dropzone-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-upload__dropzone-copy {
    min-width: 0;
}

.accounts-store-upload__dropzone-copy strong,
.accounts-store-upload__dropzone-copy small {
    display: block;
}

.accounts-store-upload__dropzone-copy strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.accounts-store-upload__dropzone-copy small {
    margin-top: 4px;
    color: rgba(29, 43, 54, 0.50);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.45;
}

.accounts-store-upload__progress {
    padding: 14px;
    border: 1px solid rgba(181, 32, 8, 0.12);
    border-radius: 14px;
    background: rgba(181, 32, 8, 0.025);
}

.accounts-store-upload__progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--accounts-store-muted);
    font-size: 11px;
    font-weight: 600;
}

.accounts-store-upload__progress-top strong {
    color: var(--accounts-store-accent);
    font-size: 12px;
    font-weight: 750;
}

.accounts-store-upload__progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 43, 54, 0.08);
}

.accounts-store-upload__progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b52008 0%, #dc4a31 100%);
    transition: width 120ms linear;
}

.accounts-store-upload__preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--accounts-store-border);
    border-radius: 14px;
    background: #f3f5f6;
}

.accounts-store-upload__preview img,
.accounts-store-upload--banner .accounts-store-upload__preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.accounts-store-upload__remove {
    position: absolute;
    top: 9px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(29, 43, 54, 0.82);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background-color 180ms ease, transform 180ms ease;
}

.accounts-store-upload__remove:hover,
.accounts-store-upload__remove:focus-visible {
    background: var(--accounts-store-accent);
    transform: scale(1.06);
    outline: none;
}

.accounts-store-upload__remove svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.accounts-store-upload__message {
    min-height: 0;
    margin: 7px 0 0;
    color: var(--accounts-store-muted);
    font-size: 11px;
    font-weight: 550;
    line-height: 1.4;
}

.accounts-store-upload__message:empty {
    display: none;
}

.accounts-store-upload__message.is-success {
    color: #24733e;
}

.accounts-store-upload__message.is-error {
    color: #a31d0b;
}

.accounts-store-field--promo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.accounts-store-promo {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    min-height: 76px;
    padding: 13px;
    border: 1px solid var(--accounts-store-border);
    border-radius: 14px;
    background: #fafbfb;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.accounts-store-promo:hover {
    border-color: rgba(181, 32, 8, 0.22);
    background: #fffdfd;
}

.accounts-store-promo__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.accounts-store-promo__control {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1.5px solid rgba(29, 43, 54, 0.22);
    border-radius: 7px;
    color: transparent;
    background: #ffffff;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.accounts-store-promo__control svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-promo__checkbox:checked + .accounts-store-promo__control {
    border-color: var(--accounts-store-accent);
    color: #ffffff;
    background: var(--accounts-store-accent);
    box-shadow: 0 4px 12px rgba(181, 32, 8, 0.20);
}

.accounts-store-promo__checkbox:focus-visible + .accounts-store-promo__control {
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.12);
}

.accounts-store-promo__copy {
    min-width: 0;
}

.accounts-store-promo__copy strong,
.accounts-store-promo__copy small {
    display: block;
}

.accounts-store-promo__copy strong {
    color: var(--accounts-store-text);
    font-size: 14px;
    font-weight: 710;
    line-height: 1.35;
}

.accounts-store-promo__copy small {
    margin-top: 4px;
    color: var(--accounts-store-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.accounts-store-promo__field {
    margin-top: 9px;
}

.accounts-store-registration__form-footer,
.accounts-store-tariff__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 43, 54, 0.08);
}

.accounts-store-registration__next-button,
.accounts-store-tariff__pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 17px;
    border: 1px solid #8f1907;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    background: #b52008;
    box-shadow: 0 7px 18px rgba(181, 32, 8, 0.18);
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accounts-store-registration__next-button:hover,
.accounts-store-registration__next-button:focus-visible,
.accounts-store-tariff__pay-button:hover,
.accounts-store-tariff__pay-button:focus-visible {
    border-color: #791306;
    background: #971a07;
    box-shadow: 0 10px 24px rgba(181, 32, 8, 0.24);
    transform: translateY(-1px);
    outline: none;
}

.accounts-store-registration__next-button svg,
.accounts-store-tariff__pay-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Конструктор тарифа */
.accounts-store-tariff__groups {
    display: grid;
    gap: 13px;
}

.accounts-store-tariff__group {
    padding: 16px;
    border: 1px solid rgba(29, 43, 54, 0.085);
    border-radius: 16px;
    background: #fafbfb;
}

.accounts-store-tariff__group-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.accounts-store-tariff__step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--accounts-store-accent);
    background: rgba(181, 32, 8, 0.07);
}

.accounts-store-tariff__step-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-tariff__group-head h2 {
    margin: 0;
    color: var(--accounts-store-text);
    font-size: 16px;
    font-weight: 740;
    line-height: 1.32;
}

.accounts-store-tariff__group-head p {
    max-width: 920px;
    margin: 5px 0 0;
    color: var(--accounts-store-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.accounts-store-tariff__options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
    padding-left: 49px;
}

.accounts-store-tariff__option {
    position: relative;
    display: flex;
    flex: 1 1 116px;
    min-width: 105px;
    max-width: 190px;
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 28px 11px 11px;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 13px;
    color: var(--accounts-store-text);
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.accounts-store-tariff__option:hover,
.accounts-store-tariff__option:focus-visible {
    border-color: rgba(181, 32, 8, 0.35);
    box-shadow: 0 7px 18px rgba(29, 43, 54, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.accounts-store-tariff__option.is-selected {
    border-color: rgba(181, 32, 8, 0.55);
    background: rgba(181, 32, 8, 0.035);
    box-shadow: inset 0 0 0 1px rgba(181, 32, 8, 0.08), 0 7px 18px rgba(181, 32, 8, 0.07);
}

.accounts-store-tariff__option strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--accounts-store-text);
    font-size: 20px;
    font-weight: 780;
    line-height: 1.15;
}

.accounts-store-tariff__option span:not(.accounts-store-tariff__option-check) {
    color: var(--accounts-store-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.accounts-store-tariff__option-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 50%;
    color: transparent;
    background: #ffffff;
    transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.accounts-store-tariff__option-check svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-tariff__option.is-selected .accounts-store-tariff__option-check {
    border-color: var(--accounts-store-accent);
    color: #ffffff;
    background: var(--accounts-store-accent);
}

.accounts-store-tariff__empty {
    margin-top: 12px;
    margin-left: 49px;
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--accounts-store-muted);
    font-size: 12px;
    font-weight: 550;
    background: rgba(29, 43, 54, 0.045);
}

.accounts-store-tariff__months {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
    padding-left: 49px;
}

.accounts-store-tariff__month {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 138px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 14px;
    color: var(--accounts-store-text);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.accounts-store-tariff__month:hover,
.accounts-store-tariff__month:focus-visible {
    border-color: rgba(181, 32, 8, 0.36);
    box-shadow: 0 7px 18px rgba(29, 43, 54, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.accounts-store-tariff__month.is-selected {
    border-color: rgba(181, 32, 8, 0.58);
    background: rgba(181, 32, 8, 0.035);
    box-shadow: inset 0 0 0 1px rgba(181, 32, 8, 0.08), 0 8px 20px rgba(181, 32, 8, 0.08);
}

.accounts-store-tariff__month > strong {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
}

.accounts-store-tariff__month-caption {
    margin-top: 4px;
    color: var(--accounts-store-muted);
    font-size: 11px;
    font-weight: 600;
}

.accounts-store-tariff__month-prices {
    display: flex;
    min-height: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin-top: 9px;
}

.accounts-store-tariff__month-prices del {
    color: rgba(29, 43, 54, 0.42);
    font-size: 11px;
    font-weight: 600;
    text-decoration-color: rgba(181, 32, 8, 0.66);
    text-decoration-thickness: 1.5px;
}

.accounts-store-tariff__month-current {
    color: var(--accounts-store-accent);
    font-size: 14px;
    font-weight: 760;
}

.accounts-store-tariff__discount {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #24733e;
    font-size: 10px;
    font-weight: 760;
    line-height: 1;
    background: #e9f7ee;
}

.accounts-store-tariff__pay-button {
    min-width: 178px;
}

@media (max-width: 1035px) {
    .accounts-store-registration {
        padding: 15px;
    }

    .accounts-store-registration__header {
        padding: 15px;
        border-radius: 15px;
    }

    .accounts-store-registration__title {
        font-size: 22px;
    }

    .accounts-store-registration__master-form,
    .accounts-store-tariff {
        padding: 15px;
        border-radius: 15px;
    }

    .accounts-store-registration__form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accounts-store-tariff__months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .accounts-store-registration__type-actions {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .accounts-store-registration__type-button {
        min-height: 78px;
    }

    .accounts-store-tariff__options,
    .accounts-store-tariff__months,
    .accounts-store-tariff__empty {
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    .accounts-store-registration {
        padding: 5px;
    }

    .accounts-store-registration__header {
        gap: 10px;
        margin-bottom: 8px;
        padding: 12px;
        border-radius: 13px;
    }

    .accounts-store-registration__heading-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .accounts-store-registration__heading-icon svg {
        width: 22px;
        height: 22px;
    }

    .accounts-store-registration__title {
        font-size: 19px;
    }

    .accounts-store-registration__intro {
        margin-top: 3px;
        font-size: 11px;
    }

    .accounts-store-registration__type-button {
        grid-template-columns: 42px minmax(0, 1fr) 26px;
        gap: 10px;
        min-height: 72px;
        padding: 11px 12px;
        border-radius: 13px;
    }

    .accounts-store-registration__type-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .accounts-store-registration__type-icon svg {
        width: 22px;
        height: 22px;
    }

    .accounts-store-registration__type-text strong {
        font-size: 14px;
    }

    .accounts-store-registration__master-form,
    .accounts-store-tariff {
        padding: 11px;
        border-radius: 13px;
    }

    .accounts-store-registration__form-grid {
        gap: 13px;
    }

    .accounts-store-upload__dropzone {
        min-height: 96px;
        padding: 11px;
    }

    .accounts-store-upload__preview {
        width: 100%;
        max-width: 360px;
    }

    .accounts-store-upload__preview img,
    .accounts-store-upload--banner .accounts-store-upload__preview img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .accounts-store-registration__form-footer,
    .accounts-store-tariff__footer {
        margin-top: 13px;
        padding-top: 12px;
    }

    .accounts-store-registration__next-button,
    .accounts-store-tariff__pay-button {
        width: 100%;
    }

    .accounts-store-tariff__group {
        padding: 12px;
        border-radius: 13px;
    }

    .accounts-store-tariff__group-head {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .accounts-store-tariff__step-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .accounts-store-tariff__group-head h2 {
        font-size: 14px;
    }

    .accounts-store-tariff__group-head p {
        font-size: 10px;
    }

    .accounts-store-tariff__options {
        gap: 7px;
        margin-top: 10px;
    }

    .accounts-store-tariff__option {
        flex-basis: calc(50% - 4px);
        min-width: 92px;
        max-width: none;
        min-height: 76px;
        padding: 10px 25px 10px 9px;
    }

    .accounts-store-tariff__option strong {
        font-size: 18px;
    }

    .accounts-store-tariff__months {
        gap: 7px;
        margin-top: 10px;
    }

    .accounts-store-tariff__month {
        min-height: 130px;
        padding: 12px 8px;
        border-radius: 12px;
    }

    .accounts-store-tariff__month > strong {
        font-size: 27px;
    }

    .accounts-store-tariff__discount {
        top: 7px;
        right: 7px;
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* Плавное появление этапов регистрации. */
.accounts-store-registration__master-form:not([hidden]),
.accounts-store-tariff:not([hidden]) {
    animation: accountsStoreReveal 240ms ease both;
}

@keyframes accountsStoreReveal {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Варианты каждой опции тарифа держим одной горизонтальной линией. */
.accounts-store-tariff__options {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 43, 54, 0.18) transparent;
    padding-bottom: 4px;
}

.accounts-store-tariff__options::-webkit-scrollbar {
    height: 5px;
}

.accounts-store-tariff__options::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(29, 43, 54, 0.16);
}

.accounts-store-tariff__options .accounts-store-tariff__option {
    flex: 0 0 132px;
    max-width: 180px;
}

@media (max-width: 620px) {
    .accounts-store-tariff__options .accounts-store-tariff__option {
        flex-basis: 124px;
        min-width: 124px;
    }
}

/* =========================================================
 * Регистрация магазина: обязательные поля, навигация и адаптив тарифа
 * ========================================================= */
.accounts-store-required {
    color: #b52008;
    font-weight: 800;
}

.accounts-store-registration__form-footer,
.accounts-store-tariff__footer {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.accounts-store-registration__back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(29, 43, 54, 0.16);
    border-radius: 12px;
    color: #1d2b36;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(29, 43, 54, 0.055);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accounts-store-registration__back-button:hover,
.accounts-store-registration__back-button:focus-visible {
    border-color: rgba(181, 32, 8, 0.38);
    color: #b52008;
    background: rgba(181, 32, 8, 0.025);
    box-shadow: 0 7px 18px rgba(29, 43, 54, 0.075);
    transform: translateY(-1px);
    outline: none;
}

.accounts-store-registration__back-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-store-registration__next-button:disabled,
.accounts-store-registration__next-button[aria-disabled="true"] {
    border-color: rgba(29, 43, 54, 0.12);
    color: rgba(29, 43, 54, 0.42);
    background: #edf0f2;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.accounts-store-registration__next-button:disabled:hover,
.accounts-store-registration__next-button:disabled:focus-visible {
    border-color: rgba(29, 43, 54, 0.12);
    color: rgba(29, 43, 54, 0.42);
    background: #edf0f2;
    box-shadow: none;
    transform: none;
}

/* Более плотный и выразительный конструктор тарифа. */
.accounts-store-tariff__groups {
    gap: 10px;
}

.accounts-store-tariff__group {
    min-width: 0;
    padding: 14px;
}

.accounts-store-tariff__group-head {
    min-width: 0;
}

.accounts-store-tariff__group-head > div {
    min-width: 0;
}

.accounts-store-tariff__group-head h2 {
    font-size: 18px;
    font-weight: 760;
    line-height: 1.28;
}

.accounts-store-tariff__group-head p {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 520;
    line-height: 1.45;
}

.accounts-store-tariff__options {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
    overflow: visible;
    padding-bottom: 0;
}

.accounts-store-tariff__options .accounts-store-tariff__option,
.accounts-store-tariff__option {
    flex: 1 1 126px;
    min-width: 112px;
    max-width: 190px;
    min-height: 76px;
    padding: 10px 28px 10px 10px;
}

.accounts-store-tariff__option strong {
    font-size: 21px;
}

.accounts-store-tariff__option span:not(.accounts-store-tariff__option-check) {
    color: #b52008;
    font-size: 15px;
    font-weight: 760;
}

.accounts-store-tariff__months {
    gap: 8px;
    margin-top: 11px;
}

.accounts-store-tariff__month {
    min-height: 122px;
    padding: 12px 9px 11px;
    border-radius: 14px;
    overflow: hidden;
}

.accounts-store-tariff__month > strong {
    font-size: 34px;
    font-weight: 820;
}

.accounts-store-tariff__month-caption {
    margin-top: 5px;
    color: rgba(29, 43, 54, 0.68);
    font-size: 14px;
    font-weight: 700;
}

.accounts-store-tariff__month-prices {
    min-height: 40px;
    gap: 2px;
    margin-top: 8px;
}

.accounts-store-tariff__month-prices del {
    font-size: 13px;
    font-weight: 650;
}

.accounts-store-tariff__month-current {
    font-size: 18px;
    font-weight: 820;
}

.accounts-store-tariff__discount {
    top: 8px;
    right: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(38, 125, 70, 0.14);
    border-radius: 999px;
    color: #176b36;
    font-size: 13px;
    font-weight: 820;
    line-height: 1;
    background: linear-gradient(135deg, #e7f8ed 0%, #d8f2e2 100%);
    box-shadow: 0 4px 12px rgba(36, 115, 62, 0.12);
    animation: accountsStoreDiscountPulse 2.4s ease-in-out infinite;
}

.accounts-store-tariff__month.is-selected .accounts-store-tariff__discount {
    border-color: rgba(38, 125, 70, 0.22);
    background: linear-gradient(135deg, #dcf6e5 0%, #c9efd7 100%);
}

@keyframes accountsStoreDiscountPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 12px rgba(36, 115, 62, 0.12);
    }
    50% {
        transform: translateY(-1px) scale(1.035);
        box-shadow: 0 7px 16px rgba(36, 115, 62, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-store-tariff__discount {
        animation: none;
    }
}

/* Полноценный мобильный адаптив конструктора тарифа. */
@media (max-width: 1035px) {
    .accounts-store-registration,
    .accounts-store-registration__master-form,
    .accounts-store-tariff,
    .accounts-store-tariff__groups,
    .accounts-store-tariff__group,
    .accounts-store-tariff__group-head,
    .accounts-store-tariff__options,
    .accounts-store-tariff__months {
        min-width: 0;
        max-width: 100%;
    }

    .accounts-store-registration {
        overflow-x: hidden;
    }

    .accounts-store-tariff__group {
        padding: 13px;
    }

    .accounts-store-tariff__group-head h2 {
        font-size: 17px;
    }

    .accounts-store-tariff__group-head p {
        font-size: 12px;
    }

    .accounts-store-tariff__options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
        padding-left: 0;
        overflow: visible;
    }

    .accounts-store-tariff__options .accounts-store-tariff__option,
    .accounts-store-tariff__option {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 74px;
    }

    .accounts-store-tariff__months {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    .accounts-store-tariff__month {
        width: 100%;
        min-width: 0;
    }

    .accounts-store-tariff__empty {
        margin-left: 0;
        padding-left: 12px;
    }
}

@media (max-width: 620px) {
    .accounts-store-registration__form-footer,
    .accounts-store-tariff__footer {
        gap: 8px;
    }

    .accounts-store-registration__back-button,
    .accounts-store-registration__next-button,
    .accounts-store-tariff__pay-button {
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 9px 11px;
        font-size: 12px;
    }

    .accounts-store-registration__back-button {
        flex: 0 1 auto;
    }

    .accounts-store-registration__next-button,
    .accounts-store-tariff__pay-button {
        flex: 1 1 auto;
    }

    .accounts-store-tariff__groups {
        gap: 8px;
    }

    .accounts-store-tariff__group {
        padding: 10px;
        border-radius: 12px;
    }

    .accounts-store-tariff__group-head {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
    }

    .accounts-store-tariff__step-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .accounts-store-tariff__step-icon svg {
        width: 18px;
        height: 18px;
    }

    .accounts-store-tariff__group-head h2 {
        font-size: 16px;
        line-height: 1.25;
    }

    .accounts-store-tariff__group-head p {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.4;
    }

    .accounts-store-tariff__options {
        gap: 6px;
        margin-top: 9px;
    }

    .accounts-store-tariff__options .accounts-store-tariff__option,
    .accounts-store-tariff__option {
        min-width: 0;
        min-height: 68px;
        padding: 9px 24px 9px 8px;
        border-radius: 11px;
    }

    .accounts-store-tariff__option strong {
        font-size: 19px;
    }

    .accounts-store-tariff__option span:not(.accounts-store-tariff__option-check) {
        font-size: 14px;
    }

    .accounts-store-tariff__option-check {
        top: 6px;
        right: 6px;
        width: 18px;
        height: 18px;
    }

    .accounts-store-tariff__month {
        min-height: 116px;
        padding: 10px 7px 9px;
        border-radius: 11px;
    }

    .accounts-store-tariff__month > strong {
        font-size: 31px;
    }

    .accounts-store-tariff__month-caption {
        font-size: 13px;
    }

    .accounts-store-tariff__month-prices {
        min-height: 39px;
        margin-top: 7px;
    }

    .accounts-store-tariff__month-prices del {
        font-size: 12px;
    }

    .accounts-store-tariff__month-current {
        font-size: 17px;
    }

    .accounts-store-tariff__discount {
        top: 6px;
        right: 6px;
        padding: 5px 7px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .accounts-store-registration__form-footer,
    .accounts-store-tariff__footer {
        flex-wrap: wrap;
    }

    .accounts-store-registration__back-button {
        flex: 0 0 auto;
    }

    .accounts-store-registration__next-button,
    .accounts-store-tariff__pay-button {
        flex: 1 1 180px;
    }

    .accounts-store-tariff__group-head h2 {
        font-size: 15px;
    }

    .accounts-store-tariff__group-head p {
        font-size: 11px;
    }

    .accounts-store-tariff__option strong {
        font-size: 18px;
    }

    .accounts-store-tariff__option span:not(.accounts-store-tariff__option-check) {
        font-size: 13px;
    }

    .accounts-store-tariff__month > strong {
        font-size: 29px;
    }

    .accounts-store-tariff__month-caption {
        font-size: 12px;
    }

    .accounts-store-tariff__month-current {
        font-size: 16px;
    }
}


/* =========================================================
 * Регистрация мастерской: ИНН и общая навигация по шагам
 * ========================================================= */

.accounts-store-registration [data-store-type-actions][hidden],
.accounts-store-registration [data-store-form][hidden],
.accounts-store-registration [data-store-tariff-builder][hidden],
.accounts-store-registration [data-store-promo-field][hidden],
.accounts-store-registration [data-store-media-progress][hidden],
.accounts-store-registration [data-store-media-preview][hidden],
.accounts-store-registration [data-store-inn-spinner][hidden] {
    display: none !important;
}

.accounts-store-field--inn {
    position: relative;
}

.accounts-store-inn-input {
    position: relative;
    width: 100%;
}

.accounts-store-inn-input .accounts-store-field__input {
    padding-right: 48px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.accounts-store-inn-input .accounts-store-field__input.is-inn-checking {
    border-color: rgba(181, 32, 8, 0.42);
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.08);
}

.accounts-store-inn-input .accounts-store-field__input.is-inn-valid {
    border-color: rgba(32, 130, 76, 0.48);
    background: rgba(232, 248, 238, 0.62);
    box-shadow: 0 0 0 3px rgba(32, 130, 76, 0.08);
}

.accounts-store-inn-input .accounts-store-field__input.is-inn-error {
    border-color: rgba(181, 32, 8, 0.62);
    background: rgba(255, 242, 239, 0.68);
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.08);
}

.accounts-store-inn-input__spinner {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(181, 32, 8, 0.16);
    border-top-color: #b52008;
    border-radius: 50%;
    pointer-events: none;
    animation: accounts-store-inn-spin 0.72s linear infinite;
}

.accounts-store-inn-status {
    min-height: 18px;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    color: #7b8791;
}

/* Пустой статус ИНН не должен резервировать место между полями. */
.accounts-store-inn-status:empty {
    display: none;
}

.accounts-store-inn-status.is-checking {
    color: #8a5a17;
}

.accounts-store-inn-status.is-success {
    color: #207a49;
}

.accounts-store-inn-status.is-error {
    color: #b52008;
}

@keyframes accounts-store-inn-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 620px) {
    .accounts-store-inn-input .accounts-store-field__input {
        padding-right: 44px;
    }

    .accounts-store-inn-input__spinner {
        right: 14px;
    }

    .accounts-store-inn-status {
        font-size: 12px;
    }
}


/* Проверка промокода в регистрации мастера/мастерской */
.accounts-store-promo__status {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.accounts-store-promo__status:empty {
    display: none;
}

.accounts-store-promo__status.is-checking {
    color: #6f7b84;
}

.accounts-store-promo__status.is-success {
    color: #218548;
}

.accounts-store-promo__status.is-error {
    color: #b52008;
}

/* =========================================================
 * НАШИ МАСТЕРА
 * ========================================================= */
.accounts-masters {
    --accounts-store-accent: #b52008;
    --accounts-store-accent-dark: #8f1907;
    --accounts-store-text: #1d2b36;
    --accounts-store-muted: rgba(29, 43, 54, 0.62);
    --accounts-store-border: rgba(29, 43, 54, 0.10);
    --accounts-store-soft: #f7f8f9;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    color: #1d2b36;
}

.accounts-masters *,
.accounts-masters *::before,
.accounts-masters *::after {
    box-sizing: border-box;
}

.accounts-masters [hidden] {
    display: none !important;
}

.accounts-masters-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    row-gap: 13px;
    width: 100%;
    margin-bottom: 15px;
    padding: 17px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(29, 43, 54, 0.045);
}

.accounts-masters-search__heading {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
}

.accounts-masters-search__stats {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-self: end;
    gap: 9px;
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, #fbfcfc 0%, #ffffff 100%);
    box-shadow: 0 5px 16px rgba(29, 43, 54, 0.045);
    color: rgba(29, 43, 54, 0.66);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
}

.accounts-masters-search__stats-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.accounts-masters-search__stats-item strong {
    color: #1d2b36;
    font-size: 14px;
    font-weight: 850;
}

.accounts-masters-search__stats-item--expired strong {
    color: #b52008;
}

.accounts-masters-search__stats-separator {
    color: rgba(29, 43, 54, 0.2);
    font-weight: 700;
}

.accounts-masters-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(181, 32, 8, 0.08);
    color: #b52008;
}

.accounts-masters-search__icon svg,
.accounts-masters-search__field-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-masters-search__title {
    margin: 0;
    color: #1d2b36;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.accounts-masters-search__description {
    margin: 4px 0 0;
    color: rgba(29, 43, 54, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.accounts-masters-search__field-wrap {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
}

.accounts-masters-search__field-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(29, 43, 54, 0.48);
    transform: translateY(-50%);
    pointer-events: none;
}

.accounts-masters-search__field-icon svg {
    width: 18px;
    height: 18px;
}

.accounts-masters-search__field {
    appearance: none;
    width: 100%;
    min-height: 46px;
    padding: 10px 46px 10px 44px;
    border: 1px solid rgba(29, 43, 54, 0.13);
    border-radius: 12px;
    background: #fbfcfc;
    color: #1d2b36;
    font: inherit;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.3;
    outline: none;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.accounts-masters-search__field::placeholder {
    color: rgba(29, 43, 54, 0.4);
}

.accounts-masters-search__field:hover {
    border-color: rgba(29, 43, 54, 0.23);
}

.accounts-masters-search__field:focus {
    border-color: rgba(181, 32, 8, 0.52);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.07);
}

.accounts-masters-search__indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(29, 43, 54, 0.13);
    border-top-color: #b52008;
    border-radius: 50%;
    animation: accounts-masters-spin 650ms linear infinite;
}

@keyframes accounts-masters-spin {
    to { transform: rotate(360deg); }
}

.accounts-masters-notice {
    width: 100%;
    margin: 0 0 12px;
    padding: 11px 14px;
    border: 1px solid #cae8d4;
    border-radius: 12px;
    background: #edf9f1;
    color: #176c39;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(25, 113, 61, 0.06);
    animation: accounts-masters-notice-in 230ms ease both;
}

.accounts-masters-notice.is-error {
    border-color: #f0ceca;
    background: #fff0ee;
    color: #a52b1c;
}

@keyframes accounts-masters-notice-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.accounts-masters-table {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(29, 43, 54, 0.055);
}

.accounts-masters-table__scroll {
    width: 100%;
    overflow-x: auto;
}

.accounts-masters-table__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.accounts-masters-table__table th,
.accounts-masters-table__table td {
    padding: 14px 13px;
    text-align: left;
    vertical-align: middle;
}

.accounts-masters-table__table th {
    border-bottom: 1px solid rgba(29, 43, 54, 0.09);
    background: #b52008;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
}

.accounts-masters-table__table th:nth-child(1),
.accounts-masters-table__table td:nth-child(1) { width: 22%; }
.accounts-masters-table__table th:nth-child(2),
.accounts-masters-table__table td:nth-child(2) { width: 13%; }
.accounts-masters-table__table th:nth-child(3),
.accounts-masters-table__table td:nth-child(3) { width: 20%; }
.accounts-masters-table__table th:nth-child(4),
.accounts-masters-table__table td:nth-child(4) { width: 16%; }
.accounts-masters-table__table th:nth-child(5),
.accounts-masters-table__table td:nth-child(5) { width: 16%; }
.accounts-masters-table__table th:nth-child(6),
.accounts-masters-table__table td:nth-child(6) { width: 13%; }

.accounts-masters-table__table td {
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    color: #1d2b36;
    font-size: 13px;
    line-height: 1.4;
}

.accounts-masters-table__row:last-child td {
    border-bottom: 0;
}

.accounts-masters-table__row {
    transition: background-color 170ms ease;
}

.accounts-masters-table__row:hover {
    background: #fbfcfc;
}

/* Просроченная подписка: выделяем всю строку магазина. */
.accounts-masters-table__row--subscription-expired,
.accounts-masters-table__row--subscription-expired:hover {
    background: rgba(181, 32, 8, 0.075);
}

.accounts-masters-table__row--subscription-expired td:first-child {
    box-shadow: inset 4px 0 0 #b52008;
}

.accounts-masters-table__date.accounts-masters-table__date--expired {
    color: #b52008;
    font-weight: 750;
}

.accounts-masters-table__shop-link,
.accounts-masters-table__email {
    color: #1d2b36;
    text-decoration: none;
    transition: color 160ms ease;
}

.accounts-masters-table__shop-link {
    display: inline-block;
    max-width: 100%;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.accounts-masters-table__shop-link:hover,
.accounts-masters-table__shop-link:focus-visible,
.accounts-masters-table__email:hover,
.accounts-masters-table__email:focus-visible {
    color: #b52008;
    outline: none;
}

.accounts-masters-table__login,
.accounts-masters-table__email,
.accounts-masters-table__date,
.accounts-masters-table__empty-value {
    color: rgba(29, 43, 54, 0.74);
    font-size: 12px;
    font-weight: 550;
}

.accounts-masters-table__email {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-masters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
}

.accounts-masters-toggle__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.accounts-masters-toggle__track {
    position: relative;
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    border: 1px solid rgba(29, 43, 54, 0.13);
    border-radius: 999px;
    background: #e9edef;
    box-shadow: inset 0 1px 2px rgba(29, 43, 54, 0.04);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.accounts-masters-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(29, 43, 54, 0.24);
    transition: transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accounts-masters-toggle.is-active .accounts-masters-toggle__track,
.accounts-masters-toggle__input:checked + .accounts-masters-toggle__track {
    border-color: #9c1b07;
    background: #b52008;
    box-shadow: 0 4px 10px rgba(181, 32, 8, 0.16);
}

.accounts-masters-toggle.is-active .accounts-masters-toggle__thumb,
.accounts-masters-toggle__input:checked + .accounts-masters-toggle__track .accounts-masters-toggle__thumb {
    transform: translateX(18px);
}

.accounts-masters-toggle__input:focus-visible + .accounts-masters-toggle__track {
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.12);
}

.accounts-masters-toggle.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.accounts-masters-toggle__state {
    color: rgba(29, 43, 54, 0.58);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}

.accounts-masters-toggle.is-active .accounts-masters-toggle__state {
    color: #8f1907;
}

.accounts-masters-table__loading {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 110px;
    background: rgba(255, 255, 255, 0.82);
    color: rgba(29, 43, 54, 0.72);
    font-size: 13px;
    font-weight: 650;
    backdrop-filter: blur(2px);
}

.accounts-masters-table__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(29, 43, 54, 0.13);
    border-top-color: #b52008;
    border-radius: 50%;
    animation: accounts-masters-spin 650ms linear infinite;
}

.accounts-masters-table__empty-row td {
    padding: 0;
}

.accounts-masters-table__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 30px 16px;
    text-align: center;
}

.accounts-masters-table__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 13px;
    background: #f0f3f4;
    color: #1d2b36;
}

.accounts-masters-table__empty-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-masters-table__empty-title {
    color: rgba(29, 43, 54, 0.64);
    font-size: 14px;
    font-weight: 700;
}

.accounts-masters-pagination-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}

.accounts-masters-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(29, 43, 54, 0.045);
}

.accounts-masters-pagination__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(29, 43, 54, 0.72);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.accounts-masters-pagination__button:hover:not(:disabled),
.accounts-masters-pagination__button:focus-visible:not(:disabled) {
    background: #f0f3f4;
    color: #1d2b36;
    outline: none;
    transform: translateY(-1px);
}

.accounts-masters-pagination__button.is-active {
    background: #b52008;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(181, 32, 8, 0.18);
}

.accounts-masters-pagination__button:disabled {
    opacity: 0.34;
    cursor: default;
}

.accounts-masters-pagination__button--arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-masters-pagination__dots {
    min-width: 22px;
    color: rgba(29, 43, 54, 0.42);
    text-align: center;
    font-weight: 700;
}

/* Редактор магазина */
.accounts-master-editor {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(29, 43, 54, 0.055);
}

.accounts-master-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    background: #fbfcfc;
}

.accounts-master-editor__back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 10px;
    background: #ffffff;
    color: #1d2b36;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.accounts-master-editor__back:hover,
.accounts-master-editor__back:focus-visible {
    border-color: rgba(29, 43, 54, 0.22);
    background: #f3f5f6;
    outline: none;
    transform: translateX(-1px);
}

.accounts-master-editor__back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-master-editor__heading {
    min-width: 0;
    text-align: right;
}

.accounts-master-editor__title {
    margin: 0;
    color: #1d2b36;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.accounts-master-editor__login {
    display: inline-block;
    margin-top: 3px;
    color: rgba(29, 43, 54, 0.5);
    font-size: 12px;
    font-weight: 600;
}

.accounts-master-editor__form {
    padding: 18px;
}

.accounts-master-editor__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* На десктопе медиа находятся в первой колонке, а настройки подписки —
 * в независимой правой колонке. Так высота блоков загрузки слева не
 * создаёт большие вертикальные отступы между полями справа. */
.accounts-master-edit-field--first-name { grid-column: 1; grid-row: 1; }
.accounts-master-edit-field--last-name { grid-column: 2; grid-row: 1; }
.accounts-master-edit-field--email { grid-column: 1; grid-row: 2; }
.accounts-master-edit-field--shop-name { grid-column: 2; grid-row: 2; }
.accounts-master-edit-field--media-logo { grid-column: 1; grid-row: 3; }
.accounts-master-edit-field--media-banner { grid-column: 1; grid-row: 4; }
.accounts-master-edit-subscription-column {
    grid-column: 2;
    grid-row: 3 / span 2;
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 16px;
    min-width: 0;
}

.accounts-master-edit-field--media .accounts-store-field {
    width: 100%;
}

.accounts-master-edit-field--media .accounts-store-upload__preview {
    margin-right: auto;
}

.accounts-master-edit-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.accounts-master-edit-field__label {
    display: block;
    margin-bottom: 7px;
    color: #1d2b36;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.accounts-master-edit-field__label span {
    color: #b52008;
}

.accounts-master-edit-field__input,
.accounts-master-edit-field__readonly {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 11px;
    background: #ffffff;
    color: #1d2b36;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
}

.accounts-master-edit-field__input {
    outline: none;
    transition: border-color 170ms ease, box-shadow 170ms ease;
}

.accounts-master-edit-field__input:focus {
    border-color: rgba(181, 32, 8, 0.5);
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.07);
}

.accounts-master-edit-field__readonly {
    background: #f4f6f7;
    color: rgba(29, 43, 54, 0.62);
}

.accounts-master-edit-field--toggle {
    justify-content: flex-start;
}

.accounts-masters-toggle--editor {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 11px;
    background: #f8f9fa;
}

.accounts-master-edit-field--media {
    min-width: 0;
}

.accounts-master-edit-field--media .accounts-store-field__hint {
    margin-top: 7px;
}

.accounts-master-edit-field--media .accounts-store-upload__dropzone {
    min-height: 112px;
}

.accounts-master-edit-upload {
    height: 100%;
    padding: 13px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 13px;
    background: #fafbfb;
}

.accounts-master-edit-upload__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.accounts-master-edit-upload__top .accounts-master-edit-field__label {
    margin: 0;
}

.accounts-master-edit-upload__formats {
    color: rgba(29, 43, 54, 0.42);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}

.accounts-master-edit-upload__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 145px;
    padding: 10px;
    overflow: hidden;
    border: 1px dashed rgba(29, 43, 54, 0.16);
    border-radius: 11px;
    background: #ffffff;
}

.accounts-master-edit-upload__preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    border-radius: 8px;
}

.accounts-master-edit-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: rgba(29, 43, 54, 0.48);
    font-size: 11px;
    font-weight: 650;
    text-align: center;
}

.accounts-master-edit-upload__placeholder svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-master-edit-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.accounts-master-edit-upload__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 9px;
    background: #ffffff;
    color: #1d2b36;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.accounts-master-edit-upload__button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.accounts-master-edit-upload__button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-master-edit-upload__button--choose:hover,
.accounts-master-edit-upload__button--choose:focus-within {
    border-color: rgba(181, 32, 8, 0.28);
    color: #b52008;
}

.accounts-master-edit-upload__button--remove {
    border-color: rgba(181, 32, 8, 0.12);
    background: rgba(181, 32, 8, 0.05);
    color: #9f1c07;
}

.accounts-master-editor__message {
    min-height: 0;
    margin-top: 14px;
    color: #a52b1c;
    font-size: 12px;
    font-weight: 650;
}

.accounts-master-editor__message:empty {
    display: none;
}

.accounts-master-editor__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(29, 43, 54, 0.07);
}

.accounts-master-editor__save {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px 9px 10px;
    border: 1px solid #8f1907;
    border-radius: 11px;
    background: #b52008;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(181, 32, 8, 0.18);
    transition: background-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.accounts-master-editor__save:hover,
.accounts-master-editor__save:focus-visible {
    background: #9f1c07;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(181, 32, 8, 0.23);
}

.accounts-master-editor__save:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.accounts-master-editor__save-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.13);
}

.accounts-master-editor__save-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-masters-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 30px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
}

.accounts-masters-denied__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(181, 32, 8, 0.08);
    color: #b52008;
}

.accounts-masters-denied__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.accounts-masters-denied h2 {
    margin: 12px 0 4px;
    font-size: 20px;
}

.accounts-masters-denied p {
    margin: 0;
    color: rgba(29, 43, 54, 0.58);
    font-size: 13px;
}

@media (max-width: 1035px) {
    .accounts-masters-table {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .accounts-masters-table__scroll {
        width: 100%;
        overflow: visible;
    }

    /*
     * На десктопе ширина каждой колонки задана через nth-child.
     * В карточном режиме эти правила обязательно переопределяем,
     * иначе ячейки сохраняют 13–22% ширины и браузер растягивает строки по высоте.
     */
    .accounts-masters-table__table,
    .accounts-masters-table__table tbody {
        display: block;
        width: 100% !important;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
    }

    .accounts-masters-table__table tr,
    .accounts-masters-table__table td,
    .accounts-masters-table__table td:nth-child(n) {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .accounts-masters-table__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .accounts-masters-table__row {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px;
        overflow: hidden;
        border: 1px solid rgba(29, 43, 54, 0.10);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 24px rgba(29, 43, 54, 0.055);
        transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
    }

    .accounts-masters-table__row:hover {
        background: #ffffff;
        border-color: rgba(181, 32, 8, 0.16);
        box-shadow: 0 10px 28px rgba(29, 43, 54, 0.075);
    }

    .accounts-masters-table__row--subscription-expired,
    .accounts-masters-table__row--subscription-expired:hover {
        border-color: rgba(181, 32, 8, 0.24);
        background: #fff7f5;
        box-shadow: 0 8px 24px rgba(181, 32, 8, 0.08);
    }

    .accounts-masters-table__row--subscription-expired td,
    .accounts-masters-table__row--subscription-expired td:nth-child(n) {
        background: #fff7f5;
    }

    .accounts-masters-table__row--subscription-expired td:first-child {
        background: linear-gradient(180deg, #fff4f1 0%, #fff8f6 100%);
        box-shadow: inset 4px 0 0 #b52008;
    }

    .accounts-masters-table__row td,
    .accounts-masters-table__row td:nth-child(n) {
        display: grid !important;
        grid-template-columns: minmax(122px, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 0;
        padding: 11px 13px;
        border: 0;
        border-bottom: 1px solid rgba(29, 43, 54, 0.07);
        background: #ffffff;
        text-align: left;
        vertical-align: middle;
    }

    .accounts-masters-table__row td:first-child {
        padding-top: 13px;
        padding-bottom: 13px;
        background: linear-gradient(180deg, #fbfcfc 0%, #f8fafb 100%);
    }

    .accounts-masters-table__row td::before {
        content: attr(data-label);
        display: block;
        min-width: 0;
        color: rgba(29, 43, 54, 0.56);
        font-size: 11px;
        font-weight: 750;
        line-height: 1.3;
        letter-spacing: 0.01em;
    }

    .accounts-masters-table__row td:last-child {
        border-bottom: 0;
    }

    .accounts-masters-table__shop-link,
    .accounts-masters-table__login,
    .accounts-masters-table__email,
    .accounts-masters-table__date,
    .accounts-masters-table__empty-value {
        min-width: 0;
        max-width: 100%;
        justify-self: start;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .accounts-masters-table__shop-link {
        color: #b52008;
        font-size: 14px;
        font-weight: 780;
    }

    .accounts-masters-table__email {
        color: rgba(29, 43, 54, 0.78);
    }

    .accounts-masters-toggle {
        justify-self: start;
        min-width: 0;
    }

    .accounts-masters-table__empty-row {
        display: block !important;
        width: 100% !important;
        overflow: hidden;
        border: 1px solid rgba(29, 43, 54, 0.08);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 8px 22px rgba(29, 43, 54, 0.05);
    }

    .accounts-masters-table__empty-row td,
    .accounts-masters-table__empty-row td:nth-child(n) {
        display: block !important;
        width: 100% !important;
        padding: 0;
        border: 0;
    }

    .accounts-master-editor__grid {
        grid-template-columns: 1fr;
    }

    .accounts-master-edit-field--first-name,
    .accounts-master-edit-field--last-name,
    .accounts-master-edit-field--email,
    .accounts-master-edit-field--shop-name,
    .accounts-master-edit-subscription-column,
    .accounts-master-edit-field--media-logo,
    .accounts-master-edit-field--media-banner {
        grid-column: 1;
        grid-row: auto;
    }

    .accounts-master-edit-field--media .accounts-store-upload__preview {
        width: 100%;
        max-width: 360px;
    }

    .accounts-master-edit-upload__preview {
        min-height: 130px;
    }
}

@media (max-width: 620px) {
    .accounts-masters {
        padding: 5px;
    }

    .accounts-masters-search {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
        margin-bottom: 8px;
        padding: 12px;
        border-radius: 14px;
    }

    .accounts-masters-search__heading {
        grid-column: 1;
        grid-row: 1;
        gap: 9px;
    }

    .accounts-masters-search__field-wrap {
        grid-column: 1;
        grid-row: 2;
    }

    .accounts-masters-search__stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        justify-self: stretch;
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        margin: 0;
        padding: 10px 11px;
        white-space: normal;
    }

    .accounts-masters-search__stats-separator {
        display: none;
    }

    .accounts-masters-search__stats-item {
        justify-content: center;
    }

    .accounts-masters-search__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .accounts-masters-search__title {
        font-size: 16px;
    }

    .accounts-masters-search__description {
        font-size: 11px;
    }

    .accounts-masters-search__field {
        min-height: 44px;
        padding-left: 40px;
        font-size: 13px;
    }

    .accounts-masters-table__row {
        margin-bottom: 8px;
        border-radius: 14px;
    }

    .accounts-masters-table__row td,
    .accounts-masters-table__row td:nth-child(n) {
        grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 11px;
    }

    .accounts-masters-table__row td:first-child {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .accounts-masters-table__row td::before {
        font-size: 11px;
    }

    .accounts-masters-table__shop-link {
        font-size: 13px;
    }

    .accounts-masters-toggle__state {
        display: none;
    }

    .accounts-masters-pagination {
        gap: 2px;
        padding: 4px;
    }

    .accounts-masters-pagination__button {
        min-width: 31px;
        height: 31px;
        padding: 0 6px;
    }

    .accounts-master-editor {
        border-radius: 14px;
    }

    .accounts-master-editor__header {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 10px;
        padding: 13px;
    }

    .accounts-master-editor__heading {
        width: 100%;
        text-align: left;
    }

    .accounts-master-editor__title {
        font-size: 18px;
    }

    .accounts-master-editor__form {
        padding: 12px;
    }

    .accounts-master-editor__grid {
        gap: 12px;
    }

    .accounts-master-edit-subscription-column {
        gap: 12px;
    }

    .accounts-master-edit-upload__top {
        flex-direction: column;
        gap: 3px;
    }

    .accounts-master-edit-upload__formats {
        text-align: left;
    }

    .accounts-master-edit-upload__actions,
    .accounts-master-edit-upload__button,
    .accounts-master-editor__save {
        width: 100%;
    }

    .accounts-master-editor__actions {
        margin-top: 14px;
        padding-top: 12px;
    }
}

/* Роль пользователя в редакторе раздела «Наши мастера». */
.accounts-master-edit-field--user-role .accounts-master-edit-field__label {
    font-size: 14px;
}

.accounts-master-edit-field__select-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.accounts-master-edit-field__select {
    min-height: 46px;
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: #ffffff;
}

.accounts-master-edit-field__select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid rgba(29, 43, 54, 0.58);
    border-bottom: 2px solid rgba(29, 43, 54, 0.58);
    transform: rotate(45deg);
    pointer-events: none;
    transition: border-color 170ms ease, transform 170ms ease;
}

.accounts-master-edit-field__select-wrap:focus-within .accounts-master-edit-field__select-arrow {
    border-color: #b52008;
}

/* =========================================================
 * ДОБАВЛЕНИЕ НОВОГО ТОВАРА
 * ========================================================= */
.accounts-products [hidden] {
    display: none !important;
}

.accounts-product-create,
.accounts-product-create * {
    box-sizing: border-box;
}

.accounts-product-create {
    width: 100%;
    color: #1d2b36;
    font-size: 14px;
    line-height: 1.45;
}

html.accounts-product-edit-preloader-open,
body.accounts-product-edit-preloader-open {
    overflow: hidden;
}

.accounts-product-edit-preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 21, 27, 0.58);
    backdrop-filter: blur(3px);
}

.accounts-product-edit-preloader__card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(520px, 100%);
    min-height: 84px;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: #ffffff;
    color: #1d2b36;
    box-shadow: 0 18px 55px rgba(8, 15, 20, 0.22);
}

.accounts-product-edit-preloader__spinner {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(181, 32, 8, 0.16);
    border-top-color: #b52008;
    border-radius: 50%;
    animation: accounts-products-spin 700ms linear infinite;
}

.accounts-product-edit-preloader__content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.accounts-product-edit-preloader__text {
    color: rgba(29, 43, 54, 0.68);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.accounts-product-edit-preloader__name {
    overflow-wrap: anywhere;
    color: #1d2b36;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.accounts-product-create button,
.accounts-product-create input,
.accounts-product-create select,
.accounts-product-create textarea {
    font-family: inherit;
    font-size: 14px;
}

.accounts-product-create__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.accounts-product-create__title {
    margin: 0;
    color: #1d2b36;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.accounts-product-create__back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 13px 8px 10px;
    border: 1px solid rgba(29, 43, 54, 0.12);
    border-radius: 11px;
    background: #ffffff;
    color: #1d2b36;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(29, 43, 54, 0.04);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.accounts-product-create__back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-product-create__back:hover,
.accounts-product-create__back:focus-visible {
    border-color: rgba(29, 43, 54, 0.25);
    background: #f7f9f9;
    outline: none;
    box-shadow: 0 7px 18px rgba(29, 43, 54, 0.07);
    transform: translateY(-1px);
}

.accounts-product-create__back:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.accounts-product-form__columns {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(240px, 1fr);
    gap: 12px;
    align-items: start;
}

.accounts-product-form__main,
.accounts-product-form__sidebar {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.accounts-product-form__sidebar {
    position: sticky;
    top: 12px;
}

.accounts-product-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(29, 43, 54, 0.045);
}

.accounts-product-section-heading {
    margin-bottom: 11px;
}

.accounts-product-section-heading h3,
.accounts-product-attribute h4 {
    margin: 0;
    color: #1d2b36;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.accounts-product-section-heading p {
    margin: 4px 0 0;
    color: rgba(29, 43, 54, 0.62);
    font-size: 14px;
    line-height: 1.45;
}

.accounts-product-required {
    color: #b52008;
}

.accounts-product-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.accounts-product-field--wide {
    grid-column: 1 / -1;
}

.accounts-product-field {
    min-width: 0;
}

.accounts-product-field__label {
    display: block;
    margin-bottom: 6px;
    color: #263741;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.accounts-product-field__control {
    appearance: none;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(29, 43, 54, 0.14);
    border-radius: 10px;
    background: #ffffff;
    color: #1d2b36;
    font-weight: 550;
    line-height: 1.35;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select.accounts-product-field__control {
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, #65737d 50%), linear-gradient(135deg, #65737d 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.accounts-product-field__control::placeholder {
    color: rgba(29, 43, 54, 0.42);
    opacity: 1;
}

textarea.accounts-product-field__control {
    display: block;
    resize: vertical;
}

.accounts-product-moderation-comment {
    margin-top: 12px;
}

.accounts-product-moderation-comment[hidden] {
    display: none !important;
}

.accounts-product-field__control:hover {
    border-color: rgba(29, 43, 54, 0.25);
}

.accounts-product-field__control:focus {
    border-color: #1d2b36;
    box-shadow: 0 0 0 3px rgba(29, 43, 54, 0.07);
}

.accounts-product-field.has-error .accounts-product-field__control,
.accounts-product-field.has-forbidden-error .accounts-product-field__control,
.accounts-product-editor.has-error .wp-editor-wrap,
.accounts-product-editor.has-forbidden-error .wp-editor-wrap {
    border-color: #b52008;
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.07);
}

.accounts-product-field__error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: #a51f0a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.accounts-product-field__error:empty {
    display: none;
}

.accounts-product-editor .wp-editor-wrap {
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.13);
    border-radius: 11px;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.accounts-product-editor .wp-editor-container {
    border: 0;
}

.accounts-product-editor .wp-editor-tools {
    display: none !important;
}

.accounts-product-editor textarea.wp-editor-area {
    min-height: 290px;
    padding: 12px;
    color: #1d2b36;
    font-size: 14px !important;
    line-height: 1.6;
}

.accounts-product-editor .mce-edit-area iframe {
    height: 290px !important;
    min-height: 290px !important;
}

.accounts-product-editor .mce-toolbar-grp .mce-toolbar {
    display: block !important;
}

.accounts-product-editor .mce-toolbar-grp,
.accounts-product-editor .quicktags-toolbar {
    border-color: rgba(29, 43, 54, 0.08);
    background: #f7f9f9;
}

.accounts-product-taxonomy-tree,
.accounts-product-tags-list {
    max-height: 300px;
    overflow: auto;
    padding: 3px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 11px;
    background: #fbfcfc;
    scrollbar-width: thin;
}

.accounts-product-card.has-error .accounts-product-taxonomy-tree {
    border-color: #b52008;
    box-shadow: 0 0 0 3px rgba(181, 32, 8, 0.07);
}

.accounts-product-taxonomy-tree__level {
    display: grid;
    gap: 2px;
}

.accounts-product-taxonomy-tree__children {
    padding-left: 22px;
}

.accounts-product-taxonomy-tree__row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
}

.accounts-product-taxonomy-tree__toggle,
.accounts-product-taxonomy-tree__toggle-placeholder {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}

.accounts-product-taxonomy-tree__toggle {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #edf1f2;
    color: #1d2b36;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.accounts-product-taxonomy-tree__toggle:hover,
.accounts-product-taxonomy-tree__toggle:focus-visible {
    background: #e1e7e9;
    outline: none;
}

.accounts-product-taxonomy-tree__toggle span::before,
.accounts-product-taxonomy-tree__toggle span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.accounts-product-taxonomy-tree__toggle span::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 160ms ease, opacity 160ms ease;
}

.accounts-product-taxonomy-tree__toggle.is-open span::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.accounts-product-check-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #2b3b45;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.accounts-product-check-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.accounts-product-check-row__box {
    position: relative;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(29, 43, 54, 0.23);
    border-radius: 5px;
    background: #ffffff;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.accounts-product-check-row input:focus-visible + .accounts-product-check-row__box {
    box-shadow: 0 0 0 3px rgba(29, 43, 54, 0.1);
}

.accounts-product-check-row input:checked + .accounts-product-check-row__box {
    border-color: #b52008;
    background: #b52008;
}

.accounts-product-check-row input:checked + .accounts-product-check-row__box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.accounts-product-check-row__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.accounts-product-check-row--category {
    flex: 1 1 auto;
    min-height: 32px;
}

.accounts-product-tags-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 8px;
}

.accounts-product-tags-list .accounts-product-check-row {
    min-height: 32px;
}

.accounts-product-attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.accounts-product-attribute {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 12px;
    background: #fafbfb;
}

.accounts-product-attribute h4 {
    margin-bottom: 9px;
    font-size: 15px;
}

.accounts-product-attribute__rows {
    display: grid;
    gap: 7px;
}

.accounts-product-attribute__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
}

.accounts-product-attribute__rows:not(:empty) + .accounts-product-secondary-button {
    margin-top: 8px;
}

.accounts-product-secondary-button,
.accounts-product-primary-small,
.accounts-product-remove-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.accounts-product-secondary-button {
    border: 1px solid rgba(29, 43, 54, 0.14);
    background: #ffffff;
    color: #1d2b36;
}

.accounts-product-secondary-button:hover,
.accounts-product-secondary-button:focus-visible {
    border-color: rgba(29, 43, 54, 0.3);
    background: #f3f6f6;
    outline: none;
}

.accounts-product-primary-small {
    border: 1px solid #8f1907;
    background: #b52008;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(181, 32, 8, 0.16);
}

.accounts-product-primary-small:hover,
.accounts-product-primary-small:focus-visible {
    border-color: #781506;
    background: #991b07;
    outline: none;
}

.accounts-product-remove-button {
    border: 1px solid rgba(181, 32, 8, 0.16);
    background: #fff7f5;
    color: #9f1c07;
}

.accounts-product-remove-button:hover,
.accounts-product-remove-button:focus-visible {
    border-color: rgba(181, 32, 8, 0.35);
    background: #ffefeb;
    outline: none;
}

.accounts-product-secondary-button:disabled,
.accounts-product-primary-small:disabled,
.accounts-product-remove-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.accounts-product-empty-note {
    color: rgba(29, 43, 54, 0.58);
    font-size: 14px;
    line-height: 1.45;
}

.accounts-product-gallery-card {
    padding: 12px;
}

.accounts-product-gallery__input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.accounts-product-gallery {
    position: relative;
    min-height: 176px;
    padding: 8px;
    border: 1px dashed rgba(29, 43, 54, 0.2);
    border-radius: 12px;
    background: #f9fbfb;
}

.accounts-product-gallery-card.has-error .accounts-product-gallery {
    border-color: #c92f1a;
    box-shadow: 0 0 0 2px rgba(201, 47, 26, 0.09);
}

.accounts-product-gallery__empty {
    display: flex;
    min-height: 158px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(29, 43, 54, 0.58);
    font-size: 14px;
    text-align: center;
}

.accounts-product-gallery__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #edf2f3;
    color: #52616b;
}

.accounts-product-gallery__empty-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-product-gallery__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.accounts-product-gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 10px;
    background: #edf1f2;
}

.accounts-product-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-product-gallery__remove {
    appearance: none;
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(25, 35, 42, 0.82);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.accounts-product-gallery__remove svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.accounts-product-gallery__remove:hover,
.accounts-product-gallery__remove:focus-visible {
    background: #b52008;
    outline: none;
}

.accounts-product-gallery__add-more {
    width: 100%;
    margin-top: 8px;
}

.accounts-product-gallery__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #1d2b36;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(2px);
}

.accounts-product-gallery__hint {
    margin: 8px 0 0;
    color: rgba(29, 43, 54, 0.58);
    font-size: 14px;
    line-height: 1.4;
}

.accounts-product-form__notice,
.accounts-product-form__status {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

.accounts-product-form__notice {
    margin-top: 8px;
}

.accounts-product-form__notice.is-success,
.accounts-product-form__status.is-success {
    border: 1px solid #ccebd8;
    background: #eaf8ef;
    color: #18723d;
}

.accounts-product-form__notice.is-error,
.accounts-product-form__status.is-error {
    border: 1px solid #f0cdca;
    background: #fff0ee;
    color: #9f2417;
}

.accounts-product-sidebar-settings {
    display: grid;
    gap: 12px;
}

.accounts-product-check-row--adult {
    font-weight: 800;
}

.accounts-product-sidebar-settings__help {
    margin: -7px 0 0;
    color: rgba(29, 43, 54, 0.6);
    font-size: 14px;
    line-height: 1.4;
}

.accounts-product-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(29, 43, 54, 0.09);
}

.accounts-product-form__status {
    flex: 1 1 auto;
    min-width: 0;
}

.accounts-product-form__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.accounts-product-submit {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.accounts-product-submit--primary {
    border: 1px solid #8f1907;
    background: #b52008;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(181, 32, 8, 0.16);
}

.accounts-product-submit--secondary {
    border: 1px solid rgba(29, 43, 54, 0.16);
    background: #ffffff;
    color: #1d2b36;
}

.accounts-product-submit:hover:not(:disabled),
.accounts-product-submit:focus-visible:not(:disabled) {
    outline: none;
    transform: translateY(-1px);
}

.accounts-product-submit--primary:hover:not(:disabled),
.accounts-product-submit--primary:focus-visible:not(:disabled) {
    border-color: #781506;
    background: #991b07;
    box-shadow: 0 9px 22px rgba(181, 32, 8, 0.22);
}

.accounts-product-submit--secondary:hover:not(:disabled),
.accounts-product-submit--secondary:focus-visible:not(:disabled) {
    border-color: rgba(29, 43, 54, 0.3);
    background: #f5f7f8;
}

.accounts-product-submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.accounts-product-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: accounts-products-spin 700ms linear infinite;
}

.accounts-product-submit.is-loading .accounts-product-submit__spinner {
    display: inline-block;
}

@media (max-width: 1180px) and (min-width: 1036px) {
    .accounts-product-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-product-attributes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1035px) {
    .accounts-product-create__header {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-product-create__title {
        width: 100%;
        font-size: 20px;
        text-align: center;
    }

    .accounts-product-create__back {
        width: 100%;
        align-self: stretch;
    }

    .accounts-product-form__columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .accounts-product-form__main,
    .accounts-product-form__sidebar {
        gap: 10px;
    }

    .accounts-product-form__sidebar {
        position: static;
    }

    .accounts-product-fields-grid,
    .accounts-product-attributes {
        grid-template-columns: 1fr;
    }

    .accounts-product-field--wide {
        grid-column: auto;
    }

    .accounts-product-tags-list {
        grid-template-columns: 1fr;
    }

    .accounts-product-gallery__items {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .accounts-product-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-product-form__actions {
        width: 100%;
        margin-left: 0;
    }

    .accounts-product-submit {
        flex: 1 1 220px;
    }
}

@media (max-width: 620px) {
    .accounts-product-edit-preloader {
        padding: 14px;
    }

    .accounts-product-edit-preloader__card {
        align-items: flex-start;
        gap: 11px;
        min-height: 76px;
        padding: 15px;
        border-radius: 12px;
    }

    .accounts-product-edit-preloader__spinner {
        width: 30px;
        height: 30px;
    }

    .accounts-product-edit-preloader__name {
        font-size: 15px;
    }

    .accounts-product-create__header {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-product-create__back {
        width: 100%;
        align-self: stretch;
    }

    .accounts-product-card {
        padding: 12px;
        border-radius: 13px;
    }

    .accounts-product-attribute__row {
        grid-template-columns: 1fr;
    }

    .accounts-product-remove-button {
        width: 100%;
    }

    .accounts-product-form__actions {
        flex-direction: column;
    }

    .accounts-product-submit {
        flex-basis: auto;
        width: 100%;
    }
}

/* =========================================================
 * Галерея добавления товара: сортировка, просмотр и поворот
 * ========================================================= */
.accounts-product-gallery__item {
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.accounts-product-gallery__item:active {
    cursor: grabbing;
}

.accounts-product-gallery__item.is-dragging {
    z-index: 4;
    opacity: 0.7;
    transform: scale(0.97);
    box-shadow: 0 10px 26px rgba(29, 43, 54, 0.22);
    cursor: grabbing;
}

.accounts-product-gallery__item img {
    cursor: zoom-in;
    -webkit-user-drag: none;
    user-select: none;
}

.accounts-product-gallery__remove {
    border-color: rgba(217, 45, 32, 0.32);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #d92d20;
    box-shadow: 0 2px 8px rgba(29, 43, 54, 0.15);
}

.accounts-product-gallery__remove:hover,
.accounts-product-gallery__remove:focus-visible {
    border-color: #d92d20;
    background: #d92d20;
    color: #ffffff;
}

.accounts-product-gallery-dragging,
.accounts-product-gallery-dragging body {
    cursor: grabbing !important;
    user-select: none !important;
}

.accounts-product-gallery-viewer[hidden] {
    display: none !important;
}

.accounts-product-gallery-viewer-open {
    overflow: hidden !important;
}

.accounts-product-gallery-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 16, 20, 0.88);
    backdrop-filter: blur(7px);
}

.accounts-product-gallery-viewer__panel {
    position: relative;
    display: flex;
    width: min(960px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #141c21;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.accounts-product-gallery-viewer__stage {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px 70px;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.055), transparent 62%),
        #0f161a;
}

.accounts-product-gallery-viewer__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
    transition: opacity 0.16s ease;
}

.accounts-product-gallery-viewer__toolbar {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 16px;
    flex: 0 0 78px;
    min-height: 78px;
    padding: 11px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1d272d;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.accounts-product-gallery-viewer__counter {
    position: static;
    min-width: 76px;
    justify-self: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(8, 13, 16, 0.36);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

.accounts-product-gallery-viewer__close,
.accounts-product-gallery-viewer__nav,
.accounts-product-gallery-viewer__rotate {
    appearance: none;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
}

.accounts-product-gallery-viewer__close:hover,
.accounts-product-gallery-viewer__close:focus-visible,
.accounts-product-gallery-viewer__nav:hover,
.accounts-product-gallery-viewer__nav:focus-visible,
.accounts-product-gallery-viewer__rotate:hover,
.accounts-product-gallery-viewer__rotate:focus-visible {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.accounts-product-gallery-viewer__close:disabled,
.accounts-product-gallery-viewer__nav:disabled,
.accounts-product-gallery-viewer__rotate:disabled {
    opacity: 0.42;
    cursor: wait;
}

.accounts-product-gallery-viewer__close svg,
.accounts-product-gallery-viewer__nav svg,
.accounts-product-gallery-viewer__rotate svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-product-gallery-viewer__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    background: rgba(8, 13, 16, 0.56);
}

.accounts-product-gallery-viewer__nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    background: rgba(8, 13, 16, 0.58);
}

.accounts-product-gallery-viewer__nav:hover,
.accounts-product-gallery-viewer__nav:focus-visible {
    transform: translateY(-50%) scale(1.04);
}

.accounts-product-gallery-viewer__nav--prev {
    left: 14px;
}

.accounts-product-gallery-viewer__nav--next {
    right: 14px;
}

.accounts-product-gallery-viewer__rotate {
    position: static;
    width: 52px;
    height: 52px;
    justify-self: center;
    background: rgba(255, 255, 255, 0.11);
}

.accounts-product-gallery-viewer__rotate:hover,
.accounts-product-gallery-viewer__rotate:focus-visible {
    transform: scale(1.05);
}

.accounts-product-gallery-viewer__rotate--left {
    justify-self: start;
}

.accounts-product-gallery-viewer__rotate--right {
    justify-self: end;
}

.accounts-product-gallery-viewer.is-busy::after {
    content: '';
    position: absolute;
    top: calc(50% - 39px);
    left: 50%;
    z-index: 7;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: accounts-products-spin 0.75s linear infinite;
    pointer-events: none;
}

.accounts-product-gallery-viewer.is-busy .accounts-product-gallery-viewer__image {
    opacity: 0.55;
}

@media (max-width: 1035px) {
    .accounts-product-gallery-viewer {
        padding: 16px;
    }

    .accounts-product-gallery-viewer__panel {
        width: min(820px, calc(100vw - 32px));
        height: min(760px, calc(100vh - 32px));
    }

    .accounts-product-gallery-viewer__stage {
        padding: 20px 58px;
    }

    .accounts-product-gallery-viewer__toolbar {
        flex-basis: 72px;
        min-height: 72px;
        padding: 9px 14px;
    }

    .accounts-product-gallery-viewer__close {
        top: 10px;
        right: 10px;
    }

    .accounts-product-gallery-viewer__nav {
        width: 42px;
        height: 42px;
    }

    .accounts-product-gallery-viewer__nav--prev {
        left: 10px;
    }

    .accounts-product-gallery-viewer__nav--next {
        right: 10px;
    }

    .accounts-product-gallery-viewer__rotate {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 620px) {
    .accounts-product-gallery-viewer {
        padding: 8px;
    }

    .accounts-product-gallery-viewer__panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        border-radius: 9px;
    }

    .accounts-product-gallery-viewer__stage {
        padding: 52px 46px 18px;
    }

    .accounts-product-gallery-viewer__toolbar {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 10px;
        flex-basis: 68px;
        min-height: 68px;
        padding: 8px 10px;
    }

    .accounts-product-gallery-viewer__counter {
        min-width: 66px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .accounts-product-gallery-viewer__nav {
        width: 38px;
        height: 38px;
    }

    .accounts-product-gallery-viewer__nav--prev {
        left: 6px;
    }

    .accounts-product-gallery-viewer__nav--next {
        right: 6px;
    }

    .accounts-product-gallery-viewer__rotate {
        width: 46px;
        height: 46px;
    }

    .accounts-product-gallery-viewer__nav svg,
    .accounts-product-gallery-viewer__rotate svg,
    .accounts-product-gallery-viewer__close svg {
        width: 20px;
        height: 20px;
    }
}


/* =========================================================
 * ВИДЕО ТОВАРА В ФОРМЕ ДОБАВЛЕНИЯ / РЕДАКТИРОВАНИЯ
 * ========================================================= */
.accounts-product-video__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounts-product-video__item {
    background: #11191e;
    cursor: pointer;
    outline: none;
}

.accounts-product-video__item:focus-visible {
    box-shadow: 0 0 0 3px rgba(198, 34, 18, 0.2);
}

.accounts-product-video__item img {
    opacity: 0.92;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.accounts-product-video__item:hover img,
.accounts-product-video__item:focus-visible img {
    opacity: 1;
    transform: scale(1.025);
}

.accounts-product-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    background: rgba(10, 16, 20, 0.72);
    color: #ffffff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.accounts-product-video__play svg {
    width: 25px;
    height: 25px;
    margin-left: 2px;
    fill: currentColor;
    stroke: none;
}

.accounts-product-video__progress {
    width: min(240px, 82%);
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 43, 54, 0.12);
}

.accounts-product-video__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c62212;
    transition: width 0.16s linear;
}

.accounts-product-video-viewer__stage {
    padding-top: 54px;
    padding-bottom: 30px;
}

.accounts-product-video-viewer__video {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 7px;
    background: #000000;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
}

.accounts-product-video-viewer__toolbar {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
}

@media (max-width: 620px) {
    .accounts-product-video__play {
        width: 42px;
        height: 42px;
    }

    .accounts-product-video__play svg {
        width: 22px;
        height: 22px;
    }

    .accounts-product-video-viewer__stage {
        padding: 54px 42px 18px;
    }
}

/* =========================================================
 * ОТЗЫВЫ
 * ========================================================= */
.accounts-reviews {
    --reviews-accent: #c62212;
    --reviews-text: #2e251f;
    --reviews-muted: #756a63;
    --reviews-border: #eadfd8;
    width: 100%;
    min-height: 100%;
    padding: 22px 24px 32px;
    box-sizing: border-box;
    color: var(--reviews-text);
    background: #fffdfb;
}

.accounts-reviews-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 18px;
    margin: -4px 0 10px;
    opacity: 1;
    transition: opacity 180ms ease, max-height 180ms ease, margin 180ms ease;
}

.accounts-reviews-progress.is-complete {
    max-height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.accounts-reviews-progress__track {
    flex: 1 1 auto;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #f1e8e2;
}

.accounts-reviews-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--reviews-accent);
    transition: width 100ms ease;
}

.accounts-reviews-progress__value {
    flex: 0 0 36px;
    color: var(--reviews-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.accounts-reviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.accounts-reviews__title {
    margin: 0;
    color: var(--reviews-text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.1;
}

.accounts-reviews__subtitle {
    margin: 6px 0 0;
    color: var(--reviews-muted);
    font-size: 14px;
    line-height: 1.45;
}

.accounts-reviews-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 720px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid var(--reviews-border);
    border-radius: 14px;
    background: #f8f3ef;
}

.accounts-reviews-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    color: #665a53;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.accounts-reviews-tab:hover,
.accounts-reviews-tab:focus-visible {
    color: var(--reviews-text);
    outline: none;
}

.accounts-reviews-tab.is-active {
    color: #fff;
    background: var(--reviews-accent);
    box-shadow: 0 6px 16px rgba(198, 34, 18, 0.16);
}

.accounts-reviews-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    color: inherit;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    line-height: 1;
}

.accounts-reviews-panel[hidden] {
    display: none !important;
}

.accounts-reviews-list {
    display: grid;
    gap: 10px;
    max-width: 1180px;
}

.accounts-review-card {
    position: relative;
    padding: 16px;
    border: 1px solid var(--reviews-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(49, 34, 25, 0.045);
    content-visibility: auto;
    contain-intrinsic-size: 240px;
}

.accounts-review-card--pending {
    border-color: #efc67b;
    background: linear-gradient(180deg, #fffdf7 0%, #fff 42%);
    box-shadow: 0 8px 26px rgba(161, 105, 21, 0.07);
}

.accounts-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.accounts-review-card__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.accounts-review-card__avatar {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #fff;
    background: #372c26;
    font-size: 17px;
    font-weight: 800;
    overflow: hidden;
}

.accounts-review-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-review-card__who {
    min-width: 0;
}

.accounts-review-card__author {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--reviews-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.accounts-review-card__login {
    color: var(--reviews-muted);
    font-size: 12px;
    font-weight: 650;
}

.accounts-review-card__store {
    margin-top: 3px;
    color: var(--reviews-muted);
    font-size: 12px;
    line-height: 1.35;
}

.accounts-review-card__rating {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #6e625a;
    font-size: 12px;
}

.accounts-review-card__stars {
    position: relative;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 1px;
}

.accounts-review-card__stars-empty {
    color: #d5cbc4;
}

.accounts-review-card__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 0;
    color: #d99a12;
    white-space: nowrap;
}

.accounts-review-card__status-row {
    margin-top: 10px;
}

.accounts-review-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.accounts-review-status--approved {
    color: #227a43;
    background: #e9f7ee;
}

.accounts-review-status--pending {
    color: #8a5b08;
    background: #fff1cf;
}

.accounts-review-card__text {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0e8e3;
    color: #4b4039;
    font-size: 14px;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.accounts-review-card__text > *:first-child {
    margin-top: 0;
}

.accounts-review-card__text > *:last-child {
    margin-bottom: 0;
}

.accounts-review-card__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.accounts-review-card__photo {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #eadfd8;
    border-radius: 11px;
    background: #f7f2ee;
    transition: transform 160ms ease, border-color 160ms ease;
}

.accounts-review-card__photo:hover,
.accounts-review-card__photo:focus-visible {
    border-color: #cdb9ad;
    transform: translateY(-1px);
    outline: none;
}

.accounts-review-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-review-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0e8e3;
}

.accounts-review-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, opacity 150ms ease, background-color 150ms ease;
}

.accounts-review-action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.accounts-review-action:disabled {
    opacity: 0.65;
    cursor: wait;
}

.accounts-review-action--approve {
    color: #fff;
    background: #248649;
}

.accounts-review-action--reject,
.accounts-review-action--delete {
    color: #a92317;
    border-color: #efc9c4;
    background: #fff7f5;
}

.accounts-reviews-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 720px;
    min-height: 86px;
    padding: 18px;
    box-sizing: border-box;
    border: 1px dashed #dccdc4;
    border-radius: 16px;
    color: #6f625a;
    background: #fffaf7;
    font-size: 14px;
}

.accounts-reviews-empty__icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #c88912;
    background: #fff0cf;
    font-size: 25px;
    line-height: 1;
}

@media (max-width: 700px) {
    .accounts-reviews {
        padding: 16px 12px 24px;
    }

    .accounts-reviews__header {
        margin-bottom: 12px;
    }

    .accounts-reviews__title {
        font-size: 26px;
    }

    .accounts-reviews-tabs {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 4px;
    }

    .accounts-reviews-tab {
        min-height: 40px;
    }

    .accounts-review-card {
        padding: 13px;
        border-radius: 14px;
    }

    .accounts-review-card__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .accounts-review-card__rating {
        margin-left: 52px;
    }

    .accounts-review-card__photo {
        width: 64px;
        height: 64px;
    }

    .accounts-review-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .accounts-review-action {
        width: 100%;
    }
}

/* =========================================================
 * ОТЗЫВЫ: полноширинная раскладка + просмотр фотографий
 * ========================================================= */
.accounts-reviews-tabs,
.accounts-reviews-panels,
.accounts-reviews-panel,
.accounts-reviews-list,
.accounts-reviews-empty {
    width: 100%;
    max-width: none;
}

.accounts-reviews-list {
    box-sizing: border-box;
}

.accounts-review-card {
    width: 100%;
    box-sizing: border-box;
}

.accounts-review-card__photo {
    cursor: zoom-in;
}

body.accounts-review-lightbox-open {
    overflow: hidden;
}

.accounts-review-lightbox[hidden] {
    display: none !important;
}

.accounts-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.accounts-review-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.accounts-review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 20, 16, .68);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.accounts-review-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: 70vw;
    height: 70vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 24px;
    outline: 0;
    background: linear-gradient(145deg, #f6f0e9, #e9ddd1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .72);
    transform: scale(.985);
    transition: transform .18s ease;
}

.accounts-review-lightbox.is-open .accounts-review-lightbox__dialog {
    transform: scale(1);
}

.accounts-review-lightbox__media {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 30px 54px;
    box-sizing: border-box;
}

.accounts-review-lightbox__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.accounts-review-lightbox__close,
.accounts-review-lightbox__arrow {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #68251b;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform .17s ease, background .17s ease;
}

.accounts-review-lightbox__close:hover,
.accounts-review-lightbox__arrow:hover {
    background: #fff;
}

.accounts-review-lightbox__close:focus-visible,
.accounts-review-lightbox__arrow:focus-visible {
    outline: 2px solid #c62212;
    outline-offset: 2px;
}

.accounts-review-lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 29px;
    line-height: 1;
}

.accounts-review-lightbox__arrow {
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.accounts-review-lightbox__arrow:hover {
    transform: translateY(-50%) scale(1.04);
}

.accounts-review-lightbox__arrow--prev {
    left: 12px;
}

.accounts-review-lightbox__arrow--next {
    right: 12px;
}

.accounts-review-lightbox__arrow svg {
    width: 21px;
    height: 21px;
}

.accounts-review-lightbox__arrow[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .accounts-review-lightbox {
        padding: 10px;
    }

    .accounts-review-lightbox__dialog {
        width: 94vw;
        height: 82vh;
        border-radius: 18px;
    }

    .accounts-review-lightbox__media {
        padding: 48px 38px 24px;
    }

    .accounts-review-lightbox__close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
    }

    .accounts-review-lightbox__arrow {
        width: 38px;
        height: 38px;
    }

    .accounts-review-lightbox__arrow--prev {
        left: 6px;
    }

    .accounts-review-lightbox__arrow--next {
        right: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-review-lightbox,
    .accounts-review-lightbox__dialog,
    .accounts-review-lightbox__close,
    .accounts-review-lightbox__arrow {
        transition: none;
    }
}

/* Пагинация отзывов о товарах */
.accounts-review-card__store a {
    color: inherit;
    text-decoration: none;
}

.accounts-review-card__store a:hover,
.accounts-review-card__store a:focus-visible {
    color: var(--reviews-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.accounts-reviews-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.accounts-reviews-pagination .page-numbers {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--reviews-border);
    border-radius: 10px;
    color: #64564d;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.accounts-reviews-pagination .page-numbers.current {
    border-color: var(--reviews-accent);
    color: #fff;
    background: var(--reviews-accent);
}

.accounts-reviews-pagination a.page-numbers:hover,
.accounts-reviews-pagination a.page-numbers:focus-visible {
    border-color: #d4bdb1;
    background: #fff8f4;
    outline: none;
}

/* =========================================================
 * СТРАНИЦА ПОДПИСКИ
 * ========================================================= */
.accounts-subscriptions-page {
    width: 100%;
    margin-top: 0;
    padding: 15px;
    box-sizing: border-box;
}

.accounts-dashboard-card--current-subscription {
    grid-column: 2;
}

.accounts-dashboard-card--current-subscription::before {
    background: #b52008;
}

.accounts-dashboard-details__row--subscription-price dd {
    color: #b52008;
    font-size: 18px;
    font-weight: 800;
}

.accounts-dashboard-details__row--lifetime-discount {
    min-height: 0;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(181, 32, 8, 0.13);
    border-radius: 12px;
    background: rgba(181, 32, 8, 0.035);
}

.accounts-dashboard-details__row--lifetime-discount dt {
    color: rgba(29, 43, 54, 0.76);
    font-weight: 700;
}

.accounts-dashboard-details__row--lifetime-discount dd {
    color: #b52008;
    font-size: 16px;
    font-weight: 800;
}

.accounts-current-subscription {
    display: flex;
    flex-direction: column;
    min-height: calc(100% - 70px);
}

.accounts-current-subscription__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.accounts-current-subscription__actions > :only-child {
    grid-column: 1 / -1;
}

.accounts-current-subscription__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.accounts-current-subscription__button:hover {
    transform: translateY(-1px);
}

.accounts-current-subscription__button:focus-visible {
    outline: 3px solid rgba(181, 32, 8, 0.16);
    outline-offset: 2px;
}

.accounts-current-subscription__button--primary {
    background: #b52008;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(181, 32, 8, 0.17);
}

.accounts-current-subscription__button--primary:hover {
    background: #9e1c07;
    box-shadow: 0 10px 24px rgba(181, 32, 8, 0.22);
}

.accounts-current-subscription__button--secondary {
    border-color: rgba(29, 43, 54, 0.14);
    background: #ffffff;
    color: #1d2b36;
}

.accounts-current-subscription__button--secondary:hover {
    border-color: rgba(29, 43, 54, 0.24);
    background: #f8f9f9;
}

@media (max-width: 1035px) {
    .accounts-dashboard-card--current-subscription {
        grid-column: 1;
    }

    .accounts-current-subscription {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .accounts-dashboard-card--current-subscription .accounts-dashboard-details__row--lifetime-discount {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .accounts-dashboard-card--current-subscription .accounts-dashboard-details__row--lifetime-discount dt {
        flex: 1 1 auto;
        min-width: 0;
    }

    .accounts-dashboard-card--current-subscription .accounts-dashboard-details__row--lifetime-discount dd {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: right;
    }

    .accounts-current-subscription__actions {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 16px;
    }

    .accounts-current-subscription__actions > :only-child {
        grid-column: auto;
    }

    .accounts-current-subscription__button {
        width: 100%;
        min-height: 46px;
    }
}

/* Страница подписки: карточки не растягиваем до высоты соседней колонки. */
.accounts-subscriptions-page {
    align-items: start;
}

.accounts-subscriptions-page .accounts-dashboard-card {
    height: auto;
}

.accounts-current-subscription {
    min-height: 0;
}

.accounts-current-subscription__actions {
    margin-top: 16px;
    padding-top: 0;
}

/* =========================================================
 * POPUP ПРОДЛЕНИЯ ПО СТАРЫМ ТАРИФАМ
 * ========================================================= */
body.accounts-renewal-modal-open {
    overflow: hidden;
}

.accounts-renewal-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.accounts-renewal-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.accounts-renewal-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 24, 31, 0.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: default;
}

.accounts-renewal-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 570px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(29, 43, 54, 0.10);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(12, 23, 31, 0.24);
    transform: translateY(14px) scale(0.985);
    transition: transform 200ms ease;
    outline: none;
}

.accounts-renewal-modal.is-open .accounts-renewal-modal__dialog {
    transform: translateY(0) scale(1);
}

.accounts-renewal-modal__dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    right: 26px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #b52008;
}

.accounts-renewal-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 0 2px;
    border: 1px solid rgba(29, 43, 54, 0.10);
    border-radius: 50%;
    background: #f7f8f8;
    color: #344550;
    font: inherit;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.accounts-renewal-modal__close:hover {
    border-color: rgba(181, 32, 8, 0.16);
    background: #fff5f2;
    color: #b52008;
    transform: rotate(3deg);
}

.accounts-renewal-modal__close:focus-visible,
.accounts-renewal-field__select:focus-visible,
.accounts-renewal-modal__pay-button:focus-visible {
    outline: 3px solid rgba(181, 32, 8, 0.15);
    outline-offset: 2px;
}

.accounts-renewal-modal__header {
    padding: 34px 72px 22px 30px;
    border-bottom: 1px solid rgba(29, 43, 54, 0.08);
}


.accounts-renewal-modal__title {
    margin: 0;
    color: #132631;
    font-size: clamp(23px, 3vw, 29px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.025em;
}


.accounts-renewal-modal__content {
    padding: 25px 30px 30px;
}

.accounts-renewal-field {
    display: block;
}

.accounts-renewal-field__label {
    display: block;
    margin-bottom: 8px;
    color: #344550;
    font-size: 12px;
    font-weight: 750;
}

.accounts-renewal-field__select-wrap {
    position: relative;
    display: block;
}

.accounts-renewal-field__select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #697982;
    border-bottom: 2px solid #697982;
    transform: translateY(-68%) rotate(45deg);
    pointer-events: none;
}

.accounts-renewal-field__select {
    width: 100%;
    min-height: 52px;
    padding: 0 48px 0 15px;
    border: 1px solid #d8dee2;
    border-radius: 13px;
    background: #ffffff;
    color: #142733;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.accounts-renewal-field__select:hover {
    border-color: #bdc7cc;
}

.accounts-renewal-field__select:focus {
    border-color: rgba(181, 32, 8, 0.48);
    box-shadow: 0 0 0 4px rgba(181, 32, 8, 0.06);
}

.accounts-renewal-price {
    margin-top: 17px;
    padding: 17px 18px 18px;
    border: 1px solid rgba(181, 32, 8, 0.10);
    border-radius: 15px;
    background: linear-gradient(135deg, #fff8f6 0%, #ffffff 75%);
}

.accounts-renewal-price__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.accounts-renewal-price__label {
    color: #66757e;
    font-size: 12px;
    font-weight: 650;
}

.accounts-renewal-price__sale-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #b52008;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.015em;
}

.accounts-renewal-price__values {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 5px;
}

.accounts-renewal-price__current {
    color: #b52008;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.accounts-renewal-price__old {
    color: #8b969c;
    font-size: 14px;
    font-weight: 650;
}

.accounts-renewal-price__old[hidden],
.accounts-renewal-price__sale-badge[hidden] {
    display: none;
}

.accounts-renewal-modal__pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 12px 20px;
    border: 1px solid #b52008;
    border-radius: 13px;
    background: #b52008;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(181, 32, 8, 0.18);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.accounts-renewal-modal__pay-button:hover:not(:disabled) {
    background: #9f1c07;
    box-shadow: 0 13px 28px rgba(181, 32, 8, 0.23);
    transform: translateY(-1px);
}

.accounts-renewal-modal__pay-button:disabled {
    border-color: #d9dfe2;
    background: #e9edef;
    color: #98a2a8;
    box-shadow: none;
    cursor: not-allowed;
}

.accounts-renewal-modal__empty {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px;
    border: 1px solid #e2e7e9;
    border-radius: 14px;
    background: #f8f9f9;
    color: #64737c;
    font-size: 12px;
    line-height: 1.45;
}

.accounts-renewal-modal__empty strong {
    color: #243742;
    font-size: 14px;
}

@media (max-width: 620px) {
    .accounts-renewal-modal {
        align-items: center;
        justify-content: center;
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .accounts-renewal-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        margin: auto;
        border-radius: 20px;
    }

    .accounts-renewal-modal__header {
        padding: 28px 62px 18px 20px;
    }

    .accounts-renewal-modal__content {
        padding: 20px;
    }

    .accounts-renewal-modal__close {
        top: 14px;
        right: 14px;
    }

    .accounts-renewal-price__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-renewal-modal,
    .accounts-renewal-modal__dialog,
    .accounts-renewal-modal__close,
    .accounts-renewal-modal__pay-button {
        transition: none;
    }
}

/* =========================================================
 * ОПЛАТА ПРОДЛЕНИЯ ПОДПИСКИ ЧЕРЕЗ ЮKASSA
 * ========================================================= */
.accounts-subscription-flash {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 16px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 200ms ease;
}

.accounts-subscription-flash[hidden] {
    display: none;
}

.accounts-subscription-flash.is-success {
    border-color: rgba(30, 128, 72, 0.18);
    background: #eef9f2;
    color: #176638;
}

.accounts-subscription-flash.is-error {
    border-color: rgba(181, 32, 8, 0.16);
    background: #fff4f1;
    color: #9f1c07;
}

.accounts-subscription-flash.is-hiding {
    opacity: 0;
    transform: translateY(-5px);
}

.accounts-payment-modal__dialog {
    width: min(100%, 620px);
}

.accounts-payment-modal__content {
    min-height: 150px;
}

.accounts-payment-summary {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 14px;
    background: #f7f9f9;
}

.accounts-payment-summary[hidden],
.accounts-payment-loading[hidden],
.accounts-payment-widget[hidden],
.accounts-payment-result[hidden] {
    display: none;
}

.accounts-payment-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #697780;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.accounts-payment-summary__row strong {
    max-width: 66%;
    color: #172b36;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.accounts-payment-summary__row--amount {
    padding-top: 10px;
    border-top: 1px solid rgba(29, 43, 54, 0.07);
}

.accounts-payment-summary__row--amount strong {
    color: #b52008;
    font-size: 22px;
    line-height: 1.1;
}

.accounts-payment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    min-height: 190px;
    padding: 24px;
    color: #64747d;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
}

.accounts-payment-loading__spinner {
    display: block;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 3px solid rgba(181, 32, 8, 0.14);
    border-top-color: #b52008;
    border-radius: 50%;
    animation: accounts-payment-spin 750ms linear infinite;
}

@keyframes accounts-payment-spin {
    to {
        transform: rotate(360deg);
    }
}

.accounts-payment-widget {
    width: 100%;
    min-height: 330px;
    overflow: hidden;
    border-radius: 14px;
}

.accounts-payment-result {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 13px;
    min-height: 220px;
    padding: 28px 20px;
    box-sizing: border-box;
    text-align: center;
}

.accounts-payment-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 29px;
    font-weight: 850;
    line-height: 1;
}

.accounts-payment-result strong {
    max-width: 390px;
    color: #20333e;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.accounts-payment-result.is-success .accounts-payment-result__icon {
    background: #e7f7ed;
    color: #1d7a42;
}

.accounts-payment-result.is-error .accounts-payment-result__icon {
    background: #fff0ed;
    color: #b52008;
}

@media (max-width: 620px) {
    .accounts-subscription-flash {
        margin-bottom: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 13px;
    }

    .accounts-payment-summary__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .accounts-payment-summary__row strong {
        max-width: none;
        text-align: left;
    }

    .accounts-payment-widget {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-subscription-flash {
        transition: none;
    }

    .accounts-payment-loading__spinner {
        animation-duration: 1.5s;
    }
}

/* =========================================================
 * Страница подписки: встроенный конструктор тарифа
 * ========================================================= */
.accounts-subscriptions-page[hidden],
.accounts-subscription-constructor[hidden] {
    display: none !important;
}

.accounts-subscription-constructor {
    width: 100%;
}

.accounts-subscription-constructor .accounts-store-tariff {
    width: 100%;
}

.accounts-current-subscription__button:disabled,
.accounts-current-subscription__button[aria-disabled="true"] {
    opacity: 0.52;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.accounts-current-subscription__button:disabled:hover,
.accounts-current-subscription__button[aria-disabled="true"]:hover {
    transform: none;
}

/* =========================================================
 * ПРОМОКОДЫ ПРИ ПРОДЛЕНИИ ПОДПИСКИ
 * ========================================================= */
.accounts-subscription-promo,
.accounts-renewal-promo {
    --accounts-store-accent: #b52008;
    --accounts-store-text: #1d2b36;
    --accounts-store-muted: rgba(29, 43, 54, 0.62);
    --accounts-store-border: rgba(29, 43, 54, 0.10);
}

.accounts-subscription-promo {
    width: 100%;
    margin-top: 2px;
}

.accounts-subscription-promo .accounts-store-promo {
    min-height: 72px;
    background: #ffffff;
}

.accounts-renewal-promo {
    width: 100%;
    margin-top: 18px;
}

.accounts-renewal-promo .accounts-store-promo {
    min-height: 70px;
}

.accounts-renewal-promo .accounts-store-field__input,
.accounts-subscription-promo .accounts-store-field__input {
    box-sizing: border-box;
    width: 100%;
}

/* Popup продления по старым тарифам: убираем лишнюю высоту блока промокода. */
.accounts-renewal-promo .accounts-store-promo {
    min-height: 0;
}

/* =========================================================
 * БЕСПЛАТНАЯ РЕГИСТРАЦИЯ: НАПОМИНАНИЕ ЗАПОЛНИТЬ МАГАЗИН
 * Выводится под приветственным блоком с логотипом/аватаром магазина,
 * пока после бесплатного назначения тарифа не заполнено nazvanie_magazina.
 * ========================================================= */
.accounts-free-registration-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 12px 0 0;
    padding: 13px 15px;
    box-sizing: border-box;
    border: 1px solid rgba(194, 39, 14, 0.16);
    border-radius: 14px;
    color: #1d2b36;
    background: #fff8f6;
    box-shadow: 0 8px 22px rgba(29, 43, 54, 0.04);
}

.accounts-free-registration-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #c2270e;
    background: rgba(194, 39, 14, 0.08);
}

.accounts-free-registration-notice__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-free-registration-notice__text {
    min-width: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 620px) {
    .accounts-free-registration-notice {
        gap: 10px;
        margin-top: 8px;
        padding: 11px 12px;
        border-radius: 12px;
    }

    .accounts-free-registration-notice__icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .accounts-free-registration-notice__icon svg {
        width: 18px;
        height: 18px;
    }

    .accounts-free-registration-notice__text {
        font-size: 12px;
    }
}

/* =========================================================
 * УВЕДОМЛЕНИЯ
 * ========================================================= */
.accounts-notifications {
    --notifications-accent: #c62212;
    --notifications-text: #2e251f;
    --notifications-muted: #756a63;
    --notifications-border: #eadfd8;
    width: 100%;
    min-height: 100%;
    padding: 22px 24px 32px;
    box-sizing: border-box;
    color: var(--notifications-text);
    background: #fffdfb;
}

.accounts-notifications-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.accounts-notifications-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 12px;
    background: #fff;
    color: rgba(29, 43, 54, 0.72);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(29, 43, 54, 0.04);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.accounts-notifications-tab:hover,
.accounts-notifications-tab:focus-visible {
    color: #1d2b36;
    border-color: rgba(29, 43, 54, 0.2);
    background: #f8f9f9;
    outline: none;
    transform: translateY(-1px);
}

.accounts-notifications-tab.is-active,
.accounts-notifications-tab.is-active:hover,
.accounts-notifications-tab.is-active:focus-visible {
    color: #fff;
    border-color: #1d2b36;
    background: #1d2b36;
    box-shadow: 0 8px 20px rgba(29, 43, 54, 0.17);
}

.accounts-notifications-tab__count {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.accounts-notifications-panel[hidden] {
    display: none !important;
}

.accounts-notifications-list {
    width: 100%;
    max-width: none;
}

.accounts-notification-card {
    contain-intrinsic-size: 190px;
}

.accounts-notification-card--unread {
    border-color: #efc67b;
    background: linear-gradient(180deg, #fffdf7 0%, #fff 42%);
    box-shadow: 0 8px 26px rgba(161, 105, 21, 0.07);
}

.accounts-notification-card__top {
    align-items: center;
}

.accounts-notification-card__date {
    flex: 0 0 auto;
    color: var(--notifications-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.accounts-notification-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #f0e8e3;
}

.accounts-notification-card__meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: var(--notifications-muted);
    font-size: 12px;
    line-height: 1.4;
}

.accounts-notification-card__meta-item strong {
    color: #4b4039;
    font-weight: 750;
}

.accounts-notification-card__meta-item a {
    color: inherit;
    text-decoration: none;
}

.accounts-notification-card__meta-item a:hover,
.accounts-notification-card__meta-item a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.accounts-notification-card__content {
    margin-top: 11px;
    padding-top: 11px;
}

.accounts-notification-card__section-title {
    display: block;
    margin-bottom: 8px;
    color: #2e251f;
    font-size: 13px;
}

.accounts-notification-products {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.accounts-notification-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #eadfd8;
    border-radius: 10px;
    color: #4b4039;
    background: #fffaf7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

a.accounts-notification-product:hover,
a.accounts-notification-product:focus-visible {
    border-color: #d9c3b6;
    color: #a92317;
    outline: none;
}

.accounts-notification-card__actions {
    align-items: center;
}

.accounts-notification-card__resend-status {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.accounts-notification-card__resend-status.is-success {
    color: #248649;
}

.accounts-notification-card__resend-status.is-error {
    color: #a92317;
}

.accounts-notifications-empty {
    max-width: 100%;
}

.accounts-sidebar-menu__label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.accounts-sidebar-menu__notice-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 1px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    background: #c62212;
    box-shadow: 0 4px 12px rgba(198, 34, 18, 0.24);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.01em;
}

.accounts-sidebar-menu__notice-count.is-zero {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

@media (max-width: 700px) {
    .accounts-notifications {
        padding: 16px 12px 24px;
    }

    .accounts-notifications-tabs {
        flex-wrap: nowrap;
        width: 100%;
        gap: 6px;
        overflow: visible;
        padding-bottom: 0;
    }

    .accounts-notifications-tab {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 8px 4px;
        gap: 3px;
        white-space: nowrap;
        font-size: clamp(11px, 3.35vw, 13px);
        letter-spacing: -0.02em;
    }

    .accounts-notifications-tab__count {
        flex: 0 0 auto;
        font-size: clamp(10px, 3vw, 12px);
    }

    .accounts-notification-card__top {
        align-items: flex-start;
        flex-direction: row;
    }

    .accounts-notification-card__date {
        margin-top: 3px;
    }

    .accounts-notification-card__meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Кнопка статистики товара в столбце «Действия». */
.accounts-product-actions__button--statistics:hover,
.accounts-product-actions__button--statistics:focus-visible {
    border-color: rgba(198, 34, 18, 0.24);
    background: rgba(198, 34, 18, 0.045);
}

/* Скидка на продление после длительного перерыва в подписке. */
.accounts-subscription-renewal-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 6px 9px;
    border: 1px solid rgba(181, 32, 8, 0.16);
    border-radius: 9px;
    background: rgba(181, 32, 8, 0.05);
    color: #b52008;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 620px) {
    .accounts-subscription-renewal-discount {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
}

.accounts-renewal-price__renewal-discount {
    margin-top: 7px;
    color: #b52008;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

/* Пагинация системных уведомлений. */
.accounts-notifications-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 1180px;
    margin-top: 16px;
}

.accounts-notifications-pagination .page-numbers {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--notifications-border);
    border-radius: 10px;
    color: #64564d;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.accounts-notifications-pagination .page-numbers.current {
    border-color: var(--notifications-accent);
    color: #fff;
    background: var(--notifications-accent);
}

.accounts-notifications-pagination a.page-numbers:hover,
.accounts-notifications-pagination a.page-numbers:focus-visible {
    border-color: #d4bdb1;
    background: #fff8f4;
    outline: none;
}

.accounts-notification-card__content--system > :first-child {
    margin-top: 0;
}

.accounts-notification-card__content--system > :last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .accounts-notifications-pagination {
        gap: 5px;
        margin-top: 12px;
    }

    .accounts-notifications-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
    }
}

/* =========================================================
 * ИГРЫ / SINGLE-GAMES.PHP
 * ========================================================= */
.accounts-games-page {
    min-height: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: #f5f7f8;
}

.accounts-games-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 15px;
    align-items: stretch;
    width: 100%;
}

.accounts-games-hero__heading {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 116px;
    padding: 20px 22px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
}

.accounts-games-hero__heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1d2b36;
}

.accounts-games-hero__heading::after {
    content: "";
    position: absolute;
    top: -58px;
    right: -34px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(29, 43, 54, 0.055);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(29, 43, 54, 0.022), 0 0 0 48px rgba(29, 43, 54, 0.014);
    pointer-events: none;
}

.accounts-games-hero__eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
    color: rgba(29, 43, 54, 0.52);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.accounts-games-hero__title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #1d2b36;
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 780;
    line-height: 1.16;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.accounts-games-balance {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 116px;
    padding: 18px 20px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.06);
    border-radius: 20px;
    background: #1d2b36;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(29, 43, 54, 0.16);
}

.accounts-games-balance::before,
.accounts-games-balance::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.accounts-games-balance::before {
    top: -66px;
    right: -46px;
    width: 176px;
    height: 176px;
    background: rgba(255, 255, 255, 0.055);
}

.accounts-games-balance::after {
    right: 42px;
    bottom: -72px;
    width: 128px;
    height: 128px;
    border: 24px solid rgba(255, 255, 255, 0.025);
}

.accounts-games-balance__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.accounts-games-balance__icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-games-balance__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.accounts-games-balance__label {
    color: rgba(255, 255, 255, 0.67);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.accounts-games-balance__value {
    color: #ffffff;
    font-size: clamp(29px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.accounts-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.accounts-game-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    min-width: 0;
    min-height: 132px;
    padding: 18px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
    isolation: isolate;
    animation: accountsGameCardIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.accounts-game-card:nth-child(2) {
    animation-delay: 80ms;
}

.accounts-game-card:nth-child(3) {
    animation-delay: 160ms;
}

.accounts-game-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 3px;
    background: #1d2b36;
}

.accounts-game-card--matryoshka-arcade::before {
    background: #b52008;
}

.accounts-game-card--find-matryoshka::before {
    background: #7a644b;
}

.accounts-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 43, 54, 0.13);
    box-shadow: 0 17px 38px rgba(29, 43, 54, 0.11);
}

.accounts-game-card__decor {
    position: absolute;
    z-index: -1;
    top: -66px;
    right: -66px;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    background: rgba(29, 43, 54, 0.028);
    box-shadow: 0 0 0 25px rgba(29, 43, 54, 0.013);
    transition: transform 300ms ease;
}

.accounts-game-card:hover .accounts-game-card__decor {
    transform: scale(1.08);
}

.accounts-game-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: #f0f3f4;
    color: #1d2b36;
    box-shadow: inset 0 0 0 1px rgba(29, 43, 54, 0.055);
}

.accounts-game-card--matryoshka-arcade .accounts-game-card__icon {
    background: rgba(181, 32, 8, 0.075);
    color: #a51d07;
    box-shadow: inset 0 0 0 1px rgba(181, 32, 8, 0.08);
}

.accounts-game-card--find-matryoshka .accounts-game-card__icon {
    background: rgba(122, 100, 75, 0.09);
    color: #6d5943;
    box-shadow: inset 0 0 0 1px rgba(122, 100, 75, 0.08);
}

.accounts-game-card__icon svg {
    display: block;
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-game-card__content {
    min-width: 0;
}

.accounts-game-card__number {
    display: block;
    margin-bottom: 5px;
    color: rgba(29, 43, 54, 0.38);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
}

.accounts-game-card__title {
    margin: 0;
    color: #1d2b36;
    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.018em;
    overflow-wrap: anywhere;
}

.accounts-game-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f6f7;
    color: rgba(29, 43, 54, 0.6);
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.accounts-game-card__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-game-card:hover .accounts-game-card__arrow {
    transform: translateX(2px);
    background: #1d2b36;
    color: #ffffff;
}

@keyframes accountsGameCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) and (min-width: 1036px) {
    .accounts-game-card {
        grid-template-columns: 52px minmax(0, 1fr) 30px;
        gap: 10px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .accounts-game-card__icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .accounts-game-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .accounts-game-card__arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1035px) {
    .accounts-games-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .accounts-games-hero__heading,
    .accounts-games-balance {
        width: 100%;
        min-height: 106px;
        border-radius: 18px;
    }

    .accounts-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .accounts-game-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        min-height: 122px;
        border-radius: 18px;
    }

    .accounts-game-card__icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .accounts-game-card__arrow {
        display: none;
    }
}

@media (max-width: 780px) {
    .accounts-games-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-game-card {
        grid-template-columns: 58px minmax(0, 1fr) 34px;
        min-height: 104px;
    }

    .accounts-game-card__icon {
        width: 58px;
        height: 58px;
    }

    .accounts-game-card__arrow {
        display: inline-flex;
    }
}

@media (max-width: 620px) {
    .accounts-games-page {
        padding: 5px;
    }

    .accounts-games-hero,
    .accounts-games-grid {
        gap: 10px;
    }

    .accounts-games-hero__heading,
    .accounts-games-balance,
    .accounts-game-card {
        border-radius: 16px;
    }

    .accounts-games-hero__heading {
        min-height: 94px;
        padding: 17px 16px;
    }

    .accounts-games-hero__eyebrow {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .accounts-games-hero__title {
        font-size: 24px;
    }

    .accounts-games-balance {
        min-height: 94px;
        gap: 12px;
        padding: 15px 16px;
    }

    .accounts-games-balance__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .accounts-games-balance__icon svg {
        width: 24px;
        height: 24px;
    }

    .accounts-games-balance__label {
        font-size: 12px;
    }

    .accounts-games-balance__value {
        font-size: 30px;
    }

    .accounts-games-grid {
        margin-top: 10px;
    }

    .accounts-game-card {
        grid-template-columns: 50px minmax(0, 1fr) 30px;
        gap: 11px;
        min-height: 92px;
        padding: 14px;
    }

    .accounts-game-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .accounts-game-card__icon svg {
        width: 27px;
        height: 27px;
    }

    .accounts-game-card__number {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .accounts-game-card__title {
        font-size: 17px;
    }

    .accounts-game-card__arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 390px) {
    .accounts-game-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .accounts-game-card__icon {
        width: 46px;
        height: 46px;
    }

    .accounts-game-card__arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-game-card,
    .accounts-game-card__decor,
    .accounts-game-card__arrow {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
 * ИГРЫ / КРЕСТИКИ-НОЛИКИ
 * ========================================================= */
.accounts-game-card[type="button"] {
    width: 100%;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.accounts-game-card[type="button"]:focus-visible,
.accounts-tic-tac-toe button:focus-visible {
    outline: 3px solid rgba(181, 32, 8, 0.18);
    outline-offset: 3px;
}

.accounts-tic-tac-toe {
    width: 100%;
    animation: accountsGameViewIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accounts-tic-tac-toe__toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 390px) auto;
    gap: 15px;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

.accounts-tic-tac-toe__balance {
    min-height: 94px;
}

.accounts-tic-tac-toe__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    align-self: center;
    min-width: 118px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(29, 43, 54, 0.1);
    border-radius: 14px;
    background: #ffffff;
    color: #1d2b36;
    box-shadow: 0 8px 22px rgba(29, 43, 54, 0.07);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.accounts-tic-tac-toe__back:hover {
    transform: translateY(-1px);
    border-color: rgba(181, 32, 8, 0.22);
    color: #b52008;
    box-shadow: 0 11px 25px rgba(29, 43, 54, 0.1);
}

.accounts-tic-tac-toe__back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-tic-tac-toe__rules {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    margin-top: 15px;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
}

.accounts-tic-tac-toe__rules::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1d2b36 0%, #b52008 100%);
}

.accounts-tic-tac-toe__rules-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #f0f3f4;
    color: #1d2b36;
    box-shadow: inset 0 0 0 1px rgba(29, 43, 54, 0.055);
}

.accounts-tic-tac-toe__rules-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-tic-tac-toe__rules-content {
    min-width: 0;
}

.accounts-tic-tac-toe__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: rgba(29, 43, 54, 0.5);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.accounts-tic-tac-toe__rules-title {
    margin: 0 0 9px;
    color: #1d2b36;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.accounts-tic-tac-toe__rules p {
    max-width: 980px;
    margin: 0;
    color: rgba(29, 43, 54, 0.76);
    font-size: 13px;
    font-weight: 520;
    line-height: 1.62;
}

.accounts-tic-tac-toe__rules p + p {
    margin-top: 7px;
}

.accounts-tic-tac-toe__rules strong {
    color: #b52008;
    font-weight: 800;
}

.accounts-tic-tac-toe__play-layout {
    display: grid;
    grid-template-columns: minmax(300px, 510px) minmax(240px, 1fr);
    gap: 15px;
    align-items: stretch;
    margin-top: 15px;
}

.accounts-tic-tac-toe__board-wrap {
    position: relative;
    width: 100%;
    max-width: 510px;
    aspect-ratio: 1;
    padding: 14px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(29, 43, 54, 0.09);
}

.accounts-tic-tac-toe__board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    transition: opacity 180ms ease, transform 180ms ease;
}

.accounts-tic-tac-toe__board.is-thinking {
    opacity: 0.82;
}

.accounts-tic-tac-toe__cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 17px;
    background: #f5f7f8;
    color: #1d2b36;
    font: inherit;
    font-size: clamp(48px, 7vw, 78px);
    font-weight: 420;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.accounts-tic-tac-toe__cell:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(29, 43, 54, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(29, 43, 54, 0.07);
}

.accounts-tic-tac-toe__cell.is-x {
    background: rgba(29, 43, 54, 0.065);
    color: #1d2b36;
}

.accounts-tic-tac-toe__cell.is-o {
    background: rgba(181, 32, 8, 0.065);
    color: #b52008;
}

.accounts-tic-tac-toe__cell:disabled {
    cursor: default;
}

.accounts-tic-tac-toe__overlay {
    position: absolute;
    inset: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(245, 247, 248, 0.92);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: accountsGameOverlayIn 220ms ease both;
}

.accounts-tic-tac-toe__overlay-panel {
    width: min(100%, 330px);
    padding: 22px 18px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(29, 43, 54, 0.13);
    text-align: center;
}

.accounts-tic-tac-toe__overlay-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 66px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: #f0f3f4;
    color: #1d2b36;
    font-size: 28px;
    font-weight: 650;
    line-height: 1;
}

.accounts-tic-tac-toe__overlay-mark span:last-child {
    color: #b52008;
}

.accounts-tic-tac-toe__overlay-panel h3 {
    margin: 0;
    color: #1d2b36;
    font-size: 21px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.accounts-tic-tac-toe__overlay-panel p {
    margin: 7px 0 0;
    color: rgba(29, 43, 54, 0.62);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.5;
}

.accounts-tic-tac-toe__start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 44px;
    margin-top: 15px;
    padding: 10px 18px;
    border: 0;
    border-radius: 13px;
    background: #1d2b36;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(29, 43, 54, 0.18);
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.accounts-tic-tac-toe__start:hover {
    transform: translateY(-1px);
    background: #b52008;
    box-shadow: 0 12px 24px rgba(181, 32, 8, 0.2);
}

.accounts-tic-tac-toe__choice-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(29, 43, 54, 0.46);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-tic-tac-toe__symbol-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.accounts-tic-tac-toe__symbol-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 106px;
    padding: 12px 8px;
    border: 1px solid rgba(29, 43, 54, 0.09);
    border-radius: 15px;
    background: #f7f8f9;
    color: #1d2b36;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.accounts-tic-tac-toe__symbol-button:last-child {
    color: #b52008;
}

.accounts-tic-tac-toe__symbol-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(181, 32, 8, 0.18);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(29, 43, 54, 0.08);
}

.accounts-tic-tac-toe__symbol-button:disabled {
    opacity: 0.58;
    cursor: wait;
}

.accounts-tic-tac-toe__symbol-button svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-tic-tac-toe__result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    margin-bottom: 10px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 15px;
    background: #f0f3f4;
    color: #1d2b36;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.accounts-tic-tac-toe__status {
    display: flex;
    align-items: center;
    gap: 14px;
    align-self: start;
    min-height: 94px;
    padding: 18px 20px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(29, 43, 54, 0.07);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.accounts-tic-tac-toe__status-icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f0f3f4;
    color: #1d2b36;
}

.accounts-tic-tac-toe__status-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-tic-tac-toe__status-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.accounts-tic-tac-toe__status-label {
    color: rgba(29, 43, 54, 0.46);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-tic-tac-toe__status-copy strong {
    color: #1d2b36;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.35;
}

.accounts-tic-tac-toe__status[data-status-state="success"] {
    border-color: rgba(36, 115, 62, 0.18);
    background: rgba(36, 115, 62, 0.035);
}

.accounts-tic-tac-toe__status[data-status-state="loss"],
.accounts-tic-tac-toe__status[data-status-state="error"] {
    border-color: rgba(181, 32, 8, 0.18);
    background: rgba(181, 32, 8, 0.035);
}

.accounts-tic-tac-toe__status[data-status-state="computer"] .accounts-tic-tac-toe__status-icon,
.accounts-tic-tac-toe__status[data-status-state="thinking"] .accounts-tic-tac-toe__status-icon {
    color: #b52008;
    background: rgba(181, 32, 8, 0.07);
}

.accounts-tic-tac-toe__toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    min-width: 210px;
    max-width: min(360px, calc(100vw - 30px));
    padding: 14px 17px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #1d2b36;
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(29, 43, 54, 0.22);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
    animation: accountsGameToastIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accounts-tic-tac-toe__toast.is-success {
    background: #24733e;
}

.accounts-tic-tac-toe__toast.is-loss,
.accounts-tic-tac-toe__toast.is-error {
    background: #a31d0b;
}

.accounts-tic-tac-toe__toast.is-draw {
    background: #62533f;
}

@keyframes accountsGameViewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes accountsGameOverlayIn {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes accountsGameToastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1035px) {
    .accounts-tic-tac-toe__toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .accounts-tic-tac-toe__balance {
        width: min(100%, 390px);
    }

    .accounts-tic-tac-toe__play-layout {
        grid-template-columns: minmax(280px, 480px) minmax(220px, 1fr);
    }
}

@media (max-width: 780px) {
    .accounts-tic-tac-toe__play-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-tic-tac-toe__board-wrap {
        max-width: 520px;
    }

    .accounts-tic-tac-toe__status {
        max-width: 520px;
    }
}

@media (max-width: 620px) {
    .accounts-tic-tac-toe__toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .accounts-tic-tac-toe__balance {
        min-height: 82px;
        padding: 13px 14px;
    }

    .accounts-tic-tac-toe__back {
        min-width: 92px;
        min-height: 42px;
        padding: 9px 13px;
        border-radius: 12px;
    }

    .accounts-tic-tac-toe__rules {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        margin-top: 10px;
        padding: 16px;
        border-radius: 16px;
    }

    .accounts-tic-tac-toe__rules-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .accounts-tic-tac-toe__rules-icon svg {
        width: 23px;
        height: 23px;
    }

    .accounts-tic-tac-toe__rules-title {
        margin-bottom: 7px;
        font-size: 21px;
    }

    .accounts-tic-tac-toe__rules p {
        font-size: 12px;
        line-height: 1.55;
    }

    .accounts-tic-tac-toe__play-layout {
        gap: 10px;
        margin-top: 10px;
    }

    .accounts-tic-tac-toe__board-wrap {
        padding: 10px;
        border-radius: 17px;
    }

    .accounts-tic-tac-toe__board {
        gap: 6px;
    }

    .accounts-tic-tac-toe__cell {
        border-radius: 13px;
        font-size: clamp(42px, 17vw, 66px);
    }

    .accounts-tic-tac-toe__overlay {
        inset: 10px;
        padding: 10px;
        border-radius: 14px;
    }

    .accounts-tic-tac-toe__overlay-panel {
        padding: 18px 14px;
        border-radius: 15px;
    }

    .accounts-tic-tac-toe__status {
        min-height: 82px;
        gap: 11px;
        padding: 14px 15px;
        border-radius: 16px;
    }

    .accounts-tic-tac-toe__status-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .accounts-tic-tac-toe__toast {
        right: 15px;
        bottom: 15px;
        left: 15px;
        width: auto;
        min-width: 0;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .accounts-tic-tac-toe__toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-tic-tac-toe__balance {
        width: 100%;
    }

    .accounts-tic-tac-toe__back {
        justify-self: stretch;
        width: 100%;
    }

    .accounts-tic-tac-toe__rules {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-tic-tac-toe__rules-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-tic-tac-toe,
    .accounts-tic-tac-toe__overlay,
    .accounts-tic-tac-toe__toast,
    .accounts-tic-tac-toe__cell,
    .accounts-tic-tac-toe__back,
    .accounts-tic-tac-toe__start,
    .accounts-tic-tac-toe__symbol-button {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

.accounts-games-page [hidden] {
    display: none !important;
}

/* =========================================================
 * ИГРЫ / АРКАДА МАТРЁШКА
 * ========================================================= */
.accounts-matryoshka-arcade {
    width: 100%;
    animation: accountsGameViewIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accounts-matryoshka-arcade button:focus-visible,
.accounts-matryoshka-arcade__stage:focus-visible {
    outline: 3px solid rgba(181, 32, 8, 0.18);
    outline-offset: 3px;
}

.accounts-matryoshka-arcade__rules-icon {
    color: #b52008;
    background: rgba(181, 32, 8, 0.065);
}

.accounts-matryoshka-arcade__shell {
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(29, 43, 54, 0.08);
}

.accounts-matryoshka-arcade__hud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid rgba(29, 43, 54, 0.07);
    background: rgba(29, 43, 54, 0.07);
}

.accounts-matryoshka-arcade__hud-item {
    display: flex;
    min-width: 0;
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 13px 18px;
    box-sizing: border-box;
    background: #ffffff;
}

.accounts-matryoshka-arcade__hud-item span {
    color: rgba(29, 43, 54, 0.47);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.accounts-matryoshka-arcade__hud-item strong {
    overflow: hidden;
    color: #1d2b36;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-matryoshka-arcade__hud-item:first-child strong {
    color: #b52008;
    font-size: 23px;
}

.accounts-matryoshka-arcade__stage {
    position: relative;
    width: 100%;
    height: clamp(260px, calc(39vw - 60px), 385px);
    min-height: 260px;
    overflow: hidden;
    background: #f6f8f9;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.accounts-matryoshka-arcade__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.accounts-matryoshka-arcade__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(245, 247, 248, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: accountsGameOverlayIn 220ms ease both;
}

.accounts-matryoshka-arcade__overlay-panel {
    width: min(100%, 390px);
    padding: 22px 20px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 50px rgba(29, 43, 54, 0.16);
    text-align: center;
}

.accounts-matryoshka-arcade__matryoshka-mark,
.accounts-matryoshka-arcade__result-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid rgba(29, 43, 54, 0.08);
    border-radius: 17px;
    background: #f2f4f5;
    color: #b52008;
    box-shadow: 0 8px 20px rgba(29, 43, 54, 0.08);
}

.accounts-matryoshka-arcade__matryoshka-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accounts-matryoshka-arcade__matryoshka-mark svg {
    width: 40px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accounts-matryoshka-arcade__result-icon {
    font-size: 31px;
    font-weight: 750;
    line-height: 1;
}

.accounts-matryoshka-arcade__overlay-kicker {
    display: block;
    margin-bottom: 5px;
    color: rgba(29, 43, 54, 0.48);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-matryoshka-arcade__overlay-panel h3 {
    margin: 0;
    color: #1d2b36;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.accounts-matryoshka-arcade__overlay-panel p {
    margin: 8px auto 0;
    max-width: 320px;
    color: rgba(29, 43, 54, 0.65);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.55;
}

.accounts-matryoshka-arcade__overlay-panel p strong {
    color: #b52008;
    font-weight: 800;
}

.accounts-matryoshka-arcade__start:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.accounts-matryoshka-arcade__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 15px;
    border-top: 1px solid rgba(29, 43, 54, 0.07);
    background: #ffffff;
}

.accounts-matryoshka-arcade__control-hint {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: rgba(29, 43, 54, 0.62);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.accounts-matryoshka-arcade__key {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(29, 43, 54, 0.11);
    border-bottom-width: 2px;
    border-radius: 9px;
    background: #f5f7f8;
    color: #1d2b36;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-matryoshka-arcade__status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 190px;
    color: #1d2b36;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.accounts-matryoshka-arcade__status strong {
    font-weight: 760;
}

.accounts-matryoshka-arcade__status-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(29, 43, 54, 0.35);
    box-shadow: 0 0 0 4px rgba(29, 43, 54, 0.05);
}

.accounts-matryoshka-arcade__status[data-state="running"] .accounts-matryoshka-arcade__status-dot,
.accounts-matryoshka-arcade__status[data-state="success"] .accounts-matryoshka-arcade__status-dot {
    background: #24733e;
    box-shadow: 0 0 0 4px rgba(36, 115, 62, 0.08);
}

.accounts-matryoshka-arcade__status[data-state="loading"] .accounts-matryoshka-arcade__status-dot,
.accounts-matryoshka-arcade__status[data-state="warning"] .accounts-matryoshka-arcade__status-dot {
    background: #b98214;
    box-shadow: 0 0 0 4px rgba(185, 130, 20, 0.08);
    animation: accountsArcadePulse 950ms ease-in-out infinite;
}

.accounts-matryoshka-arcade__status[data-state="loss"] .accounts-matryoshka-arcade__status-dot,
.accounts-matryoshka-arcade__status[data-state="error"] .accounts-matryoshka-arcade__status-dot {
    background: #b52008;
    box-shadow: 0 0 0 4px rgba(181, 32, 8, 0.08);
}

.accounts-matryoshka-arcade__toast {
    z-index: 10000;
}

@keyframes accountsArcadePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.72); opacity: 0.65; }
}

@media (max-width: 1035px) {
    .accounts-matryoshka-arcade__stage {
        height: clamp(255px, calc(48vw - 60px), 360px);
    }
}

@media (max-width: 780px) {
    .accounts-matryoshka-arcade__hud {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-matryoshka-arcade__stage {
        height: clamp(240px, calc(58vw - 60px), 330px);
    }

    .accounts-matryoshka-arcade__footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-matryoshka-arcade__status {
        justify-content: flex-start;
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .accounts-matryoshka-arcade__shell {
        margin-top: 10px;
        border-radius: 17px;
    }

    .accounts-matryoshka-arcade__hud-item {
        min-height: 64px;
        padding: 11px 12px;
    }

    .accounts-matryoshka-arcade__hud-item span {
        font-size: 8px;
        letter-spacing: 0.055em;
    }

    .accounts-matryoshka-arcade__hud-item strong {
        font-size: 15px;
    }

    .accounts-matryoshka-arcade__hud-item:first-child strong {
        font-size: 19px;
    }

    .accounts-matryoshka-arcade__stage {
        height: clamp(220px, calc(72vw - 60px), 290px);
        min-height: 220px;
    }

    .accounts-matryoshka-arcade__overlay {
        padding: 10px;
    }

    .accounts-matryoshka-arcade__overlay-panel {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .accounts-matryoshka-arcade__matryoshka-mark,
    .accounts-matryoshka-arcade__result-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .accounts-matryoshka-arcade__overlay-panel h3 {
        font-size: 20px;
    }

    .accounts-matryoshka-arcade__footer {
        gap: 10px;
        padding: 11px 12px;
    }

    .accounts-matryoshka-arcade__control-hint {
        align-items: flex-start;
        font-size: 10px;
    }

    .accounts-matryoshka-arcade__key {
        min-width: 48px;
        min-height: 27px;
        padding: 3px 7px;
        font-size: 8px;
    }
}

@media (max-width: 430px) {
    .accounts-matryoshka-arcade__hud {
        grid-template-columns: minmax(0, 1fr);
    }

    .accounts-matryoshka-arcade__hud-item {
        min-height: 50px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .accounts-matryoshka-arcade__stage {
        height: 225px;
        min-height: 225px;
    }

    .accounts-matryoshka-arcade__control-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accounts-matryoshka-arcade,
    .accounts-matryoshka-arcade__overlay,
    .accounts-matryoshka-arcade__status-dot,
    .accounts-matryoshka-arcade__start {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
