/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Sample Quality Predictor styles (Prompt 19)
   ═══════════════════════════════════════════════════════════════ */
.qp-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.qp-header { margin-bottom: 1.5rem; }
.qp-badge { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: #3fb950; background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.25); border-radius: 20px; padding: .25rem .7rem; display: inline-block; margin-bottom: .5rem; }
.qp-title  { font-size: 1.9rem; font-weight: 700; margin: 0 0 .4rem; }
.qp-subtitle { color: #8b949e; font-size: .92rem; max-width: 680px; margin: 0; }

/* ── Layout ── */
.qp-main { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 820px) { .qp-main { grid-template-columns: 1fr; } }

.qp-left  { display: flex; flex-direction: column; gap: 1rem; }
.qp-right { min-height: 300px; }

/* ── Cards ── */
.qp-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 1.1rem; }
.qp-card-title { font-size: .88rem; font-weight: 700; color: #e6edf3; margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* ── Preset select ── */
.qp-preset-sel { background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #8b949e; font-size: .75rem; padding: .2rem .4rem; cursor: pointer; }
.qp-preset-sel:focus { outline: none; border-color: #3fb950; }

/* ── Inputs ── */
.qp-inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-bottom: .9rem; }
.qp-inp-lbl { font-size: .74rem; color: #8b949e; display: flex; flex-direction: column; gap: .25rem; }
.qp-inp { background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; font-size: .85rem; padding: .3rem .5rem; width: 100%; box-sizing: border-box; }
.qp-inp:focus { outline: none; border-color: #3fb950; }
.qp-rin-note { font-size: .73rem; color: #6e7681; margin-bottom: .9rem; line-height: 1.4; }

/* ── Run button ── */
.qp-run-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .65rem; background: rgba(63,185,80,.1); border: 1px solid #3fb950; border-radius: 8px; color: #3fb950; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .12s; }
.qp-run-btn:hover { background: rgba(63,185,80,.18); }

/* ── Thresholds reference card ── */
.qp-thresholds-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: .9rem 1rem; }
.qp-thresh-row { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; padding: .3rem 0; border-bottom: 1px solid #21262d; font-size: .73rem; }
.qp-thresh-row:last-child { border-bottom: none; }
.qp-thresh-name { color: #8b949e; }
.qp-thresh-range { color: #e6edf3; font-family: 'JetBrains Mono', monospace; }
.qp-thresh-source { color: #6e7681; font-size: .65rem; }

/* ── Empty state ── */
.qp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 280px; color: #6e7681; text-align: center; background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 2rem; }
.qp-empty-icon { display: flex; align-items: center; justify-content: center; color: var(--text-muted,#8b949e); opacity: .5; }
.qp-empty-text { font-size: .88rem; max-width: 280px; }

/* ── Result header ── */
.qp-result-header { background: #161b22; border: 1px solid rgba(var(--v-color-r,63),var(--v-color-g,185),var(--v-color-b,80),.25); border-left: 3px solid var(--v-color, #3fb950); border-radius: 10px; padding: 1.1rem 1.5rem; margin-bottom: 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.qp-verdict-icon { font-size: 2.5rem; line-height: 1; }
.qp-verdict-label { font-size: 2rem; font-weight: 900; font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; }
.qp-prob { font-size: 1.1rem; color: #e6edf3; font-weight: 700; }
.qp-conf  { font-size: .82rem; color: #8b949e; }
.qp-protocol { font-size: .78rem; color: #6e7681; }

/* ── Metrics grid ── */
.qp-metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .75rem; margin-bottom: 1rem; }
.qp-metric-card { background: #161b22; border: 1px solid #21262d; border-left: 2px solid var(--qp-color, #30363d); border-radius: 8px; padding: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.qp-metric-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; }
.qp-metric-name { font-size: .75rem; color: #8b949e; line-height: 1.3; }
.qp-metric-badge { font-size: .68rem; font-weight: 800; letter-spacing: .08em; flex-shrink: 0; }
.qp-metric-val { font-size: 1.1rem; font-weight: 700; color: #e6edf3; font-family: 'JetBrains Mono', monospace; }
.qp-metric-bar-wrap { background: #0d1117; border-radius: 4px; height: 4px; overflow: hidden; }
.qp-metric-bar { height: 100%; border-radius: 4px; transition: width .3s; }
.qp-metric-range { font-size: .67rem; color: #6e7681; }
.qp-metric-advice { font-size: .71rem; color: #8b949e; line-height: 1.45; border-top: 1px solid #21262d; padding-top: .3rem; margin-top: .1rem; }
.qp-metric-na { font-size: .72rem; color: #6e7681; font-style: italic; }

/* ── Disclaimer ── */
.qp-disclaimer { background: rgba(227,179,65,.06); border: 1px solid rgba(227,179,65,.2); border-radius: 8px; padding: .7rem 1rem; font-size: .73rem; color: #8b949e; line-height: 1.5; }
