/*
 * Send Listy Core 0.722 — Add/Edit List Bottom Safe-Area Clearance
 * Parent: Core 0.721
 *
 * Scoped only to the canonical Add/Edit List window. The live action tray remains
 * fixed; the scrolling editor body receives enough trailing space for its final
 * content to clear that tray. No global modal or bottom-nav geometry is changed.
 */

.send-list-app .sl-modal.is-create-list-modal
.sl-create-list-reference-body {
  --sl-editor-bottom-breathing-room: 28px;
  padding-bottom: calc(
    var(--sl-editor-action-tray-height, 92px) +
    var(--sl-editor-bottom-breathing-room) +
    env(safe-area-inset-bottom, 0px)
  ) !important;
  scroll-padding-bottom: calc(
    var(--sl-editor-action-tray-height, 92px) +
    var(--sl-editor-bottom-breathing-room) +
    env(safe-area-inset-bottom, 0px)
  ) !important;
}

/* The legacy generic editor spacer is intentionally not reused here. This surface
   owns its clearance from the actual detached tray height. */
.send-list-app .sl-modal.is-create-list-modal .sl-editor {
  padding-bottom: 0 !important;
}

@media (max-width:650px) {
  .send-list-app .sl-modal.is-create-list-modal
  .sl-create-list-reference-body {
    --sl-editor-bottom-breathing-room: 34px;
  }
}
