.cleanupp-header,
.cleanupp-header .top-bar.CleanUppMenu {
    height: auto;
    min-height: 64px;
    overflow: visible;
}

.cleanupp-header .top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
}

.cleanupp-header .top-bar .title-area {
    display: flex;
    align-items: center;
    gap: 12px;
    float: none;
    width: auto;
    min-height: 64px;
    margin: 0;
}

.cleanupp-header .top-bar::before,
.cleanupp-header .top-bar::after {
    display: none;
}

.cleanupp-header .top-bar.expanded .title-area {
    background: transparent;
}

.cleanupp-header .topbar-brand {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 1;
}

.cleanupp-header .top-bar .focus-mode-control {
    padding: 0;
}

.cleanupp-header .topbar-navigation {
    flex: 1;
    min-width: 0;
}

.cleanupp-header .topbar-links {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    margin: 0;
    list-style: none;
}

.cleanupp-header .topbar-links > li {
    float: none;
}

.cleanupp-header .topbar-navigation .topbar-links > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 15px;
    line-height: 24px;
    white-space: nowrap;
}

.cleanupp-header .topbar-navigation .topbar-links > li:last-child > a {
    padding-inline: 12px;
}

.cleanupp-header .topbar-navigation .topbar-links > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cleanupp-header .topbar-navigation .topbar-links > li > .topbar-register-link {
    background: #e97913;
}

.cleanupp-header .topbar-account-area {
    flex: 0 0 auto;
    margin: 0;
    list-style: none;
}

.cleanupp-header .topbar-account-area > li,
.cleanupp-header .topbar-account {
    position: relative;
}

.cleanupp-header .topbar-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
    list-style: none;
}

.cleanupp-header summary::-webkit-details-marker {
    display: none;
}

.cleanupp-header .topbar-account-link:hover,
.cleanupp-header .topbar-account[open] > summary {
    background: rgba(255, 255, 255, 0.2);
}

.cleanupp-header .topbar-account-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.cleanupp-header .topbar-account-name {
    max-width: 12ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cleanupp-header .topbar-account-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    margin: 0;
    list-style: none;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 32px rgba(23, 52, 69, 0.18);
}

.cleanupp-header .topbar-account-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
    color: #183b50;
    font-size: 15px;
    line-height: 22px;
}

.cleanupp-header .topbar-account-menu a:hover {
    background: #eef7fc;
}

.cleanupp-header .ccsmLst,
.cleanupp-header .ccsmLst .sub-nav {
    width: 100%;
    margin: 0;
}

.cleanupp-header .ccsmLst .sub-nav dd.ccsm {
    width: 100%;
    margin: 0;
}

.cleanupp-header .ccsmLst .sub-nav dd.ccsm > a {
    color: white;
}

.cleanupp-header .ccsmLst .sub-nav dd.ccsm > a:hover {
    background: rgba(0, 0, 0, 0.15);
}

.cleanupp-header .top-bar .topbar-menu-control {
    display: none;
    margin-left: auto;
}

.cleanupp-header .topbar-menu-control button {
    position: static;
    display: flex;
    align-items: center;
    gap: 9px;
    height: auto;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    line-height: 24px;
}

.cleanupp-header .topbar-menu-icon {
    width: 16px;
    height: 12px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    position: relative;
}

.cleanupp-header .topbar-menu-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    border-top: 2px solid currentColor;
}

.cleanupp-header :is(a, button, summary):focus-visible {
    outline: 2px solid #183b50;
    outline-offset: 3px;
}

@media only screen and (max-width: 1279px) {
    .cleanupp-header .top-bar {
        flex-wrap: wrap;
        gap: 0 12px;
        padding: 0 16px;
    }

    .cleanupp-header .top-bar .title-area {
        flex: 1;
    }

    .cleanupp-header .top-bar .topbar-menu-control {
        display: block;
    }

    .cleanupp-header .topbar-navigation {
        order: 3;
        flex: 0 0 100%;
        padding-bottom: 16px;
    }

    .cleanupp-header .topbar-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 8px 24px rgba(23, 52, 69, 0.1);
    }

    .cleanupp-header .topbar-navigation .topbar-links > li > a {
        color: #183b50;
        text-align: left;
    }

    .cleanupp-header .topbar-navigation .topbar-links > li > a:hover {
        background: #eef7fc;
    }

    .cleanupp-header .topbar-navigation .topbar-links > li > .topbar-register-link {
        color: white;
    }

    .cleanupp-header [data-topbar-ready]:not(.expanded) .topbar-navigation {
        display: none;
    }
}

@media only screen and (max-width: 479px) {
    .cleanupp-header .top-bar {
        padding: 0 12px;
        gap: 0 8px;
    }

    .cleanupp-header .topbar-brand {
        font-size: 22px;
    }

    .cleanupp-header .top-bar .title-area {
        gap: 8px;
    }

    .cleanupp-header .topbar-account-name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .cleanupp-header .topbar-account-link,
    .cleanupp-header .topbar-menu-control button {
        padding: 9px 10px;
        font-size: 14px;
    }

    .cleanupp-header .topbar-links {
        grid-template-columns: 1fr;
    }
}
