/* Unified inner scroll – matched to 1080p.my miigo-app-inner-unified-scroll-v1 */
html, body,
.miigo-inner-real-shell,
.miigo-inner-real-content,
.miigo-v4-content,
.miigo-me-clean-root-v1 {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar, body::-webkit-scrollbar,
.miigo-inner-real-shell::-webkit-scrollbar,
.miigo-inner-real-content::-webkit-scrollbar,
.miigo-v4-content::-webkit-scrollbar,
.miigo-me-clean-root-v1::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html, body {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.miigo-v4-bg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.miigo-inner-real-shell {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  padding-bottom: 0 !important;
}

.miigo-inner-real-header,
.miigo-v4-header {
  flex-shrink: 0 !important;
}

.miigo-inner-real-content,
.miigo-v4-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  box-sizing: border-box !important;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

.miigo-me-clean-root-v1 {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 150px !important;
}

/* iframe 内：高度跟随手机壳，不用 100dvh */
html.miigo-pc-iframe-root,
html.miigo-pc-iframe-root body {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html.miigo-pc-iframe-root .miigo-inner-real-shell {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* 独立手机访问仍用动态视口高度 */
html:not(.miigo-pc-iframe-root) .miigo-inner-real-shell {
  height: 100dvh !important;
  max-height: 100dvh !important;
}

html:not(.miigo-pc-iframe-root) body.miigo-inner-real-body {
  min-height: 100dvh;
}

#miigo-v4-tabbar.miigo-backend-tabbar-v1 {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  transform: none !important;
  z-index: 9999 !important;
}

.miigo-inner-real-shell > #miigo-v4-tabbar,
.miigo-inner-real-shell > .miigo-backend-tabbar-v1 {
  flex-shrink: 0 !important;
}
