:root {
  --flowgraph-surface: #ffffff;
  --flowgraph-surface-secondary: #fafafa;
  --flowgraph-surface-muted: #eef1f4;
  --flowgraph-surface-node: #242a33;
  --flowgraph-surface-node-header: #303947;
  --flowgraph-text: #263238;
  --flowgraph-text-muted: #727d88;
  --flowgraph-text-subtle: #52606d;
  --flowgraph-border: #d7dde3;
  --flowgraph-border-strong: #697383;
  --flowgraph-hover: #f5f9fd;
  --flowgraph-selection: #e3f2fd;
  --flowgraph-code-background: #eef1f4;
  --flowgraph-code-text: #263238;
  --flowgraph-node-text: #e8edf2;
  --flowgraph-node-code-background: #303640;
  --flowgraph-node-port-text: #bac5d1;
  --flowgraph-node-instance-text: #aeb9c7;
  --flowgraph-node-background: #242a33;
  --flowgraph-node-header-border: #566171;
  --flowgraph-node-select-surface: #242a33;
  --flowgraph-node-select-text: #e8edf2;
  --flowgraph-node-select-border: #566171;
  --flowgraph-node-select-hover: #343b46;
  --flowgraph-node-select-selection: #263d52;
  --flowgraph-inspector-background: #eef1f4;
  --flowgraph-inspector-textarea-background: #ffffff;
  --flowgraph-divider: #888;
  --flowgraph-accent: #90caf9;
  --flowgraph-port-handle: #55a7df;
  --flowgraph-error-text: #ffb4ab;
  --flowgraph-error-background: rgb(186 26 26 / 18%);
  --flowgraph-error-border: rgb(255 180 171 / 45%);
  --flowgraph-conversion: #ffb300;
  --flowgraph-shadow: rgb(0 0 0 / 28%);
  --flowgraph-canvas: #eef1f4;
  --flowgraph-canvas-grid: #c6d0db;
  --flowgraph-scrollbar-track: #eef1f4;
  --flowgraph-scrollbar-thumb: #b8c2cc;
  --flowgraph-scrollbar-thumb-hover: #9ca8b4;
  --flowgraph-blue: 100 181 246;
  --flowgraph-blue-dark: 33 150 243;
  --flowgraph-blue-light: 144 202 249;
  --flowgraph-white: 255 255 255;
  --v-theme-background: 255 255 255;
  --v-theme-surface: 255 255 255;
  --v-theme-surface-variant: 238 241 244;
  --v-theme-on-background: 38 50 56;
  --v-theme-on-surface: 38 50 56;
  --v-theme-on-surface-variant: 82 96 109;
  --flowgraph-node-radius: 10px;
  --flowgraph-node-header-radius: 10px 10px 0 0;
  --flowgraph-web-empty-state: rgb(250 250 250 / 90%);
  --flowgraph-web-radius: 10px;
  --flowgraph-web-sidebar-width: 272px;
  --flowgraph-web-inspector-width: 330px;
}

.v-theme--dark,
html[data-theme="dark"] {
  --flowgraph-surface: #1e2228;
  --flowgraph-surface-secondary: #252a31;
  --flowgraph-surface-muted: #303640;
  --flowgraph-surface-node: #242a33;
  --flowgraph-surface-node-header: #303947;
  --flowgraph-text: #e8edf2;
  --flowgraph-text-muted: #aab4c0;
  --flowgraph-text-subtle: #bac5d1;
  --flowgraph-border: 30 34 40;
  --flowgraph-border-strong: #697383;
  --flowgraph-hover: #343b46;
  --flowgraph-selection: #263d52;
  --flowgraph-code-background: #303640;
  --flowgraph-code-text: #e8edf2;
  --flowgraph-node-text: #e8edf2;
  --flowgraph-node-code-background: #303640;
  --flowgraph-node-select-surface: #242a33;
  --flowgraph-node-select-text: #e8edf2;
  --flowgraph-node-select-border: #566171;
  --flowgraph-node-select-hover: #343b46;
  --flowgraph-node-select-selection: #263d52;
  --flowgraph-inspector-background: #20252d;
  --flowgraph-inspector-textarea-background: #171b21;
  --flowgraph-divider: #888;
  --flowgraph-accent: #90caf9;
  --flowgraph-port-handle: #55a7df;
  --flowgraph-error-text: #ffb4ab;
  --flowgraph-error-background: rgb(186 26 26 / 18%);
  --flowgraph-error-border: rgb(255 180 171 / 45%);
  --flowgraph-conversion: #ffb300;
  --flowgraph-shadow: rgb(0 0 0 / 28%);
  --flowgraph-canvas: #20252d;
  --flowgraph-canvas-grid: #3e4856;
  --flowgraph-scrollbar-track: #1e2228;
  --flowgraph-scrollbar-thumb: 30 34 40;
  --flowgraph-scrollbar-thumb-hover: #697383;
  --flowgraph-blue: 100 181 246;
  --flowgraph-blue-dark: 33 150 243;
  --flowgraph-blue-light: 144 202 249;
  --flowgraph-white: 255 255 255;
  --v-theme-background: 30 34 40;
  --v-theme-surface: 30 34 40;
  --v-theme-surface-variant: 48 54 64;
  --v-theme-on-background: 232 237 242;
  --v-theme-on-surface: 232 237 242;
  --v-theme-on-surface-variant: 186 197 209;
  --flowgraph-node-radius: 10px;
  --flowgraph-node-header-radius: 10px 10px 0 0;
  --flowgraph-web-empty-state: rgb(37 42 49 / 86%);
}

.flowgraph-app-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.flowgraph-toolbar-title {
  flex: 0 0 auto !important;
}

.v-application,
.v-application__wrap {
  color: var(--flowgraph-text);
  background: var(--flowgraph-surface);
}

.v-toolbar,
.v-app-bar,
.v-navigation-drawer {
  color: var(--flowgraph-text) !important;
  background: var(--flowgraph-surface-secondary) !important;
  border-color: var(--flowgraph-border) !important;
}

.v-overlay__content > .v-list,
.v-overlay__content > .v-card,
.v-dialog > .v-overlay__content > .v-card,
.v-menu > .v-overlay__content > .v-list {
  color: var(--flowgraph-text);
  background: var(--flowgraph-surface-secondary) !important;
  border-color: var(--flowgraph-border) !important;
}

.v-overlay__content .v-list-item,
.v-overlay__content .v-list-item-title,
.v-overlay__content .v-list-item-subtitle,
.v-overlay__content .v-icon {
  color: var(--flowgraph-text) !important;
}

