.root {
  width: 100%;
  min-width: 0;
}

.runHeader {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--dsw-alias-bg-module-platform);
}

.runHeader:focus-visible {
  outline: 2px solid var(--dsw-alias-state-business-primary);
  outline-offset: -2px;
}

.runLeading {
  display: inline-flex;
  flex: none;
  width: calc(16px + var(--dsh-content-font-delta, 0px));
  height: calc(16px + var(--dsh-content-font-delta, 0px));
  align-items: center;
  justify-content: center;
  margin-right: 0;
  color: var(--dsw-alias-label-tertiary);
}

.runTitle {
  overflow: hidden;
  flex: none;
  max-width: 42%;
  color: var(--dsw-alias-label-secondary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  font-weight: 510;
  line-height: calc(24px + var(--dsh-content-font-delta, 0px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runSummary {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  color: var(--dsw-alias-label-tertiary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(18px + var(--dsh-content-font-delta-secondary, 0px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statusTail {
  display: inline-flex;
  flex: none;
  height: 20px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 510;
  line-height: 16px;
  color: var(--dsw-alias-label-secondary);
  white-space: nowrap;
}

.phaseHeader {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 32px;
}

.phaseHeader:focus-visible {
  outline: 2px solid var(--dsw-alias-state-business-primary);
  outline-offset: -2px;
  border-radius: 4px;
}

.phaseLeading {
  display: inline-flex;
  flex: none;
  width: calc(16px + var(--dsh-content-font-delta, 0px));
  height: calc(16px + var(--dsh-content-font-delta, 0px));
  align-items: center;
  justify-content: center;
  margin-right: 0;
  color: var(--dsw-alias-label-tertiary);
}

.phaseTitle {
  overflow: hidden;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
  color: var(--dsw-alias-label-secondary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(24px + var(--dsh-content-font-delta, 0px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phaseCount {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  color: var(--dsw-alias-label-tertiary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phaseStatus {
  overflow: hidden;
  flex: none;
  /* Column width scales with the text (~132/13 ≈ 10px per font-size px) so
     larger sizes keep the same status text visible instead of truncating. */
  width: calc(132px + var(--dsh-content-font-delta-secondary, 0px) * 10);
  color: var(--dsw-alias-label-secondary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.separator {
  flex: none;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--dsw-alias-label-tertiary);
}

.phaseList {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px 0 0 16px;
}

.phase {
  min-width: 0;
}

.members {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 0 0 0 16px;
}

.memberRow,
.memberButton {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: calc(24px + var(--dsh-content-font-delta, 0px));
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dsw-alias-label-secondary);
  font: inherit;
  text-align: left;
}

.memberButton {
  cursor: pointer;
}

.memberButton .memberLabel {
  color: var(--dsw-alias-state-business-primary);
  text-decoration: underline;
  text-underline-position: from-font;
}

.dotSlot {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: calc(24px + var(--dsh-content-font-delta, 0px));
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.memberButton:focus-visible {
  outline: none;
}

.memberButton:focus-visible .memberLabelWrap {
  outline: 2px solid var(--dsw-alias-state-business-primary);
  outline-offset: -1px;
}

.memberLabelWrap {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: calc(24px + var(--dsh-content-font-delta, 0px));
  align-items: center;
  padding: 0 2px;
  border-radius: 4px;
}

.memberLabel {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  color: var(--dsw-alias-label-secondary);
  /* Body size, not the secondary tier: the member label is the panel's
     content (an agent's task), while the run/phase headers, counts, and
     statuses around it are chrome one step down. */
  font-size: var(--dsh-content-font-size, 14px);
  line-height: calc(24px + var(--dsh-content-font-delta, 0px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memberStatus {
  flex: none;
  overflow: hidden;
  width: 64px;
  color: var(--dsw-alias-label-secondary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  color: var(--dsw-alias-label-tertiary);
  font-size: var(--dsh-content-font-size-secondary, 13px);
  line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
  padding: 0;
}

@media (max-width: 560px) {
  .phaseList,
  .members {
    padding-left: 12px;
  }
}
