.sosg-site-header,
.sosg-site-header * {
    box-sizing: border-box;
}

.sosg-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(228, 231, 236, .92);
    background: rgba(255, 255, 255, .96);
    color: #101828;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sosg-header-inner {
    display: flex;
    align-items: center;
    width: min(1200px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    gap: 26px;
}

.sosg-header-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.sosg-header-logo img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 146px;
    object-fit: contain;
}

.sosg-header-nav,
.sosg-header-actions {
    display: flex;
    align-items: center;
}

.sosg-header-nav {
    flex: 1 1 auto;
    gap: 4px;
}

.sosg-header-actions {
    flex: 0 0 auto;
    gap: 8px;
}

.sosg-header-link,
.sosg-header-button,
.sosg-header-account,
.sosg-header-language > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #344054;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.sosg-header-link { padding: 0 11px; }

.sosg-header-link:hover,
.sosg-header-link:focus-visible,
.sosg-header-language > summary:hover,
.sosg-header-language > summary:focus-visible {
    background: #f2f4f7;
    color: #101828;
    outline: none;
}

.sosg-header-button {
    padding: 0 16px;
    border: 1px solid #d0d5dd;
}

.sosg-header-button:hover,
.sosg-header-button:focus-visible {
    border-color: #98a2b3;
    background: #f9fafb;
    color: #101828;
    outline: none;
}

.sosg-header-button-primary {
    border-color: #c91858;
    background: #c91858;
    color: #fff;
}

.sosg-header-button-primary:hover,
.sosg-header-button-primary:focus-visible {
    border-color: #a91149;
    background: #a91149;
    color: #fff;
}

.sosg-header-account {
    max-width: 190px;
    padding: 4px 10px 4px 6px;
    gap: 8px;
}

.sosg-header-account:hover,
.sosg-header-account:focus-visible {
    background: #fff0f5;
    color: #a91149;
    outline: none;
}

.sosg-header-avatar {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #f7b4ce;
    border-radius: 50%;
    object-fit: cover;
}

.sosg-header-username {
    display: block;
    min-width: 0;
    max-width: 124px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sosg-header-language {
    position: relative;
    margin: 0;
}

.sosg-header-language > summary {
    min-width: 46px;
    padding: 0 10px;
    list-style: none;
}

.sosg-header-language > summary::-webkit-details-marker,
.sosg-header-menu > summary::-webkit-details-marker {
    display: none;
}

.sosg-header-language > summary::after {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.sosg-header-language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    padding: 7px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .12);
}

.sosg-header-language-menu a {
    display: block;
    padding: 10px 11px;
    border-radius: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sosg-header-language-menu a:hover,
.sosg-header-language-menu a:focus-visible {
    background: #f2f4f7;
    color: #101828;
    outline: none;
}

.sosg-header-menu { display: none; }

@media (max-width: 1080px) {
    .sosg-header-inner {
        width: min(100% - 28px, 1200px);
        min-height: 62px;
        justify-content: space-between;
    }

    .sosg-header-nav,
    .sosg-header-actions {
        display: none;
    }

    .sosg-header-menu {
        position: relative;
        display: block;
        margin: 0;
    }

    .sosg-header-menu > summary {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 11px;
        border: 1px solid #d0d5dd;
        border-radius: 11px;
        background: #fff;
        color: #344054;
        list-style: none;
        place-content: center;
        cursor: pointer;
    }

    .sosg-header-menu-icon,
    .sosg-header-menu-icon::before,
    .sosg-header-menu-icon::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        content: "";
    }

    .sosg-header-menu-icon { position: relative; }
    .sosg-header-menu-icon::before { position: absolute; top: -6px; }
    .sosg-header-menu-icon::after { position: absolute; top: 6px; }

    .sosg-header-menu[open] .sosg-header-menu-icon { background: transparent; }
    .sosg-header-menu[open] .sosg-header-menu-icon::before { top: 0; transform: rotate(45deg); }
    .sosg-header-menu[open] .sosg-header-menu-icon::after { top: 0; transform: rotate(-45deg); }

    .sosg-header-mobile-panel {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        display: grid;
        width: min(330px, calc(100vw - 28px));
        max-height: calc(100vh - 92px);
        padding: 10px;
        overflow-y: auto;
        border: 1px solid #e4e7ec;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 20px 45px rgba(16, 24, 40, .16);
        gap: 4px;
    }

    .sosg-header-mobile-panel .sosg-header-link,
    .sosg-header-mobile-panel .sosg-header-button,
    .sosg-header-mobile-panel .sosg-header-account {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        padding-right: 13px;
        padding-left: 13px;
    }

    .sosg-header-mobile-panel .sosg-header-account { padding-left: 8px; }
    .sosg-header-mobile-panel .sosg-header-username { max-width: 230px; }

    .sosg-header-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 7px;
        gap: 8px;
    }

    .sosg-header-mobile-actions .sosg-header-button { justify-content: center; }

    .sosg-header-mobile-languages {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 6px;
        padding-top: 9px;
        border-top: 1px solid #eaecf0;
        gap: 6px;
    }

    .sosg-header-mobile-languages a {
        padding: 10px;
        border-radius: 9px;
        background: #f9fafb;
        color: #475467;
        font-size: 13px;
        font-weight: 650;
        text-align: center;
        text-decoration: none;
    }
}

@media (max-width: 420px) {
    .sosg-header-logo img { height: 32px; max-width: 128px; }
    .sosg-header-mobile-panel .sosg-header-username { max-width: 200px; }
}
