body:has(.agent-flow-prototype) {
  margin: 0;
  background: #faf6ee;
  color: #1f2329;
  font-family: Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Roboto,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol!important;
  font-size: 13px;
  font-feature-settings: "tnum";
  line-height: 19.5px;
  text-rendering: optimizeLegibility;
}

body:has(.agent-flow-workbench-prototype) {
  background: #f5f6f7;
}

body:has(.flow-diagram-page) {
  overflow: hidden;
}

body:has(.mira-mock-prototype) {
  margin: 0;
  overflow: hidden;
  background: #fbfaf7;
  color: #242424;
  font-family: PingFang SC, Segoe UI, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mira-mock-prototype {
  display: grid;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #fbfaf7;
  color: #242424;
  font-family: PingFang SC, Segoe UI, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.mira-mock-prototype * {
  box-sizing: border-box;
}

.mira-shell-sidebar {
  position: relative;
  overflow: hidden;
  padding: 52px 20px 74px;
  border-right: 1px solid rgba(42, 39, 35, 0.05);
  background: #f4f4f1;
}

.mira-window-controls {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 12px;
}

.mira-window-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mira-window-dot-red {
  background: #ff5f57;
}

.mira-window-dot-yellow {
  background: #febc2e;
}

.mira-window-dot-green {
  background: #28c840;
}

.mira-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #20201d;
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
}

.mira-brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #16181b 0%, #2f3437 100%);
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.08);
}

.mira-primary-nav,
.mira-thread-block {
  display: flex;
  flex-direction: column;
}

.mira-primary-nav {
  gap: 14px;
}

.mira-primary-nav a,
.mira-thread-block a {
  overflow: hidden;
  color: #3a3935;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mira-primary-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  font-size: 16px;
  line-height: 24px;
}

.mira-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #67655f;
  border-radius: 4px;
}

.mira-thread-block {
  gap: 10px;
  margin-top: 28px;
  font-size: 15px;
  line-height: 20px;
}

.mira-thread-label {
  color: #a4a19a;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.mira-thread-block a.active {
  margin-right: -8px;
  margin-left: -8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e7e6e2;
  color: #2f2e2a;
  font-weight: 500;
}

.mira-user {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3e3d38;
  font-size: 15px;
}

.mira-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #70d96a, #2577e5 58%, #25213f);
}

.mira-chat-shell {
  position: relative;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 128px;
  background: #fbfaf7;
}

.mira-chat-header {
  display: flex;
  height: 52px;
  align-items: center;
  padding: 0 30px;
}

.mira-chat-header h1 {
  margin: 0;
  color: #292824;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.mira-chat-actions {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.mira-chat-actions span {
  width: 14px;
  height: 14px;
  border: 1.4px solid #6a6861;
  border-radius: 3px;
}

.mira-chat-content {
  width: min(860px, calc(100vw - 360px));
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 148px;
}

.mira-user-bubble {
  width: 450px;
  max-width: 100%;
  margin-left: auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f1f0ec;
  color: #292824;
  font-size: 16px;
  line-height: 26px;
}

.mira-user-bubble--follow-up {
  margin-top: 36px;
}

.mira-agent-message {
  margin-top: 36px;
}

.mira-agent-message--follow-up {
  margin-top: 16px;
}

.mira-agent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #6b6962;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.mira-agent-avatar {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #fb7848;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.mira-tool-status {
  margin-bottom: 14px;
  color: #77756e;
  font-size: 14px;
  line-height: 20px;
}

.mira-mcp-card {
  overflow: hidden;
  border: 1px solid rgba(117, 97, 70, 0.16);
  border-radius: 12px;
  background: #faf6ee;
  box-shadow: 0 1px 2px rgba(45, 39, 31, 0.04);
}

.mira-mcp-card-header {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(117, 97, 70, 0.12);
  background: #f5f1e9;
  color: #7b766b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mira-mcp-card-header strong {
  color: #57534a;
  font-weight: 600;
  letter-spacing: 0;
}

.mira-mcp-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #faf6ee;
}

.mira-mcp-frame--launcher {
  height: 218px;
}

.mira-chat-composer {
  position: fixed;
  bottom: 28px;
  left: calc(280px + (100vw - 280px) / 2);
  width: min(860px, calc(100vw - 360px));
  height: 96px;
  padding: 18px 58px 18px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(42, 39, 35, 0.14);
  border-radius: 18px;
  background: #fffefb;
  box-shadow: 0 4px 18px rgba(40, 36, 30, 0.08);
  color: #aca79c;
  font-size: 16px;
  line-height: 24px;
}

.mira-chat-composer button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #c8c4bb;
}

