﻿.auth-consent {
  margin: 8px 1px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f7890;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.auth-consent #authConsent[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-block;
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 12px !important;
  border: 1px solid rgba(83, 109, 226, 0.52);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 1px rgba(28, 45, 92, 0.05);
  box-sizing: border-box;
  vertical-align: middle;
}

.auth-consent #authConsent[type="checkbox"]:checked {
  border-color: #536de2;
  background: linear-gradient(135deg, #6280f0, #536de2);
}

.auth-consent #authConsent[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1.6px;
  width: 3px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.3px 1.3px 0;
  transform: rotate(45deg);
}

.auth-consent a {
  color: #4562d0;
  font-weight: 700;
  text-decoration: none;
}

.auth-consent-hint {
  margin: 3px 0 0 20px;
  color: #9aa2b4;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: left;
}

.auth-forgot {
  margin: -2px auto 0;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #536de2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-forgot.hidden {
  display: none !important;
}

#authSubmitButton:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: saturate(0.65);
}

.ai-generation-disclosure {
  margin: 18px 2px 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(232, 133, 39, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, #fff7e9, #fffdf8);
  color: #785029;
  box-shadow: 0 6px 20px rgba(138, 91, 35, 0.07);
}

.ai-generation-disclosure strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e97b20;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.ai-generation-disclosure span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.ai-content-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(235, 126, 31, 0.12);
  color: #b9631d;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.fullscreen-ai-content-label {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(14, 18, 27, 0.48);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

html.theme-dark .auth-consent {
  color: rgba(239, 234, 224, 0.72);
}

html.theme-dark .auth-consent a {
  color: #d8b675;
}

html.theme-dark .auth-forgot {
  color: #d7f436;
}

html.theme-dark .ai-generation-disclosure {
  border-color: rgba(217, 169, 87, 0.28);
  background: linear-gradient(135deg, rgba(81, 55, 25, 0.88), rgba(27, 31, 39, 0.96));
  color: #ead9b8;
}

html.theme-dark .ai-generation-disclosure strong {
  background: #c58b37;
}

body.mini-program-review #authPanel .segmented,
body.mini-program-review #authPanel .auth-inputs,
body.mini-program-review #authSubmitButton,
body.mini-program-review #accountRechargeShortcut,
body.mini-program-review #rechargeSheet {
  display: none !important;
}

body.mini-program-review.mini-program-virtual-pay-test #accountRechargeShortcut {
  display: inline-flex !important;
}

body.mini-program-review.mini-program-virtual-pay-test .recharge-center-entry {
  display: flex !important;
}

body.mini-program-review.mini-program-virtual-pay-test #rechargeSheet:not(.hidden) {
  display: grid !important;
}

body.mini-program-review.mini-program-ios #accountView #accountRechargeShortcut,
body.mini-program-review.mini-program-ios #accountView .recharge-center-entry,
body.mini-program-review.mini-program-ios #accountView .membership-entry,
body.mini-program-review.mini-program-ios #rechargeSheet {
  display: none !important;
}

body.mini-program-review #miniProgramWechatLoginBtn {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: center;
}

body.mini-program-review #miniProgramBrowseBackBtn {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 112, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #536178;
  font-size: 14px;
}

body.mini-program-review #miniProgramBrowseBackBtn.hidden {
  display: none !important;
}

/* mini-program-review-guest-entry-v20260720 */
html.mahua-mini-program-review.mahua-mini-program-guest #authPanel,
body.mahua-mini-program-review.mahua-mini-program-guest #authPanel,
body.mini-program-review.mini-program-guest #authPanel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.mahua-mini-program-review.mahua-mini-program-guest #appPanel,
body.mahua-mini-program-review.mahua-mini-program-guest #appPanel,
body.mini-program-review.mini-program-guest #appPanel {
  display: grid !important;
  visibility: visible !important;
}

.mini-program-auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.mini-program-auth-dialog.hidden {
  display: none !important;
}

.mini-program-auth-mask {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 18, 32, 0.42);
}

.mini-program-auth-card {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 20px 18px;
  border-radius: 24px 24px 20px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 -16px 48px rgba(16, 32, 72, 0.18);
  color: #172033;
  text-align: center;
}

.mini-program-auth-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6c8cff, #5ed0ff);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.mini-program-auth-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.mini-program-auth-card p {
  margin: 8px 0 16px;
  color: #657086;
  font-size: 14px;
  line-height: 1.55;
}

