@media (prefers-color-scheme: dark) {
	.wmde-markdown,
	.wmde-markdown-var {
		color-scheme: dark;
		--color-prettylights-syntax-comment: #8b949e;
		--color-prettylights-syntax-constant: #79c0ff;
		--color-prettylights-syntax-entity: #d2a8ff;
		--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
		--color-prettylights-syntax-entity-tag: #7ee787;
		--color-prettylights-syntax-keyword: #ff7b72;
		--color-prettylights-syntax-string: #a5d6ff;
		--color-prettylights-syntax-variable: #ffa657;
		--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
		--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
		--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
		--color-prettylights-syntax-carriage-return-text: #f0f6fc;
		--color-prettylights-syntax-carriage-return-bg: #b62324;
		--color-prettylights-syntax-string-regexp: #7ee787;
		--color-prettylights-syntax-markup-list: #f2cc60;
		--color-prettylights-syntax-markup-heading: #1f6feb;
		--color-prettylights-syntax-markup-italic: #c9d1d9;
		--color-prettylights-syntax-markup-bold: #c9d1d9;
		--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
		--color-prettylights-syntax-markup-deleted-bg: #67060c;
		--color-prettylights-syntax-markup-inserted-text: #aff5b4;
		--color-prettylights-syntax-markup-inserted-bg: #033a16;
		--color-prettylights-syntax-markup-changed-text: #ffdfb6;
		--color-prettylights-syntax-markup-changed-bg: #5a1e02;
		--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
		--color-prettylights-syntax-markup-ignored-bg: #1158c7;
		--color-prettylights-syntax-meta-diff-range: #d2a8ff;
		--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
		--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
		--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
		--color-fg-default: #c9d1d9;
		--color-fg-muted: #8b949e;
		--color-fg-subtle: #484f58;
		--color-canvas-default: #0d1117;
		--color-canvas-subtle: #161b22;
		--color-border-default: #30363d;
		--color-border-muted: #21262d;
		--color-neutral-muted: rgba(110, 118, 129, 0.4);
		--color-accent-fg: #58a6ff;
		--color-accent-emphasis: #1f6feb;
		--color-attention-subtle: rgba(187, 128, 9, 0.15);
		--color-danger-fg: #f85149;
		--color-danger-emphasis: #da3633;
		--color-attention-fg: #d29922;
		--color-attention-emphasis: #9e6a03;
		--color-done-fg: #a371f7;
		--color-done-emphasis: #8957e5;
		--color-success-fg: #3fb950;
		--color-success-emphasis: #238636;
		--color-copied-active-bg: #2e9b33;
	}
}

@media (prefers-color-scheme: light) {
	.wmde-markdown,
	.wmde-markdown-var {
		color-scheme: light;
		--color-prettylights-syntax-comment: #6e7781;
		--color-prettylights-syntax-constant: #0550ae;
		--color-prettylights-syntax-entity: #8250df;
		--color-prettylights-syntax-storage-modifier-import: #24292f;
		--color-prettylights-syntax-entity-tag: #116329;
		--color-prettylights-syntax-keyword: #cf222e;
		--color-prettylights-syntax-string: #0a3069;
		--color-prettylights-syntax-variable: #953800;
		--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
		--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
		--color-prettylights-syntax-invalid-illegal-bg: #82071e;
		--color-prettylights-syntax-carriage-return-text: #f6f8fa;
		--color-prettylights-syntax-carriage-return-bg: #cf222e;
		--color-prettylights-syntax-string-regexp: #116329;
		--color-prettylights-syntax-markup-list: #3b2300;
		--color-prettylights-syntax-markup-heading: #0550ae;
		--color-prettylights-syntax-markup-italic: #24292f;
		--color-prettylights-syntax-markup-bold: #24292f;
		--color-prettylights-syntax-markup-deleted-text: #82071e;
		--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
		--color-prettylights-syntax-markup-inserted-text: #116329;
		--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
		--color-prettylights-syntax-markup-changed-text: #953800;
		--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
		--color-prettylights-syntax-markup-ignored-text: #eaeef2;
		--color-prettylights-syntax-markup-ignored-bg: #0550ae;
		--color-prettylights-syntax-meta-diff-range: #8250df;
		--color-prettylights-syntax-brackethighlighter-angle: #57606a;
		--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
		--color-prettylights-syntax-constant-other-reference-link: #0a3069;
		--color-fg-default: #24292f;
		--color-fg-muted: #57606a;
		--color-fg-subtle: #6e7781;
		--color-canvas-default: #ffffff;
		--color-canvas-subtle: #f6f8fa;
		--color-border-default: #d0d7de;
		--color-border-muted: hsla(210, 18%, 87%, 1);
		--color-neutral-muted: rgba(175, 184, 193, 0.2);
		--color-accent-fg: #0969da;
		--color-accent-emphasis: #0969da;
		--color-attention-subtle: #fff8c5;
		--color-danger-fg: #d1242f;
		--color-danger-emphasis: #cf222e;
		--color-attention-fg: #9a6700;
		--color-attention-emphasis: #9a6700;
		--color-done-fg: #8250df;
		--color-done-emphasis: #8250df;
		--color-success-fg: #1a7f37;
		--color-success-emphasis: #1f883d;
		--color-copied-active-bg: #2e9b33;
	}
}

