/* Validation: the checks pipeline and the report of the run. Colours come from tokens.css only. */

.vp { margin: 0; display: grid; gap: 18px; }
.vp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vp-top .label { margin: 0; }
.vp-stages {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 14px; align-items: stretch;
}
.vp-stages::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 30px; height: 2px; z-index: 0;
  background: var(--grad-bar); opacity: 0.6;
}
.val-stage { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; padding: 18px; }
.val-stage > b { font-family: var(--font-display); font-size: var(--text-card); }
.vp-no {
  justify-self: start; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  font-family: var(--font-mono); font-size: var(--text-label); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface);
}
.val-stage[data-kind="gate"] { background: linear-gradient(var(--wash-wait), var(--wash-wait)), var(--glass-2); border-color: color-mix(in srgb, var(--wait) 50%, transparent); }
.val-stage[data-kind="gate"] .vp-no { color: var(--wait); border-color: var(--wait); border-radius: 50%; }
.val-stage[data-kind="gate"] > b { color: var(--wait); }
.vp-sub, .vp-note { font-size: var(--text-note); color: var(--text-muted); line-height: 1.45; }
.vp-who { justify-self: start; font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: 0.04em; color: var(--text); padding: 4px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); }
.vp-cap { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-muted); }

/* Code checks: a list with ticks, then one square per attempt for the knockout. */
.vp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.vp-checks li { position: relative; padding-left: 20px; font-size: var(--text-note); line-height: 1.4; }
.vp-checks li::before {
  content: ""; position: absolute; left: 2px; top: 3px; width: 9px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.vp-checks .vp-more { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-label); }
.vp-checks .vp-more::before { border: 0; width: 6px; height: 6px; top: 6px; left: 3px; border-radius: 50%; background: var(--border-strong); transform: none; }
.vp-knock { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--wait) 45%, transparent); background: var(--glass-1); }
.vp-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.vp-grid i { aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--ok) 40%, transparent); }
.vp-grid i[data-on] { background: var(--wait); box-shadow: 0 0 calc(6px * var(--glow)) color-mix(in srgb, var(--wait) 60%, transparent); }

/* Model judges: the criteria, and kappa on a scale with the bar it has to reach. */
.vp-criteria { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vp-criteria .chip { color: var(--text); background: var(--glass-1); }
.vp-scale { --v: 0; --bar: 0; display: grid; gap: 8px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--glass-1); }
.vp-axis { position: relative; height: 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--text) 10%, transparent); }
.vp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--grad-bar); box-shadow: var(--glow-accent-sm); }
.vp-bar { position: absolute; top: -6px; bottom: -6px; left: calc(var(--bar) * 100%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--wait); }
.vp-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-label); color: var(--text-muted); }
.val-stage .tag { justify-self: start; }

/* The report of the run: four numbers, each with a scale. */
.vp-report { display: grid; gap: 16px; padding: 22px 24px; }
.vp-report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.vp-report-head .label { margin: 0; }
.vp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.val-stat { align-content: start; }
.val-stat .stat-value { font-size: 2.3rem; }
.vp-meter { --w: 0; position: relative; display: block; height: 6px; margin: 4px 0 2px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--text) 10%, transparent); }
.vp-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); border-radius: inherit; background: var(--grad-bar); }
.vp-meter[data-warn] .vp-meter-fill { background: var(--wait); }

@media (max-width: 1080px) {
  .vp-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-stages::before { display: none; }
  .vp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vp-stages, .vp-stats, .vp-checks { grid-template-columns: minmax(0, 1fr); }
  .vp-report { padding: 18px; }
}
