.customNodeContent {
  width: 100%;
  height: 100%;
  position: relative;
}

.nodeHeader {
  position: relative;
  padding: 0.5em 12px;
  font-weight: 500;
  border-bottom: var(--node-editor-input-border);
  background-color: var(--node-editor-table-header-background-color, #f0f0f0);
  border-radius: var(--node-editor-radius-sm) var(--node-editor-radius-sm) 0 0;
  height: 40px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Interactive node header (when not selected) */
.nodeHeader[data-interactive="true"][data-selected="false"] {
  cursor: move;
  background-color: var(--node-editor-table-header-background-color-hover, #e5e5e5);
  transition: background-color 0.2s ease;
}

.nodeHeader[data-interactive="true"][data-selected="false"]:hover {
  background-color: var(--node-editor-table-header-background-color-active, #d8d8d8);
}

.nodeHeader[data-interactive="true"][data-selected="false"]::before {
  content: "⋮⋮";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--node-editor-secondary-label-color, #999);
  opacity: 0.6;
  pointer-events: none;
  letter-spacing: -2px;
}

.nodeTitle {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
  color: var(--node-editor-text-color, #000);
  text-align: center;
  cursor: text;
  user-select: none;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.nodeTitle:hover {
  background-color: var(--node-editor-hover-background, rgba(0, 0, 0, 0.05));
}

/* Interactive node title (when not selected) */
.nodeHeader[data-interactive="true"][data-selected="false"] .nodeTitle {
  padding-left: 20px;
}

.nodeTitleInput {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
  color: var(--node-editor-text-color, #000);
  text-align: center;
  background: var(--node-editor-input-background, #fff);
  border: 2px solid var(--node-editor-accent-color, #0066cc);
  border-radius: 3px;
  padding: 2px 4px;
  outline: none;
  min-width: 80px;
  box-sizing: border-box;
}

.lockIcon {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 12px;
  opacity: 0.8;
  pointer-events: none;
}

.nodeContent {
  padding: 12px;
  box-sizing: border-box;
}

/* Group node styles */
.nodeHeader[data-is-group="true"] {
  background-color: transparent;
  border-bottom: none;
}

.nodeTitle[data-is-group="true"] {
  color: var(--node-editor-secondary-label-color, #666);
  font-weight: 500;
}

/* ========================================
   Broken/Corrupted Node Styles
   ======================================== */

.brokenNode {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.brokenHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(180, 40, 40, 0.15);
  border-bottom: 1px solid rgba(200, 60, 60, 0.4);
}

.brokenIcon {
  font-size: 12px;
  color: #c84040;
}

.brokenTitle {
  font-family: var(--node-editor-code-font, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #c84040;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brokenContent {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brokenGlitch {
  font-family: var(--node-editor-code-font, monospace);
  font-size: 12px;
  font-weight: 600;
  color: #a03030;
  word-break: break-all;
}

.brokenMeta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.brokenLabel {
  color: var(--node-editor-secondary-text-color, #888);
  font-family: var(--node-editor-code-font, monospace);
}

.brokenCode {
  font-family: var(--node-editor-code-font, monospace);
  font-size: 9px;
  color: var(--node-editor-secondary-text-color, #888);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 2px;
}

.brokenValue {
  color: var(--node-editor-text-color, #333);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brokenError {
  margin-top: auto;
  font-family: var(--node-editor-code-font, monospace);
  font-size: 9px;
  color: #a03030;
  background: rgba(200, 60, 60, 0.08);
  border: 1px dashed rgba(200, 60, 60, 0.4);
  padding: 4px 6px;
  border-radius: 2px;
  text-align: center;
}

.brokenNoise {
  display: none;
}