.mini-program-auth-consent {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  align-items: center;
  margin: 0 0 14px;
  color: #667188;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.mini-program-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.mini-program-auth-check input {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  margin: -4px 0 0;
  flex: 0 0 auto;
  transform: scale(0.72);
  transform-origin: center;
}

.mini-program-auth-check span,
.mini-program-auth-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
  min-width: 0;
  line-height: 1.25;
}

.mini-program-auth-links a {
  color: #1f63d8;
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.25;
}

.mini-program-auth-primary,
.mini-program-auth-secondary {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  font-size: 15px;
}

.mini-program-auth-primary {
  background: #1f7cff;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(31, 124, 255, 0.22);
}

.mini-program-auth-primary:disabled {
  opacity: 0.72;
}

.mini-program-auth-secondary {
  margin-top: 10px;
  background: transparent;
  color: #667188;
}

/* apk-short-screen-auth-v20260719 */
body.mahua-apk-webview #authPanel.auth-screen {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

body.mahua-apk-webview #authPanel .auth-card {
  margin-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

@media (max-height: 820px) {
  body.mahua-apk-webview #authPanel.auth-screen {
    grid-template-rows: auto auto;
    padding: 0 18px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.mahua-apk-webview #authPanel .auth-top {
    padding-top: calc(22px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 10px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-wrap,
  body.mahua-apk-webview #authPanel .auth-logo-ring {
    width: 74px !important;
    height: 74px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-inner {
    width: 58px !important;
    height: 58px !important;
    border-radius: 17px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-inner img {
    width: 42px !important;
    height: 42px !important;
  }

  body.mahua-apk-webview #authPanel .auth-card {
    gap: 10px !important;
    padding: 20px 17px 14px !important;
  }

  body.mahua-apk-webview #authPanel .auth-brand-title {
    font-size: 25px !important;
    line-height: 1.05 !important;
  }

  body.mahua-apk-webview #authPanel .auth-sub {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    padding-bottom: 0 !important;
  }

  body.mahua-apk-webview #authPanel .segmented {
    height: 42px !important;
  }

  body.mahua-apk-webview #authPanel .auth-inputs {
    gap: 9px !important;
  }

  body.mahua-apk-webview #authPanel .input-field input,
  body.mahua-apk-webview #authPanel.auth-screen #miniProgramWechatLoginBtn,
  body.mahua-apk-webview #authPanel .auth-card .primary {
    min-height: 44px !important;
  }

  body.mahua-apk-webview #authPanel .auth-consent {
    margin-top: 4px !important;
  }
}

@media (max-height: 700px) {
  body.mahua-apk-webview #authPanel .auth-top {
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 7px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-wrap,
  body.mahua-apk-webview #authPanel .auth-logo-ring {
    width: 60px !important;
    height: 60px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-inner {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }

  body.mahua-apk-webview #authPanel .auth-logo-inner img {
    width: 34px !important;
    height: 34px !important;
  }

  body.mahua-apk-webview #authPanel .auth-card {
    gap: 8px !important;
    padding: 16px 15px 12px !important;
  }

  body.mahua-apk-webview #authPanel .auth-brand-title {
    font-size: 22px !important;
  }

  body.mahua-apk-webview #authPanel .auth-sub,
  body.mahua-apk-webview #authPanel .auth-consent-hint {
    display: none !important;
  }

  body.mahua-apk-webview #authPanel .segmented {
    height: 38px !important;
  }

  body.mahua-apk-webview #authPanel .input-field input,
  body.mahua-apk-webview #authPanel.auth-screen #miniProgramWechatLoginBtn,
  body.mahua-apk-webview #authPanel .auth-card .primary {
    min-height: 40px !important;
  }
}

/* apk-landscape-auth-scroll-v20260719 */
@media (orientation: landscape), (max-height: 620px) {
  body.mahua-apk-webview #authPanel.auth-screen {
    display: block !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.mahua-apk-webview #authPanel .auth-bg::after {
    display: none !important;
  }

  body.mahua-apk-webview #authPanel .auth-top {
    display: none !important;
  }

  body.mahua-apk-webview #authPanel .auth-card {
    width: min(430px, calc(100vw - 28px)) !important;
    max-width: 430px !important;
    margin: 8px auto calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 8px !important;
    padding: 14px 14px 12px !important;
    align-self: start !important;
  }

  body.mahua-apk-webview #authPanel .auth-brand-title {
    font-size: 22px !important;
    line-height: 1.08 !important;
  }

  body.mahua-apk-webview #authPanel .auth-sub,
  body.mahua-apk-webview #authPanel .auth-consent-hint {
    display: none !important;
  }

  body.mahua-apk-webview #authPanel .segmented {
    height: 36px !important;
  }

  body.mahua-apk-webview #authPanel .auth-inputs {
    gap: 7px !important;
  }

  body.mahua-apk-webview #authPanel .input-field input {
    min-height: 38px !important;
    padding-left: 50px !important;
  }

  body.mahua-apk-webview #authPanel.auth-screen #miniProgramWechatLoginBtn,
  body.mahua-apk-webview #authPanel .auth-card .primary {
    min-height: 40px !important;
  }

  body.mahua-apk-webview #authPanel .auth-consent {
    display: flex !important;
    position: static !important;
    margin: 6px 0 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}



