/* M!GHTY | UNIVERSAL VIEWPORT RECOVERY | PUBLIC 1.557
   CRITICAL PRODUCTION GEOMETRY. Original native anchors; scope per entry profile.
   Normal responsive rules and shared geometry tokens remain in canonical stylesheets. */

/* onboarding */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="onboarding"]) body.mm-home-layout > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="onboarding"]) body.mm-home-layout > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }
}

/* amplify-web-builder, audio-lab, creative-labs, media-lab, project-lab, social-lab */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="amplify-web-builder"], [data-mighty-recovery-profile="audio-lab"], [data-mighty-recovery-profile="creative-labs"], [data-mighty-recovery-profile="media-lab"], [data-mighty-recovery-profile="project-lab"], [data-mighty-recovery-profile="social-lab"]) body.mm-page-amplify-web-builder > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="amplify-web-builder"], [data-mighty-recovery-profile="audio-lab"], [data-mighty-recovery-profile="creative-labs"], [data-mighty-recovery-profile="media-lab"], [data-mighty-recovery-profile="project-lab"], [data-mighty-recovery-profile="social-lab"]) body.mm-page-amplify-web-builder > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="amplify-web-builder"], [data-mighty-recovery-profile="audio-lab"], [data-mighty-recovery-profile="creative-labs"], [data-mighty-recovery-profile="media-lab"], [data-mighty-recovery-profile="project-lab"], [data-mighty-recovery-profile="social-lab"]) body.mm-page-amplify-web-builder > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* cloud-file-manager */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-file-manager"]) body.mm-page-cloud-file-manager > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-file-manager"]) body.mm-page-cloud-file-manager > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-file-manager"]) body.mm-page-cloud-file-manager > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* cloud-storage */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-storage"]) body.mm-page-cloud-storage > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-storage"]) body.mm-page-cloud-storage > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="cloud-storage"]) body.mm-page-cloud-storage > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* contact */
/* Match the shared measured chassis device family, but use Labs Live's
   native fixed anchors for the Contact header and scrollport only. */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-contact-native-test]:where([data-mighty-recovery-profile="contact"]) body.mm-page-contact > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-contact-native-test]:where([data-mighty-recovery-profile="contact"]) body.mm-page-contact > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }
}

/* index */
/* Homepage-only native anchors; preserve existing responsive ribbon height. */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-home-native-test]:where([data-mighty-recovery-profile="index"]) body.mm-page-index > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-home-native-test]:where([data-mighty-recovery-profile="index"]) body.mm-page-index > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-home-native-test]:where([data-mighty-recovery-profile="index"]) body.mm-page-index > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* mighty-cloud */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="mighty-cloud"]) body.mm-page-mighty-cloud > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="mighty-cloud"]) body.mm-page-mighty-cloud > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="mighty-cloud"]) body.mm-page-mighty-cloud > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* pricing */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="pricing"]) body.mm-home-layout > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="pricing"]) body.mm-home-layout > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="pricing"]) body.mm-home-layout > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* privacy */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="privacy"]) body.mm-page-privacy > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="privacy"]) body.mm-page-privacy > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="privacy"]) body.mm-page-privacy > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* refund */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="refund"]) body.mm-page-refund > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="refund"]) body.mm-page-refund > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="refund"]) body.mm-page-refund > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* terms */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="terms"]) body.mm-page-terms > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="terms"]) body.mm-page-terms > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="terms"]) body.mm-page-terms > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* trust */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="trust"]) body.mm-page-trust > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="trust"]) body.mm-page-trust > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="trust"]) body.mm-page-trust > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* website-builder */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-builder"]) body.mm-page-website-builder > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-builder"]) body.mm-page-website-builder > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-builder"]) body.mm-page-website-builder > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* website-commerce */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-commerce"]) body.mm-page-website-commerce > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-commerce"]) body.mm-page-website-commerce > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-commerce"]) body.mm-page-website-commerce > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* website-marketing */
@media (orientation: landscape) and (min-width: 820px) {
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-marketing"]) body.mm-page-website-marketing > .top {
    position: fixed;
    inset: 0 0 auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-marketing"]) body.mm-page-website-marketing > #app {
    position: fixed;
    top: var(--ui-top);
    right: 0;
    bottom: var(--ui-ribbon-total);
    left: 0;
    height: auto;
  }
  html[data-mighty-native-viewport]:where([data-mighty-recovery-profile="website-marketing"]) body.mm-page-website-marketing > .mighty-ribbon {
    position: fixed;
    inset: auto 0 0;
  }
}

/* M!LU measured keyboard panel */
html[data-mighty-milu-measured] body > #ask-milu-popover{position:absolute;top:calc(var(--mighty-milu-y) + var(--mighty-milu-header-inset,var(--ui-top)) + var(--milu-panel-top-gap));bottom:auto;height:max(0px,calc(var(--mighty-milu-height) - var(--mighty-milu-header-inset,var(--ui-top)) - var(--milu-panel-top-gap) - var(--milu-panel-bottom-gap)))}

@media (max-width:700px) and (orientation:landscape) and (min-aspect-ratio:3/2){
.ask-milu-popover.milu-landscape-keyboard{top:calc(var(--milu-visual-top) + 4px);bottom:calc(var(--milu-visual-bottom) + 4px)}
}

@media (orientation:landscape) and (min-width:820px) and (max-width:991px) and (max-height:600px) and (min-aspect-ratio:3/2){
.ask-milu-popover.milu-landscape-keyboard{top:calc(var(--milu-visual-top) + 4px);bottom:calc(var(--milu-visual-bottom) + 4px)}
}
