.amplicon-count-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.amplicon-details-btn {
    font-size: 0.85em;
    padding: 0.2em 0.55em;
    cursor: pointer;
    border: 1px solid color(srgb 0.35 0.55 0.58);
    border-radius: 4px;
    background: #e2fbff;
    color: color(srgb 0.15 0.4 0.45);
    font-weight: 600;
}

.amplicon-details-btn:hover {
    background: #cfecf1;
}

.amplicon-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: min(96vw, 1200px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.amplicon-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.amplicon-dialog-panel {
    position: relative;
    padding: 1.25em 1.5em 1em;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.amplicon-dialog-x {
    position: absolute;
    top: 0.35em;
    right: 0.45em;
    border: none;
    background: transparent;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0 0.2em;
}

.amplicon-dialog-x:hover {
    color: #111;
}

.amplicon-dialog-title {
    margin: 0 2em 0.75em 0;
    font-size: 1.25em;
    font-weight: 600;
    color: color(srgb 0.2 0.45 0.5);
}

.amplicon-reference-note {
    margin: 0 2em 1em 0;
    font-size: 0.95em;
    line-height: 1.45;
    color: #444;
    max-width: 55em;
    text-align: left;
}

.amplicon-dialog-scroll {
    overflow: auto;
    max-height: min(70vh, 560px);
    margin-bottom: 1em;
    border: 1px solid #c5dce0;
    border-radius: 6px;
}

.amplicon-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}

.amplicon-detail-table th,
.amplicon-detail-table td {
    border: 1px solid #c5dce0;
    padding: 0.35em 0.5em;
    text-align: left;
    vertical-align: top;
}

.amplicon-detail-table thead th {
    background: color(srgb 0.5338 0.7473 0.785);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.amplicon-summary-cell {
    max-width: 14em;
    white-space: normal;
    word-break: break-word;
}

.amplicon-chrom-cell {
    max-width: 12em;
    word-break: break-all;
}

.amplicon-seq-cell {
    max-width: 10em;
    word-break: break-all;
    font-family: ui-monospace, monospace;
    font-size: 0.95em;
}

.amplicon-dialog-actions {
    display: flex;
    justify-content: flex-end;
}

.amplicon-dialog-close-btn {
    padding: 0.4em 1.2em;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid color(srgb 0.35 0.55 0.58);
    background: color(srgb 0.5338 0.7473 0.785);
    color: white;
    font-weight: 600;
}

.amplicon-dialog-close-btn:hover {
    filter: brightness(0.95);
}
