/* The real browser viewport is supplied by the parent, independent of iframe height. */
.mpe-embedded body { min-height:0; margin:0; display:flow-root; }
.mpe-embedded dialog {
  position:fixed; top:calc(var(--mpe-visible-top, 0px) + var(--mpe-visible-height, 600px) / 2);
  bottom:auto; margin:0 auto; transform:translateY(-50%);
  max-height:calc(var(--mpe-visible-height, 600px) - 32px);
}
.mpe-embedded .toast { bottom:calc(var(--mpe-visible-bottom, 0px) + 16px); }
.mpe-embedded .field-context-menu { max-height:calc(var(--mpe-visible-height, 600px) - 20px); }
.mpe-embedded .canvas-scroll { max-height:min(1100px, max(350px, calc(var(--mpe-screen-height, 800px) - 180px))); }
.mpe-embedded #renewal-url[readonly] { background:#f2f6f3; color:#425c50; }
