/* The collapsed channel summary is intrinsic content. When iOS shrinks the
   VisualViewport for the keyboard, the old percentage max-height clipped its
   badges. Preserve the card; let the model list below absorb the height loss. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  html[data-openbear-mobile-viewport] .channels-view .channel-overview-card:not(.is-open) {
    flex: 0 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* Expanded details may remain internally scrollable in a short viewport. */
  html[data-openbear-mobile-viewport] .channels-view .channel-overview-card.is-open {
    flex: 0 0 auto !important;
    max-height: min(40%, calc(var(--mobile-viewport-height, 100dvh) * .4));
    overflow-y: auto;
  }
}