[data-color-mode*="dark"] .wmde-markdown,
[data-color-mode*="dark"] .wmde-markdown-var,
.wmde-markdown-var[data-color-mode*="dark"],
.wmde-markdown[data-color-mode*="dark"],
body[data-color-mode*="dark"] {
	color-scheme: dark;
	--color-prettylights-syntax-comment: #8b949e;
	--color-prettylights-syntax-constant: #79c0ff;
	--color-prettylights-syntax-entity: #d2a8ff;
	--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
	--color-prettylights-syntax-entity-tag: #7ee787;
	--color-prettylights-syntax-keyword: #ff7b72;
	--color-prettylights-syntax-string: #a5d6ff;
	--color-prettylights-syntax-variable: #ffa657;
	--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
	--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
	--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
	--color-prettylights-syntax-carriage-return-text: #f0f6fc;
	--color-prettylights-syntax-carriage-return-bg: #b62324;
	--color-prettylights-syntax-string-regexp: #7ee787;
	--color-prettylights-syntax-markup-list: #f2cc60;
	--color-prettylights-syntax-markup-heading: #1f6feb;
	--color-prettylights-syntax-markup-italic: #c9d1d9;
	--color-prettylights-syntax-markup-bold: #c9d1d9;
	--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
	--color-prettylights-syntax-markup-deleted-bg: #67060c;
	--color-prettylights-syntax-markup-inserted-text: #aff5b4;
	--color-prettylights-syntax-markup-inserted-bg: #033a16;
	--color-prettylights-syntax-markup-changed-text: #ffdfb6;
	--color-prettylights-syntax-markup-changed-bg: #5a1e02;
	--color-prettylights-syntax-markup-ignored-text: #c9d1d9;
	--color-prettylights-syntax-markup-ignored-bg: #1158c7;
	--color-prettylights-syntax-meta-diff-range: #d2a8ff;
	--color-prettylights-syntax-brackethighlighter-angle: #8b949e;
	--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
	--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
	--color-fg-default: #c9d1d9;
	--color-fg-muted: #8b949e;
	--color-fg-subtle: #484f58;
	--color-canvas-default: #0d1117;
	--color-canvas-subtle: #161b22;
	--color-border-default: #30363d;
	--color-border-muted: #21262d;
	--color-neutral-muted: rgba(110, 118, 129, 0.4);
	--color-accent-fg: #58a6ff;
	--color-accent-emphasis: #1f6feb;
	--color-attention-subtle: rgba(187, 128, 9, 0.15);
	--color-danger-fg: #f85149;
}

