.ugc-profile-cover__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
}

.ugc-profile-cover__heading h1 {
    flex: 1 1 220px;
    min-width: 0;
}

.ugc-profile-cover__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.ugc-profile-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

#user_profile_title .ugc-profile-cover__tools .ugc-profile-edit-inline,
#user_profile_title .ugc-profile-cover__tools .ugc-profile-channels {
    margin: 0 !important;
}

#user_profile_title .ugc-profile-cover__tools .ugc-profile-edit-inline .ugc-sidebar-link {
    min-height: 36px !important;
    padding: 0 12px !important;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ugc-profile-cover__tools {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }
}

.ugc-profile-channel {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(7, 17, 31, .12);
}

.ugc-profile-channel svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* VK/TG — полный фирменный знак, фон не нужен */
.ugc-profile-channel--vk,
.ugc-profile-channel--tg {
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.ugc-profile-channel--vk svg,
.ugc-profile-channel--tg svg {
    width: 40px;
    height: 40px;
}

.ugc-profile-channel--vk { color: #0077ff; }
.ugc-profile-channel--tg { color: #2aabee; }

.ugc-profile-channel--max {
    color: #fff;
    background: linear-gradient(145deg, #9500ff 0%, #471aff 48%, #00bfff 100%);
}

.ugc-profile-channel--max svg {
    width: 26px;
    height: 26px;
}

.ugc-profile-channel:hover {
    transform: translateY(-1px);
    text-decoration: none;
    filter: brightness(1.06);
}

.ugc-achievements--profile .ugc-achievement,
.ugc-achievements--speaker .ugc-achievement,
#user_profile_title .ugc-achievements--profile .ugc-achievement,
#user_profile_title .ugc-achievement {
    position: relative !important;
    display: inline-grid !important;
    grid-template-columns: 36px !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font: inherit !important;
    line-height: 1 !important;
    appearance: none;
    cursor: pointer;
}

.ugc-achievements--profile .ugc-achievement > b,
.ugc-achievements--speaker .ugc-achievement > b,
#user_profile_title .ugc-achievement > b {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: transparent !important;
    font-size: 18px !important;
}

#user_profile_title.ugc-profile-cover,
.ugc-speaker-profile__hero {
    overflow: visible !important;
}

#user_profile_title.ugc-profile-cover::before {
    border-radius: 8px;
}

.ugc-achievement__tip {
    display: none;
    position: absolute;
    z-index: 50;
    left: 196px !important;
    top: 0 !important;
    bottom: auto !important;
    width: max-content;
    max-width: 220px;
    height: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fffaf1 !important;
    color: #07111f !important;
    text-align: left;
    box-shadow: 0 10px 24px rgba(7, 17, 31, .22);
    pointer-events: none;
    white-space: normal;
}

@media (max-width: 720px) {
    .ugc-achievement__tip {
        left: 0 !important;
        top: calc(100% + 8px) !important;
    }
}

.ugc-achievement__tip strong,
.ugc-achievement__tip small {
    display: block !important;
    color: #07111f !important;
}

.ugc-achievement__tip strong {
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.25;
}

.ugc-achievement__tip small {
    margin-top: 3px;
    color: #4b5563 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.3;
}

.ugc-achievement:hover .ugc-achievement__tip,
.ugc-achievement:focus .ugc-achievement__tip,
.ugc-achievement:focus-visible .ugc-achievement__tip {
    display: block !important;
}
