/* Solfège converter (/solfege-chart). Scoped to .sc. */
.sc { margin-bottom: 20px; }
.sc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; align-items: end; }
.sc-controls > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-controls select { width: 100%; }
.sc-check { padding-bottom: 8px; }
.sc-check label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mtp-paper); }
.sc-inrow { margin: 14px 0 0; }
.sc-inwrap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.sc-inwrap input { flex: 1 1 260px; min-width: 0; font-size: 20px !important; letter-spacing: .02em; min-height: 46px !important; }
.sc-ex { margin: 8px 0 0; font-size: 13px; color: var(--mtp-muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.sc-ex button { min-height: 32px !important; padding: 2px 10px !important; font-size: 13px !important; }
.sc-hint { margin: 8px 0 0; font-size: 13px; color: var(--mtp-muted); max-width: 75ch; }
.sc-error { margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--mtp-copper); color: #f0b49a; font-size: 14px; }
.sc [hidden] { display: none !important; }
.sc-result { margin-top: 18px; }
.sc-title { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--mtp-muted); font-weight: 600; }
.sc .sc-chips { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chips li { margin: 0; }
.sc .sc-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 6px 10px !important; background: var(--mtp-night) !important; border: 1px solid var(--mtp-line) !important; cursor: pointer; }
.sc .sc-chip:hover { border-color: var(--mtp-brass) !important; }
.sc-in { font-size: 14px; color: var(--mtp-muted); }
.sc-out { font-size: 22px; font-weight: 700; color: var(--mtp-brass-bright); line-height: 1.1; }
.sc .sc-chip.sc-on { background: var(--mtp-brass) !important; }
.sc-chip.sc-on .sc-in, .sc-chip.sc-on .sc-out { color: #1a1205; }
.sc-line { margin: 12px 0 0; font-size: 20px; font-weight: 600; word-break: break-word; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.sc-status { font-size: 14px; color: var(--mtp-muted); }
.sc-staves { display: flex; flex-direction: column; gap: 6px; }
.sc-staff { background: #f4e9cf; border-radius: 2px; padding: 6px; line-height: 0; text-align: center; overflow-x: auto; }
.sc-staff svg { max-width: 100%; height: auto; }
.sc-chart { margin-top: 22px; }
.sc-chart h3 { margin: 0 0 8px; font-size: 16px; }
.sc-tablewrap { overflow-x: auto; margin: 0 0 14px; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sc-table th, .sc-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--mtp-line); vertical-align: top; }
.sc-table thead th { color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sc-table tbody th { color: var(--mtp-brass-bright); }
.sc-chrom td { text-align: center; }
.sc-chrom tbody th { white-space: nowrap; }
@media (max-width: 480px) { .sc-controls { grid-template-columns: 1fr; } .sc-out { font-size: 19px; } .sc .sc-chip { min-width: 48px; } }

@media print {
  html.mtp-print-tool .sc { padding: 0; border: 0; margin: 0; }
  html.mtp-print-tool .sc-printhead { font-size: 11pt; margin: 0 0 5mm; }
  html.mtp-print-tool .sc-staff { background: transparent !important; overflow: visible; }
  html.mtp-print-tool .sc-chip { border: 1px solid #000 !important; }
  html.mtp-print-tool .sc-chips li, html.mtp-print-tool .sc-staff { break-inside: avoid; }
  html.mtp-print-tool .sc-table th, html.mtp-print-tool .sc-table td { border-bottom: 1px solid #000; }
  html.mtp-print-tool .sc-title { display: none; }
  html.mtp-print-tool .sc-table th, html.mtp-print-tool .sc-table td { padding: 3px 8px; }
  html.mtp-print-tool .sc-tablewrap { overflow: visible; }
}
