/*
	Mineby: look of the TinyMCE editor UI (toolbar, menus, colour palette, dialogs).
	Port of the Froala look of DLE 15.2 (site.css ".fr-*" rules and froala/css/editor.css "Bars" section).
	Loaded on the site (main.tpl) and in the admin panel (DLE plugin "Mineby: ядро DLE 18").
	TinyMCE base skin is oxide-dark, forced by js/tinymce.mineby.js.
*/

/* Minecraft font: the admin panel does not load the site styles */
@font-face {
	font-family: minecraft-fixed;
	/*src: url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.ttf), url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.otf), url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.woff), url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.svg);*/
	src: url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.eot);
	src: url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.eot?#iefix) format('embedded-opentype'),
		 url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.otf) format('otf'),
		 url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.woff) format('woff'),
		 url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.woff2) format('woff2'),
		 url(/templates/Mineby/fonts/Minecraft--Fix-by-Bl_ckBuster.svg#Minecraft--Fix-by-Bl_ckBuster) format('svg');
}

/* ---------- Frame ---------- */
.tox.tox-tinymce {
	border: 1px solid #4c4c4c !important;
	border-radius: 5px !important;
	background: #120d0a url(../images/bg1.png) repeat fixed !important;
	box-shadow: none !important;
	position: relative;
}
.tox.tox-tinymce .tox-edit-area::before {
	display: none !important; /* focus outline of oxide */
}
.tox.tox-tinymce .tox-edit-area__iframe {
	background: transparent !important;
}
.tox.tox-tinymce .tox-statusbar {
	display: none !important;
}

/* ---------- Toolbar ---------- */
.tox.tox-tinymce .tox-editor-header {
	background: url(../images/bg.png) repeat !important;
	border-bottom: 1px solid #4c4c4c !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.tox.tox-tinymce .tox-toolbar-overlord,
.tox.tox-tinymce .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary,
.tox.tox-tinymce .tox-toolbar__overflow,
.tox .tox-toolbar__overflow {
	background: transparent none !important;
	border: none !important;
	box-shadow: none !important;
}
.tox.tox-tinymce .tox-toolbar__primary {
	padding: 0 5px !important;
}
.tox .tox-toolbar__group {
	padding: 0 6px !important;
	margin: 0 !important;
	min-height: 46px;
	align-items: center;
}
.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type),
.tox .tox-toolbar__group:not(:last-of-type) {
	border-right: 1px solid #4c4c4c !important;
}
.tox.tox-tinymce .tox-toolbar + .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary + .tox-toolbar__primary {
	border-top: 1px solid #4c4c4c !important; /* second row (posts): like Froala horizontal separator */
}

/* Buttons */
.tox.tox .tox-tbtn:not(.tox-tbtn--select) {
	width: 40px !important; /* Froala buttons: ~48px pitch */
}
.tox.tox-tinymce.mineby-post-editor .tox-tbtn:not(.tox-tbtn--select) {
	width: 34px !important; /* posts have two full rows of buttons */
}
.tox.tox-tinymce.mineby-post-editor .tox-toolbar__group {
	padding: 0 3px !important;
}
.tox.tox .tox-tbtn--bespoke .tox-tbtn__select-label {
	width: auto !important;
}
.tox.tox .tox-tbtn[aria-label="Цвет текста"] .tox-tbtn__select-chevron,
.tox.tox .tox-tbtn[aria-label="Цвет фона"] .tox-tbtn__select-chevron {
	display: none !important; /* Froala colour button: just a drop, no chevron */
}
.tox.tox .tox-tbtn,
.tox.tox .tox-split-button,
.tox.tox .tox-tbtn--select {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #7c7c7c !important;
	text-shadow: none !important;
	font-family: Helvetica, Arial, Tahoma, sans-serif !important;
	transition: color 0.3s;
	margin: 0 2px !important;
}
.tox.tox .tox-tbtn svg,
.tox.tox .tox-split-button svg,
.tox.tox .tox-tbtn--select svg {
	fill: #7c7c7c !important;
	transition: fill 0.3s;
}
.tox.tox .tox-tbtn:hover,
.tox.tox .tox-tbtn:focus,
.tox.tox .tox-split-button:hover,
.tox.tox .tox-tbtn--enabled,
.tox.tox .tox-tbtn--enabled:hover,
.tox.tox .tox-tbtn--active {
	background: none !important;
	color: #d9d9d9 !important;
}
.tox.tox .tox-tbtn:hover svg,
.tox.tox .tox-tbtn:focus svg,
.tox.tox .tox-split-button:hover svg,
.tox.tox .tox-tbtn--enabled svg,
.tox.tox .tox-tbtn--active svg {
	fill: #d9d9d9 !important;
}
.tox.tox .tox-tbtn:active,
.tox.tox .tox-tbtn:active svg {
	color: #ffffa0 !important;
	fill: #ffffa0 !important;
}
.tox.tox .tox-tbtn--disabled svg,
.tox.tox .tox-tbtn:disabled svg {
	fill: #4c4c4c !important;
}
.tox.tox .tox-tbtn__select-chevron svg {
	fill: #4c4c4c !important;
}
.tox.tox .tox-split-button__chevron {
	background: none !important;
}
.tox.tox .tox-tbtn__select-label {
	color: inherit !important;
}

/* ---------- Character counter (Froala charCounter) ---------- */
.tox.tox-tinymce .mineby-counter {
	position: absolute;
	right: 15px;
	bottom: 13px;
	z-index: 2;
	pointer-events: none;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif;
	font-size: 12px;
	line-height: 1;
	color: #ffffff;
	opacity: 0.25;
	text-shadow: none;
}

/* ---------- Menus, palette, popups (rendered at body level in .tox-tinymce-aux) ---------- */
.tox .tox-menu,
.tox .tox-collection--list,
.tox .tox-collection--grid,
.tox .tox-swatches-menu,
.tox .tox-pop__dialog,
.tox .tox-tooltip__body {
	background: url(../images/bg.png) repeat !important;
	border: 1px solid #4c4c4c !important;
	border-radius: 0 0 3px 3px !important;
	box-shadow: none !important;
	color: #aaaaaa !important;
	text-shadow: none !important;
}
.tox .tox-collection__item {
	color: #aaaaaa !important;
	text-shadow: none !important;
}
.tox .tox-collection__item svg {
	fill: #aaaaaa !important;
}
.tox .tox-collection__item--active:not(.tox-swatch),
.tox .tox-collection__item--enabled:not(.tox-swatch),
.tox .tox-collection__item:not(.tox-swatch):hover {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #ffffff !important;
}
.tox .tox-collection__item--active svg,
.tox .tox-collection__item:hover svg {
	fill: #ffffff !important;
}
.tox .tox-swatches {
	padding: 7px 10px !important;
}
.tox .tox-swatch {
	border: 1px solid #000000 !important;
	margin: -1px 0 0 -1px !important;
	width: 26px !important;
	height: 26px !important;
	box-shadow: none !important;
}
.tox .tox-swatch:hover,
.tox .tox-swatch:focus {
	outline: 2px solid #ffffff !important;
	z-index: 1;
	position: relative;
}
.tox .tox-tooltip__body {
	border-radius: 3px !important;
	color: #d9d9d9 !important;
	font-family: Helvetica, Arial, Tahoma, sans-serif !important;
}
.tox .tox-tooltip__arrow {
	border-top-color: #4c4c4c !important;
	border-bottom-color: #4c4c4c !important;
}

/* ---------- Dialogs (image, link, video, source code) ----------
	Same Minecraft window as the site dialogs (site.css .ui-dialog: upload window, alerts):
	grey #c6c6c6 frame, black border, bevelled inner panel #797e85, Minecraft font and buttons. */
