.app-shell {
    position: relative;
    width: min(100%, var(--content-max));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(var(--nav-height) + env(safe-area-inset-bottom) + 28px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin-bottom: 14px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    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;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: linear-gradient(145deg, rgba(72, 224, 194, 0.24), rgba(247, 190, 85, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.page-stack {
    position: relative;
    min-height: 70vh;
    outline: 0;
}

.page-view {
    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;
}