[data-color-mode*="light"] .wmde-markdown,
[data-color-mode*="light"] .wmde-markdown-var,
.wmde-markdown-var[data-color-mode*="light"],
.wmde-markdown[data-color-mode*="light"],
body[data-color-mode*="light"] {
	color-scheme: light;
	--color-prettylights-syntax-comment: #6e7781;
	--color-prettylights-syntax-constant: #0550ae;
	--color-prettylights-syntax-entity: #8250df;
	--color-prettylights-syntax-storage-modifier-import: #24292f;
	--color-prettylights-syntax-entity-tag: #116329;
	--color-prettylights-syntax-keyword: #cf222e;
	--color-prettylights-syntax-string: #0a3069;
	--color-prettylights-syntax-variable: #953800;
	--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
	--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
	--color-prettylights-syntax-invalid-illegal-bg: #82071e;
	--color-prettylights-syntax-carriage-return-text: #f6f8fa;
	--color-prettylights-syntax-carriage-return-bg: #cf222e;
	--color-prettylights-syntax-string-regexp: #116329;
	--color-prettylights-syntax-markup-list: #3b2300;
	--color-prettylights-syntax-markup-heading: #0550ae;
	--color-prettylights-syntax-markup-italic: #24292f;
	--color-prettylights-syntax-markup-bold: #24292f;
	--color-prettylights-syntax-markup-deleted-text: #82071e;
	--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
	--color-prettylights-syntax-markup-inserted-text: #116329;
	--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
	--color-prettylights-syntax-markup-changed-text: #953800;
	--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
	--color-prettylights-syntax-markup-ignored-text: #eaeef2;
	--color-prettylights-syntax-markup-ignored-bg: #0550ae;
	--color-prettylights-syntax-meta-diff-range: #8250df;
	--color-prettylights-syntax-brackethighlighter-angle: #57606a;
	--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
	--color-prettylights-syntax-constant-other-reference-link: #0a3069;
	--color-fg-default: #24292f;
	--color-fg-muted: #57606a;
	--color-fg-subtle: #6e7781;
	--color-canvas-default: #ffffff;
	--color-canvas-subtle: #f6f8fa;
	--color-border-default: #d0d7de;
	--color-border-muted: hsla(210, 18%, 87%, 1);
	--color-neutral-muted: rgba(175, 184, 193, 0.2);
	--color-accent-fg: #0969da;
	--color-accent-emphasis: #0969da;
	--color-attention-subtle: #fff8c5;
	--color-danger-fg: #cf222e;
}

.wmde-markdown {
	-webkit-text-size-adjust: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji",
		"Segoe UI Emoji";
	font-size: 16px;
	line-height: 1.5;
	word-wrap: break-word;
	color: inherit; //var(--color-fg-default)
	background-color: transparent; //var(--color-canvas-default);
}

