.profile-feed-main-toolbar .feed-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-feed-main-toolbar .profile-feed-mode-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-feed-main-toolbar .feed-mode-btn {
  cursor: pointer;
  text-decoration: none;
}

.profile-feed-main-toolbar .feed-mode-btn.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.profile-feed-main-toolbar .profile-feed-filter-dropdowns {
  flex: 0 1 500px;
  margin-left: auto;
}

.profile-feed-main-toolbar .feed-filter-select-wrap {
  width: 100%;
}

.profile-feed-main-toolbar .feed-sort-tabs button {
  cursor: pointer;
}

.profile-feed-main-toolbar .feed-sort-tabs button.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

@media (max-width: 980px) {
  .profile-feed-main-toolbar .feed-toolbar-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  .profile-feed-main-toolbar .profile-feed-mode-bar {
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .profile-feed-main-toolbar .feed-mode-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 7px;
    text-align: center;
    white-space: nowrap;
  }

  .profile-feed-main-toolbar .profile-feed-filter-dropdowns {
    flex: 0 0 clamp(126px, 34vw, 170px);
    margin-left: 0;
    max-width: 170px;
    min-width: 126px;
  }

  .profile-feed-main-toolbar .profile-feed-filter-dropdowns select {
    width: 100%;
    min-height: 38px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 12px;
    line-height: 1.1;
  }
}

@media (max-width: 430px) {
  .profile-feed-main-toolbar .feed-toolbar-row {
    gap: 5px;
  }

  .profile-feed-main-toolbar .profile-feed-mode-bar {
    gap: 5px;
  }

  .profile-feed-main-toolbar .feed-mode-btn {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
  }

  .profile-feed-main-toolbar .profile-feed-filter-dropdowns {
    flex-basis: 124px;
    min-width: 124px;
  }
}
