.root {
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  overflow: hidden;
}

.root[data-state='running'] .row::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 300px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--dsw-alias-bg-base) 60%, transparent) 55%,
    transparent 100%
  );
  animation: dsh-command-row-sweep 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes dsh-command-row-sweep {
  0% { left: -300px; }
  90%, 100% { left: 100%; }
}

.leading {
  flex-shrink: 0;
}

.chevron {
  color: var(--dsw-alias-label-secondary);
}

.title {
  font-weight: 400;
}

.separator {
  flex: none;
  width: 2px;
  height: 2px;
  margin: 0 8px;
  border-radius: 1px;
  background: var(--dsw-alias-label-caption);
}

.summary {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  color: var(--dsw-alias-label-tertiary);
  font-size: 14px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary[data-error],
.body[data-error] {
  color: var(--dsw-alias-state-error-primary);
}

.body {
  max-height: 260px;
  margin: 4px 0 4px 4px;
  padding: 12px 16px;
  overflow: auto;
  border: 1px solid var(--dsw-alias-border-l1);
  border-radius: 12px;
  background: var(--dsw-alias-markdown-code-block);
  color: var(--dsw-alias-label-primary);
  font: var(--dsw-font-markdown-code-block-small);
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .root[data-state='running'] .row::after {
    animation: none;
  }
}
