@media (max-width: 1199px) {
  .compact-sheet-frozen,
  .compact-sheet-frozen * {
    animation-play-state: paused !important;
  }

  #capture-drawer.q-modal.q-new-book-sheet {
    top: max(env(safe-area-inset-top), var(--sheet-top, 6px));
    bottom: var(--sheet-bottom, 0px);
    height: auto;
    max-height: none;
  }

  html.keyboard-open #search-view .search-drawer-body {
    padding-bottom: 8px;
  }

  :is(#capture-drawer, #search-view) .compact-sheet-search.search {
    --compact-sheet-search-height: 48px;
    --compact-sheet-search-focus: var(--color-input-focus);
    height: var(--compact-sheet-search-height);
    min-height: var(--compact-sheet-search-height);
    max-height: var(--compact-sheet-search-height);
    padding-inline: 16px;
  }

  :is(#capture-drawer, #search-view) .compact-sheet-search.search :is(#q-search, #search-page-input) {
    height: 100%;
    margin: 0;
    padding: 13px 0;
    font-size: 17px;
    line-height: 22px;
  }

  :is(#capture-drawer, #search-view) .compact-sheet-search.search:focus-within {
    box-shadow: inset 0 0 0 2px var(--compact-sheet-search-focus);
  }

  /* Continue the opaque sheet surface behind the native keyboard accessory. */
  html.keyboard-open :is(.capture-backdrop, .search-drawer-scrim)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: var(--sheet-bottom, 0px);
    background: var(--color-surface);
    pointer-events: none;
  }
}
