/* Оболочка TinyMCE (.tox) — в основном документе, не в iframe контента */
.tox.tox-tinymce {
  color: #eaeaea !important;
  border-radius: 8px;
  border: 1px solid #333333;
}
.tox .tox-dialog-wrap__backdrop {
  background-color: #000000 !important;
  opacity: 0.9;
}
.tox .tox-dialog {
  border-radius: 8px !important;
  box-shadow: none !important;
}
.tox .tox-menubar {
  background: #252525;
}
.tox.tox-tinymce, .tox.tox-tinymce-inline .tox-editor-header {
  border-color: #333333;
}
.tox .tox-editor-header .tox-menubar,
.tox .tox-menubar {
  background-color: #252525;
}
.tox .tox-button {
  border-radius: 8px;
}
.tox .tox-button:not(.tox-button--icon) {
  font-weight: 400;
  color: #b3b3b3;
  background-color: #1a1a1a;
  border-color: #1a1a1a;
}
.tox .tox-button:focus:not(:disabled), .tox .tox-button:hover:not(:disabled) {
  background-color: #2a2a2a;
  border-color: #2a2a2a;
  color: #ffffff;
}
.tox .tox-button:active:not(:disabled) {
  background-color: #252525;
  border-color: #252525;
  color: #ffffff;
}
.tox .tox-mbtn {
  border-radius: 8px;
  color: #b3b3b3;
}
.tox .tox-mbtn:focus:not(:disabled), .tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) {
  background: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-mbtn--active {
  background: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-mbtn[disabled] {
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-toolbar-overlord {
  background-color: #252525;
  border-bottom-color: #252525;
}
.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  background-color: #252525;
}
.tox .tox-tbtn {
  color: #b3b3b3;
}
.tox .tox-tbtn svg {
  fill: #b3b3b3 !important;
}
.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) {
  color: #ffffff;
}
.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg {
  fill: #ffffff;
}
.tox .tox-tbtn:focus, .tox .tox-tbtn:hover {
  background: #2a2a2a;
  color: #ffffff;
}
.tox .tox-tbtn:focus svg, .tox .tox-tbtn:hover svg {
  fill: #ffffff;
}
.tox .tox-tbtn:active {
  background: #2a2a2a;
  color: #ffffff;
}
.tox .tox-tbtn:active svg {
  fill: #ffffff;
}
.tox .tox-tbtn--disabled, .tox .tox-tbtn:disabled {
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-tbtn--disabled svg, .tox .tox-tbtn:disabled svg {
  fill: rgba(179, 179, 179, 0.5);
}
.tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover {
  background: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-tbtn--enabled svg, .tox .tox-tbtn--enabled:hover svg {
  fill: #b3b3b3;
}
.tox .tox-split-button:hover {
  box-shadow: 0 0 0 1px #2a2a2a inset;
}
.tox .tox-split-button:focus {
  background: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-split-button__chevron svg {
  fill: var(--bs-secondary-color);
}
.tox .tox-split-button.tox-tbtn--disabled:hover {
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-button--secondary {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #b3b3b3;
}
.tox .tox-button--secondary[disabled] {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-button--secondary:focus:not(:disabled), .tox .tox-button--secondary:hover:not(:disabled) {
  background-color: #2a2a2a;
  border-color: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-button--secondary:active:not(:disabled) {
  background-color: #252525;
  border-color: #252525;
  color: #b3b3b3;
}
.tox .tox-button--naked {
  color: #b3b3b3;
}
.tox .tox-button--naked[disabled] {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-button--naked:hover:not(:disabled), .tox .tox-button--naked:focus:not(:disabled), .tox .tox-button--naked:active:not(:disabled) {
  background-color: #2a2a2a;
  border-color: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) {
  color: #ffffff;
}
.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg {
  fill: var(--bs-secondary-color);
}
.tox .tox-checkbox--disabled {
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg,
.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg,
.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg {
  fill: rgba(179, 179, 179, 0.5);
}
.tox .tox-collection--list .tox-collection__group {
  border-color: #3a3a3a;
}
.tox .tox-collection__group-heading {
  background-color: #252525;
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-collection__item {
  color: #b3b3b3;
}
.tox .tox-collection--list .tox-collection__item--enabled {
  background-color: #252525;
  color: #b3b3b3;
}
.tox .tox-collection--list .tox-collection__item--active,
.tox .tox-collection--toolbar .tox-collection__item--active,
.tox .tox-collection--grid .tox-collection__item--active {
  background-color: #2a2a2a;
}
.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled),
.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled),
.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled) {
  color: #ffffff;
}
.tox .tox-collection--toolbar .tox-collection__item--enabled,
.tox .tox-collection--grid .tox-collection__item--enabled {
  background-color: #2a2a2a;
  color: #b3b3b3;
}
.tox .tox-collection__item--state-disabled {
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-collection__item-accessory {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-collection__item-caret svg {
  fill: #b3b3b3;
}
.tox .tox-collection--horizontal {
  background-color: #252525;
  border-color: #3a3a3a;
}
.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type), .tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {
  border-color: #3a3a3a;
}
.tox .tox-swatches__picker-btn:hover {
  background: #2a2a2a;
}
.tox .tox-comment-thread {
  background: #252525;
}
.tox .tox-comment {
  background: #252525;
  border-color: #3a3a3a;
}
.tox .tox-comment__header,
.tox .tox-comment__body,
.tox .tox-comment__loading-text {
  color: #b3b3b3;
}
.tox .tox-comment__date,
.tox .tox-comment__expander p {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-comment-thread__overlay::after,
.tox .tox-comment__overlay,
.tox .tox-comment__gradient::after,
.tox .tox-comment__overlaytext p,
.tox .tox-comment__busy-spinner {
  background-color: #252525;
}
.tox .tox-comment__overlaytext p {
  color: #b3b3b3;
}
.tox .tox-user__avatar svg {
  fill: rgba(179, 179, 179, 0.75);
}
.tox .tox-user__name {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-dialog-wrap__backdrop--opaque {
  background-color: #252525;
}
.tox .tox-dialog {
  background-color: #141414;
  border-color: #141414;
}
.tox .tox-dialog__header {
  background-color: #252525;
  color: #b3b3b3;
  border-color: #252525;
}
.tox .tox-dialog__body {
  color: #b3b3b3;
}
.tox .tox-dialog__body-nav-item {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-dialog__body-nav-item:focus {
  background: transparent;
}
.tox .tox-dialog__body-nav-item--active {
  border-color: transparent;
  color: #ffffff;
}
.tox .tox-dialog__body-content svg {
  fill: #b3b3b3;
}
.tox .tox-dialog__footer {
  background-color: #141414;
  border-top-color: #141414;
}
.tox .tox-dialog__table tbody tr {
  border-bottom-color: #3a3a3a;
}
.tox .tox-dialog__busy-spinner {
  background-color: rgba(255, 255, 255, 0.75);
}
.tox .tox-dropzone {
  background: #252525;
  border-color: #3a3a3a;
}
.tox .tox-dropzone p {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-edit-area__iframe {
  background-color: #252525;
}
.tox.tox-inline-edit-area {
  border-color: #3a3a3a;
}
.tox .tox-label,
.tox .tox-toolbar-label {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-selectfield select,
.tox .tox-textarea,
.tox .tox-textfield,
.tox .tox-toolbar-textfield {
  background-color: #141414;
  border-color: #333333;
  color: #b3b3b3;
  border-radius: 8px;
}
.tox .tox-selectfield select:focus,
.tox .tox-textarea:focus,
.tox .tox-textfield:focus,
.tox .tox-toolbar-textfield:focus {
  border-color: #3a3a3a;
}
.tox .tox-textarea[disabled],
.tox .tox-textfield[disabled] {
  background-color: #141414;
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-selectfield select[disabled] {
  background-color: #141414;
  color: rgba(179, 179, 179, 0.5);
}
.tox .tox-naked-btn svg {
  fill: #b3b3b3;
}
.tox .tox-color-input span {
  border-color: rgba(179, 179, 179, 0.2);
}
.tox .tox-color-input span::before {
  border-color: #252525;
}
.tox .tox-insert-table-picker > div {
  border-color: #3a3a3a;
}
.tox .tox-insert-table-picker__label {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-menu {
  background-color: #252525;
  border-color: #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar {
  border-top-color: #3a3a3a;
}
.tox .tox-pop__dialog {
  background-color: #252525;
  border-color: #3a3a3a;
}
.tox .tox-pop.tox-pop--bottom::after {
  border-top-color: #252525;
}
.tox .tox-pop.tox-pop--bottom::before {
  border-top-color: #3a3a3a;
}
.tox .tox-pop.tox-pop--top::after {
  border-bottom-color: #252525;
}
.tox .tox-pop.tox-pop--top::before {
  border-bottom-color: #3a3a3a;
}
.tox .tox-pop.tox-pop--left::after {
  border-right-color: #252525;
}
.tox .tox-pop.tox-pop--left::before {
  border-right-color: #3a3a3a;
}
.tox .tox-pop.tox-pop--right::after {
  border-left-color: #252525;
}
.tox .tox-pop.tox-pop--right::before {
  border-left-color: #3a3a3a;
}
.tox .tox-sidebar {
  background-color: #252525;
}
.tox .tox-slider__rail {
  border-color: #3a3a3a;
}
.tox .tox-spinner > div {
  background-color: rgba(179, 179, 179, 0.75);
}
.tox .tox-statusbar {
  background-color: #252525;
  border-top-color: #3a3a3a;
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-statusbar a,
.tox .tox-statusbar__path-item,
.tox .tox-statusbar__wordcount {
  color: rgba(179, 179, 179, 0.75);
}
.tox .tox-statusbar__resize-handle svg {
  fill: rgba(179, 179, 179, 0.75);
}
.tox .tox-throbber__busy-spinner {
  background-color: rgba(255, 255, 255, 0.6);
}
.tox .tox-tooltip__body {
  background-color: #1a1a1a;
}
.tox .tox-tooltip--down .tox-tooltip__arrow {
  border-top-color: #1a1a1a;
}
.tox .tox-tooltip--up .tox-tooltip__arrow {
  border-bottom-color: #1a1a1a;
}
.tox .tox-tooltip--right .tox-tooltip__arrow {
  border-left-color: #1a1a1a;
}
.tox .tox-tooltip--left .tox-tooltip__arrow {
  border-right-color: #1a1a1a;
}
.tox .tox-well,
.tox .tox-custom-editor {
  border-color: #3a3a3a;
}
.tox .tox-menubar + .tox-toolbar,
.tox .tox-menubar + .tox-toolbar-overlord .tox-toolbar__primary {
  border-top-color: #3a3a3a;
}
.tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary, .tox.tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child {
  border-top-color: #3a3a3a;
}

.tox .tox-dialog__body,
.tox .tox-form,
.tox .tox-form__group,
.tox .tox-label,
.tox .tox-toolbar-label {
  color: #eaeaea !important;
}
.tox .tox-collection__item {
  color: #eaeaea !important;
}
.tox .tox-collection__item-accessory {
  color: rgba(179, 179, 179, 0.75) !important;
}
.tox .tox-swatches__picker-btn svg {
  fill: #eaeaea;
}
.tox,
.tox * {
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.tox *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.tox *::-webkit-scrollbar-track {
  background: transparent;
}
.tox *::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
.tox *::-webkit-scrollbar-thumb:hover {
  background: #555;
}