body.admin-route #admin-editor-modal>.admin-editor-modal__dialog{display:flex!important;flex-direction:column!important;overflow:clip!important;min-height:0;max-height:calc(100dvh - 28px)!important}
body.admin-route #admin-editor-modal>.admin-editor-modal__dialog>.admin-editor-modal__head{flex:0 0 auto}
body.admin-route #admin-editor-modal>.admin-editor-modal__dialog>.admin-editor-modal__body{flex:1 1 auto;min-height:0;overflow:auto!important}
/* Editors have one inner scroller. Their decorative frame must never create
   a second outer scroll area that can move the complete form out of sight. */
html[data-smd-backend-theme=custom] body.admin-route .admin-editor-modal__dialog.smd-unified-surface{overflow:clip!important;min-height:0}
html[data-smd-backend-theme=custom] body.admin-route .admin-editor-modal__dialog.smd-unified-surface>.admin-editor-modal__head{flex:0 0 auto;position:relative;z-index:1}
html[data-smd-backend-theme=custom] body.admin-route .admin-editor-modal__dialog.smd-unified-surface>.admin-editor-modal__body{flex:1 1 auto;min-height:0;overflow:auto!important;position:relative;z-index:1}
html[data-smd-backend-theme=custom] body.admin-route :is(.admin-editor-modal__dialog,.dashboard-design-dialog,.smd-example-dialog,.smd-image-studio-dialog).smd-unified-surface>.hud-panel-frame{height:100%!important;max-height:100%!important;overflow:hidden!important;pointer-events:none!important}
/* Service images are medium previews in the administration form, independent of
   their original resolution, proportions and the public service cards. */
body.admin-route #service-editor{min-width:0}
body.admin-route #service-form>img.admin-image{display:block!important;width:min(100%,420px)!important;max-width:420px!important;height:260px!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:18px 0!important;border-radius:14px;border:1px solid #1c536b!important;background:#041522!important;padding:8px;box-sizing:border-box}
body.admin-route #service-form .service-gallery-admin-item>img{display:block!important;width:100%!important;max-width:100%!important;height:110px!important;min-height:0!important;object-fit:cover!important}
