.pipe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.pipe-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.pipe-form input {
  flex: 1;
  min-width: 220px;
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stages {
  display: grid;
  gap: 0.75rem;
}

.stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.stage-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 550;
}

.stage-body {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
  background: var(--term-bg);
  color: var(--term-fg);
}

.stage.err .stage-head {
  background: var(--err-bg);
  color: var(--err);
}

.source-pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
  background: var(--surface2);
  padding: 0.75rem;
  border-radius: 8px;
}
