/* ===== ELISA 标准曲线 · 微孔板 ===== */
.els {
    background: #fdfbfd;
    border: 1px solid #eddfe9;
    border-radius: 12px;
    padding: 24px 22px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(120, 40, 90, .07);
}

.els-stage {
    display: grid;
    grid-template-columns: 1fr 1.02fr;
    gap: 20px;
    align-items: stretch;
}

/* ---- 微孔板 ---- */
.els-plate {
    background: #fff; border: 1px solid #eddfe9; border-radius: 10px;
    padding: 14px 14px 20px;
}
.els-plate-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 10.5px; color: #a08a9b; letter-spacing: .06em; margin-bottom: 10px;
}
.els-plate-head b { color: #be185d; font-size: 11px; }
.els-wells {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 8px;
    background: linear-gradient(180deg, #f1f5f9, #e9eef4);
    border-radius: 8px; padding: 12px 10px 20px;
    box-shadow: inset 0 1px 3px rgba(60, 80, 110, .12);
}
.els-well {
    position: relative; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #ffffff, #eef2f6 62%, #dfe6ee 100%);
    box-shadow: inset 0 2px 4px rgba(40, 60, 90, .16), 0 1px 0 #fff;
}
.els-well::after {
    content: ''; position: absolute; inset: 16%; border-radius: 50%;
    background: var(--fill, transparent);
    transition: background .35s;
}
.els-well::before {
    content: ''; position: absolute; inset: 10%; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
    z-index: 1; pointer-events: none;
}
.els-well i {
    position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    font-style: normal; font-size: 8px; color: #9aa8b8; white-space: nowrap;
}
.els-well.is-sample::after { box-shadow: 0 0 0 2px rgba(245, 158, 11, .55); }

/* ---- 曲线 ---- */
.els-chart-box {
    background: #fff; border: 1px solid #eddfe9; border-radius: 10px;
    padding: 14px; display: flex; flex-direction: column;
}
.els-chart-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    font-size: 10.5px; color: #a08a9b; margin-bottom: 6px;
}
.els-chart-head b {
    font: 700 11px/1.3 ui-monospace, monospace; color: #9d174d; text-align: right;
}
.els-chart { flex: 1 1 auto; min-height: 172px; }
.els-chart svg { display: block; width: 100%; height: auto; }
.els-r2 {
    margin-top: 8px; font: 10.5px/1.5 ui-monospace, monospace; color: #a08a9b;
    border-top: 1px dashed #f0e2ec; padding-top: 7px;
}
.els-r2 b { color: #be185d; }

/* ---- 标准品行 ---- */
.els-std { margin-top: 20px; border-top: 1px solid #eddfe9; padding-top: 14px; }
.els-std-head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px;
}
.els-std-head span { font-size: 11px; font-weight: 700; color: #7d3a5c; letter-spacing: .06em; }
.els-std-head i { font-style: normal; font-size: 10px; color: #b09aa8; }
.els-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.els-row {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #f0e2ec; border-radius: 7px;
    padding: 6px 8px;
}
.els-row span {
    font: 700 9px/1 ui-monospace, monospace; color: #c084b4;
    flex: 0 0 auto;
}
.els-row input {
    width: 100%; min-width: 0; border: none; outline: none; background: transparent;
    font: 700 12px/1.3 ui-monospace, monospace; color: #5b1338;
    text-align: right; font-variant-numeric: tabular-nums;
}
.els-row input.j-c { color: #9d174d; }
.els-row input.j-od { color: #1e293b; }
.els-row input:focus { background: #fdf2f8; border-radius: 4px; }
.els-row input.is-bad { color: #b91c1c; background: #fff1f2; }
.els-row em {
    font-style: normal; font-size: 9px; color: #c9b2bf; flex: 0 0 auto;
}

/* ---- 样本换算 ---- */
.els-sample {
    margin-top: 16px; display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 16px; background: #fff; border: 1px solid #eddfe9;
    border-radius: 10px; overflow: hidden;
}
.els-sample-in { padding: 14px 16px; display: grid; gap: 10px; }
.els-field { display: flex; align-items: center; gap: 8px; }
.els-field > span { font-size: 10.5px; color: #a08a9b; flex: 0 0 84px; }
.els-field input, .els-field select {
    flex: 1 1 auto; min-width: 0; font: 600 12px/1.3 ui-monospace, monospace;
    padding: 5px 7px; border: 1px solid #eddfe9; border-radius: 5px;
    background: #fdfbfd; color: #5b1338;
}
.els-field input:focus, .els-field select:focus { outline: 2px solid rgba(190, 24, 93, .14); border-color: #be185d; }
.els-field input.is-bad { border-color: #dc2626; background: #fff1f2; }

.els-sample-out {
    background: linear-gradient(160deg, #fdf2f8, #fce7f3);
    padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.els-sample-out small { font-size: 10px; color: #9d6c86; letter-spacing: .05em; }
.els-sample-out b {
    font: 700 30px/1.05 ui-monospace, Consolas, monospace; color: #9d174d;
    font-variant-numeric: tabular-nums;
}
.els-sample-out em { font-style: normal; font-size: 10px; color: #a06b86; }
.els-sample-out span {
    margin-top: 6px; font-size: 10.5px; line-height: 1.5; color: #7d3a5c;
}
.els-sample-out span.bad { color: #b91c1c; }

.els-note { margin: 16px 0 0; font-size: 11px; line-height: 1.8; color: #a08a9b; }

@media (max-width: 900px) {
    .els-stage { grid-template-columns: 1fr; }
    .els-rows { grid-template-columns: 1fr 1fr; }
    .els-sample { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .els { padding: 16px 13px; }
    .els-wells { gap: 8px 6px; }
    .els-rows { grid-template-columns: 1fr; }
    .els-sample-out b { font-size: 25px; }
}

/* ---- 深色 ---- */
[data-theme="dark"] .els { background: #140f13; border-color: #2e2029; box-shadow: none; }
[data-theme="dark"] .els-plate, [data-theme="dark"] .els-chart-box, [data-theme="dark"] .els-sample { background: #1a141a; border-color: #2e2029; }
[data-theme="dark"] .els-wells { background: linear-gradient(180deg, #1e1820, #171219); }
[data-theme="dark"] .els-well { background: radial-gradient(circle at 34% 28%, #2b2230, #1c161c 65%, #151016 100%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
[data-theme="dark"] .els-plate-head, [data-theme="dark"] .els-chart-head, [data-theme="dark"] .els-r2 { color: #9d8794; }
[data-theme="dark"] .els-chart-head b, [data-theme="dark"] .els-r2 b { color: #f9a8d4; }
[data-theme="dark"] .els-std { border-color: #2e2029; }
[data-theme="dark"] .els-std-head span { color: #e8a9c8; }
[data-theme="dark"] .els-row { background: #1a141a; border-color: #2e2029; }
[data-theme="dark"] .els-row input { color: #f3d2e2; }
[data-theme="dark"] .els-row input.j-c { color: #f9a8d4; }
[data-theme="dark"] .els-row input.j-od { color: #dbe4f0; }
[data-theme="dark"] .els-field > span { color: #9d8794; }
[data-theme="dark"] .els-field input, [data-theme="dark"] .els-field select { background: #1a141a; border-color: #2e2029; color: #f3d2e2; }
[data-theme="dark"] .els-sample-out { background: linear-gradient(160deg, #2a1622, #221420); }
[data-theme="dark"] .els-sample-out b { color: #f9a8d4; }
[data-theme="dark"] .els-sample-out small, [data-theme="dark"] .els-sample-out em, [data-theme="dark"] .els-sample-out span { color: #c9a6b8; }
[data-theme="dark"] .els-note { color: #9d8794; }
