.PSHeader-ServiceStub {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: black;
    font-weight: 700;
    text-align: center;
    line-height: 34px;
}

.PSHeaderService {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 76px;
    min-height: 56px;
    border-radius: 12px;
    margin: 0 4px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    outline: none;
}

.PSHeader .PSHeaderService {
    height: 54px;
    min-height: 54px;
}

.PSHeaderService:focus-visible::before {
    position: absolute;
    content: '';
    top: -2px;
    left: -2px;
    bottom: -2px;
    right: -2px;
    border-radius: 12px;
    border: 2px solid gray;
}

.PSHeaderService_theme_light:focus-visible::before {
    border-color: #d4d8e0;
}

.PSHeaderService_theme_dark:focus-visible::before {
    border-color: rgba(255, 255, 255, 0.06);
}

.PSHeaderService_theme_light {
    color: rgba(34, 34, 34, 0.8);
}

.PSHeaderService_theme_light:hover {
    color: rgba(34, 34, 34, 1);
}

.PSHeaderService_theme_dark {
    color: rgba(255, 255, 255, 0.8);
}

.PSHeaderService_theme_dark:hover {
    color: rgba(255, 255, 255, 1);
}

.PSHeaderService_active {
    font-weight: 500;
}

.PSHeaderService_active.PSHeaderService_theme_light {
    background-color: #eaebef;
}

.PSHeaderService_active.PSHeaderService_theme_dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.PSHeaderService:hover .PSHeaderService-Icon {
    transform: scale(1.1);
}

.PSHeaderService-Icon {
    width: 48px;
    height: 42px;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.PSHeaderService-Text {
    white-space: pre-line;
    text-align: center;
    position: relative;
    bottom: 3px;
}

.UserWidget-Content {
    overflow: hidden;
}

.UserWidget-Iframe {
    display: block;

    border: none;

    transform: translate3d(0, 0, 0);
}

.UserWidget-Content_loading .UserWidget-Iframe {
    opacity: 0;
}

.UserWidget-Spin {
    position: absolute;
    top: 50%;
    left: 50%;

    display: inline-block;

    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;

    border: 2px solid transparent;
    border-top-color: rgb(255, 204, 0);
    border-left-color: rgb(255, 204, 0);
    border-radius: 50%;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));

    animation: islands-spin2 1s .21s infinite linear; /* (1) */

    backface-visibility: hidden;  /* Для ускорения анимации */
}

.UserWidget-Content_colorScheme_dark .UserWidget-Spin {
    border-top-color: rgba(247, 247, 255, 0.9);
    border-left-color: rgba(247, 247, 255, 0.9);
}

@keyframes islands-spin2 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* stylelint-disable selector-max-universal */
/* stylelint-disable time-min-milliseconds */
/* stylelint-disable value-list-comma-space-after */

.UserWidget-Dialog {
    position: absolute;
    z-index: 2;
    right: 0;

    display: none;

    width: auto;
    margin-top: 0;
    margin-right: 0;

    transform: translateZ(0);
}

.UserWidget-Dialog_platform_desktop {
    top: calc(var(--user-id-size) * 1.3);

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 24px;
}

*[dir='rtl'] .UserWidget-Dialog_platform_desktop {
    right: auto;
    left: 0;
}

.UserWidget-Dialog_colorScheme_light {
    background: #fff;
    box-shadow: 0 0 2px rgba(147, 151, 173, 0.1), 0 8px 28px rgba(147, 151, 173, 0.3);
}

.UserWidget-Dialog_colorScheme_dark {
    background: #1f1f24;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.UserWidget-Dialog_platform_desktop.UserWidget-Dialog_visible {
    display: block;

    animation:
        0.025s fade-in cubic-bezier(0, 0, 0.18, 0.99);
}

.UserWidget-Dialog_platform_touch.UserWidget-Dialog_visible {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: block;

    animation: 0.25s user-id-size cubic-bezier(0, 0, 0.18, 0.99);
}

.UserWidget-Dialog .UserWidget-Content {
    overflow-x: hidden;
    overflow-y: auto;
}

