[data-blues-chords] { --blues-amber: #f1bc76; margin: 1.2rem 0 1rem; }
.chord-controls, .chord-reading { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; }
.chord-controls label { display: inline-flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.chord-controls button, .chord-controls select, .chord-detail button, .chord-bars button {
    font: inherit; color: var(--editorial-text); background: #182b30;
    border: 1px solid #597078; border-radius: 3px; min-height: 42px; padding: .45rem .7rem;
}
.chord-controls button[data-progression] { background: var(--editorial-accent); color: #181e13; font-weight: 700; }
.chord-controls button:disabled { opacity: .65; }
.chord-controls input { accent-color: var(--editorial-accent); }
.chord-controls output { min-width: 4.5rem; }
.chord-status { min-height: 1.5em; margin: .5rem 0; }
.chord-workspace { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.2rem; }
.chord-legend { margin: 0 0 .5rem; font-size: .94rem; color: var(--editorial-muted); }
.chord-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; gap: .45rem; margin: 0; }
.chord-bars button { width: 100%; display: flex; justify-content: space-between; gap: .25rem; align-items: center; text-align: left; }
.chord-bars button span { color: #d1dadb; font-size: .86rem; }
.chord-bars button strong { font-size: 1.12rem; }
.chord-bars button[aria-pressed="true"] { border-color: var(--blues-amber); box-shadow: inset 0 -3px var(--blues-amber); }
.chord-bars button[aria-current="step"] { color: #181e13; background: var(--editorial-accent); border-color: var(--editorial-accent); }
.chord-bars button[aria-current="step"] span { color: inherit; }
[data-blues-chords] :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.chord-detail { border-left: 1px solid #597078; padding-left: 1rem; min-width: 0; }
.chord-detail h3 { margin: 0; }
.chord-detail .blues-keyboard { min-height: 5.5rem; }
.chord-reading { justify-content: space-between; }
.chord-notes { display: flex; gap: .4rem; }
.chord-notes span { color: var(--blues-amber); font-weight: 700; }
.chord-variation { margin-top: 1rem; }
.chord-variation input { accent-color: var(--editorial-accent); }
@media (max-width: 780px) {
    .chord-workspace { grid-template-columns: 1fr; }
    .chord-detail { padding: .65rem 0 0; border-left: 0; border-top: 1px solid #597078; }
}
@media (max-width: 600px) {
    .chord-bars button { display: grid; justify-items: start; padding-inline: .45rem; }
}