.v-overlay__content .v-list-item:hover,
.v-overlay__content .v-list-item--active {
  background: var(--flowgraph-hover) !important;
}

.v-card,
.v-list {
  color: var(--flowgraph-text);
  background-color: var(--flowgraph-surface-secondary);
}

.v-card-text,
.v-card-title,
.v-card-actions {
  color: var(--flowgraph-text);
}

.flowgraph-action-toolbar {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--flowgraph-border);
  width: 100%;
}

.flowgraph-workflow-view-toolbar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--flowgraph-border);
  background: var(--flowgraph-surface-secondary);
}

.flowgraph-workflow-view-title {
  color: var(--flowgraph-text);
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowgraph-toolbox {
  z-index: 1;
}

.flowgraph-toolbox-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2px 0 !important;
}

.flowgraph-toolbox-divider {
  width: 36px;
  margin: 2px 0;
}

.flowgraph-immediate-switch {
  flex: 0 0 auto;
  margin-inline: 8px;
}

.flowgraph-menu-button {
  min-height: 32px;
  min-width: 0;
  padding: 0 4px !important;
  border: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.flowgraph-theme-button {
  margin-inline-start: 8px;
}

.flowgraph-menu-list {
  padding-block: 2px !important;
}

.flowgraph-menu-list .v-list-item {
  min-height: 32px;
  padding-inline: 6px;
}

.flowgraph-menu-list .v-list-item__content {
  padding-inline: 0;
}

.flowgraph-menu-list .v-list-item__prepend,
.flowgraph-menu-list .v-list-item__prepend > .v-icon {
  width: 20px;
  min-width: 20px;
}

.flowgraph-menu-list .v-list-item__prepend {
  margin-inline-end: 0.25em !important;
}

.flowgraph-menu-list .v-list-item-title {
  text-transform: none;
}

/* Keep category navigation responsive and make the active submenu obvious. */
.flowgraph-node-group-item {
  transition: background-color 70ms ease-out, color 70ms ease-out !important;
}

.flowgraph-node-group-item:hover,
.flowgraph-node-group-item.v-list-item--active,
.flowgraph-node-group-item[aria-expanded="true"] {
  color: rgb(var(--v-theme-primary)) !important;
  background-color: var(--flowgraph-selection) !important;
}

.flowgraph-node-group-item:hover .v-list-item__append .v-icon,
.flowgraph-node-group-item.v-list-item--active .v-list-item__append .v-icon,
.flowgraph-node-group-item[aria-expanded="true"] .v-list-item__append .v-icon {
  color: rgb(var(--v-theme-primary)) !important;
}

.v-overlay__content.flowgraph-node-submenu,
.v-overlay__content.flowgraph-node-submenu .v-list {
  transition-duration: 70ms !important;
}

.workflow-drop-zone {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 40px;
  color: rgb(var(--v-theme-primary));
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.0892857143em;
  cursor: copy;
  background: rgba(var(--v-theme-primary), 0.08);
  border: 1px dashed rgb(var(--v-theme-primary));
  border-radius: 4px;
}

.workflow-drop-zone--active {
  color: var(--flowgraph-text);
  background: rgba(var(--v-theme-primary), 0.22);
  border-color: rgb(var(--v-theme-primary));
  box-shadow:
    0 0 0 2px rgb(var(--flowgraph-blue) / 55%),
    0 0 12px 4px rgb(var(--flowgraph-blue-dark) / 65%);
}

.v-card.file-upload-card {
  position: relative;
  box-sizing: border-box;
  display: block !important;
  flex: 0 0 150px;
  width: 150px;
  height: 142px;
  padding: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--flowgraph-surface);
  border: 1px solid var(--flowgraph-border);
  border-radius: 4px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.file-upload-card__content {
  position: absolute;
  top: 50%;
  right: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transform: translateY(-50%);
}

.file-upload-card:hover {
  background: var(--flowgraph-hover);
  border-color: rgb(var(--v-theme-primary));
}

.file-upload-explorer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--flowgraph-surface-secondary);
  border: 1px solid var(--flowgraph-border);
  border-radius: 4px;
}

.file-upload-explorer__toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px;
  color: var(--flowgraph-text);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--flowgraph-surface-muted);
  border-bottom: 1px solid var(--flowgraph-border);
}

