/* qPCR ΔΔCt — 37degrees. Scoped to .qp-root. Dark default + .qp-theme-light. */
.qp-root {
  --qp-navy-900: #082540; --qp-navy-950: #04141f; --qp-navy-700: #133b56; --qp-navy-400: #5d83a1;
  --qp-text: #dde4ed; --qp-muted: #8ba5bd; --qp-accent: #ff7bac; --qp-accent-2: #ec1f6a; --qp-down: #5d83a1; --qp-grid: rgba(141,165,189,0.3);
  --qp-surface: rgba(4,20,31,0.55); --qp-radius: 14px; --qp-radius-sm: 10px;
  --qp-mono: "JetBrains Mono","SFMono-Regular",ui-monospace,Menlo,Consolas,monospace;
  --qp-font: "Nunito Sans Variable","Nunito Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  position: relative; font-family: var(--qp-font); color: var(--qp-text);
  background: radial-gradient(70% 55% at 12% 8%, rgba(255,123,172,0.13) 0%, rgba(255,123,172,0) 60%), radial-gradient(60% 55% at 88% 95%, rgba(52,211,153,0.08) 0%, rgba(52,211,153,0) 65%), linear-gradient(180deg,var(--qp-navy-900) 0%,var(--qp-navy-950) 100%);
  border: 1px solid var(--qp-navy-700); border-radius: var(--qp-radius); padding: 24px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  grid-template-areas: "header header" "rail result" "footer footer"; gap: 18px;
  box-shadow: 0 10px 40px rgba(4,20,31,0.35); box-sizing: border-box; max-width: 100%;
}
.qp-root *, .qp-root *::before, .qp-root *::after { box-sizing: border-box; }
@media (max-width: 820px) { .qp-root { grid-template-columns: 1fr; grid-template-areas: "header" "rail" "result" "footer"; } }
.qp-root.qp-theme-light {
  --qp-text: #082540; --qp-muted: #5d83a1; --qp-navy-700: #dde4ed; --qp-grid: rgba(8,37,64,0.25); --qp-surface: #f7f9fc;
  background: radial-gradient(70% 55% at 12% 8%, rgba(255,123,172,0.07) 0%, rgba(255,123,172,0) 60%), radial-gradient(60% 55% at 88% 95%, rgba(52,211,153,0.045) 0%, rgba(52,211,153,0) 65%), linear-gradient(180deg,#ffffff 0%,#f1f4f8 100%); border-color: #dde4ed; box-shadow: 0 6px 24px rgba(8,37,64,0.08);
}
.qp-root.qp-theme-light .qp-card, .qp-root.qp-theme-light .qp-result, .qp-root.qp-theme-light .qp-text,
.qp-root.qp-theme-light .qp-num, .qp-root.qp-theme-light .qp-rt-row { background: #fff; border-color: #dde4ed; color: var(--qp-text); }

.qp-header { grid-area: header; display: flex; flex-direction: column; gap: 4px; }
.qp-eyebrow { font-size: 11px; letter-spacing: 3px; font-weight: 800; color: var(--qp-accent); }
.qp-title { font-size: 22px; font-weight: 800; line-height: 1.2; }
.qp-subtitle { font-size: 14px; color: var(--qp-muted); line-height: 1.45; }

.qp-rail { grid-area: rail; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.qp-card { background: rgba(8,37,64,0.4); border: 1px solid var(--qp-navy-700); border-radius: var(--qp-radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.qp-top-actions { display: flex; gap: 8px; }
.qp-top-btn { flex: 1 1 0; justify-content: center; text-align: center; }

.qp-colhead, .qp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 34px 28px; gap: 6px; align-items: center; }
.qp-colhead span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--qp-muted); font-weight: 800; }
.qp-rows { display: flex; flex-direction: column; gap: 6px; }
.qp-text, .qp-num { width: 100%; font-size: 13px; font-weight: 600; color: var(--qp-text); background: var(--qp-surface); border: 1px solid var(--qp-navy-700); border-radius: 8px; padding: 7px 9px; outline: none; min-width: 0; }
.qp-num { font-family: var(--qp-mono); font-weight: 700; }
.qp-text:focus, .qp-num:focus { border-color: var(--qp-accent); box-shadow: 0 0 0 3px rgba(255,123,172,0.18); }
.qp-cal-cell { display: flex; justify-content: center; }
.qp-radio { width: 16px; height: 16px; accent-color: var(--qp-accent); cursor: pointer; }
.qp-row-remove { font-size: 16px; font-weight: 800; line-height: 1; color: var(--qp-muted); background: transparent; border: none; cursor: pointer; padding: 0; }
.qp-row-remove:hover { color: var(--qp-accent-2); }
.qp-secondary { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--qp-text); background: rgba(141,165,189,0.10); border: 1px solid var(--qp-navy-700); border-radius: var(--qp-radius-sm); padding: 8px 14px; cursor: pointer; }
.qp-secondary:hover { background: rgba(255,123,172,0.12); border-color: var(--qp-accent); color: var(--qp-accent); }
.qp-small { font-size: 12px; padding: 6px 10px; width: max-content; }
.qp-eff { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--qp-navy-700); }
.qp-label { font-size: 10px; letter-spacing: 1.5px; font-weight: 800; color: var(--qp-muted); text-transform: uppercase; }
.qp-inline { display: flex; align-items: center; gap: 8px; }
.qp-eff .qp-num { max-width: 90px; }
.qp-suffix { font-size: 12px; color: var(--qp-muted); }

