html {
  scroll-padding-block-start: calc(var(--sn-sticky-header-height, 72px) + 12px);
}

#download-status:empty {
  display: none;
}

@media (max-width: 800px) {
  .preview .paper {
    min-height: 0;
    padding: 24px clamp(16px, 5vw, 28px);
  }

  .preview .paper .signature-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 16px;
  }

  .preview .paper .notary-placeholder {
    min-height: 130px;
  }

  .preview .actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview .actions .btn {
    min-width: 0;
    min-height: 48px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .sn-menu-btn {
    min-width: 44px;
    min-height: 44px;
  }

  #booking-form .section-head .badge {
    margin-top: 8px;
  }

  #booking-form .card-title {
    align-items: flex-start;
  }

  #booking-form .card-title h3 {
    min-width: 0;
    line-height: 1.3;
  }

  #booking-form .card-title .badge {
    flex-shrink: 0;
  }

  #booking-form input,
  #booking-form select,
  #booking-form textarea {
    min-width: 0;
    font-size: 16px;
  }

  #booking-form input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
  #booking-form select {
    min-height: 46px;
  }

  #booking-form .step-actions button {
    min-height: 48px;
  }

  .mode-switch-backdrop {
    z-index: 10000;
  }

  .mode-switch-dialog {
    max-height: 100%;
    overflow-y: auto;
  }
}