/* apk-auth-exclusive-v20260719 */
body.mahua-apk-webview #authPanel:not(.hidden) ~ #appPanel,
body.mahua-apk-webview #authPanel:not(.hidden) ~ #appPanel .tabbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.mahua-apk-webview #authPanel:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background: #f5f7fb !important;
}

body.mahua-apk-webview #authPanel:not(.hidden) .auth-card {
  position: relative !important;
  z-index: 1 !important;
}

/* apk-force-enter-v290 */
body.mahua-apk-auth-entered #authPanel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.mahua-apk-auth-entered #appPanel {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* apk-auth-exclusive-v291 */
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel:not(.hidden) ~ #appPanel,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel:not(.hidden) ~ #appPanel .tabbar,
body.mahua-apk-webview #authPanel:not(.hidden) + #appPanel,
body.mahua-apk-webview #authPanel:not(.hidden) + #appPanel .tabbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* apk-auth-exclusive-v292 */
body.mahua-apk-webview #authPanel:not(.hidden) ~ #appPanel,
body.mahua-apk-webview #authPanel:not(.hidden) ~ #appPanel .tabbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* apk-auth-shell-v293 */
html.mahua-apk-webview.mahua-apk-auth-pending #appPanel,
html.mahua-apk-webview.mahua-apk-auth-pending .tabbar,
body.mahua-apk-webview.mahua-apk-auth-pending #appPanel,
body.mahua-apk-webview.mahua-apk-auth-pending .tabbar,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #appPanel,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) .tabbar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.mahua-apk-webview.mahua-apk-auth-pending #authPanel,
body.mahua-apk-webview.mahua-apk-auth-pending #authPanel,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #f5f7fb !important;
}

body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel .auth-card,
body.mahua-apk-webview.mahua-apk-auth-pending #authPanel .auth-card {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 430px !important;
  margin: 8px auto calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel .segmented,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel .auth-inputs {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authSubmitButton {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.mahua-apk-webview:not(.mahua-apk-auth-entered) #authPanel .auth-consent {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.mahua-apk-webview:not(.mahua-apk-auth-entered) #miniProgramWechatLoginBtn,
body.mahua-apk-webview:not(.mahua-apk-auth-entered) #miniProgramBrowseBackBtn {
  display: none !important;
}

/* apk auth shell hard guard v295 */
html.mahua-apk-webview.mahua-apk-auth-entered #authPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #authPanel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
html.mahua-apk-webview.mahua-apk-auth-entered #appPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #appPanel {
  display: grid !important;
  visibility: visible !important;
  min-height: 100vh !important;
}

/* apk entered state must win over stale pending guards */
html.mahua-apk-webview.mahua-apk-auth-entered #appPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #appPanel,
body.mahua-apk-webview.mahua-apk-auth-entered #appPanel .screen-body,
body.mahua-apk-webview.mahua-apk-auth-entered #worksView,
body.mahua-apk-webview.mahua-apk-auth-entered #publicWorks,
body.mahua-apk-webview.mahua-apk-auth-entered #myWorks {
  pointer-events: auto !important;
}

/* apk chrome79 works card fallback v296 */
html.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}
html.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card,
body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card {
  display: block !important;
  min-height: 178px !important;
  height: auto !important;
  padding: 4px !important;
  contain: none !important;
  overflow: visible !important;
}
html.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame,
body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 56vw !important;
  min-height: 170px !important;
  max-height: 260px !important;
  aspect-ratio: auto !important;
  contain: none !important;
}
html.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame img,
html.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame video,
body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame img,
body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* apk chrome79 fullscreen fixed-position fallback v297 */
html.mahua-apk-webview .video-fullscreen-overlay,
body.mahua-apk-webview .video-fullscreen-overlay {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
}
html.mahua-apk-webview .fullscreen-track,
body.mahua-apk-webview .fullscreen-track {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  height: 300vh !important;
  transform: translate3d(0, -100vh, 0) !important;
}
html.mahua-apk-webview .fullscreen-slide,
body.mahua-apk-webview .fullscreen-slide {
  width: 100vw !important;
  height: 100vh !important;
}

