.melody-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.melody-workspace.chords-open { grid-template-columns: 252px minmax(0, 1fr); }
.melody-chords { border: 1px solid #9baba5; background: #f6f5f1; border-radius: 6px; min-width: 0; }
.melody-chords[hidden] { display: none; }
.melody-chords header { display: flex; align-items: center; justify-content: space-between; padding: 8px; gap: 4px; }
.melody-chords h2 { font: 600 15px system-ui, sans-serif; margin: 0; }
.melody-chords button { min-width: 32px; min-height: 32px; cursor: pointer; }
.melody-chords iframe { display: block; width: 100%; height: 670px; border: 0; }
#melodyScore { min-width: 0; }
#melodyScore .nc-score-preview { max-height: 78vh; overflow: auto; }
#melodyStatus:empty { display: none; }
@media (max-width: 700px) {
  .melody-workspace.chords-open { grid-template-columns: 185px minmax(0, 1fr); gap: 6px; }
  .melody-chords h2 { font-size: 13px; }
}
@media print {
  .melody-chords, #melodyStatus, .nc-selection-inspector { display: none !important; }
  .melody-workspace.chords-open { display: block; }
  #melodyScore .nc-score-preview { max-height: none; overflow: visible; }
}
