/* Keep the search control below the visible mode counters on narrow screens. */
@media (max-width:760px) {
  #quickSearchDock { top:var(--ov-core-search-top,calc(var(--panel-top) + env(safe-area-inset-top)))!important; }
  #searchResults { max-height:max(80px,calc(100dvh - var(--ov-core-search-top,72px) - 140px)); }
}
/* Feedback remains accessible through its button; unsolicited prompts may not cover core tasks. */
body:has(#cookieBanner:not(.hidden)) #ovFeedbackPrompt,
body.panel-open #ovFeedbackPrompt,
body:has(#quickSearchDock.search-active) #ovFeedbackPrompt { display:none!important; }
@media (max-width:760px) and (max-height:500px) {
  #ovFeedbackPrompt { display:none!important; }
  /* Leave room for results when landscape/short viewports have little height. */
  body:has(#quickSearchDock.search-active) .app-bar { visibility:hidden;pointer-events:none; }
  #quickSearchDock.search-active { top:10px!important; }
  #quickSearchDock.search-active #searchResults { max-height:max(0px,calc(100dvh - 150px)); }
}