.UserWidget-Dialog_visible .UserWidget-Content {
    animation: 0.05s fade-in;
    animation-timing-function: cubic-bezier(0, 0, 0.18, 0.99);
}

.UserWidget-Dialog_platform_desktop.UserWidget-Dialog .UserWidget-Iframe {
    max-height: calc(100vh - var(--user-id-size) * 2.5);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes user-id-size {
    0% {
        top: 100%;
    }
}

/* stylelint-disable selector-max-universal */

.UserID-CloseButton {
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 20px;

    height: 44px;
    padding: 10px;

    cursor: pointer;

    border: none;
    border-radius: 44px;
    outline: none;
    background: none;
}

.UserID-CloseButton_colorScheme_light {
    color: #262633;
}

.UserID-CloseButton_colorScheme_dark {
    color: #fafaff;
}

.UserID-CloseButton_colorScheme_dark:hover,
.UserID-CloseButton_colorScheme_dark:focus {
    background-color: var(--id-button-background-hovered, rgba(250, 250, 255, 0.1));
}

.UserID-CloseButton_colorScheme_light:hover,
.UserID-CloseButton_colorScheme_light:focus {
    background-color: var(--id-button-background-hovered, rgba(180, 184, 204, 0.2));
}

*[dir='rtl'] .UserID-CloseButton {
    right: auto;
    left: 20px;
}

.UserID-Wrapper {
    position: relative;

    display: inline-block;

    height: var(--user-id-size);
    padding: 0;

    font-size: 0;

    border: none;
    background: none;
}

.UserID-Wrapper_child {
    --user-id-badge-top: 90%;
}

.UserID-Account {
    position: relative;
    z-index: 0;

    display: inline-block;

    padding: 0;

    cursor: pointer;
    text-decoration: none;

    color: #000;
    border: none;
    border-radius: 100%;
    background-color: transparent;
}

.UserID-Account:focus {
    outline: none;
}

.UserID-Badge {
    position: relative;

    display: inline-flex;

    vertical-align: middle;
}

.UserID-Badge-Dot {
    position: absolute;
    top: 8%;
    left: 92%;

    display: inline-block;

    color: #fff;
    border-radius: 8px;
    background-color: #fc4714;

    transform: translate(-50%, -50%);
}

.UserID-Badge-Dot_variant_number {
    box-sizing: border-box;
    min-width: 16px;
    padding: 1px 4px;

    font-family: 'YS Text', Arial, Helvetica, 'Arial Unicode MS', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    user-select: none;
    text-align: center;
    white-space: nowrap;
}

.UserID-Badge-Dot_variant_number:empty {
    display: none;
}

.UserID-Badge-Dot_variant_dot {
    width: 6px;
    height: 6px;

    border: 2px solid transparent;
}

.UserID-Badge-Dot_colorScheme_light {
   border-color: #fff; 
}

.UserID-Badge-Dot_colorScheme_dark {
    border-color: #1f1f24;
}

.UserID-Avatar {
    position: relative;

    display: inline-block;

    width: var(--user-id-size);
    height: var(--user-id-size);

    border: none;
    border-radius: 100%;

    isolation: isolate;
}

.UserID-Avatar::after,
.UserID-Avatar-ChildStroke {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;

    box-sizing: border-box;
    width: var(--user-id-size);
    height: var(--user-id-size);

    content: '';

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transform: translate(-50%, -50%) scale(1.208);
}

.UserID-Avatar_plus::after {
    background-image: url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/c7db64325ec549c70d10.svg);
}

.UserID-Avatar_child::after {
    background-image: url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/bde6b68a2fde3d758973.svg);
}

.UserID-Avatar_child.UserID-Avatar_plus::after {
    background-image: url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/cb4f3bee155b059e63c6.svg);
}

.UserID-Avatar-ChildStroke {
    z-index: 1;

    fill: #fff;
}

.UserID-Avatar_colorScheme_dark .UserID-Avatar-ChildStroke {
    fill: #000;
}

.UserID-Avatar_small .UserID-Avatar-ChildStroke {
    display: none;
}

