/* The selection dialog owns the touch surface above the fixed ticker and nav. */
.draft-profile-overlay,
.draft-announcement {
  z-index: 130;
  height: 100vh;
  height: 100dvh;
  padding: max(12px, var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) max(12px, var(--safe-area-inset-right, env(safe-area-inset-right, 0px)))
    max(12px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) max(12px, var(--safe-area-inset-left, env(safe-area-inset-left, 0px)));
  overflow: hidden;
}

.draft-profile-dialog {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.draft-profile-dialog > [role="status"] {
  flex-shrink: 0;
  max-height: 64px;
  margin: 0 0 8px;
  overflow-y: auto;
}
.draft-profile-dialog > [role="status"]:empty { display: none; }
.draft-profile-heading { flex-shrink: 0; margin-bottom: 8px; gap: 10px; }
.draft-profile-heading button { flex: 0 0 44px; width: 44px; height: 44px; }

/* Only the player card scrolls; confirmation stays visible on short screens. */
.draft-profile-body {
  min-height: 0;
  margin-inline: -6px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.draft-profile-body .draft-trading-card { margin-bottom: 8px; }
.draft-profile-actions { flex-shrink: 0; margin-top: 10px; }
.draft-profile-actions > button { min-height: 48px; font-size: 12px; overflow-wrap: anywhere; }
.draft-profile-dialog > p:last-child { flex-shrink: 0; }

.announcement-card { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.announcement-card [data-dismiss-announcement] { min-height: 48px; }

@media (max-height: 600px) {
  .draft-profile-body .player-card-photo { height: 130px; }
}
