@import url("/image-converter/styles.css?v=1");
/* Song key finder */
.drop.over { border-color: var(--accent); }
.kf-notation { margin-top: 14px; gap: 10px; }
.kf-notation .lbl { margin: 0; }
.seg { flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 8px 12px; }
.kf-tablewrap { overflow-x: auto; margin-top: 8px; }
.kf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kf-table th, .kf-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.kf-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; }
.kf-table tbody th { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.kf-table tbody tr { cursor: pointer; }
.kf-table tbody tr:hover, .kf-table tbody tr:focus-visible { background: var(--panel-2); outline: none; }
.kf-table tbody tr.on { background: rgba(149, 214, 0, 0.07); }
.kf-table tbody tr.on th { color: var(--accent); }
.kf-table tr[data-state="error"] td:first-of-type { color: var(--bad); white-space: normal; }
.kf-file { margin: 0 0 6px; overflow-wrap: anywhere; }
.kf-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kf-key { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--accent); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kf-codes { color: var(--muted); font-size: 14px; margin-top: 6px; }
.kf-bpm { text-align: right; display: grid; gap: 2px; }
.kf-bpmnum { font-size: 30px; font-weight: 800; color: #c9a7ff; line-height: 1.1; }
.kf-bpm a { color: var(--accent); }
.kf-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 8px; }
.kf-facts div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kf-facts dt { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kf-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); font-size: 11px; color: var(--muted); cursor: help; position: relative; }
.tip:hover::after, .tip:focus::after { content: attr(aria-label); position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: 220px; z-index: 5; background: #1b1d25; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.4; text-align: left; }
.tip:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.kf-bars { display: grid; gap: 6px; margin: 10px 0 6px; }
.kf-bar { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.kf-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #6f9f02, #95d600); }
.kf-bar:not(:first-child) i { background: #3a3f4d; }
.kf-bar b { font-weight: 600; color: var(--muted); text-align: right; }
.kf-block { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.kf-block h3 { margin: 0 0 10px; font-size: 14px; }
.kf-block .row { margin-bottom: 10px; }
.kf-strip { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.kf-seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text); background: #2a2440; border-right: 1px solid var(--bg); white-space: nowrap; overflow: hidden; min-width: 0; padding: 0 4px; }
.kf-seg.main { background: rgba(149, 214, 0, 0.18); color: var(--accent); }
button.kf-seg { border: 0; border-right: 1px solid var(--bg); font-family: inherit; cursor: pointer; }
button.kf-seg:hover, button.kf-seg:focus-visible { filter: brightness(1.3); outline: 2px solid var(--accent); outline-offset: -2px; }
.kf-seg:last-child { border-right: 0; }
.kf-strip + p { margin: 8px 0 0; }
.kf-range { max-width: 420px; display: block; margin: 4px 0 12px; height: 28px; }
.kf-pos { margin-top: 6px; }
.kf-notes { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; margin: 0 0 10px; word-spacing: 0.3em; }
.kf-chords { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.kf-chord { display: inline-grid; justify-items: center; min-width: 52px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font-weight: 700; }
.kf-chord small { color: var(--muted); font-weight: 500; font-size: 11px; }
.kf-chip { cursor: default; font-weight: 500; }
#ear .btn { min-height: 44px; }
@media (max-width: 760px) {
  .kf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-key { font-size: 36px; }
  .kf-bpm { text-align: left; }
  .kf-bar { grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 36px; }
}