/* apk chrome79 account sheet fixed-position fallback v298 */
html.mahua-apk-webview #accountView .account-core-sheet,
body.mahua-apk-webview #accountView .account-core-sheet,
html.mahua-apk-webview #accountSettingsSheet,
body.mahua-apk-webview #accountSettingsSheet,
html.mahua-apk-webview #accountFeatureSheet,
body.mahua-apk-webview #accountFeatureSheet,
html.mahua-apk-webview #rechargeSheet,
body.mahua-apk-webview #rechargeSheet,
html.mahua-apk-webview #goldConvertSheet,
body.mahua-apk-webview #goldConvertSheet {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  z-index: 2147483000 !important;
}
html.mahua-apk-webview #accountView .account-core-mask,
body.mahua-apk-webview #accountView .account-core-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
html.mahua-apk-webview #accountView .account-core-card,
body.mahua-apk-webview #accountView .account-core-card {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
}

/* apk chrome79 creator sheets fixed-position fallback v299 */
html.mahua-apk-webview #promptLibrarySheet,
body.mahua-apk-webview #promptLibrarySheet,
html.mahua-apk-webview .hot-replication-sheet,
body.mahua-apk-webview .hot-replication-sheet {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 10px !important;
  z-index: 2147483000 !important;
  align-items: center !important;
  justify-content: center !important;
}

html.mahua-apk-webview #promptLibrarySheet.hidden,
body.mahua-apk-webview #promptLibrarySheet.hidden,
html.mahua-apk-webview .hot-replication-sheet.hidden,
body.mahua-apk-webview .hot-replication-sheet.hidden {
  display: none !important;
}

html.mahua-apk-webview #promptLibrarySheet .prompt-library-mask,
body.mahua-apk-webview #promptLibrarySheet .prompt-library-mask,
html.mahua-apk-webview .hot-replication-sheet .hot-replication-mask,
body.mahua-apk-webview .hot-replication-sheet .hot-replication-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

html.mahua-apk-webview #promptLibrarySheet .prompt-library-card,
body.mahua-apk-webview #promptLibrarySheet .prompt-library-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: calc(100vw - 20px) !important;
  height: calc(100vh - 20px) !important;
  max-height: calc(100vh - 20px) !important;
  min-height: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

html.mahua-apk-webview #promptLibrarySheet .prompt-library-list,
body.mahua-apk-webview #promptLibrarySheet .prompt-library-list {
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html.mahua-apk-webview .hot-replication-sheet .hot-replication-card,
body.mahua-apk-webview .hot-replication-sheet .hot-replication-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: calc(100vw - 20px) !important;
  height: calc(100vh - 20px) !important;
  max-height: calc(100vh - 20px) !important;
  min-height: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* apk chrome79 my works media frame fallback v300 */
html.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
body.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

html.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .work-card,
body.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .work-card {
  display: block !important;
  min-height: 178px !important;
  height: auto !important;
  padding: 4px !important;
  contain: none !important;
  overflow: visible !important;
}

html.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame,
body.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 56vw !important;
  min-height: 170px !important;
  max-height: 260px !important;
  aspect-ratio: auto !important;
  contain: none !important;
  overflow: hidden !important;
}

html.mahua-apk-webview #worksView.my-feed-mode #myWorksPanel #myWorks .video-frame,
body.mahua-apk-webview #worksView.my-feed-mode #myWorksPanel #myWorks .video-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 118vw !important;
  min-height: 360px !important;
  max-height: 500px !important;
  aspect-ratio: auto !important;
  contain: none !important;
  overflow: hidden !important;
}

html.mahua-apk-webview #worksView #myWorksPanel #myWorks .video-frame img,
html.mahua-apk-webview #worksView #myWorksPanel #myWorks .video-frame video,
body.mahua-apk-webview #worksView #myWorksPanel #myWorks .video-frame img,
body.mahua-apk-webview #worksView #myWorksPanel #myWorks .video-frame video {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* apk chrome79 works browse sheets fixed-position fallback v302 */
html.mahua-apk-webview #worksCategoryView,
body.mahua-apk-webview #worksCategoryView,
html.mahua-apk-webview #sameCityPicker,
body.mahua-apk-webview #sameCityPicker {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  z-index: 2147483000 !important;
}

