.app-shell {
    min-height: 100vh;
}

.top-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    display: flex;
    align-items: center;
    min-height: var(--top-bar-height);
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(238, 240, 235, .72);
    backdrop-filter: blur(20px);
}

.brand-lockup {
    display: flex;
    align-items: baseline;
    gap: .42rem;
}

.brand-mark {
    font-weight: 700;
    letter-spacing: -.03em;
}

.brand-app {
    color: var(--muted);
    font-size: .9rem;
}

.top-bar-spacer {
    flex: 1;
}

.organization-button {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 42px;
    padding: 0 .9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
}

.organization-button:hover {
    background: rgba(27, 33, 29, .07);
}

.role-badge {
    padding: .18rem .5rem;
    border-radius: 999px;
    background: rgba(31, 93, 70, .12);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
}

.app-drawer {
    position: fixed;
    inset: var(--top-bar-height) auto 0 0;
    z-index: 25;
    width: min(320px, 88vw);
    padding: 1rem;
    border-right: 1px solid var(--line);
    background: rgba(248, 249, 246, .96);
    transform: translateX(-102%);
    transition: transform .22s ease;
}

.app-drawer.is-open {
    transform: translateX(0);
}

.drawer-nav {
    display: grid;
    gap: .35rem;
}

.drawer-item {
    width: 100%;
    padding: .85rem 1rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    text-align: left;
    font-weight: 600;
}

.drawer-item:hover,
.drawer-item.is-active {
    background: rgba(31, 93, 70, .1);
    color: var(--accent);
}

.drawer-divider {
    height: 1px;
    margin: .7rem 0;
    background: var(--line);
}

.drawer-scrim {
    position: fixed;
    inset: var(--top-bar-height) 0 0;
    z-index: 20;
    display: none;
    border: 0;
    background: rgba(16, 20, 17, .28);
}

.drawer-scrim.is-visible {
    display: block;
}

.main-content {
    min-height: 100vh;
    padding: calc(var(--top-bar-height) + 2rem) clamp(1rem, 4vw, 4rem) 4rem;
}
