.song-group-filter { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; min-width:0; margin-bottom:16px; }
.song-group-label { color:var(--navy); font-size:14px; font-weight:700; }
.song-group-toggle { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-width:210px; min-height:40px; max-width:100%; padding:8px 12px; border:1px solid #b7c8dc; border-radius:9px; background:#fff; color:var(--navy); font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.song-group-toggle:hover,.song-group-toggle[aria-expanded="true"] { border-color:#6591c0; background:#f6f9fd; }
.song-group-toggle:focus-visible { outline:2px solid #2b65b1; outline-offset:2px; }
.song-group-toggle[aria-expanded="true"] .site-disclosure-icon { transform:rotate(180deg); }
.song-group-panel { position:absolute; top:calc(100% + 6px); left:0; z-index:12; width:min(760px,calc(100vw - 64px)); max-height:min(70vh,460px); overflow:auto; padding:14px; border:1px solid #cfd8e5; border-radius:13px; background:#fff; box-shadow:0 12px 30px rgba(23,32,51,.16); }
.song-group-panel[hidden] { display:none; }
.song-group-list { display:flex; flex-direction:column; gap:6px; }
.song-group-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
.song-group-group { display:inline-flex; align-items:center; min-width:0; gap:3px; }
.song-group-unit { flex-direction:column; align-items:flex-start; }
.song-group-subgroups { position:relative; display:flex; flex-wrap:wrap; gap:3px; margin:3px 0 0 12px; padding-left:9px; border-left:2px solid #d8e3ef; }
.song-group-subgroups::before { content:""; position:absolute; top:14px; left:-2px; width:9px; border-top:2px solid #d8e3ef; }
.song-group-option { position:relative; display:inline-flex; align-items:center; gap:4px; min-height:34px; max-width:100%; padding:5px 6px; border:1px solid #cfd8e5; border-radius:8px; background:#fff; color:var(--navy); font-size:14px; font-weight:700; cursor:pointer; }
.song-group-option::before { content:""; flex:0 0 12px; height:12px; border:1.5px solid #70839a; border-radius:4px; background:#fff; }
.song-group-option input { position:absolute; width:1px; height:1px; opacity:0; }
.song-group-option:has(input:checked) { border-color:#6591c0; background:#edf4fb; }
.song-group-option:has(input:checked)::before { border-color:#2b65b1; background:#2b65b1; box-shadow:inset 0 0 0 2px #fff; }
.song-group-option:has(input:indeterminate)::before { border-color:#2b65b1; background:linear-gradient(#2b65b1,#2b65b1) center / 6px 2px no-repeat; }
.song-group-option:has(input:focus-visible) { outline:2px solid #2b65b1; outline-offset:2px; }
.song-group-option small { color:#66758a; font-size:14px; font-weight:500; }
.song-group-label-part { display:inline-block; }
.song-group-subgroup { min-height:30px; padding:3px 6px; color:#303b4e; font-weight:600; }
.song-group-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid #ebedf2; }
.song-group-actions button { min-height:34px; padding:5px 10px; border:1px solid #b7c8dc; border-radius:8px; background:#fff; color:#173d69; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.song-group-actions button:hover { background:#edf4fb; }
.song-group-actions button:focus-visible { outline:2px solid #2b65b1; outline-offset:2px; }
@media(max-width:620px) {
  .song-group-toggle { width:100%; }
  .song-group-panel { width:100%; }
  .song-group-filter { align-items:stretch; }
  .song-group-label { width:100%; }
  .song-group-group { max-width:100%; }
  .song-group-unit { width:100%; }
  .song-group-subgroups { min-width:0; max-width:calc(100% - 12px); }
  /* Keep the check and count out of the wrapping label's column. */
  .song-group-option { display:inline-grid; grid-template-columns:12px minmax(0,1fr) max-content; min-width:0; }
  .song-group-option > span { min-width:0; overflow-wrap:anywhere; }
  .song-group-option small { white-space:nowrap; }
  .song-group-label-part { display:inline; }
}
