/* Public mobile shell: keep desktop overrides from imposing fixed tracks. */
@media (max-width: 900px) {
  #header.lot4b-header .lot4b-header-top {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 8px !important;
    min-height: 0 !important;
    padding: 8px 12px !important;
  }
  #header.lot4b-header .lot4b-brand { width: 108px; min-width: 0; }
  html #header.lot4b-header .lot4b-brand img { width: 100% !important; max-width: 100%; height: 48px !important; }
  #header.lot4b-header .lot4b-header-actions { gap: 2px !important; min-width: 0; }
  #header.lot4b-header .lot4b-header-actions .account-nav { display: none !important; }
  #header.lot4b-header .lot4b-header-actions > *:not(:last-child):not(.menu)::after { display: none !important; }
  #header.lot4b-header .lot4b-header-actions :is(.lang, .market-country-trigger) {
    padding-inline: 5px !important;
    font-size: 12px !important;
  }
  #header.lot4b-header .lot4b-header-actions .menu { min-width: 32px; min-height: 40px; }
  #header.lot4b-header .lot4b-header-search {
    grid-template-columns: minmax(0, 1fr) 130px 110px 40px !important;
    width: 100%; max-width: 100% !important;
    border-radius: 14px !important;
  }
  #header.lot4b-header .lot4b-header-search input { font-size: 16px !important; }
  #header.lot4b-header .lot4b-tabs-row { min-height: 48px !important; padding: 4px 12px !important; }
  #header.lot4b-header .lot4b-post-actions .btn.small { min-height: 38px !important; }
  #header.lot4b-header.is-compact .lot4b-brand img { height: 36px !important; }
}
@media (max-width: 520px) {
  #header.lot4b-header .lot4b-header-top { grid-template-columns: 96px minmax(0, 1fr); }
  #header.lot4b-header .lot4b-brand { width: 96px; }
  #header.lot4b-header .lot4b-header-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px !important;
    padding: 4px !important;
  }
  #header.lot4b-header .lot4b-header-search input {
    grid-column: 1 / 3; grid-row: 1;
    padding-inline: 8px !important; height: 38px !important;
  }
  #header.lot4b-header .lot4b-picker-trigger { height: 36px !important; padding-inline: 6px !important; }
  #header.lot4b-header .lot4b-search-button { grid-column: 3; grid-row: 1 / 3; height: 44px !important; }
  #header.lot4b-header .lot4b-post-actions { gap: 8px !important; }
  #header.lot4b-header .lot4b-post-actions .btn.small { flex: 1; padding-inline: 10px !important; }
  #header.lot4b-header .lot4b-header-actions .bell-menu {
    position: fixed; inset-inline: 12px; top: 64px; width: auto; max-width: none;
  }
}