.UserID-Avatar-Image {
    width: 100%;
    height: 100%;

    border-radius: 100%;
    background-color: transparent;
    object-fit: cover;
}

.UserID-Account[data-focus-visible-added] .UserID-Avatar,
.utilityfocus .UserID-Account:focus .UserID-Avatar {
    outline: 2px solid var(--user-id-outline-color, #ffdb4d);
    outline-offset: 2px;
}

.UserID-Account[data-focus-visible-added] .UserID-Avatar::after,
.utilityfocus .UserID-Account:focus .UserID-Avatar::after {
    background-image: none;
}

.UserID-Account[data-focus-visible-added] .UserID-Avatar_child,
.utilityfocus .UserID-Account:focus .UserID-Avatar_child {
    border: none;
    outline: none;
}

.UserID-Account[data-focus-visible-added] .UserID-Avatar_child::after,
.utilityfocus .UserID-Account:focus .UserID-Avatar_child::after {
    background-image: url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/9159ccbbfc9c9b255fa1.svg), url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/bde6b68a2fde3d758973.svg), url(/o__yastatic.net/s3/psf/remote-ps-header/1_7_2/client/cb4f3bee155b059e63c6.svg);
}

.UserID-name {
    overflow: hidden;
    max-width: 152px;
    text-overflow: ellipsis;

    display: inline-block;
    font-size: 15px;
    vertical-align: middle;
    white-space: nowrap;

    margin-right: 8px;
}

.PSHeader .UserID-Wrapper {
    padding-left: 4px;
    padding-right: 4px;
}

.PSHeader_theme_dark .UserID-name {
    color: var(--color-mg-typo-primary, #fff);
}

.PSHeader .UserWidget-Dialog_platform_desktop {
    top: 50px;
}

.PSHeader-MorePopup,
.PSHeader-MorePopup.popup2.popup2_view_default,
.PSHeader-MorePopup.Popup2.Popup2_view_default {
    box-shadow: 0 4px 12px rgba(29, 33, 55, 0.25);
    border-radius: 16px;
    overflow: hidden;
    will-change: transform;
}

.PSHeader-MorePopup_theme_light {
    background-color: #fff;
}

.PSHeader-MorePopup_theme_dark {
    background-color: #222;
}

.PSHeader-MorePopup.Popup2_theme_normal:before,
.PSHeader-MorePopup.popup2_theme_normal:before {
    background: transparent;
}

.PSHeader-MorePopup-content {
    font-family: 'YS Text', sans-serif;
    margin: 6px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.PSHeader-MorePopup-services {
    max-width: 288px;
    display: inline-flex;
    flex-wrap: wrap;
}

.PSHeader-MorePopup-all-services {
    width: 256px;
    height: 38px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    margin-top: 21px;
}

.PSHeader-MorePopup-services .PSHeaderService {
    width: 84px;
    margin-top: 18px;
}

.PSHeader-MorePopup-services .PSHeaderService .PSHeaderService-Text {
    max-width: calc(100% + 12px);
}

.PSHeader-MorePopup_theme_light .PSHeader-MorePopup-all-services {
    background-color: #eceef2;
    color: rgba(34, 34, 34, 0.8);
}

.PSHeader-MorePopup_theme_light .PSHeader-MorePopup-all-services:hover {
    background-color: #e3e5ed;
}

.PSHeader-MorePopup_theme_dark .PSHeader-MorePopup-all-services {
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.PSHeader-MorePopup_theme_dark .PSHeader-MorePopup-all-services:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.PSHeader-MorePopup_theme_dark .PSHeader-MorePopup-all-services:active {
    color: #fff;
}

.PSHeaderIcon {
    display: inline-block;
    width: 48px;
    height: 48px;
    position: relative;
    margin-top: -6px;
}

.PSHeader .PSHeaderIcon {
    width: 36px;
    height: 36px;
}

/**
 * Хаки для Safari – он блюрит SVG если вставить его через `css background` или через `<img src=...` * Но если вставить увеличенную картинку и отскейлить обратно, то всё ок
 Подробнее: https:>