#inventory-topbar{
    margin-bottom:18px;
}

.inventory-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    background:linear-gradient(145deg,#202020,#161616);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    padding:12px;
    box-shadow:0 12px 35px rgba(0,0,0,0.28);
}

.inventory-topbar-left{
    min-width:160px;
}

.inventory-topbar-brand{
    font-size:20px;
    font-weight:bold;
    letter-spacing:-0.3px;
}

.inventory-topbar-brand span{
    color:var(--accent,#b56cff);
}

.inventory-topbar-sub{
    color:#aaa;
    font-size:12px;
    margin-top:3px;
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap:wrap;
}

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

.inventory-switcher{
    position:relative;
}

.inventory-switcher-btn,
.topbar-settings{
    width:auto;
    margin:0;
    background:#2a2a2a;
    color:white;
    border:1px solid rgba(255,255,255,0.10);
    border-radius:13px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:bold;
}

.topbar-settings{
    min-width:44px;
    justify-content:center;
}

.inventory-switcher-btn .chev{
    color:#aaa;
}

.inventory-switcher-menu{
    display:none;
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    width:280px;
    max-width:calc(100vw - 32px);
    background:#151515;
    border:1px solid rgba(255,255,255,0.12);
    border-radius:16px;
    padding:10px;
    z-index:99999;
    box-shadow:0 20px 50px rgba(0,0,0,0.55);
}

.inventory-switcher.open .inventory-switcher-menu{
    display:block;
}

.menu-title{
    color:#aaa;
    font-size:12px;
    font-weight:bold;
    padding:6px 8px 10px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.menu-list{
    max-height:280px;
    overflow:auto;
}

.inventory-menu-row{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    background:#202020;
    border:1px solid rgba(255,255,255,0.07);
    color:white;
    border-radius:12px;
    padding:10px;
    margin:7px 0;
    text-align:left;
    cursor:pointer;
}

.inventory-menu-row:hover,
.inventory-menu-row.active{
    background:#2a2a2a;
    border-color:rgba(181,108,255,0.35);
}

.inventory-menu-row input{
    width:auto;
    margin:0;
}

.inv-name{
    font-weight:bold;
    font-size:14px;
}

.inv-meta{
    color:#aaa;
    font-size:12px;
    margin-top:3px;
}

.menu-create{
    width:100%;
    margin:10px 0 0;
    background:linear-gradient(135deg,#6f42c1,#56329b);
    color:white;
    border:1px solid rgba(111,66,193,0.45);
    border-radius:12px;
    padding:11px;
    font-weight:bold;
}

@media(max-width:760px){
    .inventory-topbar{
        align-items:stretch;
        flex-direction:column;
    }

    .inventory-topbar-right{
        justify-content:stretch;
        display:grid;
        grid-template-columns:1fr;
    }

    .inventory-switcher-btn,
    .topbar-settings{
        width:100%;
        justify-content:center;
    }

    .inventory-switcher-menu{
        left:0;
        right:auto;
        width:100%;
    }
}
