.scale-finder {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

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

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

.sf-field-wide .field {
    width: 14rem;
}

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

.sf-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);
}

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

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

/* Two-octave keyboard: white keys in a row, black keys overlaid by percentage. */
.sf-piano {
    position: relative;
    height: 9.5rem;
    user-select: none;
}

/* .pk-* key shapes are shared - see assets/styles/piano.css (linked in the template). */
