@use 'variables' as *;

@include export-module('workflow-designer-theme') {
  .e-workflow-designer {
    box-sizing: border-box;
    display: block;
    position: relative;
    outline: none;
    font-family: $wf-mono-font;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-wf-canvas-toolbar {
    position: absolute;
    bottom: 20px;
    left: 35%;
    z-index: 6;
    display: inline-flex;
    gap: 2px;
    align-items: center;
    border: $wf-canvas-bg;
    box-shadow: 0 2px 5px $wf-canvas-toolbar-shadow;
    border-radius: $wf-canvas-toolbar-radius;
  }

  .e-workflow-designer .e-wf-canvas-toolbar-separator {
    width: 1px;
    height: 22px;
    margin: 0 4px;
    align-self: center;
    flex: 0 0 auto;
  }

  @if $skin-name == 'highcontrast' {
    .e-workflow-designer .e-wf-top-toolbar .e-toolbar {
      border: none;
    }
  }

  .e-workflow-designer .e-wf-canvas-host {
    width: 100%;
    height: 100%;
  }

  /* Keep Diagram labels from being browser-selected while dragging items. */
  .e-wf-step-label {
    user-select: none;
    font-family: $wf-mono-font;
    font-size: $wf-step-font;
    line-height: 1.2;
    font-weight: $wf-medium-font;
    color: $wf-text-color;
    letter-spacing: 0;
  }

  /* HTML step template geometry follows the resolved Diagram node size. */
  .e-wf-step-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: $wf-node-stroke-width solid $wf-canvas-neutral;
    border-radius: $wf-step-card-radius;
    background: $wf-light-color;
    overflow: visible;
  }

  .e-wf-step-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    color: $wf-brand-color;
    font-size: $wf-node-caption-height;
    line-height: 1;
  }

  .e-wf-step-icon svg {
    width: 100%;
    height: 100%;
  }

  .e-wf-step-caption {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100px;
    max-width: 100px;
    padding-top: 8px;
    overflow: visible;
    font-family: $wf-mono-font;
    font-size: $wf-step-font;
    line-height: 1.2;
    font-weight: $wf-medium-font;
    text-align: center;
    transform: translateX(-50%);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .e-wf-port-labels {
    position: absolute;
    top: 0;
    left: 100%;
    width: 60px;
    height: 100%;
    pointer-events: none;
  }

  .e-wf-port-label {
    position: absolute;
    left: 10px;
    display: block;
    transform: translateY(-50%);
    color: $wf-text-color;
    font-family: $wf-mono-font;
    font-size: $wf-step-font;
    line-height: 1.2;
    font-weight: $wf-medium-font;
    white-space: nowrap;
  }

  .e-wf-canvas-host.e-control.e-diagram > :first-child {
    overflow: hidden;
  }

  .e-workflow-designer .e-wf-workspace {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .e-workflow-designer .e-wf-toolbar {
    display: flex;
    flex: 1 1 auto;
    border: 0;
    border-bottom: $wf-canvas-toolbar-border;
    background: $wf-top-app-bar-bg;
    width: 100%;
    height: 100%;
  }

  .e-workflow-designer .e-wf-project-name {
    position: relative;
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    max-width: min(420px, 55%);
    padding: 6px;
  }

  .e-workflow-designer .e-wf-project-name-tile {
    cursor: text;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    overflow: hidden;
    border: $wf-project-name-tile-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-transparent;
    color: $wf-project-name-tile-color;
    font: inherit;
    font-size: $wf-project-name-tile-font;
    font-weight: $wf-regular-font;
    line-height: 1.3;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .e-workflow-designer .e-wf-project-name-tile:hover:not(:disabled) {
    background: $wf-project-name-tile-bg;
  }

  .e-workflow-designer .e-wf-project-name-tile:focus {
    outline: 2px solid $wf-brand-color;
    outline-offset: -2px;
  }

  .e-workflow-designer .e-wf-project-name-tile:disabled {
    cursor: default;
    color: $wf-muted-color;
    background: $wf-transparent;
  }

  /* Keep tile in flow for sizing while editing; input paints over it. */
  .e-workflow-designer .e-wf-project-name.e-wf-project-name-editing .e-wf-project-name-tile {
    visibility: hidden;
    pointer-events: none;
  }

  .e-workflow-designer .e-wf-project-name-input {
    position: absolute;
    box-sizing: border-box;
    display: none;
    width: 100%;
    min-width: 160px;
    margin: 0;
  }

  .e-workflow-designer .e-wf-project-name.e-wf-project-name-editing .e-wf-project-name-input {
    display: block;
  }

  .e-workflow-designer .e-wf-top-toolbar {
    border-bottom: 1px solid $wf-border-soft-color;
    background: $wf-light-color;
    @if $skin-name == 'highcontrast' {
      border-bottom: 1px solid $wf-top-toolbar-border-bottom-color;
    }
    @if $skin-name == 'Material3'{
      background: $wf-top-app-bar-bg;
    }
    @else {
      background: $wf-light-color;
    }
  }

  .e-workflow-designer .e-wf-top-toolbar .e-toolbar .e-toolbar-items {
    background: $wf-top-app-bar-bg;
  }

  .e-workflow-designer .e-wf-toolbar-actions {
    display: inline-flex;
    flex: 0 0 auto;

    /* gap: 2px; */
    align-items: center;
    margin-left: auto;
  }

  .e-workflow-designer .e-wf-toolbar-in-stop-state .e-tbar-btn {
    color: $wf-failed;
  }

  .e-workflow-designer .e-wf-toolbar-in-stop-state .e-tbar-btn .e-icons {
    color: $wf-failed;
  }

  .e-workflow-designer .e-wf-toolbar-in-stop-state .e-tbar-btn:hover {
    background: $wf-failed-bg;
    color: $wf-failed;
  }

  .e-workflow-designer .e-wf-toolbar-in-stop-state .e-tbar-btn:hover .e-icons {
    color: $wf-failed;
  }

  .e-workflow-designer .e-wf-toolbar-in-stop-state.e-overlay .e-tbar-btn,
  .e-workflow-designer .e-wf-toolbar-in-stop-state.e-overlay .e-tbar-btn .e-icons {
    color: inherit;
  }

  .e-workflow-designer .e-wf-toolbar-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 11px;
    position: relative;
    opacity: 0;
    pointer-events: none;

    svg {
      width: 100%;
      height: 100%;
      animation: rotateSpinner 1.2s linear infinite;

      circle:nth-child(2) {
        animation: dashSpinner 1.5s ease-in-out infinite;
        stroke: $wf-brand-color;
      }
    }
  }

  /* Spinner visibility animations */
  .e-workflow-designer .e-wf-toolbar-spinner-fade-in {
    animation: fadeInSpinner .3s cubic-bezier(0, 0, .2, 1) forwards;
  }

  .e-workflow-designer .e-wf-toolbar-spinner-fade-out {
    animation: fadeOutSpinner .2s cubic-bezier(.4, 0, 1, 1) forwards;
  }

  @keyframes fadeInSpinner {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes fadeOutSpinner {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  @keyframes rotateSpinner {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  @keyframes dashSpinner {
    0% {
      stroke-dashoffset: 0;
    }

    50% {
      stroke-dashoffset: 31.4;
    }

    100% {
      stroke-dashoffset: 0;
    }
  }

  /* Icon transition animations for play/stop button morphing */
  .e-workflow-designer .e-wf-toolbar-icon-fade-out {
    animation: fadeOutIcon .15s cubic-bezier(.4, 0, 1, 1) forwards;
  }

  .e-workflow-designer .e-wf-toolbar-icon-fade-in {
    animation: fadeInIcon .2s cubic-bezier(0, 0, .2, 1) forwards;
  }

  @keyframes fadeOutIcon {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  @keyframes fadeInIcon {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Theme-aware styling for play/stop buttons. */
  .e-workflow-designer .e-wf-node-collection-cancel,
  .e-workflow-designer .e-wf-simulation-log-toggle,
  .e-workflow-designer .e-wf-simulation-log-clear {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
  }

  .e-workflow-designer .e-wf-node-collection-cancel .e-icons,
  .e-workflow-designer .e-wf-property-section-expand .e-icons,
  .e-workflow-designer .e-wf-simulation-log-toggle .e-icons,
  .e-workflow-designer .e-wf-simulation-log-clear .e-icons {
    font-size: $wf-step-font;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-property-section-expand .e-icons {
    font-size: $wf-property-section-expand-font;
    // margin-right: 65px;
  }

  .e-workflow-designer .e-wf-workspace-body {
    flex: 1 1 auto;
    display: flex;
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .e-workflow-designer .e-wf-canvas-region {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .e-workflow-designer .e-wf-property-panel {
    position: absolute;
    top: 40px;
    right: 0;
    bottom: 48px;
    z-index: 4;
    width: 0;
    overflow: visible;
    background: $wf-transparent;
    border-left: $wf-property-panel-border;
  }

  .e-workflow-designer .e-wf-node-collection:not(.e-wf-node-collection-open) {
    visibility: hidden;
  }

  .e-workflow-designer .e-wf-node-collection.e-wf-node-collection-open {
    visibility: visible;
  }

  .e-workflow-designer .e-wf-property-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: 0;
    overflow: visible;
    background: $wf-transparent;
    border-left: $wf-property-panel-border;
  }

  .e-workflow-designer .e-wf-property-panel-open {
    width: 25%;
    min-width: 240px;
  }

  .e-workflow-designer .e-wf-property-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 240px;
    height: 100%;
    overflow: auto;
    background: $wf-property-panel-bg;
    border-left: $wf-canvas-toolbar-border;
    font-family: $wf-mono-font;
    font-size: $wf-body-font-alt;
    color: $wf-text-color;
    @if $skin-name == 'highcontrast' {
      border-left: $wf-property-field-border;
    }
  }

  .e-workflow-designer .e-wf-property-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: $wf-medium-font;
    color: $wf-text-color;
    background: $wf-property-section-header-bg;
    border-bottom: $wf-canvas-toolbar-border;
    @if $skin-name == 'highcontrast' {
      border-bottom: $wf-property-field-border;
    }
  }

  .e-workflow-designer .e-wf-property-section-header {
    padding-right: 52px;
  }

  .e-workflow-designer .e-wf-property-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: $wf-step-font;
    font-weight: $wf-medium-font;
    letter-spacing: .01em;
  }

  .e-workflow-designer .e-wf-property-section-expand {
    position: absolute;
    top: 26px;
    right: 0;
    z-index: 6;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 36px;
    color: $wf-text-color;
    @if $skin-name == 'Material3' {
      box-shadow: $wf-canvas-add-shadow;
    }
    @else {
      box-shadow: 0 1px 3px $wf-property-section-expand-shadow;
    }
    gap: 4px;
    padding: 0 12px 0 8px;
    border-radius: 32px 0 0 32px;
    border-right: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: $wf-canvas-toolbar-border;
    background: $wf-surface-alt-bg;
    @if $skin-name == 'highcontrast' {
      border-style: solid;
      border-color: $wf-property-section-expand-border-color;
      border-width: $wf-property-section-expand-border-width;
      background: $wf-empty-canvas-add-bg;
    }
  }

  .e-workflow-designer .e-wf-property-section-expand:not(:disabled):hover{
    @if $skin-name == 'Material3' {
      background: $wf-static-button-hover-bg;
      color: $wf-static-button-hover-color;
      border: $wf-static-button-hover-border;
    }
    @else {
      background: $wf-hover-bg;
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
    }
  }

  .e-workflow-designer .e-wf-property-section-expand:not(:disabled):active {
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      background: $wf-pressed-bg;
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
    }
  }

  .e-workflow-designer .e-wf-property-section-expand:not(:disabled):focus {
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
      background: $wf-pressed-bg;
    }
  }

  .e-workflow-designer .e-wf-property-panel-open .e-wf-property-section-expand {
    right: auto;
    left: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translate(-50%, 0);
    @if $skin-name == 'Material3' {
      box-shadow: $wf-collapse-btn-shadow;
      border-radius: $wf-collapse-btn-border-radius;
      border: $wf-canvas-toolbar-border;
    }
    @else {
      box-shadow: 0 1px 3px $wf-property-section-expand-shadow;
      border-radius: 50%;
      border: $wf-property-section-expand-border;
    }
  }

  .e-workflow-designer .e-wf-property-section-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 16px;
    overflow: auto;
  }

  .e-workflow-designer .e-wf-property-pill {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    border-radius: $wf-property-pill-radius;
    background: $wf-node-collection-icon-background;
    color: $wf-pill-color;
    font-size: $wf-property-pill-font;
    font-weight: $wf-medium-font;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .e-workflow-designer .e-wf-property-pill[hidden] {
    display: none;
  }

  .e-workflow-designer .e-wf-simulation-log {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
    min-height: 0;
  }

  .e-workflow-designer .e-wf-simulation-log-open {
    height: 260px;
  }

  .e-workflow-designer .e-wf-simulation-log-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: $wf-light-color;
    border-top: $wf-simulation-log-panel-border;
    min-height: 0;
  }

  .e-workflow-designer .e-wf-simulation-log-panel.e-wf-simulation-log-collapsed .e-wf-simulation-log-body {
    display: none;
  }

  .e-workflow-designer .e-wf-simulation-log-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  .e-workflow-designer .e-wf-simulation-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: $wf-simulation-entry-font-size;
    font-weight: $wf-medium-font;
    color: $wf-text-color;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .e-workflow-designer .e-wf-simulation-summary-meta-container {
    display: inline-flex;
    gap: 8px;
  }

  .e-workflow-designer .e-wf-simulation-log-body {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    overflow: hidden;
    background-color: $wf-exection-log-panel-bg;
  }

  .e-workflow-designer .e-wf-simulation-log-list-pane {
    flex: 1 1 58%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: $wf-canvas-toolbar-border;
    @if $skin-name == 'highcontrast' {
      border-right: $wf-property-field-border;
    }
  }

  .e-workflow-designer .e-wf-simulation-log-list {
    flex: 1 1 auto;
    overflow: auto;
    font-size: $wf-simulation-log-list-font;
    min-height: 0;
  }

  .e-workflow-designer .e-wf-simulation-entry {
    display: block;
    padding: 0;
    border-bottom: 1px solid $wf-simulation-entry-border-alt;
    cursor: pointer;
    color: $wf-failed;
    @if $skin-name == 'highcontrast' {
      color: $wf-simulation-entry-status-icon-color-failed;
    }
    line-height: 1.35;
  }

  .e-workflow-designer .e-wf-simulation-entry-main {
    display: grid;
    grid-template-columns: 28px 96px minmax(96px, 1.2fr) 84px minmax(120px, 1.6fr);
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
  }

  .e-workflow-designer .e-wf-simulation-entry-main-expandable {
    grid-template-columns: 28px 96px minmax(96px, 1.2fr) 84px 22px minmax(100px, 1.6fr);
  }

  .e-workflow-designer .e-wf-simulation-entry:hover {
    background: $wf-simulation-entry-hover-bg;
  }

  .e-workflow-designer .e-wf-simulation-entry-selected {
    background: $wf-simulation-entry-selected-bg;
  }

  .e-workflow-designer .e-wf-simulation-entry-selected:hover {
    background: $wf-simulation-entry-selected-bg;
  }

  .e-workflow-designer .e-wf-simulation-entry-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .e-workflow-designer .e-wf-simulation-entry-status-icon {
    font-size: $wf-simulation-entry-icon-size;
    line-height: 100%;
    font-weight: $wf-simulation-entry-font-weight;
  }

  .e-workflow-designer .e-wf-simulation-entry-completed .e-wf-simulation-entry-status-icon,
  .e-workflow-designer .e-wf-simulation-entry-final .e-wf-simulation-entry-status-icon {
    color: $wf-simulation-entry-status-icon-color-success;
  }

  .e-workflow-designer .e-wf-simulation-entry-error .e-wf-simulation-entry-status-icon,
  .e-workflow-designer .e-wf-simulation-entry-validation .e-wf-simulation-entry-status-icon,
  .e-workflow-designer .e-wf-simulation-entry-final-failed .e-wf-simulation-entry-status-icon {
    color: $wf-simulation-entry-status-icon-color-failed;
  }

  .e-workflow-designer .e-wf-simulation-entry-started .e-wf-simulation-entry-status-icon,
  .e-workflow-designer .e-wf-simulation-entry-retry .e-wf-simulation-entry-status-icon {
    color: $wf-simulation-entry-status-icon-color-running;
  }

  .e-workflow-designer .e-wf-simulation-entry-stopped .e-wf-simulation-entry-status-icon,
  .e-workflow-designer .e-wf-simulation-entry-skipped .e-wf-simulation-entry-status-icon {
    color: $wf-text-muted-color;
  }

  .e-workflow-designer .e-wf-simulation-entry-time {
    color: $wf-text-color;
    white-space: nowrap;
    font-size: $wf-simulation-entry-font-size;
    line-height: 20px;
  }

  .e-workflow-designer .e-wf-simulation-entry-name {
    font-weight: $wf-simulation-entry-font-weight;
    color: $wf-text-color;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 25%;
    font-size: $wf-simulation-entry-font-size;
    line-height: 20px;
  }

  .e-workflow-designer .e-wf-simulation-entry-result {
    border: 1px solid;
    border-radius: $wf-execution-state-border-radius;
    text-align: center;
    font-weight: $wf-simulation-entry-state-font-weight;
    font-size: $wf-simulation-entry-font-size;
  }

  .e-workflow-designer .e-wf-simulation-entry-started {
    color: $wf-simulation-entry-status-icon-color-success;
  }

  .e-workflow-designer .e-wf-simulation-entry-completed .e-wf-simulation-entry-result,
  .e-workflow-designer .e-wf-simulation-entry-final .e-wf-simulation-entry-result {
    color: $wf-simulation-entry-status-icon-color-success;
    border: 1px solid $wf-completed;
    @if $skin-name == 'highcontrast' {
      border: 1px solid $wf-simulation-entry-completed-border-color;
    }
    border-radius: $wf-execution-state-border-radius;
    text-align: center;
    font-weight: $wf-simulation-entry-state-font-weight;
    font-size: $wf-simulation-entry-font-size;
  }

  .e-workflow-designer .e-wf-simulation-entry-error .e-wf-simulation-entry-result,
  .e-workflow-designer .e-wf-simulation-entry-validation .e-wf-simulation-entry-result {
    color: $wf-simulation-entry-status-icon-color-failed;
    border: 1px solid $wf-failed;
    @if $skin-name == 'highcontrast' {
      border: 1px solid $wf-simulation-entry-failed-border-color;
    }
    border-radius: $wf-execution-state-border-radius;
    text-align: center;
    font-weight: $wf-simulation-entry-state-font-weight;
    font-size: $wf-simulation-entry-font-size;
  }

  .e-workflow-designer .e-wf-simulation-entry-final-failed .e-wf-simulation-entry-status-icon {
    color: $wf-simulation-entry-status-icon-color-failed;
  }

  .e-workflow-designer .e-wf-simulation-entry-message {
    color: $wf-text-color;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 30%;
    line-height: 20px;
    font-size: $wf-simulation-entry-font-size;
  }

  .e-workflow-designer .e-wf-simulation-log-details-pane {
    flex: 1 1 42%;
    min-width: 220px;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .e-workflow-designer .e-wf-execution-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .e-workflow-designer .e-wf-execution-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 4px;
  }

  .e-workflow-designer .e-wf-execution-details-title {
    font-size: $wf-simulation-entry-font-size;
    font-weight: $wf-medium-font;
    color: $wf-text-color;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .e-workflow-designer .e-wf-execution-details-tabs {
    flex: 0 0 auto;
    padding: 0 12px;
  }

  .e-workflow-designer .e-wf-execution-details-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 8px 12px 12px;
  }

  .e-workflow-designer .e-wf-execution-details-content {
    margin: 0;
    font-family: $wf-execution-details-content-font;
    font-size: $wf-node-collection-title-font;
    font-weight: $wf-simulation-entry-font-weight;
    line-height: 22px;
    color: $wf-text-color;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .e-workflow-designer .e-wf-property-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: $wf-property-field-border;
  }

  .e-workflow-designer .e-wf-property-field:last-child {
    border-bottom: $wf-property-panel-border;
  }

  .e-workflow-designer .e-wf-property-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: $wf-step-font;
    font-weight: $wf-simulation-entry-font-weight;
    letter-spacing: 0;
    @if $skin-name == 'Material3' {
      color: $wf-text-muted-color;
    }
    @else {
      color: $wf-text-color;
    }
  }

  .e-workflow-designer .e-wf-property-panel-open {
    position: relative;
  }

  .e-workflow-designer .e-wf-property-panel-open .e-wf-property-section-expand-open {
    position: absolute;
    top: 28px;
    left: 0;
    right: auto;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: $wf-property-help-trigger-icon-radius;
  }

  .e-wf-simulation-entry-main:not(:has(> .e-wf-simulation-entry-expand)) > .e-wf-simulation-entry-result {
    transform: translateX(-12px);
  }

  .e-wf-simulation-entry-main:has(> .e-wf-simulation-entry-expand) > .e-wf-simulation-entry-message {
    transform: translateX(-12px);
  }

  .e-workflow-designer .e-wf-property-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .e-workflow-designer .e-wf-property-input-row .e-wf-property-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .e-workflow-designer .e-wf-property-help-trigger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin: 0;
    padding: 0;
    border: $wf-property-section-expand-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    color: $wf-text-muted-color;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
  }

  .e-workflow-designer .e-wf-property-help-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: $wf-project-name-tile-border;
    border-radius: $wf-property-help-trigger-icon-radius;
    background: $wf-transparent;
    color: $wf-text-muted-color;
    vertical-align: middle;
    flex: 0 0 auto;
    cursor: pointer;
    transition: color .12s ease, background-color .12s ease, border-color .12s ease;
  }

  .e-workflow-designer .e-wf-property-help-trigger-icon .e-icons {
    font-size: $wf-body-font-alt;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-list-editor-title-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px 6px;
    font: inherit;
  }

  .e-workflow-designer .e-wf-list-editor-title-text {
    font-size: $wf-simulation-entry-font-size;
    letter-spacing: .04em;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-wf-property-empty {
    padding: 32px 40px;
    color: $wf-text-muted-color;
    font-size: $wf-property-empty-font;
  }

  /* Field help popup (e.g. cron expression guidance). */
  .e-wf-property-help-popup {
    position: fixed;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(300px, calc(100vw - 24px));
    max-width: 300px;
    padding: 10px 12px;
    background: linear-gradient(180deg, $wf-help-bg-top 0%, $wf-light-color 100%);
    box-sizing: border-box;
    pointer-events: auto;
    opacity: 1;
  }

  .e-wf-property-help-popup .e-wf-property-help-title {
    margin: 0;
    color: $wf-help-title;
    font-size: $wf-property-pill-font;
    font-weight: $wf-strong-font;
    letter-spacing: .04em;
  }

  .e-wf-property-help-popup .e-wf-property-help-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: $wf-help-body;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.45;
    overflow: visible;
    min-height: 0;
  }

  .e-wf-property-help-popup .e-wf-property-help-line {
    margin: 0;
  }

  .e-wf-property-help-popup .e-wf-property-help-line strong {
    font-weight: $wf-strong-font;
  }

  .e-wf-property-help-popup .e-wf-property-help-code {
    display: inline-block;
    margin: 0 1px;
    padding: 1px 5px;
    border-radius: $wf-simulation-log-clear-radius;
    background: $wf-help-code-bg;
    border: 1px solid $wf-help-code-border;
    color: $wf-help-title;
    font-family: $wf-mono-font;
    font-size: $wf-property-pill-font;
    line-height: 1.35;
    white-space: nowrap;
  }

  /* Node Collection palette list / category / item cards (FR-047, FR-076). */
  .e-workflow-designer .e-wf-node-collection {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
    width: 20%;
    max-width: calc(100% - 48px);
    min-width: 240px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }

  .e-workflow-designer .e-wf-node-collection.e-wf-node-collection-open {
    visibility: visible;
  }

  .e-workflow-designer .e-wf-node-collection-panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: $wf-node-panel-bg;
    border-right: $wf-property-field-border;
    pointer-events: auto;
  }

  .e-workflow-designer .e-wf-node-collection-header {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 12px 16px;
    color: $wf-text-color;
    background: $wf-node-panel-bg;
    border-bottom: $wf-canvas-toolbar-border;
    @if $skin-name == 'highcontrast' {
      border-bottom: $wf-property-field-border;
    }
  }

  .e-workflow-designer .e-wf-node-collection-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: $wf-text-color;
    font-size: $wf-node-collection-title-font;
    font-weight: $wf-regular-font;
    line-height: 1.4;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .e-workflow-designer .e-wf-node-collection-cancel {
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: $wf-project-name-tile-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-transparent;
    color: $wf-text-muted-color;
    @if $skin-name == 'highcontrast' {
      color: $wf-simulation-entry-border;
    }
  }

  .e-workflow-designer .e-wf-node-collection-cancel:hover {
    border-color: $wf-input-border-color;
    background: $wf-hover-bg;

    @if $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' {
      color: $wf-text-muted-color;
    }
  }

  .e-workflow-designer .e-wf-node-collection-cancel:focus {
    outline: 2px solid $wf-brand-color;
    outline-offset: -2px;
  }

  .e-workflow-designer .e-wf-node-collection-cancel .e-icons {
    font-size: $wf-project-name-tile-font;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-node-collection-search {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: calc(100% - 32px);
    min-width: 0;
    margin: 12px 16px;
  }

  .e-workflow-designer .e-wf-node-collection-list {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden auto;
  }

  .e-workflow-designer .e-accordion {
    border-radius: 0;
  }

  .e-workflow-designer .e-wf-node-collection-category {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .e-workflow-designer .e-wf-node-collection-item {
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    gap: 6px;
    justify-content: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: $wf-simulation-log-clear-radius;
    color: $wf-text-color;
    font: inherit;
    text-align: left;
  }

  .e-workflow-designer .e-wf-property-label.e-wf-property-step-type-label {
    color: $wf-text-subtle-color;
  }

  .e-workflow-designer .e-wf-node-collection-item:hover {
    border-color: $wf-hover-border;
    @if $skin-name == 'bootstrap5' {
      background: $wf-node-collection-item-hover-bg;
    }
    @else {
      background: $wf-hover-light-bg;
    }
    @if $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' {
      color: $wf-node-collection-item-hover-color;
    }
  }

  .e-workflow-designer .e-wf-node-collection-item:focus {
    outline: 2px solid $wf-brand-color;
    outline-offset: -2px;
  }

  .e-workflow-designer .e-wf-node-collection-item-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: $wf-canvas-toolbar-radius;
    color: inherit;
    font-size: $wf-step-font;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-node-collection-empty {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 4px;
    color: $wf-secondary-color;
    font-size: $wf-body-font-alt;
    text-align: center;
  }

  .e-workflow-designer .e-wf-node-collection-empty {
    padding: 16px 4px;
    color: $wf-secondary-color;
    font-size: $wf-body-font-alt;
    text-align: center;
  }

  .e-workflow-designer .e-wf-dialog {
    position: absolute;
    inset: 20% 30%;
    z-index: 8;
    padding: 16px;
  }

  /* Centered form / prompt dialog shell */

  .e-wf-dialog .e-wf-form-input-dialog .e-wf-form-input-dialog-body .e-wf-form-input-field-label {
    display: block;
  }

  .e-wf-form-input-choice-group .e-wf-form-input-choice-checkbox-item {
    margin-right: 7px;
  }

  .e-workflow-designer .e-wf-form-input-dialog {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(440px, 100%);
    max-height: min(80vh, 640px);
    padding: 18px 20px;
    overflow: hidden;
  }

  .e-workflow-designer .e-wf-dialog-title {
    color: $wf-text-color;
    font-size: $wf-node-collection-title-font;
    font-weight: $wf-medium-font;
    line-height: 1.3;
  }

  .e-workflow-designer .e-wf-form-input-dialog-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
  }

  .e-workflow-designer .e-wf-approval-dialog.e-wf-dialog {
    width: 560px;
    max-height: min(300px, 80vh);
    overflow: auto;
    padding: 18px 20px;
  }

  .e-workflow-designer .e-wf-approval-dialog-header {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
  }

  .e-workflow-designer .e-wf-approval-dialog-title {
    margin: 0;
    font-size: $wf-node-collection-title-font;
    line-height: 1.3;
  }

  .e-workflow-designer .e-wf-approval-dialog-sub {
    color: $wf-text-muted-color;
    font-size: $wf-body-font-alt;
    line-height: 1.4;
  }

  .e-wf-dialog .e-wf-form-input-field {
    margin-bottom: 14px;
  }

  .e-wf-dialog .e-wf-form-input-field-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: $wf-text-color;
  }

  .e-wf-dialog .e-wf-form-input-field-error {
    color: $wf-error-dark-color;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.3;
  }

  .e-workflow-designer .e-wf-form-input-empty {
    padding: 16px 14px;
    border: $wf-approval-empty-border;
    border-radius: $wf-property-section-expand-radius;
    background: $wf-surface-alt-bg;
    color: $wf-text-muted-color;
    font-size: $wf-body-font-alt;
    line-height: 1.45;
    text-align: center;
  }

  .e-workflow-designer .e-wf-form-input-control.e-wf-form-input-invalid,
  .e-workflow-designer .e-wf-form-input-invalid {
    border-color: $wf-form-input-invalid-border;
    box-shadow: 0 0 0 3px $wf-form-input-invalid-shadow;
  }

  .e-workflow-designer .e-wf-form-input-control[type = 'date'] {
    color-scheme: light;
  }

  .e-workflow-designer .e-wf-form-field-row-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .e-workflow-designer .e-wf-form-input-choice-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .e-workflow-designer .e-wf-form-input-choice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: $wf-text-color;
    font-size: $wf-body-font-alt;
    font-weight: $wf-form-input-choice-item-font;
    cursor: pointer;
  }

  .e-workflow-designer .e-wf-property-list-host {
    display: block;
    width: 100%;
  }

  .e-workflow-designer .e-wf-query-parameters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .e-workflow-designer .e-wf-query-parameter-row {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr) 34px;
    gap: 6px;
    align-items: center;
    width: 100%;
  }

  .e-workflow-designer .e-wf-query-parameter-input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }

  .e-workflow-designer .e-wf-query-parameter-row > .e-wf-property-expr-preview {
    display: none;
  }

  .e-workflow-designer .e-wf-property-list-add {
    margin-top: 8px;
  }

  /* Structured list builders (form fields, conditions, switch branches) */
  .e-workflow-designer .e-wf-list-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .e-workflow-designer .e-wf-list-editor-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .e-workflow-designer .e-wf-list-editor-empty {
    padding: 12px 10px;
    border: $wf-approval-empty-border;
    border-radius: $wf-property-section-expand-radius;
    background: $wf-surface-alt-bg;
    color: $wf-text-muted-color;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.4;
    text-align: center;
  }

  .e-workflow-designer .e-wf-list-editor-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .e-workflow-designer .e-wf-list-editor-remove .e-icons {
    font-size: $wf-step-font;
  }

  .e-workflow-designer .e-wf-list-editor-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border-radius: $wf-property-section-expand-radius;
    @if $skin-name == 'highcontrast' {
      border-radius: 4px;
    }
    @if $skin-name == 'Material3' {
      border: $wf-canvas-toolbar-border;
    }
    @else {
      border: $wf-formatter-body-border-alt;
    }
    background: $wf-property-panel-sub-section-bg;
    @if $skin-name == 'tailwind3' or $skin-name == 'Material3' {
      background: $wf-empty-canvas-add-bg;
    }
  }

  .e-workflow-designer .e-wf-list-editor-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .e-workflow-designer .e-wf-list-editor-row-title {
    color: $wf-text-color;
    font-size: $wf-simulation-entry-font-size;
    font-weight: $wf-medium-font;
    letter-spacing: .04em;
  }

  .e-workflow-designer .e-wf-list-editor-row-body,
  .e-workflow-designer .e-wf-condition-rule-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .e-workflow-designer .e-wf-list-editor-subfield {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: $wf-text-color;
    font-size: $wf-simulation-log-list-font;
    font-weight: $wf-regular-font;
  }

  .e-workflow-designer .e-wf-list-editor-sublabel {
    @if $skin-name == 'Material3' {
      color: $wf-text-muted-color;
    }
    @else {
      color: $wf-text-color;
    }
    font-size: $wf-step-font;
    font-weight: $wf-simulation-entry-font-weight;
    letter-spacing: 0;
  }

  .e-workflow-designer .e-wf-list-editor-subfield-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
    margin: 8px 0;
  }

  .e-workflow-designer .e-wf-list-editor-subfield-row .e-wf-list-editor-subfield {
    min-width: 0;
  }

  .e-workflow-designer .e-wf-form-field-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: $wf-canvas-toolbar-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    @if $skin-name == 'highcontrast' {
      background: $wf-node-panel-bg;
    }
  }

  .e-workflow-designer .e-wf-list-editor-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .e-workflow-designer .e-wf-switch-branch-row .e-wf-condition-rule-block {
    margin-top: 2px;
  }

  .e-workflow-designer .e-wf-empty-canvas-add {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: $wf-canvas-toolbar-border;
    background: $wf-surface-alt-bg;
    color: $wf-text-color;
    @if $skin-name =='Material3' {
      border-radius: $wf-canvas-add-radius;
    }
    @else {
      border-radius: $wf-property-help-trigger-icon-radius;
    }
    @if $skin-name == 'highcontrast' {
      border: $wf-empty-canvas-add-border;
      background: $wf-empty-canvas-add-bg;
    }
    // font-family: $wf-empty-canvas-add-font;
    font-size: $wf-empty-canvas-add-font-alt;
    line-height: 1;
    cursor: pointer;
    transform: translate(-50%, -50%);
    @if $skin-name == 'Material3' {
      box-shadow: $wf-canvas-add-shadow;
    }
    @else {
      box-shadow: 0 2px 8px $wf-canvas-toolbar-shadow;
    }
  }

  .e-workflow-designer .e-wf-empty-canvas-add:not(:disabled):hover{
    @if $skin-name == 'Material3' {
      background: $wf-static-button-hover-bg;
      color: $wf-static-button-hover-color;
      border: $wf-static-button-hover-border;
    }
    @else {
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
      background: $wf-hover-bg;
    }
  }
  
  .e-workflow-designer .e-wf-empty-canvas-add:not(:disabled):active{
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
      background: $wf-pressed-bg;
    }
  }

  .e-workflow-designer .e-wf-empty-canvas-add:not(:disabled):focus{
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      color: $wf-text-color;
      border: $wf-canvas-toolbar-border;
      background: $wf-pressed-bg;
    }
  }
  .e-workflow-designer .e-wf-list-editor-add,
  .e-workflow-designer .e-wf-property-list-add{
    @if $skin-name == 'Material3' {
      border-radius: $wf-collapse-btn-border-radius;
    }
  }

  .e-workflow-designer .e-wf-empty-canvas-add .e-icons {
    font-size: $wf-empty-canvas-add-font-secondary;
  }

  /* Step card (canvas-rendered workflow step nodes) */
  .e-workflow-designer .e-wf-step-card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: visible;
    border: $wf-node-stroke-width solid $wf-canvas-neutral;
    background: $wf-white-fill;
    color: $wf-text-color;
    font-family: $wf-mono-font;
    font-size: $wf-step-font;
    line-height: 1.2;
    font-weight: $wf-medium-font;
    user-select: none;
  }

  .e-workflow-designer .e-wf-step-icon {
    display: inline-flex;
    flex: 0 0 $wf-node-icon-size;
    align-items: center;
    justify-content: center;
    color: $wf-brand-color;
    font-size: $wf-node-icon-font-size;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-step-icon-html.e-icons {
    display: inline-flex;
    flex: 0 0 $wf-node-icon-size;
    align-items: center;
    justify-content: center;
    width: $wf-node-icon-size;
    height: $wf-node-icon-size;
    color: $wf-step-primary-icon-color;
    font-size: $wf-node-icon-size;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-step-icon svg {
    width: $wf-node-icon-size;
    height: $wf-node-icon-size;
    -webkit-user-drag: none;
  }

  /* Node-name caption */
  .e-workflow-designer .e-wf-step-caption {
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100px;
    max-width: 100px;
    right: auto;
    margin-top: 6px;
    height: auto;
    padding: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    transform: translateX(-50%);
    font-size: $wf-step-caption-font-size;
    font-weight: $wf-medium-font;
    line-height: 1.25;
    color: $wf-step-caption-color;
    user-select: none;
  }

  /* Port labels container */
  .e-workflow-designer .e-wf-port-labels {
    position: absolute;
    top: 0;
    left: 100%;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    user-select: none;
  }

  .e-workflow-designer .e-diagram-endpoint-handle {
    display: none;
  }

  .e-workflow-designer .e-wf-port-label {
    position: absolute;
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 4px;
    background: $wf-formatter-body-bg;
    transform: translate(0, -50%);
    font-size: $wf-node-radius;
    font-weight: $wf-medium-font;
    line-height: 1.2;
    color: $wf-formatter-body-color;
    white-space: nowrap;
    text-transform: lowercase;
    user-select: none;
  }

  /* Syncfusion Diagram HTML-shape wrapper override */
  .e-workflow-designer .e-wf-canvas-host .e-html-layer,
  .e-workflow-designer .e-wf-canvas-host .e-html-node,
  .e-workflow-designer .e-wf-canvas-host .e-html-node-content {
    overflow: visible;
  }

  /* Runtime visual states for workflow-step HTML nodes */
  .e-workflow-designer .e-wf-step-card.e-wf-state-selected {
    outline: $wf-node-stroke-width solid $wf-brand-color;
    outline-offset: calc($wf-node-stroke-width * -1);
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-running .e-wf-execution-path {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    overflow: visible;
    content: '';
    pointer-events: none;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-running .e-wf-execution-path rect {
    fill: none;
    stroke: $wf-running-stroke-color;
    stroke-width: 4;
    stroke-dasharray: 12 8;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    animation: wf-running-stroke-dash 1.2s linear infinite;
  }

  @keyframes wf-running-stroke-dash {
    from {
      stroke-dashoffset: 0;
    }

    to {
      stroke-dashoffset: -40;
    }
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-running {
    background: $wf-white-fill;
    @if $skin-name == 'highcontrast' {
      border-color: $wf-step-running-border-color;
    }

    @else {
      border-color: $wf-brand-color;
    }
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-completed {
    background: $wf-completed-bg;
    border: $wf-node-stroke-width solid $wf-step-completed-border-color;
  }

  .e-wf-step-card.e-wf-state-completed .e-wf-step-icon-html {
    color: $wf-step-completed-border-color;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-completed.e-wf-step-selected {
    background: $wf-step-completed-selected-bg;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-failed.e-wf-step-selected {
    background: $wf-step-failed-selected-bg;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-state-failed {
    background: $wf-step-failed-bg;
    border: $wf-node-stroke-width solid $wf-step-failed-border-color;
  }

  .e-wf-step-card.e-wf-state-failed .e-wf-step-icon-html {
    color: $wf-step-failed-border-color;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-formatter-card.e-wf-state-completed .e-wf-step-label {
    color: $wf-formatter-completed-label-color;
  }

  /* Formatter runtime output card (POC Output node, e-wf-* project classes). */
  .e-workflow-designer .e-wf-formatter-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
  }

  .e-workflow-designer .e-wf-formatter-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .e-workflow-designer .e-wf-formatter-head .e-wf-step-label {
    max-width: 235px;
  }

  .e-workflow-designer .e-wf-formatter-body {
    box-sizing: border-box;
    flex: 1 1 auto;
    margin: 0;
    padding: 8px;
    min-height: 0;
    max-height: 118px;
    overflow: auto;
    border: $wf-formatter-body-border-color;
    border-radius: $wf-step-card-radius;
    background: $wf-formatter-body-bg;
    color: $wf-formatter-body-color;
    font-family: $wf-formatter-body-font;
    font-size: $wf-formatter-body-font-alt;
    font-weight: $wf-form-input-choice-item-font;
    line-height: 1.35;
    white-space: pre-wrap;
    text-align: left;
    pointer-events: auto;
    @if $skin-name == 'highcontrast' {
      background: $wf-formatter-body-high-contrast-bg;
      color: $wf-formatter-body-high-contrast-color;
    }
  }

  .e-workflow-designer .e-wf-formatter-rendered {
    font-family: $wf-formatter-rendered-font;
    font-size: $wf-property-pill-font;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-formatter-rendered p {
    margin: 0 0 6px;
  }

  .e-workflow-designer .e-wf-formatter-rendered h2,
  .e-workflow-designer .e-wf-formatter-rendered h3,
  .e-workflow-designer .e-wf-formatter-rendered h4 {
    margin: 0 0 6px;
    color: $wf-formatter-rendered-color;
  }

  .e-workflow-designer .e-wf-formatter-table {
    width: 100%;
    border-collapse: collapse;
    font-family: $wf-formatter-body-font;
    font-size: $wf-node-radius;
    color: $wf-formatter-table-header-color;
    @if $skin-name == 'highcontrast' {
      color: $wf-formatter-body-high-contrast-color;
    }
  }

  .e-workflow-designer .e-wf-formatter-table th,
  .e-workflow-designer .e-wf-formatter-table td {
    border: $wf-formatter-body-border-color;
    @if $skin-name == 'highcontrast' {
      border: $wf-formatter-table-border-color;
    }
    padding: 5px 6px;
    text-align: left;
    vertical-align: top;
    background: $wf-formatter-table-bg;
  }

  .e-workflow-designer .e-wf-formatter-table th {
    background: $wf-formatter-table-bg;
    color: $wf-formatter-table-header-color;
    font-weight: $wf-formatter-table-font;
    position: sticky;
    top: 0;
    @if $skin-name == 'highcontrast' {
      color: $wf-formatter-body-high-contrast-color;
    }
  }

  .e-workflow-designer .e-wf-formatter-md-list,
  .e-workflow-designer .e-wf-formatter-html-list {
    margin: 0;
    padding-left: 16px;
  }

  .e-workflow-designer .e-wf-formatter-md-list li,
  .e-workflow-designer .e-wf-formatter-html-list li {
    margin: 0 0 5px;
  }

  .e-workflow-designer .e-wf-formatter-md-list pre {
    margin: 3px 0;
    white-space: pre-wrap;
    font-size: $wf-node-radius;
  }

  .e-workflow-designer .e-wf-formatter-html-card {
    display: grid;
    gap: 5px;
  }

  .e-workflow-designer .e-wf-formatter-html-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 6px;
    align-items: start;
  }

  .e-workflow-designer .e-wf-formatter-html-row span {
    color: $wf-formatter-table-color;
    font-weight: $wf-formatter-table-font;
  }

  .e-workflow-designer .e-wf-formatter-html-row b {
    font-weight: $wf-medium-font;
    color: $wf-formatter-body-color;
  }

  .e-workflow-designer .e-wf-sticky-note-content {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: $wf-transparent;
  }

  .e-workflow-designer .e-wf-sticky-note-preview,
  .e-workflow-designer .e-wf-sticky-note-editor {
    box-sizing: border-box;
    position: absolute;
    inset: 8px;
    margin: 0;
    font: inherit;
    line-height: 1.35;
    border-radius: $wf-node-radius;
  }

  .e-workflow-designer .e-wf-sticky-note-preview {
    padding: 4px 8px;
    overflow: auto;
    white-space: pre-wrap;
    background: $wf-transparent;
    border: $wf-property-panel-border;
    user-select: none;
  }

  .e-workflow-designer .e-wf-sticky-note-editor {
    user-select: all;
  }

  .e-workflow-designer .e-wf-sticky-note-preview h1,
  .e-workflow-designer .e-wf-sticky-note-preview h2,
  .e-workflow-designer .e-wf-sticky-note-preview h3 {
    margin: 0 0 6px;
    line-height: 1.15;
  }

  .e-workflow-designer .e-wf-sticky-note-preview li {
    margin-left: 20px;
    list-style-type: disc;
    display: list-item;
  }

  .e-workflow-designer .e-wf-sticky-note-preview code {
    padding: 1px 3px;
    border-radius: $wf-sticky-note-preview-radius;
    background: $wf-sticky-note-preview-code-bg;
    color: $wf-sticky-note-preview-color;
    font-family: $wf-execution-details-content-font;
  }

  .e-workflow-designer .e-wf-sticky-note-editor {
    resize: none;
    padding: 8px;
    border: $wf-sticky-note-editor-border;
    background: $wf-sticky-note-editor-bg;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-wf-sticky-color-input {
    border-radius: $wf-canvas-toolbar-radius;
    border: $wf-simulation-log-panel-border;
    background: $wf-light-color;
    padding: 0;
    cursor: pointer;
  }

  .e-workflow-designer.e-control-highcontrast .e-wf-sticky-note-editor,
  .e-workflow-designer.e-highcontrast .e-wf-sticky-note-editor {
    background-color: $wf-high-contrast-bg;
    color: $wf-light-color;
    box-shadow: none;
  }

  /* aria-live selection-announcement region (FR-036). */
  .e-workflow-designer .e-wf-aria-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: $wf-property-panel-border;
  }

  .e-workflow-designer .e-wf-command-palette {
    position: absolute;
    top: 48px;
    left: 50%;
    z-index: 9;
    width: 420px;
    transform: translateX(-50%);
    padding: 8px;
    background: $wf-light-color;
    border: $wf-command-palette-border;
    box-shadow: 0 8px 24px $wf-command-palette-shadow;
  }

  .e-workflow-designer .e-wf-command-palette-input,
  .e-workflow-designer .e-wf-command-palette-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .e-workflow-designer .e-wf-property-panel-left,
  .e-workflow-designer .e-wf-property-section-left {
    left: 0;
    right: auto;
    border-left: $wf-property-panel-border;
    border-right: $wf-simulation-log-panel-border;
  }

  .e-workflow-designer .e-wf-property-panel-left .e-wf-property-section-expand {
    left: 8px;
    right: auto;
  }

  /* Diagram selection chrome (corner-stripe removed, rounded rectangle selector). */
  .e-workflow-designer .e-diagram-selector {
    stroke: none;
    stroke-dasharray: none;
    rx: 4px;
    ry: 4px;
  }

  .e-workflow-designer.e-wf-selection-state-running .e-diagram-selector {
    fill: $wf-selection-running-fill;
    stroke: none;
    filter: drop-shadow(0 0 5px $wf-selection-running-fill);
    rx: 4px;
    ry: 4px;
    opacity: .17;
  }

  .e-workflow-designer.e-wf-selection-state-sticky-note .e-diagram-selector {
    fill: $wf-transparent;
  }

  .e-workflow-designer.e-wf-selection-state-completed .e-diagram-selector {
    stroke: none;
    rx: 4px;
    ry: 4px;
    opacity: .17;
  }

  .e-workflow-designer.e-wf-selection-state-failed .e-diagram-selector {
    stroke: none;
    rx: 4px;
    ry: 4px;
    opacity: .17;
  }

  .e-workflow-designer .e-wf-step-card.e-wf-step-card-selected {
    box-shadow: $wf-diagram-selector-shadow;
  }

  .e-workflow-designer .e-wf-simulation-log-search {
    width: 120px;
    min-width: 72px;
    max-width: 180px;
  }

  .e-workflow-designer .e-wf-simulation-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    /* Compact execution header (Issue 5 / imageb). */
    padding: 6px 12px;
    font-weight: $wf-medium-font;
    color: $wf-text-color;
    background: $wf-light-color;
    border-bottom: $wf-canvas-toolbar-border;
    @if $skin-name == 'highcontrast' {
      background: $wf-node-panel-bg;
      border-bottom: $wf-property-field-border;
    }
  }

  .e-workflow-designer .e-wf-simulation-summary-status {
    font-size: $wf-simulation-entry-font-size;
    font-weight: $wf-simulation-entry-state-font-weight;
    letter-spacing: 0;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-wf-simulation-summary-status-completed {
    color: $wf-completed;
    @if $skin-name == 'highcontrast' {
      color: $wf-simulation-entry-status-icon-color-success;
    }
  }

  .e-workflow-designer .e-wf-simulation-summary-status-failed {
    color: $wf-error-dark-color;
  }

  .e-workflow-designer .e-wf-simulation-summary-status-stopped {
    color: $wf-simulation-summary-status-stopped-color;
  }

  .e-workflow-designer .e-wf-simulation-summary-status-running {
    color: $wf-brand-color;
  }

  .e-workflow-designer .e-wf-simulation-summary-meta {
    color: $wf-text-muted-color;
    font-size: $wf-simulation-log-list-font;
    font-weight: $wf-regular-font;
  }

  .e-workflow-designer .e-wf-simulation-summary-steps,
  .e-workflow-designer .e-wf-simulation-summary-duration {
    color: $wf-text-color;
    font-weight: $wf-simulation-entry-font-weight;
    font-size: $wf-simulation-entry-font-size;
  }

  /* Global Workflow Designer scrollbar theme */
  .e-workflow-designer,
  .e-workflow-designer * {
    scrollbar-width: thin;
  }

  /* Chromium, Edge and Safari */
  .e-workflow-designer::-webkit-scrollbar,
  .e-workflow-designer *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .e-workflow-designer::-webkit-scrollbar-track,
  .e-workflow-designer *::-webkit-scrollbar-track {
    background: $wf-transparent;
  }

  .e-workflow-designer::-webkit-scrollbar-thumb,
  .e-workflow-designer *::-webkit-scrollbar-thumb {
    min-width: 32px;
    min-height: 32px;
    border: $wf-project-name-tile-border;
    border-radius: $wf-approval-reviewer-chip-radius;
    background-color: $wf-common-scrollbar-color;
    background-clip: padding-box;
  }

  .e-workflow-designer::-webkit-scrollbar-thumb:hover,
  .e-workflow-designer *::-webkit-scrollbar-thumb:hover {
    background-color: $wf-common-bg;
  }

  .e-workflow-designer::-webkit-scrollbar-thumb:active,
  .e-workflow-designer *::-webkit-scrollbar-thumb:active {
    background-color: $wf-common-bg-alt;
  }

  .e-workflow-designer::-webkit-scrollbar-corner,
  .e-workflow-designer *::-webkit-scrollbar-corner {
    background: $wf-transparent;
  }

  .e-workflow-designer .e-wf-simulation-entry-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: $wf-simulation-log-clear-radius;
    background: $wf-transparent;
    color: $wf-text-muted-color;
    cursor: pointer;
  }

  .e-workflow-designer .e-wf-simulation-entry-expand:hover {
    background: $wf-simulation-entry-expand-bg;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-wf-simulation-entry-expand-icon {
    font-size: $wf-simulation-log-list-font;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-simulation-entry-children {
    display: none;
    margin: 0;
    background: $wf-light-color;
    border: $wf-simulation-entry-children-border-alt;
  }

  .e-workflow-designer .e-wf-simulation-entry-expanded > .e-wf-simulation-entry-children {
    display: block;
  }

  .e-workflow-designer .e-wf-simulation-entry-child {
    color: $wf-failed;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.4;
    padding: 2px;
  }

  .e-workflow-designer .e-wf-simulation-entry-child::marker  {
    color: $wf-simulation-entry-status-icon-color-failed;
  }

  .e-workflow-designer .e-wf-simulation-entry-child-message {
    min-width: 0;
    white-space: normal;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-simulation-entry-expandable.e-wf-simulation-entry-expanded.e-wf-simulation-entry-selected {
    background: $wf-simulation-entry-children-bg;
  }

  /* Variable Picker popup */

  .e-wf-varpicker *,
  .e-wf-varpicker *::before,
  .e-wf-varpicker *::after {
    box-sizing: border-box;
  }

  .e-wf-varpicker-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
  }

  .e-wf-varpicker .e-dlg-content {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .e-wf-varpicker.e-dialog {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .e-wf-varpicker .e-dlg-header-content {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: $wf-regular-font;
  }

  .e-wf-varpicker .e-dlg-header {
    min-height: 36px;
  }

  .e-wf-varpicker .e-dlg-closeicon-btn {
    width: 28px;
    height: 28px;
  }

  .e-wf-varpicker-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px 6px 8px;
    touch-action: pan-y;
    user-select: none;
  }

  .e-wf-varpicker-group {
    margin: 3px 2px;
  }

  .e-wf-varpicker-group-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid $wf-border-soft-color;
    border-radius: $wf-node-radius;
    background: $wf-surface-alt-bg;
    color: $wf-text-color;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
  }

  .e-wf-varpicker-caret,
  .e-wf-varpicker-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    font-size: $wf-font-icon-twelve;
    line-height: 1;
    user-select: none;
  }

  .e-wf-varpicker-caret {
    flex-basis: 24px;
  }

  .e-wf-varpicker-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: $wf-font-icon-ten;
    line-height: 1;
  }

  .e-wf-varpicker-group-title {
    font-weight: $wf-regular-font;
    font-size: $wf-body-font-alt;
    color: $wf-text-color;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .e-wf-varpicker-group-spacer {
    flex: 1 1 auto;
  }

  .e-wf-varpicker-group-subtitle {
    margin-left: 4px;
    font-size: $wf-simulation-entry-time-font;
    color: $wf-text-muted-color;
    text-transform: none;
    letter-spacing: 0;
    font-weight: $wf-property-help-trigger-font;
  }

  .e-wf-varpicker-group-count {
    font-size: $wf-body-font-alt;
    color: $wf-text-muted-color;
    background: $wf-canvas-bg;
    border: 1px solid $wf-border-soft-color;
    border-radius: $wf-approval-reviewer-chip-radius;
    padding: 1px 6px;
    font-weight: $wf-regular-font;
  }

  .e-wf-varpicker-group-body {
    padding: 5px 2px 4px;
  }

  .e-wf-varpicker-flatlist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .e-wf-varpicker-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    margin: 2px 0;
    border-radius: $wf-canvas-toolbar-radius;
    transition: background-color .12s ease;
  }

  .e-wf-varpicker-tree-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    min-width: 14px;
    height: 14px;
  }

  .e-wf-varpicker-tree-toggle {
    flex-basis: 20px;
    border-radius: $wf-simulation-log-clear-radius;
    cursor: pointer;
  }

  .e-wf-varpicker .e-wf-varpicker-key.e-btn,
  .e-wf-varpicker-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: $wf-canvas-toolbar-radius;
    flex: 0 0 auto;
    font-size: $wf-body-font-alt;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
  }

  .e-wf-varpicker-preview {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: $wf-text-muted-color;
    font-size: 11px;
  }

  .e-wf-varpicker-type {
    font-size: 9px;
    color: $wf-text-subtle-color;
    border: 1px solid $wf-border-soft-color;
    border-radius: 8px;
    padding: 1px 5px;
    flex: 0 0 auto;
    background: $wf-canvas-bg;
  }

  .e-wf-varpicker-empty {
    padding: 12px;
    color: $wf-text-muted-color;
    font-size: 12px;
    text-align: center;
  }

  /* Revamped variable picker: root marker (the $ badge) and toggle visibility. */
  .e-wf-varpicker-root-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: $wf-canvas-bg;
    color: $wf-text-color;
    font-weight: $wf-property-help-trigger-font;
    font-size: $wf-body-font-alt;
    flex: 0 0 24px;
    cursor: default;
  }

  .e-wf-varpicker-collapsed {
    display: none;
  }

  /* AI Assist clarification-question card */
  .e-workflow-ai-assist-host,
  .e-workflow-designer .e-workflow-ai-assist-host {
    padding: 0 8px;
    box-sizing: border-box;
  }

  .e-workflow-ai-assist-host .e-wf-ai-conversation-questions,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-conversation-questions {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    align-content: center;
    box-sizing: border-box;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: $wf-simulation-log-panel-border;
    border-radius: $wf-node-radius;
    background: $wf-surface-muted-bg;
    box-sizing: border-box;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-label,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-label {
    margin: 0;
    color: $wf-text-color;
    font-weight: $wf-medium-font;
    font-size: $wf-property-empty-font;
    line-height: 1.4;
    font-family: $wf-mono-font;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-select,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    border: $wf-property-section-expand-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    color: $wf-text-color;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-option,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
    color: $wf-text-color;
  }

  .e-workflow-designer .e-output-container {
    min-height: auto;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-text-hint,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-text-hint {
    padding: 8px 10px;
    border: $wf-approval-empty-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-surface-alt-bg;
    color: $wf-text-muted-color;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-text-input,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-text-input {
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: $wf-property-section-expand-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    color: $wf-text-color;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-text-input:focus,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-text-input:focus {
    border-color: $wf-ai-question-text-input-border;
    box-shadow: 0 0 0 2px $wf-ai-question-text-input-shadow;
  }

  .e-workflow-ai-assist-host .e-wf-ai-manual-answer,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-manual-answer {
    padding: 8px 10px;
    border: $wf-simulation-log-panel-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-formatter-body-bg;
    color: $wf-text-color;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-navigation,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-nav,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-nav {
    width: 32px;
    height: 32px;
    padding: 0;
    border: $wf-property-section-expand-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    color: $wf-text-muted-color;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-nav .e-icons,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-nav .e-icons {
    font-size: $wf-step-font;
    line-height: 1;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-nav[disabled],
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-nav[disabled] {
    color: $wf-disabled-color;
    cursor: default;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-progress,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-progress {
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1;
    font-family: $wf-mono-font;
    color: $wf-text-muted-color;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-actions,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-left: 1px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-question-submit,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-question-submit {
    padding: 8px 14px;
    border: $wf-ai-question-submit-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-brand-color;
    color: $wf-light-color;
    font-weight: $wf-medium-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1;
    font-family: $wf-mono-font;
    cursor: pointer;
  }

  .e-workflow-ai-assist-host .e-wf-ai-start-over,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-start-over {
    padding: 8px 14px;
    border: $wf-property-section-expand-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-light-color;
    color: $wf-text-muted-color;
    font-weight: $wf-medium-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1;
    font-family: $wf-mono-font;
    cursor: pointer;
  }

  .e-workflow-ai-assist-host .e-wf-ai-error,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-error {
    padding: 8px 10px;
    border: $wf-ai-error-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-failed-bg;
    color: $wf-error-dark-color;
    font-weight: $wf-form-input-choice-item-font;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.2;
    font-family: $wf-mono-font;
  }

  /* AI Assist thinking indicator (analyzing / generating status) */
  .e-workflow-ai-assist-host .e-wf-ai-thinking,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-thinking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-thinking-dots,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i,
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i {
    width: 6px;
    height: 6px;
    border-radius: $wf-property-help-trigger-icon-radius;
    background: currentColor;
    opacity: .25;
    animation: e-wf-ai-thinking 1.1s ease-in-out infinite;
    display: inline-block;
  }

  .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i:nth-child(2),
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i:nth-child(2) {
    animation-delay: .18s;
  }

  .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i:nth-child(3),
  .e-workflow-designer .e-workflow-ai-assist-host .e-wf-ai-thinking-dots i:nth-child(3) {
    animation-delay: .36s;
  }

  @keyframes e-wf-ai-thinking {

    0%,
    80%,
    100% {
      opacity: .25;
      transform: translateY(0);
    }

    40% {
      opacity: 1;
      transform: translateY(-3px);
    }
  }

  /* AI assist box polish */
  .e-workflow-ai-assist-host,
  .e-workflow-designer .e-workflow-ai-assist-host {
    border-radius: $wf-step-font;
    overflow: hidden;
  }

  .e-workflow-ai-assist-host .e-suggestion-list,
  .e-workflow-ai-assist-host .e-prompt-suggestions,
  .e-workflow-designer .e-workflow-ai-assist-host .e-suggestion-list,
  .e-workflow-designer .e-workflow-ai-assist-host .e-prompt-suggestions {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    gap: 8px 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .e-workflow-ai-assist-host .e-suggestion-list-item,
  .e-workflow-ai-assist-host .e-prompt-suggestion-item,
  .e-workflow-designer .e-workflow-ai-assist-host .e-suggestion-list-item,
  .e-workflow-designer .e-workflow-ai-assist-host .e-prompt-suggestion-item {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  /* Credential link (property-panel inline row, AI step) */
  .e-workflow-designer .e-wf-credential-link {
    height: 31px;
  }

  .e-wf-ai-assist-settings-gear .e-btn-icon {
    margin-top: 0;
  }

  .e-workflow-designer .e-wf-node-collection-cancel .e-btn-icon {
    margin-top: 0;
  }

  .e-wf-ai-assist-close .e-btn-icon {
    margin-top: 0;
  }

  /* Row showing the currently-stored credential as masked dots. */
  .e-wf-credential-dialog-current {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border: $wf-simulation-log-panel-border;
    border-radius: $wf-canvas-toolbar-radius;
    background: $wf-surface-muted-bg;
  }

  .e-wf-credential-dialog-current-label {
    color: $wf-text-muted-color;
    font-size: $wf-property-pill-font;
    font-weight: $wf-medium-font;
    letter-spacing: .04em;
  }

  .e-wf-credential-dialog-current-value {
    color: $wf-text-color;
    font-size: $wf-body-font-alt;
    font-weight: $wf-medium-font;
    font-family: $wf-execution-details-content-font;
    letter-spacing: .08em;
  }

  /* Inline error message inside the credential dialog. */
  .e-workflow-ai-assist-host {
    font-family: inherit;
  }

  /* Keep the Syncfusion AIAssistView shell constrained to the host width */
  .e-workflow-ai-assist-host .e-footer.e-footer-focus-wave-effect.e-toolbar-inline {
    width: calc(100% - 10px);
  }

  .e-workflow-ai-assist-host .e-wf-ai-assist-settings-gear {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    right: 40px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-assist-close {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 0;
    right: 5px;
    top: 15px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-assist-settings-gear .e-settings {
    width: 18px;
    height: 18px;
    font-size: $wf-property-section-expand-font;
    line-height: 18px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-assist-settings-gear:focus {
    outline: 2px solid $wf-brand-color;
    outline-offset: 2px;
  }

  .e-workflow-ai-assist-host .e-wf-ai-assist-settings-gear--inline {
    align-self: center;
  }

  .e-wf-ai-assist-settings-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .e-wf-ai-assist-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .e-wf-ai-assist-field-label {
    font-size: $wf-simulation-log-list-font;
    font-weight: $wf-medium-font;
    color: $wf-label-color;
    letter-spacing: .04em;
  }

  .e-wf-ai-assist-control {
    display: flex;
    gap: 6px;
  }

  .e-wf-ai-assist-control select,
  .e-wf-ai-assist-control input,
  .e-wf-ai-assist-input,
  .e-wf-ai-assist-select {
    width: 100%;
    padding: 6px 8px;
    border: $wf-ai-assist-select-border;
    border-radius: $wf-simulation-log-clear-radius;
    font-size: $wf-body-font-alt;
    font-family: inherit;
    box-sizing: border-box;
    background: $wf-light-color;
    color: $wf-ai-assist-select-color;
  }

  .e-wf-ai-assist-control select:focus,
  .e-wf-ai-assist-control input:focus {
    outline: 2px solid $wf-brand-color;
    outline-offset: 1px;
  }

  .e-wf-ai-assist-radio-row {
    display: flex;
    gap: 12px;
  }

  .e-wf-ai-assist-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: $wf-body-font-alt;
    color: $wf-ai-assist-select-color;
  }

  .e-wf-ai-assist-credential-helper {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .e-wf-ai-assist-credential-saved-hint {
    font-size: $wf-property-pill-font;
    color: $wf-ai-assist-credential-saved-hint-color;
    font-family: $wf-execution-details-content-font;
    word-break: break-all;
  }

  .e-wf-ai-assist-cancel {
    border-color: $wf-control-border;
    background: $wf-light-color;
    color: $wf-label-color;
  }

  .e-wf-ai-assist-cancel:hover {
    background: $wf-hover-bg;
  }

  .e-wf-ai-assist-save {
    border-color: $wf-brand-color;
    background: $wf-brand-color;
    color: $wf-light-color;
  }

  .e-wf-ai-assist-save:hover {
    background: $wf-brand-dark-color;
  }

  /* AI Assist conversation question card */
  .e-workflow-designer .e-wf-ai-conversation-questions {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: 300px;
    flex: 1 0 100%;
    align-self: stretch;
    margin: 12px 0 4px;
    padding: 12px 14px;
    color: $wf-ai-assist-select-color;
    font: inherit;
    font-size: $wf-body-font-alt;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: scroll;
  }

  .e-workflow-designer .e-wf-ai-conversation-questions *,
  .e-workflow-designer .e-wf-ai-conversation-questions *::before,
  .e-workflow-designer .e-wf-ai-conversation-questions *::after {
    box-sizing: border-box;
  }

  .e-workflow-designer .e-wf-ai-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .e-workflow-designer .e-wf-ai-question-label {
    font-weight: $wf-medium-font;
    font-size: $wf-body-font-alt;
    color: $wf-ai-assist-select-color;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-ai-question-select,
  .e-workflow-designer .e-wf-ai-question-option {
    width: 100%;
    max-width: 100%;
    font: inherit;
    color: $wf-ai-assist-select-color;
  }

  .e-workflow-designer .e-wf-ai-question-option {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 2px 0;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-ai-question-option input[type = 'checkbox'] {
    flex: 0 0 auto;
    margin-top: 3px;
  }

  .e-workflow-designer .e-wf-ai-question-text-hint {
    color: $wf-text-muted-color;
    font-size: $wf-simulation-log-list-font;
    font-style: $wf-ai-question-text-hint-font-alt;
  }

  .e-workflow-designer .e-wf-ai-manual-answer {
    color: $wf-brand-color;
    font-size: $wf-simulation-log-list-font;
    background: $wf-hover-light-bg;
    border-left: $wf-ai-manual-answer-border;
    padding: 4px 8px;
    border-radius: $wf-simulation-log-clear-radius;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-ai-question-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .e-workflow-designer .e-wf-ai-question-nav {
    width: 28px;
    height: 28px;
    border: $wf-ai-assist-select-border;
    border-radius: $wf-property-help-trigger-icon-radius;
    background: $wf-light-color;
    color: $wf-brand-color;
    cursor: pointer;
    font-size: $wf-step-font;
    line-height: 1;
  }

  .e-workflow-designer .e-wf-ai-question-nav:disabled {
    opacity: .4;
    cursor: not-allowed;
  }

  .e-workflow-designer .e-wf-ai-question-progress {
    font-size: $wf-simulation-log-list-font;
    color: $wf-label-color;
    font-weight: $wf-medium-font;
  }

  .e-workflow-designer .e-wf-ai-question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .e-workflow-designer .e-wf-ai-question-actions button {
    flex: 0 0 auto;
    font: inherit;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: $wf-simulation-log-clear-radius;
    border: $wf-ai-assist-select-border;
    background: $wf-light-color;
    color: $wf-ai-assist-select-color;
    font-size: $wf-simulation-log-list-font;
  }

  .e-workflow-designer .e-wf-ai-question-actions button:hover {
    background: $wf-hover-bg;
  }

  .e-workflow-designer .e-wf-ai-question-actions .e-wf-ai-question-submit {
    border-color: $wf-brand-color;
    background: $wf-brand-color;
    color: $wf-light-color;
  }

  .e-workflow-designer .e-wf-ai-question-actions .e-wf-ai-question-submit:hover {
    background: $wf-brand-dark-color;
  }

  .e-workflow-designer .e-wf-ai-question-actions .e-wf-ai-start-over {
    border-color: $wf-failed-border;
    color: $wf-error-dark-color;
  }

  .e-workflow-designer .e-wf-ai-question-actions .e-wf-ai-open-settings {
    border-color: $wf-brand-color;
    color: $wf-brand-color;
  }

  .e-workflow-designer .e-wf-ai-error {
    color: $wf-error-dark-color;
    font-size: $wf-body-font-alt;
    word-break: break-word;
  }

  .e-workflow-designer .e-wf-user-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border: $wf-canvas-toolbar-border;
    background: $wf-surface-alt-bg;
    color: $wf-text-color;
    @if $skin-name == 'highcontrast' {
      background: $wf-node-panel-bg;
      padding: 0;
    }
    @if $skin-name == 'Material3' {
      padding: 0;
    }
  }

  .e-workflow-designer .e-wf-user-handle:not(:disabled):hover {
    @if $skin-name == 'Material3' {
      background: $wf-static-button-hover-bg;
      color: $wf-static-button-hover-color;
      border: $wf-static-button-hover-border;
    }
    @else {
      color: $wf-text-color;
      background: $wf-hover-bg;
    }
  }

  .e-workflow-designer .e-wf-user-handle:not(:disabled):active {
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      color: $wf-text-color;
      background: $wf-pressed-bg;
    }
  }

  .e-workflow-designer .e-wf-user-handle:not(:disabled):focus {
    @if $skin-name == 'Material3' {
      background: $wf-static-button-selected-bg;
      color: $wf-static-button-selected-color;
      border: $wf-static-button-selected-border;
    }
    @else {
      color: $wf-text-color;
      background: $wf-pressed-bg;
    }
  }

  /* Global approval dialog content styles */
  
  .e-wf-approval-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .e-wf-approval-section-label {
    color: $wf-text-color;
    font-size: $wf-node-collection-title-font;
    font-weight: $wf-medium-font;
    letter-spacing: 0;
  }
  
  .e-wf-approval-reviewers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 2px;
  }
  
  .e-wf-approval-reviewer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid $wf-simulation-entry-border;
    border-radius: $wf-simulation-log-clear-radius;
    background: $wf-transparent;
    @if $skin-name == 'Material3' {
      border: 1px solid $wf-approval-reviewer-card-border;
    }
  }
  
  .e-wf-approval-reviewer-name {
    overflow: hidden;
    color: $wf-text-color;
    font-size: $wf-simulation-entry-font-size;
    font-weight: $wf-simulation-entry-font-weight;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .e-wf-approval-reviewer-chip {
    display: inline-block;
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: $wf-approval-reviewer-chip-radius;
    border: 1px solid $wf-help-title;
    background: $wf-transparent;
    color: $wf-help-title;
    font-size: $wf-simulation-entry-time-font;
    font-weight: $wf-regular-font;
    letter-spacing: .02em;
    line-height: 1.6;
  }
  
  .e-wf-approval-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid $wf-approval-reviewer-card-border;
    border-radius: $wf-simulation-log-clear-radius;
    background: $wf-transparent;
    overflow: hidden;
  }
  
  .e-wf-approval-row {
    display: grid;
    grid-template-columns: minmax(110px, 28%) 1fr;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid $wf-border-soft-color;
    @if $skin-name == 'highcontrast' {
      border-bottom: $wf-property-field-border;
    }
  }
  
  .e-wf-approval-row:last-child {
    border-bottom: none;
  }
  
  .e-wf-approval-label {
    color: $wf-text-color;
    font-size: $wf-node-collection-title-font;
  }
  
  .e-wf-approval-value {
    overflow: hidden;
    color: $wf-text-color;
    font-size: $wf-node-collection-title-font;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .e-wf-approval-empty {
    padding: 12px 14px;
    border: 1px dashed $wf-border-soft-color;
    border-radius: $wf-property-section-expand-radius;
    background: $wf-surface-alt-bg;
    color: $wf-text-muted-color;
    font-size: $wf-body-font-alt;
    line-height: 1.45;
  }
  
  .e-wf-approval-comment-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .e-wf-approval-comment-wrap[hidden] {
    display: none;
  }
  
  .e-wf-approval-comment-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: $wf-project-name-tile-color;
    font-size: $wf-simulation-log-list-font;
    font-weight: $wf-medium-font;
  }

  .e-wf-approval-comment-label {
    color: $wf-approval-comment-label-color;
  }
  
  .e-wf-approval-comment {
    min-height: 64px;
  }
  
  .e-wf-approval-comment-error {
    color: $wf-error-dark-color;
    font-size: $wf-simulation-log-list-font;
    line-height: 1.3;
  }
  
  .e-wf-approval-comment-error[hidden] {
    display: none;
  }
}
