

.workflow-library {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 var(--ds-space-5);
}
.workflow-library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-5);
  margin-bottom: var(--ds-space-5);
}
.workflow-library-header h2 {
  font-size: var(--ds-size-24);
  line-height: var(--ds-leading-title);
  font-weight: var(--ds-weight-semibold);
  letter-spacing: var(--ds-tracking-tight);
}
.workflow-library-header p {
  margin-top: var(--ds-space-1);
  color: var(--muted);
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
}
.workflow-library-header > .primary-button {
  flex: none;
  min-height: 40px;
  font-size: var(--type-support);
  padding: 8px 16px;
  gap: 8px;
}
.workflow-library-header > .primary-button .icon {
  width: 16px;
  height: 16px;
}
.workflow-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;   
  gap: var(--ds-space-4);
  margin-bottom: var(--ds-space-4);
}
.workflow-library-toolbar > .diagram-only {   
  min-width: 0;
  margin: 0;
}
.workflow-library-toolbar > .workflow-library-search {
  flex: none;
}
.workflow-library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  border-radius: 8px;
  padding: 8px 12px;
  width: 256px;
  min-height: 40px;
}
.workflow-library-search > .icon {
  width: 16px;
  height: 16px;
  color: var(--ds-text-muted);
  flex: none;
}
.workflow-library-search input {
  font-family: var(--ds-font); font-size: var(--type-support); font-weight: var(--ds-weight-regular); line-height: var(--ds-leading-body);
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
}
.workflow-library-search input::placeholder {
  color: var(--ds-text-muted);
}
.workflow-library-search:focus-within {   
  outline: none;
  border-color: var(--ds-border-strong);
}

.workflow-library-list {
  --ds-table-cols: minmax(0, 1fr) 144px 112px 148px 56px;
  overflow: hidden;
}
.workflow-library-list .workflow-library-row > * {
  height: auto;
  min-height: var(--ds-table-row);
  padding-block: var(--ds-space-3);
}
.workflow-library-row:active {
  background: var(--ds-selected);
}
.workflow-library-row > .workflow-library-name {
  gap: var(--ds-space-3);
}
.workflow-library-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--ds-control-md);
  height: var(--ds-control-md);
  border-radius: var(--ds-radius-md);
  background: var(--ds-control-fill);
  box-shadow: var(--ds-shadow-card);
  color: var(--ds-text-muted);
}
.workflow-library-icon.development {
  color: var(--ds-violet);
}
.workflow-library-icon .icon {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
}
.workflow-library-name > span:last-child {
  min-width: 0;
}
.workflow-library-row .workflow-library-name strong {
  display: block;
  font-size: var(--ds-size-14);
  line-height: var(--ds-leading-body);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-strong);
}
.workflow-library-row .workflow-library-name small {
  display: block;
  margin-top: 2px;
  font-size: var(--ds-size-13);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  text-wrap: pretty;
}
.workflow-library-row .workflow-library-kind {
  color: var(--ds-text);
}
.workflow-library-row .workflow-library-number {
  color: var(--ds-text);
  font-variant-numeric: tabular-nums;
}
.workflow-library-number small {   
  display: none;
}
.workflow-library-row > .workflow-library-open {
  justify-content: center;
}
.workflow-library-open > .icon {
  width: var(--ds-icon-sm);
  height: var(--ds-icon-sm);
  color: var(--ds-text-faint);
}
.workflow-row-mobile-meta {
  display: none;
}
.workflow-library-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-border);
  font-size: var(--type-support);
  line-height: 24px;
  color: var(--ds-text-muted);
}
.workflow-library-bottom > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workflow-library-bottom .icon {
  width: 16px;
  height: 16px;
}
.workflow-library-bottom .text-button {
  font-size: var(--type-support);
  min-height: 36px;
}
.workflow-search-empty {
  padding: 40px 24px;
  text-align: center;
}
.workflow-search-empty h3 {
  font-size: var(--ds-size-18);
  line-height: var(--ds-leading-heading);
  font-weight: var(--ds-weight-medium);
}
.workflow-search-empty p {
  font-size: var(--type-support);
  line-height: 24px;
  margin: 8px 0 16px;
  color: var(--muted);
}
.workflow-search-empty .text-button {
  margin: auto;
}
.workflow-library-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 520px;
  margin: 64px auto;
  text-align: center;
}
.workflow-empty-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ds-selected);
  color: var(--ds-text);
  margin-bottom: 24px;
}
.workflow-empty-mark .icon {
  width: 24px;
  height: 24px;
}
.workflow-library-empty h3 {
  font-size: var(--ds-size-20);
  line-height: var(--ds-leading-heading);
  font-weight: var(--ds-weight-medium);
  letter-spacing: var(--ds-tracking-tight);
  text-wrap: balance;
}
.workflow-library-empty p {
  font-size: var(--type-support);
  line-height: 24px;
  margin: 12px 0 24px;
  color: var(--ds-text-muted);
  text-wrap: pretty;
}
.workflow-library-empty > span:last-child {
  font-size: var(--type-support);
  line-height: var(--ds-leading-body);
  color: var(--ds-text-muted);
  margin-top: 16px;
}
.wf-library-back {   
  width: var(--ds-control-lg);
  height: var(--ds-control-lg);
  flex: none;
  color: var(--ds-text-muted);
  border: 0;
  border-radius: var(--ds-radius-control);
  background: var(--ds-control-fill);
  box-shadow: var(--ds-shadow-card);
}
.wf-library-back > .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}
.wf-flow-identity {
  min-width: 0;
}
.wf-flow-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wf-flow-select {   
  font-family: var(--ds-font); font-size: var(--ds-size-24); font-weight: var(--ds-weight-semibold); line-height: var(--ds-leading-title);
  color: var(--ds-text-strong);
  border: 0;
  max-width: 320px;
  min-width: 0;
  background: transparent;
  padding: 0 24px 0 0;
  cursor: pointer;
  text-overflow: ellipsis;
  letter-spacing: var(--ds-tracking-tight);
}
.wf-flow-select option {
  background: var(--ds-card-bg);
  color: var(--ds-text-strong);
  font-size: var(--type-support);
}
.wf-flow-select:hover {
  color: var(--ds-accent);
}
.wf-flow-select:focus-visible {   
  outline: none;
  color: var(--ds-accent);
}
.wf-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}
.wf-header-actions > .text-button {
  font-size: var(--type-support);
  min-height: 36px;
  gap: 8px;
  white-space: nowrap;
}
.wf-header-actions > .text-button .icon {
  width: 14px;
  height: 14px;
}
.wf-simple-overview {
  max-width: 760px;
}
.wf-simple-overview .wf-overview-stage {
  margin-top: 24px;
}
.wf-simple-overview .wf-overview-node {
  min-height: 88px;
  padding: 16px;
  gap: 12px;
}
.wf-simple-overview .wf-overview-node strong {
  font-size: var(--type-body);
  line-height: var(--ds-leading-body);
}
.wf-simple-overview .wf-overview-node small {
  font-size: var(--type-support);
  line-height: 24px;
}
