/* Compact chevron steps and quieter on-screen performance presentation. */
.selection-progress {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.selection-progress .progress-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 18px 7px 20px;
  border: 0;
  border-radius: 0;
  background: #edf1f6;
  color: #526781;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%,10px 50%);
}
.selection-progress .progress-step:first-child {
  padding-inline-start: 13px;
  border-radius: 18px 0 0 18px;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);
}
.selection-progress .progress-step:last-child { padding-inline-end: 17px; }
.selection-progress .progress-step b { padding: 0; color: inherit; font-size: 11px; font-weight: 600; }
.selection-progress .progress-step img { width: 17px; height: 17px; flex-shrink: 0; }
.selection-progress .progress-step[aria-current="step"] { background: #21568E; color: white; }
.selection-progress .progress-step[aria-current="step"] img { filter: brightness(0) invert(1); }
.selection-progress .progress-step:hover:not(:disabled) { background: #dce6f4; color: #21568E; }
.selection-progress .progress-step[aria-current="step"]:hover { background: #1b4675; color: white; }
.selection-progress .progress-step:disabled { cursor: default; color: #65738a; }
.selection-progress .progress-step:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #668db5; }

#performance .metrics { margin-bottom: 14px; }
#performance .metric { padding: 10px 14px; }
#performance .metric span { font-size: 11px; line-height: 1.5; }
#performance .metric b { font-size: 20px; font-weight: 600; line-height: 1.35; }
#performance .metric em { font-size: 11px; }
#performance .performance-layout {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 40px;
}
#performance .main-chart, #performance .support-charts { min-width: 0; }
#performance .main-chart { width: 100%; max-width: 633px; justify-self: start; }
#performance .support-charts { width: 100%; max-width: 527px; justify-self: end; }
#performance .legend { gap: 8px 16px; margin: 10px 0; font-size: 11px; }
#performance > p.small { margin-top: 8px; font-size: 12px; line-height: 1.5; }
@media(min-width:901px) {
  #performance .main-chart svg text:not([font-size]) { font-size: 16px; }
  #performance .support-charts svg text { font-size: 18px; }
}
@media(max-width:1000px) {
  .selection-progress .progress-step { padding-inline: 15px; gap: 4px; }
  .selection-progress .progress-step img { width: 15px; height: 15px; }
}
@media(max-width:900px) {
  #performance .performance-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #performance .main-chart, #performance .support-charts { max-width: none; justify-self: stretch; }
}
@media(max-width:740px) {
  .selection-progress { display: none; }
  #performance .metric { padding: 9px 12px; }
  #performance .metric b { font-size: 19px; }
  /* Preserve the existing horizontally scrollable, legible chart viewport. */
  #performance .legend span { font-size: 11px; }
}
html[dir="rtl"] .selection-progress .progress-step { clip-path: none; border-radius: 5px; padding-inline: 12px; }