.qp-result { grid-area: result; background: rgba(8,37,64,0.4); border: 1px solid var(--qp-navy-700); border-radius: var(--qp-radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.qp-result-title { font-size: 11px; letter-spacing: 2px; font-weight: 800; color: var(--qp-accent); text-transform: uppercase; }
.qp-status { font-size: 12.5px; color: var(--qp-muted); }
.qp-status-error { color: var(--qp-accent-2); font-weight: 600; }
.qp-result-table { display: flex; flex-direction: column; gap: 3px; }
.qp-rt-head, .qp-rt-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 0.8fr; gap: 6px; font-size: 12.5px; align-items: center; }
.qp-rt-head { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--qp-muted); font-weight: 800; padding: 0 8px; }
.qp-rt-row { background: var(--qp-surface); border: 1px solid var(--qp-navy-700); border-radius: 8px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.qp-rt-row span:first-child { font-weight: 700; }
.qp-rt-cal { border-color: var(--qp-accent); }
.qp-rt-fold { font-family: var(--qp-mono); font-weight: 800; color: var(--qp-accent); }
.qp-chart-wrap { background: var(--qp-surface); border: 1px solid var(--qp-navy-700); border-radius: var(--qp-radius-sm); padding: 8px; }
.qp-chart { width: 100%; height: auto; display: block; }

.qp-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; }
.qp-export-label { font-size: 10px; letter-spacing: 1.5px; font-weight: 800; color: var(--qp-muted); text-transform: uppercase; }
.qp-export-btn { font-family: inherit; font-size: 12px; font-weight: 700; color: var(--qp-text); background: rgba(141,165,189,0.10); border: 1px solid var(--qp-navy-700); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.qp-export-btn:hover { background: rgba(255,123,172,0.12); border-color: var(--qp-accent); color: var(--qp-accent); }
.qp-footer { grid-area: footer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--qp-muted); }
.qp-footer a { color: var(--qp-text); text-decoration: none; font-weight: 700; }
.qp-footer-brand { color: #ff7bac !important; font-weight: 700; } .qp-footer-brand:hover { color: #ec1f6a !important; text-decoration: underline; } .qp-footer-sep { opacity: 0.5; }
.qp-fatal { padding: 16px; border-radius: 10px; background: rgba(236,31,106,0.12); border: 1px solid #ec1f6a; color: #fff; }

.qp-expand-icon { position: absolute; top: 14px; right: 14px; z-index: 50; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,123,172,0.10); color: #ec1f6a; border: 1px solid rgba(255,123,172,0.30); border-radius: 10px; cursor: pointer; padding: 0; font-family: inherit; transition: background .12s, transform .12s; }
.qp-expand-icon:hover { background: rgba(255,123,172,0.22); transform: scale(1.05); }
.qp-expand-icon-label { display: none; }
.qp-brand-mark { display: none; }
html.qp-html-locked, body.qp-body-locked { overflow: hidden !important; height: 100vh !important; }
.qp-root.qp-is-expanded { position: fixed; inset: 0; z-index: 99990; margin: 0; border: none; border-radius: 0; box-shadow: none; background: #fff; color: #082540; --qp-text: #082540; --qp-muted: #5d83a1; --qp-navy-700: #dde4ed; --qp-grid: rgba(8,37,64,0.25); --qp-surface: #f7f9fc; grid-template-columns: 380px minmax(0,1fr); grid-template-areas: "brand result" "rail result" "footer footer"; grid-template-rows: auto minmax(0,1fr) auto; gap: 0; padding: 0; height: 100vh; overflow: hidden; }
.qp-root.qp-is-expanded .qp-header { display: none; }
.qp-root.qp-is-expanded .qp-rail { grid-area: rail; overflow-y: auto; padding: 18px; border-right: 1px solid #dde4ed; background: #f1f4f8; min-height: 0; }
.qp-root.qp-is-expanded .qp-result { grid-area: result; overflow-y: auto; min-height: 0; background: #fff; padding: 24px; }
.qp-root.qp-is-expanded .qp-card, .qp-root.qp-is-expanded .qp-text, .qp-root.qp-is-expanded .qp-num, .qp-root.qp-is-expanded .qp-rt-row { background: #fff; border-color: #dde4ed; color: #082540; }
.qp-root.qp-is-expanded .qp-expand-icon { position: fixed; top: 18px; right: 22px; z-index: 99991; }
.qp-root.qp-is-expanded .qp-rail .qp-expand-icon { position: static; top: auto; right: auto; width: 100%; height: 40px; margin-bottom: 4px; gap: 8px; justify-content: center; font-weight: 800; font-size: 13px; }
.qp-root.qp-is-expanded .qp-expand-icon-label { display: inline-block; }
.qp-root.qp-is-expanded .qp-brand-mark { grid-area: brand; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; background: #082540; font-family: var(--qp-font); font-weight: 800; font-size: 15px; line-height: 1; padding: 14px 20px; }
.qp-root.qp-is-expanded .qp-brand-mark svg { height: 28px; width: 28px; display: block; }
.qp-root.qp-is-expanded .qp-brand-mark .qp-brand-sep { color: #ff7bac; margin: 0 2px; } .qp-root.qp-is-expanded .qp-brand-mark .qp-tool-name { color: #ff7bac; }
.qp-root.qp-is-expanded .qp-footer { grid-area: footer; background: #082540; padding: 12px 24px; justify-content: center; margin: 0; }
.qp-root.qp-is-expanded .qp-footer, .qp-root.qp-is-expanded .qp-footer span { color: #fff; } .qp-root.qp-is-expanded .qp-footer a { color: #ff7bac; }
@media (max-width: 960px) { .qp-root.qp-is-expanded { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0,1fr) auto; grid-template-areas: "brand" "rail" "result" "footer"; } .qp-root.qp-is-expanded .qp-rail { border-right: none; border-bottom: 1px solid #e4ecf2; max-height: 45vh; } .qp-root.qp-is-expanded .qp-brand-mark .qp-brand-sep, .qp-root.qp-is-expanded .qp-brand-mark .qp-tool-name { display: none; } }
@media (max-width: 640px) { .qp-root { padding: 18px; } .qp-title { font-size: 19px; } }
