/* Command execution timeline */
.command-stage {
  display: grid;
  min-height: 74vh;
  grid-template-columns: minmax(280px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: 32px max(16px, calc((100vw - 1180px) / 2));
}

.command-terminal {
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.15);
  border-radius: 8px;
  background: #111315;
  box-shadow: 0 28px 76px rgba(17, 19, 21, 0.22);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  color: rgba(247, 242, 232, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-progress {
  width: 160px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.16);
}

.command-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #68d8d6;
  transform: scaleX(0);
  transform-origin: left center;
}

.command-lines {
  display: grid;
  gap: 1px;
  background: rgba(247, 242, 232, 0.08);
}

.command-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  background: #111315;
  color: #f7f2e8;
  padding: 14px 16px;
  will-change: transform, opacity;
}

.command-index,
.command-state {
  color: rgba(247, 242, 232, 0.48);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-text {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(13px, 2vw, 16px);
  overflow-wrap: anywhere;
}

.command-line.is-done .command-state {
  color: #68d8d6;
}

@media (max-width: 840px) {
  .command-stage {
    grid-template-columns: 1fr;
  }

  .command-line {
    grid-template-columns: 1fr;
  }
}
