.run-products-card {
  overflow: hidden;
}

.run-product-state {
  margin: 0 12px 12px;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  border: 1px dashed #d8e2ee;
  border-radius: 4px;
  background: #f8fafc;
}

.run-product-state .mdi {
  color: #2563eb;
  font-size: 24px;
}

.run-product-state.error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.run-product-state.error .mdi {
  color: #dc2626;
}

.run-product-meta-grid {
  padding: 0 12px 12px;
}

.run-product-section {
  margin: 0 12px 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.run-product-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.run-product-section-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.run-product-section-head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
}

.run-product-observation-list {
  display: grid;
  gap: 8px;
}

.run-product-observation {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e5edf6;
  border-radius: 4px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.run-product-observation:hover,
.run-product-observation:focus-visible,
.run-product-observation.is-expanded {
  border-color: rgba(37, 99, 235, 0.32);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  outline: none;
}

.run-product-observation-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.run-product-observation-head strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-product-observation-head b {
  color: #111827;
  font-size: 14px;
}

.run-product-observation p,
.run-product-copy {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.run-product-muted-copy {
  color: #64748b;
  font-size: 12px;
}

.run-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.run-product-tags span {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
}

.run-product-observation-detail {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5edf6;
}

.run-product-observation-detail section {
  display: grid;
  gap: 8px;
}

.run-product-observation-detail section > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.run-product-score-list {
  display: grid;
  gap: 7px;
}

.run-product-score-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.run-product-score-list em {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-product-score-list i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.run-product-score-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.run-product-score-list strong {
  color: #0f172a;
  font-size: 12px;
  text-align: right;
}

.run-product-evidence-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-product-evidence-list li {
  padding: 8px 10px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #f8fafc;
}

.run-product-evidence-list strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
}

.run-product-evidence-list p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.run-product-inline-empty {
  margin: 0;
  padding: 12px;
  color: #94a3b8;
  font-size: 13px;
  border: 1px dashed #d8e2ee;
  border-radius: 4px;
  background: #f8fafc;
}

.run-product-feedback-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5edf6;
  border-radius: 4px;
  background: #ffffff;
}

.run-product-section-head.compact {
  margin-bottom: 8px;
}

.run-product-feedback-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run-product-feedback-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: #475569;
  font-size: 12px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #f8fafc;
}

.run-product-feedback-list strong {
  color: #0f172a;
  font-size: 12px;
}

.run-product-feedback-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-product-feedback-list em {
  color: #64748b;
  font-style: normal;
  white-space: nowrap;
}

.risk-level-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}

.risk-level-pill.critical,
.risk-level-pill.high {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.risk-level-pill.medium {
  color: #92400e;
  border-color: #fed7aa;
  background: #fff7ed;
}

.risk-level-pill.low {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

@media (max-width: 760px) {
  .run-product-observation-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .run-product-score-list div {
    grid-template-columns: 64px minmax(0, 1fr) 30px;
  }

  .risk-level-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }
}