.wmde-markdown {
	details,
	figcaption,
	figure {
		display: block;
	}
	summary {
		display: list-item;
	}

	[hidden] {
		display: none !important;
	}

	a {
		background-color: transparent;
		color: var(--color-accent-fg);
		text-decoration: none;
		&:active,
		&:hover {
			outline-width: 0;
		}
	}

	abbr[title] {
		border-bottom: none;
		text-decoration: underline dotted;
	}
	b,
	strong {
		font-weight: 600;
	}

	dfn {
		font-style: italic;
	}

	h1 {
		margin: 0.67em 0;
		font-weight: 600;
		padding-bottom: 0.3em;
		font-size: 2em;
		border-bottom: 1px solid var(--color-border-muted);
	}

	mark {
		background-color: var(--color-attention-subtle);
		color: var(--color-text-primary);
	}

	small {
		font-size: 90%;
	}

	sub,
	sup {
		font-size: 75%;
		line-height: 0;
		position: relative;
		vertical-align: baseline;
	}

	sub {
		bottom: -0.25em;
	}

	sup {
		top: -0.5em;
	}

	img {
		display: inline-block;
		border-style: none;
		max-width: 100%;
		box-sizing: content-box;
		background-color: var(--color-canvas-default);
	}

	code,
	kbd,
	pre,
	samp {
		font-family: monospace, monospace;
		font-size: 1em;
	}

	figure {
		margin: 1em 40px;
	}

	hr {
		box-sizing: content-box;
		overflow: hidden;
		background: transparent;
		border: 0;
		border-bottom: 1px solid var(--color-border-muted);
		height: 0.25em;
		padding: 0;
		margin: 24px 0;
		background-color: var(--color-border-default);
	}
	input {
		font: inherit;
		margin: 0;
		overflow: visible;
		font-family: inherit;
		font-size: inherit;
		line-height: inherit;
	}

	[type="button"],
	[type="reset"],
	[type="submit"] {
		-webkit-appearance: button;
	}

	[type="button"]::-moz-focus-inner,
	[type="reset"]::-moz-focus-inner,
	[type="submit"]::-moz-focus-inner {
		border-style: none;
		padding: 0;
	}

	[type="button"]:-moz-focusring,
	[type="reset"]:-moz-focusring,
	[type="submit"]:-moz-focusring {
		outline: 1px dotted ButtonText;
	}

	[type="checkbox"],
	[type="radio"] {
		box-sizing: border-box;
		padding: 0;
	}
	[type="number"]::-webkit-inner-spin-button,
	[type="number"]::-webkit-outer-spin-button {
		height: auto;
	}

	[type="search"] {
		-webkit-appearance: textfield;
		outline-offset: -2px;
	}

	[type="search"]::-webkit-search-cancel-button,
	[type="search"]::-webkit-search-decoration {
		-webkit-appearance: none;
	}

	::-webkit-input-placeholder {
		color: inherit;
		opacity: 0.54;
	}

	::-webkit-file-upload-button {
		-webkit-appearance: button;
		font: inherit;
	}

	a:hover {
		text-decoration: underline;
	}

	hr {
		&::before {
			display: table;
			content: "";
		}

		&::after {
			display: table;
			clear: both;
			content: "";
		}
	}
	table {
		border-spacing: 0;
		border-collapse: collapse;
		display: block;
		width: max-content;
		max-width: 100%;
	}

	td,
	th {
		padding: 0;
	}

	details summary {
		cursor: pointer;
	}

	details:not([open]) > *:not(summary) {
		display: none !important;
	}

	kbd {
		display: inline-block;
		padding: 3px 5px;
		font:
			11px ui-monospace,
			SFMono-Regular,
			SF Mono,
			Menlo,
			Consolas,
			Liberation Mono,
			monospace;
		line-height: 10px;
		color: var(--color-fg-default);
		vertical-align: middle;
		background-color: var(--color-canvas-subtle);
		border: solid 1px var(--color-neutral-muted);
		border-bottom-color: var(--color-neutral-muted);
		border-radius: 6px;
		box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin-top: 24px;
		margin-bottom: 16px;
		font-weight: 600;
		line-height: 1.25;
	}

	td,
	th {
		padding: 0;
	}

	details summary {
		cursor: pointer;
	}

	details:not([open]) > *:not(summary) {
		display: none !important;
	}

	kbd {
		display: inline-block;
		padding: 3px 5px;
		font:
			11px ui-monospace,
			SFMono-Regular,
			SF Mono,
			Menlo,
			Consolas,
			Liberation Mono,
			monospace;
		line-height: 10px;
		color: var(--color-fg-default);
		vertical-align: middle;
		background-color: var(--color-canvas-subtle);
		border: solid 1px var(--color-neutral-muted);
		border-bottom-color: var(--color-neutral-muted);
		border-radius: 6px;
		box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
	}
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		margin-top: 24px;
		margin-bottom: 16px;
		font-weight: 600;
		line-height: 1.25;
	}

	h2 {
		font-weight: 600;
		padding-bottom: 0.3em;
		font-size: 1.5em;
		border-bottom: 1px solid var(--color-border-muted);
	}

	h3 {
		font-weight: 600;
		font-size: 1.25em;
	}

	h4 {
		font-weight: 600;
		font-size: 1em;
	}

	h5 {
		font-weight: 600;
		font-size: 0.875em;
	}

	h6 {
		font-weight: 600;
		font-size: 0.85em;
		color: var(--color-fg-muted);
	}
	p {
		margin-top: 0;
		margin-bottom: 10px;
	}

	blockquote {
		margin: 0;
		padding: 0 1em;
		color: var(--color-fg-muted);
		border-left: 0.25em solid var(--color-border-default);
	}

	ul,
	ol {
		margin-top: 0;
		margin-bottom: 0;
		padding-left: 2em;
	}

	ol ol,
	ul ol {
		list-style-type: lower-roman;
	}

	ul ul ol,
	ul ol ol,
	ol ul ol,
	ol ol ol {
		list-style-type: lower-alpha;
	}

	dd {
		margin-left: 0;
	}

	tt,
	code {
		font-family:
			ui-monospace,
			SFMono-Regular,
			SF Mono,
			Menlo,
			Consolas,
			Liberation Mono,
			monospace;
		font-size: 12px;
	}
	pre {
		margin-top: 0;
		margin-bottom: 0;
		font-family:
			ui-monospace,
			SFMono-Regular,
			SF Mono,
			Menlo,
			Consolas,
			Liberation Mono,
			monospace;
		font-size: 12px;
		word-wrap: normal;
	}

	.octicon {
		display: inline-block;
		overflow: visible !important;
		vertical-align: text-bottom;
		fill: currentColor;
	}

	::placeholder {
		color: var(--color-fg-subtle);
		opacity: 1;
	}

	input::-webkit-outer-spin-button,
	input::-webkit-inner-spin-button {
		margin: 0;
		-webkit-appearance: none;
		appearance: none;
	}
	[data-catalyst] {
		display: block;
	}

	&::before {
		display: table;
		content: "";
	}

	&::after {
		display: table;
		clear: both;
		content: "";
	}

	& > *:first-child {
		margin-top: 0 !important;
	}

	& > *:last-child {
		margin-bottom: 0 !important;
	}

	a:not([href]) {
		color: inherit;
		text-decoration: none;
	}

	.absent {
		color: var(--color-danger-fg);
	}

	a.anchor {
		float: left;
		padding-right: 4px;
		margin-left: -20px;
		line-height: 1;
	}

	.anchor:focus {
		outline: none;
	}

	p,
	blockquote,
	ul,
	ol,
	dl,
	table,
	pre,
	details {
		margin-top: 0;
		margin-bottom: 16px;
	}

	blockquote > :first-child {
		margin-top: 0;
	}

	blockquote > :last-child {
		margin-bottom: 0;
	}

	sup > a::before {
		content: "[";
	}

	sup > a::after {
		content: "]";
	}
	h1 .octicon-link,
	h2 .octicon-link,
	h3 .octicon-link,
	h4 .octicon-link,
	h5 .octicon-link,
	h6 .octicon-link {
		color: var(--color-fg-default);
		vertical-align: middle;
		visibility: hidden;
	}

	h1:hover .anchor,
	h2:hover .anchor,
	h3:hover .anchor,
	h4:hover .anchor,
	h5:hover .anchor,
	h6:hover .anchor {
		text-decoration: none;
	}

	h1:hover .anchor .octicon-link,
	h2:hover .anchor .octicon-link,
	h3:hover .anchor .octicon-link,
	h4:hover .anchor .octicon-link,
	h5:hover .anchor .octicon-link,
	h6:hover .anchor .octicon-link {
		visibility: visible;
	}

	h1 tt,
	h1 code,
	h2 tt,
	h2 code,
	h3 tt,
	h3 code,
	h4 tt,
	h4 code,
	h5 tt,
	h5 code,
	h6 tt,
	h6 code {
		padding: 0 0.2em;
		font-size: inherit;
	}
	ul.no-list,
	ol.no-list {
		padding: 0;
		list-style-type: none;
	}

	ol[type="1"] {
		list-style-type: decimal;
	}

	ol[type="a"] {
		list-style-type: lower-alpha;
	}

	ol[type="i"] {
		list-style-type: lower-roman;
	}

	div > ol:not([type]) {
		list-style-type: decimal;
	}

	ul ul,
	ul ol,
	ol ol,
	ol ul {
		margin-top: 0;
		margin-bottom: 0;
	}

	li > p {
		margin-top: 16px;
	}

	li + li {
		margin-top: 0.25em;
	}

	dl {
		padding: 0;
	}

	dl dt {
		padding: 0;
		margin-top: 16px;
		font-size: 1em;
		font-style: italic;
		font-weight: 600;
	}

	dl dd {
		padding: 0 16px;
		margin-bottom: 16px;
	}

	table th {
		font-weight: 600;
	}
	table th,
	table td {
		padding: 6px 13px;
		border: 1px solid var(--color-border-default);
	}

	table tr {
		background-color: var(--color-canvas-default);
		border-top: 1px solid var(--color-border-muted);
	}

	table tr:nth-child(2n) {
		background-color: var(--color-canvas-subtle);
	}

	table img {
		background-color: transparent;
	}

	img[align="right"] {
		padding-left: 20px;
	}

	img[align="left"] {
		padding-right: 20px;
	}
	.emoji {
		max-width: none;
		vertical-align: text-top;
		background-color: transparent;
	}

	span.frame {
		display: block;
		overflow: hidden;
	}

	span.frame > span {
		display: block;
		float: left;
		width: auto;
		padding: 7px;
		margin: 13px 0 0;
		overflow: hidden;
		border: 1px solid var(--color-border-default);
	}

	span.frame span img {
		display: block;
		float: left;
	}

	span.frame span span {
		display: block;
		padding: 5px 0 0;
		clear: both;
		color: var(--color-fg-default);
	}

	span.align-center {
		display: block;
		overflow: hidden;
		clear: both;
	}

	span.align-center > span {
		display: block;
		margin: 13px auto 0;
		overflow: hidden;
		text-align: center;
	}

	span.align-center span img {
		margin: 0 auto;
		text-align: center;
	}

	span.align-right {
		display: block;
		overflow: hidden;
		clear: both;
		> span {
			display: block;
			margin: 13px 0 0;
			overflow: hidden;
			text-align: right;
		}
		span img {
			margin: 0;
			text-align: right;
		}
	}

	span.float-left {
		display: block;
		float: left;
		margin-right: 13px;
		overflow: hidden;
		span {
			margin: 13px 0 0;
		}
	}

	span.float-right {
		display: block;
		float: right;
		margin-left: 13px;
		overflow: hidden;
	}

	span.float-right > span {
		display: block;
		margin: 13px auto 0;
		overflow: hidden;
		text-align: right;
	}

	code,
	tt {
		padding: 0.2em 0.4em;
		margin: 0;
		font-size: 85%;
		background-color: var(--color-neutral-muted);
		border-radius: 6px;
	}

	code br,
	tt br {
		display: none;
	}

	del code {
		text-decoration: inherit;
	}

	pre code {
		font-size: 100%;
	}

	pre > code {
		padding: 0;
		margin: 0;
		word-break: normal;
		white-space: pre;
		background: transparent;
		border: 0;
	}

	pre {
		font-size: 85%;
		line-height: 1.45;
		background-color: var(--color-canvas-subtle);
		border-radius: 6px;
	}

	pre code,
	pre tt {
		display: inline;
		max-width: auto;
		padding: 0;
		margin: 0;
		overflow: visible;
		line-height: inherit;
		word-wrap: normal;
		background-color: transparent;
		border: 0;
	}
	pre > code {
		padding: 16px;
		overflow: auto;
		display: block;
		&::-webkit-scrollbar {
			background: transparent;
			width: 8px;
			height: 8px;
		}
		&::-webkit-scrollbar-thumb {
			background: var(--color-fg-muted);
			border-radius: 10px;
		}
	}
}

