/* /tools/chord-transposer/ */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.ct-col { min-width: 0; }
.ct-label { display: block; margin-bottom: 6px; }
.ct-input { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace !important; font-size: 14px !important; line-height: 1.45; resize: vertical; white-space: pre; overflow: auto; }
.ct-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ct-row label { display: flex; flex-direction: column; gap: 3px; }
.ct-block { margin: 0 0 16px; }
.ct-step { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.ct-step button { min-width: 44px; font-size: 20px !important; }
.ct-amount { min-width: 3ch; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-unit { color: var(--mtp-muted); font-size: 13px; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ct-pills button { min-width: 40px; padding: 6px 4px !important; font-size: 13px !important; font-variant-numeric: tabular-nums; }
.ct-detected { color: var(--mtp-muted); font-size: 14px; }
.ct-outhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 8px; }
.ct-summary { color: var(--mtp-muted); font-size: 14px; flex: 1 1 200px; }
.ct-actions { display: flex; gap: 8px; }
.ct-out { margin: 0; padding: 14px 16px; min-height: 120px; max-height: 480px; overflow: auto; background: var(--mtp-night); border: 1px solid var(--mtp-line); border-radius: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45; white-space: pre; tab-size: 4; color: var(--mtp-paper); }
.ct-note { margin: 8px 0 0; font-size: 13px; color: var(--mtp-muted); min-height: 1.3em; }
@media (max-width: 720px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }

/* Printing: only the transposed sheet */
.mtp-print-root { display: none; }
@media print {
  body.mtp-printing > *:not(.mtp-print-root) { display: none !important; }
  body.mtp-printing .mtp-print-root { display: block; color: #000; background: #fff; }
  .mtp-print-root h2 { font-size: 16px; margin: 0 0 10px; }
  .mtp-print-root pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12pt; line-height: 1.4; white-space: pre-wrap; margin: 0; }
}
