/* The Munsif ePaper — Step 73C: mobile clipping sheet top anchored above fixed bottom advertising.
   Scoped to active mobile clipping dialog; desktop and original clipping engine unchanged. */
@media screen and (max-width:650px) {
  body.munsif-edition-body .mn-clip-panel.mn-clip73-sheet {
    /* Reserve lower screen area for sticky third-party advertising. */
    --mn-clip73c-ad-clearance: max(120px, 20dvh);
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: calc(100dvh - var(--mn-clip73c-ad-clearance) - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - var(--mn-clip73c-ad-clearance) - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: max(22px, env(safe-area-inset-top, 0px)) 12px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 9px 30px rgba(13, 27, 42, .28) !important;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-info {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 65px !important;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-info strong {
    font-size: 19px !important;
    line-height: 1.12 !important;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-close {
    top: max(20px, env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-result {
    display: grid !important;
    grid-template-rows: minmax(0,1fr) auto !important;
    justify-items: center !important;
    align-items: stretch !important;
    row-gap: 9px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  body.munsif-edition-body .mn-clip73-sheet #mn-clip-preview {
    display: block !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-actions {
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: min(34dvh, 230px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-self: end !important;
    padding: 0 0 2px !important;
    overscroll-behavior: contain;
  }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-actions button {
    min-height: 42px !important;
    padding: 8px 5px !important;
  }
  body.munsif-edition-body .mn-clip73-toast {
    bottom: calc(max(120px, 20dvh) + 8px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media screen and (max-width:650px) and (max-height:620px) {
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-info strong { font-size: 17px !important; }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-info #mn-clip-status { font-size: 11px !important; }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-actions { max-height: min(38dvh, 185px) !important; }
  body.munsif-edition-body .mn-clip73-sheet .mn-clip-actions button { min-height: 40px !important; }
}
