.LexicalEditorTheme__ltr {
  text-align: left;
}

.LexicalEditorTheme__rtl {
  text-align: right;
}

.LexicalEditorTheme__paragraph {
  margin: 0 0 1em;
  position: relative;
}

.LexicalEditorTheme__quote {
  color: #808286;
  border-left: 4px solid #ced0d4;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  margin-left: 20px;
  padding-left: 16px;
  font-size: 1.2rem;
}

.LexicalEditorTheme__h1, .LexicalEditorTheme__h2, .LexicalEditorTheme__h3, .LexicalEditorTheme__h4 {
  font-family: inherit;
  font-weight: 700;
}

.LexicalEditorTheme__h1 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.LexicalEditorTheme__h2 {
  margin-top: .5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.LexicalEditorTheme__h3 {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.LexicalEditorTheme__h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.LexicalEditorTheme__indent {
  --lexical-indent-base-value: 40px;
}

.LexicalEditorTheme__textBold {
  font-weight: bold;
}

.LexicalEditorTheme__textItalic {
  font-style: italic;
}

.LexicalEditorTheme__textUnderline {
  text-decoration: underline;
}

.LexicalEditorTheme__textStrikethrough {
  text-decoration: line-through;
}

.LexicalEditorTheme__textUnderlineStrikethrough {
  text-decoration: underline line-through;
}

.LexicalEditorTheme__textSubscript {
  vertical-align: sub;
  font-size: .8em;
}

.LexicalEditorTheme__textSuperscript {
  vertical-align: super;
  font-size: .8em;
}

.LexicalEditorTheme__textCode {
  color: #1e293b;
  background-color: #f5f5f4;
  border: 1px solid #e5e7eb;
  border-radius: .25rem;
  padding: .125rem .375rem;
  font-family: Menlo, Consolas, Monaco, monospace;
  font-size: .875em;
  font-weight: 400;
}

html[data-theme="dark"] .LexicalEditorTheme__textCode, .dark .LexicalEditorTheme__textCode {
  color: #f1f5f9;
  background-color: #1e293b;
  border-color: #495362;
}

.LexicalEditorTheme__hashtag {
  background-color: #5890ff26;
  border-bottom: 1px solid #5890ff4d;
}

.LexicalEditorTheme__link {
  color: #216fdb;
  pointer-events: none;
  border-bottom: 1px dotted;
  text-decoration: none;
}

.LexicalEditorTheme__link:hover {
  cursor: pointer;
  text-decoration: underline;
}

.LexicalEditorTheme__code {
  -moz-tab-size: 2;
  tab-size: 2;
  background-color: #f0f2f5;
  margin: 8px 0;
  padding: 8px 8px 8px 52px;
  font-family: Menlo, Consolas, Monaco, monospace;
  font-size: 15px;
  line-height: 1.53;
  display: block;
  position: relative;
  overflow-x: auto;
}

.LexicalEditorTheme__code:before {
  content: attr(data-gutter);
  color: #777;
  white-space: pre-wrap;
  text-align: right;
  background-color: #eee;
  border-right: 1px solid #ccc;
  min-width: 25px;
  padding: 8px;
  position: absolute;
  top: 0;
  left: 0;
}

html[data-theme="dark"] .LexicalEditorTheme__code, .dark .LexicalEditorTheme__code {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .LexicalEditorTheme__code:before, .dark .LexicalEditorTheme__code:before {
  color: #777;
  background-color: #161616;
  border-right: 1px solid #ccc;
}

.LexicalEditorTheme__table {
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  overflow-y: scroll;
}

.LexicalEditorTheme__tableScrollableWrapper {
  margin: 30px 0;
  overflow-x: auto;
}

.LexicalEditorTheme__tableScrollableWrapper > .LexicalEditorTheme__table {
  margin-top: 0;
  margin-bottom: 0;
}

.LexicalEditorTheme__tableSelected {
  outline: 2px solid #3c84f4;
}

.LexicalEditorTheme__tableCell {
  vertical-align: top;
  text-align: start;
  cursor: default;
  border: 1px solid #bbb;
  outline: none;
  min-width: 75px;
  padding: 6px 8px;
  position: relative;
}

.LexicalEditorTheme__tableCellSortedIndicator {
  opacity: .5;
  background-color: #999;
  width: 100%;
  height: 4px;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
}

.LexicalEditorTheme__tableCellResizer {
  cursor: ew-resize;
  z-index: 10;
  width: 8px;
  height: 100%;
  position: absolute;
  top: 0;
  right: -4px;
}

.LexicalEditorTheme__tableCellHeader {
  text-align: start;
  background-color: #f2f3f5;
}

.LexicalEditorTheme__tableCellSelected {
  background-color: #c9dbf0;
}

.LexicalEditorTheme__tableCellPrimarySelected {
  z-index: 2;
  border: 2px solid #3c84f4;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  display: block;
  position: absolute;
  top: -1px;
  left: -1px;
}

.LexicalEditorTheme__tableCellEditing {
  border-radius: 3px;
  box-shadow: 0 0 5px #0006;
}

.LexicalEditorTheme__tableAddColumns {
  cursor: pointer;
  background-color: #eee;
  border: 0;
  width: 20px;
  height: 100%;
  animation: .2s table-controls;
  position: absolute;
  top: 0;
  right: 0;
}

.LexicalEditorTheme__tableAddColumns:after {
  content: " ";
  opacity: .4;
  background-image: url(../../static/svg/plus.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.LexicalEditorTheme__tableAddColumns:hover {
  background-color: #c9dbf0;
}

.LexicalEditorTheme__tableAddRows {
  cursor: pointer;
  background-color: #eee;
  border: 0;
  width: calc(100% - 25px);
  height: 20px;
  animation: .2s table-controls;
  position: absolute;
  bottom: -25px;
  left: 0;
}

.LexicalEditorTheme__tableAddRows:after {
  content: " ";
  opacity: .4;
  background-image: url(../../static/svg/plus.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.LexicalEditorTheme__tableAddRows:hover {
  background-color: #c9dbf0;
}

@keyframes table-controls {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.LexicalEditorTheme__tableCellResizeRuler {
  background-color: #3c84f4;
  width: 1px;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
}

.LexicalEditorTheme__tableCellActionButtonContainer {
  z-index: 4;
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  top: 6px;
  right: 5px;
}

.LexicalEditorTheme__tableCellActionButton {
  color: #222;
  cursor: pointer;
  background-color: #eee;
  border: 0;
  border-radius: 20px;
  width: 20px;
  height: 20px;
  display: block;
}

.LexicalEditorTheme__tableCellActionButton:hover {
  background-color: #ddd;
}

.LexicalEditorTheme__characterLimit {
  background-color: #fbb;
  display: inline;
}

.LexicalEditorTheme__ol1 {
  margin: 1.5rem 0 1.5rem 1rem;
  padding: 0;
  list-style: decimal;
}

.LexicalEditorTheme__ol2 {
  margin: 0 0 .5rem;
  padding: 0;
  list-style-type: lower-alpha;
  list-style-position: outside;
}

.LexicalEditorTheme__ol3 {
  margin: 0 0 .5rem;
  padding: 0;
  list-style-type: lower-roman;
  list-style-position: outside;
}

.LexicalEditorTheme__ol4 {
  margin: 1.5rem 0;
  padding: 0;
  list-style-type: upper-roman;
  list-style-position: outside;
}

.LexicalEditorTheme__ol5 {
  margin: 1.5rem 0;
  padding: 0;
  list-style-type: lower-roman;
  list-style-position: outside;
}

.LexicalEditorTheme__ul {
  margin: 0 0 .5rem;
  padding: 0;
  list-style-type: disc;
  list-style-position: outside;
}

.LexicalEditorTheme__listItem {
  margin: 0 32px;
  padding-left: 4px;
}

.LexicalEditorTheme__listItemChecked, .LexicalEditorTheme__listItemUnchecked {
  outline: none;
  margin-left: 8px;
  margin-right: 8px;
  padding-left: 24px;
  padding-right: 24px;
  list-style-type: none;
  position: relative;
}

.LexicalEditorTheme__listItemChecked {
  text-decoration: line-through;
}

.LexicalEditorTheme__listItemUnchecked:before, .LexicalEditorTheme__listItemChecked:before {
  content: "";
  cursor: pointer;
  background-size: cover;
  width: 16px;
  height: 16px;
  display: block;
  position: absolute;
  top: 7px;
  left: 0;
}

.LexicalEditorTheme__listItemUnchecked[dir="rtl"]:before, .LexicalEditorTheme__listItemChecked[dir="rtl"]:before {
  left: auto;
  right: 0;
}

.LexicalEditorTheme__listItemUnchecked:focus:before, .LexicalEditorTheme__listItemChecked:focus:before {
  border-radius: 2px;
  box-shadow: 0 0 0 2px #a6cdfe;
}

.LexicalEditorTheme__listItemUnchecked:before {
  border: 1px solid #999;
  border-radius: 2px;
}

.LexicalEditorTheme__listItemChecked:before {
  background-color: #3d87f5;
  background-repeat: no-repeat;
  border: 1px solid #3d87f5;
  border-radius: 2px;
}

.LexicalEditorTheme__listItemChecked:after {
  content: "";
  cursor: pointer;
  border: 2px solid #fff;
  border-width: 0 2px 2px 0;
  width: 3px;
  height: 6px;
  display: block;
  position: absolute;
  top: 10px;
  left: 7px;
  right: 7px;
  transform: rotate(45deg);
}

.LexicalEditorTheme__nestedListItem {
  list-style-type: none;
}

.LexicalEditorTheme__nestedListItem:before, .LexicalEditorTheme__nestedListItem:after {
  display: none;
}

.LexicalEditorTheme__tokenComment {
  color: #708090;
}

.LexicalEditorTheme__tokenPunctuation {
  color: #999;
}

.LexicalEditorTheme__tokenProperty {
  color: #905;
}

.LexicalEditorTheme__tokenSelector {
  color: #690;
}

.LexicalEditorTheme__tokenOperator {
  color: #9a6e3a;
}

.LexicalEditorTheme__tokenAttr {
  color: #07a;
}

.LexicalEditorTheme__tokenVariable {
  color: #e90;
}

.LexicalEditorTheme__tokenFunction {
  color: #dd4a68;
}

.LexicalEditorTheme__mark {
  background: #ffd40024;
  border-bottom: 2px solid #ffd4004d;
  padding-bottom: 2px;
}

.LexicalEditorTheme__markOverlap {
  background: #ffd4004d;
  border-bottom: 2px solid #ffd400b3;
}

.LexicalEditorTheme__mark.selected {
  background: #ffd40080;
  border-bottom: 2px solid #ffd400;
}

.LexicalEditorTheme__markOverlap.selected {
  background: #ffd400b3;
  border-bottom: 2px solid #ffd400b3;
}

.LexicalEditorTheme__embedBlock {
  -webkit-user-select: none;
  user-select: none;
}

.LexicalEditorTheme__embedBlockFocus {
  outline: 2px solid #3c84f4;
}

.LexicalEditor__layoutContainer {
  gap: 10px;
  margin: 10px 0;
  display: grid;
}

.LexicalEditor__layoutItem {
  border: 1px dashed #ddd;
  padding: 8px 16px;
}

:is(.dark, [data-theme="dark"]) .LexicalEditorTheme__quote {
  color: #bbbdc0;
}

:is(.dark, [data-theme="dark"]) .LexicalEditorTheme__tableCellHeader {
  background-color: var(--canvas-700);
}

