/* Primer parameter overview — SNV index, top-right under BIH logo */

.primer-param-overview {
    position: fixed;
    right: 2.4em;
    top: 4.2em;
    z-index: 50;
    width: max-content;
    max-width: calc(100vw - 2.5rem);
    margin: 0;
    padding: 0.65em 0.85em 0.75em;
    text-align: left;
    font-size: 0.9em;
    line-height: 1.35;
    color: color(srgb 0.18 0.32 0.35);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, var(--color-bg-light) 100%);
    border: 1px solid rgba(2, 117, 138, 0.22);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    overflow-y: hidden;
}

.primer-param-overview__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5em;
    margin-bottom: 0.45em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid rgba(2, 117, 138, 0.18);
    white-space: nowrap;
}

.primer-param-overview__title {
    margin: 0;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.primer-param-overview__edit {
    flex-shrink: 0;
    padding: 0.15em 0.45em;
    font-size: 0.82em;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-primary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.primer-param-overview__edit:hover,
.primer-param-overview__edit:focus-visible {
    color: var(--color-primary-light);
    outline: none;
}

.primer-param-overview__edit:focus-visible {
    box-shadow: 0 0 0 2px rgba(2, 117, 138, 0.35);
}

.primer-param-overview dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.25em 0.65em;
    align-items: baseline;
    font-size: 0.92em;
    white-space: nowrap;
}

.primer-param-overview dt {
    margin: 0;
    font-weight: 600;
    color: color(srgb 0.28 0.42 0.45);
    white-space: nowrap;
}

.primer-param-overview dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    color: color(srgb 0.12 0.28 0.32);
    white-space: nowrap;
}

@media (max-width: 52rem) {
    .primer-param-overview {
        right: 1em;
        top: 4.8em;
        max-width: calc(100vw - 1.5rem);
        font-size: 0.82em;
        padding: 0.5em 0.65em 0.6em;
    }
}

.vcf-upload-block {
    margin: 1em auto 0.5em;
    max-width: 36em;
    padding: 0.85em 1em;
    text-align: left;
    background: color(srgb 0.94 0.98 0.99);
    border: 1px dashed color(srgb 0.45 0.65 0.72);
    border-radius: var(--radius-md);
}

.vcf-upload-heading {
    margin: 0 0 0.35em;
    font-size: 1em;
    font-weight: 600;
    color: var(--color-primary);
}

.vcf-upload-hint {
    margin: 0 0 0.65em;
    font-size: 0.88em;
    line-height: 1.4;
    color: color(srgb 0.28 0.42 0.46);
}

.vcf-upload-block input[type="file"] {
    font-family: var(--font-main);
    font-size: 0.9em;
    max-width: 100%;
}
