.topbar,
.topbar-inner {
    overflow: visible;
}

.topbar-inner {
    position: relative;
}

.topbar nav .nav-logged-in-link[hidden],
.user-nav .nav-guest-links[hidden],
.user-nav .header-account[hidden],
.header-account-avatar[hidden],
.account-avatar-fallback[hidden] {
    display: none !important;
}

.user-nav {
    height: 100%;
    gap: 16px;
}

.nav-resume-tools,
.nav-guest-links,
.topbar .header-account {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-guest-links {
    gap: 14px;
}

.nav-resume-tools > a,
.nav-guest-links > a,
.topbar .account-menu-trigger,
.account-recruit-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 2px;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.nav-resume-tools > a:hover,
.nav-resume-tools > a:focus-visible,
.nav-guest-links > a:hover,
.nav-guest-links > a:focus-visible,
.topbar .account-menu-trigger:hover,
.topbar .account-menu-trigger:focus-visible,
.account-recruit-link:hover,
.account-recruit-link:focus-visible {
    color: var(--accent);
}

.header-control-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.topbar .header-account {
    gap: 14px;
    margin: 0;
}

.account-menu {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
}

.topbar .account-menu-trigger {
    position: relative;
    height: 100%;
    padding: 0 2px;
}

.account-unread-dot {
    width: 7px;
    height: 7px;
    margin-left: -3px;
    border-radius: 50%;
    background: #f04438;
}

.account-dropdown {
    position: absolute;
    z-index: 40;
    top: 100%;
    right: -12px;
    display: none;
    overflow: hidden;
    width: 190px;
    padding: 4px 0;
    border: 1px solid #eceef1;
    border-top: 2px solid var(--accent);
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, .14);
    color: #555;
    font-size: 14px;
    text-align: left;
    white-space: normal;
}

.account-menu:hover > .account-dropdown,
.account-menu:focus-within > .account-dropdown {
    display: block;
}

.account-dropdown > a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f2;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    transition: color .15s ease, background-color .15s ease;
}

.account-dropdown > a:last-child {
    border-bottom: 0;
}

.account-dropdown > a:hover,
.account-dropdown > a:focus-visible {
    background: #f8f9fb;
    color: var(--accent);
}

.account-message-dropdown {
    right: -106px;
    width: 320px;
    padding: 8px;
    border-radius: 0 0 12px 12px;
}

.account-message-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-bottom: 0;
    border-radius: 8px;
    background: #f3f4f6;
}

.account-message-tabs button {
    display: flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.account-message-tabs button[aria-selected="true"] {
    color: var(--accent);
    background: #fff;
    box-shadow: 0 1px 4px rgba(31, 41, 55, .12);
}

.account-message-dropdown .account-message-row {
    display: flex;
    min-height: 58px;
    margin-top: 8px;
    padding: 9px 11px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #edf0f2;
    border-radius: 8px;
    background: #fff;
    color: #444;
}

.account-message-dropdown .account-message-row:hover,
.account-message-dropdown .account-message-row:focus-visible {
    border-color: #ffd4ca;
    background: #fff8f6;
    color: var(--accent);
}

.account-message-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff1ed;
    color: var(--accent);
}

.account-message-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.account-message-title {
    flex: 1;
    font-size: 14px;
}

.account-message-panel[hidden] {
    display: none !important;
}

.account-message-empty {
    display: grid;
    min-height: 58px;
    margin: 8px 0 0;
    padding: 12px 16px;
    place-items: center;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.account-message-arrow {
    margin-left: auto;
    color: #999;
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease, color .15s ease;
}

.account-message-row:hover .account-message-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

.account-settings-dropdown {
    right: -26px;
    width: 190px;
}

.account-profile-dropdown {
    right: 0;
    width: 174px;
}

.account-recruit-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-color: currentColor;
    -webkit-mask: url('https://img3.job1001.com/talentNetworkNew/images/changeRole.svg') center / contain no-repeat;
    mask: url('https://img3.job1001.com/talentNetworkNew/images/changeRole.svg') center / contain no-repeat;
}

.account-profile-trigger {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.account-profile-trigger:hover,
.account-profile-trigger:focus-visible {
    background: #f3f4f6;
}

.header-account-avatar,
.account-avatar-fallback,
.account-avatar-fallback svg {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.header-account-avatar,
.account-avatar-fallback {
    object-fit: cover;
}

@media (max-width: 1060px) {
    .topbar .header-account {
        gap: 9px;
    }

    .nav-guest-links {
        gap: 8px;
    }
}

@media (max-width: 760px) {
    .topbar .header-account {
        gap: 8px;
    }

    .topbar .account-menu-settings,
    .topbar .account-recruit-link,
    .nav-guest-links > a:not(.header-login-btn) {
        display: none;
    }

    .account-message-dropdown {
        right: -60px;
        width: min(330px, calc(100vw - 24px));
    }
}

/* Use the same text size throughout the top navigation, at every breakpoint. */
.trade-v2 .topbar-inner,
.trade-v2 .topbar-inner .slogan,
.trade-v2 .topbar-inner .hotline {
    font-size: 14px;
}
