/* A row owns its chord edits. Keep each control, diagram, and audition together. */
.disclosure {
  flex: 0 0 50px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--mist);
  color: var(--ink);
}
.disclosure svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.disclosure-label { font-size: .75rem; line-height: 1.25; }
.run:hover .disclosure { border-color: var(--ink); }
.run[aria-expanded=true] .disclosure { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.run[aria-expanded=true] .disclosure svg { transform: rotate(180deg); }
.run { scroll-margin-top: 160px; }
.progression.expanded > .row { background: var(--mist); }
.edit-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin: 0 0 20px; }
.edit-heading h4 { margin: 0; font: 400 1.3rem/1.3 var(--serif); }
.row-detail { padding-top: 22px; }
.row-detail .edit-heading p { margin-top: 8px; max-width: 62ch; color: var(--muted); font-size: .875rem; }
.reset-chords { border: 1px solid var(--ink); white-space: nowrap; font-size: .875rem; }
.chord-editors { align-items: stretch; gap: 12px; }
.chord-editor { min-width: 0; position: relative; padding: 14px 12px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); display: flex; flex-direction: column; }
.chord-editor h5 { font: 400 .875rem/1.4 var(--sans); color: var(--muted); margin: 0 0 8px; text-align: center; }
.chord-editor .diagram-card { padding: 0; }
.chord-editor .diagram-card svg { width: 110px; }
.chord-editor .chord-change { font-size: .8125rem; text-align: center; color: var(--muted); margin: 12px 0; }
.chord-editor.edited { border-color: var(--ink); }
.chord-editor.edited .chord-change { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.chord-editor label { font-size: .8125rem; margin-top: auto; }
.chord-editor select { width: 100%; margin-top: 5px; font-size: .875rem; padding-left: 10px; }
.hear-chord { font-size: .875rem; margin-top: 6px; padding-inline: 5px; }
.row-detail .row-update { font-size: .875rem; color: var(--ink); padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--mist); }
.row-update:empty { display: none; }
@media (max-width: 850px) {
  .chord-editors { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .disclosure { flex-basis: 40px; min-height: 48px; }
  .disclosure svg { width: 22px; height: 22px; }
  .row .run { gap: 5px; }
  .row .symbol { padding-inline: 2px; font-size: clamp(.875rem,3.8vw,1.3rem); }
  .row-detail { padding-inline: 12px; }
  .edit-heading { flex-wrap: wrap; }
  .reset-chords { min-height: 44px; }
  .chord-editor { padding-inline: 10px; }
  .run { scroll-margin-top: 115px; }
}
@media (max-width: 420px) {
  .chord-editors { grid-template-columns: 1fr; }
  .chord-editor { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 0 12px; align-items: center; }
  .chord-editor h5 { grid-column: 1/-1; text-align: left; }
  .chord-editor .chord-view { grid-column: 1; grid-row: 2/5; }
  .chord-editor .chord-change { grid-column: 2; margin: 4px 0 10px; text-align: left; }
  .chord-editor label { grid-column: 2; margin: 0; }
  .chord-editor .hear-chord { grid-column: 2; }
  .chord-editor select { font-size: .8125rem; padding-left: 8px; padding-right: 30px; }
}
