/* --- Peak finder overlay: focus-zone frame + data markers --- */

.peak-finder-frame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
    z-index: 9997;
}

.peak-finder-frame__corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.peak-finder-frame__corner--tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.peak-finder-frame__corner--tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.peak-finder-frame__corner--bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.peak-finder-frame__corner--br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.peak-finder-frame__label {
    display: none;
}

/* ============ Data markers (peak finder labels) ============ */

.data-marker {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s linear;
}

.data-marker.is-visible {
    opacity: 1;
    visibility: visible;
}

.data-marker__label {
    display: block;
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid rgba(180, 180, 190, 0.55);
    border-radius: 2px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.data-marker__stem {
    display: block;
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
}

.data-marker__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.data-marker.is-updated .data-marker__label {
    transform: scale(1.04);
    transition: transform 0.15s ease;
}
