.mvm-fretboard {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 24px auto;
    padding: 20px;
    overflow-x: auto;
    background: #f7f1df;
    border: 1px solid #d8cda9;
    border-radius: 12px;
}

.mvm-fretboard__title {
    margin: 20px 0 16px;
    color: #24383b;
    font-size: 1.25rem;
    text-align: center;
}

.mvm-fretboard__diagram {
    width: 100%;
    min-width: 300px;
    margin: 0;
}

.mvm-fretboard__diagram svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.mvm-fretboard__diagram--vertical {
    min-height: 460px;
}

.mvm-fretboard__diagram--vertical .fretboard-html-wrapper {
    width: var(--mvm-board-short, 320px);
    max-width: 100%;
    height: var(--mvm-board-long, 460px);
    margin: 0 auto;
}

.mvm-fretboard__diagram--vertical svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--mvm-board-long, 460px);
    max-width: none;
    height: var(--mvm-board-short, 320px);
    margin: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
}

.mvm-fretboard__diagram .dot-text {
    fill: #fff;
    font-weight: 700;
    pointer-events: none;
}

.mvm-fretboard__radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin: 16px 0 0;
    padding: 12px 16px;
    color: #24383b;
    border: 1px solid #d8cda9;
    border-radius: 8px;
}

.mvm-fretboard__mode {
    margin: 0 0 16px;
    background: #fff;
}

.mvm-scale-fretboard {
    max-width: 1000px;
}

.mvm-scale-fretboard__mode {
    margin: 0 0 16px;
    background: #fff;
}

.mvm-scale-fretboard__advanced {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.mvm-scale-fretboard__advanced .mvm-fretboard__radio-group {
    flex: 1 1 280px;
    margin: 0;
}

.mvm-scale-fretboard__length-field {
    flex: 1 1 180px;
    max-width: 260px;
}

.mvm-scale-fretboard__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 14px;
    color: #24383b;
    font-size: 0.9rem;
}

.mvm-scale-fretboard__legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.mvm-scale-fretboard__swatch {
    display: inline-block;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    background: #256b78;
    border: 2px solid #f0b84b;
    border-radius: 50%;
}

.mvm-scale-fretboard__swatch--root {
    background: #d99b32;
    border-color: #7b4d0b;
}

.mvm-chord-recipes {
    max-width: 1000px;
}

.mvm-chord-recipes__tagline {
    margin: 0 0 18px;
    color: #4f5d5f;
    font-size: 1.05rem;
    font-style: italic;
    text-align: center;
}

.mvm-chord-recipes__food-field {
    max-width: 440px;
    margin: 0 auto;
}

.mvm-chord-recipes__recipe,
.mvm-chord-recipes__sauce-result {
    margin-top: 22px;
    text-align: center;
}

.mvm-chord-recipes__recipe h3,
.mvm-chord-recipes__sauce-result h3 {
    margin: 0 0 8px;
    color: #24383b;
}

.mvm-chord-recipes__recipe h4 {
    margin: 20px 0 10px;
    color: #4f5d5f;
}

.mvm-chord-recipes__description,
.mvm-chord-recipes__overlap,
.mvm-chord-recipes__guidance,
.mvm-chord-recipes__scale-notes {
    max-width: 760px;
    margin: 7px auto;
    color: #4f5d5f;
}

.mvm-chord-recipes__progression {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.mvm-chord-recipes__chord {
    position: relative;
    display: grid;
    min-height: 90px;
    place-items: center;
    color: #fff;
    background: #256b78;
    border: 3px solid #f0b84b;
    border-radius: 10px;
}

.mvm-chord-recipes__chord span {
    position: absolute;
    top: 6px;
    left: 9px;
    color: #d8eff2;
    font-size: 0.8rem;
}

.mvm-chord-recipes__chord strong {
    font-size: clamp(1.35rem, 4vw, 2rem);
}

.mvm-chord-recipes__spice {
    display: grid;
    grid-template-columns: repeat(5, minmax(125px, 1fr));
    gap: 10px;
    margin: 24px 0 0;
    padding: 14px;
    color: #24383b;
    border: 1px solid #d8cda9;
    border-radius: 10px;
}

.mvm-chord-recipes__spice legend {
    padding: 0 8px;
    font-weight: 700;
}

.mvm-chord-recipes__spice label {
    display: grid;
    gap: 5px;
    justify-items: center;
    min-height: 82px;
    padding: 10px 6px;
    background: #fff;
    border: 1px solid #d8cda9;
    border-radius: 8px;
    cursor: pointer;
}

.mvm-chord-recipes__spice label:has(input:checked) {
    background: #fff8df;
    border-color: #d99b32;
    box-shadow: 0 0 0 2px #f0b84b;
}

.mvm-chord-recipes__spice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #b84a2f;
}

.mvm-chord-recipes__chillies {
    min-height: 24px;
    font-size: 1.05rem;
    letter-spacing: -5px;
    padding-right: 5px;
    white-space: nowrap;
}

.mvm-chord-recipes__scale-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
    margin-top: 20px;
}

.mvm-chord-recipes__scale-controls > .mvm-fretboard__field {
    flex: 1 1 220px;
    max-width: 300px;
}

.mvm-chord-recipes__labels {
    flex: 2 1 420px;
    margin: 0;
}

.mvm-chord-recipes__diagram {
    margin-top: 16px;
}

@media (max-width: 760px) {
    .mvm-chord-recipes__spice {
        grid-template-columns: repeat(2, minmax(125px, 1fr));
    }
}

@media (max-width: 520px) {
    .mvm-chord-recipes__progression {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .mvm-chord-recipes__spice {
        grid-template-columns: 1fr;
    }

    .mvm-chord-recipes__spice label {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        min-height: 48px;
        padding: 8px 12px;
    }
}

.mvm-fretboard__orientation {
    margin-top: 16px;
}

.mvm-fretboard [hidden] {
    display: none !important;
}

.mvm-fretboard__radio-group legend {
    padding: 0 7px;
    font-weight: 700;
}

.mvm-fretboard__radio-group label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    cursor: pointer;
}

.mvm-fretboard__radio-group input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #256b78;
}

.mvm-fretboard__radio-group input:focus-visible {
    outline: 3px solid #f0b84b;
    outline-offset: 2px;
}

.mvm-fretboard__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.mvm-fretboard__field {
    display: grid;
    flex: 1 1 220px;
    gap: 6px;
    color: #24383b;
    font-weight: 600;
}

.mvm-fretboard__field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    color: #24383b;
    background: #fff;
    border: 1px solid #9f967b;
    border-radius: 6px;
    font: inherit;
}

.mvm-fretboard__field select:focus-visible {
    outline: 3px solid #f0b84b;
    outline-offset: 2px;
}

.mvm-fretboard__secondary-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.mvm-fretboard__secondary-controls .mvm-fretboard__field {
    flex: 1 1 220px;
}

.mvm-fretboard__note {
    margin: 12px 0 0;
    color: #4f5d5f;
    font-size: 0.9rem;
    text-align: center;
}
