html.nocroll-mc-layer, html.nocroll-mc-layer body {
	overflow: hidden !important;
	overscroll-behavior: none;
}
layer *::-webkit-scrollbar-thumb {
    border: 0;
}
layer *::-webkit-scrollbar {
    width: 0;
    height: 0;
}
layer {
	-webkit-tap-highlight-color: transparent;
}
layer > wrap {
	-webkit-transform: translate(0);
	touch-action: manipulation;
}
layer > wrap > content {
	touch-action: pan-y pan-x;
}
layer:not(.open), layer:not(.open) * {
	pointer-events: none !important;
}
layer > wrap > header {
	flex-shrink: 0;
	display: block;
}
layer > wrap > header:empty {
	display: none !important;
}
layer > wrap > header > d.headerwrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
	box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
}
layer > wrap > header > d.headerwrap:empty {
	display: none !important;
}
layer > wrap > header > d.headerwrap d.title {
	padding: 0 10px 0 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: calc(100% - 60px);
	margin: auto 0;
	pointer-events: none;
	font-weight: 500;
	line-height: 45px;
}
layer > wrap > header > d.headerwrap d.title:last-child {
	width: 100%;
}
layer > wrap > header > d.headerwrap x {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 60px;
	height: 45px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg stroke='%23333' stroke-width='0.5' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round' width='64' height='64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 12 7 7m5 5 5 5m-5-5 5-5m-5 5-5 5'/%3E%3C/svg%3E");
	background-size: 32px;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	transition: opacity 0.15s ease;
}
layer > wrap > header > d.headerwrap x:active {
	opacity: 0.5;
}
layer > wrap > header > d.headerwrap x:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.3);
	outline-offset: -2px;
	border-radius: 4px;
}
layer > wrap > content {
	min-height: 0;
}
layer.dragging > wrap > content,
layer.dragging > wrap > content * {
	pointer-events: none !important;
}
layer.dragging > wrap > content {
	will-change: transform;
}
layer > wrap > content::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 500;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	background-color: rgba(0, 0, 0, 0.25);
}
layer.hold > wrap > content::before {
	opacity: 1;
	pointer-events: auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='25 25 50 50'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Cstyle%3E circle %7B stroke-dasharray: 150, 200; stroke-dashoffset: -10; stroke-linecap: round; transform-origin: 50px 50px; animation: d 1.5s ease-in-out infinite, r 2s linear infinite; %7D @keyframes r %7B 100%25 %7B transform: rotate(360deg) %7D %7D @keyframes d %7B 0%25 %7B stroke-dasharray: 1, 200; stroke-dashoffset: 0 %7D 50%25 %7B stroke-dasharray: 89, 200; stroke-dashoffset: -35 %7D 100%25 %7B stroke-dasharray: 89, 200; stroke-dashoffset: -124 %7D %7D %3C/style%3E%3C/svg%3E");
}

