/* RC42: preserve natural vertical document scrolling on narrow mobile admin wizard.
   Scope to the track wizard to avoid changing public player and admin overlays. */
@media (max-width: 820px) {
 html:has(#trackWizard) {
   height: auto !important;
   min-height: 100% !important;
   max-height: none !important;
   overflow-x: hidden !important;
   overflow-y: auto !important;
   scroll-behavior: auto;
 }
 body.pm-admin-body:has(#trackWizard) {
   position: static !important;
   height: auto !important;
   min-height: 100dvh !important;
   max-height: none !important;
   overflow-x: hidden !important;
   overflow-y: auto !important;
   -webkit-overflow-scrolling: touch;
   overscroll-behavior-y: auto;
 }
 .pm-admin-body:has(#trackWizard) .pm-admin-main {
   display: block !important;
   height: auto !important;
   min-height: 0 !important;
   max-height: none !important;
   overflow: visible !important;
   padding-bottom: calc(35px + env(safe-area-inset-bottom, 0px)) !important;
 }
 #trackWizard.pm-wizard {
   position: relative !important;
   display: block !important;
   height: auto !important;
   min-height: 0 !important;
   max-height: none !important;
   overflow: visible !important;
   overscroll-behavior-y: auto;
   touch-action: pan-y pinch-zoom;
   scroll-margin-top: calc(62px + env(safe-area-inset-top, 0px));
   max-width: 100%;
   box-sizing: border-box;
 }
 #trackWizard .pm-wizard-body {
   display: block !important;
   position: static !important;
   height: auto !important;
   min-height: 0 !important;
   max-height: none !important;
   overflow: visible !important;
   padding-bottom: 15px;
 }
 #trackWizard .pm-wizard-body > section.is-active {
   position: static !important;
   height: auto !important;
   min-height: 0 !important;
   max-height: none !important;
   overflow: visible !important;
   padding-bottom: 8px;
 }
 #trackWizard .pm-wizard-body > section:not(.is-active) {display: none !important;}
 #trackWizard .pm-wizard-footer {
   position: static !important;
   inset: auto !important;
   z-index: auto;
   width: 100%;
   min-width: 0;
   max-width: 100%;
   box-sizing: border-box;
   padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
 }
 #trackWizard .pm-wizard-steps,
 #trackWizard .pm-form-grid,
 #trackWizard .pm-quality-upload,
 #trackWizard .pm-id3-editor,
 #trackWizard .pm-id3-preset-bar,
 #trackWizard .pm-quality-names {
   min-width: 0;
   max-width: 100%;
 }
 #trackWizard input,
 #trackWizard textarea,
 #trackWizard select {max-width:100%;box-sizing:border-box;}
 #trackWizard input[type=file] {width:100%;min-width:0;}
 #trackWizard .pm-wizard-body,
 #trackWizard .pm-wizard-body > section {overflow-wrap:anywhere;}
}


/* RC42: homepage request CTA has its own padded card.
   Stronger selector is deliberate: generic .pm-section padding overrides
   the former equally-specific .pm-home-request declaration. */
.pm-public-body .pm-section.pm-home-request {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(18px,3vw,32px);
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:clamp(23px,3.5vw,42px) !important;
  margin-block:24px;
  border-radius:22px;
}
.pm-public-body .pm-home-request > div {
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
}
.pm-public-body .pm-home-request h2 {
  margin:8px 0 12px;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.pm-public-body .pm-home-request p {
  margin:0;
  max-width:62ch;
  line-height:2;
  overflow-wrap:anywhere;
}
.pm-public-body .pm-home-request > .ui-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:46px;
  padding-inline:clamp(16px,2vw,24px);
  margin:0;
  white-space:nowrap;
  box-sizing:border-box;
}
@media(max-width:640px) {
 .pm-public-body .pm-section.pm-home-request {
   flex-direction:column;
   align-items:stretch;
   justify-content:flex-start;
   gap:18px;
   padding:clamp(20px,5vw,28px) !important;
   margin-block:18px;
   border-radius:18px;
 }
 .pm-public-body .pm-home-request > .ui-btn {
   width:100%;
   flex:0 0 auto;
   white-space:normal;
   text-align:center;
   min-height:48px;
 }
}
