/* KSK Designer 1.1.70 — iOS Safari: steady, reachable mobile text editor. */
@media (max-width:850px) {
  html > .kskd-mobile-dock.kskd-viewport-portal.kskd-is-typing:not([hidden]),
  .kskd-mobile-dock.kskd-is-typing:not([hidden]) {
    position:fixed!important;
    /* JS pins the dock to visualViewport.top while typing, never to the
       changing bottom of the keyboard. CSS provides an early safe fallback. */
    max-height:min(44dvh,var(--kskd-quick-visible-height,calc(100dvh - 20px)))!important;
    overflow:hidden!important;
  }
  .kskd-mobile-dock.kskd-is-typing .kskd-mobile-dock-body {
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .kskd-mobile-dock .kskd-mobile-text-content {
    font-size:16px!important; /* prevent iPhone automatic zoom on focus */
    touch-action:pan-y!important;
    scroll-margin-block:8px;
  }
}
