/* H5 viewport adaptation. Original typography, icons, controls and renderers
   remain in the unchanged source files beside this stylesheet. */
:root { background: var(--heylth-page, #fff); }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.preview-stage {
  width: 100%;
  height: var(--pwa-height, 100dvh);
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--heylth-page, #fff);
}
.phone-shell {
  width: 100%;
  max-width: 430px;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.phone-shell::after, .side-button, #globalStatusBar { display: none !important; }
.device {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--heylth-page, #fff);
}
html[data-embed="true"] .preview-stage { padding: 0; }
html[data-embed="true"] .phone-shell { max-width: none; }
/* On a real touch device the operating system supplies its keyboard. The
   visible viewport moves the canvas and the existing bottom controls together. */
@media (any-pointer: coarse) {
  .preview-stage :is(input, textarea, [contenteditable="true"]) { font-size: max(16px, 4.05cqw); }
  .ios-keyboard-simulator { display: none !important; }
  .bar-search-page.is-keyboard-open .bar-search-dock { bottom: 7.1cqw; }
}
