/* V3 scoped to iframe only. Standalone and mobile guest pages remain untouched. */
@media (min-width: 0px) {
 html.ep-guest-embedded,html.ep-guest-embedded body {
  height:100%!important;min-height:0!important;overflow-x:hidden!important;
 }
 html.ep-guest-embedded .guest-page {
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;min-height:100dvh!important;height:auto!important;
  width:100%!important;max-width:none!important;margin:0!important;
  padding:24px 30px!important;box-sizing:border-box!important;background:#fff!important;
 }
 html.ep-guest-embedded .guest-upload-section {
  width:100%!important;max-width:500px!important;margin:auto!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
 }
 html.ep-guest-embedded .guest-upload-eyebrow {
  display:block!important;width:auto!important;padding:0!important;
  margin:0 auto 9px!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#178fb9!important;
  font-size:10px!important;font-weight:800!important;letter-spacing:2px!important;
 }
 html.ep-guest-embedded .guest-upload-section > h1 {
  font-size:27px!important;line-height:1.17!important;letter-spacing:-.75px!important;
  margin:0 auto!important;color:#195481!important;
 }
 html.ep-guest-embedded .guest-subtitle {
  max-width:440px!important;margin:7px auto 19px!important;
  font-size:12px!important;line-height:1.5!important;color:#62839a!important;
 }
 html.ep-guest-embedded #filePreviewState,
 html.ep-guest-embedded #uploadingState {
  width:100%!important;max-width:390px!important;margin:0 auto!important;
 }
 html.ep-guest-embedded .file-preview-card {
  width:100%!important;max-width:390px!important;box-sizing:border-box!important;
  margin:0 auto!important;padding:12px!important;border-radius:15px!important;
  background:#fff!important;border:1px solid #e0edf4!important;
  box-shadow:0 6px 20px rgba(24,87,132,.055)!important;
 }
 html.ep-guest-embedded .file-preview-visual,
 html.ep-guest-embedded .guest-upload-public-page .file-preview-visual {
  height:208px!important;min-height:208px!important;max-height:208px!important;
  border-radius:10px!important;background:#f1f8fc!important;
  overflow:hidden!important;
 }
 html.ep-guest-embedded .file-preview-visual canvas,
 html.ep-guest-embedded .pdf-preview-canvas,
 html.ep-guest-embedded .docx-real-preview {
  max-height:198px!important;
 }
 html.ep-guest-embedded .preview-file-name {
  margin:9px auto 1px!important;font-size:12px!important;font-weight:750!important;
 }
 html.ep-guest-embedded .preview-file-meta {font-size:10px!important;margin:0 auto!important}
 html.ep-guest-embedded .upload-file-btn {
  min-height:44px!important;height:44px!important;margin-top:12px!important;
  border-radius:10px!important;box-shadow:0 6px 16px rgba(23,153,192,.12)!important;
 }
 html.ep-guest-embedded #filePreviewState::after {content:none!important;display:none!important}
 html.ep-guest-embedded #uploadRules {margin-top:10px!important;font-size:10px!important}
 html.ep-guest-embedded .upload-progress-wrap {margin-top:12px!important;padding:10px 12px!important}
 html.ep-guest-embedded .upload-progress-bar {height:7px!important}
 html.ep-guest-embedded .cancel-upload-btn {margin-top:8px!important}
 html.ep-guest-embedded .file-error,html.ep-guest-embedded .file-success {margin-top:4px!important}
}
/* On short screens keep scroll available, never clip cancellation/error controls. */
@media(max-height:650px){
 html.ep-guest-embedded body {overflow-y:auto!important}
 html.ep-guest-embedded .guest-page {justify-content:flex-start!important;padding:16px 25px!important}
 html.ep-guest-embedded .guest-subtitle {margin-bottom:10px!important}
 html.ep-guest-embedded .file-preview-visual {height:155px!important;min-height:155px!important;max-height:155px!important}
 html.ep-guest-embedded .file-preview-visual canvas,html.ep-guest-embedded .docx-real-preview {max-height:147px!important}
}