.em-element-editor-widget {
  background: #fff;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
}

.of-group .em-element-editor-widget {
  background: #edeff6;
}

.of-group [class^='em-element-editor-widget-']:hover {
  background: #dcdee7;
}

.of-group .em-element-editor-group:hover {
  background: #edeff6;
}

.of-atom .em-element-editor-widget {
  background: #d0ebff;
}

[class^='em-element-editor-widget-'] {
  width: 24px;
  height: 24px;
  display: block;
  box-sizing: border-box;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  color: #758192;
}

[class^='em-element-editor-widget-']:hover {
  color: #000;
  background: #dee0e2;
  border-radius: 3px;
}

.em-element-editor-group:hover {
  background: #fff;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
}

[class*='em-show']::before,
[class*='em-amp-show']::before {
  color: #758192;
  background-color: #fff;
}

td:empty[height] {
  background: rgb(255 255 255 / 0.1%);
}

/* Tiny CSS */
body .tox.tox-tinymce--toolbar-bottom .tox-editor-header,
body .tox.tox-tinymce-inline .tox-editor-header,
body .tox.tox-tinymce--toolbar-sticky-on .tox-editor-header {
  padding: 4px 0;
  background: #fff;
  border: none;
}

body .tox-tinymce-inline {
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);

  /* margin-top: -7px; */
}

body .tox.tox-tinymce--toolbar-sticky-on .tox-editor-header {
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
  border-radius: 6px;
  margin-top: 7px;
}

body .tox .tox-toolbar,
.tox .tox-toolbar__overflow,
body .tox .tox-toolbar__primary {
  background: none;
}

body .tox .tox-tbtn svg {
  fill: #545960;
}

body .tox .tox-tbtn--enabled svg,
body .tox .tox-tbtn--enabled:hover svg {
  fill: #4285f4;
}

body .tox .tox-tbtn--enabled,
body .tox .tox-tbtn--enabled:hover {
  background: #d9e7fd;
}

body .tox .tox-tbtn {
  margin: 2px 2px 3px;
}

body .tox .tox-button--secondary {
  color: rgb(0 0 0 / 85%);
  border-color: #d9d9d9;
  background: #fff;
  box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
}

body .tox .tox-button--secondary:hover:not(:disabled),
body .tox .tox-button--secondary:focus:not(:disabled) {
  color: #40a9ff;
  border-color: #40a9ff;
  background: #fff;
}

body .tox .tox-button--naked {
  border-color: #d9d9d9;
  background: #fff;
  color: rgb(0 0 0 / 85%);
  box-shadow: 0 2px 0 rgb(0 0 0 / 2%);
}

body .tox .tox-button--naked.tox-button--icon:hover:not(:disabled) {
  color: #40a9ff;
  border-color: #40a9ff;
  background: #fff;
}

.em-code,
img[src*='<!--']::after {
  background-color: #fff;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
}

.em-element-path-panel {
  background-color: #fff;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
  color: #8c8c8c;
}

.em-element-path-content > div:hover {
  color: #595959;
}

.em-element-path-item-block {
  color: #000;
}

.em-element-path-content > div.em-element-path-item-block:hover {
  color: #777;
}

.em-element-path-item-atom {
  color: #85a5ff;
}

.em-element-path-content > div.em-element-path-item-atom:hover {
  color: #597ef7;
}

.em-element-path-item-group {
  color: #1890ff;
}

.em-element-path-content > div.em-element-path-item-group:hover {
  color: #096dd9;
}

.em-element-path-item-email {
  color: #722ed1;
}

.em-element-path-content > div.em-element-path-item-email:hover {
  color: #531dab;
}

.em-element-path-overflow-left::before {
  background: linear-gradient(90deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 0%) 100%);
}

.em-element-img-change-group {
  color: #758192;
  background-color: #fff;
}

.em-element-img-change-group > i:hover {
  color: #000;
  background: #dee0e2;
  border-radius: 3px;
}

.em-element-block-add {
  color: #758192;
  background: #fff;
  box-shadow: 0 3px 10px rgb(61 70 77 / 15%);
}

.em-element-block-add > i:hover {
  color: #000;
  background: #dee0e2;
}

em-replace::after {
  background-color: var(--colorLink);
}

/* Маркер глобального блока в превью (псевдоэлемент, см. sandbox.css) */
[em='block'][em-block-id]:not(tr)::after,
tr[em='block'][em-block-id] > td:first-of-type::after {
  background: rgb(255 255 255 / 0.85);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
  color: #8c8c8c;
}

