/* #014A-R6H protected UI recovery. Keep this stylesheet last in index.html. */
html body .update-banner {
  top: auto !important;
  bottom: 16px !important;
  right: 12px !important;
  left: auto !important;
  width: auto !important;
  max-width: 280px !important;
  min-height: 34px !important;
  padding: 4px 5px 4px 10px !important;
  gap: 8px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  transform: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
}

html body .update-banner button {
  min-height: 26px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}

html body #app-view[data-v2-shell-ready="1"] #group-select {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 104px !important;
  max-width: 168px !important;
  min-height: 38px !important;
  padding: 0 28px 0 10px !important;
  font-size: 12px !important;
}

html body #app-view[data-v2-shell-ready="1"] #songs-page:not(.has-song-selection) .content-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  width: 100% !important;
  max-width: none !important;
}

html body #app-view[data-v2-shell-ready="1"] #songs-page:not(.has-song-selection) .content-grid > .panel:first-child {
  width: 100% !important;
  max-width: none !important;
}

html body #songs-page:not(.has-song-selection) #song-editor {
  display: none !important;
}

html body #songs-page:not(.has-song-selection) #song-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: var(--panel) !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  align-content: start !important;
  gap: 10px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork {
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: rgba(25,20,35,.16) !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork .song-card-artwork-frame {
  position: absolute !important;
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork .song-card-artwork-frame img {
  position: absolute !important;
  inset: 0 !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork.artwork-photo .song-card-artwork-frame {
  inset: 0 !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork.artwork-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork.artwork-logo {
  background: color-mix(in srgb,var(--panel) 82%,var(--text) 18%) !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork.artwork-logo .song-card-artwork-frame {
  inset: 14px !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-artwork.artwork-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-row-copy,
html body #songs-page:not(.has-song-selection) #song-list .repertoire-state-pill,
html body #songs-page:not(.has-song-selection) #song-list .bpm-pill {
  margin-inline: 12px !important;
}

html body #songs-page:not(.has-song-selection) #song-list .song-planning-summary,
html body #songs-page:not(.has-song-selection) #song-list .media-resource-summary,
html body #songs-page:not(.has-song-selection) #song-list .song-card-actions {
  margin-inline: 12px !important;
}

html body #app-view[data-v2-shell-ready="1"] #songs-page.has-song-selection .content-grid {
  display: block !important;
}

html body #app-view[data-v2-shell-ready="1"] #songs-page.has-song-selection .content-grid > .panel:first-child {
  display: none !important;
}

html body #songs-page.has-song-selection #song-editor {
  display: block !important;
  width: min(1180px,100%) !important;
  margin-inline: auto !important;
}

@media (max-width: 760px) {
  html body #songs-page:not(.has-song-selection) #song-list {
    grid-template-columns: repeat(auto-fill,minmax(170px,1fr)) !important;
  }
  html body #app-view[data-v2-shell-ready="1"] #group-select {
    min-width: 88px !important;
    max-width: 150px !important;
  }
}
