/* ---------- Duplicate-scan results modal ---------- */
#dup-results-list{ max-height:60vh; overflow-y:auto; margin-top:10px; }
.dup-group{ border:1px solid var(--line); border-radius:10px; padding:10px; margin-bottom:12px; }
.dup-group-header{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  font-size:12px; color:var(--text-dim); margin-bottom:8px;
}
.dup-group-clear, .mini-link{ font-size:11.5px; color:var(--text-dim); flex-shrink:0; }
.dup-group-clear:hover, .mini-link:hover{ color:var(--parchment); }
.mini-link{ display:inline-block; margin-top:4px; }
.dup-song-row{ cursor:default; }
.dup-song-row input[type=checkbox]{ flex-shrink:0; width:16px; height:16px; margin-right:2px; }
#dup-bulk-actions{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px;
}
.dup-select-menu-wrap{ position:relative; }
#dup-select-menu-btn{
  font-size:12.5px; color:var(--text-dim); background:none; border:1px solid var(--line);
  border-radius:6px; padding:5px 10px; cursor:pointer;
}
#dup-select-menu-btn:hover{ color:var(--parchment); border-color:var(--parchment); }
.dup-select-menu{
  display:none; position:absolute; bottom:calc(100% + 6px); left:0; min-width:240px;
  background:var(--ink-soft); border:1px solid var(--line); border-radius:8px; padding:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.35); z-index:20;
}
.dup-select-menu.open{ display:block; }
.dup-select-menu a{
  display:block; padding:7px 8px; font-size:12.5px; color:var(--parchment);
  border-radius:5px; text-decoration:none; white-space:nowrap;
}
.dup-select-menu a:hover{ background:var(--ink-softer); }
.dup-select-menu-sep{ height:1px; background:var(--line); margin:4px 2px; }
/* ---------- Cleanup-scan results modal ---------- */
#cleanup-results-list{ max-height:60vh; overflow-y:auto; margin-top:10px; }
.cleanup-song-row{ cursor:default; }
.cleanup-song-row input[type=checkbox]{ flex-shrink:0; width:16px; height:16px; margin-right:2px; }
.cleanup-flags{ display:flex; gap:5px; flex-shrink:0; flex-wrap:wrap; justify-content:flex-end; }
/* Solid tinted pills, not dim outlined text — the previous
   border+dim-text-on-dark-background version was hard to read at a
   glance (both --teal/--vermillion are dark, muted tones, same value
   range as the --ink-soft background behind them). */
.cleanup-flag{
  font-size:11.5px; padding:3px 9px; border-radius:20px; font-weight:600; white-space:nowrap;
}
.cleanup-flag.fix{ background:var(--teal); color:var(--parchment); }
.cleanup-flag.warn{ background:var(--vermillion); color:var(--parchment); }
.cleanup-flag.rule{ background:var(--ink-softer); color:var(--gold-bright); border:1px solid var(--gold); }
#cleanup-bulk-actions{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; flex-wrap:wrap;
}
.cleanup-select-menu-wrap{ position:relative; }
#cleanup-select-menu-btn{
  font-size:12.5px; color:var(--text-dim); background:none; border:1px solid var(--line);
  border-radius:6px; padding:5px 10px; cursor:pointer;
}
#cleanup-select-menu-btn:hover{ color:var(--parchment); border-color:var(--parchment); }
.cleanup-select-menu{
  display:none; position:absolute; bottom:calc(100% + 6px); left:0; min-width:260px; max-width:360px;
  background:var(--ink-soft); border:1px solid var(--line); border-radius:8px; padding:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.35); z-index:20; max-height:50vh; overflow-y:auto;
}
.cleanup-select-menu.open{ display:block; }
.cleanup-select-menu a{
  display:block; padding:7px 8px; font-size:12.5px; color:var(--parchment);
  border-radius:5px; text-decoration:none; white-space:normal;
}
.cleanup-select-menu a:hover{ background:var(--ink-softer); }
.cleanup-select-menu-sep{ height:1px; background:var(--line); margin:4px 2px; }
/* Review/edit modal (item 1): noticeably bigger than the generic
   .modal-wide/.lyrics-textarea other modals use, so long lyrics are
   comfortably readable/editable — vh-based so it scales with the
   window instead of looking arbitrarily sized on a different monitor. */
#cleanup-preview-modal-backdrop .modal{ width:820px; max-width:92vw; }
#cleanup-preview-modal-backdrop .lyrics-textarea{ height:58vh; min-height:500px; }
#cleanup-preview-fixes{
  background:var(--ink); border:1px solid var(--line); border-radius:8px; padding:10px 12px;
  margin-bottom:12px; font-size:12.5px; color:var(--text-dim); max-height:120px; overflow-y:auto;
}
#cleanup-preview-fixes ul{ margin:4px 0 0; padding-left:18px; }
#cleanup-preview-fixes li{ margin:2px 0; }
#cleanup-suggestions-list{
  background:var(--ink); border:1px solid var(--line); border-radius:8px; padding:10px 12px;
  margin-bottom:12px; max-height:220px; overflow-y:auto;
}
.cleanup-suggestion-row{
  display:flex; align-items:flex-start; gap:8px; padding:3px 0; font-size:12.5px; color:var(--text-dim); cursor:pointer;
}
.cleanup-suggestion-row input{ margin-top:2px; flex-shrink:0; }
.cleanup-replace-table{ width:100%; border-collapse:collapse; }
.cleanup-replace-table th{
  text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim);
  padding:0 8px 4px; font-weight:normal;
}
.cleanup-replace-table td{ padding:3px 4px; }
.cleanup-replace-table td:last-child{ width:1%; }
.cleanup-replace-table input[type=text]{
  width:100%; background:var(--ink); color:var(--parchment); border:1px solid var(--line);
  border-radius:6px; padding:7px 9px; font-family:var(--font-ethiopic); font-size:13.5px;
}
.cleanup-replace-remove-row{
  background:none; border:none; color:var(--text-dim); cursor:pointer; font-size:14px; padding:4px 6px;
}
.cleanup-replace-remove-row:hover{ color:var(--gold); }
.add-song-btn{ color:var(--teal); }
.add-song-btn:hover{ color:var(--parchment); background:var(--teal); }
.add-song-btn.added{ color:var(--gold); }
.add-song-btn.added:hover{ background:var(--gold); color:var(--ink); }

.result-row:hover{ background:var(--ink-softer); }
.result-row.active{ background:rgba(201,162,39,0.14); }

