.highlight-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.highlight-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden; 
  box-sizing: border-box;
}

.highlight-wrapper textarea,
.highlight-wrapper .char-prompt-text,
.highlight-wrapper .char-negative-prompt {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  background: transparent !important;
  border: 1px solid var(--discord-border);
  border-radius: 8px;
  color: var(--discord-text);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  resize: vertical;
  display: block;
  box-sizing: border-box;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.emphasis-1 {
  background: rgba(67, 181, 129, 0.25);
  border-radius: 2px;
}

.emphasis-2 {
  background: rgba(67, 181, 129, 0.4);
  border-radius: 2px;
}

.emphasis-3 {
  background: rgba(67, 181, 129, 0.55);
  border-radius: 2px;
}

.deemphasis-1 {
  background: rgba(237, 66, 69, 0.55);
  border-radius: 2px;
}

.deemphasis-2 {
  background: rgba(237, 66, 69, 0.4);
  border-radius: 2px;
}

.deemphasis-3 {
  background: rgba(237, 66, 69, 0.25);
  border-radius: 2px;
}