/* Layout only. Keep native typography, palette, imagery and contract mode colours. */
@media (max-width: 1024px), (pointer: coarse) {
  header.premium-header :is(.header-shell, .header-left, .header-right, .mobile-topbar, .mobile-topbar-actions, .mobile-actions),
  :is(.premium-home, .csc3, .upg, .cb-lobby) :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
  }

  header.premium-header.csdrop-header-uniform-v76 :is(.desktop-only, .mobile-only)
    :is(.csdrop-prefs__gear, .hamburger-btn, .auth-btn, .owner-admin-button, .wallet-card, .account-profile, .csiv-trigger) {
    min-height: 44px !important;
    height: auto !important;
    max-height: none !important;
  }
  header.premium-header :is(.csdrop-prefs__gear, .hamburger-btn) {
    min-width: 44px !important;
    width: 44px !important;
    flex-shrink: 0;
  }
  header.premium-header.csdrop-header-uniform-v76 :is(.desktop-only, .mobile-only) .csdrop-prefs__gear {
    min-width: 44px !important;
    width: 44px !important;
    max-width: 44px !important;
  }
  header.premium-header :is(.nav-link, .mobile-nav-link) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  header.premium-header .mobile-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  header.premium-header .mobile-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
  }
  header.premium-header .mobile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header.premium-header .mobile-actions {
    min-width: 0;
  }

  :is(.premium-home, .csc3, .upg, .cb-lobby) button {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  :is(.premium-home, .csc3, .upg, .cb-lobby) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), select) {
    min-height: 44px !important;
  }
  .premium-home .collection-block .collection-header__tools > button.collection-toggle {
    height: 44px !important;
  }
  .premium-home .case-favorite {
    width: 44px !important;
    height: 44px !important;
  }
  .premium-home :is(.cs-filter-price, .cs-filter-actions),
  .upg :is(.heading, .head-ctrl, .lp-h, .lp-tools),
  .csc3 :is(.csc3-title, .csc3-section-heading, .csc3-selection-bar),
  .cb-lobby :is(.cb-heading, .cb-tabs-bar, .cb-toolbar) {
    min-width: 0;
    flex-wrap: wrap;
  }
  .upg .lp-tools {
    max-width: 100%;
  }
  .upg .mults {
    flex-wrap: wrap;
    min-width: 0;
  }
  .upg .head-ctrl .modes {
    height: auto;
    min-height: 44px;
  }
  .cb-lobby :is(.cb-select, .cb-search, .cb-format, .cb-price-filter summary) {
    height: auto;
    min-height: 46px;
  }
  .csc3 :is(.csc3-submit, .csc3-secondary),
  .cb-lobby .cb-primary {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .upg .lp-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(64px, .55fr) auto;
    width: 100%;
  }
  .upg .lp-tools :is(.f-search, .f-min) {
    width: 100%;
    min-width: 0;
  }
  .cb-lobby .cb-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }
  .cb-lobby .cb-select {
    min-width: 0;
    gap: 4px;
    padding-inline: 6px;
  }
  .cb-lobby .cb-select select { min-width: 44px; }
  .cb-lobby :is(.cb-icon-button.cb-reset, .cb-icon-button.cb-pause) {
    width: 44px;
  }
  .cb-lobby .cb-row-action {
    height: auto;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .upg .head-ctrl { width: 100%; }
  .upg .head-ctrl .modes {
    flex: 1 1 100%;
    display: flex;
    min-width: 0;
  }
  .upg .head-ctrl .modes > button { flex: 1 1 0; }
}

.cs-ob-bots{display:none!important}
