@media(max-width:520px) {
  .vs-menu>.vs-dd {
    max-height: 70vh;
  }
}

@media(max-width:1280px) {
  .fb-topbar__left {
    flex: 0 0 220px;
    width: 220px;
  }
  .fb-topbar__right {
    flex: 0 0 220px;
  }
}

@media(max-width:1024px) {
  .fb-topbar__left {
    flex: 0 0 180px;
    width: 180px;
  }
  .fb-topbar__right {
    flex: 0 0 180px;
  }
}

@media(max-width:900px) {
  .fb-topbar__left,.fb-topbar__right {
    flex: 0 0 auto;
  }
  .fb-search-input {
    width: 140px;
  }
  .fb-search-input:focus {
    width: 180px;
  }
  .fb-navtab {
    min-width: 52px;
  }
}

@media(max-width:600px) {
  .fb-topbar-search {
    display: none;
  }
  .mobile-search-open {
    display: flex;
  }
  .fb-topbar__left {
    flex: 0 0 auto;
    min-width: 0;
  }
  .fb-navtab {
    min-width: 40px;
  }
  #friends-panel {
    left: 8px!important;
    right: 8px!important;
    transform: none!important;
    width: auto!important;
  }
  .fb-waffle-panel {
    left: 8px!important;
    right: 8px!important;
    width: auto!important;
  }
  .fb-panel {
    left: 8px!important;
    right: 8px!important;
    width: auto!important;
    max-height: 75vh;
  }
}

@media(max-width:480px) {
  .fb-topbar {
    display: grid!important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 8px;
    gap: 0;
  }
  .fb-topbar__left {
    display: flex;
    align-items: center;
  }
  .fb-topbar__center {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-width: 0;
  }
  .fb-topbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }
  .fb-navtab {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 0;
  }
  .fb-navtab svg {
    width: 20px;
    height: 20px;
  }
  .fb-topbar-logo__word {
    font-size: 15px;
  }
  .fb-topbar-icon-btn {
    width: 32px;
    height: 32px;
  }
  .fb-topbar-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .fb-topbar-avatar {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }
  .fb-topbar-avatar__init {
    font-size: 12px;
  }
  .fb-user-menu {
    right: 6px;
    min-width: 200px;
  }
  .mobile-search-open {
    display: flex;
  }
  .fb-topbar-btn {
    padding: 0 10px;
    font-size: 12px;
    height: 32px;
  }
  .fb-topbar-btn--ghost {
    padding: 0 8px;
    font-size: 11px;
  }
  #waffle-btn {
    display: none;
  }
}

@media(max-width:600px) {
  #mobile-search-open {
    order: 1;
  }
  #waffle-btn {
    order: 1;
  }
  #notif-btn {
    order: 2;
  }
  #avatar-menu-btn {
    order: 3;
  }
  #chat-btn {
    order: 4;
  }
}

