/* Mobile already exposes the account and unread badge in the bottom navigation.
   Hide the duplicate header control so large balances cannot wrap it over titles. */
@media (max-width: 1023px) {
  .hdr > a.icon-btn[href$="#/account"] {
    display: none !important;
  }
}

/* The existing share launcher belongs in the list toolbar, never over matches. */
#wp-share-launcher { display: none !important; }
.list-page-title > #wp-share-launcher:not([hidden]) {
  display: inline-flex !important;
  position: static;
  inset: auto;
  margin: 0;
  flex: 0 0 auto;
  box-shadow: none;
}

[data-testid="league-picker"] {
  height: 88dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
}
[data-testid="league-picker"] > .sheet-h,
[data-testid="league-picker"] > .sheet-f { flex: 0 0 auto; }
[data-testid="league-picker"] > .sheet-b {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}
html:has(body.wp-league-picker-open) { overscroll-behavior-y: none; }
body.wp-league-picker-open {
  position: fixed;
  top: var(--wp-picker-top);
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}
