header.vd-shell-header,
header.vd-security-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    line-height: 1.45;
}

header.vd-shell-header .vd-primary-nav,
header.vd-security-header .vd-primary-nav {
    justify-content: center;
}

header.vd-shell-header .vd-header-actions,
header.vd-security-header .vd-header-actions {
    justify-content: flex-end;
}

header.vd-shell-header .vd-button,
header.vd-security-header .vd-button {
    font-size: 16px;
    line-height: 1.45;
}

.vd-header-actions {
    min-width: 0;
}

.vd-header-actions form,
.vd-header-actions > .vd-button {
    flex-shrink: 0;
}

.vd-account-identity {
    display: grid;
    gap: 2px;
    min-width: 0;
    max-width: 220px;
    margin-right: 8px;
    text-align: right;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.vd-account-identity span {
    color: var(--vd-muted);
    font-size: 12px;
    font-weight: 400;
}

.vd-account-identity strong {
    color: var(--vd-strong);
    font-size: 14px;
    font-weight: 500;
}

.vd-account-identity:hover strong,
.vd-account-identity:focus-visible strong {
    color: var(--vd-green-dark);
    text-decoration: underline;
}

@media (max-width: 760px) {
    header.vd-shell-header,
    header.vd-security-header {
        position: static;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    header.vd-shell-header .vd-brand img,
    header.vd-security-header .vd-security-brand img {
        width: 210px;
    }

    header.vd-shell-header .vd-primary-nav,
    header.vd-security-header .vd-primary-nav,
    header.vd-shell-header .vd-header-actions,
    header.vd-security-header .vd-header-actions {
        justify-content: flex-start;
    }

    header.vd-shell-header .vd-menu-toggle,
    header.vd-security-header .vd-menu-toggle {
        font-size: 14px;
        line-height: 1.45;
    }

    .vd-header-actions,
    .vd-security-header .vd-header-actions {
        width: 100%;
    }

    .vd-account-identity,
    .vd-security-header .vd-account-identity {
        flex: 1;
        max-width: none;
        text-align: left;
    }

    .vd-header-actions form,
    .vd-header-actions form .vd-button {
        width: auto;
    }
}