.wmde-markdown {
	.csv-data {
		td,
		th {
			padding: 5px;
			overflow: hidden;
			font-size: 12px;
			line-height: 1;
			text-align: left;
			white-space: nowrap;
		}

		.blob-num {
			padding: 10px 8px 9px;
			text-align: right;
			background: var(--color-canvas-default);
			border: 0;
		}

		tr {
			border-top: 0;
		}

		th {
			font-weight: 600;
			background: var(--color-canvas-subtle);
			border-top: 0;
		}
	}
}

.wmde-markdown {
	.footnotes {
		font-size: 12px;
		color: var(--color-fg-muted);
		border-top: 1px solid var(--color-border-default);

		ol {
			padding-left: 16px;
		}

		li {
			position: relative;
			&:target::before {
				position: absolute;
				top: -8px;
				right: -8px;
				bottom: -8px;
				left: -24px;
				pointer-events: none;
				content: "";
				border: 2px solid var(--color-accent-emphasis);
				border-radius: 6px;
			}
			&:target {
				color: var(--color-fg-default);
			}
		}
		.data-footnote-backref g-emoji {
			font-family: monospace;
		}
	}
}

.wmde-markdown {
	.task-list-item {
		list-style-type: none;
		label {
			font-weight: 400;
		}
		&.enabled label {
			cursor: pointer;
		}
		& + & {
			margin-top: 3px;
		}
		.handle {
			display: none;
		}
	}
	.task-list-item-checkbox,
	.contains-task-list input[type="checkbox"] {
		margin: 0 0.2em 0.25em -1.6em;
		vertical-align: middle;
	}
	.contains-task-list:dir(rtl) .task-list-item-checkbox,
	.contains-task-list:dir(rtl) input[type="checkbox"] {
		margin: 0 -1.6em 0.25em 0.2em;
	}
}