html.mahua-apk-webview #worksCategoryView.hidden,
body.mahua-apk-webview #worksCategoryView.hidden,
html.mahua-apk-webview #sameCityPicker.hidden,
body.mahua-apk-webview #sameCityPicker.hidden {
  display: none !important;
}

html.mahua-apk-webview #worksCategoryView,
body.mahua-apk-webview #worksCategoryView {
  padding: 16px 14px 28px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html.mahua-apk-webview #sameCityPicker,
body.mahua-apk-webview #sameCityPicker {
  display: grid !important;
  align-items: end !important;
  justify-items: stretch !important;
}

html.mahua-apk-webview #sameCityPicker .same-city-mask,
body.mahua-apk-webview #sameCityPicker .same-city-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

html.mahua-apk-webview #sameCityPicker .same-city-card,
body.mahua-apk-webview #sameCityPicker .same-city-card {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100vw !important;
  max-height: 88vh !important;
  height: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html.mahua-apk-webview #worksView .works-browse-tabs,
body.mahua-apk-webview #worksView .works-browse-tabs {
  position: sticky !important;
  z-index: 200 !important;
  pointer-events: auto !important;
}

html.mahua-apk-webview #worksView .works-browse-tabs button,
body.mahua-apk-webview #worksView .works-browse-tabs button {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* apk android9 task popup fixed viewport fallback v379 */
html.mahua-apk-android9 .red-packet-center,
body.mahua-apk-android9 .red-packet-center,
html.mahua-apk-android9 .share-task-picker,
body.mahua-apk-android9 .share-task-picker,
html.mahua-apk-android9 .brand-task-picker,
body.mahua-apk-android9 .brand-task-picker {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  z-index: 2147483100 !important;
}

html.mahua-apk-android9 .red-packet-center.hidden,
body.mahua-apk-android9 .red-packet-center.hidden,
html.mahua-apk-android9 .share-task-picker.hidden,
body.mahua-apk-android9 .share-task-picker.hidden,
html.mahua-apk-android9 .brand-task-picker.hidden,
body.mahua-apk-android9 .brand-task-picker.hidden {
  display: none !important;
}

html.mahua-apk-android9 .red-packet-center-mask,
body.mahua-apk-android9 .red-packet-center-mask,
html.mahua-apk-android9 .share-task-mask,
body.mahua-apk-android9 .share-task-mask,
html.mahua-apk-android9 .brand-task-mask,
body.mahua-apk-android9 .brand-task-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

html.mahua-apk-android9 .red-packet-center-card,
body.mahua-apk-android9 .red-packet-center-card,
html.mahua-apk-android9 .share-task-card,
body.mahua-apk-android9 .share-task-card,
html.mahua-apk-android9 .brand-task-card,
body.mahua-apk-android9 .brand-task-card {
  position: relative !important;
  width: 100vw !important;
  max-width: 520px !important;
  max-height: 88vh !important;
  min-height: 420px !important;
  margin: 0 auto !important;
  transform: none !important;
  overflow: hidden !important;
}

/* apk android9 reward ad fixed viewport fallback v380 */
html.mahua-apk-android9 .reward-ad-overlay,
body.mahua-apk-android9 .reward-ad-overlay,
html.mahua-apk-android9 #accountView #accountTaskSheet .reward-ad-overlay.task-center-inline,
body.mahua-apk-android9 #accountView #accountTaskSheet .reward-ad-overlay.task-center-inline {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  display: grid !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  z-index: 2147483120 !important;
}

html.mahua-apk-android9 .reward-ad-overlay.hidden,
body.mahua-apk-android9 .reward-ad-overlay.hidden {
  display: none !important;
}

html.mahua-apk-android9 .reward-ad-overlay .reward-ad-shell,
body.mahua-apk-android9 .reward-ad-overlay .reward-ad-shell,
html.mahua-apk-android9 #accountView #accountTaskSheet .reward-ad-overlay.task-center-inline .reward-ad-shell,
body.mahua-apk-android9 #accountView #accountTaskSheet .reward-ad-overlay.task-center-inline .reward-ad-shell {
  width: 100vw !important;
  max-width: 520px !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* apk android9 reusable task modal guard v381 */
html.mahua-apk-android9 .task-center-modal,
body.mahua-apk-android9 .task-center-modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  padding: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  z-index: 2147483120 !important;
}

html.mahua-apk-android9 .task-center-modal.hidden,
body.mahua-apk-android9 .task-center-modal.hidden {
  display: none !important;
}

