.ms-agent-run-interaction-card {
  margin-top: 6px;
  min-width: 0;
  background: transparent;
  padding: 10px;
  box-shadow: none;
}

.ms-agent-run-interaction-card__row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.ms-agent-run-interaction-card__body {
  min-width: 0;
  flex: 1 1 12rem;
}

.ms-agent-run-interaction-card__header {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
}

.ms-agent-run-interaction-card__title {
  min-width: 0;
  flex: 1 1 12rem;
  overflow: hidden;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-caption);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-agent-run-interaction-card__badges {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.ms-agent-run-interaction-card__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 4px;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
}

.ms-agent-run-interaction-card__prompt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-caption);
  line-height: var(--ms-leading-body);
}

.ms-agent-run-interaction-card__text {
  margin: 4px 0 0;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-body);
}

.ms-agent-run-interaction-panel {
  margin: 0.5rem 0.25rem;
  padding: 0.625rem;
  font-size: var(--ms-text-label);
  line-height: var(--ms-leading-label);
}

.ms-agent-run-interaction-panel__header,
.ms-agent-run-interaction-section__header,
.ms-agent-run-interaction-request-card__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ms-agent-run-interaction-panel__header,
.ms-agent-run-interaction-section__header {
  margin-bottom: 0.375rem;
}

.ms-agent-run-interaction-panel__title,
.ms-agent-run-interaction-section__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  color: var(--ms-color-foreground);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-agent-run-interaction-panel__title > svg,
.ms-agent-run-interaction-section__title > svg {
  flex-shrink: 0;
}

.ms-agent-run-interaction-status-badge {
  flex-shrink: 0;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-run-interaction-section {
  padding: 0.5rem;
}

.ms-agent-run-interaction-section + .ms-agent-run-interaction-section {
  margin-top: 0.5rem;
}

.ms-agent-run-interaction-section__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
}

.ms-agent-run-interaction-section__actions--hidden {
  visibility: hidden;
}

.ms-agent-run-interaction-stack {
  display: grid;
  gap: 0.375rem;
}

.ms-agent-run-interaction-request-card {
  position: relative;
  overflow: hidden;
  padding: 0.625rem;
  color: var(--ms-color-foreground);
}

.ms-agent-run-interaction-request-card__rail {
  position: absolute;
  inset-block: 0.375rem;
  left: 0;
  width: 2px;
  border-radius: var(--ms-radius-full);
  opacity: 0.7;
}

.ms-agent-run-interaction-request-card__copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.ms-agent-run-interaction-request-card__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
}

.ms-agent-run-interaction-request-card__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  font-weight: 500;
}

.ms-agent-run-interaction-request-card__summary {
  margin-top: 0.125rem;
  min-height: 1rem;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  line-height: 1.625;
}

.ms-agent-run-interaction-request-card__summary--hidden {
  visibility: hidden;
}

.ms-agent-run-interaction-request-card__prompt {
  margin-top: 0.375rem;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  line-height: 1.625;
}

.ms-agent-run-interaction-request-card__detail {
  margin-top: 0.25rem;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  line-height: 1.625;
}

.ms-agent-run-interaction-meta-badge {
  height: 1rem;
  flex-shrink: 0;
  padding-inline: 0.25rem;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-run-interaction-state-badge {
  height: 1.25rem;
  flex-shrink: 0;
  padding-inline: 0.375rem;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-run-interaction-choice-button {
  height: auto;
  justify-content: flex-start;
  white-space: normal;
  border-color: color-mix(in srgb, var(--ms-color-border) 40%, transparent);
  background: transparent;
  padding: 0.375rem 0.5rem;
  text-align: left;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  box-shadow: none;
}

.ms-agent-run-interaction-choice-button:hover {
  border-color: color-mix(in srgb, var(--ms-color-border) 60%, transparent);
  background: color-mix(in srgb, var(--ms-color-muted) 25%, transparent);
}

.ms-agent-run-interaction-text-input {
  height: 1.75rem;
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.ms-agent-run-interaction-action-button {
  height: 1.5rem;
  padding-inline: 0.375rem;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  box-shadow: none;
}

.ms-agent-run-interaction-section__actions .ms-agent-run-interaction-action-button {
  flex-shrink: 0;
  padding-inline: 0.5rem;
}

.ms-agent-run-interaction-pager__button {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ms-color-border) 72%, transparent);
  border-radius: var(--ms-radius-sm);
  background: transparent;
  color: var(--ms-color-muted-foreground);
  cursor: pointer;
}

.ms-agent-run-interaction-pager__button:disabled {
  cursor: default;
  opacity: 0.45;
}

.ms-agent-run-interaction-pager__button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--ms-color-border) 92%, transparent);
  background: color-mix(in srgb, var(--ms-color-muted) 28%, transparent);
  color: var(--ms-color-foreground);
}

.ms-agent-run-interaction-pager__count {
  min-width: 2rem;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  font-variant-numeric: tabular-nums;
  line-height: var(--ms-leading-tiny);
  text-align: center;
}

.ms-agent-run-interaction-impact {
  margin-top: 0.25rem;
  border-radius: var(--ms-radius-sm);
  border-width: 1px;
  padding: 0.25rem 0.375rem;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  line-height: 1.625;
}

.ms-agent-run-interaction-impact__label {
  font-weight: 500;
}

.ms-agent-run-interaction-answer {
  margin-top: 0.375rem;
  border-radius: var(--ms-radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
  line-height: 1.625;
}
