/* Keep long program editors independently scrollable on phones/tablets. */
dialog.full-program-editor[open]{max-height:calc(100dvh - 24px);height:min(94dvh,960px);overflow:hidden;overscroll-behavior:contain}
dialog.full-program-editor>form{max-height:100%;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(32px + env(safe-area-inset-bottom))}
@media(max-width:700px){dialog.full-program-editor[open]{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:12px}.full-program-editor>form{touch-action:pan-y;scrollbar-gutter:stable}.full-program-editor .dialog-close{position:sticky;top:0;z-index:5;margin-left:auto}}
