/* node_modules/drawflow/dist/drawflow.min.css */
.drawflow,
.drawflow .parent-node {
  position: relative;
}
.parent-drawflow {
  display: flex;
  overflow: hidden;
  touch-action: none;
  outline: 0;
}
.drawflow {
  width: 100%;
  height: 100%;
  user-select: none;
  perspective: 0;
}
.drawflow .drawflow-node {
  display: flex;
  align-items: center;
  position: absolute;
  background: #0ff;
  width: 160px;
  min-height: 40px;
  border-radius: 4px;
  border: 2px solid #000;
  color: #000;
  z-index: 2;
  padding: 15px;
}
.drawflow .drawflow-node.selected {
  background: red;
}
.drawflow .drawflow-node:hover {
  cursor: move;
}
.drawflow .drawflow-node .inputs,
.drawflow .drawflow-node .outputs {
  width: 0;
}
.drawflow .drawflow-node .drawflow_content_node {
  width: 100%;
  display: block;
}
.drawflow .drawflow-node .input,
.drawflow .drawflow-node .output {
  position: relative;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  cursor: crosshair;
  z-index: 1;
  margin-bottom: 5px;
}
.drawflow .drawflow-node .input {
  left: -27px;
  top: 2px;
  background: #ff0;
}
.drawflow .drawflow-node .output {
  right: -3px;
  top: 2px;
}
.drawflow svg {
  z-index: 0;
  position: absolute;
  overflow: visible !important;
}
.drawflow .connection {
  position: absolute;
  pointer-events: none;
  aspect-ratio: 1/1;
}
.drawflow .connection .main-path {
  fill: none;
  stroke-width: 5px;
  stroke: #4682b4;
  pointer-events: all;
}
.drawflow .connection .main-path:hover {
  stroke: #1266ab;
  cursor: pointer;
}
.drawflow .connection .main-path.selected {
  stroke: #43b993;
}
.drawflow .connection .point {
  cursor: move;
  stroke: #000;
  stroke-width: 2;
  fill: #fff;
  pointer-events: all;
}
.drawflow .connection .point.selected,
.drawflow .connection .point:hover {
  fill: #1266ab;
}
.drawflow .main-path {
  fill: none;
  stroke-width: 5px;
  stroke: #4682b4;
}
.drawflow-delete {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  background: #000;
  color: #fff;
  z-index: 4;
  border: 2px solid #fff;
  line-height: 30px;
  font-weight: 700;
  text-align: center;
  border-radius: 50%;
  font-family: monospace;
  cursor: pointer;
}
.drawflow > .drawflow-delete {
  margin-left: -15px;
  margin-top: 15px;
}
.parent-node .drawflow-delete {
  right: -15px;
  top: -15px;
}