.tox .tox-dialog-wrap__backdrop {
	background: rgba(0, 0, 0, 0.6) !important;
}
.tox .tox-dialog {
	position: relative !important;
	overflow: visible !important;
	background: #c6c6c6 !important;
	border: 2px solid #000000 !important;
	border-radius: 0 !important; /* pixel corners come from sprite7.png, like the site modals */
	box-shadow: none !important;
	padding: 0 8px 8px !important;
	color: #464546 !important;
	text-shadow: none !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
}
.tox .tox-dialog__header {
	background: transparent !important;
	border: none !important;
	padding: 10px 40px 9px !important;
	justify-content: center !important;
	position: static !important;
}
/* Pixel corners of the Minecraft window (same sprite and positions as .fancybox-slide .modal-outer / .ui-dialog) */
.tox .tox-dialog::before,
.tox .tox-dialog::after,
.tox .tox-dialog__header::before,
.tox .tox-dialog__header::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	background: url(../images/sprite7.png) no-repeat;
	z-index: 11;
	pointer-events: none;
}
.tox .tox-dialog::before { top: -2px; left: -2px; background-position: -278px -165px; }
.tox .tox-dialog__header::before { top: -2px; right: -2px; left: auto; background-position: -288px -165px; }
.tox .tox-dialog__header::after { bottom: -2px; left: -2px; top: auto; background-position: -278px -175px; }
.tox .tox-dialog::after { bottom: -2px; right: -2px; background-position: -288px -175px; }
.tox .tox-dialog__title {
	flex: 1 1 auto;
	text-align: center;
	color: #464546 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	font-size: 12pt !important;
	font-weight: normal !important;
	text-shadow: none !important;
}
.tox .tox-dialog__header .tox-button--icon {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	width: 43px !important;
	height: 39px !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	z-index: 12;
}
.tox .tox-dialog__header .tox-button--icon .tox-icon {
	display: none !important;
}
/* Same cross as the site modals (site.css .fancybox-close-small:after) */
.tox .tox-dialog__header .tox-button--icon::after {
	content: "x";
	position: absolute;
	top: 5px;
	right: 6px;
	font-family: minecraft-fixed;
	font-size: 12pt;
	line-height: normal;
	color: #000000;
	text-shadow: none;
	background: none;
}
.tox .tox-dialog__header .tox-button--icon:hover::after {
	color: #aa0000;
}
.tox .tox-dialog__content-js,
.tox .tox-dialog__body {
	background: #797e85 !important;
	border-top: 2px solid #393939 !important;
	border-left: 2px solid #393939 !important;
	border-right: 2px solid #ffffff !important;
	border-bottom: 2px solid #ffffff !important;
	color: #ffffff !important;
	text-shadow: 2px 2px 0 #383838 !important;
}
.tox .tox-dialog__content-js .tox-dialog__body {
	border: none !important;
}
.tox .tox-dialog__body-content {
	padding: 12px !important;
}
.tox .tox-dialog__body {
	flex-direction: column !important;
}
.tox .tox-dialog__body-nav {
	display: flex !important;
	width: calc(100% - 24px) !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 4px 18px;
	padding: 10px 12px 0 !important;
	margin: 0 12px;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.tox .tox-dialog__body-nav-item {
	margin: 0 !important;
	padding-bottom: 6px !important;
}
.tox .tox-dialog__body-nav-item {
	color: #e0e0e0 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	text-shadow: 2px 2px 0 #383838 !important;
	border-bottom: 2px solid transparent !important;
}
.tox .tox-dialog__body-nav-item--active,
.tox .tox-dialog__body-nav-item:hover {
	color: #ffffa0 !important;
	border-bottom-color: #ffffa0 !important;
}
.tox .tox-label,
.tox .tox-dialog__body p,
.tox .tox-checkbox__label {
	color: #ffffff !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	text-shadow: 2px 2px 0 #383838 !important;
}
.tox .tox-textfield,
.tox .tox-textarea,
.tox .tox-listboxfield .tox-listbox--select,
.tox .tox-selectfield select,
.tox .tox-textarea-wrap {
	background: #000000 !important;
	border: 2px solid #a0a0a0 !important;
	border-radius: 0 !important;
	color: #e0e0e0 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	text-shadow: 2px 2px 0 #383838 !important;
	min-height: 40px;
	box-shadow: none !important;
	transition: border-color 0.3s;
}
.tox .tox-textarea-wrap .tox-textarea {
	border: none !important;
}
.tox .tox-textfield:focus,
.tox .tox-textarea:focus,
.tox .tox-listboxfield .tox-listbox--select:focus {
	border-color: #ffffff !important;
	box-shadow: none !important;
}
.tox .tox-listbox__select-chevron svg,
.tox .tox-browse-url svg,
.tox .tox-lock svg,
.tox .tox-form__controls-h-stack .tox-button svg {
	fill: #ffffff !important;
}
.tox .tox-form__controls-h-stack .tox-browse-url,
.tox .tox-lock.tox-button,
.tox .tox-dialog__body .tox-button--icon {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}
.tox .tox-dialog__footer {
	background: transparent !important;
	border: none !important;
	justify-content: center !important;
	padding: 10px 0 2px !important;
}
.tox .tox-dialog__footer .tox-button,
.tox .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url) {
	height: 39px !important;
	line-height: 37px !important;
	padding: 0 15px !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	font-size: 12pt !important;
	font-weight: normal !important;
	text-shadow: 2px 2px 0 #383838 !important;
	background: url(../images/input-button-left.png) left top no-repeat, url(../images/input-button-right.png) right top no-repeat, url(../images/input-button-center.png) left top repeat-x !important;
}
.tox .tox-dialog__footer .tox-button:hover,
.tox .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):hover {
	background: url(../images/input-button-left.png) left -38px no-repeat, url(../images/input-button-right.png) right -38px no-repeat, url(../images/input-button-center.png) left -38px repeat-x !important;
	color: #ffffa0 !important;
}
.tox .tox-dialog__footer-end > * + * {
	margin-left: 8px !important;
}
.tox .tox-dialog__footer-start {
	display: none;
}

/* DLE emoticons popup */
.tox .dle-emoticon {
	max-height: 290px !important;
	padding: 2px 0;
}

/* ---------- Unified width of post editors (news, wiki, MineZ locations, servers, static pages) ----------
	The text column inside the editor is 896px, like the published article (page.css: .article.mineby > p, > div;
	editor.css: body.mineby-editor-post > *). So the editor box is 928px (896 + 2 x 15px padding + border)
	everywhere: add/edit on the site and in the admin panel. Narrow screens shrink it. */
.tox.tox-tinymce.mineby-post-editor {
	width: 928px !important;
	max-width: 100% !important;
}
/* On the site the form (.static) has 15px side padding: let the editor use it to reach 928px */
.mineby .static .tox.tox-tinymce.mineby-post-editor {
	width: calc(100% + 30px) !important;
	max-width: calc(100% + 30px) !important;
	margin-left: -15px;
	margin-right: -15px;
}

/* ---------- DLE upload dialog on the site (Minecraft buttons from buttons.css) ----------
	The button sprite is 76px high: normal state on top, hover state at the bottom, 38px each.
	plupload buttons were 47px high and showed 8px of the hover state as a purple bar. */
.mineby .dle-popup-mediaupload .ui-button,
.mineby .dle-popup-mediaupload .plupload_button {
	height: 39px !important;
	min-height: 0 !important;
	line-height: 37px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}
.mineby .dle-popup-mediaupload .ui-button .ui-button-text {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 37px !important;
}
/* View switch (list / thumbnails) sat on top of the "Status / Size" header cells */
.mineby .dle-popup-mediaupload .plupload_filelist_header .plupload_file_size {
	padding-right: 60px !important; /* the header is display:table, so the space goes to its last cell */
	width: 130px !important;
	box-sizing: border-box;
}