.agent-flow-prototype {
  --flow-ud-bg-body: var(--bg-body, #f5f6f7);
  --flow-ud-bg-base: var(--bg-base, #ffffff);
  --flow-ud-bg-float: var(--bg-float, #ffffff);
  --flow-ud-bg-hover: #f5f6f7;
  --flow-ud-bg-active: #eef3ff;
  --flow-ud-bg-header: #f7f8fa;
  --flow-ud-line: var(--line-divider-default, #dee0e3);
  --flow-ud-line-light: #eef0f3;
  --flow-ud-line-strong: #c9cdd4;
  --flow-ud-primary: var(--primary-pri-500, #3370ff);
  --flow-ud-primary-hover: var(--primary-pri-600, #245bdb);
  --flow-ud-primary-bg: var(--primary-pri-50, #f0f5ff);
  --flow-ud-text-title: var(--text-title, #1f2329);
  --flow-ud-text-body: #2b2f36;
  --flow-ud-text-secondary: #646a73;
  --flow-ud-text-placeholder: #8f959e;
  --flow-ud-text-disabled: #c2c6cc;
  --flow-ud-shadow-float: 0 8px 24px rgba(31, 35, 41, 0.12);
  --flow-ud-shadow-tooltip: 0 10px 28px rgba(31, 35, 41, 0.14);
  --flow-ud-radius-control: 6px;
  --flow-ud-radius-float: 8px;
  width: 100%;
  max-width: 860px;
  min-height: 0;
  margin: 0 auto;
  background: #faf6ee;
  color: #1f2329;
  font-family: Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Roboto,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol!important;
  font-size: 13px;
  font-feature-settings: "tnum";
  line-height: 19.5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.agent-flow-prototype * {
  box-sizing: border-box;
}

.agent-flow-prototype button,
.agent-flow-prototype input {
  font-family: inherit;
}

.flow-page {
  width: 100%;
  max-width: 860px;
  min-width: 0;
  padding: 22px 20px 16px;
}

.agent-flow-workbench-prototype {
  max-width: none;
  min-height: 100vh;
  background: #f5f6f7;
}

.flow-page--workbench {
  width: min(calc(100vw - 72px), 1440px);
  max-width: none;
  margin: 0 auto;
  padding: 32px 32px 40px;
}

.flow-workbench-header {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.flow-workbench-title {
  min-width: 0;
}

.flow-workbench-kicker {
  margin-bottom: 6px;
  color: #8f959e;
  font-size: 13px;
  line-height: 20px;
}

.flow-workbench-header .flow-panel-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.flow-workbench-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #646a73;
  font-size: 13px;
  line-height: 20px;
}

.flow-workbench-meta span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e5e6eb;
  border-radius: 999px;
  background: #ffffff;
}

.agent-flow-launcher-prototype {
  min-height: 0;
  overflow: hidden;
}

.flow-launcher {
  width: 100%;
  padding: 18px 20px 16px;
}

.flow-launcher-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.flow-launcher-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.flow-launcher-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2eadc;
  font-size: 15px;
  line-height: 28px;
}

.flow-launcher-title-group {
  min-width: 0;
}

.flow-launcher-title-group h1 {
  margin: 0;
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
}

.flow-launcher-title-group p {
  margin: 1px 0 0;
  color: #8f959e;
  font-size: 12px;
  line-height: 18px;
}

.flow-launcher-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.flow-launcher-button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(117, 97, 70, 0.18);
  border-radius: 6px;
  background: #fff9ef;
  color: #4f5967;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.flow-launcher-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.flow-launcher-button:hover {
  border-color: rgba(117, 97, 70, 0.28);
  background: #f7efe4;
  color: #3c4858;
}

.flow-launcher-button:focus {
  outline: none;
}

.flow-launcher-button:focus-visible {
  outline: 2px solid rgba(36, 91, 219, 0.18);
  outline-offset: 2px;
}

.flow-launcher-button--primary {
  border-color: rgba(91, 75, 53, 0.22);
  background: #efe6d6;
  color: #333943;
  font-weight: 500;
}

.flow-launcher-button--primary:hover {
  border-color: rgba(91, 75, 53, 0.28);
  background: #eadfcb;
}

.flow-launcher-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.flow-launcher-domain {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(117, 97, 70, 0.14);
  border-radius: 8px;
  background: #fff9ef;
  color: #1f2329;
}

.flow-launcher-domain--attendance {
  background: #f5faf7;
}

.flow-launcher-domain--core {
  background: #f7f7fb;
}

.flow-launcher-domain-name {
  flex: 0 0 auto;
  color: #1f2329;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.flow-launcher-domain-types {
  min-width: 0;
  overflow: hidden;
  color: #8f959e;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-table-shell {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flow-table-shell--workbench {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flow-operation-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  border-bottom: 1px solid #e5e6eb;
  background: transparent;
}

.flow-operation-tab {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #1f2329;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.flow-operation-tab:last-child {
  margin-right: 0;
}

.flow-operation-tab:hover {
  background: #f2f3f5;
}

.flow-operation-tab:focus {
  outline: none;
}

.flow-operation-tab:focus-visible {
  outline: 2px solid rgba(36, 91, 219, 0.18);
  outline-offset: -2px;
}

.flow-operation-tab.active {
  border-color: #e5e6eb;
  background: #ffffff;
}

.flow-operation-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #ffffff;
  content: "";
}

.flow-operation-tab-label {
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.flow-operation-tab-total {
  color: #646a73;
  font-size: 13px;
  line-height: 22px;
}

.flow-operation-tab-meta {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #8f959e;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-workbench-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px;
  border-right: 1px solid #e5e6eb;
  border-bottom: 1px solid #e5e6eb;
  border-left: 1px solid #e5e6eb;
  background: #ffffff;
}

.flow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 32px;
  margin-bottom: 18px;
}

.flow-panel-title {
  margin: 0;
  color: #1f2329;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.flow-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.flow-tools--workbench {
  width: 100%;
  justify-content: flex-end;
}

.flow-instance-shell .flow-workbench-toolbar {
  justify-content: flex-end;
}

.flow-instance-shell .flow-tools--workbench {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-operation-filter {
  position: relative;
  display: inline-flex;
  width: 108px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
}

.flow-operation-filter--country {
  width: 154px;
}

.flow-operation-filter--country select {
  border-color: #d0d3d6;
  background: #ffffff;
}

.flow-operation-filter select {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  outline: 0;
  appearance: none;
  background: #ffffff;
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.flow-operation-filter select:focus {
  border-color: rgba(36, 91, 219, 0.45);
  box-shadow: 0 0 0 2px rgba(36, 91, 219, 0.08);
}

.flow-select-icon {
  position: absolute;
  right: 10px;
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: #646a73;
  pointer-events: none;
}

.flow-select-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-search {
  display: flex;
  align-items: center;
  width: 220px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #8f959e;
}

.flow-search--wide {
  width: 320px;
  background: #ffffff;
}

.flow-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #646a73;
  flex: 0 0 auto;
}

.flow-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-search input {
  width: 100%;
  margin-left: 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  -webkit-appearance: none;
  appearance: none;
}

.flow-search input::placeholder {
  color: #8f959e;
}

.flow-search input:focus::placeholder {
  color: transparent;
}

.flow-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.flow-table-shell--workbench .flow-table-scroll {
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

.flow-table-shell--workbench .flow-table-scroll:hover,
.flow-table-shell--workbench .flow-table-scroll:focus-within {
  scrollbar-color: rgba(31, 35, 41, 0.26) transparent;
}

.flow-table-shell--workbench .flow-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.flow-table-shell--workbench .flow-table-scroll::-webkit-scrollbar-track,
.flow-table-shell--workbench .flow-table-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.flow-table-shell--workbench .flow-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  background-clip: content-box;
}

.flow-table-shell--workbench .flow-table-scroll:hover::-webkit-scrollbar-thumb,
.flow-table-shell--workbench .flow-table-scroll:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(31, 35, 41, 0.26);
}

.flow-table-shell--workbench .flow-table-scroll:hover::-webkit-scrollbar-thumb:hover,
.flow-table-shell--workbench .flow-table-scroll:focus-within::-webkit-scrollbar-thumb:hover {
  background-color: rgba(31, 35, 41, 0.36);
}

.flow-domain-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-family-shell {
  border: 1px solid var(--flow-ud-line);
  background: var(--flow-ud-bg-base);
}

.flow-family-shell .flow-workbench-toolbar {
  border: 0;
  border-bottom: 1px solid var(--flow-ud-line);
}

.flow-family-shell .flow-domain-list {
  padding: 16px 0 0;
}

.flow-domain-section {
  min-width: 0;
}

.flow-domain-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  margin-bottom: 8px;
}

.flow-domain-heading h2 {
  margin: 0;
}

.flow-domain-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.flow-domain-toggle:hover {
  color: #245bdb;
}

.flow-domain-name {
  color: #1f2329;
}

.flow-domain-code {
  color: #8f959e;
  font-weight: 400;
}

.flow-domain-toggle:focus {
  outline: none;
}

.flow-domain-toggle:focus-visible {
  outline: 2px solid rgba(51, 112, 255, 0.28);
  outline-offset: 2px;
}

.flow-toggle-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: #646a73;
  transition: transform 0.16s ease;
}

.flow-toggle-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-domain-toggle[aria-expanded="false"] .flow-toggle-icon {
  transform: rotate(-90deg);
}

.flow-domain-body[hidden] {
  display: none;
}

.flow-domain-body {
  overflow-x: auto;
}

.flow-domain-body--animating {
  overflow: hidden;
  transition:
    height 220ms cubic-bezier(0.2, 0, 0, 1),
    opacity 160ms ease;
  will-change: height, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .flow-domain-body--animating {
    transition: none;
  }
}

.flow-operation-panels {
  min-width: 0;
}

.flow-operation-panel:has(.flow-th-info-anchor:hover),
.flow-operation-panel:has(.flow-th-info-anchor:focus),
.flow-operation-panel:has(.flow-th-info-anchor:focus-visible) {
  position: relative;
  z-index: 4;
}

.flow-table-shell--workbench .flow-table-scroll {
  border-right: 1px solid #e5e6eb;
  border-left: 1px solid #e5e6eb;
  background: #ffffff;
}

.flow-operation-panel[hidden] {
  display: none;
}

.flow-pagination {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-right: 1px solid #e5e6eb;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #e5e6eb;
  border-left: 1px solid #e5e6eb;
  background: #ffffff;
  color: #1f2329;
}

.flow-pagination[hidden] {
  display: none;
}

.flow-pagination-total {
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.flow-pagination-total strong {
  font-weight: 400;
}

.flow-pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flow-pagination-button,
.flow-pagination-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2329;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.flow-pagination-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flow-pagination-button:hover:not(:disabled),
.flow-pagination-number:hover:not(:disabled) {
  border-color: #3370ff;
  color: #3370ff;
}

.flow-pagination-button:focus,
.flow-pagination-number:focus,
.flow-pagination-size select:focus,
.flow-pagination-jump input:focus {
  outline: none;
}

.flow-pagination-button:focus-visible,
.flow-pagination-number:focus-visible,
.flow-pagination-size select:focus-visible,
.flow-pagination-jump input:focus-visible {
  outline: 2px solid rgba(36, 91, 219, 0.2);
  outline-offset: 2px;
}

.flow-pagination-button:disabled,
.flow-pagination-number:disabled {
  color: #c2c6cc;
  cursor: default;
}

.flow-pagination-number[aria-current="page"] {
  border-color: #3370ff;
  background: #f7faff;
  color: #3370ff;
  cursor: default;
}

.flow-pagination-ellipsis {
  display: inline-flex;
  min-width: 24px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #8f959e;
  font-size: 14px;
  line-height: 22px;
}

.flow-pagination-size {
  position: relative;
  display: inline-flex;
  width: 112px;
  height: 32px;
  align-items: center;
}

.flow-pagination-size select {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  appearance: none;
  background: #ffffff;
  color: #1f2329;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.flow-pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.flow-pagination-jump input {
  width: 64px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2329;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.flow-family-table,
.flow-definition-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.flow-family-table {
  min-width: 0;
  border-top: 1px solid rgba(117, 97, 70, 0.16);
}

.flow-definition-table {
  min-width: 0;
  border-top: 1px solid rgba(117, 97, 70, 0.16);
}

.flow-family-table th,
.flow-family-table td,
.flow-definition-table th,
.flow-definition-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(117, 97, 70, 0.16);
  font-feature-settings: "tnum";
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

.flow-family-table th,
.flow-definition-table th {
  height: 47px;
  color: #646a73;
  font-size: 14px;
  font-weight: 500;
  background: #fff9ef;
}

.flow-definition-table th {
  height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.flow-family-table td,
.flow-definition-table td {
  height: 51px;
  overflow: hidden;
  color: #1f2329;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-definition-table td {
  height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.flow-family-table td {
  height: 52px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.flow-family-table tbody tr[data-agent-href]:hover td,
.flow-family-table tbody tr.flow-family-row--link:hover td,
.flow-definition-table tbody tr:hover td {
  background: #f7efe4;
}

.flow-family-table tr[data-agent-href],
.flow-family-table tr.flow-family-row--link {
  cursor: pointer;
}

.flow-family-table tr[data-agent-href]:focus,
.flow-family-table tr.flow-family-row--link:focus {
  outline: none;
}

.flow-family-table tr[data-agent-href]:focus-visible td,
.flow-family-table tr.flow-family-row--link:focus-visible td {
  background: #f7efe4;
}

.flow-family-table th:nth-child(1),
.flow-family-table td:nth-child(1) {
  width: 22%;
}

.flow-family-table th:nth-child(2),
.flow-family-table td:nth-child(2) {
  width: 26%;
}

.flow-family-table th:nth-child(3),
.flow-family-table td:nth-child(3),
.flow-family-table th:nth-child(4),
.flow-family-table td:nth-child(4) {
  width: 26%;
}

.flow-definition-table th:nth-child(1),
.flow-definition-table td:nth-child(1) {
  width: 30%;
}

.flow-definition-table th:nth-child(2),
.flow-definition-table td:nth-child(2) {
  width: 15%;
}

.flow-definition-table th:nth-child(3),
.flow-definition-table td:nth-child(3) {
  width: 14%;
}

.flow-definition-table th:nth-child(4),
.flow-definition-table td:nth-child(4) {
  width: 18%;
}

.flow-definition-table th:nth-child(5),
.flow-definition-table td:nth-child(5) {
  width: 96px;
}

.flow-definition-table--workbench th:nth-child(1),
.flow-definition-table--workbench td:nth-child(1) {
  width: 176px;
}

.flow-definition-table--workbench th:nth-child(2),
.flow-definition-table--workbench td:nth-child(2) {
  width: 288px;
}

.flow-definition-table--workbench th:nth-child(3),
.flow-definition-table--workbench td:nth-child(3) {
  width: 152px;
}

.flow-definition-table--workbench th:nth-child(4),
.flow-definition-table--workbench td:nth-child(4) {
  width: 232px;
}

.flow-definition-table--workbench th:nth-child(5),
.flow-definition-table--workbench td:nth-child(5) {
  width: 152px;
}

.flow-definition-table--workbench th:nth-child(6),
.flow-definition-table--workbench td:nth-child(6) {
  width: 128px;
}

.flow-definition-table--workbench th:nth-child(7),
.flow-definition-table--workbench td:nth-child(7) {
  width: 176px;
}

.flow-definition-table--workbench {
  border-top: 0;
  min-width: 1304px;
}

.flow-definition-table--workbench th {
  height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom-color: #eef0f3;
  background: #f7f8fa;
  color: #646a73;
  font-size: 13px;
  font-weight: 600;
}

.flow-definition-table--workbench td {
  border-bottom-color: #eef0f3;
}

.flow-definition-table--workbench td {
  height: 50px;
}

.flow-definition-table--workbench tbody tr:hover td {
  background: #f7f9fb;
}

.flow-instance-cascader-filter {
  width: 242px;
}

.flow-instance-version-filter {
  width: 218px;
}

.flow-ud-select {
  position: relative;
  display: inline-flex;
  height: 32px;
  flex: 0 0 auto;
  align-items: stretch;
}

.flow-ud-select-trigger {
  display: inline-flex;
  width: 100%;
  height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--flow-ud-line-strong);
  border-radius: var(--flow-ud-radius-control);
  outline: 0;
  background: var(--flow-ud-bg-base);
  color: var(--flow-ud-text-title);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.flow-ud-select-trigger:hover {
  border-color: #a8b0bd;
}

.flow-ud-select.is-open .flow-ud-select-trigger,
.flow-ud-select-trigger:focus-visible {
  border-color: var(--flow-ud-primary);
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.14);
}

.flow-ud-select-trigger .flow-select-icon {
  position: absolute;
  right: 10px;
  flex: 0 0 auto;
}

.flow-ud-select-content {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.flow-ud-select-title,
.flow-ud-select-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-ud-select-title {
  flex: 0 0 auto;
  color: var(--flow-ud-text-title);
}

.flow-ud-select-meta {
  min-width: 0;
  color: var(--flow-ud-text-secondary);
  font-size: 13px;
}

.flow-ud-select-popup {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  right: 0;
  width: 292px;
  padding: 4px;
  border: 1px solid var(--flow-ud-line);
  border-radius: var(--flow-ud-radius-float);
  background: var(--flow-ud-bg-float);
  box-shadow: var(--flow-ud-shadow-float);
}

.flow-ud-select-popup[hidden] {
  display: none;
}

.flow-cascader-popup {
  width: 426px;
  padding: 0;
  overflow: hidden;
}

.flow-cascader {
  display: grid;
  max-height: 288px;
  grid-template-columns: 154px minmax(0, 1fr);
}

.flow-cascader-column {
  min-width: 0;
  max-height: 288px;
  overflow-y: auto;
  padding: 6px;
}

.flow-cascader-column + .flow-cascader-column {
  border-left: 1px solid var(--flow-ud-line-light);
}

.flow-cascader-option {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--flow-ud-text-title);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.flow-cascader-option[hidden] {
  display: none !important;
}

.flow-cascader-option span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-cascader-option:hover,
.flow-cascader-option:focus-visible,
.flow-cascader-option.is-active,
.flow-cascader-option.is-selected {
  outline: 0;
  background: var(--flow-ud-primary-bg);
}

.flow-cascader-option.is-selected {
  color: var(--flow-ud-primary);
  font-weight: 500;
}

.flow-cascader-arrow {
  flex: 0 0 auto;
  color: var(--flow-ud-text-secondary);
  font-size: 18px;
  line-height: 18px;
}

.flow-ud-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 40px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px 7px 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--flow-ud-text-title);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-ud-select-option::before {
  position: absolute;
  top: 14px;
  left: 10px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  content: "";
  transform: rotate(-45deg);
}

.flow-ud-select-option:hover,
.flow-ud-select-option:focus-visible {
  outline: 0;
  background: var(--flow-ud-bg-hover);
}

.flow-ud-select-option.is-selected {
  background: var(--flow-ud-primary-bg);
}

.flow-ud-select-option.is-selected::before {
  border-color: var(--flow-ud-primary);
}

.flow-ud-select-option:disabled {
  color: var(--flow-ud-text-disabled);
  cursor: not-allowed;
}

.flow-ud-select-option-main {
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-ud-select-option-desc {
  color: var(--flow-ud-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.flow-ud-select-option--compact {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.flow-ud-select-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--flow-ud-line-light);
}

.flow-ud-select-group[hidden] {
  display: none;
}

.flow-ud-select-group-title {
  padding: 4px 10px 0;
  color: var(--flow-ud-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.flow-ud-select-group-hint {
  padding: 0 10px 4px;
  color: var(--flow-ud-text-placeholder);
  font-size: 12px;
  line-height: 18px;
}

.flow-instance-status-filter {
  width: 128px;
}

.flow-instance-status-chip {
  display: inline-flex;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #f1c7c4;
  border-radius: 999px;
  outline: 0;
  background: #fff7f6;
  color: #8f3333;
  font: inherit;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.flow-instance-status-chip:hover,
.flow-instance-status-chip:focus-visible,
.flow-instance-status-chip.is-active {
  border-color: #f54a45;
  background: #fff1f0;
}

.flow-instance-status-chip:focus-visible {
  box-shadow: 0 0 0 2px rgba(245, 74, 69, 0.12);
}

.flow-instance-status-chip.is-active {
  box-shadow: 0 0 0 2px rgba(245, 74, 69, 0.08);
}

.flow-instance-status-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f54a45;
}

.flow-instance-status-chip-label {
  color: inherit;
  font-weight: 500;
}

.flow-instance-status-chip-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(245, 74, 69, 0.10);
  color: #d83931;
  font-weight: 600;
  text-align: center;
}

.flow-instance-country {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  color: var(--flow-ud-text-title);
  white-space: nowrap;
}

.flow-instance-country-flag {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 18px;
}

.flow-instance-country-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-instance-table {
  min-width: 1784px;
}

.flow-instance-table th:nth-child(1),
.flow-instance-table td:nth-child(1) {
  width: 300px;
  padding-left: 24px;
}

.flow-instance-table th:nth-child(2),
.flow-instance-table td:nth-child(2) {
  width: 112px;
}

.flow-instance-table th:nth-child(3),
.flow-instance-table td:nth-child(3) {
  width: 108px;
}

.flow-instance-table th:nth-child(4),
.flow-instance-table td:nth-child(4) {
  width: 138px;
}

.flow-instance-table th:nth-child(5),
.flow-instance-table td:nth-child(5) {
  width: 126px;
}

.flow-instance-table th:nth-child(6),
.flow-instance-table td:nth-child(6) {
  width: 116px;
}

.flow-instance-table th:nth-child(7),
.flow-instance-table td:nth-child(7) {
  width: 116px;
}

.flow-instance-table th:nth-child(8),
.flow-instance-table td:nth-child(8) {
  width: 188px;
}

.flow-instance-table td:nth-child(8) {
  overflow: visible;
  white-space: normal;
}

.flow-instance-table th:nth-child(9),
.flow-instance-table td:nth-child(9) {
  width: 112px;
}

.flow-instance-table th:nth-child(10),
.flow-instance-table td:nth-child(10) {
  width: 148px;
}

.flow-instance-table th:nth-child(11),
.flow-instance-table td:nth-child(11) {
  width: 128px;
}

.flow-definition-table--workbench th:has(.flow-th-info-anchor:hover),
.flow-definition-table--workbench th:has(.flow-th-info-anchor:focus),
.flow-definition-table--workbench th:has(.flow-th-info-anchor:focus-visible) {
  position: relative;
  z-index: 12;
  overflow: visible;
}

.flow-th-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.flow-th-info-anchor {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f959e;
  cursor: default;
}

.flow-th-info-anchor svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.flow-th-info-anchor svg path {
  stroke-width: 1.9;
}

.flow-th-info-anchor:hover,
.flow-th-info-anchor:focus,
.flow-th-info-anchor:focus-visible {
  color: #646a73;
  outline: 0;
}

.flow-th-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: -10px;
  width: 260px;
  padding: 8px 10px;
  border: 1px solid #dee0e3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 35, 41, 0.12);
  color: #1f2329;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  white-space: normal;
}

.flow-th-tooltip::after {
  position: absolute;
  right: 11px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #dee0e3;
  border-left: 1px solid #dee0e3;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.flow-th-info-anchor:hover .flow-th-tooltip,
.flow-th-info-anchor:focus .flow-th-tooltip,
.flow-th-info-anchor:focus-visible .flow-th-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.flow-instance-id-cell {
  overflow: visible;
}

.flow-instance-id-wrap {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
}

.flow-instance-id {
  display: inline-block;
  max-width: 286px;
  overflow: hidden;
  color: #1f2329;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-instance-id-copy {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #646a73;
  cursor: pointer;
  opacity: 0;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    opacity 120ms ease;
}

.flow-instance-id-copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.flow-instance-id-cell:hover .flow-instance-id-copy,
.flow-instance-id-cell:focus-within .flow-instance-id-copy {
  opacity: 1;
}

.flow-instance-id-copy:hover,
.flow-instance-id-copy:focus-visible {
  background: #edf4ff;
  color: #3370ff;
  outline: 0;
}

.flow-instance-id-copy.is-copied {
  background: #e9f8ef;
  color: #1a7f37;
  opacity: 1;
}

.flow-instance-person {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.flow-instance-person-avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #8bc8c0 0, #3f8f88 58%, #2d6f6a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.flow-instance-person-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.flow-instance-person-name {
  overflow: hidden;
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-instance-nodes {
  display: flex;
  max-width: 276px;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.flow-instance-node {
  display: inline-flex;
  max-width: 108px;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #f7f8fa;
  color: #1f2329;
  font-size: 13px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-instance-node-more {
  display: inline-flex;
  min-width: 32px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d9e6ff;
  border-radius: 999px;
  border-color: #d9e6ff;
  background: #f2f6ff;
  color: #245bdb;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.flow-instance-status {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.flow-instance-status--in_progress {
  background: #e8f3ff;
  color: #245bdb;
}

.flow-instance-status--successfully_completed {
  background: #e9f8ef;
  color: #1a7f37;
}

.flow-instance-status--withdrawn {
  background: #f2f3f5;
  color: #646a73;
}

.flow-instance-status--denied {
  background: #fff7e6;
  color: #8f5a00;
}

.flow-instance-status--failed {
  background: #fff0f0;
  color: #b42318;
}

.flow-definition-table--workbench th:last-child,
.flow-definition-table--workbench td:last-child {
  position: sticky;
  right: 0;
  width: 176px;
  min-width: 176px;
  max-width: 176px;
}

.flow-table-scroll--overflow-x .flow-definition-table--workbench th:last-child,
.flow-table-scroll--overflow-x .flow-definition-table--workbench td:last-child {
  transition: box-shadow 160ms ease;
}

.flow-table-scroll--can-scroll-right .flow-definition-table--workbench th:last-child,
.flow-table-scroll--can-scroll-right .flow-definition-table--workbench td:last-child {
  box-shadow: -14px 0 18px -18px rgba(31, 35, 41, 0.56);
}

.flow-table-scroll--overflow-x .flow-definition-table--workbench th:last-child::before,
.flow-table-scroll--overflow-x .flow-definition-table--workbench td:last-child::before {
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 0;
  width: 1px;
  background: #c8cdd4;
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.72),
    -8px 0 14px -12px rgba(31, 35, 41, 0.62);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.flow-table-scroll--can-scroll-right .flow-definition-table--workbench th:last-child::before,
.flow-table-scroll--can-scroll-right .flow-definition-table--workbench td:last-child::before {
  opacity: 1;
}

.flow-definition-table--workbench th:last-child {
  z-index: 3;
  background: #f7f8fa;
}

.flow-definition-table--workbench td:last-child {
  z-index: 2;
  background: #ffffff;
  overflow: visible;
}

.flow-definition-table--workbench tbody tr:hover td:last-child {
  background: #f7f9fb;
}

.flow-definition-table--workbench td:has(.flow-action-more[open]) {
  z-index: 9;
}

.flow-definition-table--workbench td.flow-name {
  overflow: visible;
}

.flow-name-content {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  vertical-align: middle;
}

.flow-definition-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-description-cell {
  color: #1f2329;
}

.flow-description-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #1f2329;
  cursor: default;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-description-text:focus {
  outline: none;
}

.flow-description-text:focus-visible {
  outline: 2px solid rgba(51, 112, 255, 0.24);
  outline-offset: 2px;
}

.flow-version-chip {
  display: inline-flex;
  max-width: 100%;
  height: 24px;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #f7f8fa;
  color: #4e5969;
  font-feature-settings: "tnum";
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-country-flag {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 18px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 18px;
  cursor: default;
}

.flow-country-flag:focus-visible {
  outline: 2px solid rgba(51, 112, 255, 0.28);
  outline-offset: 2px;
}

.flow-country-tooltip {
  position: fixed;
  z-index: 30;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(31, 35, 41, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  pointer-events: none;
  white-space: nowrap;
}

.flow-run-cell {
  overflow: visible;
}

.flow-run-content {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.flow-run-sparkline {
  display: inline-flex;
  width: 104px;
  height: 26px;
  flex: 0 0 104px;
  align-items: flex-end;
  gap: 3px;
}

.flow-run-bar {
  display: inline-block;
  width: 4px;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: #8fb5b1;
  opacity: 0.72;
  cursor: default;
}

.flow-run-bar.empty {
  background: #dfe3e8;
  opacity: 1;
}

.flow-run-bar:hover,
.flow-run-bar:focus-visible {
  background: #227c78;
  opacity: 1;
}

.flow-run-bar:focus {
  outline: none;
}

.flow-run-bar:focus-visible {
  outline: 2px solid rgba(34, 124, 120, 0.22);
  outline-offset: 2px;
}

.flow-run-tooltip {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  width: 168px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(31, 35, 41, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  pointer-events: none;
  white-space: normal;
}

.flow-run-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-run-tooltip-row + .flow-run-tooltip-row {
  margin-top: 2px;
}

.flow-run-tooltip-label {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-run-tooltip-value {
  flex: 0 0 auto;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.flow-description-tooltip {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  max-width: min(420px, calc(100vw - 24px));
  padding: 8px 12px;
  border: 1px solid #dee0e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 35, 41, 0.14);
  color: #1f2329;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  pointer-events: none;
  white-space: normal;
}

.flow-description-tooltip::after {
  position: absolute;
  bottom: -6px;
  left: var(--flow-description-tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  border-right: 1px solid #dee0e3;
  border-bottom: 1px solid #dee0e3;
  background: #ffffff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.flow-description-tooltip--below::after {
  top: -6px;
  bottom: auto;
  border: 0;
  border-top: 1px solid #dee0e3;
  border-left: 1px solid #dee0e3;
}

.flow-node-more-tooltip {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px 10px;
  border: 1px solid #dee0e3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 35, 41, 0.14);
  color: #1f2329;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  pointer-events: none;
  white-space: normal;
}

.flow-admin-cell {
  overflow: visible;
}

.flow-admins {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.flow-admin-pill {
  display: inline-flex;
  max-width: 88px;
  height: 22px;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  padding: 2px 7px 2px 2px;
  border-radius: 999px;
  background: #edf0f2;
  color: #1f2329;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  vertical-align: middle;
}

.flow-admin-avatar {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.flow-admin-avatar--blue {
  background: radial-gradient(circle at 35% 35%, #7baaf7 0, #2f66c8 56%, #2450a6 100%);
}

.flow-admin-avatar--warm {
  background: radial-gradient(circle at 35% 35%, #f3b08d 0, #b76d56 58%, #8a4e42 100%);
}

.flow-admin-avatar--indigo {
  background: radial-gradient(circle at 35% 35%, #9aa7e8 0, #5c6bb4 58%, #49558f 100%);
}

.flow-admin-avatar--teal {
  background: radial-gradient(circle at 35% 35%, #8bc8c0 0, #3f8f88 58%, #2d6f6a 100%);
}

.flow-admin-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-title-stack {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.flow-title-identity {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.flow-title-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.flow-back-link {
  flex: 0 0 auto;
  color: #245bdb;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
}

.flow-back-link:hover,
.flow-back-link:focus-visible {
  color: #1c4cba;
  text-decoration: underline;
}

.flow-title-copy {
  min-width: 0;
}

.flow-diagram-page {
  display: flex;
  height: 100vh;
  width: 100vw;
  max-width: none;
  flex-direction: column;
  padding: 18px 24px 24px;
}

.flow-diagram-header {
  flex: 0 0 auto;
  align-items: flex-start;
  margin-bottom: 12px;
}

.flow-diagram-header .flow-title-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.flow-diagram-header .flow-panel-title {
  font-size: 18px;
  line-height: 26px;
}

.flow-diagram-title-row {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.flow-diagram-info {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.flow-diagram-info-trigger {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8f959e;
  cursor: default;
  outline: none;
}

.flow-diagram-info-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.flow-diagram-info-trigger svg path {
  stroke-width: 1.7;
}

.flow-diagram-info-trigger svg circle {
  fill: none;
}

.flow-diagram-info-trigger:hover,
.flow-diagram-info-trigger:focus-visible,
.flow-diagram-info:hover .flow-diagram-info-trigger {
  background: #eef3ff;
  color: #3370ff;
}

.flow-diagram-info-popover {
  position: absolute;
  z-index: 8;
  top: 24px;
  left: -12px;
  width: 236px;
  padding: 12px 14px;
  border: 1px solid #dee0e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.flow-diagram-info:hover .flow-diagram-info-popover,
.flow-diagram-info:focus-within .flow-diagram-info-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.flow-diagram-info-popover::before {
  position: absolute;
  top: -6px;
  left: 15px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #dee0e3;
  border-left: 1px solid #dee0e3;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.flow-diagram-info-popover-title {
  margin-bottom: 10px;
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.flow-diagram-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.flow-diagram-info-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.flow-diagram-info-label {
  color: #8f959e;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.flow-diagram-info-value {
  overflow: hidden;
  margin: 0;
  color: #1f2329;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-diagram-info-value .flow-admin-pill {
  max-width: 104px;
  height: 22px;
  padding: 2px 7px 2px 2px;
  font-size: 13px;
  line-height: 18px;
}

.flow-diagram-info-value .flow-admin-avatar {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  margin-right: 4px;
}

.flow-diagram-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.flow-diagram-actions a {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #3370ff;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
}

.flow-diagram-actions a:hover,
.flow-diagram-actions a:focus-visible {
  background: #eef3ff;
}

.flow-diagram-shell {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  border: 1px solid #e5e6eb;
  background: #ffffff;
  overflow: hidden;
}

.flow-diagram-shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef0f3;
}

.flow-diagram-shell-header h2 {
  margin: 0;
  color: #1f2329;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.flow-diagram-shell-header p {
  margin: 4px 0 0;
  color: #646a73;
  font-size: 13px;
  line-height: 20px;
}

.flow-diagram-badge {
  display: inline-flex;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #d8e6e5;
  border-radius: 6px;
  background: #f3faf9;
  color: #227c78;
  font-size: 12px;
  line-height: 20px;
}

.flow-diagram-canvas-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 6px;
  border: 1px solid rgba(208, 211, 214, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.08);
  backdrop-filter: blur(8px);
}

.flow-diagram-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(208, 211, 214, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.08);
  color: #646a73;
  font-size: 12px;
  line-height: 18px;
  backdrop-filter: blur(8px);
}

.flow-diagram-legend-title {
  color: #1f2329;
  font-weight: 500;
}

.flow-diagram-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.flow-diagram-legend-swatch {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 14px;
  flex: 0 0 auto;
}

.flow-diagram-legend-swatch::before,
.flow-diagram-legend-swatch::after {
  position: absolute;
  content: "";
}

.flow-diagram-legend-swatch--service::before {
  inset: 1px 0;
  border: 1px solid #8f959e;
  border-radius: 3px;
  background: #f5f6f8;
  box-shadow:
    inset 3px 0 0 #e1e5eb,
    inset -3px 0 0 #e1e5eb;
}

.flow-diagram-legend-swatch--decision::before {
  inset: 0 2px;
  background: #6b7df2;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.flow-diagram-legend-swatch--decision::after {
  inset: 1px 3px;
  background: #eef2ff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.flow-diagram-legend-swatch--approval::before {
  inset: 1px 0;
  background: #e67700;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.flow-diagram-legend-swatch--approval::after {
  inset: 2px 1px;
  background: #fff3bf;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.flow-diagram-legend-swatch--cc::before {
  inset: 1px 0;
  border: 1px solid #d9487f;
  border-radius: 3px;
  background: #fff0f6;
  box-shadow:
    inset 3px 0 0 #ffd1e1,
    inset -3px 0 0 #ffd1e1;
}

.flow-diagram-legend-swatch--notification::before {
  inset: 1px 0;
  border: 1px solid #0ca678;
  border-radius: 3px;
  background: #e6fcf5;
  box-shadow:
    inset 3px 0 0 #c3fae8,
    inset -3px 0 0 #c3fae8;
}

.flow-diagram-canvas-button {
  display: inline-flex;
  height: 24px;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2329;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.flow-diagram-canvas-button:hover,
.flow-diagram-canvas-button:focus-visible {
  border-color: rgba(51, 112, 255, 0.45);
  background: #f5f8ff;
}

.flow-diagram-canvas-button:focus {
  outline: none;
}

.flow-diagram-canvas-reset {
  min-width: 48px;
}

.flow-diagram-zoom-value {
  display: inline-flex;
  width: 44px;
  justify-content: center;
  color: #646a73;
  font-size: 13px;
  line-height: 20px;
}

.flow-diagram-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background:
    linear-gradient(#f2f4f6 1px, transparent 1px),
    linear-gradient(90deg, #f2f4f6 1px, transparent 1px),
    #ffffff;
  background-size: 24px 24px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.flow-diagram-viewport.is-dragging {
  cursor: grabbing;
}

.flow-diagram-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.flow-diagram-lane {
  position: absolute;
  right: 20px;
  left: 20px;
  border: 1px solid rgba(225, 229, 235, 0.72);
  border-radius: 8px;
  background: rgba(247, 248, 250, 0.68);
}

.flow-diagram-lane span {
  position: absolute;
  top: 10px;
  left: 14px;
  color: #8f959e;
  font-size: 12px;
  line-height: 18px;
}

.flow-diagram-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #9aa4b2;
  overflow: visible;
}

.flow-diagram-edges path {
  fill: none;
  stroke: #8f9aaa;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.flow-diagram-edges marker path {
  fill: #8f9aaa;
  stroke: none;
}

.flow-diagram-edges text {
  fill: #646a73;
  font-size: 12px;
  line-height: 18px;
}

.flow-diagram-node {
  position: absolute;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
  overflow: visible;
}

.flow-diagram-node:focus {
  outline: none;
}

.flow-diagram-node:focus-visible {
  filter: drop-shadow(0 0 0 rgba(51, 112, 255, 0.01));
}

.flow-diagram-node:focus-visible::before {
  outline: 2px solid rgba(51, 112, 255, 0.42);
  outline-offset: 3px;
}

.flow-diagram-node::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid #c9d0d9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 35, 41, 0.05);
  content: "";
}

.flow-diagram-node::after {
  position: absolute;
  z-index: 0;
  content: none;
}

.flow-diagram-node--start,
.flow-diagram-node--end {
  align-items: center;
  color: #274690;
  text-align: center;
}

.flow-diagram-node--start::before,
.flow-diagram-node--end::before {
  border-color: #8aa4ff;
  border-radius: 999px;
  background: #eef3ff;
  box-shadow: 0 3px 10px rgba(76, 110, 245, 0.1);
}

.flow-diagram-node--service {
  color: #212529;
}

.flow-diagram-node--service::before {
  border-color: #8f959e;
  background: #f5f6f8;
  box-shadow:
    inset 5px 0 0 #e1e5eb,
    inset -5px 0 0 #e1e5eb,
    0 4px 14px rgba(31, 35, 41, 0.05);
}

.flow-diagram-node--decision {
  align-items: center;
  padding: 18px 22px;
  color: #28327f;
  text-align: center;
}

.flow-diagram-node--decision::before {
  inset: 0;
  border: 0;
  background: #eef2ff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 4px 14px rgba(72, 91, 199, 0.1));
}

.flow-diagram-node--decision::after {
  inset: 1.5px;
  background: #eef2ff;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
}

.flow-diagram-node--decision::before {
  background: #6b7df2;
}

.flow-diagram-node--approval {
  align-items: center;
  padding: 10px 20px;
  color: #6b3e00;
  text-align: center;
}

.flow-diagram-node--approval::before {
  border: 0;
  border-radius: 0;
  background: #e67700;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  filter: drop-shadow(0 4px 14px rgba(230, 119, 0, 0.08));
}

.flow-diagram-node--approval::after {
  inset: 1.5px;
  background: #fff3bf;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  content: "";
}

.flow-diagram-node--cc {
  color: #6a1b3b;
}

.flow-diagram-node--cc::before {
  border-color: #d9487f;
  background: #fff0f6;
  box-shadow:
    inset 5px 0 0 #ffd1e1,
    inset -5px 0 0 #ffd1e1,
    0 4px 14px rgba(194, 37, 92, 0.08);
}

.flow-diagram-node--notification {
  color: #0b4f3b;
}

.flow-diagram-node--notification::before {
  border-color: #0ca678;
  background: #e6fcf5;
  box-shadow:
    inset 5px 0 0 #c3fae8,
    inset -5px 0 0 #c3fae8,
    0 4px 14px rgba(9, 146, 104, 0.08);
}

.flow-diagram-node-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #1f2329;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.flow-diagram-node--start .flow-diagram-node-title,
.flow-diagram-node--end .flow-diagram-node-title {
  color: #274690;
  font-size: 12px;
  line-height: 16px;
}

.flow-diagram-node--approval .flow-diagram-node-title,
.flow-diagram-node--approval .flow-diagram-node-meta {
  color: #6b3e00;
}

.flow-diagram-node--cc .flow-diagram-node-title,
.flow-diagram-node--cc .flow-diagram-node-meta {
  color: #6a1b3b;
}

.flow-diagram-node--notification .flow-diagram-node-title,
.flow-diagram-node--notification .flow-diagram-node-meta {
  color: #0b4f3b;
}

.flow-diagram-node--decision .flow-diagram-node-title {
  width: 78px;
  color: #28327f;
  font-size: 12px;
  line-height: 16px;
  -webkit-line-clamp: 2;
}

.flow-diagram-node-meta {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #646a73;
  font-size: 12px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.flow-diagram-node--decision .flow-diagram-node-meta {
  width: 76px;
  margin-top: 2px;
  color: #5461a7;
  font-size: 10px;
  line-height: 14px;
  -webkit-line-clamp: 2;
}

.flow-diagram-node-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 8;
  display: flex;
  width: max-content;
  min-width: 160px;
  max-width: 280px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d0d3d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(31, 35, 41, 0.14);
  color: #1f2329;
  font-size: 12px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.flow-diagram-node-tooltip::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid #d0d3d6;
  border-bottom: 1px solid #d0d3d6;
  background: rgba(255, 255, 255, 0.98);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.flow-diagram-node-tooltip strong {
  color: #1f2329;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
}

.flow-diagram-node-tooltip span {
  color: #646a73;
}

.flow-diagram-node:hover,
.flow-diagram-node:focus,
.flow-diagram-node:focus-visible,
.flow-diagram-node.is-tooltip-visible {
  z-index: 6;
}

.flow-diagram-node:hover .flow-diagram-node-tooltip,
.flow-diagram-node:focus .flow-diagram-node-tooltip,
.flow-diagram-node:focus-visible .flow-diagram-node-tooltip,
.flow-diagram-node.is-tooltip-visible .flow-diagram-node-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flow-run-header {
  justify-content: space-between;
  gap: 20px;
}

.flow-run-header .flow-title-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 10px;
}

.flow-run-header .flow-title-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.flow-run-subtitle {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin: 3px 0 0;
  color: #646a73;
  font-size: 13px;
  line-height: 20px;
}

.flow-run-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-top: 1px;
}

.flow-run-action {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2329;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}

.flow-run-action:hover,
.flow-run-action:focus-visible {
  border-color: rgba(51, 112, 255, 0.45);
  background: #f0f5ff;
  color: #3370ff;
  outline: none;
}

.flow-run-action--primary {
  border-color: #3370ff;
  background: #3370ff;
  color: #ffffff;
}

.flow-run-action--primary:hover,
.flow-run-action--primary:focus-visible {
  border-color: #245bdb;
  background: #245bdb;
  color: #ffffff;
}

.flow-run-info-popover {
  width: 276px;
}

.flow-run-info-popover .flow-diagram-info-item {
  grid-template-columns: 82px minmax(0, 1fr);
}

.flow-run-shell {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.flow-run-canvas-area {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
}

.flow-run-legend {
  right: auto;
  left: 14px;
}

.flow-run-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.flow-run-status-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c9cdd4;
}

.flow-run-status-dot--completed {
  background: #34c759;
}

.flow-run-status-dot--running {
  background: #3370ff;
  box-shadow: 0 0 0 4px rgba(51, 112, 255, 0.12);
}

.flow-run-status-dot--skipped {
  background: #c9cdd4;
}

.flow-run-status-dot--failed {
  background: #f54a45;
}

.flow-run-node-panel {
  position: relative;
  z-index: 2;
  width: 320px;
  min-width: 0;
  height: 100%;
  overflow: auto;
  border-left: 1px solid #e5e6eb;
  background: #ffffff;
  box-shadow: -8px 0 18px rgba(31, 35, 41, 0.04);
}

.flow-run-node-detail {
  padding: 14px;
}

.flow-run-node-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f3;
}

.flow-run-node-detail-header h2 {
  margin: 0;
  color: #1f2329;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.flow-run-node-detail-header p {
  margin: 3px 0 0;
  color: #646a73;
  font-size: 12px;
  line-height: 18px;
}

.flow-run-state-pill {
  display: inline-flex;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #646a73;
  font-size: 12px;
  line-height: 18px;
}

.flow-run-state-pill--completed {
  background: #e9f8ef;
  color: #1a7f37;
}

.flow-run-state-pill--running {
  background: #e8f3ff;
  color: #245bdb;
}

.flow-run-state-pill--failed,
.flow-run-state-pill--denied {
  background: #fff0f0;
  color: #b42318;
}

.flow-run-state-pill--withdrawn,
.flow-run-state-pill--skipped,
.flow-run-state-pill--pending {
  background: #f2f3f5;
  color: #646a73;
}

.flow-run-node-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.flow-run-node-facts div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #f7f8fa;
}

.flow-run-node-facts dt,
.flow-run-payload dt {
  color: #8f959e;
  font-size: 12px;
  line-height: 18px;
}

.flow-run-node-facts dd,
.flow-run-payload dd {
  min-width: 0;
  margin: 2px 0 0;
  color: #1f2329;
  font-size: 13px;
  line-height: 18px;
}

.flow-run-log-section {
  margin-top: 14px;
}

.flow-run-log-section h3 {
  margin: 0 0 8px;
  color: #1f2329;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.flow-run-payload {
  display: grid;
  gap: 6px;
  margin: 0;
}

.flow-run-payload div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  background: #ffffff;
}

.flow-run-payload code {
  overflow-wrap: anywhere;
  color: #1f2329;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.flow-run-logs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #1f2329;
  font-size: 13px;
  line-height: 20px;
}

.flow-run-edges .flow-diagram-edge--taken {
  stroke: #3370ff;
  stroke-width: 2;
}

.flow-run-edges .flow-diagram-edge--running {
  stroke: #3370ff;
  stroke-dasharray: 6 4;
}

.flow-run-edges .flow-diagram-edge--pending {
  stroke: #c9cdd4;
  stroke-dasharray: 5 6;
}

.flow-run-edges .flow-diagram-edge--skipped {
  stroke: #c9cdd4;
  stroke-dasharray: 2 6;
  opacity: 0.55;
}

.flow-run-edges .flow-diagram-edge--failed {
  stroke: #f54a45;
}

.flow-run-node {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-run-node-status {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9cdd4;
}

.flow-run-node--completed .flow-run-node-status {
  background: #34c759;
}

.flow-run-node--running .flow-run-node-status {
  background: #3370ff;
  animation: flow-run-pulse 1.6s ease-in-out infinite;
}

.flow-run-node--failed .flow-run-node-status,
.flow-run-node--denied .flow-run-node-status {
  background: #f54a45;
}

.flow-run-node--withdrawn .flow-run-node-status,
.flow-run-node--skipped .flow-run-node-status,
.flow-run-node--pending .flow-run-node-status {
  background: #c9cdd4;
}

.flow-run-node--pending,
.flow-run-node--skipped {
  opacity: 0.62;
}

.flow-run-node--skipped::before {
  border-style: dashed;
  border-color: #a8b0bd;
  box-shadow: none;
}

.flow-run-node--running::before {
  border-color: #3370ff;
  box-shadow:
    0 0 0 3px rgba(51, 112, 255, 0.12),
    0 8px 18px rgba(51, 112, 255, 0.14);
}

.flow-run-node--completed::before {
  border-color: #7fd69a;
}

.flow-run-node--failed::before,
.flow-run-node--denied::before {
  border-color: #f54a45;
  box-shadow:
    0 0 0 3px rgba(245, 74, 69, 0.12),
    0 8px 18px rgba(245, 74, 69, 0.12);
}

.flow-run-node.is-selected::before {
  outline: 2px solid rgba(51, 112, 255, 0.56);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .flow-run-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(360px, 1fr) auto;
  }

  .flow-run-node-panel {
    width: 100%;
    max-height: 320px;
    border-top: 1px solid #e5e6eb;
    border-left: 0;
    box-shadow: 0 -8px 18px rgba(31, 35, 41, 0.04);
  }
}

@keyframes flow-run-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.14);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(51, 112, 255, 0);
  }
}

.flow-family-name,
.flow-name {
  color: #1f2329 !important;
  font-weight: 400;
}

.flow-type-label {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.flow-type-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}

.flow-type-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.flow-type-icon--attendance {
  background: #eef8f7;
  color: #227c78;
}

.flow-type-icon--core {
  background: #f2f3fb;
  color: #6269a6;
}

.flow-family-table tbody tr:not([data-agent-href]):not(.flow-family-row--link) .flow-type-icon {
  opacity: 0.5;
}

.flow-family-table tbody tr:not([data-agent-href]):not(.flow-family-row--link) .flow-type-text {
  color: #8f959e;
}

.flow-type-text,
.flow-type-link {
  min-width: 0;
  overflow: hidden;
  color: #1f2329;
  line-height: 22px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-type-link:hover,
.flow-type-link:focus-visible,
.flow-family-row--link:hover .flow-type-link {
  color: #3370ff;
}

.flow-family-cell,
.flow-summary-cell {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  color: #1f2329;
  text-decoration: none;
  vertical-align: middle;
}

.flow-family-cell:hover .flow-cell-main,
.flow-family-cell:focus .flow-cell-main {
  color: #245bdb;
}

.flow-family-cell:focus {
  outline: 2px solid rgba(51, 112, 255, 0.28);
  outline-offset: 2px;
}

.flow-cell-main {
  overflow: hidden;
  color: #1f2329;
  font-size: 14px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-cell-meta,
.flow-empty-cell {
  overflow: hidden;
  color: #8f959e;
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-cell-separator {
  color: #c0a985;
  font-size: 13px;
  line-height: 20px;
}

.flow-cell-pending {
  color: #8a6b35;
  cursor: default;
}

.flow-cell-stopped {
  color: #646a73;
}

.flow-empty-result {
  padding: 32px 0;
  color: #8f959e;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.flow-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 22px;
}

.flow-state i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.flow-state.enabled i {
  background: #34c724;
}

.flow-state.pending i {
  background: #245bdb;
}

.flow-state.disabled i {
  background: #8f959e;
}

.flow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.flow-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3370ff;
  font-feature-settings: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: none;
  text-rendering: auto;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.flow-actions a:hover,
.flow-actions a:focus-visible {
  background: #eef3ff;
}

.flow-action-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-action-more[open] {
  z-index: 10;
}

.flow-action-more summary {
  display: inline-flex;
  width: 28px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #3370ff;
  list-style: none;
  cursor: pointer;
}

.flow-action-more summary::-webkit-details-marker {
  display: none;
}

.flow-action-more summary:hover,
.flow-action-more summary:focus-visible {
  background: #eef3ff;
  outline: none;
}

.flow-action-more-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 16px;
}

.flow-action-more-dots span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.flow-action-menu {
  position: absolute;
  top: 32px;
  right: 0;
  z-index: 12;
  min-width: 128px;
  padding: 4px;
  border: 1px solid #dee0e3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.12);
}

.flow-action-menu a,
.flow-action-menu button {
  display: flex;
  width: 100%;
  height: 30px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1f2329;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  text-rendering: auto;
  white-space: nowrap;
  cursor: pointer;
}

.flow-action-menu a:hover,
.flow-action-menu a:focus-visible,
.flow-action-menu button:hover,
.flow-action-menu button:focus-visible {
  background: #f2f3f5;
  outline: none;
}

/* Universe Design alignment for the Rails-only prototype. */
body:has(.agent-flow-prototype) {
  --flow-ud-bg-body: var(--bg-body, #f5f6f7);
  --flow-ud-bg-base: var(--bg-base, #ffffff);
  --flow-ud-bg-float: var(--bg-float, #ffffff);
  --flow-ud-bg-hover: #f5f6f7;
  --flow-ud-bg-active: #eef3ff;
  --flow-ud-bg-header: #f7f8fa;
  --flow-ud-line: var(--line-divider-default, #dee0e3);
  --flow-ud-line-light: #eef0f3;
  --flow-ud-line-strong: #c9cdd4;
  --flow-ud-primary: var(--primary-pri-500, #3370ff);
  --flow-ud-primary-hover: var(--primary-pri-600, #245bdb);
  --flow-ud-primary-bg: var(--primary-pri-50, #f0f5ff);
  --flow-ud-text-title: var(--text-title, #1f2329);
  --flow-ud-text-body: #2b2f36;
  --flow-ud-text-secondary: #646a73;
  --flow-ud-text-placeholder: #8f959e;
  --flow-ud-text-disabled: #c2c6cc;
  --flow-ud-shadow-float: 0 8px 24px rgba(31, 35, 41, 0.12);
  --flow-ud-shadow-tooltip: 0 10px 28px rgba(31, 35, 41, 0.14);
  --flow-ud-radius-control: 6px;
  --flow-ud-radius-float: 8px;
  background: var(--flow-ud-bg-body);
  color: var(--flow-ud-text-title);
  font-size: 14px;
  line-height: 22px;
}

body:has(.agent-flow-workbench-prototype) {
  background: var(--flow-ud-bg-body);
}

.agent-flow-prototype {
  background: var(--flow-ud-bg-body);
  color: var(--flow-ud-text-title);
  font-size: 14px;
  line-height: 22px;
}

.agent-flow-workbench-prototype {
  background: var(--flow-ud-bg-body);
}

.flow-page {
  padding-top: 24px;
}

.flow-page--workbench {
  width: min(calc(100vw - 72px), 1680px);
  padding: 32px 32px 40px;
}

.flow-workbench-header {
  margin-bottom: 20px;
}

.flow-workbench-header .flow-panel-title {
  color: var(--flow-ud-text-title);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.flow-panel-title {
  color: var(--flow-ud-text-title);
  font-weight: 500;
}

.flow-table-shell--workbench .flow-table-scroll,
.flow-workbench-toolbar,
.flow-pagination {
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-base);
}

.flow-table-shell--workbench .flow-table-scroll {
  border-top: 1px solid var(--flow-ud-line);
}

.flow-workbench-toolbar {
  min-height: 58px;
  padding: 12px 16px;
}

.flow-directory-shell {
  display: grid;
  overflow: hidden;
  min-height: 520px;
  grid-template-columns: 232px minmax(0, 1fr);
  border: 1px solid var(--flow-ud-line);
  background: var(--flow-ud-bg-base);
}

.flow-domain-nav {
  min-width: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--flow-ud-line);
  background: #fbfcfd;
}

.flow-domain-nav-title {
  padding: 0 8px 8px;
  color: var(--flow-ud-text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.flow-domain-nav-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.flow-domain-nav-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: var(--flow-ud-radius-control);
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--flow-ud-text-title);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-domain-nav-item:hover {
  background: var(--flow-ud-bg-hover);
}

.flow-domain-nav-item:focus-visible {
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.18);
}

.flow-domain-nav-item.is-active {
  background: var(--flow-ud-primary-bg);
}

.flow-domain-nav-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.flow-domain-nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.flow-domain-nav-icon--attendance {
  background: #e8f7f5;
  color: #16847f;
}

.flow-domain-nav-icon--core {
  background: #f1f3ff;
  color: #6269a6;
}

.flow-domain-nav-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.flow-domain-nav-name {
  overflow: hidden;
  color: var(--flow-ud-text-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-domain-nav-code {
  overflow: hidden;
  color: var(--flow-ud-text-secondary);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-domain-nav-count {
  display: inline-flex;
  min-width: 24px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eff1f4;
  color: var(--flow-ud-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

.flow-domain-nav-item.is-active .flow-domain-nav-count {
  background: var(--flow-ud-bg-base);
  color: var(--flow-ud-primary);
}

.flow-domain-workbench {
  min-width: 0;
  background: var(--flow-ud-bg-base);
}

.flow-directory-toolbar {
  min-height: 64px;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--flow-ud-line);
}

.flow-directory-toolbar .flow-tools--workbench {
  width: auto;
  flex: 0 0 auto;
}

.flow-directory-toolbar .flow-search {
  width: 300px;
}

.flow-domain-summary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.flow-domain-active-title {
  margin: 0;
  color: var(--flow-ud-text-title);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.flow-domain-active-meta {
  color: var(--flow-ud-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.flow-domain-panels,
.flow-domain-panel {
  min-width: 0;
}

.flow-domain-panel[hidden] {
  display: none;
}

.flow-family-table--directory {
  border-top: 0;
}

.flow-family-table--directory th {
  height: 40px;
  background: var(--flow-ud-bg-header);
}

.flow-family-table--directory td {
  height: 56px;
}

.flow-family-table--directory th:first-child,
.flow-family-table--directory td:first-child {
  padding-left: 20px;
}

.flow-operation-tabs {
  gap: 4px;
  border-bottom-color: var(--flow-ud-line);
}

.flow-operation-tab {
  height: 40px;
  padding: 0 16px;
  border-radius: 6px 6px 0 0;
  color: var(--flow-ud-text-title);
}

.flow-operation-tab:hover {
  background: var(--flow-ud-bg-hover);
}

.flow-operation-tab.active {
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-base);
}

.flow-operation-tab.active::after {
  background: var(--flow-ud-bg-base);
}

.flow-operation-tab-label {
  color: var(--flow-ud-text-title);
  font-size: 14px;
  font-weight: 500;
}

.flow-operation-tab-total {
  color: var(--flow-ud-text-secondary);
  font-size: 13px;
}

.flow-search,
.flow-operation-filter select,
.flow-pagination-size select,
.flow-pagination-jump input {
  height: 32px;
  border-color: var(--flow-ud-line-strong);
  border-radius: var(--flow-ud-radius-control);
  background: var(--flow-ud-bg-base);
  color: var(--flow-ud-text-title);
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.flow-search:hover,
.flow-operation-filter select:hover,
.flow-pagination-size select:hover,
.flow-pagination-jump input:hover {
  border-color: #a8b0bd;
}

.flow-search:focus-within,
.flow-operation-filter select:focus,
.flow-pagination-size select:focus,
.flow-pagination-jump input:focus {
  border-color: var(--flow-ud-primary);
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.14);
}

.flow-search input,
.flow-operation-filter select,
.flow-pagination-size select,
.flow-pagination-jump input {
  font-size: 14px;
}

.flow-search input::placeholder {
  color: var(--flow-ud-text-placeholder);
}

.flow-icon,
.flow-select-icon {
  color: var(--icon-n3, var(--flow-ud-text-secondary));
}

.flow-family-table,
.flow-definition-table {
  border-top-color: var(--flow-ud-line);
}

.flow-family-table th,
.flow-family-table td,
.flow-definition-table th,
.flow-definition-table td {
  border-bottom-color: var(--flow-ud-line-light);
  color: var(--flow-ud-text-title);
  font-size: 14px;
  line-height: 22px;
}

.flow-family-table th,
.flow-definition-table th,
.flow-definition-table--workbench th {
  height: 40px;
  background: var(--flow-ud-bg-header);
  color: var(--flow-ud-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.flow-definition-table--workbench {
  min-width: max(100%, 1304px);
}

.flow-instance-table {
  min-width: max(100%, 1784px);
}

.flow-family-table tbody tr[data-agent-href]:hover td,
.flow-family-table tbody tr.flow-family-row--link:hover td,
.flow-family-table tr[data-agent-href]:focus-visible td,
.flow-family-table tr.flow-family-row--link:focus-visible td,
.flow-definition-table tbody tr:hover td,
.flow-definition-table--workbench tbody tr:hover td,
.flow-definition-table--workbench tbody tr:hover td:last-child {
  background: var(--flow-ud-bg-hover);
}

.flow-family-table th,
.flow-family-table td {
  padding-right: 14px;
  padding-left: 14px;
}

.flow-family-table th:first-child,
.flow-family-table td:first-child,
.flow-definition-table--workbench th:first-child,
.flow-definition-table--workbench td:first-child {
  padding-left: 18px;
}

.flow-instance-table th:first-child,
.flow-instance-table td:first-child {
  padding-left: 24px;
}

.flow-definition-table--workbench th:last-child,
.flow-definition-table--workbench td:last-child {
  width: 184px;
  min-width: 184px;
  max-width: 184px;
}

.flow-definition-table--workbench th:last-child {
  background: var(--flow-ud-bg-header);
}

.flow-definition-table--workbench td:last-child {
  background: var(--flow-ud-bg-base);
}

.flow-table-scroll--can-scroll-right .flow-definition-table--workbench th:last-child,
.flow-table-scroll--can-scroll-right .flow-definition-table--workbench td:last-child {
  box-shadow: -14px 0 22px -18px rgba(31, 35, 41, 0.52);
}

.flow-table-scroll--overflow-x .flow-definition-table--workbench th:last-child::before,
.flow-table-scroll--overflow-x .flow-definition-table--workbench td:last-child::before {
  background: var(--flow-ud-line-strong);
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.72),
    -8px 0 16px -12px rgba(31, 35, 41, 0.58);
}

.flow-cell-main,
.flow-definition-name,
.flow-description-text,
.flow-instance-id,
.flow-instance-person-name {
  color: var(--flow-ud-text-title);
}

.flow-cell-meta,
.flow-empty-cell,
.flow-operation-tab-total,
.flow-diagram-shell-header p,
.flow-diagram-zoom-value {
  color: var(--flow-ud-text-secondary);
}

.flow-empty-cell,
.flow-state.disabled,
.flow-pagination-button:disabled,
.flow-pagination-number:disabled {
  color: var(--flow-ud-text-disabled);
}

.flow-cell-pending {
  color: #8f5a00;
}

.flow-cell-separator {
  color: var(--flow-ud-text-placeholder);
}

.flow-type-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.flow-type-icon--attendance {
  background: #e8f7f5;
  color: #16847f;
}

.flow-type-icon--core {
  background: #f1f3ff;
  color: #6269a6;
}

.flow-admin-pill {
  height: 22px;
  max-width: 96px;
  padding: 2px 8px 2px 2px;
  background: #eff1f4;
  color: var(--flow-ud-text-title);
  font-size: 13px;
  line-height: 18px;
}

.flow-admin-avatar,
.flow-diagram-info-value .flow-admin-avatar {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.flow-instance-person-avatar {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  font-size: 11px;
}

.flow-instance-person {
  gap: 6px;
}

.flow-instance-node {
  height: 24px;
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-header);
  color: var(--flow-ud-text-title);
  font-size: 13px;
}

.flow-instance-node-more {
  height: 24px;
  border-color: #d9e6ff;
  background: var(--flow-ud-primary-bg);
  color: var(--flow-ud-primary-hover);
}

.flow-instance-status {
  height: 24px;
  border-radius: 999px;
  font-size: 13px;
}

.flow-version-chip {
  height: 24px;
  border-color: var(--flow-ud-line);
  background: #f8f9fb;
  color: var(--flow-ud-text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.flow-run-sparkline {
  width: 122px;
  flex-basis: 122px;
  gap: 4px;
}

.flow-run-bar {
  width: 5px;
  background: #9cc4c1;
  opacity: 0.78;
}

.flow-run-bar:hover,
.flow-run-bar:focus-visible {
  background: #16847f;
}

.flow-actions {
  gap: 6px;
}

.flow-actions a {
  height: 28px;
  padding: 0 8px;
  border-radius: var(--flow-ud-radius-control);
  color: var(--flow-ud-primary);
  line-height: 22px;
}

.flow-actions a:hover,
.flow-actions a:focus-visible,
.flow-action-more summary:hover,
.flow-action-more summary:focus-visible,
.flow-diagram-actions a:hover,
.flow-diagram-actions a:focus-visible {
  background: var(--flow-ud-primary-bg);
  color: var(--flow-ud-primary);
}

.flow-action-more summary {
  width: 28px;
  height: 28px;
  color: var(--flow-ud-primary);
}

.flow-action-menu,
.flow-th-tooltip,
.flow-description-tooltip,
.flow-node-more-tooltip,
.flow-diagram-info-popover {
  border-color: var(--flow-ud-line);
  border-radius: var(--flow-ud-radius-float);
  background: var(--flow-ud-bg-float);
  box-shadow: var(--flow-ud-shadow-float);
  color: var(--flow-ud-text-title);
}

.flow-action-menu {
  top: 34px;
  z-index: 80;
  min-width: 144px;
  padding: 4px;
}

.flow-action-more--open-up .flow-action-menu {
  top: auto;
  bottom: 34px;
}

.flow-action-menu a,
.flow-action-menu button {
  height: 32px;
  border-radius: var(--flow-ud-radius-control);
  color: var(--flow-ud-text-title);
  font-size: 14px;
}

.flow-action-menu a:hover,
.flow-action-menu a:focus-visible,
.flow-action-menu button:hover,
.flow-action-menu button:focus-visible {
  background: var(--flow-ud-bg-hover);
}

.flow-country-tooltip,
.flow-run-tooltip {
  z-index: 1000;
  border-radius: var(--flow-ud-radius-control);
  background: rgba(31, 35, 41, 0.94);
}

.flow-description-tooltip,
.flow-node-more-tooltip {
  z-index: 1000;
  box-shadow: var(--flow-ud-shadow-tooltip);
}

.flow-description-tooltip::after,
.flow-th-tooltip::after,
.flow-diagram-info-popover::before {
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-float);
}

.flow-pagination {
  min-height: 58px;
  padding: 12px 16px;
}

.flow-pagination-button,
.flow-pagination-number {
  width: 32px;
  height: 32px;
  border-color: var(--flow-ud-line-strong);
  border-radius: var(--flow-ud-radius-control);
  background: var(--flow-ud-bg-base);
  color: var(--flow-ud-text-title);
}

.flow-pagination-button:hover:not(:disabled),
.flow-pagination-number:hover:not(:disabled) {
  border-color: var(--flow-ud-primary);
  background: var(--flow-ud-primary-bg);
  color: var(--flow-ud-primary);
}

.flow-pagination-number[aria-current="page"] {
  border-color: var(--flow-ud-primary);
  background: var(--flow-ud-primary-bg);
  color: var(--flow-ud-primary);
}

.flow-diagram-shell {
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-base);
}

.flow-diagram-canvas-toolbar,
.flow-diagram-legend {
  border-color: rgba(201, 205, 212, 0.82);
  border-radius: var(--flow-ud-radius-float);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--flow-ud-shadow-float);
}

.flow-diagram-canvas-button {
  border-color: var(--flow-ud-line-strong);
  border-radius: var(--flow-ud-radius-control);
  background: var(--flow-ud-bg-base);
  color: var(--flow-ud-text-title);
}

.flow-diagram-canvas-button:hover,
.flow-diagram-canvas-button:focus-visible {
  border-color: var(--flow-ud-primary);
  background: var(--flow-ud-primary-bg);
}

.flow-diagram-badge {
  border-color: #d7ecea;
  border-radius: var(--flow-ud-radius-control);
  background: #eef8f7;
  color: #16847f;
}

.flow-diagram-viewport {
  background:
    linear-gradient(#edf0f3 1px, transparent 1px),
    linear-gradient(90deg, #edf0f3 1px, transparent 1px),
    var(--flow-ud-bg-base);
  background-size: 24px 24px;
}

.flow-diagram-node::before {
  border-color: var(--flow-ud-line-strong);
  box-shadow: 0 4px 14px rgba(31, 35, 41, 0.06);
}

.flow-diagram-node-tooltip {
  border-color: var(--flow-ud-line);
  border-radius: var(--flow-ud-radius-float);
  background: var(--flow-ud-bg-float);
  box-shadow: var(--flow-ud-shadow-tooltip);
}

.flow-diagram-node-tooltip::after {
  border-color: var(--flow-ud-line);
  background: var(--flow-ud-bg-float);
}

@media (max-width: 860px) {
  .flow-page {
    min-width: 0;
  }

  .flow-page--workbench {
    width: calc(100vw - 36px);
    padding: 24px 18px 32px;
  }

  .flow-workbench-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-directory-shell {
    grid-template-columns: 1fr;
  }

  .flow-domain-nav {
    border-right: 0;
    border-bottom: 1px solid var(--flow-ud-line);
  }

  .flow-domain-nav-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .flow-domain-nav-item {
    width: 216px;
    flex: 0 0 auto;
  }

  .flow-directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-directory-toolbar .flow-tools--workbench,
  .flow-directory-toolbar .flow-search {
    width: 100%;
  }

  .flow-diagram-info-popover {
    width: min(236px, calc(100vw - 56px));
  }

  .flow-diagram-title-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .flow-workbench-meta {
    justify-content: flex-start;
  }

  .flow-operation-tabs {
    overflow-x: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .flow-operation-tab {
    flex: 0 0 auto;
  }

  .flow-tools--workbench {
    align-items: stretch;
    flex-direction: column;
  }

  .flow-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .flow-search--wide,
  .flow-operation-filter--country {
    width: 100%;
  }
}
