/* forming-overrides.css — per-app deltas on top of cbc-tokens + cbc-components.
   DO NOT edit cbc-tokens.css or cbc-components.css. Add accents / app-specific
   layout rules here. Copper accent (#b65a1f) is the only allowed colour pop. */

:root {
  --forming-accent: #b65a1f;
  --forming-pass:    #1a5c2a;
  --forming-warn:    #7a5800;
  --forming-fail:    #7a1522;
  --forming-paper:   #faf6f2;
}

/* ── Paired slider + numeric input row ─────────────────────────────────── */
.ctrl-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 10px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: var(--forming-paper);
}
.ctrl-row .ctrl-label-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.ctrl-row label.label-s {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}
.ctrl-row .ctrl-pair {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 10px;
  align-items: center;
}
.ctrl-row input[type="range"] {
  accent-color: var(--forming-accent);
  width: 100%;
}
.ctrl-row input.ctrl-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-align: right;
  padding: 4px 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  color: #222;
  width: 100%;
}
.ctrl-row input.ctrl-num:focus {
  outline: 2px solid var(--forming-accent);
  outline-offset: -2px;
}
.ctrl-row .ctrl-range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #666;
  letter-spacing: 0.04em;
}

/* ── Grid of slider rows ───────────────────────────────────────────────── */
.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

/* ── Verdict badge ─────────────────────────────────────────────────────── */
.verdict-badge {
  display: inline-block;
  padding: 8px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.10em;
  border: 1px dashed rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  margin-top: 8px;
}
.verdict-PASS     { background: #d6edda; color: var(--forming-pass); }
.verdict-MARGINAL { background: #fff3cd; color: var(--forming-warn); }
.verdict-FAIL     { background: #f8d7da; color: var(--forming-fail); }
.verdict-ERROR    { background: #e2e3e5; color: #383d41; }

/* ── KPI strip ─────────────────────────────────────────────────────────── */
.kpi-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
}
.kpi-cell { display: flex; flex-direction: column; gap: 2px; }
.kpi-cell .kpi-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--forming-accent);
  line-height: 1.1;
}
.kpi-cell .kpi-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #555;
}

/* ── Flags list ────────────────────────────────────────────────────────── */
.flags-list {
  margin: 10px 0;
  padding-left: 18px;
  list-style: square;
}
.flags-list li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--forming-fail);
  padding: 2px 0;
}

/* ── Plot grid ─────────────────────────────────────────────────────────── */
.plot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.plot-tile--eng .info-row {
  min-height: 68px;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 8px;
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #444;
}
.plot-tile--eng .ctrl-strip {
  padding: 6px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) { .plot-row { grid-template-columns: 1fr; } }

/* ── Assess button — accent ─────────────────────────────────────────────── */
.btn-assess {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--forming-accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  margin-top: 8px;
}
.btn-assess:disabled { opacity: 0.5; cursor: wait; }
.btn-assess:hover:not(:disabled) { filter: brightness(1.06); }