/* ---------- DLE upload window on the site: tabs, buttons, file cards in the Minecraft window style ---------- */
.mineby .dle-popup-mediaupload .tabs a {
	color: #e0e0e0 !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	text-shadow: 2px 2px 0 #383838;
}
.mineby .dle-popup-mediaupload .tabs a.current,
.mineby .dle-popup-mediaupload .tabs a:hover {
	color: #ffffa0 !important;
	background: transparent !important;
	border-bottom-color: #ffffa0 !important;
}
.mineby .dle-popup-mediaupload .mediaupload-box,
.mineby .dle-popup-mediaupload .mediaupload-row,
.mineby .dle-popup-mediaupload .upload-options {
	border-color: #393939 !important;
	box-shadow: none !important;
	background: transparent !important;
}
.mineby .dle-popup-mediaupload .upload-restriction {
	opacity: 0.75;
}
.mineby .dle-popup-mediaupload .mediaupload-col3 button,
.mineby .dle-popup-mediaupload .media-upload-button {
	height: 39px !important;
	line-height: 37px !important;
	padding: 0 15px !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #ffffff !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	text-shadow: 2px 2px 0 #383838 !important;
	background: url(../images/input-button-left.png) left top no-repeat, url(../images/input-button-right.png) right top no-repeat, url(../images/input-button-center.png) left top repeat-x !important;
}
.mineby .dle-popup-mediaupload .mediaupload-col3 button:hover,
.mineby .dle-popup-mediaupload .media-upload-button:hover {
	color: #ffffa0 !important;
	background: url(../images/input-button-left.png) left -38px no-repeat, url(../images/input-button-right.png) right -38px no-repeat, url(../images/input-button-center.png) left -38px repeat-x !important;
}
/* File cards */
.mineby .dle-popup-mediaupload .file-preview-card .file-content {
	border-color: #393939 !important;
	box-shadow: none !important;
	background-color: rgba(0, 0, 0, 0.25);
}
.mineby .dle-popup-mediaupload .file-preview-card .file-footer {
	border-top-color: #393939 !important;
	box-shadow: none !important;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-footer-caption {
	border-color: #393939 !important;
	background: #5d6168;
	color: #ffffff;
	text-shadow: 2px 2px 0 #383838;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-size-info {
	color: #c6c6c6 !important;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-footer-bottom {
	background: #4d5156 !important;
	border-color: #393939 !important;
	border-top-color: #6b7076 !important;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-footer a {
	color: #e0e0e0 !important;
	text-shadow: none;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-footer a:hover {
	color: #ffffa0 !important;
}
.mineby .dle-popup-mediaupload .file-preview-card .file-delete a {
	color: #ff5555 !important;
}
.mineby .dle-popup-mediaupload .file-preview-card.active .file-content,
.mineby .dle-popup-mediaupload .file-preview-card.active .file-footer-caption,
.mineby .dle-popup-mediaupload .file-preview-card.active .file-footer-bottom {
	border-color: #ffaa00 !important;
}
.mineby .dle-popup-mediaupload .file-preview-card .active-ribbon span {
	background-color: #ffaa00 !important;
}
.mineby .dle-popup-mediaupload .mediaupload-insert-params {
	/* same bevelled inner panel as the window content */
	background: #797e85 !important;
	border-top: 2px solid #393939 !important;
	border-left: 2px solid #393939 !important;
	border-right: 2px solid #ffffff !important;
	border-bottom: 2px solid #ffffff !important;
	margin: 8px 0 4px;
	padding: 12px !important;
	color: #ffffff !important;
	text-shadow: 2px 2px 0 #383838 !important;
}
.mineby .dle-popup-mediaupload .mediaupload-insert-params label,
.mineby .dle-popup-mediaupload .mediaupload-insert-params span {
	color: #ffffff !important;
	text-shadow: 2px 2px 0 #383838 !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button.ui-state-active {
	color: #ffffa0 !important;
}
/* Insert parameters (after selecting a file): the Minecraft font is wider, let the rows wrap */
.mineby .dle-popup-mediaupload .mediaupload-image-title,
.mineby .dle-popup-mediaupload .mediaupload-thumbs-params,
.mineby .dle-popup-mediaupload .mediaupload-file-params {
	flex-wrap: wrap !important;
	gap: 8px 16px;
	white-space: normal !important;
}
.mineby .dle-popup-mediaupload .insert-imagetitle {
	flex: 1 1 260px;
	width: auto !important;
}
.mineby .dle-popup-mediaupload .insert-properties {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 0 !important;
	white-space: nowrap;
}
.mineby .dle-popup-mediaupload .insert-properties select {
	width: auto !important;
	max-width: none !important;
}
.mineby .dle-popup-mediaupload .mediaupload-insert-descr {
	width: auto !important;
	max-width: none !important;
	flex: 0 0 auto;
	white-space: nowrap;
}
.mineby .dle-popup-mediaupload .radio-inline,
.mineby .dle-popup-mediaupload .checkbox-inline {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	min-width: 0 !important;
	padding-left: 0 !important;
	margin: 0 !important;
	white-space: nowrap;
}
.mineby .dle-popup-mediaupload .radio-inline .form-check-input,
.mineby .dle-popup-mediaupload .checkbox-inline .form-check-input {
	position: static !important;
	margin: 0 !important;
}

/* ---------- Dialog fields: one size for all (site rule ".mineby input[type=text]" limits inputs to 380px / 44px) ---------- */
.tox .tox-dialog .tox-form__group,
.tox .tox-dialog .tox-control-wrap,
.tox .tox-dialog .tox-form__controls-h-stack {
	width: 100% !important;
}
.tox .tox-dialog .tox-form__controls-h-stack > .tox-control-wrap {
	flex: 1 1 auto;
}
.tox .tox-dialog input.tox-textfield,
.tox .tox-dialog .tox-listboxfield .tox-listbox--select,
.tox .tox-dialog .tox-selectfield select {
	width: 100% !important;
	max-width: none !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	line-height: 36px !important;
	font-size: 12pt !important;
	box-sizing: border-box !important;
}
.tox .tox-dialog textarea.tox-textarea {
	max-width: none !important;
	width: 100% !important;
	padding: 8px 10px !important;
	font-size: 12pt !important;
}
.tox .tox-dialog .tox-form__group {
	margin-bottom: 12px !important;
}
.tox .tox-dialog .tox-form__group:last-child {
	margin-bottom: 0 !important;
}
.tox .tox-dialog .tox-label {
	margin-bottom: 4px !important;
	font-size: 12pt !important;
}
/* Width / height of images: two equal columns plus the lock */
.tox .tox-dialog .tox-form__controls-h-stack {
	gap: 10px;
	align-items: flex-end;
}
.tox .tox-dialog .tox-form__controls-h-stack > * {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0;
	margin-bottom: 0 !important;
}
.tox .tox-dialog .tox-form__controls-h-stack > .tox-lock,
.tox .tox-dialog .tox-form__controls-h-stack > .tox-browse-url,
.tox .tox-dialog .tox-form__controls-h-stack > .tox-button {
	flex: 0 0 40px !important;
	width: 40px !important;
	height: 40px;
}
/* Emoticons and other grids inside dialogs */
.tox .tox-dialog .tox-collection__item {
	border-radius: 0 !important;
}
.tox .tox-dialog .tox-form__controls-h-stack > .tox-form__group:has(.tox-lock) {
	flex: 0 0 40px !important; /* the lock is wrapped in a form group too: do not give it a third of the row */
}


/* ==================== Editor dialogs = site modals (exact copy of the "Скачать лаунчер" window) ====================
	site.css: .modal-outer (grey, 2px black border, radius 12.5px, sprite corners at -2px)
	          .modal-inner (4px bevel: white top/left, #555 right/bottom, radius 7px, sprite corners at -6px)
	          .fancybox-close-small (43x39, "x" 16px black at top 5px / right 6px)
	buttons.css: .btn / .btn-sm (sprite7.png, 1px black border, 40px) */
.tox .tox-dialog {
	border: 2px solid #000000 !important;
	border-radius: 12.5px !important;
	background: #c6c6c6 !important;
	box-shadow: inset 4px 4px 0 #ffffff, inset -4px -4px 0 #555555 !important;
	padding: 10px 12px 10px !important; /* 4px bevel + 6px 8px like .modal-inner */
}
.tox .tox-dialog::before { top: -2px !important; left: -2px !important; background-position: -278px -165px !important; }
.tox .tox-dialog::after { bottom: -2px !important; right: -2px !important; background-position: -288px -175px !important; }
.tox .tox-dialog__header::before { top: -2px !important; right: -2px !important; left: auto !important; bottom: auto !important; background-position: -288px -165px !important; }
.tox .tox-dialog__header::after { bottom: -2px !important; left: -2px !important; top: auto !important; right: auto !important; background-position: -278px -175px !important; }
/* .modal-inner corners sit at -6px of the inner box = the outer corners of .modal-outer: here one box, so -2px */
.tox .tox-dialog__header {
	padding: 0 40px !important;
	margin: 4px 0 9px !important;
	min-height: 0 !important;
}
.tox .tox-dialog__title {
	font-size: 16px !important;
	line-height: 1.2 !important;
}
.tox .tox-dialog__header .tox-button--icon {
	top: 0 !important;     /* like .fancybox-close-small: top right corner of .modal-outer */
	right: 0 !important;
	width: 43px !important;
	height: 39px !important;
}
.tox .tox-dialog__header .tox-button--icon::after {
	top: 5px !important;
	right: 6px !important;
	left: auto !important;
	width: 30px;
	height: 30px;
	line-height: 30px !important;
	text-align: center;
	border-radius: 50%;
	font-family: minecraft-fixed !important;
	font-size: 16px !important;
	color: #000000 !important;
}
.tox .tox-dialog__header .tox-button--icon:hover::after {
	color: #aa0000 !important;
}
.tox .tox-dialog__footer {
	padding: 8px 0 0 !important;
}
/* Buttons: .btn-sm of the site */
.tox .tox-dialog__footer .tox-button,
.tox .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url) {
	min-width: 120px;
	max-width: 300px;
	height: 40px !important;
	line-height: 38px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	border: 1px solid #000000 !important;
	border-radius: 0 !important;
	color: #e0e0e0 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	font-size: 16px !important;
	text-shadow: 2px 2px 0 #383838 !important;
	background: #737373 url(../images/sprite7.png) no-repeat -2px -84px !important;
}
.tox .tox-dialog__footer .tox-button:hover,
.tox .tox-dialog__footer .tox-button:focus,
.tox .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):hover {
	color: #ffffa0 !important;
	text-shadow: 0.125em 0.125em 0 #3f3f28 !important;
	background: #7e88c0 url(../images/sprite7.png) no-repeat -2px -124px !important;
}
/* Checkboxes: the site checkbox images (global.css .mineby input[type="checkbox"]) */
.tox .tox-checkbox__icons {
	width: 16px !important;
	height: 16px !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAe0lEQVQ4T+2TsQ3CQAxF32/Sk1mowiowQ6oMAWmyQ1aBklGAEX5kibuG4o6UUdzaz5a+nmW7AUbgDLSU6wPMwCDbE9CXmZ+Ja8Cv78WjpGdpie0TcAfeATsASSqBqZ+ZHa6LbAOB/WtYBzySYWvdvoWe6asuwKEi7/xVC4rccNFRXkenAAAAAElFTkSuQmCC) no-repeat 50% 50% !important;
}
.tox .tox-checkbox__input:checked + .tox-checkbox__icons {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAnklEQVQ4T52TuxECMQxEnxJyqIUIWoEaiCgCSOiBViCkFKCEZTSDbjzGh3w4tZ4+q5VJmgEnYAMsyN8LuAB7k3QGdjnzFXFw+PGpuDSze5ZE0hq4Ak+H5YCZWQbG/8D0wmXcJDiCo8NuuAY9QROuR2iBKVwLV4s52nZZbWwLP2fONtAtWGv3JTzVYSvgFg7719tHt2dc1RaYd1h0uKo3LLKQ0dBdkUMAAAAASUVORK5CYII=) !important;
}
.tox .tox-checkbox__icons .tox-icon {
	display: none !important;
}
.tox .tox-checkbox__input:focus + .tox-checkbox__icons {
	outline: 1px solid #ffffff;
}
.tox .tox-dialog__footer-end {
	display: flex !important;
	gap: 8px;
}
.tox .tox-checkbox {
	gap: 8px;
	align-items: center;
}

