header.topbar {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 22px !important;
    min-height: 76px !important;
}

header.topbar .company-brand {
    display: flex !important;
    align-items: center;
    min-width: 0 !important;
}

header.topbar .company-brand img {
    display: block;
    width: 145px !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

header.topbar nav {
    justify-content: center;
    margin: 0 !important;
}

.public-brand-logo {
    width: min(1180px, calc(100% - 40px));
    margin: 18px auto 0;
}

.public-brand-logo img {
    display: block;
    width: 145px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 1050px) {
    header.topbar { grid-template-columns: 140px minmax(0, 1fr); }
    header.topbar nav { justify-content: flex-end; }
    header.topbar .account-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 820px) {
    header.topbar { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 14px; }
    header.topbar nav, header.topbar .account-actions { grid-column: 1; justify-content: flex-start; }
    header.topbar .company-brand img, .public-brand-logo img { width: 128px !important; max-height: 43px !important; }
    .public-brand-logo { width: min(100% - 28px, 1180px); }
}
