.sr-byline { font-size: .875rem; opacity: .82; }
.sr-cluster [hidden] { display: none !important; }
.sr-tool {
  background: #151825;
  color: #f4f4ff;
  border: 1px solid #484c70;
  border-radius: 1rem;
  padding: clamp(.85rem, 3vw, 1.5rem);
  margin: 1rem 0;
}
.sr-tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: .8rem;
}
.sr-tool label { display: block; font-size: .9rem; color: #e0e2f9; }
.sr-tool select, .sr-tool input[type="range"] { display: block; margin-top: .35rem; width: 100%; }
.sr-tool select {
  appearance: none;
  min-height: 2.75rem;
  border: 1px solid #6e7297;
  border-radius: .55rem;
  padding: .35rem 1.55rem .35rem .6rem;
  background: linear-gradient(45deg, transparent 50%, #e0e2f9 50%) right .95rem center / .3rem .3rem no-repeat,
    linear-gradient(135deg, #e0e2f9 50%, transparent 50%) right .65rem center / .3rem .3rem no-repeat, #22263c;
  color: #fff;
  font: inherit;
}
.sr-tool input { accent-color: #b8baff; }
.sr-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.sr-tool button, .sr-action {
  background: #b9baff;
  color: #11122a;
  border: 0;
  border-radius: .55rem;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sr-tool :focus-visible, .sr-action:focus-visible, .sr-table:focus-visible { outline: 2px solid #c9caff; outline-offset: 3px; }
.sr-cluster .sr-chords { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.sr-cluster .sr-chords li { margin: 0; padding: .35rem .65rem; background: #2a3050; border-radius: .45rem; font-variant-numeric: tabular-nums; }
.sr-cluster .sr-chords li[aria-current] { color: #11122a; background: #b9baff; }
.sr-cluster .sr-table { overflow-x: auto; max-width: 100%; margin: 1rem 0; }
.sr-cluster table { border-collapse: collapse; width: 100%; min-width: max-content; font-variant-numeric: tabular-nums; }
.sr-cluster td, .sr-cluster th { white-space: nowrap; text-align: left; border-bottom: 1px solid #505474; padding: .5rem .65rem; }
.sr-cluster th { color: #efefff; }
.sr-cluster thead th { background: #252940; }
.sr-cluster pre { padding: 1rem; border: 1px solid #484c70; border-radius: .75rem; background: #151825; overflow: auto; }
.sr-cluster pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
  body:has(#capo-print-chart), body:has(#capo-print-chart) #public-main { background: white !important; color: black !important; }
  body:has(#capo-print-chart) .site-header,
  body:has(#capo-print-chart) .public-hero,
  body:has(#capo-print-chart) .public-related,
  body:has(#capo-print-chart) .download-section,
  body:has(#capo-print-chart) footer,
  body:has(#capo-print-chart) .sr-consent,
  .sr-cluster:has(#capo-print-chart) > :not(#capo-print-chart),
  #capo-print-chart button { display: none !important; }
  #capo-print-chart { padding: 0; margin: 0; break-inside: avoid; }
  #capo-print-chart .sr-table { overflow: visible; }
  #capo-print-chart table { min-width: 0; font-size: 9pt; }
  #capo-print-chart th, #capo-print-chart td { color: black !important; background: white !important; border-color: #999; padding: .3rem .2rem; }
}