/* ---------- Fixes: close button, checkboxes, dragging, toolbar rows, admin panel ---------- */
/* Close button: no hover/focus background of the oxide skin, only the colour of the "x" changes */
.tox .tox-dialog__header .tox-button--icon,
.tox .tox-dialog__header .tox-button--icon:hover,
.tox .tox-dialog__header .tox-button--icon:focus,
.tox .tox-dialog__header .tox-button--icon:active,
.tox .tox-dialog__header .tox-button--icon:focus-visible {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}
.tox .tox-dialog__header .tox-button--icon::after {
	background: none !important;
	border-radius: 0 !important;
	text-shadow: none !important;
	transition: none !important;
}
/* Dialogs are not movable with the mouse */
.tox .tox-dialog__draghandle {
	display: none !important;
}
.tox .tox-dialog__header {
	cursor: default !important;
}
/* Checkboxes: square 15px site image, no oxide offset or rounding */
.tox .tox-checkbox {
	display: flex !important;
	align-items: center !important;
	height: auto !important;
	min-height: 24px;
	padding: 0 !important;
	margin: 0 !important;
}
.tox .tox-checkbox__icons {
	flex: 0 0 15px;
	width: 15px !important;
	height: 15px !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background-size: 15px 15px !important;
	background-position: 0 0 !important;
}
.tox .tox-checkbox__label {
	margin: 0 !important;
	line-height: 15px !important;
	padding-top: 2px; /* Minecraft font sits high: optical centre on the box */
}
.tox .tox-checkbox__input:focus + .tox-checkbox__icons {
	outline: none !important;
}
/* Toolbar rows never scroll sideways: buttons move to the next line (also on phones) */
.tox.tox-tinymce .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary,
.tox.tox-tinymce .tox-toolbar__overflow {
	flex-wrap: wrap !important;
	overflow: visible !important;
	height: auto !important;
}
/* Admin panel: no blue line of .editor-panel above our editors */
.editor-panel:has(> .tox-tinymce),
.editor-panel:has(.tox-tinymce) {
	border-top: none !important;
	box-shadow: none !important;
}
/* Source code dialog (DLE ace): hints on the left, buttons on the right, no overlap */
.tox .tox-dialog__footer:has(.helpsource) {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between !important;
	align-items: center;
	gap: 8px;
}
.tox:not([dir=rtl]) .tox-dialog__footer .helpsource,
.tox .tox-dialog__footer .helpsource {
	position: static !important;
	order: -1;
	display: flex;
	align-items: center;
}
.tox .tox-dialog__footer .helpsource td {
	font-size: 14px !important;
	line-height: 18px;
	color: #464546 !important;
	text-shadow: none !important;
	padding: 0 8px 0 0 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
}
.tox .tox-dialog__footer .helpsource td:first-child {
	padding: 2px 6px !important;
	background: #737373 !important;
	color: #e0e0e0 !important;
	border: 1px solid #000000;
}
.tox .tox-dialog__footer .helpsource .tox-checkbox__label {
	color: #464546 !important;
	text-shadow: none !important;
}
.tox .tox-dialog__footer .helpsource .tox-checkbox {
	gap: 6px;
	min-height: 0;
}
/* Checkboxes as in the Froala popups of the site (site.css .gray-theme.fr-popup .fr-checkbox span):
   square black box, 1px #393939 border, no rounding; white check drawn with CSS */
.tox .tox-checkbox__icons,
.tox .tox-checkbox__input:checked + .tox-checkbox__icons {
	position: relative;
	flex: 0 0 16px;
	width: 16px !important;
	height: 16px !important;
	box-sizing: border-box !important;
	border: 1px solid #393939 !important;
	border-radius: 0 !important;
	background: #000000 none !important;
}
.tox .tox-checkbox__input:checked + .tox-checkbox__icons::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.tox .tox-checkbox:hover .tox-checkbox__icons {
	border-color: #ffffff !important;
}
.tox .tox-dialog__footer .helpsource td + td {
	padding-left: 8px !important;
}

/* ==================== v3: exact launcher modal structure ====================
	.modal-outer = .tox-dialog (2px black border, radius 12.5px)
	.modal-inner bevel = .tox-dialog::before (4px: white top/left, #555 right/bottom, radius 7px), no inset box-shadow
	Corners (sprite7.png 10x10, all at -2px from the padding box like on the site):
	  top left = footer::before, top right = header::before, bottom left = header::after, bottom right = dialog::after */
.tox .tox-dialog {
	box-shadow: none !important;
}
.tox .tox-dialog::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	box-sizing: border-box !important;
	border: 4px solid !important;
	border-color: #ffffff #555555 #555555 #ffffff !important;
	border-radius: 7px !important;
	background: none !important;
	pointer-events: none;
	z-index: 10 !important;
}
.tox .tox-dialog__footer {
	position: static !important;
}
.tox .tox-dialog::after,
.tox .tox-dialog__header::before,
.tox .tox-dialog__header::after,
.tox .tox-dialog__footer::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	width: 10px !important;
	height: 10px !important;
	background: url(../images/sprite7.png) no-repeat !important;
	border: none !important;
	pointer-events: none;
	z-index: 11 !important;
}
.tox .tox-dialog__footer::before { top: -2px !important; left: -2px !important; right: auto !important; bottom: auto !important; background-position: -278px -165px !important; }
.tox .tox-dialog__header::before { top: -2px !important; right: -2px !important; left: auto !important; bottom: auto !important; background-position: -288px -165px !important; }
.tox .tox-dialog__header::after  { bottom: -2px !important; left: -2px !important; top: auto !important; right: auto !important; background-position: -278px -175px !important; }
.tox .tox-dialog::after          { bottom: -2px !important; right: -2px !important; top: auto !important; left: auto !important; background-position: -288px -175px !important; }
/* No rounding anywhere inside the window */
.tox .tox-dialog .tox-dialog__content-js,
.tox .tox-dialog .tox-dialog__body,
.tox .tox-dialog .tox-dialog__body-content,
.tox .tox-dialog .tox-dialog__body-nav-item,
.tox .tox-dialog .tox-textarea-wrap,
.tox .tox-dialog .tox-dropzone,
.tox .tox-dialog .tox-form__group,
.tox .tox-dialog .tox-listboxfield .tox-listbox--select,
.tox .tox-dialog .tox-textfield,
.tox .tox-dialog .tox-textarea {
	border-radius: 0 !important;
}

