.block {
  margin: 0;
}

.blockDim .header {
  opacity: 0.75;
}

.blockDim .command,
.blockDim .output {
  color: #6b7280;
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e8ecf0;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #eef2ff;
  color: #4f46e5;
}

.prompt {
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: 600;
  color: #6366f1;
  flex-shrink: 0;
}

.command {
  min-width: 0;
  flex: 1;
  font-family: var(--font-mono);
  font-size: inherit;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output {
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: inherit;
  line-height: inherit;
  color: #4b5563;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: min(420px, 50vh);
}

.outputEmpty {
  color: #9ca3af;
  font-style: italic;
}

.outputStreaming::after {
  content: "▊";
  animation: blink 0.8s step-end infinite;
  color: #6366f1;
  margin-left: 1px;
}

.exit {
  padding: 6px 12px;
  border-top: 1px solid #fecaca;
  background: #fef2f2;
  font-family: var(--font-mono);
  font-size: inherit;
  color: #b91c1c;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
