.schema-editor {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.schema-editor__type-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2000;
}
.schema-editor__content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
.schema-editor__content .monaco-editor .monaco-scrollable-element > .scrollbar.vertical {
  width: 14px !important;
  background: transparent !important;
}
.schema-editor__content .monaco-editor .monaco-scrollable-element > .scrollbar.vertical .slider {
  width: 8px !important;
  left: 3px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.schema-editor__content .monaco-editor .monaco-scrollable-element > .scrollbar.vertical:hover .slider {
  background: rgba(0, 0, 0, 0.3) !important;
}
.schema-editor__content .monaco-editor .monaco-scrollable-element > .scrollbar.vertical.active .slider {
  background: rgba(0, 0, 0, 0.4) !important;
}
.schema-editor__content .monaco-editor .monaco-scrollable-element > .scrollbar.horizontal {
  display: none !important;
}
.schema-editor__content .monaco-editor .monaco-hover,
.schema-editor__content .monaco-editor .monaco-editor-hover,
.schema-editor__content .monaco-editor .suggest-widget,
.schema-editor__content .monaco-editor .parameter-hints-widget,
.schema-editor__content .monaco-editor .zone-widget {
  z-index: var(--editor-z-index, 1000) !important;
}
.schema-editor__toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  color: #6b7280;
  background: #f3f4f6;
  transition: all 0.2s;
}
.schema-editor__toolbar-btn:hover {
  color: #111827;
  background: #e5e7eb;
}
.schema-editor .ant-segmented {
  background: #f3f4f6;
  padding: 2px;
  border-radius: 6px;
}
.schema-editor .ant-segmented .ant-segmented-item {
  color: #6b7280;
  border-radius: 4px;
  font-size: 12px;
}
.schema-editor .ant-segmented .ant-segmented-item:hover {
  color: #374151;
}
.schema-editor .ant-segmented .ant-segmented-item-selected {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.schema-editor .ant-segmented .ant-segmented-thumb {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
