/* How a run went (#1878, slice 2) — tokens only, no colour literals.
   Rendered by web/run-review.js in two places: a section in the run detail
   blade (.run-review-section) and the host under the "How it went ▸" pill
   beside the delegation tree pill (.run-review-host). The pill reuses the
   .run-pill look from workbench.css, which also gates its motion.
   Severity is a word plus an icon; the coloured rail is only a third cue.
   Every hidden element carries an explicit [hidden] counterpart because
   display:flex/block beats the UA [hidden] rule (the #854 class of bug). */

.run-review-pill { margin-left: 6px; }
.run-review-pill[hidden] { display: none !important; }
.run-review-trace:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* the pill takes the shared .run-pill:focus-visible ring */

.run-review-host {
  margin-top: 6px;
  padding: 8px 10px;
  max-width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.run-review-host[hidden] { display: none !important; }

.run-review-section { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.run-review-section[hidden] { display: none !important; }
.run-review-title {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.run-review-body { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-body); font-size: 12.5px; color: var(--text); min-width: 0; }
.run-review-summary { margin: 0; overflow-wrap: anywhere; }
.run-review-headline { margin: 2px 0 0; font-weight: 600; }
.run-review-note, .run-review-line { margin: 0; font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }

.run-review-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.run-review-finding {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-muted);
  overflow-wrap: anywhere;
  min-width: 0;
}
.run-review-finding.is-problem { border-left-color: var(--danger); }
.run-review-finding.is-warn { border-left-color: var(--warning); }
.run-review-finding.is-info { border-left-color: var(--accent); }

.run-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.run-review-icon { display: inline-flex; align-items: center; font-weight: 700; }
.run-review-icon .outline-icon { width: 1em; height: 1em; vertical-align: middle; }
.is-problem .run-review-icon { color: var(--danger); }
.is-warn .run-review-icon { color: var(--text); } /* the warning hue stays on the rail: UX-BRAND-09 keeps it off foregrounds */
.is-info .run-review-icon { color: var(--accent); }
.run-review-severity { font-weight: 700; }
.run-review-tag {
  font-size: 11px;
  padding: 1px 7px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}
.run-review-code { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.run-review-text { margin: 4px 0 0; }
.run-review-possible, .run-review-evidence { margin: 4px 0 0; font-size: 12px; color: var(--text-dim); }
.run-review-fix { margin: 4px 0 0; }
.run-review-who { font-weight: 600; }
.run-review-trace { color: var(--accent); text-decoration: underline; }
