.evidence-scout {
  position: relative;
  overflow: hidden;
  margin: 28px 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(90, 217, 255, .26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0, rgba(90, 217, 255, .14), transparent 32%),
    linear-gradient(145deg, rgba(8, 27, 43, .98), rgba(6, 19, 30, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.evidence-scout::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#5ad9ff, #39e6bd);
  content: "";
}

.evidence-scout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.evidence-scout-heading > div { max-width: 900px; }
.evidence-scout-heading span,
.evidence-scout-latest > div:first-child span {
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.evidence-scout-heading h3 { margin: 8px 0; font-size: clamp(1.55rem, 3vw, 2.45rem); }
.evidence-scout-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.evidence-scout-heading button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(90, 217, 255, .25);
  border-radius: 14px;
  background: rgba(90, 217, 255, .08);
  color: #ddf8ff;
}

.evidence-scout-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 23px 0 14px;
}

.evidence-scout-metrics article {
  padding: 15px 16px;
  border: 1px solid rgba(90, 217, 255, .16);
  border-radius: 17px;
  background: rgba(0, 10, 19, .38);
}

.evidence-scout-metrics span { display: block; color: #8ddff3; font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.evidence-scout-metrics b { display: block; margin: 6px 0 3px; color: #fff; font-size: 1.55rem; }
.evidence-scout-metrics small { color: var(--muted); font-size: .7rem; }

.evidence-scout-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.evidence-scout-lane {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 17px;
  background: rgba(2, 14, 25, .62);
}

.evidence-scout-lane header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evidence-scout-lane header b { color: #effcff; font-size: .85rem; }
.evidence-scout-lane header i { width: 8px; height: 8px; border-radius: 50%; background: #39e6bd; box-shadow: 0 0 10px rgba(57, 230, 189, .55); }
.evidence-scout-lane p { margin: 9px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.evidence-scout-lane dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 0; }
.evidence-scout-lane dl div { padding: 7px; border-radius: 9px; background: rgba(255, 255, 255, .035); }
.evidence-scout-lane dt { color: #7892a3; font-size: .56rem; text-transform: uppercase; }
.evidence-scout-lane dd { margin: 3px 0 0; color: #edfaff; font-size: .82rem; font-weight: 800; }

.evidence-scout-latest { margin-top: 14px; padding: 16px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 18px; background: rgba(0, 9, 17, .42); }
.evidence-scout-latest > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-scout-latest > div:first-child small { color: var(--muted); }
.evidence-scout-latest > div:last-child { display: grid; gap: 8px; margin-top: 12px; }
.evidence-scout-run { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.evidence-scout-run div { min-width: 0; }
.evidence-scout-run h4 { overflow: hidden; margin: 0 0 3px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-scout-run small { color: var(--muted); }
.evidence-scout-run span { padding: 5px 8px; border-radius: 999px; background: rgba(57, 230, 189, .09); color: #81efd5; font-size: .65rem; font-weight: 850; }
.evidence-scout-run[data-status="partial"] span { background: rgba(255, 202, 128, .09); color: #ffda9f; }
.evidence-scout-run[data-status="failed"] span { background: rgba(255, 125, 136, .09); color: #ffabb2; }
.evidence-scout-run > b { color: #dff8ff; font-size: .75rem; }
.evidence-scout-status { min-height: 1.3em; margin: 12px 0 0; color: var(--cyan); }

.knowledge-health-item[data-state="evidence-gaps"],
.knowledge-health-item[data-state="evidence-scout-pending"] { border-color: rgba(90, 217, 255, .2); }
.knowledge-health-item[data-state="evidence-gaps"] .knowledge-health-state::before,
.knowledge-health-item[data-state="evidence-scout-pending"] .knowledge-health-state::before { background: #5ad9ff; box-shadow: 0 0 11px rgba(90, 217, 255, .45); }

@media (max-width: 1050px) {
  .evidence-scout-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-scout-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .evidence-scout { padding: 18px 14px 20px; border-radius: 21px; }
  .evidence-scout-heading { display: grid; }
  .evidence-scout-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-scout-lanes { grid-template-columns: 1fr; }
  .evidence-scout-run { grid-template-columns: 1fr 1fr; }
  .evidence-scout-run div { grid-column: 1 / -1; }
}
