@media (min-width: 769px) {
	.mtd-button,
	.mtd-panel,
	.mtd-backdrop,
	.mtd-inline {
		display: none !important;
	}
}

@media (max-width: 768px) {
	body.mtd-open {
		overflow: hidden;
	}

	.mtd-source-hidden {
		display: none !important;
	}

	.mtd-inline {
		position: relative;
		margin: 22px 0 28px;
		padding: 22px 18px 18px;
		border: 1px solid #ece6b7;
		background: #fffdf0;
		color: #20272b;
	}

	.mtd-inline-title {
		margin: 0 0 14px !important;
		padding: 0 !important;
		border: 0 !important;
		color: #161b1f;
		font-size: 22px !important;
		font-weight: 800 !important;
		line-height: 1.3 !important;
	}

	.mtd-inline nav,
	.mtd-inline .ez-toc-list,
	.mtd-inline ul,
	.mtd-inline ol {
		margin: 0;
		padding: 0;
		list-style-position: inside;
	}

	.mtd-inline ul,
	.mtd-inline ol {
		list-style: decimal;
	}

	.mtd-inline li {
		margin: 0 0 12px;
		color: #333;
		font-size: 16px;
		line-height: 1.55;
	}

	.mtd-inline a {
		color: #303236;
		font-weight: 500;
		text-decoration: none;
	}

	.mtd-button {
		position: fixed;
		right: 8px;
		top: 46vh;
		z-index: 9998;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid #ffe0eb;
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.95);
		color: #ff5d8f;
		box-shadow: 0 8px 24px rgba(30, 36, 46, 0.14);
		line-height: 1;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.mtd-button:focus-visible,
	.mtd-close:focus-visible,
	.mtd-panel a:focus-visible {
		outline: 2px solid #f1b84b;
		outline-offset: 3px;
	}

	.mtd-button-icon {
		width: 20px;
		height: 20px;
		position: relative;
		display: inline-block;
	}

	.mtd-button-icon::before,
	.mtd-button-icon::after,
	.mtd-button-icon span {
		position: absolute;
		left: 4px;
		width: 13px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		content: "";
	}

	.mtd-button-icon::before {
		top: 4px;
	}

	.mtd-button-icon span {
		top: 9px;
	}

	.mtd-button-icon::after {
		top: 14px;
	}

	.mtd-button-icon::before,
	.mtd-button-icon::after {
		box-shadow: -4px 0 0 currentColor;
	}

	.mtd-backdrop {
		position: fixed;
		inset: 0;
		z-index: 9996;
		background: rgba(15, 23, 28, 0.46);
		opacity: 0;
		pointer-events: none;
		transition: opacity 180ms ease;
	}

	.mtd-panel {
		position: fixed;
		top: 50%;
		right: 12px;
		z-index: 9997;
		width: min(82vw, 330px);
		max-height: min(68vh, 560px);
		padding: 14px;
		border: 1px solid #f2d8e2;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 18px 48px rgba(15, 23, 28, 0.22);
		transform: translate(108%, -50%);
		transition: transform 220ms ease;
	}

	body.mtd-open .mtd-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	body.mtd-open .mtd-panel {
		transform: translate(0, -50%);
	}

	.mtd-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 10px;
	}

	.mtd-title {
		margin: 0;
		color: #172326;
		font-size: 17px;
		font-weight: 800;
		line-height: 1.35;
	}

	.mtd-close {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 50%;
		background: #eef3f2;
		color: #1d3438;
		font-size: 26px;
		line-height: 1;
		cursor: pointer;
	}

	.mtd-content {
		max-height: calc(min(68vh, 560px) - 66px);
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		padding-right: 2px;
	}

	.mtd-content nav,
	.mtd-content .ez-toc-list,
	.mtd-content ul,
	.mtd-content ol {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.mtd-content li {
		margin: 0;
		padding: 0;
	}

	.mtd-content a {
		display: block;
		padding: 11px 4px;
		border-bottom: 1px solid #edf0ef;
		color: #203033;
		font-size: 15px;
		font-weight: 650;
		line-height: 1.45;
		text-decoration: none;
	}

	.mtd-content li li a {
		padding-left: 18px;
		color: #4d5c60;
		font-size: 14px;
		font-weight: 500;
	}

	.mtd-content li li li a {
		padding-left: 32px;
	}
}
