/* Player pages, detached settings panels and embedded subpages share the hall's frame. */
:root {
  --jd-player-width: min(100%, 430px);
}
#root #app-frame,
#root #bottom-tab-wrap,
body #fh46-settings,
body .fh46-page,
body .fh48-venue,
body .fh48-prepay,
body dialog[aria-label="代理中心"] {
  box-sizing: border-box;
  width: var(--jd-player-width) !important;
  min-width: 0 !important;
  max-width: 100%;
  margin-inline: auto;
}
body dialog[aria-label="代理中心"] {
  margin-inline: auto !important;
}
#root > .kk-auth-page {
  box-sizing: border-box;
  width: var(--jd-player-width);
  margin: 0 auto;
  padding: 0;
  display: block;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}
#root .kk-auth-page > .kk-auth-shell {
  width: 100%;
  min-height: 100%;
  margin: 0;
}
#root #app-frame {
  contain: layout;
}
#root #app-frame > div {
  min-width: 0;
}
.jd-standalone-frame {
  box-sizing: border-box;
  width: var(--jd-player-width);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: auto;
  contain: layout;
}
body #fh46-settings {
  left: 0;
  right: 0;
}
@media (max-width: 430px) {
  #root #app-frame, #root #bottom-tab-wrap {
    border-radius: 0;
  }
}

.wending-hall {
  --jd-tab-top: calc(12vw + env(safe-area-inset-top, 0px));
  --jd-tab-bottom: calc(16vw + env(safe-area-inset-bottom, 0px));
}
@supports (width: 1cqw) {
  .wending-hall {
    --jd-tab-top: calc(12cqw + env(safe-area-inset-top, 0px));
    --jd-tab-bottom: calc(16cqw + env(safe-area-inset-bottom, 0px));
  }
}
html .wending-hall .maincontent,
html .wending-hall .Findings .findingsScroll,
html .wending-hall .discoverSubPage-discount > .discoverSubScroll {
  top: var(--jd-tab-top) !important;
  bottom: var(--jd-tab-bottom) !important;
  height: auto !important;
  box-sizing: border-box;
}
html .wending-hall .personPage {
  box-sizing: border-box;
  padding-top: var(--jd-tab-top) !important;
  padding-bottom: var(--jd-tab-bottom) !important;
}
html .wending-hall .personPage .PulldownRefresh {
  flex: 1 1 0;
  min-height: 0;
  height: auto !important;
  padding-bottom: 12px !important;
  overflow-y: auto;
}
html .wending-hall nav.bottom-taps {
  box-sizing: border-box;
  height: var(--jd-tab-bottom) !important;
}