/* src/client/flow-builder.css */
.drawflow-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 0.0625rem 0.0625rem,
      color-mix(in srgb, var(--muted) 24%, transparent) 0.0719rem,
      transparent 0) 0 0 / 1.375rem 1.375rem,
    transparent;
  cursor: grab;
}
.drawflow-canvas:active {
  cursor: grabbing;
}
.drawflow-canvas.parent-drawflow {
  display: block;
  overflow: hidden;
  outline: 0;
  touch-action: none;
}
.drawflow-empty-state {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 6;
  width: min(27.5rem, calc(100% - 3rem));
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 20%, var(--line-soft));
  border-radius: 1.125rem;
  background:
    radial-gradient(
      circle at 18% 0%,
      color-mix(in srgb, var(--primary-soft) 60%, transparent),
      transparent 48%),
    color-mix(in srgb, var(--surface) 96%, var(--control-bg));
  box-shadow: 0 1.5rem 4.375rem rgba(15, 23, 42, 0.14);
  padding: 1.75rem;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(0.875rem);
}
.drawflow-empty-state > .material-symbols-rounded {
  width: 3.375rem;
  height: 3.375rem;
  display: grid;
  place-items: center;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 26%, var(--line-soft));
  border-radius: 1.125rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.75rem;
}
.drawflow-empty-state strong {
  color: var(--panel-title);
  font-size: 1.125rem;
  line-height: 1.2;
}
.drawflow-empty-state p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.drawflow-empty-state div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.125rem;
}
.drawflow-controls.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.drawflow-canvas .drawflow {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform-origin: 0 0;
  user-select: none;
}
.drawflow-canvas .parent-node {
  position: relative;
}
.drawflow-canvas .drawflow-node {
  position: absolute;
  z-index: 2;
  display: block;
  width: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.drawflow-canvas .drawflow-node:hover {
  cursor: move;
}
.drawflow-canvas .drawflow-node.selected {
  background: transparent;
}
.drawflow-canvas .drawflow-node.selected .flow-command-node {
  border-color: rgba(124, 58, 237, 0.58);
  box-shadow: 0 0 0 0.25rem var(--primary-soft), 0 1.125rem 2.625rem rgba(124, 58, 237, 0.16);
}
.drawflow-canvas .drawflow-node .drawflow_content_node {
  display: block;
  width: 14.75rem;
}
.drawflow-canvas .drawflow-node .inputs,
.drawflow-canvas .drawflow-node .outputs {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}
.drawflow-canvas .drawflow-node .input,
.drawflow-canvas .drawflow-node .output {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 0;
  border-radius: 62.4375rem;
  background: transparent;
  box-shadow: none;
  cursor: crosshair;
  pointer-events: all;
}
.drawflow-canvas .drawflow-node .input::before,
.drawflow-canvas .drawflow-node .output::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border: 0.125rem solid var(--surface);
  border-radius: 62.4375rem;
  background: var(--primary);
  box-shadow: 0 0 0 0.0625rem rgba(124, 58, 237, 0.2);
  transform: translate(-50%, -50%);
}
.drawflow-canvas .drawflow-node .input {
  left: -0.3125rem;
  transform: translate(-50%, -50%);
}
.drawflow-canvas .drawflow-node .output {
  right: -0.3125rem;
  transform: translate(50%, -50%);
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output {
  width: 1.25rem;
  height: 1.25rem;
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output::before {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--surface));
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output[data-condition-color]::before {
  background: var(--condition-color, var(--surface));
  border-color: color-mix(in srgb, var(--condition-color, var(--primary)) 44%, var(--surface));
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output::after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  border: 0.0625rem solid var(--line-soft);
  border-radius: 62.4375rem;
  background: var(--surface);
  color: var(--label);
  box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.08);
  padding: 0.1875rem 0.4375rem;
  font-size: 0.625rem;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
  margin-left: 0.875rem;
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output::after {
  content: attr(data-condition-label);
  color: var(--blue);
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output[data-output-class=output_1]::after {
  color: var(--green);
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output[data-output-class=output_2]::after {
  color: var(--red);
}
.drawflow-canvas .drawflow-node.drawflow-command-condition .output[data-condition-color]::after {
  color: var(--condition-color, var(--blue));
  border-color: color-mix(in srgb, var(--condition-color, var(--blue)) 36%, var(--line-soft));
}
.drawflow-canvas svg {
  position: absolute;
  z-index: 0;
  overflow: visible !important;
}
.drawflow-canvas .connection {
  position: absolute;
  pointer-events: none;
}
.drawflow-canvas .connection .main-path,
.drawflow-canvas .main-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 0.125rem;
  pointer-events: all;
}
.drawflow-canvas .connection .main-path:hover,
.drawflow-canvas .connection .main-path.selected,
.drawflow-canvas .connection.is-context-target .main-path {
  stroke: color-mix(in srgb, var(--primary) 78%, var(--blue));
  stroke-width: 0.25rem;
  cursor: pointer;
}
.drawflow-canvas .connection .point {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 0.125rem;
  cursor: move;
  pointer-events: all;
}
.drawflow-delete {
  display: none !important;
}
.drawflow-controls {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  display: grid;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.1);
}
.drawflow-controls button {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-bottom: 0.0625rem solid var(--line-soft);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.drawflow-controls button:last-child {
  border-bottom: 0;
}
.drawflow-controls button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.drawflow-controls .material-symbols-rounded {
  font-size: 1.125rem;
}
.drawflow-minimap {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  width: 11.25rem;
  height: 7rem;
  overflow: hidden;
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(0.75rem);
}
.drawflow-minimap svg {
  display: block;
  width: 100%;
  height: 100%;
}
.drawflow-minimap .minimap-node {
  stroke: rgba(124, 58, 237, 0.28);
  stroke-width: 1.5;
  fill: rgba(124, 58, 237, 0.34);
}
.drawflow-minimap .tone-amber {
  stroke: rgba(255, 158, 44, 0.34);
  fill: rgba(255, 158, 44, 0.32);
}
.drawflow-minimap .tone-green {
  stroke: rgba(44, 198, 93, 0.34);
  fill: rgba(44, 198, 93, 0.3);
}
.drawflow-minimap .tone-blue {
  stroke: rgba(37, 99, 235, 0.34);
  fill: rgba(37, 99, 235, 0.28);
}
.route-connection-command-menu {
  position: fixed;
  z-index: 8;
  min-width: 11.5rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.375rem;
  border: 0.0625rem solid color-mix(in srgb, var(--line-soft) 76%, var(--primary));
  border-radius: 0.625rem;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 98%, transparent),
      color-mix(in srgb, var(--control-bg) 94%, transparent)),
    var(--surface);
  box-shadow: 0 1rem 2.625rem rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
}
.route-connection-command-menu button {
  min-height: 2rem;
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  padding: 0 0.5rem;
  cursor: pointer;
}
.route-connection-command-menu button:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line-soft));
  background: color-mix(in srgb, var(--primary-soft) 60%, var(--surface));
}
.route-connection-command-menu button:disabled,
.route-connection-command-menu button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.route-connection-command-menu button:disabled:hover,
.route-connection-command-menu button.is-disabled:hover {
  border-color: transparent;
  background: transparent;
}
.route-connection-command-menu button > .material-symbols-rounded {
  color: var(--muted);
  font-size: 1rem;
}
.cortex-template-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.modal-field-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  overflow: visible !important;
  white-space: normal !important;
}
.modal-field-label-text {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.routing-field-help-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  overflow: visible !important;
  white-space: normal !important;
}
.routing-field-help {
  width: 1.0625rem;
  height: 1.0625rem;
  min-width: 1.0625rem;
  display: inline-grid;
  place-items: center;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 50%;
  padding: 0;
  background: color-mix(in srgb, var(--primary-soft) 46%, var(--surface));
  color: color-mix(in srgb, var(--primary) 84%, var(--text));
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}
.routing-field-help:hover,
.routing-field-help:focus-visible,
.routing-field-help.is-open {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  outline: none;
  transform: translateY(-0.0625rem);
}
.routing-field-help:focus-visible {
  box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--primary) 18%, transparent);
}
.routing-field-help-popover {
  position: fixed;
  z-index: 30050;
  pointer-events: auto;
  max-height: min(27rem, calc(100vh - 1.5rem));
  overflow: auto;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1.25rem 3.5rem rgba(15, 23, 42, 0.22), 0 0 0 0.0625rem color-mix(in srgb, var(--surface) 72%, transparent);
  transform-origin: top center;
  animation: routing-field-help-in 150ms ease-out both;
}
.routing-field-help-popover.is-above {
  transform: translateY(-100%);
  transform-origin: bottom center;
  animation-name: routing-field-help-in-above;
}
.routing-field-help-popover > header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.75rem;
  align-items: center;
  gap: 0.625rem;
  border-bottom: 0.0625rem solid var(--line-soft);
  padding: 0.625rem 0.75rem;
  background: color-mix(in srgb, var(--primary-soft) 38%, var(--surface));
}
.routing-field-help-popover > header > .material-symbols-rounded {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5625rem;
  background: var(--primary);
  color: #fff;
  font-size: 1.125rem;
}
.routing-field-help-popover > header > div {
  min-width: 0;
  display: grid;
  gap: 0.125rem;
}
.routing-field-help-popover > header small {
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}
.routing-field-help-popover > header strong {
  overflow: hidden;
  color: var(--panel-title);
  font-size: 0.8125rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.routing-field-help-popover > header > button {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.4375rem;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.routing-field-help-popover > header > button:hover {
  background: color-mix(in srgb, var(--primary-soft) 64%, var(--surface));
  color: var(--primary);
}
.routing-field-help-popover > header > button .material-symbols-rounded {
  font-size: 1rem;
}
.routing-field-help-content {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}
.routing-field-help-content section {
  display: grid;
  gap: 0.3125rem;
}
.routing-field-help-content section > span {
  color: var(--label);
  font-size: 0.625rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-transform: uppercase;
}
.routing-field-help-content p {
  margin: 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}
.routing-field-help-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4375rem;
}
.routing-field-help-options article {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: start;
  gap: 0.5rem;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 16%, var(--line-soft));
  border-radius: 0.625rem;
  padding: 0.5625rem;
  background: color-mix(in srgb, var(--primary-soft) 24%, var(--surface));
}
.routing-field-help-options article > .material-symbols-rounded {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.4375rem;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  font-size: 1rem;
}
.routing-field-help-options article > div {
  min-width: 0;
  display: grid;
  gap: 0.1875rem;
}
.routing-field-help-options strong {
  color: var(--panel-title);
  font-size: 0.7188rem;
  line-height: 1.3;
}
.routing-field-help-options p {
  color: var(--text-soft);
  font-size: 0.6875rem;
  line-height: 1.45;
}
.routing-field-help-detail {
  border-left: 0.1875rem solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 0.625rem;
  background: color-mix(in srgb, var(--primary-soft) 34%, var(--surface));
}
.routing-field-help-example code {
  overflow-wrap: anywhere;
  border: 0.0625rem solid color-mix(in srgb, var(--primary) 18%, var(--line-soft));
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: color-mix(in srgb, var(--primary-soft) 34%, var(--control-bg));
  color: var(--primary);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.6875rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
@keyframes routing-field-help-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes routing-field-help-in-above {
  from {
    opacity: 0;
    transform: translateY(calc(-100% + 0.25rem)) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(-100%) scale(1);
  }
}
.cortex-template-variable-button {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.flow-modal.cortex-attribute-picker-modal {
  width: min(56rem, calc(100vw - 2rem));
  max-width: 56rem;
}
.flow-modal.cortex-attribute-picker-modal .flow-modal-body {
  grid-template-columns: minmax(0, 1fr);
}
.cortex-attribute-picker-panel {
  width: 100%;
  display: grid;
  gap: 0.625rem;
}
.cortex-attribute-picker-panel > span {
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 700;
}
.cortex-attribute-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.cortex-attribute-picker-item {
  display: grid;
  gap: 0.1875rem;
  border: 0.0625rem solid var(--line-soft);
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  padding: 0.5625rem 0.625rem;
  cursor: pointer;
}
.cortex-attribute-picker-item > strong {
  font-size: 0.75rem;
  line-height: 1.2;
}
.cortex-attribute-picker-item > small {
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 0.6875rem;
}
.cortex-attribute-picker-item:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line-soft));
  background: color-mix(in srgb, var(--primary-soft) 40%, var(--surface));
}
.cortex-attribute-picker-item.is-selected {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--line-soft));
  background: color-mix(in srgb, var(--primary-soft) 60%, var(--surface));
}
.cortex-attribute-picker-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.start-mode-switch {
  display: grid;
  gap: 0.625rem;
}
.start-mode-switch > header > span {
  color: var(--label);
  font-size: 0.75rem;
  font-weight: 700;
}
.start-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.condition-decision-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.start-mode-option {
  min-height: 2.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  border: 0.0625rem solid var(--line-soft);
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.625rem;
  cursor: pointer;
}
.condition-decision-mode-option {
  min-height: 2.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  border: 0.0625rem solid var(--line-soft);
  border-radius: 0.625rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.625rem;
  cursor: pointer;
}
.start-mode-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--line-soft));
  background: color-mix(in srgb, var(--primary-soft) 56%, var(--surface));
}
.condition-decision-mode-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--line-soft));
  background: color-mix(in srgb, var(--primary-soft) 56%, var(--surface));
}
.start-mode-option > input {
  margin: 0;
}
.condition-decision-mode-option > input {
  margin: 0;
}
.start-periodicity small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.start-execution-notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.start-processing-note {
  margin: 0;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 0.1875rem solid var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 42%, var(--surface));
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.5rem 0.625rem;
}
.start-processing-note .material-symbols-rounded {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1rem;
}
.api-schema-group-label {
  grid-column: 1 / -1;
  color: var(--label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chat-template-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.chat-template-field-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.chat-template-field-actions .secondary-button {
  min-height: 1.875rem;
  padding: 0 0.5625rem;
  font-size: 0.6875rem;
}
.chat-template-field-actions .secondary-button .material-symbols-rounded {
  font-size: 0.9375rem;
}
.chat-template-preview {
  border: 0.0625rem solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.chat-template-preview-device {
  display: grid;
}
.chat-template-preview-head {
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  border-bottom: 0.0625rem solid color-mix(in srgb, var(--line-soft) 82%, #fff);
  background: #fff;
  padding: 0 0.75rem;
}
.chat-template-preview-head strong {
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 700;
}
.chat-template-preview-status {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 0.125rem color-mix(in srgb, #16a34a 20%, #fff);
}
.chat-template-preview-stage {
  display: grid;
  padding: 0.625rem;
  background:
    radial-gradient(
      circle at 0.3125rem 0.3125rem,
      color-mix(in srgb, #94a3b8 14%, transparent) 0.0938rem,
      transparent 0.1094rem) 0 0 / 0.875rem 0.875rem,
    linear-gradient(
      160deg,
      #efe9df 0%,
      #e4dece 100%);
}
.chat-template-preview-bubble {
  max-width: min(31.25rem, 100%);
  display: grid;
  gap: 0.4375rem;
  border-radius: 0.25rem;
  background: #fff;
  box-shadow: 0 0.0625rem 0.1875rem rgb(15 23 42 / 14%);
  color: #1e293b;
  padding: 0.625rem 0.625rem 0.5rem;
}
.chat-template-preview-title,
.chat-template-preview-body,
.chat-template-preview-footer {
  margin: 0;
}
.chat-template-preview-title {
  color: #1e293b;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
}
.chat-template-preview-body {
  color: #1e293b;
  font-size: 1.0625rem;
  line-height: 1.3;
  white-space: pre-wrap;
}
.chat-template-preview-footer {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.2;
}
.chat-template-preview-time {
  justify-self: end;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1;
}
.chat-template-preview-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.625rem;
}
.template-suggest-input {
  position: relative;
  width: 100%;
}
.template-suggest-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30120;
  display: grid;
  place-items: center;
  background: rgb(15 23 42 / 36%);
  backdrop-filter: blur(1px);
  padding: 1rem;
}
.template-suggest-modal {
  width: min(34rem, 100%);
  display: grid;
  gap: 0.625rem;
  border: 0.0625rem solid color-mix(in srgb, var(--line, #cbd5e1) 70%, #fff);
  border-radius: 0.75rem;
  background: var(--surface, #fff);
  box-shadow: 0 1rem 2.5rem rgb(15 23 42 / 24%);
  padding: 0.75rem;
}
.template-suggest-modal.is-bounce {
  transform-origin: center;
  animation: templateSuggestBounceIn 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.template-suggest-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.template-suggest-modal-head strong {
  color: var(--panel-title, #1e293b);
  font-size: 0.9375rem;
}
.template-suggest-modal-head p {
  margin: 0.125rem 0 0;
  color: var(--muted, #64748b);
  font-size: 0.75rem;
}
.template-suggest-modal-list {
  max-height: min(55vh, 18rem);
  overflow: auto;
  display: grid;
  gap: 0.125rem;
  border: 0.0625rem solid var(--line, #cbd5e1);
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--surface, #fff);
  padding: 0.25rem;
}
@keyframes templateSuggestBounceIn {
  0% {
    opacity: 0;
    transform: translateY(0.125rem) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(-0.0625rem) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.template-suggest-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  display: grid;
  justify-items: start;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem;
  text-align: left;
  cursor: pointer;
}
.template-suggest-option code {
  color: var(--primary, #2563eb);
  font-size: 0.75rem;
}
.template-suggest-option span {
  color: var(--muted, #64748b);
  font-size: 0.6875rem;
  line-height: 1.2;
}
.template-suggest-option:hover,
.template-suggest-option.is-active {
  background: color-mix(in srgb, var(--primary-soft, rgb(37 99 235 / 15%)) 58%, var(--surface, #fff));
}
.template-suggest-empty {
  color: var(--muted, #64748b);
  font-size: 0.75rem;
  padding: 0.5rem;
}
@media (max-width: 47.5rem) {
  .drawflow-minimap {
    display: none;
  }
  .cortex-attribute-picker-grid {
    grid-template-columns: 1fr;
  }
  .route-connection-command-menu {
    min-width: 10.75rem;
  }
  .start-mode-options {
    grid-template-columns: 1fr;
  }
  .condition-decision-mode-options {
    grid-template-columns: 1fr;
  }
  .routing-field-help-options {
    grid-template-columns: 1fr;
  }
  .chat-template-preview-title,
  .chat-template-preview-body {
    font-size: 0.9375rem;
  }
  .chat-template-field-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .chat-template-preview-footer {
    font-size: 0.8125rem;
  }
  .template-suggest-modal {
    width: 100%;
    max-height: calc(100vh - 2rem);
  }
}
/*# sourceMappingURL=flow-builder.css.map */
