@media (min-width: 761px) {
    html body .topbar .topbar-nav {
        flex: 0 1 auto;
        justify-content: center;
        gap: 5px;
        min-width: 0;
    }

    html body .topbar .topbar-actions {
        flex: 0 0 auto;
        justify-content: flex-end;
        min-width: 0;
        flex-wrap: nowrap;
    }

    html body .topbar .topbar-nav a {
        padding-inline: 3px;
        font-size: .76rem;
    }
}

@media (min-width: 761px) and (max-width: 1100px) {
    html body .topbar {
        grid-template-columns: max-content minmax(0, 1fr);
        justify-content: stretch;
    }

    html body .topbar .topbar-nav {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        justify-content: center;
        gap: 5px;
    }

    html body .topbar .topbar-actions {
        width: 100%;
        max-width: none;
        justify-self: stretch;
        justify-content: space-evenly;
    }
}

@media (max-width: 760px) {
    html body .topbar {
        grid-template-columns: minmax(0, 1fr) max-content;
        justify-content: stretch;
        justify-items: stretch;
    }

    html body .topbar .topbar-nav {
        display: flex;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    html body .topbar .topbar-nav a {
        padding-inline: 3px;
        font-size: .76rem;
    }
}

@media (min-width: 960px) and (max-width: 1100px) {
    html body .topbar {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        grid-template-areas: "brand nav actions";
        justify-content: stretch;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
    }

    html body .topbar > .brand {
        grid-area: brand;
        justify-self: start;
        gap: 0;
    }

    html body .topbar .brand-mark {
        width: 32px;
        height: 32px;
    }

    html body .topbar .topbar-nav {
        grid-area: nav;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        justify-content: center;
        gap: 5px;
        flex: 1 1 auto;
    }

    html body .topbar .topbar-nav a {
        flex: 0 1 auto;
        padding-inline: 3px;
        font-size: .76rem;
        white-space: nowrap;
    }

    html body .topbar .topbar-actions {
        grid-area: actions;
        width: max-content;
        max-width: 100%;
        justify-self: end;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 4px;
    }

    html body .topbar .topbar-actions > a {
        flex: 0 0 auto;
        padding-inline: 6px;
        font-size: .68rem;
    }

    html body .topbar .topbar-actions > a.topbar-app-link {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    html body .topbar .language-switch {
        gap: 2px;
        padding: 3px;
    }

    html body .topbar .language-switch .lang-pill {
        min-height: 28px;
        padding-inline: 6px;
        font-size: .68rem;
    }
}
