/* Phone pilot fixes: native dialogs follow the visible viewport above the keyboard. */
#trainer-app [data-builder-keyboard-close] { display:none; }
#trainer-app [data-builder-keyboard-close] svg { width:24px; height:24px; }
@media(max-width:760px) {
  #trainer-app #screen-trainer :is(#trainerClientSearchV46,#programSearchV46) { font-size:16px!important; }
  #trainer-app .coach-live-dialog { max-height:calc(var(--op-visible-height,100dvh) - 24px); }
  #trainer-app .coach-live-dialog.block-editor-sheet {
    height:min(1000px,calc(var(--op-layout-height,100dvh) - 24px));
    max-height:calc(var(--op-layout-height,100dvh) - 24px);
  }
  #trainer-app body.op-mobile-keyboard-open .coach-live-dialog {
    position:fixed; top:calc(var(--op-viewport-top,0px) + 12px); bottom:auto; margin:0 auto;
  }
  #trainer-app body.op-mobile-keyboard-open .block-editor-sheet .block-builder-heading { padding-block:8px; }
  #trainer-app body.op-mobile-keyboard-open .block-editor-sheet .block-builder-body {
    flex:none; height:var(--op-builder-visible-body); box-sizing:border-box;
  }
  #trainer-app body.op-mobile-keyboard-open .block-editor-sheet .block-builder-footer { display:none!important; }
  #trainer-app .block-builder-heading h2 { min-width:0; overflow-wrap:anywhere; }
  #trainer-app .builder-heading-actions { flex-shrink:0; }
  #trainer-app body.op-mobile-keyboard-open [data-builder-keyboard-close] { display:grid; }
}