/* Close button: dlebutton.css paints .tox-button--naked:hover with !important, beat it by specificity */
.tox .tox-dialog .tox-dialog__header .tox-button--icon.tox-button--naked,
.tox .tox-dialog .tox-dialog__header .tox-button--icon.tox-button--naked:hover:not(:disabled),
.tox .tox-dialog .tox-dialog__header .tox-button--icon.tox-button--naked:focus:not(:disabled),
.tox .tox-dialog .tox-dialog__header .tox-button--icon.tox-button--naked:active:not(:disabled) {
	background: none !important;
	background-color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	transition: none !important;
}
/* Icon buttons in the dialog body (browse files, lock): no hover plate, icon in the centre */
.tox .tox-dialog .tox-dialog__body .tox-button--naked,
.tox .tox-dialog .tox-dialog__body .tox-button--naked:hover:not(:disabled),
.tox .tox-dialog .tox-dialog__body .tox-button--naked:focus:not(:disabled),
.tox .tox-dialog .tox-dialog__body .tox-button--naked:active:not(:disabled) {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	background: none !important;
	background-color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	transition: none !important;
}
.tox .tox-dialog .tox-dialog__body .tox-button--naked .tox-icon {
	margin: 0 !important;
}
.tox .tox-dialog .tox-dialog__body .tox-browse-url .tox-icon {
	display: flex !important;
}
.tox .tox-dialog .tox-dialog__body .tox-button--naked:hover svg {
	fill: #ffffa0 !important;
}

/* Buttons: the variable width site button (buttons.css .btn-fluid / .b01): left cap + repeated centre + right cap,
   38px state each in a 76px image (normal on top, hover at the bottom). No transition. */
.tox .tox-dialog .tox-dialog__footer .tox-button,
.tox .tox-dialog .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):not(.tox-button--naked) {
	box-sizing: border-box !important;
	height: 40px !important;
	line-height: 38px !important;
	border: 1px solid #000000 !important;
	background: url(../images/input-button-left.png) left top no-repeat, url(../images/input-button-right.png) right top no-repeat, url(../images/input-button-center.png) left top repeat-x !important;
	background-color: #737373 !important;
	transition: none !important;
}
.tox .tox-dialog .tox-dialog__footer .tox-button:hover:not(:disabled),
.tox .tox-dialog .tox-dialog__footer .tox-button:focus:not(:disabled),
.tox .tox-dialog .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):not(.tox-button--naked):hover {
	background: url(../images/input-button-left.png) left -38px no-repeat, url(../images/input-button-right.png) right -38px no-repeat, url(../images/input-button-center.png) left -38px repeat-x !important;
	background-color: #7e88c0 !important;
	color: #ffffa0 !important;
	text-shadow: 0.125em 0.125em 0 #3f3f28 !important;
}

/* Checkboxes: 2px border, the check exactly in the middle */
.tox .tox-checkbox__icons,
.tox .tox-checkbox__input:checked + .tox-checkbox__icons {
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	border: 2px solid #393939 !important;
}
.tox .tox-checkbox__input:checked + .tox-checkbox__icons::after {
	left: 50% !important;
	top: 50% !important;
	width: 4px !important;
	height: 8px !important;
	margin: 0 !important;
	box-sizing: content-box;
	border-width: 0 2px 2px 0 !important;
	transform: translate(-50%, -62%) rotate(45deg) !important;
}

/* Toolbar: rows made by wrapping are separated by the same 1px line as the two toolbars */
.tox.tox-tinymce .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary {
	row-gap: 1px;
	background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #4c4c4c 46px, #4c4c4c 47px) !important;
}
.tox.tox-tinymce .tox-toolbar__group {
	height: 46px;
	min-height: 46px;
}
/* Pointer over every toolbar and menu button */
.tox .tox-tbtn,
.tox .tox-tbtn *,
.tox .tox-split-button,
.tox .tox-split-button *,
.tox .tox-collection__item,
.tox .tox-swatch,
.tox .tox-dialog__header .tox-button--icon,
.tox .tox-dialog .tox-button,
.tox .tox-checkbox {
	cursor: pointer !important;
}
.tox .tox-tbtn--disabled,
.tox .tox-tbtn--disabled * {
	cursor: not-allowed !important;
}

