/* Step I/O Grid Layout */
.step-io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.step-io-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step-io-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 2px;
}

.step-io-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.step-duration {
  font-size: 11px;
  color: var(--text-muted);
}

.input-modified-indicator {
  font-size: 10px;
  color: var(--accent);
  background: var(--bg-lighter);
  padding: 2px 6px;
  border-radius: 3px;
}

.use-prev-output-btn {
  font-size: 10px;
  color: var(--accent);
  background: none;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
}

.use-prev-output-btn:hover {
  background: var(--bg-lighter);
  border-color: var(--accent);
}

.step-io-textarea {
  flex: 1;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
  outline: none;
}

.step-io-textarea:focus {
  border-color: var(--accent);
}

.step-io-output {
  flex: 1;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 200px;
}

.step-io-output.has-error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.step-io-error {
  flex: 1;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--error);
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  font-size: 13px;
  line-height: 1.4;
  overflow: auto;
  max-height: 200px;
}

.step-io-empty {
  flex: 1;
  min-height: 80px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step result with no run yet */
.step-result.no-result {
  opacity: 0.6;
}

/* Fix it button */
.step-io-column .fix-it-btn {
  margin-top: 8px;
  background: var(--error);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.step-io-column .fix-it-btn:hover {
  background: #dc2626;
}

/* Stale results styling */
.step-result.stale {
  opacity: 0.5;
  position: relative;
}

.stale-indicator {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: var(--bg-lighter);
  border-radius: 4px;
  display: inline-block;
}