.wmde-markdown ::-webkit-calendar-picker-indicator {
	filter: invert(50%);
}

.wmde-markdown {
	pre {
		position: relative;
		.copied {
			visibility: hidden;
			display: flex;
			position: absolute;
			cursor: pointer;
			color: var(--color-fg-default);
			top: 6px;
			right: 6px;
			border-radius: 5px;
			background: var(--color-border-default);
			padding: 6px;
			font-size: 12px;
			transition: all 0.3s;

			.octicon-copy {
				display: block;
			}

			.octicon-check {
				display: none;
			}
		}
		&:hover {
			.copied {
				visibility: visible;
			}
			.copied:hover {
				background: var(--color-prettylights-syntax-entity-tag);
				color: var(--color-canvas-default);
			}
		}
		&:hover .copied:active,
		.copied.active {
			background: var(--color-copied-active-bg);
			color: var(--color-canvas-default);
		}
		.active {
			.octicon-copy {
				display: none;
			}

			.octicon-check {
				display: block;
			}
		}
	}
}

.wmde-markdown {
	.markdown-alert {
		padding: 0.5rem 1em;
		color: inherit;
		margin-bottom: 16px;
		border-left: 0.25em solid var(--borderColor-default, var(--color-border-default));
		> :last-child {
			margin-bottom: 0 !important;
		}
		.markdown-alert-title {
			display: flex;
			align-items: center;
			line-height: 1;
			font-weight: 500;
			font-size: 14px;
			svg.octicon {
				margin-right: var(--base-size-8, 8px) !important;
			}
		}
		&.markdown-alert-note {
			border-left-color: var(--borderColor-accent-emphasis, var(--color-accent-emphasis));
			.markdown-alert-title {
				color: var(--fgColor-accent, var(--color-accent-fg));
			}
		}
		&.markdown-alert-tip {
			border-left-color: var(--borderColor-success-emphasis, var(--color-success-emphasis));
			.markdown-alert-title {
				color: var(--fgColor-success, var(--color-success-fg));
			}
		}
		&.markdown-alert-important {
			border-left-color: var(--borderColor-done-emphasis, var(--color-done-emphasis));
			.markdown-alert-title {
				color: var(--fgColor-done, var(--color-done-fg));
			}
		}
		&.markdown-alert-warning {
			border-left-color: var(--borderColor-attention-emphasis, var(--color-attention-emphasis));
			.markdown-alert-title {
				color: var(--fgColor-attention, var(--color-attention-fg));
			}
		}
		&.markdown-alert-caution {
			border-left-color: var(--borderColor-danger-emphasis, var(--color-danger-emphasis));
			.markdown-alert-title {
				color: var(--fgColor-danger, var(--color-danger-fg));
			}
		}
	}
}

