/*
  Fix storyboard script editor caret drift.
  The editor uses a textarea plus a highlight overlay. Keep the textarea as the
  visible text layer, and use the overlay only for mention backgrounds.
*/
html body .mention-editor-shell {
  position: relative !important;
}

html body .mention-editor-shell .mention-editor-overlay,
html body .mention-editor-shell .mention-editor-input textarea.el-textarea__inner,
html body .mention-editor-shell .mention-editor-input .el-textarea__inner {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 5px 11px !important;
  border: 1px solid transparent !important;
  font-family: "MiSans" !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  tab-size: 4 !important;
  font-variant-ligatures: none !important;
  text-align: left !important;
}

html body .mention-editor-shell .mention-editor-overlay {
  z-index: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

html body .mention-editor-shell .mention-editor-input textarea.el-textarea__inner,
html body .mention-editor-shell .mention-editor-input .el-textarea__inner {
  z-index: 2 !important;
  position: relative !important;
  color: #d8d7e3 !important;
  -webkit-text-fill-color: #d8d7e3 !important;
  caret-color: #ffffff !important;
  background: transparent !important;
  resize: none !important;
}

html body .mention-editor-shell .mention-editor-input textarea.el-textarea__inner::placeholder,
html body .mention-editor-shell .mention-editor-input .el-textarea__inner::placeholder {
  color: #7d7e8f !important;
  -webkit-text-fill-color: #7d7e8f !important;
}

html body .mention-editor-shell .mention-editor-overlay .mention-chip {
  display: inline !important;
  align-items: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 4px !important;
  font: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  box-shadow: none !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

html body .mention-editor-shell .mention-editor-overlay .mention-chip--character {
  background: rgba(124, 58, 237, 0.55) !important;
}

html body .mention-editor-shell .mention-editor-overlay .mention-chip--scene {
  background: rgba(22, 163, 74, 0.5) !important;
}

html body .mention-editor-shell .mention-editor-overlay .mention-chip--prop {
  background: rgba(245, 158, 11, 0.5) !important;
}
