.agent-pinned-status-root {
  z-index: 20;
  flex-shrink: 0;
  border-bottom: 1px solid var(--ms-color-border);
  background: var(--ms-color-background);
  padding: 0;
}

.agent-pinned-status-surface {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agent-pinned-status-header {
  display: flex;
  min-height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: var(--ms-space-2);
  padding: 6px 10px;
  outline: none;
  transition: background-color var(--ms-duration-fast) var(--ms-easing-standard);
}

.agent-pinned-status-header:hover {
  background: color-mix(in srgb, var(--ms-color-muted) 30%, transparent);
}

.agent-pinned-status-header:focus-visible {
  box-shadow: 0 0 0 2px var(--ms-color-primary), 0 0 0 3px var(--ms-color-background);
}

.agent-pinned-status-header--expanded {
  border-bottom: 1px solid color-mix(in srgb, var(--ms-color-border) 60%, transparent);
}

.agent-pinned-status-header__copy,
.agent-pinned-status-worker-row__copy,
.agent-pinned-status-generation-line__copy,
.agent-pinned-status-plan-header__copy {
  min-width: 0;
}

.agent-pinned-status-title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  color: var(--ms-color-foreground);
  font-size: var(--ms-text-tiny);
  font-weight: 500;
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-active-count {
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  font-weight: 400;
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-summary-row,
.agent-pinned-status-plan-meta-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 2px var(--ms-space-2);
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-truncated-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-pinned-status-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.agent-pinned-status-tabs {
  flex-wrap: nowrap;
  padding: 2px;
}

.agent-pinned-status-tab {
  height: 24px;
  padding: var(--ms-space-1) var(--ms-space-2);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-tab__count {
  margin-left: var(--ms-space-1);
  color: var(--ms-color-muted-foreground);
}

.agent-pinned-status-collapse-icon {
  color: var(--ms-color-muted-foreground);
}

.agent-pinned-status-body {
  height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--ms-space-2) 10px;
}

.agent-pinned-status-list,
.agent-pinned-status-plan-block {
  display: grid;
  gap: 6px;
}

.agent-pinned-status-empty {
  height: 100%;
}

.agent-pinned-status-worker-row,
.agent-pinned-status-status-line,
.agent-pinned-status-generation-line__header,
.agent-pinned-status-plan-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--ms-space-2);
}

.agent-pinned-status-worker-row {
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-status-line {
  border: 1px solid color-mix(in srgb, var(--ms-color-border) 58%, transparent);
  border-radius: var(--ms-radius-sm);
  background: color-mix(in srgb, var(--ms-color-surface) 62%, transparent);
  padding: 6px 8px;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-status-line[data-tone="warning"] {
  border-color: color-mix(in srgb, var(--ms-color-warning, #f59e0b) 42%, var(--ms-color-border));
}

.agent-pinned-status-status-line[data-tone="danger"] {
  border-color: color-mix(in srgb, var(--ms-color-destructive) 48%, var(--ms-color-border));
}

.agent-pinned-status-worker-row__title,
.agent-pinned-status-status-line__title,
.agent-pinned-status-generation-line__title,
.agent-pinned-status-plan-header__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-color-foreground);
  font-weight: 500;
}

.agent-pinned-status-worker-row__detail,
.agent-pinned-status-status-line__detail,
.agent-pinned-status-generation-line__detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-color-muted-foreground);
}

.agent-pinned-status-worker-row__status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--ms-space-1);
  color: var(--ms-color-muted-foreground);
}

.agent-pinned-status-badge {
  flex-shrink: 0;
  padding: 0 var(--ms-space-1);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-generation-line {
  display: grid;
  gap: var(--ms-space-1);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-plan-header__title {
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-plan-steps {
  display: grid;
  gap: var(--ms-space-1);
}

.agent-pinned-status-plan-step {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-plan-step__text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ms-color-foreground);
}

.agent-pinned-status-plan-step__text--completed {
  color: var(--ms-color-muted-foreground);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--ms-color-muted-foreground) 50%, transparent);
}

.agent-pinned-status-divider-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--ms-space-2);
  border-top: 1px solid color-mix(in srgb, var(--ms-color-border) 60%, transparent);
  padding-top: 6px;
  color: var(--ms-color-muted-foreground);
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}

.agent-pinned-status-inline-action {
  height: 20px;
  flex-shrink: 0;
  padding-inline: 6px;
  font-size: var(--ms-text-tiny);
  line-height: var(--ms-leading-tiny);
}
