.sweep-execution-note {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(13, 91, 215, 0.16);
  border-radius: 10px;
  background: #f4f8ff;
  color: #315275;
  font-size: 0.84rem;
  font-weight: 600;
}

.result-view--parameter-sweep .sweep-summary-context {
  margin: 6px 0 0;
  color: #637895;
  font-size: 0.82rem;
  font-weight: 600;
}

.result-view--parameter-sweep .summary-strip--single.sweep-summary-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.result-view--parameter-sweep .sweep-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.result-view--parameter-sweep .sweep-summary-ranking-selector {
  flex: 0 0 auto;
}

.result-view--parameter-sweep .sweep-summary-card--rank-source {
  border-color: rgba(13, 91, 215, 0.28);
  box-shadow: inset 0 2px 0 rgba(13, 91, 215, 0.72), var(--workspace-card-shadow-flat);
}

.result-view--parameter-sweep .summary-card-label {
  position: static;
  display: block;
  width: 100%;
  text-align: center;
}

.result-view--parameter-sweep .sweep-summary-rank-indicator {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #0d5bd7;
  box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.1);
  opacity: 0;
  transform: translateX(-50%);
}

.result-view--parameter-sweep .sweep-summary-card--rank-source .sweep-summary-rank-indicator {
  opacity: 1;
}

.result-view--parameter-sweep .sweep-top-ranked-configuration {
  flex: 0 0 auto;
  margin-bottom: 14px;
  padding: 12px;
  border-color: rgba(13, 91, 215, 0.18);
  background: #f7faff;
}

.result-view--parameter-sweep [data-sweep-configuration-snapshot] {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.result-view--parameter-sweep .sweep-subsection-heading {
  margin-bottom: 10px;
}

body.single-result-review-inter-page .result-view--parameter-sweep .sweep-snapshot-heading h3,
body.single-result-review-inter-page .result-view--parameter-sweep .sweep-subsection-heading h4 {
  margin: 0;
  color: #203452;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.result-view--parameter-sweep .sweep-snapshot-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-view--parameter-sweep .sweep-snapshot-heading-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #0d5bd7;
}

.result-view--parameter-sweep .sweep-snapshot-heading-icon::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat url("./assets/icons/lucide/trophy.svg");
  mask: center / contain no-repeat url("./assets/icons/lucide/trophy.svg");
}

.result-view--parameter-sweep .sweep-heatmap-note {
  margin: 16px 0 0;
  color: #71839b;
  font-size: 0.76rem;
  line-height: 1.45;
}

.result-view--parameter-sweep .sweep-snapshot-parameter-group > .review-config-item {
  border-bottom: 0;
}

.result-view--parameter-sweep .sweep-summary-card--context {
  border-color: rgba(13, 91, 215, 0.16);
  background: #f7faff;
}

.result-view--parameter-sweep .sweep-ranking-footer {
  flex-wrap: wrap;
}

.result-view--parameter-sweep .sweep-ranking-footer-helper {
  color: #71839b;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .result-view--parameter-sweep .summary-strip--single.sweep-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-view--parameter-sweep .sweep-summary-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .result-view--parameter-sweep .sweep-summary-ranking-selector {
    align-self: flex-end;
  }

  .result-view--parameter-sweep .sweep-ranking-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (min-width: 601px) and (max-width: 1250px) {
  .result-view--parameter-sweep .summary-strip--single.sweep-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sweep-execution-note[data-tone="warning"] {
  border-color: rgba(190, 126, 24, 0.28);
  background: #fff9ed;
  color: #805816;
}

.sweep-execution-note[data-tone="zero"] {
  border-color: rgba(92, 111, 145, 0.22);
  background: #f5f7fa;
  color: #52647e;
}

.sweep-heatmap-cell.is-failed {
  background: #e9eef5 !important;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(82, 101, 130, 0.08) 0,
    rgba(82, 101, 130, 0.08) 5px,
    transparent 5px,
    transparent 10px
  ) !important;
  box-shadow: inset 0 0 0 1px rgba(82, 101, 130, 0.18);
}

.sweep-heatmap-cell.is-zero-activity {
  box-shadow: inset 0 0 0 1px rgba(82, 101, 130, 0.12);
}

.result-view--parameter-sweep .sweep-heatmap-cell:focus-visible {
  position: relative;
  z-index: 4;
  outline: 2px solid #0d5bd7;
  outline-offset: -2px;
}

.sweep-metric-fixed {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(13, 91, 215, 0.14);
  border-radius: 8px;
  background: #f5f8fd;
  color: #315275;
  font-size: 0.82rem;
  font-weight: 700;
}

.result-view--parameter-sweep .sweep-metric-selector select:disabled {
  cursor: default;
  opacity: 1;
}

.result-view--parameter-sweep .review-download-button:disabled,
.result-view--parameter-sweep .sweep-view-all-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.result-view--parameter-sweep .sweep-ranking-row--canonical {
  grid-template-columns:
    minmax(44px, 0.5fr)
    minmax(76px, 0.78fr)
    minmax(100px, 1fr)
    minmax(92px, 0.92fr)
    minmax(88px, 0.86fr)
    minmax(82px, 0.8fr)
    minmax(64px, 0.62fr)
    minmax(96px, 0.86fr)
    minmax(82px, 0.78fr);
  min-width: 940px;
}

.result-view--parameter-sweep .sweep-ranking-row--canonical[aria-selected="true"] {
  background: #edf5ff;
  box-shadow: inset 3px 0 0 #0d5bd7;
}

.sweep-ranking-row--empty {
  display: block;
  min-width: 0;
  padding: 18px;
  color: #637895;
  text-align: center;
}
