/* Keep library panels tied to the host viewport while the board grows naturally. */
body.ocg-embedded .library-panel,
body.ocg-embedded .workspace.library-mode .library-page {
  height: calc(var(--ocg-embed-height, 100vh) - 253px);
}

@media screen {
  body.ocg-embedded dialog {
    position: fixed;
    top: calc(var(--ocg-embed-top, 0px) + 24px);
    bottom: auto;
    margin: 0 auto;
    max-height: calc(var(--ocg-embed-height, 100vh) - 48px);
  }

  body.ocg-embedded .toast {
    top: calc(var(--ocg-embed-top, 0px) + var(--ocg-embed-height, 100vh) - 80px);
    bottom: auto;
  }
}
