.modal-backdrop.edit-mode .modal {
  width: min(1480px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 28px;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-backdrop.edit-mode .modal::-webkit-scrollbar,
.edit-fold > div::-webkit-scrollbar,
.edit-sounds-scroll::-webkit-scrollbar,
.edit-box textarea::-webkit-scrollbar { display: none; }
.edit-box textarea { scrollbar-width: none; }
.edit-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 28px; }
.edit-heading h2 { margin: 5px 0 2px; }
.edit-heading p { margin: 0; }
.edit-heading-song { display: flex; align-items: center; gap: 11px; min-width: 0; max-width: 260px; }
.edit-heading-song .report-cover { width: 48px; height: 48px; flex: none; border-radius: 7px; object-fit: cover; }
.edit-heading-song span { display: grid; gap: 4px; min-width: 0; }
.edit-heading-song strong, .edit-heading-song small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-heading-song strong { font-size: 12px; }
.edit-heading-song small { color: #aaa8b2; font-size: 11px; }
.modal #edit-form { margin-top: 20px; gap: 16px; }
.edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.edit-box { display: flex; flex-direction: column; gap: 15px; min-width: 0; height: clamp(340px, calc(100dvh - 310px), 820px); padding: 19px; border: 1px solid #ffffff20; border-radius: 11px; background: linear-gradient(155deg, #ffffff09, #ffffff03); }
.edit-box:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr); align-content: start; }
.edit-box:first-child .edit-box-title,
.edit-box:first-child .edit-sounds { grid-column: 1 / -1; }
.edit-box-title { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #ffffff1b; }
.edit-box-title span { color: #e9a381; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.edit-box-title h3 { margin: 0; font-size: 16px; letter-spacing: -.4px; }
.edit-box label { min-width: 0; }
.edit-box .rights-check small { display: block; margin-top: 4px; color: #aaa8b2; font-size: 10px; font-weight: 400; }
.edit-cover-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.edit-cover-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #ffffff22; border-radius: 9px; background: #15161e88; }
.edit-cover-card strong { color: #e9a381; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.edit-cover-card small { color: #aaa8b2; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-cover-art { display: block; width: 100%; aspect-ratio: 1; min-height: 0; border-radius: 6px; object-fit: cover; }
.edit-cover-art.cover-fallback { font-size: 56px; }
.edit-cover-placeholder { display: grid; place-items: center; padding: 14px; border: 1px dashed #ffffff35; background: #ffffff07; color: #aaa8b2; font-size: 11px; line-height: 1.4; text-align: center; }
.edit-fold { display: flex; flex-direction: column; min-height: 0; border: 1px solid #ffffff20; border-radius: 7px; background: #1718208a; }
.edit-sounds { position: relative; min-height: 0; overflow: hidden; border: 1px solid #ffffff20; border-radius: 7px; background: #1718208a; }
.edit-sounds-title { height: 39px; padding: 12px; color: #f0d0c0; font-size: 11px; font-weight: 800; border-bottom: 1px solid #ffffff20; }
.edit-sounds-scroll { position: absolute; inset: 39px 0 0; overflow-y: scroll; overscroll-behavior-y: contain; scrollbar-width: none; padding: 12px 12px 32px; }
.edit-sounds .genre-picker { margin: 0; }
.edit-sounds .sound-picker .sound-groups { max-height: none; overflow: visible; }
.edit-sounds .genre-hint { padding-top: 12px; border-top: 1px solid #ffffff1d; color: #f0d0c0; font-weight: 700; }
.edit-fold summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px; color: #f0d0c0; cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.edit-fold summary::-webkit-details-marker { display: none; }
.edit-fold[open] summary { border-bottom: 1px solid #ffffff20; }
.edit-fold[open] summary span { transform: rotate(180deg); }
.edit-fold > div { min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: none; }
.edit-fold .genre-picker { margin: 0; }
.edit-fold textarea { min-height: 150px; }
.edit-footer { position: sticky; bottom: -28px; z-index: 1; display: grid; gap: 9px; padding: 14px 0 10px; border-top: 1px solid #ffffff20; background: #24242d; }
.edit-footer .form-error:empty { display: none; }
.edit-footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal .edit-footer-actions .btn { margin: 0; }
@media (max-width: 850px) {
  .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edit-box { height: clamp(340px, calc(96dvh - 280px), 560px); }
  .edit-box:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .modal-backdrop.edit-mode .modal { padding: 22px 16px; }
  .edit-heading-song { display: none; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-box:last-child { grid-column: auto; }
  .edit-box { height: auto; min-height: 0; }
  .edit-box:first-child { grid-template-columns: 1fr; grid-template-rows: auto; }
  .edit-box:first-child .edit-sounds { min-height: 300px; }
  .edit-fold > div { max-height: 300px; }
  .edit-footer { bottom: -22px; }
  .edit-footer-actions { grid-template-columns: 1fr; }
}
