.singing-option { display: block; margin-top: 14px; font-size: 11px; line-height: 1.5; }
.singing-option label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.singing-option input { accent-color: var(--green); }
.singing-option .hint { margin-bottom: 0; }
.singing-panel { flex: 0 0 auto; min-width: 0; border-top: 1px solid var(--line); padding: 12px 24px 9px; background: var(--paper); color: var(--ink); --sung: #9b4ec7; --reference: #397a65; }
.singing-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.singing-window-controls { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.singing-window-controls button { min-width: 24px; min-height: 24px; font-size: 14px; }
#singing-bars { min-width: 40px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.singing-heading h2 { margin: 0; font-size: 12px; font-weight: 600; }
#singing-status { flex: 1; margin: 0; text-align: right; font-size: 10px; color: var(--muted); }
.singing-heading h2, #singing-clear { flex-shrink: 0; }
#singing-clear { font-size: 10px; }
#singing-clear:disabled { opacity: .45; cursor: default; }
.singing-readout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 7px; font-size: 11px; min-height: 17px; font-variant-numeric: tabular-nums; }
#singing-tuning { font-weight: 600; }
#singing-timing { color: var(--muted); }
#singing-chart { display: block; width: 100%; height: 140px; overflow: hidden; margin-top: 7px; }
.singing-grid { stroke: var(--line); stroke-width: .6; }
.singing-axis { fill: var(--muted); font: 9px system-ui, sans-serif; }
.singing-bar { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.singing-target-band { fill: var(--reference); opacity: .17; }
.singing-target { stroke: var(--reference); stroke-width: 2; }
.singing-trace { fill: none; stroke: var(--sung); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.singing-playhead { stroke: var(--green); stroke-width: 1.2; }
.singing-entry { stroke: var(--sung); stroke-width: 1.3; stroke-dasharray: 2 2; }
.singing-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.singing-legend { white-space: nowrap; }
.singing-legend .reference { color: var(--reference); font-weight: 600; }
.singing-legend .sung { color: var(--sung); font-weight: 600; }
.singing-markers { pointer-events: none; }
.singing-note { fill: none; stroke-width: .9; }
.singing-note-symbol { font: bold 5px system-ui, sans-serif; stroke: none; }
.singing-tuned { stroke: #197e80; color: #197e80; }
.singing-sharp { stroke: #b05623; color: #b05623; stroke-dasharray: 2 1; }
.singing-flat { stroke: #7052bb; color: #7052bb; stroke-dasharray: 1 1; }
.singing-variable { stroke: #99682a; color: #99682a; stroke-dasharray: 3 1 1 1; }
.singing-uncertain { stroke: #777; stroke-dasharray: .5 1.5; }
.singing-note-symbol { fill: currentColor; }
:root[data-theme="dark"] .singing-panel { --sung: #d6a2fa; --reference: #8acdb4; }
/* SVG pages are theme-filtered by the existing score surface. Keep feedback
   geometry separate from the notation; it never intercepts seeking or dragging. */
@media (max-width: 760px), (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .singing-option, .singing-panel, .singing-markers { display: none !important; }
}
