.editor-section {
  background: var(--bg-card);
  border: 1px solid var(--border-btn);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}
.editor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.editor-toolbar {
  background: #252545;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #2a2a4a;
}

.editor-wrapper {
  display: flex;
  background: var(--bg-deep);
}
.editor-lines {
  background: #111125;
  color: #555577;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 10px;
  text-align: right;
  user-select: none;
  min-width: 40px;
  border-right: 1px solid #2a2a4a;
  white-space: pre;
}

.sql-editor-textarea {
  flex: 1;
  background: var(--bg-deep);
  color: #d4d4d4;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 16px;
  min-height: 120px;
  tab-size: 2;
}
.sql-editor-textarea::placeholder {
  color: #444466;
}

.editor-result {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-top: 1px solid #2a2a4a;
  min-height: 42px;
  line-height: 1.7;
}
.result-idle {
  color: var(--text-dim);
}
.result-ok {
  color: var(--green);
}
.result-warn {
  color: #f39c12;
}
.result-error {
  color: #e74c3c;
}