html.mahua-apk-android9 .task-center-modal:not(.hidden),
body.mahua-apk-android9 .task-center-modal:not(.hidden) {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

html.mahua-apk-android9 .task-center-modal-mask,
body.mahua-apk-android9 .task-center-modal-mask {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

html.mahua-apk-android9 .task-center-modal-card,
body.mahua-apk-android9 .task-center-modal-card {
  position: relative !important;
  width: 100vw !important;
  max-width: 520px !important;
  max-height: 88vh !important;
  margin: 0 auto !important;
  transform: none !important;
  overflow: hidden !important;
}

html.mahua-apk-android9 .task-center-modal-shell,
body.mahua-apk-android9 .task-center-modal-shell {
  position: relative !important;
  width: 100vw !important;
  max-width: 520px !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 auto !important;
  transform: none !important;
  overflow: hidden !important;
}

/* ios h5 readable text scale v385 */
html.mahua-ios-h5,
body.mahua-ios-h5 {
  font-size: 16px;
  -webkit-text-size-adjust: 108%;
  text-size-adjust: 108%;
}

body.mahua-ios-h5 .phone-app {
  font-size: 16px;
}

body.mahua-ios-h5 :where(button, input, textarea, select) {
  font-size: 16px;
}

body.mahua-ios-h5 #worksView .works-browse-tabs button {
  font-size: 14px !important;
}

body.mahua-ios-h5 .tab-item > span:not(.tab-icon) {
  font-size: 11px !important;
}

body.mahua-ios-h5 :where(.work-title, .work-author strong, .section-title h3, .account-service-card strong, .reward-task-card strong, .theme-option-copy strong, .model-option strong, .creator-pick strong, .prompt-library-item strong) {
  font-size: 1.06em;
}

body.mahua-ios-h5 :where(.work-card small, .work-side-meta small, .title-hint, .section-title span, .account-service-card small, .reward-task-card small, .theme-option-copy small, .model-option small, .creator-pick small, .prompt-library-item small) {
  font-size: 12px;
}

body.mahua-ios-h5 :where(.social-button, .social-stat, .manual-prompt-actions button, .auto-agent-entry-strip button, .studio-model-choice, .prompt-library-tab, .seg) {
  font-size: 14px;
}

/* mini program works page readable text scale v386 */
body.mahua-mini-program-review #worksView,
body.mini-program-review #worksView {
  font-size: 16px;
  -webkit-text-size-adjust: 108%;
  text-size-adjust: 108%;
}

body.mahua-mini-program-review #worksView .works-browse-tabs button,
body.mini-program-review #worksView .works-browse-tabs button {
  font-size: 15px !important;
  font-weight: 600;
}

body.mahua-mini-program-review #worksView :where(.work-title, .work-author strong, .section-title h3),
body.mini-program-review #worksView :where(.work-title, .work-author strong, .section-title h3) {
  font-size: 1.12em;
}

body.mahua-mini-program-review #worksView :where(.work-card small, .work-side-meta small, .title-hint, .section-title span, .work-meta-row small, .work-summary-line, .work-prompt summary),
body.mini-program-review #worksView :where(.work-card small, .work-side-meta small, .title-hint, .section-title span, .work-meta-row small, .work-summary-line, .work-prompt summary) {
  font-size: 13px;
}

body.mahua-mini-program-review #worksView :where(.social-button, .social-stat, .seg),
body.mini-program-review #worksView :where(.social-button, .social-stat, .seg) {
  font-size: 15px;
}

/* apk task center normal title weight v531 */
body.mahua-apk-webview #accountTaskSheet .task-center-grid-card .reward-task-main strong,
html.mahua-apk-webview body #accountTaskSheet .task-center-grid-card .reward-task-main strong {
  font-weight: 500 !important;
}

/* android mini auth consent checkbox size v555 */
.mini-program-auth-dialog .mini-program-auth-consent {
  align-items: center !important;
  gap: 6px 8px !important;
}

.mini-program-auth-dialog .mini-program-auth-check {
  align-items: center !important;
  gap: 8px !important;
  min-height: 24px !important;
}

.mini-program-auth-dialog .mini-program-auth-check input#miniProgramAuthConsent[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px !important;
  transform: none !important;
  transform-origin: center !important;
  vertical-align: middle !important;
}

.mini-program-auth-dialog .mini-program-auth-check span,
.mini-program-auth-dialog .mini-program-auth-links {
  line-height: 24px !important;
}