.editor-wrap {
  flex: 1;
  min-height: 0;
  background: var(--editor-bg);
  border-top: 1px solid var(--editor-border);
  border-bottom: 1px solid var(--editor-border);
}

.editor-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--editor-bg);
}

.editor-container.show-line-numbers #lineNumbers {
  display: flex;
  flex-direction: column;
}

.editor-container #lineNumbers {
  display: none;
}

.editor-container.show-line-numbers textarea,
.editor-container.show-line-numbers pre {
  left: var(--editor-line-numbers-width);
  width: var(--editor-calc-width);
}

.editor-container textarea,
.editor-container pre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: var(--editor-padding);
  overflow: hidden;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  box-sizing: border-box;
  white-space: pre;
  word-wrap: normal;
  font: var(--editor-font);
  tab-size: var(--editor-tab-size);
}

.editor-container textarea {
  z-index: 3;
  color: transparent;
  caret-color: var(--editor-text);
  -webkit-text-fill-color: transparent;
}

.editor-container pre {
  z-index: 1;
  background: var(--editor-bg) !important;
  pointer-events: none;
}

.editor-container pre[class*="language-"],
.editor-container code[class*="language-"] {
  margin: 0;
  background: var(--editor-bg) !important;
  color: var(--editor-text);
  text-shadow: none;
  font: var(--editor-font);
  overflow: hidden;
}

.editor-status-bar {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid var(--editor-text);
  background: var(--editor-status-bar);
  color: var(--text);
}

.editor-status-bar div {
  padding: var(--control-padding);
  border-right: 1px solid var(--editor-text);
}

.editor-status {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.editor-status .error {
  font-weight: bold;
  color: var(--error);
}

.editor-status .info {
  font-weight: normal;
  color: var(--info);
}

.editor-status .action {
  font-weight: normal;
  color: var(--action);
}

.editor-status .alert {
  font-weight: normal;
  color: var(--alert);
}

.editor-status .sticky {
  font-weight: bold;
  color: var(--text);
}

#editorStatus {
  border: none;
}

#editorLineColumn {
  display: flex;
  justify-content: center;
  min-width: var(--editor-line-numbers-width);
}

#editorLineNumberIndicator {
  min-width: var(--editor-line-numbers-width);
}

#findReplaceBar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--editor-text);
  background: var(--editor-find-replace-bar);
  color: var(--text);
}

.find-replace-row {
  display: flex;
  flex-wrap: wrap;
  align-items:first baseline;
  gap: 8px;
}

.find-replace-row .find-replace {
  flex: 1;
}

.find-replace-bar input[type="text"] {
  min-width: 160px;
  padding: var(--control-padding);
  border: 1px solid var(--border);
  border-radius: var(--control-radius);
}

.find-option {
  display: inline-flex;
  align-items: center;
  gap: var(--control-gap);
  color: var(--text);
  font-size: 13px;
}

.find-status {
  font-size: 13px;
  margin-top: 4px;
  color: var(--muted);
}

.find-highlight {
  position: absolute;
  border-radius: 3px;
  background: rgba(255, 255, 0, 0.18);
}

.find-highlight.current {
  background: rgba(255, 166, 0, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 200, 0, 0.35);
}

.corner-button[id="toggleLineNumbersBtn"] {
  float: left;
  font-size: 10px;
}

.corner-button[id="closeFindReplaceBtn"] {
  float: right;
  font-size: 10px;
}

#findHighlights {
  position: absolute;
  top: 0;
  left: var(--editor-line-numbers-width);
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

#lineNumbers {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 4;
  height: 100%;
  width: var(--editor-line-numbers-width);
  padding: var(--editor-padding);
  overflow: hidden;
  border-right: 1px solid var(--editor-text);
  background: var(--editor-bg);
  color: var(--editor-line-numbers-color);
  font: var(--editor-font);
  text-align: right;
  white-space: pre;
  user-select: none;
}

#lineNumbers .line-number {
  height: var(--editor-line-height);
}

#lineNumbers .line-number.active,
#lineNumbers .line-number:hover {
  color: var(--editor-line-number-active-color);
  background: var(--editor-line-number-active-bg);
  border-radius: 4px;
}

#lineNumbers .line-number:hover {
  cursor: pointer;
}

#currentLineHighlight {
  position: absolute;
  left: var(--editor-line-numbers-width);
  right: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--editor-line-number-active-bg);
  pointer-events: none;
  user-select: none;
}

#highlighting {
  display: block;
  min-height: 100%;
  line-height: var(--editor-line-height);
}