.performance-workflow {
  padding-bottom: 90px;
  min-width: 0;
}
.performance-source {
  max-width: 850px;
  margin: 0 0 44px;
}
.performance-workflow h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.performance-workflow h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.performance-workflow .fine,
.performance-status {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.performance-source label,
.performance-filters label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin: 20px 0 8px;
}
.performance-workflow input,
.performance-workflow select,
.performance-workflow textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #c8cdd6;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
}
.performance-workflow input[type="file"] {
  padding: 6px;
  font-size: 13px;
  overflow: hidden;
}
.performance-workflow input::file-selector-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-right: 12px;
  font: inherit;
  color: #1d1d1f;
  background: #edf0f7;
  cursor: pointer;
}
.performance-workflow textarea {
  font: 13px/1.6 ui-monospace, SFMono-Regular, monospace;
  resize: vertical;
}
.performance-workflow .output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.performance-workflow .button {
  min-height: 44px;
  white-space: normal;
}
.performance-workflow :is(button, input, textarea, select, summary, a):focus-visible {
  outline: 3px solid #385de0;
  outline-offset: 3px;
}
.performance-result > section {
  margin-top: 32px;
}
.performance-provenance {
  background: #f0f4ff;
  border-radius: 24px;
  padding: 28px;
}
.performance-provenance .eyebrow {
  margin-bottom: 14px;
}
.performance-metadata {
  margin: 22px 0 0;
}
.performance-source-value {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid #d8e0f0;
  font-size: 13px;
  line-height: 1.7;
}
.performance-source-value dt {
  font-weight: 600;
}
.performance-source-value dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.performance-source-value code {
  font: 12px/1.7 ui-monospace, SFMono-Regular, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.performance-scores,
.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.performance-score,
.performance-metric {
  padding: 22px;
  border: 1px solid #e0e2e9;
  border-radius: 18px;
  background: #f7f8fa;
  min-width: 0;
}
.performance-score h4,
.performance-metric h4 {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.performance-score strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.performance-score-good {
  color: #155038;
}
.performance-score-needs-improvement {
  color: #805614;
}
.performance-score-poor,
.performance-run-error {
  color: #893221;
}
.performance-score-unavailable {
  color: #5c6371;
}
.performance-metric-value {
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  margin: 0;
  overflow-wrap: anywhere;
}
.performance-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
}
.performance-audit,
.performance-evidence {
  border-top: 1px solid #e0e2e9;
  border-bottom: 0;
  padding: 14px 0;
}
.performance-audit > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
}
.performance-audit > summary > span:first-child {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font: inherit;
  color: #1d1d1f;
}
.performance-audit summary span,
.performance-audit[open] > summary > span {
  transform: none;
  transition: none;
}
.performance-audit-state {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  color: #46536e;
  background: #edf0f7;
  max-width: 150px;
}
.performance-state-attention {
  color: #79371c;
  background: #fff0e7;
}
.performance-state-passed {
  color: #155038;
  background: #e5f4eb;
}
.performance-state-error {
  color: #893221;
  background: #faeae5;
}
.performance-audit p,
.performance-field p,
.performance-notes li {
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.performance-audit-id {
  display: block;
  font: 11px/1.7 ui-monospace, SFMono-Regular, monospace;
  color: #5c6371;
  overflow-wrap: anywhere;
}
.performance-saving {
  color: #1d1d1f;
}
.performance-evidence {
  padding: 12px 0 0;
  margin-top: 12px;
}
.performance-evidence > summary {
  display: list-item;
  list-style: disclosure-closed;
  font-size: 13px;
  min-height: 44px;
  line-height: 1.7;
  cursor: pointer;
}
.performance-evidence[open] > summary {
  list-style: disclosure-open;
}
.performance-evidence summary::-webkit-details-marker {
  display: inline;
}
.performance-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 12px;
}
.performance-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  line-height: 1.7;
}
.performance-table-scroll caption {
  text-align: left;
  padding: 8px 0;
  font-size: 12px;
  color: #5c6371;
}
.performance-table-scroll th,
.performance-table-scroll td {
  border: 1px solid #e0e2e9;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.performance-table-scroll th {
  background: #f7f8fa;
}
.performance-field,
.performance-notes {
  border-top: 1px solid #e0e2e9;
  padding-top: 28px;
}
.performance-field .eyebrow {
  margin-bottom: 14px;
}
.performance-guidance {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #294bae;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.performance-references {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.performance-guide {
  border-top: 1px solid #e0e2e9;
  padding: 22px 0;
  margin: 26px 0;
}
.performance-guide > summary {
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  line-height: 1.7;
}
.performance-guide p {
  font-size: 14px;
  line-height: 1.75;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.performance-guide ol {
  padding-left: 22px;
  margin: 16px 0;
}
.performance-guide li {
  font-size: 14px;
  line-height: 1.75;
  margin: 10px 0;
}
.performance-guide a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.75;
}
@media (max-width: 760px) {
  .performance-workflow {
    padding-bottom: 60px;
  }
  .performance-provenance {
    border-radius: 20px;
    padding: 22px;
  }
  .performance-source-value {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .performance-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .performance-workflow textarea,
  .performance-workflow select {
    font-size: 16px;
  }
  .performance-scores,
  .performance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .performance-score,
  .performance-metric {
    padding: 16px;
  }
  .performance-score strong,
  .performance-metric-value {
    font-size: 22px;
  }
  .performance-audit > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .performance-workflow * {
    transition: none !important;
  }
}