/* Font and size dropdowns: full name, no ellipsis */
.tox.tox-tinymce .tox-tbtn--bespoke {
	max-width: none !important;
	width: auto !important;
}
.tox.tox-tinymce .tox-tbtn--bespoke .tox-tbtn__select-label {
	width: auto !important;
	max-width: none !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

/* ==================== DLE upload window on the site, v2 ("под ключ") ====================
	One column grid from the right for header, file rows and footer:
	[ name ............ | status 70px | size 70px | actions 84px (view switch / delete) ] */
/* Always in the middle of the screen, content scrolls inside instead of leaving the screen */
.mineby .ui-dialog.dle-popup-mediaupload {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
	width: 680px !important;
	max-width: calc(100vw - 24px) !important;
	max-height: none !important;
	height: auto !important;
}
.mineby .dle-popup-mediaupload #mediaupload {
	height: auto !important;
	max-height: calc(100vh - 150px);
	overflow-y: auto !important;
	overflow-x: hidden !important;
	padding: 12px !important;
	font-size: 14px !important;
	line-height: 18px !important;
}
.mineby .dle-popup-mediaupload .ui-dialog-titlebar {
	cursor: default !important;
}
/* Tabs and "Выбрать все" on one line, on one baseline */
.mineby .dle-popup-mediaupload .tabs {
	display: flex !important;
	align-items: baseline !important;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 10px !important;
}
.mineby .dle-popup-mediaupload .tabs ul {
	display: flex;
	gap: 18px;
	padding: 0 !important;
	margin: 0 !important;
}
.mineby .dle-popup-mediaupload .tabs li {
	display: block !important;
}
.mineby .dle-popup-mediaupload .tabs a {
	float: none !important;
	display: block;
	padding: 0 0 6px !important;
	margin: 0 !important;
	font-size: 14px;
	line-height: 18px;
}
.mineby .dle-popup-mediaupload #check-all-box {
	margin: 0 0 0 auto !important;
}
.mineby .dle-popup-mediaupload #check-all-box label {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-size: 14px;
	line-height: 18px;
	color: #ffffff;
	text-shadow: 2px 2px 0 #383838;
	cursor: pointer;
}
.mineby .dle-popup-mediaupload #check-all-box .position-right {
	margin: 0 !important;
}
/* Checkboxes: the same square as in the editor windows */
.mineby .dle-popup-mediaupload input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	border: 2px solid #393939 !important;
	border-radius: 0 !important;
	background: #000000 none no-repeat 50% 50% !important;
	box-shadow: none !important;
	outline: none !important;
	vertical-align: middle;
	cursor: pointer;
}
.mineby .dle-popup-mediaupload input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2 4 7.6 8.6 2.4' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") !important;
}
.mineby .dle-popup-mediaupload input[type="checkbox"]:hover {
	border-color: #ffffff !important;
}
/* Frame of the uploader */
.mineby .dle-popup-mediaupload .mediaupload-box {
	min-height: 0 !important;
	border: 1px solid #393939 !important;
}
.mineby .dle-popup-mediaupload .media-upload-button-area {
	padding: 10px 10px 0 !important;
}
.mineby .dle-popup-mediaupload .plupload_container {
	margin: 0 !important;
}
/* Header row: 40px, names left, Статус / Размер over their columns, view switch in the actions column */
.mineby .dle-popup-mediaupload .plupload_header {
	position: relative !important;
	height: 0;
	border: none !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_header {
	min-height: 0 !important;
	border-bottom: 1px solid #393939 !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist td.plupload_cell,
.mineby .dle-popup-mediaupload .plupload_filelist td {
	height: 40px;
	padding: 0 8px 0 0 !important;
	vertical-align: middle !important;
	white-space: nowrap;
}
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_status,
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_size {
	width: 70px !important;
	text-align: right !important;
	box-sizing: border-box;
}
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_action,
.mineby .dle-popup-mediaupload .plupload_filelist_footer td.plupload_file_action {
	width: 84px !important;
	padding: 0 !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_header .plupload_file_size {
	padding-right: 8px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	height: 40px;
	width: 84px;
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
	z-index: 2;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
	width: 38px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 30px !important;
	text-indent: 0 !important;
	border: 1px solid #000000 !important;
	color: #e0e0e0 !important;
	background: url(../images/input-button-left.png) left top no-repeat, url(../images/input-button-right.png) right top no-repeat, url(../images/input-button-center.png) left top repeat-x !important;
	background-color: #737373 !important;
	transition: none !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button:hover,
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button.ui-state-active {
	color: #ffffa0 !important;
	background: url(../images/input-button-left.png) left -38px no-repeat, url(../images/input-button-right.png) right -38px no-repeat, url(../images/input-button-center.png) left -38px repeat-x !important;
	background-color: #7e88c0 !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-icon {
	position: static !important;
	margin: 0 !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
	background: none !important;
	text-shadow: none !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-icon::before {
	font-size: 14px !important;
	color: inherit !important;
}
/* Thumbnails view has no header row: keep a 40px line for the switch */
.mineby .dle-popup-mediaupload .plupload_view_thumbs .plupload_header {
	height: 40px;
	border-bottom: 1px solid #393939 !important;
}
/* Drop zone */
.mineby .dle-popup-mediaupload .plupload_content {
	height: 150px;
}
.mineby .dle-popup-mediaupload .plupload_droptext {
	margin-top: 26px !important;
	font-size: 16px !important;
	line-height: 20px !important;
	color: #c6c6c6 !important;
	text-shadow: 2px 2px 0 #383838;
	white-space: nowrap;
}
.mineby .dle-popup-mediaupload .plupload_droptext::before {
	color: #c6c6c6 !important;
	font-size: 56px !important;
	margin-top: -44px !important;
}
/* File rows (list view): same columns as the header */
.mineby .dle-popup-mediaupload .plupload_view_list .plupload_file {
	margin: 6px 0 0 !important;
	border: 1px solid #393939 !important;
	background: rgba(0, 0, 0, 0.25) !important;
	color: #ffffff !important;
	min-height: 32px;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_name {
	margin-right: 224px !important;
	padding: 7px 8px !important;
	line-height: 18px;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_action {
	right: 0 !important;
	width: 84px !important;
	padding: 7px 0 !important;
	text-align: center;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_size {
	right: 84px !important;
	width: 70px !important;
	padding: 7px 8px 7px 0 !important;
	line-height: 18px;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_status {
	right: 162px !important;
	width: 62px !important;
	top: 11px !important;
}
/* Footer row: buttons left, total percent and size under their columns */
.mineby .dle-popup-mediaupload .plupload_filelist_footer {
	border-top: 1px solid #393939 !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_footer td {
	height: 60px;
}
.mineby .dle-popup-mediaupload .plupload_buttons {
	display: flex;
	align-items: center;
	gap: 8px;
	float: none !important;
}
.mineby .dle-popup-mediaupload .plupload_buttons .plupload_button {
	margin: 0 !important;
	height: 40px !important;
	line-height: 38px !important;
	border: 1px solid #000000 !important;
	font-size: 14px !important;
	transition: none !important;
}
.mineby .dle-popup-mediaupload .plupload_button .ui-button-icon-primary.ui-icon {
	margin-right: 8px !important;
}
/* Upload from URL: one line */
.mineby .dle-popup-mediaupload .mediaupload-row {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px;
	padding: 10px !important;
	border-top: 1px solid #393939 !important;
}
.mineby .dle-popup-mediaupload .mediaupload-col1 {
	min-width: 0 !important;
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 14px;
}
.mineby .dle-popup-mediaupload .mediaupload-col2 {
	flex: 1 1 auto;
	max-width: none !important;
	width: auto !important;
}
.mineby .dle-popup-mediaupload .mediaupload-col2 input {
	width: 100% !important;
	max-width: none !important;
	height: 40px !important;
	margin: 0 !important;
	box-sizing: border-box;
}
.mineby .dle-popup-mediaupload .mediaupload-col3 {
	flex: 0 0 auto;
	margin: 0 !important;
}
.mineby .dle-popup-mediaupload .mediaupload-col3 button {
	height: 40px !important;
	line-height: 38px !important;
	border: 1px solid #000000 !important;
	font-size: 14px !important;
	background-color: #737373 !important;
	transition: none !important;
}
.mineby .dle-popup-mediaupload #upload-viaurl-status {
	padding: 0 10px !important;
}
.mineby .dle-popup-mediaupload #upload-viaurl-status:empty,
.mineby .dle-popup-mediaupload .upload-options:empty {
	display: none !important;
}
/* Limits: small print */
.mineby .dle-popup-mediaupload .upload-restriction {
	padding: 8px 10px 10px !important;
	border-top: 1px solid #393939;
	font-size: 11px !important;
	line-height: 15px !important;
	color: #e0e0e0;
	opacity: 1 !important;
	text-shadow: 1px 1px 0 #383838 !important;
}
.mineby .dle-popup-mediaupload .upload-restriction b {
	font-weight: normal;
	color: #ffffa0;
}
/* Bottom buttons */
.mineby .dle-popup-mediaupload .ui-dialog-buttonpane {
	margin: 10px 12px 12px !important;
	text-align: center;
}
.mineby .dle-popup-mediaupload .ui-dialog-buttonset {
	display: flex;
	justify-content: center;
	gap: 8px;
	float: none !important;
}
.mineby .dle-popup-mediaupload .ui-dialog-buttonset button {
	margin: 0 !important;
	height: 40px !important;
	line-height: 38px !important;
	border: 1px solid #000000 !important;
	transition: none !important;
}
@media (max-width: 768px) {
	.mineby .dle-popup-mediaupload .mediaupload-row {
		flex-wrap: wrap;
	}
	.mineby .dle-popup-mediaupload .mediaupload-col1 {
		flex: 1 1 100%;
	}
}
.mineby .dle-popup-mediaupload .plupload_filelist_footer td.plupload_file_action {
	min-width: 84px !important;
	max-width: 84px !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_header td.plupload_file_status {
	padding-right: 12px !important;
}
/* Fixed columns, so the footer totals sit exactly under Статус / Размер */
.mineby .dle-popup-mediaupload table.plupload_filelist {
	table-layout: fixed;
}
.mineby .dle-popup-mediaupload table.plupload_filelist td.plupload_file_name {
	width: auto !important;
	overflow: visible;
}

/* ==================== v4: toolbar rows, buttons, icons, notifications, swatches, close cross ==================== */
/* Rows: exactly one 1px line under every row (also wrapped rows), drawn with borders (a gradient line blurs to 2px on 125% screens).
   The line under the last row is the border between the toolbar and the text area. */
.tox.tox-tinymce .tox-editor-header {
	border-bottom: none !important;
}
.tox.tox-tinymce .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary {
	background: none !important;
	border-top: none !important;
	position: relative;
	overflow: hidden !important;
	row-gap: 1px;
	padding-bottom: 1px !important;
}
.tox.tox-tinymce .tox-toolbar + .tox-toolbar,
.tox.tox-tinymce .tox-toolbar__primary + .tox-toolbar__primary {
	border-top: none !important;
}
.tox.tox-tinymce .tox-toolbar__group {
	position: relative;
}
.tox.tox-tinymce .tox-toolbar__group::after {
	content: "";
	position: absolute;
	left: -3000px;
	right: -3000px;
	bottom: -1px;
	height: 0;
	border-bottom: 1px solid #4c4c4c;
	pointer-events: none;
}
/* Variable width buttons: 39px like the site .btn-fluid (37px of the button image inside the 1px border);
   with 40px one row of the hover state showed at the bottom */
.tox .tox-dialog .tox-dialog__footer .tox-button,
.tox .tox-dialog .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):not(.tox-button--naked),
.mineby .dle-popup-mediaupload .plupload_buttons .plupload_button,
.mineby .dle-popup-mediaupload .mediaupload-col3 button,
.mineby .dle-popup-mediaupload .ui-dialog-buttonset button,
.mineby .dle-popup-mediaupload .ui-button,
.mineby .dle-popup-mediaupload .plupload_button {
	box-sizing: border-box !important;
	height: 39px !important;
	line-height: 37px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button {
	height: 32px !important;
	line-height: 30px !important;
}
/* Lock of width / height: a 40x40 cell like "browse files", icon in the middle, level with the fields */
.tox .tox-dialog .tox-form__controls-h-stack > .tox-form__group:has(.tox-lock) {
	display: flex !important;
	align-items: flex-end !important;
	justify-content: center !important;
	align-self: stretch;
}
.tox .tox-dialog .tox-form__controls-h-stack .tox-lock.tox-button--naked,
.tox .tox-dialog .tox-form__controls-h-stack .tox-lock.tox-button--naked:hover:not(:disabled),
.tox .tox-dialog .tox-form__controls-h-stack .tox-lock.tox-button--naked:focus:not(:disabled) {
	width: 40px !important;
	height: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
}
.tox .tox-dialog .tox-lock:hover svg {
	fill: #ffffa0 !important;
}
/* Info notes in dialogs (media services, etc.): the window's own panel, no colour, readable text */
.tox .tox-dialog .tox-notification {
	background: rgba(0, 0, 0, 0.25) !important;
	border: 1px solid #393939 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 8px 10px !important;
	margin-bottom: 12px !important;
	color: #e0e0e0 !important;
}
.tox .tox-dialog .tox-notification__body,
.tox .tox-dialog .tox-notification__body * {
	color: #e0e0e0 !important;
	font-family: minecraft-fixed, Helvetica, Arial, Tahoma, sans-serif !important;
	font-size: 14px !important;
	line-height: 18px !important;
	text-shadow: 2px 2px 0 #383838 !important;
}
.tox .tox-dialog .tox-notification__icon svg {
	fill: #e0e0e0 !important;
}
/* Colour palette: no animation, on hover only a white frame */
.tox .tox-swatch,
.tox .tox-swatch:hover,
.tox .tox-swatch:focus {
	transition: none !important;
	transform: none !important;
	box-shadow: none !important;
}
.tox .tox-swatch:hover,
.tox .tox-swatch:focus {
	outline: none !important;
	border-color: #ffffff !important;
	z-index: 1;
	position: relative;
}
/* Close cross: in the vertical middle of the title line (title: 10px padding + 4px margin + 19px line) */
.tox .tox-dialog__header .tox-button--icon::after {
	top: 9px !important;
}
/* Upload window v3: full button texture in the view switch (39px), even spacing in the header row.
   Columns from the right: actions 90px (switch: 2 x 39px + 4px) | size 80px | status 80px */
.mineby .dle-popup-mediaupload .plupload_header,
.mineby .dle-popup-mediaupload .plupload_header_content,
.mineby .dle-popup-mediaupload .plupload_filelist_header,
.mineby .dle-popup-mediaupload .plupload_filelist_footer {
	background: none !important;
	box-shadow: none !important;
}
.mineby .dle-popup-mediaupload .plupload_header {
	border: none !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist td {
	height: 41px;
}
.mineby .dle-popup-mediaupload .plupload_filelist td.plupload_file_name {
	padding-left: 9px !important; /* text in line with the text of the file rows (1px border + 8px) */
}
.mineby .dle-popup-mediaupload .plupload_filelist_footer td.plupload_file_name {
	padding-left: 0 !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_status,
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_size {
	width: 80px !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_header td.plupload_file_status {
	padding-right: 8px !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist .plupload_file_action,
.mineby .dle-popup-mediaupload .plupload_filelist_footer td.plupload_file_action {
	width: 90px !important;
	min-width: 90px !important;
	max-width: 90px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_switch {
	top: 1px !important;
	height: 39px;
	width: 90px;
	gap: 4px;
}
.mineby .dle-popup-mediaupload .plupload_view_switch .ui-button {
	width: 39px !important;
	height: 39px !important;
	line-height: 37px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_thumbs .plupload_header {
	height: 41px;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_name {
	margin-right: 250px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_action {
	width: 90px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_size {
	right: 90px !important;
	width: 80px !important;
}
.mineby .dle-popup-mediaupload .plupload_view_list div.plupload_file_status {
	right: 178px !important;
	width: 64px !important;
}
.mineby .dle-popup-mediaupload .plupload_filelist_footer td {
	height: 59px;
}
.tox .tox-dialog .tox-form__controls-h-stack > .tox-form__group:has(.tox-lock) > :not(.tox-lock) {
	display: none !important;
}
.tox .tox-dialog .tox-form__controls-h-stack .tox-lock.tox-button--naked {
	flex: 0 0 40px !important;
}
/* Hover frame also on a checked checkbox (the checked rule set the border colour after the hover rule) */
.tox .tox-checkbox:hover .tox-checkbox__icons,
.tox .tox-checkbox:hover .tox-checkbox__input:checked + .tox-checkbox__icons {
	border-color: #ffffff !important;
}
.mineby .dle-popup-mediaupload input[type="checkbox"]:checked:hover,
.mineby .dle-popup-mediaupload label:hover input[type="checkbox"] {
	border-color: #ffffff !important;
}
/* Button text in the optical middle: the same line box as the site .btn (40px line in a 39px button) */
.tox .tox-dialog .tox-dialog__footer .tox-button,
.tox .tox-dialog .tox-dialog__body .tox-button:not(.tox-button--icon):not(.tox-browse-url):not(.tox-button--naked),
.mineby .dle-popup-mediaupload .plupload_buttons .plupload_button,
.mineby .dle-popup-mediaupload .mediaupload-col3 button,
.mineby .dle-popup-mediaupload .ui-dialog-buttonset button {
	line-height: 40px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.mineby .dle-popup-mediaupload .plupload_button .ui-button-text {
	line-height: 40px !important;
}
/* Checkboxes: the same border transition as the fields */
.tox .tox-checkbox__icons,
.tox .tox-checkbox__input:checked + .tox-checkbox__icons,
.mineby .dle-popup-mediaupload input[type="checkbox"] {
	transition: border-color 0.3s !important;
}
/* Phones / narrow screens: buttons flow one by one (groups would leave half empty lines);
   every button draws the 1px line under its line, so the lines stay full width */
@media (max-width: 940px) {
	.tox.tox-tinymce .tox-toolbar__group {
		display: contents !important;
	}
	.tox.tox-tinymce .tox-toolbar,
	.tox.tox-tinymce .tox-toolbar__primary {
		padding: 0 5px 1px !important;
		align-items: center;
	}
	.tox.tox-tinymce .tox-toolbar__group > * {
		position: relative;
		margin-top: 6px !important;
		margin-bottom: 6px !important;
	}
	.tox.tox-tinymce .tox-toolbar__group > *::after {
		content: "";
		position: absolute;
		left: -3000px;
		right: -3000px;
		bottom: -7px;
		height: 0;
		border-bottom: 1px solid #4c4c4c;
		pointer-events: none;
	}
}

/* ===== Modal corners without images (2026): the old sprite7.png corners (rules above, kept) are switched off and all four corners are drawn by one layer over the window ===== */
/* "pixel" sizes of the corners in whole device pixels: --mbc0 = border width, --mbc1 + --mbc2 = the 4px bevel,
   --mbc3 + --mbc4 = the 4px inside it, as the browser really draws them (border widths are rounded down to whole
   device pixels: at 125% screen scale 2px is 2 device pixels = 1.6px; half pixels would blend into light seams) */
:root { --mbc0: 2px; --mbc1: 2px; --mbc2: 2px; --mbc3: 2px; --mbc4: 2px; }
@media (min-resolution: 1.05dppx) and (max-resolution: 1.15dppx) { :root { --mbc0: 1.8182px; --mbc1: 1.8182px; --mbc2: 1.8182px; --mbc3: 1.8182px; --mbc4: 1.8182px; } }
@media (min-resolution: 1.2dppx) and (max-resolution: 1.3dppx) { :root { --mbc0: 1.6px; --mbc1: 1.6px; --mbc2: 2.4px; --mbc3: 2.4px; --mbc4: 1.6px; } }
@media (min-resolution: 1.7dppx) and (max-resolution: 1.8dppx) { :root { --mbc0: 1.7143px; --mbc1: 1.7143px; --mbc2: 2.2857px; --mbc3: 2.2857px; --mbc4: 1.7143px; } }
@media (min-resolution: 2.2dppx) and (max-resolution: 2.3dppx) { :root { --mbc0: 1.7778px; --mbc1: 1.7778px; --mbc2: 2.2222px; --mbc3: 2.2222px; --mbc4: 1.7778px; } }
.tox .tox-dialog__footer::before,
.tox .tox-dialog__header::before,
.tox .tox-dialog__header::after {
	background: none !important;
}
.tox .tox-dialog.tox-dialog::after {
	top: calc(-1 * var(--mbc0, 2px)) !important;
	left: calc(-1 * var(--mbc0, 2px)) !important;
	right: calc(-1 * var(--mbc0, 2px)) !important;
	bottom: calc(-1 * var(--mbc0, 2px)) !important;
	width: auto !important;
	height: auto !important;
	background: linear-gradient(#000,#000) left calc(var(--mbc0) + var(--mbc1)) top 0px / calc(var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc0) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0) top var(--mbc0) / var(--mbc1) var(--mbc1) no-repeat,
		linear-gradient(#fff,#fff) left calc(var(--mbc0) + var(--mbc1)) top var(--mbc0) / calc(var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc1) no-repeat,
		linear-gradient(#000,#000) left 0px top calc(var(--mbc0) + var(--mbc1)) / var(--mbc0) var(--mbc2) no-repeat,
		linear-gradient(#fff,#fff) left var(--mbc0) top calc(var(--mbc0) + var(--mbc1)) / calc(var(--mbc1) + var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc2) no-repeat,
		linear-gradient(#000,#000) left 0px top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc0) var(--mbc3) no-repeat,
		linear-gradient(#fff,#fff) left var(--mbc0) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc1) + var(--mbc2) + var(--mbc3)) var(--mbc3) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc4) var(--mbc3) no-repeat,
		linear-gradient(#000,#000) left 0px top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / var(--mbc0) var(--mbc4) no-repeat,
		linear-gradient(#fff,#fff) left var(--mbc0) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc4) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc4) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top 0px / calc(var(--mbc3) + var(--mbc4)) var(--mbc0) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0) + var(--mbc1)) top var(--mbc0) / var(--mbc2) var(--mbc1) no-repeat,
		linear-gradient(#fff,#fff) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top var(--mbc0) / calc(var(--mbc3) + var(--mbc4)) var(--mbc1) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0) top calc(var(--mbc0) + var(--mbc1)) / var(--mbc1) var(--mbc2) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) right calc(var(--mbc0) + var(--mbc1)) top calc(var(--mbc0) + var(--mbc1)) / var(--mbc2) var(--mbc2) no-repeat,
		linear-gradient(#fff,#fff) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top calc(var(--mbc0) + var(--mbc1)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc2) no-repeat,
		linear-gradient(#000,#000) right 0px top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc0) var(--mbc3) no-repeat,
		linear-gradient(#545454,#545454) right var(--mbc0) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc3) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc3) no-repeat,
		linear-gradient(#000,#000) right 0px top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / var(--mbc0) var(--mbc4) no-repeat,
		linear-gradient(#545454,#545454) right var(--mbc0) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc4) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) top calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc4) no-repeat,
		linear-gradient(#000,#000) left 0px bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / var(--mbc0) var(--mbc4) no-repeat,
		linear-gradient(#fff,#fff) left var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc4) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc4) no-repeat,
		linear-gradient(#000,#000) left 0px bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc0) var(--mbc3) no-repeat,
		linear-gradient(#fff,#fff) left var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc3) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc3) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1)) / var(--mbc1) var(--mbc2) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) left calc(var(--mbc0) + var(--mbc1)) bottom calc(var(--mbc0) + var(--mbc1)) / var(--mbc2) var(--mbc2) no-repeat,
		linear-gradient(#545454,#545454) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom calc(var(--mbc0) + var(--mbc1)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc2) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0) + var(--mbc1)) bottom var(--mbc0) / var(--mbc2) var(--mbc1) no-repeat,
		linear-gradient(#545454,#545454) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom var(--mbc0) / calc(var(--mbc3) + var(--mbc4)) var(--mbc1) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom 0px / calc(var(--mbc3) + var(--mbc4)) var(--mbc0) no-repeat,
		linear-gradient(#000,#000) right 0px bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / var(--mbc0) var(--mbc4) no-repeat,
		linear-gradient(#545454,#545454) right var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc1) + var(--mbc2)) var(--mbc4) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) / calc(var(--mbc3) + var(--mbc4)) var(--mbc4) no-repeat,
		linear-gradient(#000,#000) right 0px bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc0) var(--mbc3) no-repeat,
		linear-gradient(#545454,#545454) right var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / calc(var(--mbc1) + var(--mbc2) + var(--mbc3)) var(--mbc3) no-repeat,
		linear-gradient(#c6c7c6,#c6c7c6) right calc(var(--mbc0) + var(--mbc1) + var(--mbc2) + var(--mbc3)) bottom calc(var(--mbc0) + var(--mbc1) + var(--mbc2)) / var(--mbc4) var(--mbc3) no-repeat,
		linear-gradient(#000,#000) right 0px bottom calc(var(--mbc0) + var(--mbc1)) / var(--mbc0) var(--mbc2) no-repeat,
		linear-gradient(#545454,#545454) right var(--mbc0) bottom calc(var(--mbc0) + var(--mbc1)) / calc(var(--mbc1) + var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc2) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0) bottom var(--mbc0) / var(--mbc1) var(--mbc1) no-repeat,
		linear-gradient(#545454,#545454) right calc(var(--mbc0) + var(--mbc1)) bottom var(--mbc0) / calc(var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc1) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0) + var(--mbc1)) bottom 0px / calc(var(--mbc2) + var(--mbc3) + var(--mbc4)) var(--mbc0) no-repeat !important;
}

/* No rounding of the window at all: the border is square and the outer steps of the corners are cut out with a mask
   made of the same "pixels" as the corner drawing (masks are aligned to device pixels like backgrounds),
   so the steps show the page and the edges stay straight up to the steps.
   (The old 12.5px rounding went past the 10px corners and showed as dents.) */
.tox .tox-dialog.tox-dialog {
	border-radius: 0 !important;
	-webkit-mask: linear-gradient(#000,#000) left 0px top calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) / 100% calc(100% - 2 * calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px))) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) top 0px / calc(100% - 2 * calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px))) 100% no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px)) top 0px / var(--mbc2, 2px) var(--mbc0, 2px) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0, 2px) top var(--mbc0, 2px) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) left 0px top calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0, 2px) + var(--mbc1, 2px)) top var(--mbc0, 2px) / var(--mbc2, 2px) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0, 2px) top calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px)) bottom var(--mbc0, 2px) / var(--mbc2, 2px) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0, 2px) bottom calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0, 2px) + var(--mbc1, 2px)) bottom 0px / var(--mbc2, 2px) var(--mbc0, 2px) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0, 2px) bottom var(--mbc0, 2px) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) right 0px bottom calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat;
	mask: linear-gradient(#000,#000) left 0px top calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) / 100% calc(100% - 2 * calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px))) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) top 0px / calc(100% - 2 * calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px))) 100% no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px)) top 0px / var(--mbc2, 2px) var(--mbc0, 2px) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0, 2px) top var(--mbc0, 2px) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) left 0px top calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0, 2px) + var(--mbc1, 2px)) top var(--mbc0, 2px) / var(--mbc2, 2px) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0, 2px) top calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) left calc(var(--mbc0, 2px) + var(--mbc1, 2px)) bottom var(--mbc0, 2px) / var(--mbc2, 2px) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) left var(--mbc0, 2px) bottom calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat,
		linear-gradient(#000,#000) right calc(var(--mbc0, 2px) + var(--mbc1, 2px)) bottom 0px / var(--mbc2, 2px) var(--mbc0, 2px) no-repeat,
		linear-gradient(#000,#000) right var(--mbc0, 2px) bottom var(--mbc0, 2px) / calc(var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc1, 2px) no-repeat,
		linear-gradient(#000,#000) right 0px bottom calc(var(--mbc0, 2px) + var(--mbc1, 2px)) / calc(var(--mbc0, 2px) + var(--mbc1, 2px) + var(--mbc2, 2px)) var(--mbc2, 2px) no-repeat;
}

/* Checkboxes: idle border colour like the input fields (#a0a0a0), white on hover (also when checked) */
.tox .tox-checkbox__icons,
.tox .tox-checkbox__input:checked + .tox-checkbox__icons,
.mineby .dle-popup-mediaupload input[type="checkbox"] {
	border-color: #a0a0a0 !important;
}
.tox .tox-checkbox:hover .tox-checkbox__icons,
.tox .tox-checkbox:hover .tox-checkbox__input:checked + .tox-checkbox__icons,
.mineby .dle-popup-mediaupload input[type="checkbox"]:hover {
	border-color: #ffffff !important;
}
