.etl-editor-main {
  height: 100vh;
  padding: var(--nx-topbar-height) 0 0 !important;
  overflow: hidden;
}
.etl-page-etl_editor { position: relative; width: 100%; height: calc(100vh - var(--nx-topbar-height)); max-width: none; overflow: hidden; }
.etl-page-etl_editor .editor-panel-toggle { display: inline-grid; place-items: center; }
.etl-page-etl_editor.palette-pinned #btnTogglePalette { display: none; }
.etl-page-etl_editor .editor-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100% - 58px); min-height: 0; overflow: hidden; }
.etl-page-etl_editor .editor-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; }
.etl-page-etl_editor .editor-workspace { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.etl-page-etl_editor.palette-pinned .editor-main { grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.etl-page-etl_editor.palette-pinned .palette { position: relative; grid-column: 1; grid-row: 1 / 3; width: auto; height: auto; transform: none; box-shadow: none; z-index: auto; border-right: 1px solid var(--nx-border-soft); }
.etl-page-etl_editor.palette-pinned .editor-workspace { grid-column: 2; grid-row: 1; }
.etl-page-etl_editor.palette-pinned .run-dock { grid-column: 2; grid-row: 2; }
.etl-page-etl_editor .palette { z-index: 20; min-width: 0; padding: 15px; overflow-y: auto; background: var(--nx-surface); position: absolute; top: 0; bottom: 0; left: 0; width: min(248px, 88vw); transform: translateX(-105%); transition: transform .22s; box-shadow: var(--nx-shadow); }
.etl-page-etl_editor .palette.is-open { transform: none; }
.etl-page-etl_editor:not(.palette-pinned) .palette.is-open + .canvas-wrap { margin-left: min(248px, 88vw); transition: margin-left .22s; }
.etl-page-etl_editor .canvas-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background-color: var(--nx-bg); }
.etl-page-etl_editor .canvas-viewport { flex: 1; min-height: 0; overflow: auto; background-image: linear-gradient(var(--nx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--nx-grid) 1px, transparent 1px); background-size: 24px 24px; }
.etl-page-etl_editor .canvas-viewport.is-panning { cursor: grabbing; user-select: none; }
.etl-page-etl_editor .canvas-wrap.is-panning { cursor: grabbing; user-select: none; }
.etl-page-etl_editor .panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; gap: 8px; }
.etl-page-etl_editor .panel-heading-actions { display: flex; align-items: center; gap: 4px; }
.etl-page-etl_editor .panel-pin, .etl-page-etl_editor .panel-close { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--nx-muted); transition: .15s; }
.etl-page-etl_editor .panel-pin:hover, .etl-page-etl_editor .panel-close:hover { background: var(--nx-surface-2); color: var(--nx-text); }
.etl-page-etl_editor .panel-pin.is-active { color: var(--nx-primary); background: var(--nx-primary-soft); }
.etl-page-etl_editor .panel-pin:disabled { opacity: .45; cursor: not-allowed; }
.etl-page-etl_editor.palette-pinned .palette .panel-close { display: none; }
.etl-page-etl_editor .editor-context-bar { display: flex; align-items: center; height: 58px; padding: 0 16px; gap: 11px; border-bottom: 1px solid var(--nx-border-soft); background: var(--nx-surface); }
.etl-page-etl_editor .editor-back:hover { border-color: var(--nx-primary); color: var(--nx-primary); }
.etl-page-etl_editor .editor-task-title { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.etl-page-etl_editor .editor-task-title span { color: var(--nx-muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.etl-page-etl_editor .editor-back { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--nx-border); border-radius: 9px; color: var(--nx-muted); }
.etl-page-etl_editor .editor-task-title strong { max-width: 340px; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.etl-page-etl_editor .upload-zone { padding: 14px 11px; margin-bottom: 12px; border: 1px dashed var(--nx-border); border-radius: 10px; background: var(--nx-surface-2); color: var(--nx-muted); text-align: center; cursor: pointer; font-size: .7rem; transition: .2s; }
.etl-page-etl_editor .upload-zone:hover, .etl-page-etl_editor .upload-zone.dragover { border-color: var(--nx-primary); background: var(--nx-primary-soft); color: var(--nx-primary); }
.etl-page-etl_editor .upload-zone > i { display: block; margin-bottom: 5px; font-size: 1.2rem; }
.etl-page-etl_editor .upload-zone input[type=file] { display: none; }
.etl-page-etl_editor .url-input-row { display: flex; margin-top: 10px; gap: 6px; }
.etl-page-etl_editor .url-input-row input { min-width: 0; height: 34px; padding: 6px 8px; border: 1px solid var(--nx-border); border-radius: 7px; background: var(--nx-input); color: var(--nx-text); font-size: .68rem; }
.etl-page-etl_editor .url-input-row .btn { min-height: 34px; padding-inline: 9px; }
.etl-page-etl_editor .palette-search-wrap { position: relative; margin-bottom: 10px; }
.etl-page-etl_editor .palette-search-wrap i { position: absolute; top: 50%; left: 10px; color: var(--nx-muted); transform: translateY(-50%); }
.etl-page-etl_editor .palette-search { width: 100%; height: 37px; padding: 7px 9px 7px 31px; border: 1px solid var(--nx-border); border-radius: 8px; background: var(--nx-input); color: var(--nx-text); font-size: .72rem; }
.etl-page-etl_editor .palette-search:focus { outline: 0; border-color: var(--nx-primary); box-shadow: 0 0 0 3px var(--nx-ring); }
.etl-page-etl_editor .category-header { margin: 14px 2px 7px; color: var(--nx-muted); font-size: .64rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.etl-page-etl_editor .category-items.hidden { display: none; }
.etl-page-etl_editor .palette-item { display: flex; align-items: center; min-height: 42px; padding: 9px 10px; margin-bottom: 7px; gap: 9px; border: 1px solid var(--nx-border-soft); border-radius: 9px; background: var(--nx-surface-2); color: var(--nx-text-2); cursor: grab; font-size: .72rem; transition: .16s; }
.etl-page-etl_editor .palette-item:hover { border-color: var(--nx-primary); background: var(--nx-primary-soft); color: var(--nx-primary); transform: translateX(2px); }
.etl-page-etl_editor .palette-item i { width: 20px; color: var(--nx-primary); font-size: .9rem; text-align: center; }
.etl-page-etl_editor .palette-empty { padding: 24px 8px; color: var(--nx-muted); font-size: .72rem; text-align: center; }
.etl-page-etl_editor .canvas { position: relative; min-width: 2000px; min-height: 1200px; transform-origin: 0 0; cursor: grab; }
.etl-page-etl_editor .connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.etl-page-etl_editor .connection-path { stroke: var(--nx-primary); stroke-width: 2; fill: none; cursor: pointer; pointer-events: stroke; }
.etl-page-etl_editor .connection-path.temp { stroke-dasharray: 6 4; opacity: 0.85; pointer-events: none; cursor: crosshair; }
.etl-page-etl_editor .connection-path:hover { stroke: var(--nx-danger); stroke-width: 3; }
.etl-page-etl_editor .panel-heading h4 { margin: 0; color: var(--nx-text); font-size: .82rem; font-weight: 720; }
.etl-page-etl_editor .panel-heading h4 i { margin-right: 6px; color: var(--nx-primary); }
.etl-page-etl_editor .canvas-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px;
  gap: 5px;
  border: 1px solid var(--nx-border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--nx-surface) 94%, transparent);
  box-shadow: var(--nx-shadow);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.etl-page-etl_editor .canvas-toolbar-group { display: flex; gap: 4px; padding-right: 5px; border-right: 1px solid var(--nx-border-soft); }
.etl-page-etl_editor .canvas-toolbar-group:last-child { padding: 0; border: 0; }
.etl-page-etl_editor .canvas-toolbar .btn { min-height: 32px; padding: 4px 9px; font-size: .68rem; box-shadow: none; }
.etl-page-etl_editor .toolbar-group { display: flex; gap: 4px; padding-right: 5px; border-right: 1px solid var(--nx-border-soft); }
.etl-page-etl_editor .toolbar-group:last-child { padding: 0; border: 0; }
.etl-page-etl_editor .empty-hint { position: absolute; top: 44%; left: 30%; width: 390px; padding: 28px; border: 1px dashed var(--nx-border); border-radius: 16px; background: color-mix(in srgb, var(--nx-surface) 75%, transparent); color: var(--nx-muted); text-align: center; pointer-events: none; }
.etl-page-etl_editor .empty-hint.active { pointer-events: auto; }
.etl-page-etl_editor .empty-hint-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 15px; background: var(--nx-primary-soft); color: var(--nx-primary); font-size: 1.25rem; }
.etl-page-etl_editor .empty-hint h3 { margin: 0 0 6px; color: var(--nx-text); font-size: 1rem; }
.etl-page-etl_editor .empty-hint p { margin: 0 0 16px; font-size: .74rem; }
.etl-page-etl_editor .zoom-indicator { position: fixed; right: 16px; bottom: 16px; z-index: 10; padding: 4px 9px; border: 1px solid var(--nx-border); border-radius: 7px; background: var(--nx-surface); color: var(--nx-muted); font-size: .65rem; }
.etl-page-etl_editor .run-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--nx-border-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--nx-surface) 88%, var(--nx-bg)) 0%, var(--nx-surface) 100%);
  box-shadow: 0 -8px 24px color-mix(in srgb, var(--nx-shadow) 35%, transparent);
}
.etl-page-etl_editor .run-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.etl-page-etl_editor .run-dock-title { display: flex; align-items: center; min-width: 0; gap: 10px; }
.etl-page-etl_editor .run-dock-badge {
  display: inline-flex; align-items: center; flex-shrink: 0; min-height: 26px; padding: 0 10px;
  border: 1px solid var(--nx-border); border-radius: 999px; background: var(--nx-surface-2);
  color: var(--nx-muted); font-size: .64rem; font-weight: 700; letter-spacing: .04em;
}
.etl-page-etl_editor .run-dock-badge.is-running { border-color: color-mix(in srgb, var(--nx-primary) 45%, var(--nx-border)); color: var(--nx-primary); background: var(--nx-primary-soft); }
.etl-page-etl_editor .run-dock-badge.is-success { border-color: color-mix(in srgb, var(--nx-success) 45%, var(--nx-border)); color: var(--nx-success); background: color-mix(in srgb, var(--nx-success) 12%, var(--nx-surface)); }
.etl-page-etl_editor .run-dock-badge.is-error { border-color: color-mix(in srgb, var(--nx-danger) 45%, var(--nx-border)); color: var(--nx-danger); background: color-mix(in srgb, var(--nx-danger) 10%, var(--nx-surface)); }
.etl-page-etl_editor .run-dock-subtitle { overflow: hidden; color: var(--nx-muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.etl-page-etl_editor .run-dock-toggle {
  display: inline-flex; align-items: center; flex-shrink: 0; gap: 6px; min-height: 32px; padding: 0 11px;
  border: 1px solid var(--nx-border); border-radius: 9px; background: var(--nx-surface); color: var(--nx-text-2);
  cursor: pointer; font-size: .68rem; transition: .15s;
}
.etl-page-etl_editor .run-dock-toggle:hover,
.etl-page-etl_editor .run-dock-toggle[aria-expanded="true"] { border-color: var(--nx-primary); color: var(--nx-primary); background: var(--nx-primary-soft); }
.etl-page-etl_editor .run-dock-toggle .run-dock-chevron { transition: transform .2s; }
.etl-page-etl_editor .run-dock-toggle[aria-expanded="true"] .run-dock-chevron { transform: rotate(180deg); }
.etl-page-etl_editor .run-flow-track { display: flex; align-items: center; gap: 0; min-height: 58px; padding: 2px 2px 0; overflow-x: auto; scrollbar-width: thin; }
.etl-page-etl_editor .run-flow-empty { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--nx-border); border-radius: 10px; color: var(--nx-muted); font-size: .7rem; }
.etl-page-etl_editor .run-flow-empty i { color: var(--nx-primary); }
.etl-page-etl_editor .run-flow-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 132px; max-width: 180px;
  padding: 8px 10px; border: 1px solid var(--nx-border-soft); border-radius: 11px; background: var(--nx-surface);
  box-shadow: var(--nx-shadow-sm); transition: .16s;
}
.etl-page-etl_editor .run-flow-step.is-running { border-color: color-mix(in srgb, var(--nx-primary) 55%, var(--nx-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-primary) 12%, transparent); }
.etl-page-etl_editor .run-flow-step.is-success { border-color: color-mix(in srgb, var(--nx-success) 50%, var(--nx-border)); }
.etl-page-etl_editor .run-flow-step.is-error { border-color: color-mix(in srgb, var(--nx-danger) 50%, var(--nx-border)); }
.etl-page-etl_editor .run-flow-step.is-skipped { opacity: .62; border-style: dashed; }
.etl-page-etl_editor .run-flow-node { display: flex; align-items: center; width: 100%; gap: 7px; color: var(--nx-text); font-size: .72rem; font-weight: 650; }
.etl-page-etl_editor .run-flow-node i { color: var(--nx-primary); font-size: .84rem; }
.etl-page-etl_editor .run-flow-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etl-page-etl_editor .run-flow-meta { display: flex; align-items: center; gap: 6px; color: var(--nx-muted); font-size: .6rem; }
.etl-page-etl_editor .run-flow-state { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 999px; background: var(--nx-surface-2); }
.etl-page-etl_editor .run-flow-step.is-running .run-flow-state { color: var(--nx-primary); background: var(--nx-primary-soft); }
.etl-page-etl_editor .run-flow-step.is-running .run-flow-state .bi-arrow-repeat { animation: run-flow-spin 1s linear infinite; }
@keyframes run-flow-spin { to { transform: rotate(360deg); } }
.etl-page-etl_editor .run-flow-step.is-success .run-flow-state { color: var(--nx-success); background: color-mix(in srgb, var(--nx-success) 12%, var(--nx-surface)); }
.etl-page-etl_editor .run-flow-step.is-error .run-flow-state { color: var(--nx-danger); background: color-mix(in srgb, var(--nx-danger) 10%, var(--nx-surface)); }
.etl-page-etl_editor .run-flow-connector { flex: 0 0 28px; height: 2px; margin: 0 4px; border-radius: 999px; background: linear-gradient(90deg, var(--nx-border) 0%, color-mix(in srgb, var(--nx-primary) 35%, var(--nx-border)) 100%); }
.etl-page-etl_editor .run-dock-log { max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.etl-page-etl_editor .run-dock-log.is-open { max-height: 180px; }
.etl-page-etl_editor .run-dock-log-body {
  max-height: 168px; margin: 0; padding: 12px 14px; overflow: auto; border: 1px solid var(--nx-border-soft);
  border-radius: 10px; background: var(--nx-surface-2); color: var(--nx-text-2);
  font: .68rem/1.55 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}
.etl-page-etl_editor.canvas-focus-mode {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  background: var(--nx-bg);
}
.etl-page-etl_editor.canvas-focus-mode .editor-context-bar {
  flex-shrink: 0;
  border-bottom-color: var(--nx-border);
}
.etl-page-etl_editor.canvas-focus-mode .editor-context-bar .editor-task-settings {
  display: none;
}
.etl-page-etl_editor.canvas-focus-mode .palette:not(.is-open) {
  display: none !important;
}
.etl-page-etl_editor.canvas-focus-mode .palette.is-open,
.etl-page-etl_editor.canvas-focus-mode.palette-pinned .palette {
  display: block !important;
  position: fixed;
  top: 58px;
  bottom: auto;
  max-height: calc(100vh - 58px);
  left: 0;
  z-index: 2010;
  width: min(320px, 88vw);
  box-shadow: var(--nx-shadow);
  transform: none;
}
.etl-page-etl_editor.canvas-focus-mode .run-dock {
  flex-shrink: 0;
}
.etl-page-etl_editor.canvas-focus-mode .canvas-toolbar {
  max-width: min(100%, calc(100vw - 32px));
}
.etl-page-etl_editor.canvas-focus-mode.palette-pinned .canvas-wrap {
  padding-left: 0;
}
.etl-page-etl_editor.canvas-focus-mode .panel-close {
  display: inline-grid;
  place-items: center;
}
.etl-page-etl_editor.canvas-focus-mode .editor-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100% - 58px);
}
.etl-page-etl_editor.canvas-focus-mode .editor-main {
  grid-template-rows: minmax(0, 1fr);
}
.etl-page-etl_editor.canvas-focus-mode .canvas-wrap {
  min-height: 0;
}
.etl-page-etl_editor.canvas-focus-mode .canvas-toolbar {
  max-width: calc(100vw - 32px);
}
.etl-page-etl_editor.canvas-focus-mode .zoom-indicator {
  right: 16px;
  bottom: 16px;
}
.etl-page-etl_editor.canvas-focus-mode #btnCanvasFocus,
.etl-page-etl_editor.canvas-focus-mode #btnCanvasFocusToolbar {
  border-color: var(--nx-primary);
  color: var(--nx-primary);
  background: var(--nx-primary-soft);
}
.etl-page-etl_editor.canvas-focus-mode .editor-panel-toggle {
  display: inline-grid;
  place-items: center;
}
body.editor-canvas-focus-active { overflow: hidden; }
.etl-page-etl_editor .etl-node { position: absolute; z-index: 2; min-width: 170px; padding: 12px 14px; border: 1px solid var(--nx-border); border-left: 3px solid var(--nx-primary); border-radius: 11px; background: var(--nx-surface); box-shadow: var(--nx-shadow-sm); cursor: grab; font-size: .75rem; transition: .16s; }.etl-page-etl_editor .etl-node:hover { border-color: var(--nx-primary); }
.etl-page-etl_editor .etl-node.selected { border-color: var(--nx-primary); box-shadow: 0 0 0 3px var(--nx-ring), var(--nx-shadow); }
.etl-page-etl_editor .etl-node.disabled { opacity: .48; border-style: dashed; }
.etl-page-etl_editor .node-title { display: flex; align-items: center; gap: 7px; color: var(--nx-text); font-weight: 680; }
.etl-page-etl_editor .node-title i { color: var(--nx-primary); font-size: .9rem; }
.etl-page-etl_editor .node-type { margin: 3px 0 0 23px; color: var(--nx-muted); font: .6rem "Cascadia Code", Consolas, monospace; }
.etl-page-etl_editor .port { position: absolute; z-index: 3; top: 50%; width: 13px; height: 13px; border: 3px solid var(--nx-surface); border-radius: 50%; background: var(--nx-primary); box-shadow: 0 0 0 1px var(--nx-primary); cursor: crosshair; transform: translateY(-50%); }
.etl-page-etl_editor .port::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.etl-page-etl_editor .port.in { left: -8px; }
.etl-page-etl_editor .port.out { right: -8px; }
.etl-page-etl_editor .port.connect-target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-primary) 35%, transparent); }
.etl-page-etl_editor .port.snap-target { background: var(--nx-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-success) 40%, transparent); }
.etl-page-etl_editor .etl-node.connect-source { border-color: var(--nx-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nx-primary) 25%, transparent); }
.etl-page-etl_editor .node-status { position: absolute; bottom: -12px; left: 9px; max-width: 140px; padding: 2px 7px; overflow: hidden; border-radius: 7px; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.etl-page-etl_editor .node-status.pending { background: var(--node-pending-bg); color: var(--nx-muted); }.etl-page-etl_editor .node-status.running { background: var(--node-running-bg); color: var(--node-running-text); }.etl-page-etl_editor .node-status.success { background: var(--node-success-bg); color: var(--nx-success); }.etl-page-etl_editor .node-status.error { background: var(--node-error-bg); color: var(--nx-danger); }
.etl-page-etl_editor .node-status-icon { position: absolute; bottom: 5px; left: 6px; width: 7px; height: 7px; border-radius: 50%; }
.etl-page-etl_editor .node-status-icon.pending { background: var(--status-pending); }.etl-page-etl_editor .node-status-icon.running { background: var(--node-running-text); }.etl-page-etl_editor .node-status-icon.success { background: var(--nx-success); }.etl-page-etl_editor .node-status-icon.error { background: var(--nx-danger); }
.etl-page-etl_editor .config-placeholder { padding: 44px 10px; color: var(--nx-muted); text-align: center; font-size: .72rem; }
.etl-page-etl_editor .config-placeholder i { display: block; margin-bottom: 8px; color: var(--nx-primary); font-size: 1.3rem; }
.etl-page-etl_editor .config-node-summary { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: .76rem; }
.etl-page-etl_editor .config-desc { padding: 10px; margin-bottom: 13px; border: 1px solid var(--config-desc-border); border-radius: 8px; background: var(--config-desc-bg); color: var(--nx-text-2); font-size: .7rem; }
.etl-page-etl_editor #nodeConfigModal { z-index: 2200; }
.etl-page-etl_editor #nodeConfigModal .modal-config { width: min(100%, 560px); max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.etl-page-etl_editor #configForm label,
.etl-page-etl_editor .modal-config label { display: block; margin: 11px 0 5px; color: var(--nx-muted); font-size: .68rem; font-weight: 650; }
.etl-page-etl_editor #configForm input:not([type=checkbox]),
.etl-page-etl_editor #configForm select,
.etl-page-etl_editor .modal-config input:not([type=checkbox]),
.etl-page-etl_editor .modal-config select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid var(--nx-border); border-radius: 8px; background: var(--nx-input); color: var(--nx-text); font-size: .72rem; }
.etl-page-etl_editor .config-check { display: flex !important; align-items: center; gap: 8px; }
.etl-page-etl_editor .config-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.etl-page-etl_editor .config-actions .btn-primary { flex: 1 1 120px; }.etl-page-etl_editor .sql-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 11px 0 5px; }
.etl-page-etl_editor .sql-label-row label { margin: 0; }
.etl-page-etl_editor .btn-sql-fullscreen { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--nx-border); border-radius: 6px; background: var(--nx-input); color: var(--nx-muted); cursor: pointer; transition: .15s; }
.etl-page-etl_editor .btn-sql-fullscreen:hover { border-color: var(--nx-primary); color: var(--nx-primary); background: var(--nx-primary-soft); }
.etl-page-etl_editor .sql-editor-wrap { overflow: hidden; border: 1px solid var(--nx-border); border-radius: 8px; }
.etl-page-etl_editor .sql-editor-placeholder { min-height: 150px; }
.etl-page-etl_editor .CodeMirror { height: 150px; background: var(--nx-input); color: var(--nx-text); font-size: .7rem; }
.sql-fullscreen-overlay { position: fixed; inset: 0; z-index: 1200; display: none; flex-direction: column; background: var(--nx-bg); }
.sql-fullscreen-overlay.show { display: flex; }
.sql-fullscreen-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--nx-border); background: var(--nx-surface); }
.sql-fullscreen-title { display: inline-flex; align-items: center; gap: 8px; color: var(--nx-text); font-size: .85rem; font-weight: 600; }
.sql-fullscreen-body { flex: 1; min-height: 0; display: flex; }
.sql-fullscreen-body .sql-cm-fullscreen { flex: 1; height: 100% !important; }
.sql-fullscreen-body .sql-cm-fullscreen .CodeMirror { height: 100% !important; font-size: .85rem !important; }
.sql-fullscreen-textarea { flex: 1; width: 100%; height: 100%; padding: 16px 18px; border: none; outline: none; resize: none; background: var(--nx-input); color: var(--nx-text); font: .85rem/1.55 "Cascadia Code", Consolas, monospace; }
.etl-page-etl_editor .sql-test-result { margin-top: 8px; font-size: .68rem; }.etl-page-etl_editor .test-success { color: var(--nx-success); }.etl-page-etl_editor .test-error { color: var(--nx-danger); }
.etl-page-etl_editor .context-menu { position: fixed; z-index: 1100; display: none; min-width: 180px; padding: 6px; border: 1px solid var(--nx-border); border-radius: 10px; background: var(--nx-surface); box-shadow: var(--nx-shadow); }
.etl-page-etl_editor .context-menu.show { display: block; }
.etl-page-etl_editor .context-menu-item { display: flex; align-items: center; min-height: 36px; padding: 7px 10px; gap: 9px; border-radius: 7px; color: var(--nx-text-2); cursor: pointer; font-size: .72rem; }
.etl-page-etl_editor .context-menu-item:hover { background: var(--nx-primary-soft); color: var(--nx-primary); }
.etl-page-etl_editor .context-menu-item.danger { color: var(--nx-danger); }
.etl-page-etl_editor .pipeline-list { max-height: 360px; overflow-y: auto; }.etl-page-etl_editor .pipeline-item { padding: 13px; margin-bottom: 8px; border: 1px solid var(--nx-border); border-radius: 9px; cursor: pointer; }.etl-page-etl_editor .pipeline-item:hover { border-color: var(--nx-primary); background: var(--nx-primary-soft); }.etl-page-etl_editor .pipeline-meta { margin-top: 4px; color: var(--nx-muted); font-size: .66rem; }
@media (max-width: 1199px) {
  .etl-page-etl_editor .editor-task-settings { margin-left: 0; }
  .etl-page-etl_editor.palette-pinned .editor-main { grid-template-columns: minmax(0, 1fr); }
  .etl-page-etl_editor.palette-pinned .palette { position: absolute; grid-column: auto; grid-row: auto; height: auto; }
  .etl-page-etl_editor.palette-pinned .editor-workspace,
  .etl-page-etl_editor.palette-pinned .run-dock { grid-column: 1; }
  .etl-page-etl_editor.palette-pinned .editor-workspace { grid-row: 1; }
  .etl-page-etl_editor.palette-pinned .run-dock { grid-row: 2; }
  .etl-page-etl_editor:not(.palette-pinned) .palette.is-open + .canvas-wrap { margin-left: 0; }
  .etl-page-etl_editor .palette { left: 0; }
  .etl-page-etl_editor .canvas-toolbar { max-width: calc(100vw - 120px); overflow-x: auto; }
  .etl-page-etl_editor .zoom-indicator { right: 16px; }
}
@media (max-width: 767px) {
  .etl-page-etl_editor .editor-context-bar { height: 54px; padding: 0 10px; }
  .etl-page-etl_editor .editor-context-bar .status-badge, .etl-page-etl_editor .task-settings-label { display: none; }
  .etl-page-etl_editor .editor-task-title strong { max-width: 155px; }
  .etl-page-etl_editor .editor-layout { height: calc(100% - 54px); }
  .etl-page-etl_editor .editor-main { grid-template-rows: minmax(0, 1fr) auto; }
  .etl-page-etl_editor .canvas-toolbar { top: 8px; right: 8px; max-width: calc(100vw - 30px); padding: 5px; }
  .etl-page-etl_editor .canvas-toolbar .btn-label { display: none; }
  .etl-page-etl_editor .canvas-toolbar .btn { min-width: 32px; padding-inline: 7px; }
  .etl-page-etl_editor .empty-hint { left: 7vw; width: 86vw; padding: 22px 16px; }
  .etl-page-etl_editor .run-dock { padding: 10px 10px 12px; gap: 8px; }
  .etl-page-etl_editor .run-dock-toggle span { display: none; }
  .etl-page-etl_editor .run-flow-step { min-width: 118px; max-width: 150px; }
  .etl-page-etl_editor .zoom-indicator { bottom: 16px; }
}
