select,
button {
  font: inherit;
}

.controls {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb9c8;
  border-radius: 0.65rem;
}

.pipeline-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.summary-badge {
  flex: none;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.summary-badge[data-status="passed"] {
  color: var(--green);
  background: #effaf6;
}

.summary-badge[data-status="failed"] {
  color: var(--red);
  background: #fff2f1;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid #dbe1ea;
  border-radius: 0.7rem;
}

.pipeline li span {
  color: var(--muted);
  font-size: 0.75rem;
}

.pipeline li[data-status="passed"] {
  border-color: #9bd8c6;
  background: #effaf6;
}

.pipeline li[data-status="failed"] {
  border-color: #f1b8b3;
  background: #fff2f1;
}

.pipeline li[data-status="skipped"] {
  opacity: 0.55;
}

.diagnostic {
  min-height: 3rem;
  margin: 0;
  padding: 0.85rem 1rem;
  color: #dffdfa;
  background: var(--navy);
  border-radius: 0.7rem;
}

.secondary-button {
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  color: var(--blue);
  background: #edf1ff;
  border: 1px solid #bec9f8;
  border-radius: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.workspace {
  margin-top: 1rem;
}

.file-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0.7rem;
}

.file-tabs button {
  padding: 0.5rem 0.7rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid #cdd5e0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.file-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

#file-content {
  min-height: 18rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: #dffdfa;
  background: var(--navy);
  border-radius: 0.75rem;
  font: 0.76rem/1.6 "Cascadia Code", Consolas, monospace;
}

.responsibility dl {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.responsibility dl div {
  padding: 0.8rem;
  background: #edf1ff;
  border-radius: 0.7rem;
}

.responsibility dt {
  font-weight: 850;
}

.responsibility dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .controls {
    grid-template-columns: 0.8fr 1fr auto;
  }
}

@media (max-width: 42rem) {
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 28rem) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-heading {
    flex-direction: column;
  }
}
