.breadcrumb {color:var(--muted);font-size:.85rem;margin-bottom:22px;}
.breadcrumb a {color:var(--text-soft);margin-right:16px;}
.scales-settings {display:flex;flex-wrap:wrap;align-items:end;gap:18px;padding:20px 0;margin:26px 0;border-block:1px solid var(--line-dark);}
.scales-settings label {display:flex;align-items:center;gap:10px;font-size:.85rem;}
.scales-settings select {width:auto;min-width:75px;}
.scales-layout {display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:30px;}
.scale-music h2 {font:400 1.8rem var(--font-display);margin-bottom:18px;}
.scale-score {overflow:auto;min-height:185px;background:#fffdf8;border:1px solid var(--line-dark);}
.scale-note-list {font-size:.75rem;line-height:1.8;color:var(--text-soft);margin-block:12px;}
.scale-metronome {border-left:1px solid var(--line-dark);padding-left:28px;}
.scale-metronome h2 {font:400 1.6rem var(--font-display);}
.tempo-label {display:block;font:1.25rem var(--font-display);}
.tempo-label output {font-size:4.2rem;}
.tempo-buttons {display:flex;gap:12px;margin:12px 0;}
#scale-tempo {width:100%;accent-color:var(--action-dark);margin:20px 0;}
.beat-dots {display:flex;gap:16px;justify-content:center;margin-bottom:22px;}
.beat-dots span {width:13px;height:13px;border-radius:50%;background:#ddd7d3;}
.beat-dots span.active {background:var(--action-dark);}
#metronome-toggle {width:100%;margin-bottom:18px;}
.check-label {display:inline-flex;align-items:center;gap:10px;font-size:.85rem;}
.check-label input {width:19px;height:19px;accent-color:var(--action-dark);}
.scale-transport {display:flex;align-items:center;gap:24px;border-top:1px solid var(--line-dark);margin-top:22px;padding-top:18px;}
#scale-start {margin-left:auto;}
#scale-status,.scale-disclaimer {font-size:.8rem;color:var(--muted);}
#scale-status {margin-top:16px;}
.scale-keyboard {display:flex;height:72px;margin:16px 0;overflow:hidden;border:1px solid #9d9994;}
.scale-key {flex:1;position:relative;border-right:1px solid #9d9994;background:#fffdf8;min-width:12px;}
.scale-key.tonic {background:#f1dce2;}
.scale-key.black {background:#252529;flex:.65;height:45px;margin-inline:-4px;z-index:1;}
.scale-keyboard .playing {background:#a20c35;}
@media(max-width:900px) { .scales-layout {grid-template-columns:1fr;} .scale-metronome {border-left:0;border-top:1px solid var(--line-dark);padding:18px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;} .scale-metronome h2 {grid-column:1/-1;} .tempo-label output {font-size:3rem;} .scale-transport {flex-wrap:wrap;gap:14px;} .scales-settings {gap:14px;} .scales-settings label {flex-direction:column;align-items:start;} }
@media(max-width:500px) { .scales-settings label {width:calc(50% - 10px);} .scales-settings select {width:100%;} #scale-start {width:100%;margin:0;} .scale-note-list {overflow-wrap:anywhere;} }
.scales-shell .page-title {margin-bottom:10px;}
.scales-shell .page-copy {margin-bottom:0;}
.scales-settings {margin:18px 0;padding:14px 0;}
.scale-disclaimer {margin-bottom:0;}
.scale-music {min-width:0;}
@media(max-width:900px) { .scales-layout {grid-template-columns:minmax(0,1fr);} }
.breadcrumb a {text-decoration:underline;text-underline-offset:3px;}