layer > wrap > content {
    transition: opacity, filter .3s;
}
layer.hold > wrap > content {
    overflow: hidden;
}
layer.hold > wrap > content > * {
    opacity: .5;
    filter: blur(2px);
}
layer.hold > wrap > content,
layer.hold > wrap > content * {
	pointer-events: none !important;
}
html.ios-mc-layer layer > wrap > content {
	/* Momentum scrolling for older iOS Safari */
	-webkit-overflow-scrolling: touch;
}
:root {
	--mc-layer-bg: #fff;
}
layer > wrap > .close:hover {
    animation: layer-close-pong .3s ease;
    box-shadow: 1px 1px 10px 5px rgb(0 0 0 / 10%);
    z-index: 50 !important;
}
layer > wrap > .close {
    position: absolute;
    top: -25px;
    right: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    z-index: 50!important;
    box-shadow: 1px 1px 1px 1px rgb(0 0 0 / 10%);
    background-image: url("data:image/svg+xml, %3Csvg%20aria-hidden%3D%22true%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20randcolor%3D%22set%22%20width%3D%2232%22%20height%3D%2232%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6%2018L18%206M6%206l12%2012%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: .3s;
    will-change: animation;
}
@keyframes layer-close-pong {
	0% {transform: rotate(0)}
	20% {transform: translateY(-3px)}
	40% {transform: translateY(3px)}
	60% {transform: translateY(-2px)}
	80% {transform: translateY(2px)}
	to {transform: translateY(0)}
}mcmessage mcms .a>x {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 24px;
	height: 24px;
	cursor: pointer;
	background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' class='css-i6dzq1'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
	background-size: 18px;
	background-repeat: no-repeat;
	background-position: center;
}

mcmessage::-webkit-scrollbar-thumb {
	background-color: transparent;
	border: 0;
}

mcmessage::-webkit-scrollbar {
	width: 0px;
}

mcmessage::-webkit-scrollbar-track {
	background: transparent;
}

mcmessage mcms {
	width: max-content;
	width: -moz-max-content;
	max-width: calc(100% - 60px);
	background: #fff;
	display: block;
	margin-bottom: 10px;
	display: block;
	border-radius: 5px;
	box-shadow: 0 15px 30px -8px rgba(0, 0, 0, .08);
	padding: 20px 20px;
	backdrop-filter: blur(5px);
	background: #fff;
	margin: 0 30px 10px 30px;
	position: relative;
	right: -600px;
	transition: .3s ease;
}

mcms.open {
	right: 0;
}

mcmessage {
	position: fixed;
	width: max-content;
	width: -moz-max-content;
	max-width: 90vw;
	right: 10px;
	overflow: auto;
	display: block;
	top: 10px;
	max-height: calc(100vh - 10px);
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	user-select: none;
	z-index: 690;
}

mcmessage mcms .a>d:last-child {
	margin-bottom: 0;
}

mcmessage mcms .a>.title {
	font-weight: 500;
	margin: 0;
	font-size: unset;
	margin-bottom: 5px;
	padding-right: 20px;
}

mcmessage mcms .a>.message {
	font-weight: 600;
	margin: 0 0 15px 0;
	color: var(--red);
	max-width: calc(50vw - 200px);
	font-size: 14px;
	font-family: Jura;
}

mcmessage mcms .a>.lastSql {
	margin-bottom: 12px;
	background: var(--red);
	color: #fff;
	padding: 5px 10px;
	border-radius: 10px;
	font-family: Jura;
	user-select: text;
	word-wrap: break-word;
	font-size: 12px;
	font-weight: 600;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

mcmessage mcms .a>.lastSql.copied:before {
	content: "";
	inset: 0;
	position: absolute;
	margin: auto;
	width: 100%;
	height: 100%;
	z-index: 5;
	background-color: rgb(255 255 255 / 90%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='%23b91c1c' stroke-width='1.2' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16.97 12.25V16.75C16.97 20.5 15.47 22 11.72 22H7.22C3.47 22 1.97 20.5 1.97 16.75V12.25C1.97 8.5 3.47 7 7.22 7H11.72C15.47 7 16.97 8.5 16.97 12.25Z'%3E%3C/path%3E%3Cpath d='M21.97 5.85V9.15C21.97 11.9 20.87 13 18.12 13H16.97V12.25C16.97 8.5 15.47 7 11.72 7H10.97V5.85C10.97 3.1 12.07 2 14.82 2H18.12C20.87 2 21.97 3.1 21.97 5.85Z'%3E%3C/path%3E%3C/svg%3E");
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: center;
	transition: .3s;
}

@media screen and (max-width: 900px) {
	mcmessage {
		width: 100%;
		max-width: 100%;
		left: 0;
		right: 0;
		margin: auto;
		top: 10px;
	}

	mcmessage mcms {
		max-width: 100%;
	}

	mcmessage mcms .a>.message {
		max-width: 100%;
	}

	mcmessage mcms {
		margin: 0;
		max-width: 90vw;
		right: -105vw;
	}

	mcms.open {
		right: 5vw;
	}
}

mcmessage .catchErr * {
	font-family: monospace;
	font-weight: 300;
	font-size: 11px !important;
}

mcmessage .catchErr {
	font-family: monospace;
	font-size: 12px;
	color: #444;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: max-content;
	margin: 20px 30px;
	max-width: 100%;
}

mcmessage .catchErr .h1 {
	font-size: 16px;
	font-weight: bold;
}

mcmessage .catchErr .message {
	font-size: 13px;
	border-radius: 2px;
	background: #4f4f4f;
	color: #fff;
	padding: 3px 5px 3px 5px;
	user-select: all;
	white-space: break-spaces;
	max-width: 100%;
}

mcmessage .catchErr .file {
	font-size: 14px;
	margin: 5px 0;
	color: #fff;
	background: #d84e4e;
	padding: 4px 10px;
	border-radius: 8px;
	margin-top: 0;
	user-select: all;
}

mcmessage .catchErr .tracerow {
	display: flex;
	gap: 10px;
	margin-bottom: 5px;
}

mcmessage .catchErr .tracerow d.z.b {
	background: #ededed;
	border-radius: 6px;
	padding: 3px 20px;
	white-space: nowrap;
	display: flex;
	gap: 10px;
	user-select: all;
}

mcmessage mcms .a>.message d.catchErr {
	margin: 10px 0 0 0;
}

mcmessage mcms .a>.message d.catchErr d.h1 {
	display: none;
}

mcmessage .catchErr .tracerow d.z.a {
	background-image: url("data:image/svg+xml, %3Csvg%20stroke%3D%22%23e7083c%22%20stroke-width%3D%221%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20randcolor%3D%22set%22%20width%3D%2232%22%20height%3D%2232%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.91003%2019.9201L15.43%2013.4001C16.2%2012.6301%2016.2%2011.3701%2015.43%2010.6001L8.91003%204.08008%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
	background-size: 17px;
	background-repeat: no-repeat;
	background-position: center right;
}

mcmessage .catchErr .tracerow:last-child {
	margin-bottom: 0;
}.mcpicture {
	position: relative;
	background: #f7f7f7;
	overflow: hidden;
}
.mcpicture img {
	position: relative;
	border: 0;
	width: 100%;
	display: block;
}

/* оба img с transition — crossfade плавный */
d.mcpicture img[type="thumb"] {
	transition: opacity .3s;
}
d.mcpicture img[type="base"] {
	opacity: 0;
	transition: opacity .3s;
}

/* base готов — crossfade: base появляется, thumb исчезает одновременно */
d.mcpicture.b img[type="base"]  { opacity: 1; }
d.mcpicture.b img[type="thumb"] { opacity: 0; }

/* пустой src — прозрачность */
d.mcpicture img[src=""],
d.mcpicture img:not([src]) {
	opacity: 0;
}

/* thumb — абсолютный оверлей поверх base */
.mcpicture img[type="thumb"] {
	position: absolute;
	top: 0;
	left: 0;
}

/* лоадер */
d.mcpicture img[src=""] + .loader,
d.mcpicture img:not([src]) + .loader {
	display: none;
}
d.mcpicture.a.b .loader {
	opacity: 0;
}

@keyframes mcpictureloader {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
@-webkit-keyframes mcpictureloader {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}
.mcpicture .loader {
	background: linear-gradient(
		90deg,
		rgb(255 255 255 / 0%)  25%,
		rgb(255 255 255 / 30%) 50%,
		rgb(255 255 255 / 0%)  75%
	);
	background-size: 200% 100%;
	animation: mcpictureloader 2s infinite linear;
	-webkit-animation: mcpictureloader 2s infinite linear;
	transform: rotate(160deg) scale(2);
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	height: 100%;
	opacity: 1;
	transition: opacity .2s;
	pointer-events: none !important;
	will-change: transform, opacity;
}.mcUIScroller {
	overflow: hidden;
	overflow-x: auto;
	white-space: nowrap;
	display: flex;
	flex-wrap: nowrap;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: grab;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mcUIScroller::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}
.mcUIScroller::-webkit-scrollbar-thumb {
	background-color: transparent;
	border: 0;
}
.mcUIScroller::-webkit-scrollbar-track {
	background: transparent;
}
.mcUIScroller.ls_dragging {
	cursor: grabbing;
	will-change: scroll-position;
}
.ls_body_dragging,
.ls_body_dragging * {
	cursor: grabbing !important;
}
.ls_body_dragging *:not(.mcUIScroller) {
	pointer-events: none !important;
}
.mcUIScroller.ls_snap {
	scroll-snap-type: x mandatory;
	-webkit-scroll-snap-type: x mandatory;
	scroll-behavior: auto;
}
.mcUIScroller.ls_snap > * {
	scroll-snap-align: start;
	-webkit-scroll-snap-align: start;
}
.mcUIScroller.ls_animating {
	scroll-behavior: auto !important;
	scroll-snap-type: none !important;
	-webkit-scroll-snap-type: none !important;
}