/* Keep the closed-keyboard mobile picker on the same viewport as the composer.
   The shared global layer follows visualViewport for app windows. Let the
   picker use that shorter layer only while typing in one of its own fields. */
@media (max-width: 600px) {
  .pc-embedded-layer.pc-embedded-layer--global > .pc-embedded-backdrop,
  .pc-embedded-layer.pc-embedded-layer--global > .pc-embedded-library {
    position: fixed;
  }

  .pc-embedded-layer.pc-embedded-layer--global > .pc-embedded-library:has(:is(input[type="search"], input:not([type]), textarea):focus) {
    position: absolute;
  }
}
