/* Good Crowd v1.27.65 — SINGLE source of truth for Add/Edit Song layout.
   Replaces the two legacy song-sheet-stability/visibility overrides.
   Isolated to these modal types; never touches login, crews, or other sheets. */
.shade[data-modal-type="song"],
.shade[data-modal-type="edit"] {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  z-index: 210 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  touch-action: auto !important;
  overscroll-behavior: contain;
}
.shade[data-modal-type="song"] > .sheet,
.shade[data-modal-type="edit"] > .sheet,
.shade[data-modal-type="song"]:has(.tune-control) > .sheet,
.shade[data-modal-type="edit"]:has(.tune-control) > .sheet {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
  width: min(100%, 560px) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: min(92vh, 860px) !important;
  height: min(92dvh, 860px) !important;
  max-height: calc(100vh - 8px) !important;
  max-height: calc(100dvh - 8px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 23px 23px 0 0 !important;
  border-bottom: 0 !important;
  overscroll-behavior: contain !important;
}
.shade[data-modal-type="song"] > .sheet::before,
.shade[data-modal-type="edit"] > .sheet::before {
  content: none !important;
  display: none !important;
}
.shade[data-modal-type="song"] form#song-form,
.shade[data-modal-type="edit"] form#song-form {
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.shade[data-modal-type="song"] form#song-form > .song-sheet-scroll,
.shade[data-modal-type="edit"] form#song-form > .song-sheet-scroll {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  width: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  padding: 20px 17px 25px !important;
  margin: 0 !important;
}
.shade[data-modal-type="song"] form#song-form > .song-sheet-footer,
.shade[data-modal-type="edit"] form#song-form > .song-sheet-footer {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 70px !important;
  padding: 10px 17px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  border-top: 1px solid #34313b !important;
  background: #111217 !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  z-index: 5 !important;
}
.shade[data-modal-type="song"] form#song-form > .song-sheet-footer > .song-sheet-submit,
.shade[data-modal-type="edit"] form#song-form > .song-sheet-footer > .song-sheet-submit,
.shade[data-modal-type="song"]:has(.tune-control) form#song-form .song-sheet-submit,
.shade[data-modal-type="edit"]:has(.tune-control) form#song-form .song-sheet-submit {
  position: relative !important;
  display: flex !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: space-between !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  float: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  touch-action: manipulation !important;
  z-index: 3 !important;
  box-shadow: none !important;
}
.shade[data-modal-type="song"] .song-sheet-submit:focus-visible,
.shade[data-modal-type="edit"] .song-sheet-submit:focus-visible {
  outline: 2px solid #c5f5ff;
  outline-offset: 2px;
}
.shade[data-modal-type="song"] .song-sheet-submit.song-sheet-capacity,
.shade[data-modal-type="edit"] .song-sheet-submit.song-sheet-capacity {
  background: #2f2737 !important;
  border-color: #6d5579 !important;
  color: #deedf0 !important;
  cursor: pointer !important;
}
@media(min-width:620px) {
  .shade[data-modal-type="song"], .shade[data-modal-type="edit"] {align-items: center !important;}
  .shade[data-modal-type="song"] > .sheet,
  .shade[data-modal-type="edit"] > .sheet,
  .shade[data-modal-type="song"]:has(.tune-control) > .sheet,
  .shade[data-modal-type="edit"]:has(.tune-control) > .sheet {
    height: min(87dvh, 780px) !important;
    border-radius: 23px !important;
    border-bottom: 1px solid #34343b !important;
  }
  .shade[data-modal-type="song"] form#song-form > .song-sheet-scroll,
  .shade[data-modal-type="edit"] form#song-form > .song-sheet-scroll {padding:24px 27px 25px !important;}
  .shade[data-modal-type="song"] form#song-form > .song-sheet-footer,
  .shade[data-modal-type="edit"] form#song-form > .song-sheet-footer {padding:13px 27px 18px !important;}
}
@media(max-width:390px) {
  .shade[data-modal-type="song"] form#song-form > .song-sheet-scroll,
  .shade[data-modal-type="edit"] form#song-form > .song-sheet-scroll {padding:16px 15px 20px !important;}
  .shade[data-modal-type="song"] form#song-form > .song-sheet-footer,
  .shade[data-modal-type="edit"] form#song-form > .song-sheet-footer {padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px)) !important;}
}
