.app-shell {
    position: relative;
    width: min(100%, var(--content-max));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;

    padding:
        0
        var(--page-gutter)
        calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 28px);

    overflow-x: clip;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 72px;

    margin:
        10px
        0
        14px;

    padding:
        12px
        max(14px, env(safe-area-inset-right, 0px))
        12px
        max(14px, env(safe-area-inset-left, 0px));
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-lockup > div {
    min-width: 0;
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-lockup strong {
    font-size: 1rem;
    line-height: 1.2;
}

.brand-lockup small {
    max-width: 250px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.brand-mark,
.profile-avatar {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    font-weight: 800;
}

.topbar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.page-stack {
    position: relative;
    width: 100%;
    min-height: 70vh;
    outline: 0;
    overflow-x: clip;
}

.page-view {
    width: 100%;
    max-width: 100%;
    animation: pageIn var(--transition) both;
}

.page-view[hidden] {
    display: none;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 14px;
}

.section-heading h1 {
    font-size: 1.35rem;
    line-height: 1.15;
}