.file-upload-explorer__count {
  margin-inline-start: auto;
  color: var(--flowgraph-text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.file-upload-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(auto-fill, 150px);
  grid-auto-rows: 142px;
  gap: 10px;
  align-content: start;
  justify-content: start;
  box-sizing: border-box;
  min-height: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.file-upload-card__icon {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  color: rgb(var(--v-theme-primary));
  background: rgba(var(--v-theme-primary), 0.1);
  border-radius: 8px;
}

.file-upload-card__name {
  display: -webkit-box;
  flex: 0 1 auto;
  min-height: 0 !important;
  width: 100%;
  overflow: hidden;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.file-upload-card__size {
  flex: 0 0 auto;
  color: var(--flowgraph-text-muted);
}

.flowgraph-dockview {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.flowgraph-dockview,
.flowgraph-toolbox,
.node-editor-canvas,
.vtk-canvas {
  scrollbar-color: var(--flowgraph-scrollbar-thumb) var(--flowgraph-scrollbar-track);
  scrollbar-width: thin;
}

.flowgraph-dockview::-webkit-scrollbar,
.flowgraph-toolbox::-webkit-scrollbar,
.node-editor-canvas::-webkit-scrollbar,
.vtk-canvas::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.flowgraph-dockview::-webkit-scrollbar-track,
.flowgraph-toolbox::-webkit-scrollbar-track,
.node-editor-canvas::-webkit-scrollbar-track,
.vtk-canvas::-webkit-scrollbar-track {
  background: var(--flowgraph-scrollbar-track);
}

.flowgraph-dockview::-webkit-scrollbar-thumb,
.flowgraph-toolbox::-webkit-scrollbar-thumb,
.node-editor-canvas::-webkit-scrollbar-thumb,
.vtk-canvas::-webkit-scrollbar-thumb {
  background: var(--flowgraph-scrollbar-thumb);
  border: 2px solid var(--flowgraph-scrollbar-track);
  border-radius: 5px;
}

.flowgraph-dockview::-webkit-scrollbar-thumb:hover,
.flowgraph-toolbox::-webkit-scrollbar-thumb:hover,
.node-editor-canvas::-webkit-scrollbar-thumb:hover,
.vtk-canvas::-webkit-scrollbar-thumb:hover {
  background: var(--flowgraph-scrollbar-thumb-hover);
}

.dock-panel {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dock-panel--workflow {
  min-height: 0;
}

.dock-panel--view3d {
  min-height: 0;
}

.dock-panel--node-inspector {
  padding: 10px;
  background: var(--flowgraph-inspector-background);
}

.dock-panel--node-inspector .node-inspector__textarea {
  min-height: 120px;
}

.dock-panel--documentation {
  overflow: hidden;
  color: rgb(var(--v-theme-on-surface));
  background: rgb(var(--v-theme-surface));
}

.documentation-root {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.documentation-toolbar {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid rgb(var(--v-theme-outline-variant));
}

.documentation-search { flex: 1 1 180px; min-width: 100px; max-width: 420px; }
.documentation-body { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.documentation-navigation { flex: 0 1 210px; min-width: 150px; padding: 9px 5px; overflow-y: auto; border-inline-end: 1px solid rgb(var(--v-theme-outline-variant)); }
.documentation-section-title { padding: 9px 11px 3px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.7; text-transform: uppercase; }
.documentation-main { position: relative; flex: 1 1 auto; min-width: 0; overflow: auto; }
.documentation-content {
  max-width: 860px;
  padding: 18px 24px 36px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.55;
}

.documentation-content h1,
.documentation-content h2,
.documentation-content h3 {
  margin: 0 0 0.65rem;
  color: inherit;
}

.documentation-content h2 {
  margin-top: 1.4rem;
  font-size: 1.2rem;
}

.documentation-content p,
.documentation-content ul,
.documentation-content ol {
  margin: 0 0 0.8rem;
}

.documentation-content a { color: rgb(var(--v-theme-primary)); }
.documentation-content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.documentation-content code { padding: 0.1em 0.25em; color: var(--flowgraph-code-text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: var(--flowgraph-code-background); border: 1px solid var(--flowgraph-border); border-radius: 3px; }
.documentation-content pre { max-width: 100%; padding: 12px; overflow: auto; color: var(--flowgraph-code-text); background: var(--flowgraph-code-background); border: 1px solid var(--flowgraph-border); border-radius: 4px; }
.documentation-content pre code { padding: 0; background: transparent; }
.documentation-content blockquote { padding-inline-start: 12px; margin: 1rem 0; border-inline-start: 3px solid rgb(var(--v-theme-primary)); opacity: 0.85; }
.documentation-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.documentation-content th, .documentation-content td { padding: 7px 10px; text-align: start; border: 1px solid rgb(var(--v-theme-outline-variant)); }
.documentation-search-results { position: sticky; top: 0; z-index: 2; max-width: 720px; margin: 8px auto; overflow: hidden; background: rgb(var(--v-theme-surface)); border: 1px solid rgb(var(--v-theme-outline-variant)); border-radius: 5px; box-shadow: 0 3px 10px rgb(0 0 0 / 15%); }
.documentation-error { padding: 12px; color: rgb(var(--v-theme-error)); }

.v-card.node-search-dialog {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  min-height: 0;
}

.node-search-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.node-search-content > .v-input {
  flex: 0 0 auto;
}

.node-search-results-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 560px) {
  .documentation-navigation { display: none; }
  .documentation-content { padding: 14px; }
}

.flowgraph-flow-node {
  min-width: 280px;
  box-sizing: border-box;

  color: var(--flowgraph-node-text);
  background: var(--flowgraph-node-background);
  border: 1px solid var(--flowgraph-border-strong);
  border-radius: var(--flowgraph-node-radius);
  box-shadow: 0 2px 8px var(--flowgraph-shadow);

  /* Keep Vuetify controls readable on the intentionally dark node surface. */
  --v-theme-on-surface: 232 237 242;
  --v-theme-on-background: 232 237 242;
  --v-theme-on-surface-variant: 186 197 209;
}

.flowgraph-flow-node--expanded {
  width: 560px;
  min-width: 560px;
}

.flowgraph-flow-node--orange {
  color: #2b1a08;
  background: #f59e0b;
  border-color: #c2410c;
  --v-theme-on-surface: 43 26 8;
  --v-theme-on-background: 43 26 8;
  --v-theme-on-surface-variant: 92 52 15;
}

.flowgraph-flow-node--orange .flowgraph-flow-node__header {
  background: #d97706;
  border-bottom-color: #9a3412;
}

.flowgraph-flow-node--orange .flowgraph-flow-node__port,
.flowgraph-flow-node--orange .flowgraph-flow-node__parameter {
  color: #2b1a08;
}

@media (max-width: 700px) {
  .flowgraph-flow-node--expanded {
    width: min(560px, 90vw);
    min-width: min(560px, 90vw);
  }
}

.flowgraph-title-node {
  min-width: 160px;
  padding: 4px 8px;
  color: var(--flowgraph-node-text);
  cursor: grab;
  background: var(--flowgraph-surface-node);
  border: 0;
  border-radius: var(--flowgraph-node-radius);
}

.flowgraph-title-node__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.flowgraph-paragraph-node {
  box-sizing: border-box;
  width: 320px;
  padding: 4px 8px;
  color: var(--flowgraph-node-text);
  cursor: grab;
  background: var(--flowgraph-surface-node);
  border: 1px solid var(--flowgraph-border);
  border-radius: var(--flowgraph-node-radius)  !important;
}

/* Vue Flow supplies a default-node wrapper around custom content. Make the
   wrapper follow the paragraph surface so its square background cannot hide
   the rounded corners of the actual paragraph/value node.
.vue-flow__node-default:has(.flowgraph-paragraph-node) {
  padding: 0;
  overflow: hidden;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: var(--flowgraph-node-radius);
}
 */
.flowgraph-paragraph-node,
.flowgraph-value-node {
  background-color: var(--flowgraph-surface-node) !important;
}

.flowgraph-value-node {
  width: max-content;
  max-width: min(640px, 70vw);
  min-width: 220px;
  min-height: 58px;
  position: relative;
}

.flowgraph-value-node__input {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 18px;
  margin-bottom: 6px;
  color: var(--flowgraph-node-port-text);
  font-size: 12px;
  font-weight: 600;
}

.flowgraph-local-view-node {
  width: 340px;
  overflow: hidden;
  color: var(--flowgraph-node-text);
  background: var(--flowgraph-surface-node);
  border: 1px solid var(--flowgraph-border);
  border-radius: var(--flowgraph-node-radius);
}

.flowgraph-local-view-node__header,
.flowgraph-local-view-node__ports,
.flowgraph-local-view-node__details {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
}

.flowgraph-local-view-node__header {
  justify-content: space-between;
  font-weight: 600;
  background: var(--flowgraph-surface-node-header);
  border-bottom: 1px solid var(--flowgraph-node-header-border);
}

.flowgraph-local-view-node__header span:last-child,
.flowgraph-local-view-node__port {
  color: var(--flowgraph-node-port-text);
  font-size: 11px;
  font-weight: 400;
}

.flowgraph-local-view-node__ports {
  justify-content: space-between;
}

.flowgraph-local-view-node__port {
  position: relative;
  padding-left: 5px;
}

.flowgraph-local-view-node__port .vue-flow__handle {
  left: -17px;
  width: 9px;
  height: 9px;
  background: var(--flowgraph-port-handle);
}

.flowgraph-local-view-node__viewport {
  display: grid;
  height: 220px;
  place-items: center;
  background: #12161d;
  border-top: 1px solid var(--flowgraph-node-header-border);
  border-bottom: 1px solid var(--flowgraph-node-header-border);
}

.flowgraph-local-view-node__viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flowgraph-local-view-node__placeholder {
  max-width: 240px;
  color: var(--flowgraph-node-port-text);
  font-size: 12px;
  text-align: center;
}

.flowgraph-local-view-node__details {
  display: grid;
  border-top: 0;
}

.flowgraph-paragraph-node__text {
  color: var(--flowgraph-node-text) !important;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.flowgraph-paragraph-node__text p,
.flowgraph-paragraph-node__text ul,
.flowgraph-paragraph-node__text ol,
.flowgraph-paragraph-node__text li,
.flowgraph-paragraph-node__text strong,
.flowgraph-paragraph-node__text em,
.flowgraph-paragraph-node__text a,
.flowgraph-paragraph-node__text h1,
.flowgraph-paragraph-node__text h2,
.flowgraph-paragraph-node__text h3,
.flowgraph-paragraph-node__text h4,
.flowgraph-paragraph-node__text h5,
.flowgraph-paragraph-node__text h6,
.flowgraph-paragraph-node__text blockquote {
  color: var(--flowgraph-node-text) !important;
}

.flowgraph-paragraph-node__text > :first-child {
  margin-top: 0;
}

.flowgraph-paragraph-node__text > :last-child {
  margin-bottom: 0;
}

.flowgraph-paragraph-node__text p,
.flowgraph-paragraph-node__text ul,
.flowgraph-paragraph-node__text ol,
.flowgraph-paragraph-node__text pre,
.flowgraph-paragraph-node__text blockquote {
  margin: 0 0 0.75em;
}

.flowgraph-paragraph-node__text ul,
.flowgraph-paragraph-node__text ol {
  padding-inline-start: 1.25em;
  list-style-position: inside;
}

.flowgraph-paragraph-node__text li {
  overflow-wrap: anywhere;
}

.flowgraph-paragraph-node__text code {
  padding: 0.1em 0.25em;
  background: var(--flowgraph-node-code-background);
  border-radius: 3px;
}

.flowgraph-flow-node__header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 7px 8px 7px 12px;
  background: var(--flowgraph-surface-node-header);
  border-bottom: 1px solid var(--flowgraph-node-header-border);
  border-radius: var(--flowgraph-node-header-radius);
}

.flowgraph-code-editor {
  min-height: 180px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.flowgraph-code-editor + .CodeMirror {
  min-height: 180px;
  width: 100%;
  border: 1px solid var(--flowgraph-node-header-border);
  border-radius: 4px;
  font-size: 12px;
}

.flowgraph-flow-node__heading {
  display: flex;
  flex: 1 1 auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.flowgraph-flow-node__definition-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--flowgraph-accent);
  place-items: center;
  background: linear-gradient(145deg, rgb(var(--flowgraph-blue) / 18%), rgb(var(--flowgraph-blue-dark) / 8%));
  border: 1px solid rgb(var(--flowgraph-blue-light) / 35%);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgb(var(--flowgraph-white) / 8%);
}

.flowgraph-flow-node__asset-icon,
.flowgraph-menu-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.flowgraph-flow-node__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.flowgraph-flow-node__title {
  overflow: hidden;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowgraph-flow-node__instance {
  overflow: hidden;
  color: var(--flowgraph-node-instance-text);
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flowgraph-flow-node__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  align-items: center;
}

.flowgraph-flow-node__ports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
}

.flowgraph-flow-node__port {
  position: relative;
  min-height: 24px;
  padding: 4px 10px 4px 14px;
  color: var(--flowgraph-node-port-text);
}

.flowgraph-flow-node__port--output {
  padding: 4px 14px 4px 10px;
  text-align: right;
}

.flowgraph-flow-node__port .vue-flow__handle {
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--flowgraph-port-handle);
}

.flowgraph-flow-node__details {
  display: grid;
  gap: 9px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--flowgraph-border-strong);
}
.flowgraph-flow-node__parameter {
  position: relative;
}
.flowgraph-flow-node__description {
  color: var(--flowgraph-node-port-text);
  font-size: 11px;
  line-height: 1.4;
}

.flowgraph-flow-node__details .v-field {
  font-size: 12px;
}

.flowgraph-flow-node .v-field,
.flowgraph-flow-node .v-field-label,
.flowgraph-flow-node .v-label,
.flowgraph-flow-node .v-input,
.flowgraph-flow-node .v-input input,
.flowgraph-flow-node .v-input textarea,
.flowgraph-flow-node .v-select__selection,
.flowgraph-flow-node .v-selection-control__input,
.flowgraph-flow-node .v-selection-control__wrapper {
  color: var(--flowgraph-node-text) !important;
}

.v-overlay__content.flowgraph-node-select-menu,
.v-overlay__content.flowgraph-node-select-menu > .v-list,
.v-overlay__content.flowgraph-node-select-menu .v-list,
.v-overlay__content.v-select__content.flowgraph-node-select-menu > .v-list,
.v-list.flowgraph-node-select-list {
  background: var(--flowgraph-node-select-surface) !important;
  background-color: var(--flowgraph-node-select-surface) !important;
  color: var(--flowgraph-node-select-text) !important;
  border-color: var(--flowgraph-node-select-border) !important;
  opacity: 1 !important;
}

.v-overlay:has(> .flowgraph-node-select-menu) {
  z-index: 2400 !important;
}

.flowgraph-node-select-list .v-list-item,
.flowgraph-node-select-list .v-list-item-title,
.flowgraph-node-select-list .v-icon {
  color: var(--flowgraph-node-select-text) !important;
  opacity: 1;
}

.flowgraph-node-select-list .v-list-item {
  background: var(--flowgraph-node-select-surface) !important;
  background-color: var(--flowgraph-node-select-surface) !important;
}

.flowgraph-node-select-list .v-list-item:hover {
  background: var(--flowgraph-node-select-hover) !important;
  background-color: var(--flowgraph-node-select-hover) !important;
}

.flowgraph-node-select-list .v-list-item--active {
  background: var(--flowgraph-node-select-selection) !important;
  background-color: var(--flowgraph-node-select-selection) !important;
}

.flowgraph-flow-node__error {
  padding: 8px 10px;
  color: var(--flowgraph-error-text);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: var(--flowgraph-error-background);
  border: 1px solid var(--flowgraph-error-border);
  border-radius: 4px;
}

.flowgraph-flow-node--selected {
  border-color: var(--flowgraph-accent);
  box-shadow:
    0 0 0 2px rgb(var(--flowgraph-blue) / 75%),
    0 0 14px 5px rgb(var(--flowgraph-blue-dark) / 55%),
    0 2px 8px rgb(0 0 0 / 28%);
}
.node-editor-canvas  .vue-flow__edge-path {
  stroke-width: 2;
}

.node-editor-canvas .vue-flow__edge.flowgraph-converted-edge .vue-flow__edge-path {
  stroke: var(--flowgraph-conversion);
}

.node-editor-canvas .vue-flow__edge.selected .vue-flow__edge-path {
  stroke: var(--flowgraph-accent);
  stroke-width: 2;
  filter:
    drop-shadow(0 0 2px rgb(var(--flowgraph-blue) / 90%))
    drop-shadow(0 0 6px rgb(var(--flowgraph-blue-dark) / 70%));
}

.node-editor-canvas {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--flowgraph-canvas);
}

.node-editor-canvas .vue-flow__background {
  background-color: var(--flowgraph-canvas);
}

.node-editor-canvas .vue-flow__background-pattern {
  color: var(--flowgraph-canvas-grid);
}

.edge-value-inspector {
  z-index: 1;
  box-sizing: border-box;
  flex: 0 0 auto;
  padding: 8px 10px 10px;
  min-height: 80px;
  overflow: hidden;
  background: var(--flowgraph-inspector-background);
}

.edge-inspector-divider {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  flex: 0 0 16px;
  align-self: stretch;
  width: 100%;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  cursor: row-resize;
  touch-action: none;
  background: transparent;
}

.edge-inspector-divider__bar {
  position: absolute;
  top: 4px;
  right: 0;
  bottom: 4px;
  left: 0;
  pointer-events: none;
  background: var(--flowgraph-divider);
}

.edge-inspector-divider__bar > span {
  display: none;
}

.edge-inspector-divider--active .edge-inspector-divider__bar {
  background: rgb(var(--v-theme-primary));
}

.node-inspector__textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px 10px;
  color: var(--flowgraph-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  resize: none;
  overflow: auto;
  white-space: pre-wrap;
  background: var(--flowgraph-inspector-textarea-background);
  border: 1px solid var(--flowgraph-border-strong);
  border-radius: 4px;
  outline: none;
}

.node-editor-canvas > .vue-flow,
.node-editor-canvas > node-editor,
.workflow-node-editor {
  display: block;
  width: 100%;
  height: 100%;
}

.vtk-workspace {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.vtk-canvas {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.vtk-local-view {
  display: block;
  width: 100%;
  height: 100%;
}


.icon {
  display: inline-block;
  width: 24px;   /* Or your preferred layout size */
  height: 24px;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Static Web-editor layout, using the shared FlowGraph tokens. */

.flowgraph-web-editor * { box-sizing: border-box; font-family: 'Inter', sans-serif;}
.flowgraph-web-editor { width: 100vw; min-width: 1040px; height: 100vh; min-height: 680px; margin: 0; overflow: hidden; }
.flowgraph-web-editor button,
.flowgraph-web-editor input,
.flowgraph-web-editor select,
.flowgraph-web-editor textarea { font: inherit; }
.flowgraph-web-editor button { cursor: pointer; }
.flowgraph-web-editor .app-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; background: var(--flowgraph-surface-secondary); border-bottom: 1px solid var(--flowgraph-border-strong); }
.flowgraph-web-editor .brand,
.flowgraph-web-editor .header-actions,
.flowgraph-web-editor .canvas-toolbar,
.flowgraph-web-editor .canvas-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.flowgraph-web-editor .brand { font-weight: 700; letter-spacing: .02em; }
.flowgraph-web-editor .brand-mark { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.flowgraph-web-editor .product,
.flowgraph-web-editor .muted { color: var(--flowgraph-text-muted); font-size: .82rem; font-weight: 400; }
.flowgraph-web-editor .workspace { display: flex; width: 100%; min-width: 0; height: calc(100vh - 56px); }
.flowgraph-web-editor .sidebar,
.flowgraph-web-editor .inspector {
  overflow: auto;
  scrollbar-color: var(--flowgraph-scrollbar-thumb) var(--flowgraph-scrollbar-track);
  scrollbar-width: thin;
  background: var(--flowgraph-surface-secondary);
}
.flowgraph-web-editor .sidebar::-webkit-scrollbar,
.flowgraph-web-editor .inspector::-webkit-scrollbar { width: 10px; height: 10px; }
.flowgraph-web-editor .sidebar::-webkit-scrollbar-track,
.flowgraph-web-editor .inspector::-webkit-scrollbar-track { background: var(--flowgraph-scrollbar-track); }
.flowgraph-web-editor .sidebar::-webkit-scrollbar-thumb,
.flowgraph-web-editor .inspector::-webkit-scrollbar-thumb {
  background: var(--flowgraph-scrollbar-thumb);
  border: 2px solid var(--flowgraph-scrollbar-track);
  border-radius: 5px;
}
.flowgraph-web-editor .sidebar::-webkit-scrollbar-thumb:hover,
.flowgraph-web-editor .inspector::-webkit-scrollbar-thumb:hover { background: var(--flowgraph-scrollbar-thumb-hover); }
.flowgraph-web-editor .sidebar { flex: 0 0 var(--flowgraph-web-sidebar-width); min-width: 220px; }
.flowgraph-web-editor .inspector { flex: 0 0 var(--flowgraph-web-inspector-width); min-width: 260px; border-left: 1px solid var(--flowgraph-border); }
.flowgraph-web-editor .sidebar-section,
.flowgraph-web-editor .inspector-section { padding: 14px; border-bottom: 1px solid var(--flowgraph-border-strong); color: var(--flowgraph-text-muted);}
.flowgraph-web-editor .brand > span { font-size: 1.93rem; color: var(--flowgraph-text);}
.flowgraph-web-editor h1,
.flowgraph-web-editor h2 { margin: 0 0 9px; font-size: .93rem; color: var(--flowgraph-accent);}
.flowgraph-web-editor h2 { font-size: .82rem; color: var(--flowgraph-accent); letter-spacing: .035em; text-transform: uppercase; }
.flowgraph-web-editor p { margin: 6px 0; font-size: .82rem; line-height: 1.45; }
.flowgraph-web-editor .search-label { display: block; margin-bottom: 6px; color: var(--flowgraph-text-muted); font-size: .78rem; font-weight: 600; }
.flowgraph-web-editor .text-input,
.flowgraph-web-editor .parameter input:not([type="checkbox"]),
.flowgraph-web-editor select,
.flowgraph-web-editor textarea { width: 100%; padding: 8px 9px; color: var(--flowgraph-text); caret-color: var(--flowgraph-text); background: var(--flowgraph-inspector-textarea-background); border: 1px solid var(--flowgraph-border-strong); border-radius: 5px; outline: none; }
.flowgraph-web-editor .text-input::placeholder,
.flowgraph-web-editor textarea::placeholder { color: var(--flowgraph-text-muted); opacity: 1; }
.flowgraph-web-editor .text-input:focus,
.flowgraph-web-editor .parameter input:not([type="checkbox"]):focus,
.flowgraph-web-editor select:focus,
.flowgraph-web-editor textarea:focus { border-color: var(--flowgraph-accent); box-shadow: 0 0 0 2px rgb(144 202 249 / 18%); }
.flowgraph-web-editor .button { padding: 7px 10px; color: var(--flowgraph-text); font-size: .78rem; font-weight: 600; background: var(--flowgraph-surface-muted); border: 1px solid var(--flowgraph-border-strong); border-radius: 5px; }
.flowgraph-web-editor .button:hover:not(:disabled) { background: var(--flowgraph-hover); border-color: var(--flowgraph-accent); }
.flowgraph-web-editor .button:disabled { cursor: default; opacity: .48; }
.flowgraph-web-editor .button--quiet { background: transparent; }
.flowgraph-web-editor .button--primary { color: #13202a; background: var(--flowgraph-accent); border-color: var(--flowgraph-accent); }
.flowgraph-web-editor .theme-toggle { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; }
.flowgraph-web-editor .theme-toggle__icon { font-size: 1rem; line-height: 1; }
.flowgraph-web-editor .node-catalog { display: grid; gap: 3px; margin-top: 10px; }
.flowgraph-web-editor .catalog-group { margin-left: calc(var(--tree-depth) * 12px); overflow: visible; border-left: 1px solid rgb(105 115 131 / 48%); }
.flowgraph-web-editor .catalog-group > summary { min-height: 30px; padding: 7px 8px; color: var(--flowgraph-text); font-size: .8rem; font-weight: 650; cursor: pointer; list-style: none; border-radius: 4px; }
.flowgraph-web-editor .catalog-group > summary::-webkit-details-marker { display: none; }
.flowgraph-web-editor .catalog-group > summary::before { display: inline-block; width: 12px; content: "›"; color: var(--flowgraph-text-muted); font-size: 1rem; line-height: .65; transform: rotate(0deg); transition: transform 100ms ease; }
.flowgraph-web-editor .catalog-group[open] > summary::before { transform: rotate(90deg); }
.flowgraph-web-editor .catalog-group > summary:hover { background: var(--flowgraph-hover); }
.flowgraph-web-editor .catalog-node { display: block; width: calc(100% - 8px); margin: 1px 0 1px 8px; padding: 7px 9px; color: var(--flowgraph-text); text-align: left; background: transparent; border: 0; border-radius: 4px; }
.flowgraph-web-editor .catalog-node:hover { background: var(--flowgraph-selection); }
.flowgraph-web-editor .catalog-node__label { display: flex; gap: 7px; align-items: center; min-width: 0; }
.flowgraph-web-editor .catalog-node__icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--flowgraph-port-handle); font-size: 18px; line-height: 18px; object-fit: contain; }
.flowgraph-web-editor .catalog-node small { display: block; margin: 2px 0 0; overflow: hidden; color: var(--flowgraph-text-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.flowgraph-web-editor .security-note { margin: 12px; background: rgb(144 202 249 / 8%); border: 1px solid rgb(144 202 249 / 25%); border-radius: 7px; }
.flowgraph-web-editor .canvas-panel { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; min-height: 0; background: var(--flowgraph-canvas); }
.flowgraph-web-editor .panel-separator { position: relative; z-index: 5; flex: 0 0 6px; width: 6px; cursor: col-resize; background: var(--flowgraph-surface-secondary); border-left: 1px solid var(--flowgraph-border-strong); border-right: 1px solid var(--flowgraph-border-strong); outline: none; touch-action: none; }
.flowgraph-web-editor .panel-separator::after { position: absolute; top: 50%; left: 50%; width: 1px; height: 56px; content: ""; background: var(--flowgraph-border-strong); border-radius: 2px; transform: translate(-50%, -50%); transition: background 120ms ease, box-shadow 120ms ease; }
.flowgraph-web-editor .panel-separator:hover::after,
.flowgraph-web-editor .panel-separator:focus-visible::after,
.flowgraph-web-editor .workspace--resizing .panel-separator::after { background: var(--flowgraph-accent); box-shadow: 0 0 0 3px rgb(144 202 249 / 18%); }
.flowgraph-web-editor .workspace--resizing,
.flowgraph-web-editor .workspace--resizing * { cursor: col-resize !important; user-select: none !important; }
.flowgraph-web-editor .canvas-toolbar { justify-content: space-between; min-height: 48px; padding: 7px 12px; background: var(--flowgraph-surface-secondary); border-bottom: 1px solid var(--flowgraph-border); }
.flowgraph-web-editor .breadcrumb { color: var(--flowgraph-accent); font-size: .82rem; font-weight: 650; }
.flowgraph-web-editor .canvas { position: relative; display: block; flex: 1 1 0; width: 100%; min-width: 0; min-height: 0; overflow: hidden; background: var(--flowgraph-canvas); }
.flowgraph-web-editor .workflow-flow-root { position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.flowgraph-web-editor .workflow-flow-root > .vue-flow { position: relative !important; display: block !important; width: 100% !important; min-width: 0 !important; height: 100% !important; min-height: 0 !important; background-color: var(--flowgraph-canvas); ; background-size: 20px 20px; }
.flowgraph-web-editor .vue-flow__edges { z-index: 1005 !important; }
.flowgraph-web-editor .vue-flow__node { padding: 0 !important; background: transparent !important; border: 0 !important; }
.flowgraph-web-editor .vue-flow__node-default.selected { box-shadow: none !important; }
.flowgraph-web-editor .workflow-node { width: 238px; overflow: visible; color: var(--flowgraph-node-text); background: var(--flowgraph-surface-node); border: 1px solid var(--flowgraph-border-strong); border-radius: var(--flowgraph-web-radius); box-shadow: 0 8px 18px rgb(0 0 0 / 28%); }
.flowgraph-web-editor .workflow-node--title { width: auto; min-width: 100px; max-width: 360px; padding: 10px 14px; color: var(--flowgraph-node-text); font-size: 1.05rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.flowgraph-web-editor .workflow-node--paragraph { width: 300px; max-width: 420px; padding: 10px 14px; color: var(--flowgraph-node-text); font-size: .85rem; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.flowgraph-web-editor .workflow-node--paragraph p { margin: 0 0 8px; }
.flowgraph-web-editor .workflow-node--paragraph p:last-child { margin-bottom: 0; }
.flowgraph-web-editor .workflow-node--paragraph h1,
.flowgraph-web-editor .workflow-node--paragraph h2,
.flowgraph-web-editor .workflow-node--paragraph h3,
.flowgraph-web-editor .workflow-node--paragraph h4,
.flowgraph-web-editor .workflow-node--paragraph h5,
.flowgraph-web-editor .workflow-node--paragraph h6 { margin: 0 0 8px; color: var(--flowgraph-node-text); }
.flowgraph-web-editor .workflow-node--paragraph ul,
.flowgraph-web-editor .workflow-node--paragraph ol { margin: 0 0 8px; padding-left: 20px; }
.flowgraph-web-editor .workflow-node--paragraph blockquote { margin: 0 0 8px; padding: 4px 0 4px 10px; color: var(--flowgraph-node-port-text); border-left: 3px solid var(--flowgraph-accent); }
.flowgraph-web-editor .workflow-node--paragraph blockquote p:last-child { margin-bottom: 0; }
.flowgraph-web-editor .workflow-node--paragraph table { width: 100%; margin: 0 0 8px; border-collapse: collapse; font-size: .78rem; }
.flowgraph-web-editor .workflow-node--paragraph th,
.flowgraph-web-editor .workflow-node--paragraph td { padding: 4px 6px; text-align: left; vertical-align: top; border: 1px solid var(--flowgraph-border-strong); }
.flowgraph-web-editor .workflow-node--paragraph th { color: var(--flowgraph-node-text); background: var(--flowgraph-surface-node-header); font-weight: 700; }
.flowgraph-web-editor .workflow-node--paragraph td { color: var(--flowgraph-node-text); }
.flowgraph-web-editor .workflow-node--paragraph .markdown-table__cell--center { text-align: center; }
.flowgraph-web-editor .workflow-node--paragraph .markdown-table__cell--right { text-align: right; }
.flowgraph-web-editor .workflow-node--paragraph pre { margin: 0 0 8px; padding: 8px; overflow-x: auto; background: rgb(0 0 0 / 18%); border-radius: 4px; }
.flowgraph-web-editor .workflow-node--paragraph code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.flowgraph-web-editor .workflow-node--paragraph a { color: var(--flowgraph-accent); }
.flowgraph-web-editor .workflow-node--selected { border-color: var(--flowgraph-accent); box-shadow: 0 0 0 2px rgb(144 202 249 / 28%), 0 8px 18px rgb(0 0 0 / 28%); }
.flowgraph-web-editor .workflow-node__header { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding-left: 10px; overflow: hidden; background: var(--flowgraph-surface-node-header); border-bottom: 1px solid var(--flowgraph-border-strong); border-radius: var(--flowgraph-web-radius) var(--flowgraph-web-radius) 0 0; }
.flowgraph-web-editor .workflow-node__identity { display: flex; flex: 1 1 auto; gap: 7px; align-items: center; min-width: 0; }
.flowgraph-web-editor .workflow-node__definition-icon { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--flowgraph-accent); font-size: 18px; line-height: 18px; object-fit: contain; }
.flowgraph-web-editor .workflow-node__title { overflow: hidden; font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.flowgraph-web-editor .workflow-node__instance { padding: 6px 10px; color: var(--flowgraph-node-instance-text); font-family: ui-monospace, monospace; font-size: .7rem; }
.flowgraph-web-editor .node-delete { width: 33px; height: 33px; color: var(--flowgraph-node-instance-text); font-size: 1.25rem; background: transparent; border: 0; }
.flowgraph-web-editor .node-delete:hover { color: var(--flowgraph-error-text); background: var(--flowgraph-error-background); }
.flowgraph-web-editor .workflow-node__ports { display: grid; gap: 3px; padding: 5px 10px 9px; }
.flowgraph-web-editor .port { position: relative; display: flex; align-items: center; min-height: 20px; color: var(--flowgraph-node-port-text); font-size: .7rem; }
.flowgraph-web-editor .port--output { justify-content: flex-end; text-align: right; }
.flowgraph-web-editor .workflow-node button,
.flowgraph-web-editor .workflow-node input,
.flowgraph-web-editor .workflow-node select,
.flowgraph-web-editor .workflow-node textarea { color: var(--flowgraph-node-text); }
.flowgraph-web-editor .vue-flow__handle { width: 11px; height: 11px; min-width: 11px; min-height: 11px; background: var(--flowgraph-port-handle); border: 2px solid var(--flowgraph-surface-node); border-radius: 50%; }
.flowgraph-web-editor .workflow-node .vue-flow__handle-left { left: -6px; }
.flowgraph-web-editor .workflow-node .vue-flow__handle-right { right: -6px; }
.flowgraph-web-editor .vue-flow__handle:hover { box-shadow: 0 0 0 3px rgb(144 202 249 / 32%); }
.flowgraph-web-editor .node-open-workflow { width: calc(100% - 16px); margin: 0 8px 9px; }
.flowgraph-web-editor .flowgraph-edge .vue-flow__edge-path { stroke: var(--flowgraph-port-handle); stroke-width: 2.2; }
.flowgraph-web-editor .flowgraph-converted-edge .vue-flow__edge-path { stroke: var(--flowgraph-conversion); stroke-width: 2.2; }
.flowgraph-web-editor .vue-flow__controls { overflow: hidden; background: var(--flowgraph-surface-secondary); border: 1px solid var(--flowgraph-border); border-radius: 5px; box-shadow: 0 3px 8px rgb(0 0 0 / 24%); }
.flowgraph-web-editor .vue-flow__controls-button { width: 24px; height: 24px; color: var(--flowgraph-text); font-size: 1.35rem; background: var(--flowgraph-surface-muted); border-color: var(--flowgraph-border); }
.flowgraph-web-editor .vue-flow__controls-button svg { fill: var(--flowgraph-text); }
.flowgraph-web-editor .vue-flow__controls-button:hover { background: var(--flowgraph-hover); }
.flowgraph-web-editor .empty-state { position: absolute; top: 40%; left: 50%; z-index: 10; display: grid; gap: 8px; width: 360px; padding: 24px; color: var(--flowgraph-text-muted); text-align: center; pointer-events: none; background: var(--flowgraph-web-empty-state); border: 1px dashed var(--flowgraph-border-strong); border-radius: var(--flowgraph-web-radius); transform: translate(-50%, -50%); }
.flowgraph-web-editor .empty-state strong { color: var(--flowgraph-text); }
.flowgraph-web-editor .workflow-welcome { top: 48%; width: min(720px, calc(100% - 48px)); max-height: calc(100% - 48px); padding: 26px 30px; overflow: auto; color: var(--flowgraph-text); text-align: left; pointer-events: auto; background: linear-gradient(135deg, var(--flowgraph-surface-secondary), var(--flowgraph-web-empty-state)); border: 1px solid rgb(144 202 249 / 42%); box-shadow: 0 18px 48px var(--flowgraph-shadow); }
.flowgraph-web-editor .workflow-welcome__eyebrow { color: var(--flowgraph-accent); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.flowgraph-web-editor .workflow-welcome h1 { margin: 3px 0 8px; color: var(--flowgraph-text); font-size: 1.42rem; line-height: 1.2; }
.flowgraph-web-editor .workflow-welcome > p { max-width: 650px; margin: 0; color: var(--flowgraph-text-muted); font-size: .88rem; }
.flowgraph-web-editor .workflow-welcome__capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.flowgraph-web-editor .workflow-welcome__capability { padding: 14px; background: rgb(144 202 249 / 8%); border: 1px solid rgb(144 202 249 / 22%); border-radius: 7px; }
.flowgraph-web-editor .workflow-welcome__capability--future { background: rgb(255 179 0 / 7%); border-color: rgb(255 179 0 / 28%); }
.flowgraph-web-editor .workflow-welcome__capability h2 { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; color: var(--flowgraph-accent); font-size: .72rem; }
.flowgraph-web-editor .workflow-welcome__capability--future h2 { color: var(--flowgraph-conversion); }
.flowgraph-web-editor .workflow-welcome__capability ul { display: grid; gap: 6px; padding: 0; margin: 0; color: var(--flowgraph-text-muted); font-size: .75rem; line-height: 1.35; list-style: none; }
.flowgraph-web-editor .workflow-welcome__capability li { position: relative; padding-left: 13px; }
.flowgraph-web-editor .workflow-welcome__capability li::before { position: absolute; left: 0; color: var(--flowgraph-accent); content: "•"; }
.flowgraph-web-editor .workflow-welcome__capability--future li::before { color: var(--flowgraph-conversion); }
.flowgraph-web-editor .workflow-welcome__actions { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--flowgraph-border); }
.flowgraph-web-editor .workflow-welcome__actions .button { flex: 0 0 auto; }
.flowgraph-web-editor .workflow-welcome__security { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--flowgraph-text-muted); font-size: .7rem; line-height: 1.35; }
.flowgraph-web-editor .workflow-welcome__security i { flex: 0 0 auto; color: var(--flowgraph-accent); font-size: .9rem; }
.flowgraph-web-editor .flow-diagnostic { position: absolute; right: 14px; bottom: 14px; z-index: 20; max-width: min(520px, calc(100% - 28px)); padding: 10px 12px; color: var(--flowgraph-error-text); font-size: .78rem; line-height: 1.35; background: var(--flowgraph-error-background); border: 1px solid var(--flowgraph-error-text); border-radius: 6px; }
.flowgraph-web-editor .message { min-height: 20px; margin-top: 8px; color: var(--flowgraph-text-muted); font-size: .75rem; }
.flowgraph-web-editor .message--error { color: var(--flowgraph-error-text); }
.flowgraph-web-editor .edge-list { display: grid; gap: 6px; margin-top: 12px; }
.flowgraph-web-editor .edge-item { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; padding: 7px; color: var(--flowgraph-text-muted); font-family: ui-monospace, monospace; font-size: .68rem; background: var(--flowgraph-surface-node); border: 1px solid var(--flowgraph-border); border-radius: 5px; }
.flowgraph-web-editor .edge-item--conversion { border-color: var(--flowgraph-conversion); }
.flowgraph-web-editor .edge-remove { padding: 2px 6px; color: var(--flowgraph-error-text); background: transparent; border: 1px solid var(--flowgraph-border-strong); border-radius: 3px; }
.flowgraph-web-editor .validation-list { display: grid; gap: 6px; padding-left: 18px; color: var(--flowgraph-text-muted); font-size: .76rem; }
.flowgraph-web-editor .validation-list .error { color: var(--flowgraph-error-text); }
.flowgraph-web-editor .validation-list .ok { color: #9bdbad; }
.flowgraph-web-editor .parameter { margin: 11px 0; }
.flowgraph-web-editor .parameter label { display: block; margin-bottom: 5px; color: var(--flowgraph-text-muted); font-size: .75rem; font-weight: 600; }
.flowgraph-web-editor .parameter textarea { min-height: 100px; resize: vertical; }
.flowgraph-web-editor .parameter small { display: block; margin-top: 4px; color: var(--flowgraph-text-muted); font-size: .67rem; }
.flowgraph-web-editor .parameter--code { min-width: 0; }
.flowgraph-web-editor .monaco-editor-container { width: 100%; min-height: 280px; overflow: hidden; border: 1px solid var(--flowgraph-border-strong); border-radius: 5px; }
.flowgraph-web-editor .monaco-fallback { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-height: 760px){.flowgraph-web-editor .workflow-welcome { top: 50%; padding: 18px 22px; }.flowgraph-web-editor .workflow-welcome__capabilities { margin: 12px 0; }.flowgraph-web-editor .workflow-welcome__capability { padding: 10px; }}
@media (max-width: 1040px){.flowgraph-web-editor .panel-separator { display: none; }
.flowgraph-web-editor .inspector { flex-basis: 330px; }
}
