/* /tools/chord-identifier/ — also holds the .mtp-kb keyboard styles (duplicated in scale-finder.css on purpose). */
.mtp-ci-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.mtp-ci-row input[type="text"] { flex: 1 1 260px; min-width: 0; font-size: 18px; letter-spacing: .02em; }
.mtp-ci-hint { margin: 8px 0 0; color: var(--mtp-muted); font-size: 14px; max-width: 70ch; }
.mtp-ci-examples { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--mtp-muted); font-size: 14px; }
.mtp-ci-error { margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--mtp-copper); color: #f0b49a; font-size: 14px; }
.mtp-ci-error[hidden], .mtp-ci [hidden] { display: none; }
.mtp-ci-keys { margin: 22px 0 6px; }
.mtp-ci-keybar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.mtp-ci-keybar .mtp-eyebrow { margin: 0 6px 0 0; }
.mtp-ci-range { color: var(--mtp-muted); font-size: 13px; }

.mtp-ci-result { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--mtp-line); }
.mtp-ci-head, .mtp-sf-head { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-start; }
.mtp-ci-name { margin: 0; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; color: var(--mtp-brass-bright); font-weight: 700; }
.mtp-ci-quality { margin: 8px 0 0; max-width: 62ch; }
.mtp-ci-play { display: flex; flex-wrap: wrap; gap: 8px; }
.mtp-ci-check { margin: 14px 0 0; padding: 8px 12px; border-left: 3px solid var(--mtp-line); color: var(--mtp-muted); font-size: 14px; max-width: 80ch; }
.mtp-ci-check:empty { display: none; }
.mtp-ci-check-agree { border-left-color: #6faa6a; }
.mtp-ci-check-listed { border-left-color: var(--mtp-brass); }
.mtp-ci-check-disagree { border-left-color: var(--mtp-copper); color: var(--mtp-paper); }
.mtp-ci-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 30px; margin-top: 18px; }
.mtp-ci h3 { margin: 18px 0 8px; font-size: 16px; color: var(--mtp-paper); }
.mtp-ci-cols h3 { margin-top: 0; }
.mtp-ci-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mtp-ci-table th, .mtp-ci-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--mtp-line); vertical-align: top; }
.mtp-ci-table thead th { color: var(--mtp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mtp-ci-table tbody th { font-weight: 700; color: var(--mtp-brass-bright); }
.mtp-ci-table .is-missing { color: var(--mtp-muted); }
.mtp-ci-omit { color: var(--mtp-muted); font-size: 14px; margin: 8px 0 0; }
.mtp-ci-staff { background: #f4e9cf; border-radius: 2px; padding: 6px; line-height: 0; text-align: center; }
.mtp-ci-staff svg { max-width: 100%; height: auto; }
.mtp-ci-staff:empty { display: none; }
.mtp-ci-alts { list-style: none; margin: 0; padding: 0; }
.mtp-ci-alts li { padding: 8px 0; border-bottom: 1px solid var(--mtp-line); }
.mtp-ci-alts strong { color: var(--mtp-brass-bright); margin-right: 8px; }
.mtp-ci-alts span { color: var(--mtp-muted); font-size: 14px; }
.mtp-ci-lib { margin: 18px 0 0; }
.mtp-ci-empty { margin: 22px 0 0; color: var(--mtp-muted); }
.mtp-ci-formula-wrap { overflow-x: auto; }

/* On-screen keyboard (buttons). Colours are fixed so it looks like a piano in any theme. */
.mtp-kb { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.mtp-kb-inner { position: relative; height: 150px; min-width: 520px; user-select: none; }
.mtp-tool-panel .mtp-kb-key { position: absolute; top: 0; padding: 0; margin: 0; min-height: 0; box-sizing: border-box; cursor: pointer; border-radius: 0 0 3px 3px; font-size: 11px; }
.mtp-tool-panel .mtp-kb-white { height: 100%; background: #f6f1e4; border: 1px solid #8a7a55; color: #3b3220; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; z-index: 1; min-height: 40px; }
.mtp-tool-panel .mtp-kb-black { height: 62%; background: #17121f; border: 1px solid #000; z-index: 2; color: #fff; min-height: 40px; }
.mtp-tool-panel .mtp-kb-white:hover { background: #efe3c2; border-color: #8a7a55; color: #3b3220; }
.mtp-tool-panel .mtp-kb-black:hover { background: #2b2240; border-color: #000; color: #fff; }
.mtp-tool-panel .mtp-kb-white.is-on { background: #e0bd72; color: #1a1205; border-color: #8a6a1e; }
.mtp-tool-panel .mtp-kb-black.is-on { background: #c49a49; border-color: #6e4f12; }
.mtp-tool-panel .mtp-kb-key.is-root { box-shadow: inset 0 -8px 0 #a84f2a; }
.mtp-kb-key:focus-visible { outline: 2px solid var(--mtp-brass-bright); outline-offset: -3px; z-index: 3; }

@media (max-width: 720px) {
  .mtp-ci-cols { grid-template-columns: minmax(0, 1fr); }
  .mtp-ci-play button { flex: 1 1 auto; }
}
