/* Modal for All-Matchups Rrs Scatter and individual matchups selected from this view */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal {
    background: #0b1222;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 12px;
    width: 980px;
    max-width: 95vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transform: scale(.96);
    opacity: 0;
    transition: transform .15s ease, opacity .15s ease;
}
.modal-backdrop.show .modal {
    transform: scale(1);
    opacity: 1;
}

/* Title */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.modal-title {
    font-weight: 700;
}

/* Close button */
.modal-close {
    background: #374151;
    border: 1px solid #1f2937;
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

/* Wavelength slider */
.lambda-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 6px;
}
.lambda-label {
    font-size: 12px;
    color: #e5e7eb;
    font-weight: 700;
    min-width: 66px;
}
#lambda-unit {
    font-size: 12px;
    color: #a5b4fc;
    min-width: 64px;
}
#all-lambda-slider {
    margin: 12px 0 12px;
}

/* Wavelength Input */
#lambda-wave-length {
    margin-top: 0px;
}
