/* DESIGN-5 — Shared Production Flow Visual QA.
 * This layer is debug/test-bench only. It verifies that the shared Start,
 * Workspace, Tool Panel Slot, and Export/Result surfaces keep the first-plugin
 * visual contract before real tools are added.
 */

.ept-bench {
  --ept-visual-qa-pass-bg: #ecfdf5;
  --ept-visual-qa-pass-border: #a7f3d0;
  --ept-visual-qa-pass-text: #047857;
  --ept-visual-qa-warn-bg: #fffbeb;
  --ept-visual-qa-warn-border: #fde68a;
  --ept-visual-qa-warn-text: #92400e;
  --ept-visual-qa-fail-bg: #fef2f2;
  --ept-visual-qa-fail-border: #fecaca;
  --ept-visual-qa-fail-text: #b91c1c;
}

.ept-visual-qa {
  overflow: hidden;
}

.ept-visual-qa__header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ept-visual-qa__header h3 {
  color: var(--ept-text) !important;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 7px 0 5px;
}

.ept-visual-qa__header p,
.ept-visual-qa__footer p {
  color: var(--ept-muted) !important;
  margin: 0;
}

.ept-visual-qa__toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}

.ept-visual-qa__scoreboard {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 14px;
}

.ept-visual-qa__score {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--ept-border);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
  padding: 12px;
}

.ept-visual-qa__score strong,
.ept-visual-qa__score span {
  display: block;
}

.ept-visual-qa__score strong {
  color: var(--ept-text) !important;
  font-size: 1.25rem;
  line-height: 1.1;
}

.ept-visual-qa__score span {
  color: var(--ept-muted) !important;
  font-size: .78rem;
  font-weight: 800;
  margin-top: 4px;
  text-transform: uppercase;
}

.ept-visual-qa__list {
  display: grid;
  gap: 9px;
}

.ept-visual-qa__item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ept-border);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px 12px;
}

.ept-visual-qa__mark {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  letter-spacing: .04em;
  min-width: 34px;
  padding: 0 8px;
  text-transform: uppercase;
}

.ept-visual-qa__copy strong,
.ept-visual-qa__copy span {
  display: block;
}

.ept-visual-qa__copy strong {
  color: var(--ept-text) !important;
  font-size: .92rem;
}

.ept-visual-qa__copy span {
  color: var(--ept-muted) !important;
  font-size: .8rem;
  margin-top: 3px;
}

.ept-visual-qa__item.is-pass {
  background: var(--ept-visual-qa-pass-bg);
  border-color: var(--ept-visual-qa-pass-border);
}

.ept-visual-qa__item.is-pass .ept-visual-qa__mark {
  background: #d1fae5;
  color: var(--ept-visual-qa-pass-text) !important;
}

.ept-visual-qa__item.is-warn {
  background: var(--ept-visual-qa-warn-bg);
  border-color: var(--ept-visual-qa-warn-border);
}

.ept-visual-qa__item.is-warn .ept-visual-qa__mark {
  background: #fef3c7;
  color: var(--ept-visual-qa-warn-text) !important;
}

.ept-visual-qa__item.is-fail {
  background: var(--ept-visual-qa-fail-bg);
  border-color: var(--ept-visual-qa-fail-border);
}

.ept-visual-qa__item.is-fail .ept-visual-qa__mark {
  background: #fee2e2;
  color: var(--ept-visual-qa-fail-text) !important;
}

.ept-visual-qa__footer {
  background: rgba(239, 246, 255, .72);
  border: 1px solid rgba(191, 219, 254, .72);
  border-radius: 16px;
  margin-top: 14px;
  padding: 12px;
}

.ept-visual-qa.is-checked {
  animation: eptVisualQaPulse 780ms ease-out;
}

@keyframes eptVisualQaPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .28); }
  100% { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0); }
}

@media (max-width: 720px) {
  .ept-visual-qa__header {
    display: block;
  }

  .ept-visual-qa__scoreboard {
    grid-template-columns: 1fr;
  }
}
