/* Mobile header: keep navigation available and make search the primary control. */
@media (max-width: 720px) {
  .global-header-band {
    padding-top: 60px !important;
  }

  .global-topbar,
  .search-topbar {
    min-height: 60px !important;
    height: 60px !important;
    padding: 8px 12px !important;
    gap: 8px !important;
  }

  .global-topbar .brand,
  .search-topbar .brand,
  .global-topbar .desktop-auth-links,
  .search-topbar .desktop-auth-links {
    display: none !important;
  }

  .global-topbar .header-hamburger-btn,
  .search-topbar .header-hamburger-btn {
    display: none !important;
  }

  html body .global-header-band .global-topbar form.header-search.topbar-search-form,
  html body .global-header-band .search-topbar form.header-search.topbar-search-form {
    position: relative !important;
    order: initial !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .global-topbar .header-search::before,
  .search-topbar .header-search::before {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
    background: no-repeat center / 16px 16px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") !important;
  }

  html body .global-header-band .global-topbar form.header-search.topbar-search-form .header-search-input,
  html body .global-header-band .search-topbar form.header-search.topbar-search-form .header-search-input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 38px 0 42px !important;
    border: 1px solid #e2e5e9 !important;
    border-radius: 22px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }

  html body .global-header-band .global-topbar form.header-search.topbar-search-form .header-search-input::placeholder,
  html body .global-header-band .search-topbar form.header-search.topbar-search-form .header-search-input::placeholder {
    color: #737373 !important;
    opacity: 1 !important;
  }

  html body .global-header-band .global-topbar form.header-search.topbar-search-form .header-search-input:focus,
  html body .global-header-band .global-topbar form.header-search.topbar-search-form .header-search-input:focus-visible,
  html body .global-header-band .search-topbar form.header-search.topbar-search-form .header-search-input:focus,
  html body .global-header-band .search-topbar form.header-search.topbar-search-form .header-search-input:focus-visible {
    border-color: #a8adb3 !important;
    outline: 2px solid rgba(168, 213, 162, 0.35) !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
  }

  .global-topbar .header-search-btn,
  .global-topbar .topbar-search-form .header-search-btn,
  .search-topbar .header-search-btn,
  .search-topbar .topbar-search-form .header-search-btn {
    display: none !important;
  }

  body.profile-page.settings-page .global-header-band {
    display: none !important;
    padding-top: 0 !important;
  }
}
