@media (min-width: 769px) and (max-width: 1199px) {
  .wm-stable-topbar {
    gap: 8px !important;
    padding-inline: 14px !important;
  }

  .wm-stable-page-title {
    flex: 0 0 auto !important;
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .wm-stable-search {
    width: 200px !important;
    min-width: 0 !important;
    max-width: 200px !important;
    flex: 0 1 200px !important;
  }

  .wm-stable-search-input {
    min-width: 0 !important;
  }

  .wm-stable-top-actions {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  .wm-stable-ai-btn {
    display: none !important;
  }

  .wm-stable-lang,
  .wm-runtime-lang-select {
    min-width: 104px !important;
    max-width: 104px !important;
  }

  .wm-stable-icon-btn {
    white-space: nowrap !important;
  }

  .wm-page-header,
  .wm-mail-head,
  .wm-im-head,
  .daily-header {
    flex-wrap: wrap !important;
    height: auto !important;
    min-width: 0 !important;
  }

  .wm-page-header > *,
  .wm-mail-head > *,
  .wm-im-head > *,
  .daily-header > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .wm-page-header .header-actions,
  .wm-mail-head .header-actions,
  .wm-im-head .header-actions,
  .daily-header .header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    max-width: 100% !important;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .wm-stable-search {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .wm-stable-icon-btn .wm-action-text {
    display: inline !important;
    white-space: nowrap !important;
  }

  .wm-stable-icon-btn {
    min-width: 42px !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 480px) {
  .wm-stable-page-title {
    display: none !important;
  }

  .wm-stable-menu-btn {
    min-width: 44px !important;
    flex: 0 0 44px !important;
    white-space: nowrap !important;
  }

  .wm-stable-top-actions {
    gap: 4px !important;
  }

  .wm-stable-page-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 375px) {
  .wm-stable-topbar {
    gap: 3px !important;
    padding-inline: 6px !important;
  }

  .wm-stable-lang,
  .wm-runtime-lang-select {
    min-width: 92px !important;
    max-width: 92px !important;
    padding-inline: 3px !important;
  }

  #wm-web-update-badge,
  #wm-native-update-badge {
    min-width: 60px !important;
    padding-inline: 5px !important;
    gap: 4px !important;
  }
}
