/* Freecreat phone detail page only. Loaded by redesign/mobile/detail.php. */
body.freecreat-v2-preview.redesign-detail-page,
body.freecreat-v2-preview.redesign-detail-page .shell,
body.freecreat-v2-preview.redesign-detail-page .main {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 20260901-mobile-detail-context: restore the page context and shared site footer. */
.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-detail-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: #7a8798 !important;
  font-size: 12px !important;
  line-height: 20px !important;
  white-space: nowrap !important;
}

.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-detail-breadcrumb a {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #5e6b7d !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
}

.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page > .shell > .main > .freecreat-v2-footer {
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 18px !important;
}

.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page > .shell > .main > .freecreat-v2-footer .freecreat-v2-footer-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 16px !important;
  border-radius: 16px !important;
}

.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page > .shell > .main > .freecreat-v2-footer .footer-brand-panel {
  grid-column: auto !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .shell {
  display: block !important;
  padding: 10px !important;
}

body.freecreat-v2-preview.redesign-detail-page .topbar,
body.freecreat-v2-preview.redesign-detail-page .detail-workspace,
body.freecreat-v2-preview.redesign-detail-page .detail-preview-panel {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.freecreat-v2-preview.redesign-detail-page .topbar {
  align-items: stretch !important;
  gap: 8px !important;
}

@media (max-width: 767px) {
/* Keep account identity and the personal-center entry on one clear row below search. */
body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
  box-sizing: border-box !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity > .top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-menu.is-guest-login .redesign-user-trigger {
  width: auto !important;
  min-width: 132px !important;
  flex: 0 1 auto !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-trigger {
  justify-content: flex-start !important;
  max-width: min(225px, 62vw) !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-menu:not(.is-guest-login) .redesign-user-trigger {
  min-width: 0 !important;
  padding-left: 7px !important;
  padding-right: 12px !important;
  flex-direction: row-reverse !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-menu:not(.is-guest-login) .user-trigger-copy {
  text-align: left !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-entry {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 36px !important;
  gap: 7px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  border-radius: 10px !important;
  background: #172033 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 16px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-entry:active {
  transform: translateY(1px) !important;
  background: #0f172a !important;
}

/* Guest pages use one wide sign-in action; the account shortcut only exists after login. */
body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-menu.is-guest-login {
  width: 100% !important;
  min-width: 0 !important;
}

body.freecreat-v2-preview.redesign-detail-page .freecreat-mobile-account-identity .redesign-user-menu.is-guest-login .redesign-user-trigger {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}
}

body.freecreat-v2-preview.redesign-detail-page .topbar > .freecreat-mobile-site-nav {
  order: -1 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.freecreat-v2-preview.redesign-detail-page .topbar > .freecreat-mobile-site-nav a {
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 0 3px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-workspace {
  gap: 12px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-panel,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-info-panel,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media {
  min-height: auto !important;
  max-height: none !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media img {
  width: 100% !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media.has-mobile-video {
  position: relative !important;
  overflow: hidden !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-video-toggle {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 14 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255,255,255,.74) !important;
  border-radius: 10px !important;
  background: rgba(15,23,42,.82) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.22) !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-inline-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 12 !important;
  display: none !important;
  background: #0f172a !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media.is-mobile-video-active .detail-mobile-inline-video { display: block !important; }
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-inline-video video,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-inline-video iframe { display: block !important; width: 100% !important; height: 100% !important; border: 0 !important; object-fit: contain !important; }
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-media.is-mobile-video-active .detail-mobile-video-toggle { background: rgba(15,23,42,.94) !important; }

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-video-page-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 46px !important;
  margin-top: 10px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(49,92,255,.2) !important;
  border-radius: 10px !important;
  background: #f4f7ff !important;
  color: #2457dc !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-video-page-link b { margin-left: auto !important; font-size: 18px !important; line-height: 1 !important; }

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-tags {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 14px 0 2px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(37, 99, 235, .11) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f8fbff, #f3f7ff) !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-tags-label {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: rgba(37, 99, 235, .10) !important;
  color: #2457dc !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-tags-list {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-tags-list a {
  flex: 0 0 auto !important;
  min-height: 26px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(49, 92, 255, .16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: #3156b4 !important;
  font-size: 12px !important;
  font-weight: 780 !important;
  line-height: 24px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-tags-list a:active {
  border-color: rgba(37, 99, 235, .3) !important;
  background: #eaf1ff !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-action-rail {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-action {
  min-height: 54px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .mobile-btn-3d-preview {
  border-color: #182230 !important;
  background: #182230 !important;
  color: #fff !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .mobile-btn-ar-view {
  border-color: #0b8a57 !important;
  background: #0b8a57 !important;
  color: #fff !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .mobile-btn-download {
  grid-column: 1 / -1 !important;
  min-height: 52px !important;
  border-color: #3568f4 !important;
  background: #3568f4 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* The action rail stays concise; the essential model information follows it. */
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .05) !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-head,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-eyebrow,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary small {
  color: #7b8794 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-head strong {
  color: #2457dc !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary h1 {
  margin: 10px 0 7px !important;
  color: #152033 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary p {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #5d6b7d !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-meta {
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  margin-top: 13px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-meta span {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 5px !important;
  color: #344256 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary-meta i {
  color: #728197 !important;
  font-size: 13px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-model-summary small {
  display: block !important;
  margin-top: 10px !important;
}

/* Keep the two model-library actions immediate and thumb reachable on phones. */
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-social-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(28, 39, 56, .14) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #2d3c50 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-social-pill .num {
  min-width: 0 !important;
  margin-left: 2px !important;
  color: #718096 !important;
  font-size: 11px !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-social-pill.favorite,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-social-pill.like {
  border-color: rgba(38, 101, 218, .28) !important;
  background: #edf3ff !important;
  color: #2457dc !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-share-copy,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-report-entry,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .detail-wx-group-entry,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-primary-social-actions .btn-wxlite-qrcode {
  display: none !important;
}

/* Keep the mobile detail focused on the hero actions and remove duplicate desktop-style copy. */
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-preview-quick,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-experience-badges,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-spatial-hint,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-format-card,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-insight-card,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-experience-copy,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-focus-card,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-info-panel > .detail-mobile-action-rail:not(.detail-mobile-hero-action-rail),
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-download-note,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-access-panel,
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-seo-brief {
  display: none !important;
}

/* Keep crawlable resource links available without adding a second mobile UI section. */
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-seo-links {
  display: none !important;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-section {
  margin: 18px 14px 0;
  padding: 0;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-section h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list {
  display: grid;
  gap: 8px;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list details {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fff;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list summary {
  position: relative;
  padding: 13px 40px 13px 14px;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list summary::-webkit-details-marker { display: none; }
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 14px;
  color: #64748b;
  font-size: 20px;
  font-weight: 400;
}
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list details[open] summary::after { content: "-"; }
body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-ai-faq-list p {
  margin: 0;
  padding: 0 14px 14px;
  color: #526278;
  font-size: 13px;
  line-height: 1.65;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-related-feed-status {
  min-height: 20px;
  padding: 12px 0 2px;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-related-feed-sentinel {
  width: 100%;
  height: 1px;
}

/* Phone-first 3D viewer: keep the model canvas primary and controls thumb reachable. */
@media (max-width: 767px) {
  /* Match the creator mobile detail pattern: actions stay reachable while content scrolls behind them. */
  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(17, 24, 39, .08) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 -12px 34px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(20px) saturate(1.1) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.1) !important;
  }

  /* Keep the rail clear of browser controls without pushing it into page content. */
  html body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail {
    position: fixed !important;
    bottom: 10px !important;
    margin-bottom: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    padding-bottom: 10px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .detail-mobile-action {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 0 5px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .mobile-btn-download {
    grid-column: auto !important;
    min-height: 48px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .detail-mobile-action i {
    flex: 0 0 auto !important;
    font-size: 15px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .mobile-btn-3d-preview {
    color: #fff !important;
    border-color: rgba(15, 23, 42, .9) !important;
    background: linear-gradient(180deg, #26354a, #111827) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .22) !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .mobile-btn-ar-view {
    color: #fff !important;
    border-color: rgba(8, 116, 67, .82) !important;
    background: linear-gradient(180deg, #159b67, #087443) !important;
    box-shadow: 0 8px 18px rgba(8, 116, 67, .2) !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.redesign-detail-page .detail-mobile-hero-action-rail .mobile-btn-download {
    color: #3156b4 !important;
    border-color: rgba(49, 86, 180, .22) !important;
    background: linear-gradient(180deg, #f3f6ff, #e7eeff) !important;
    box-shadow: 0 8px 18px rgba(49, 86, 180, .1) !important;
  }

  /* Auth forms use a scrollable bottom sheet so browser chrome cannot hide fields. */
  body.freecreat-device-mobile.freecreat-v2-preview #login-modal,
  body.freecreat-device-mobile.freecreat-v2-preview #register-modal {
    position: fixed !important;
    inset: 0 !important;
    overscroll-behavior: contain !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 !important;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    border-radius: 22px !important;
    background: #fff !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog::before {
    display: block !important;
    margin: 0 42px 16px 0 !important;
    color: #172033 !important;
    content: "Freecreat" !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog > div:first-of-type h3 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog input,
  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog button {
    min-height: 44px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .freecreat-auth-dialog .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview.freecreat-preview-open {
    overflow: hidden !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal {
    background: #101827 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-frame-content {
    inset: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #101827 !important;
    box-shadow: none !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-frame {
    border-radius: 0 !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .close-btn {
    top: max(12px, env(safe-area-inset-top)) !important;
    left: 12px !important;
    width: 44px !important;
    height: 44px !important;
    color: #fff !important;
    background: rgba(15,23,42,.72) !important;
    box-shadow: none !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-titlebar {
    top: max(14px, env(safe-area-inset-top)) !important;
    left: 66px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    background: rgba(15,23,42,.72) !important;
    color: #fff !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-titlebar img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-titlebar strong {
    color: #fff !important;
    font-size: 13px !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .preview-pan-hints,
  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-top-tools,
  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-side-card,
  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-side-dismiss {
    display: none !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .modal-view-bottom-actions {
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    width: calc(100% - 28px) !important;
    padding: 6px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 14px !important;
    background: rgba(15,23,42,.82) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.28) !important;
  }

  body.freecreat-device-mobile.freecreat-v2-preview .modal-view.modal-view-iframe.freecreat-preview-modal .preview-panel-action {
    min-height: 46px !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: #315cff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }
}

/* Mobile download drawer: keep the download choice on the current model page. */
@media (max-width: 767px) {
  /* Keep the account menu compact so the sign-out action stays visible. */
  body.freecreat-v2-preview .redesign-user-menu-panel {
    width: min(344px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 154px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-stats,
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-primary > a,
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-primary .detail-vip-entry,
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-links .user-menu-link-secondary {
    display: none !important;
  }
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-primary {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 12px !important;
  }
  body.freecreat-v2-preview .redesign-user-menu-panel .user-menu-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }
  body.freecreat-v2-preview .redesign-user-menu-panel .freecreat-logout-entry {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  body.freecreat-download-sheet-open { overflow: hidden !important; }
  .freecreat-mobile-download-sheet {
    position: fixed;
    inset: 0;
    z-index: 12000;
    visibility: hidden;
    pointer-events: none;
  }
  .freecreat-mobile-download-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .freecreat-mobile-download-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .46);
    opacity: 0;
    transition: opacity .22s ease;
  }
  .freecreat-mobile-download-sheet.is-open .freecreat-mobile-download-backdrop { opacity: 1; }
  .freecreat-mobile-download-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88dvh, 760px);
    overflow: auto;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #f8fafc;
    box-shadow: 0 -18px 48px rgba(15, 23, 42, .18);
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
  }
  .freecreat-mobile-download-sheet.is-open .freecreat-mobile-download-panel { transform: translateY(0); }
  .freecreat-mobile-download-handle {
    width: 48px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #cbd5e1;
  }
  .freecreat-mobile-download-close {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    background: #fff;
    font-size: 28px;
    line-height: 1;
  }
  .freecreat-mobile-download-panel h2 {
    margin: 0 54px 8px 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.15;
  }
  .freecreat-mobile-download-copy {
    max-width: 620px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
  }
  .freecreat-mobile-download-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .freecreat-mobile-download-shortcuts button,
  .freecreat-mobile-download-format button {
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    color: #1e3a8a;
    background: #fff;
    font-weight: 800;
  }
  .freecreat-mobile-download-shortcuts button:first-child,
  .freecreat-mobile-download-format button {
    border-color: #3568f4;
    color: #fff;
    background: linear-gradient(180deg, #4f79ff, #3468f4);
  }
  .freecreat-mobile-download-model {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin-bottom: 18px;
    color: #0f172a;
    font-weight: 800;
  }
  .freecreat-mobile-download-model > span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .freecreat-mobile-download-model img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
  }
  .freecreat-mobile-download-panel h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 17px;
  }
  .freecreat-mobile-download-formats { display: grid; gap: 10px; }
  .freecreat-mobile-download-format {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
  }
  .freecreat-mobile-download-format > div { min-width: 0; }
  .freecreat-mobile-download-format strong,
  .freecreat-mobile-download-format span { display: block; }
  .freecreat-mobile-download-format strong { color: #0f172a; font-size: 17px; }
  .freecreat-mobile-download-format span { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.35; }
  .freecreat-mobile-download-format button { flex: 0 0 104px; min-height: 42px; }
  .freecreat-mobile-download-format button:disabled { opacity: .65; }
  .freecreat-mobile-download-empty { color: #64748b; }
}
