.xfive-global-header__left,
.xfive-employee-global-header__left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.xfive-global-back {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #2563eb;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .05),
        0 1px 3px rgba(15, 23, 42, .06);
    cursor: pointer;
    transition:
        color .16s ease,
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.xfive-global-back:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, .12);
    transform: translateY(-1px);
}

.xfive-global-back:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
    color: #1d4ed8;
    border-color: #60a5fa;
}

.xfive-global-back:active {
    transform: translateY(0);
}

.xfive-global-back svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.xfive-global-back--standalone {
    position: relative;
    z-index: 20;
    margin: 14px 0 0 14px;
}

@media (max-width: 700px) {
    .xfive-global-header__left,
    .xfive-employee-global-header__left {
        gap: 8px;
    }

    .xfive-global-back {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .xfive-global-back svg {
        width: 21px;
        height: 21px;
    }

    .xfive-global-back--standalone {
        margin: 10px 0 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xfive-global-back {
        transition: none;
    }

    .xfive-global-back:hover,
    .xfive-global-back:active {
        transform: none;
    }
}
