.chord-finder {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cf-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cf-field > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.cf-field .field {
    width: 7rem;
}

.cf-field-wide .field {
    width: 13rem;
}

.cf-play {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.cf-play .icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.cf-symbol {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.cf-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cf-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 3.5rem;
    padding: 0.6rem 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.cf-deg {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.cf-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-strong);
    line-height: 1;
}

/* Two-octave keyboard. The .pk-* key shapes are shared - see assets/styles/piano.css
   (linked in the template); only the .cf-piano wrapper is tool-specific. */
.cf-piano {
    position: relative;
    height: 9.5rem;
    user-select: none;
}
