.layout {
  display: flex;
  height: 100%;
  gap: var(--node-editor-inspector-section-gap, 16px);
}

.sidebar {
  width: 320px;
  flex-shrink: 0;
  padding: var(--node-editor-inspector-space-md, 16px);
  background: var(--node-editor-control-background);
  border: var(--node-editor-card-border);
  border-radius: var(--node-editor-card-border-radius);
  overflow-y: auto;
}

.featureList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--node-editor-inspector-field-gap);
}

.featureList li {
  display: flex;
  flex-direction: column;
  gap: var(--node-editor-inspector-space-xs);
}

.featureLabel {
  font-size: var(--node-editor-inspector-font-size-body);
  font-weight: 500;
  color: var(--node-editor-text-color);
}

.featureDescription {
  font-size: var(--node-editor-inspector-font-size-meta);
  line-height: var(--node-editor-inspector-line-height-meta);
  color: var(--node-editor-secondary-label-color);
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--node-editor-inspector-font-size-meta);
  padding: 2px 6px;
  background: var(--node-editor-surface-secondary);
  border-radius: var(--node-editor-control-border-radius);
  color: var(--node-editor-input-text-color);
}

.codeBlock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--node-editor-inspector-font-size-meta);
  line-height: 1.5;
  padding: var(--node-editor-inspector-space-sm);
  background: var(--node-editor-surface-secondary);
  border: var(--node-editor-input-border);
  border-radius: var(--node-editor-control-border-radius);
  color: var(--node-editor-input-text-color);
  overflow-x: auto;
  margin: 0;
}

.editorPanel {
  flex: 1;
  min-width: 0;
  border-radius: var(--node-editor-card-border-radius);
  overflow: hidden;
  background: var(--node-editor-canvas-color);
}

/* ComfyUI-style node */
.comfyNode {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #353535 0%, #2a2a2a 100%);
  border-radius: 8px;
  color: #e0e0e0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.comfyNode[data-selected="true"] {
  box-shadow:
    0 0 0 2px #4a9eff,
    0 4px 12px rgba(74, 158, 255, 0.3);
}

.nodeTitle {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nodeContent {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.previewArea {
  flex: 1;
  min-height: 60px;
  background: #1a1a1a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.previewPlaceholder {
  color: #666;
  font-size: 11px;
  text-align: center;
}

.parameterList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parameterRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.parameterLabel {
  color: #888;
  font-size: 11px;
  min-width: 60px;
}

.parameterValue {
  color: #b0b0b0;
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