.wmde-markdown {
	.highlight-line {
		background-color: var(--color-neutral-muted);
	}
	.code-line.line-number::before {
		display: inline-block;
		width: 1rem;
		text-align: right;
		margin-right: 16px;
		color: var(--color-fg-subtle);
		content: attr(line);
		white-space: nowrap;
	}

	.token.comment,
	.token.prolog,
	.token.doctype,
	.token.cdata {
		color: var(--color-prettylights-syntax-comment);
	}
	.token.namespace {
		opacity: 0.7;
	}
	.token.property,
	.token.tag,
	.token.selector,
	.token.constant,
	.token.symbol,
	.token.deleted {
		color: var(--color-prettylights-syntax-entity-tag);
	}
	.token.maybe-class-name {
		color: var(--color-prettylights-syntax-variable);
	}
	.token.property-access,
	.token.operator,
	.token.boolean,
	.token.number,
	.token.selector .token.class,
	.token.attr-name,
	.token.string,
	.token.char,
	.token.builtin {
		color: var(--color-prettylights-syntax-constant);
	}

	.token.deleted {
		color: var(--color-prettylights-syntax-markup-deleted-text);
	}
	.code-line .token.deleted {
		background-color: var(--color-prettylights-syntax-markup-deleted-bg);
	}
	.token.inserted {
		color: var(--color-prettylights-syntax-markup-inserted-text);
	}
	.code-line .token.inserted {
		background-color: var(--color-prettylights-syntax-markup-inserted-bg);
	}

	.token.variable {
		color: var(--color-prettylights-syntax-constant);
	}
	.token.entity,
	.token.url,
	.language-css .token.string,
	.style .token.string {
		color: var(--color-prettylights-syntax-string);
	}
	.token.color,
	.token.atrule,
	.token.attr-value,
	.token.function,
	.token.class-name {
		color: var(--color-prettylights-syntax-string);
	}
	.token.rule,
	.token.regex,
	.token.important,
	.token.keyword {
		color: var(--color-prettylights-syntax-keyword);
	}
	.token.coord {
		color: var(--color-prettylights-syntax-meta-diff-range);
	}
	.token.important,
	.token.bold {
		font-weight: bold;
	}
	.token.italic {
		font-style: italic;
	}
	.token.entity {
		cursor: help;
	}
}
