.topActions{
    display:flex;
    align-items:flex-start;
    gap:10px;
    flex:0 0 auto;
}

.desktopNav{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.logoutBtn,
.loginBtnTop{
    display:inline-flex;
    white-space:nowrap;
}

.mobileMenuBtn{
    position:fixed;
    right:20px;
    bottom:20px;
    width:64px;
    height:64px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#2563eb,#10b981);
    color:#fff;
    font-size:26px;
    font-weight:800;
    box-shadow:0 14px 34px rgba(0,0,0,.24);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1001;
    cursor:pointer;
}

.mobileMenuOverlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.28);
    backdrop-filter:blur(4px);
    opacity:0;
    pointer-events:none;
    transition:opacity .18s ease;
    z-index:999;
}

.mobileMenuOverlay.open{
    opacity:1;
    pointer-events:auto;
}

.mobileMenu{
    position:fixed;
    right:20px;
    bottom:96px;
    width:min(280px, calc(100vw - 40px));
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:18px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.96);
    box-shadow:0 24px 60px rgba(15,23,42,.22);
    opacity:0;
    transform:translateY(12px) scale(.98);
    pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
    z-index:1000;
}

.mobileMenu.open{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}

.mobileMenu .btn{
    width:100%;
    justify-content:flex-start;
}

.mobileReqBadge{
    margin-left:auto;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    font-size:12px;
    font-weight:700;
    line-height:20px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,.12);
}

@media (max-width: 720px){
    .topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:12px;
    }
    .card .hd h2{
    font-size: 14px;
    }
    .wrap{padding:10px;}
    .brand{
    min-width:0;
    }

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

    .brand h1,
    .brand .sub{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    }

    .desktopNav{
    display:none;
    }

    .topActions{
    margin-left:0;
    justify-self:end;
    align-self:start;
    }

    .logoutBtn,
    .loginBtnTop{
    display:inline-flex !important;
    padding:10px 12px;
    margin-top:2px;
    }
}

@media (min-width: 721px){
    .mobileMenuBtn,
    .mobileMenu,
    .mobileMenuOverlay{
    display:none;
    }
}