.md-editor {
	--md-border: var(--color-border); 
	--md-accent: var(--color-primary-base);
	--md-bg: var(--color-content);
	--md-fg: var(--color-elevated);
	--md-muted: var(--color-text-light);
	--md-radius: var(--radius-sm);
	border: 1px solid var(--md-border); 
	border-radius: var(--md-radius);
	background: var(--md-bg); 
	color: var(--color-text-base); 
	font: 16px/1.55 system-ui, sans-serif; 
}
.md-editor:focus-within { 
	border-color: var(--md-accent); 
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-accent) 25%, transparent); 
}
.md-toolbar { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 4px; 
	align-items: center; 
	padding: 6px; 
	border-bottom: 1px solid var(--md-border); 
	background-color: var(--md-fg);
	border-top-left-radius: var(--md-radius);
	border-top-right-radius: var(--md-radius);
}
.md-toolbar button, 
.md-toolbar select { 
	font: inherit; 
	font-size: 14px; 
	min-width: 2rem; 
	max-width: 10rem;
	height: 2rem; 
	padding: 0 .5rem; 
	border: 1px solid transparent; 
	border-radius: 6px; 
	background: transparent; 
	color: inherit; 
	cursor: pointer; 
}
.md-toolbar select {
    appearance: auto;
    -webkit-appearance: auto;
}
.md-toolbar button:hover:not(:disabled), 
.md-toolbar select:hover { 
	background: color-mix(in srgb, var(--md-fg) 8%, transparent); 
}
.md-toolbar button.active { 
	background: color-mix(in srgb, var(--md-accent) 18%, transparent); 
	border-color: var(--md-accent); 
}
.md-toolbar button:disabled { 
	opacity: .35; cursor: default; 
}
.md-toolbar .md-b { 
	font-weight: 700; 
} 
.md-toolbar .md-i { 
	font-style: italic; 
} 
.md-toolbar .md-u { 
	text-decoration: underline; 
} 
.md-toolbar .md-s { 
	text-decoration: line-through; 
}
.md-sep { 
	width: 1px; 
	height: 1.4rem; 
	background: var(--md-border); 
	margin: 0 4px; 
}
.md-linkbar { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 6px; 
	align-items: center; 
	padding: 6px; 
	border-bottom: 1px solid var(--md-border); 
	background: color-mix(in srgb, var(--md-fg) 4%, transparent); 
}
.md-linkbar[hidden] { 
	display: none; 
}
.md-linkbar input { 
	flex: 1 1 14rem; 
	font: inherit; 
	padding: 4px 8px; 
	border: 1px solid var(--md-border); 
	border-radius: 6px; 
}
.md-linkmsg { 
	color: #b3261e; 
	font-size: 14px; 
}
.md-iconbar { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 6px; 
	padding: 8px; 
	border-bottom: 1px solid var(--md-border); 
	background: color-mix(in srgb, var(--md-fg) 4%, transparent); 
	max-height: 12rem; 
	overflow: auto; 
}
.md-iconbar[hidden] { 
	display: none; 
}
.md-iconbar button { 
	display: inline-flex; 
	flex-direction: column; 
	align-items: center; 
	gap: 2px; 
	min-width: 4.2rem; 
	padding: 6px 8px; 
	font: inherit; 
	font-size: 12px; 
	color: inherit; 
	background: var(--md-bg); 
	border: 1px solid var(--md-border); 
	border-radius: 6px; 
	cursor: pointer; 
}
.md-iconbar button:hover, 
.md-iconbar button:focus-visible { 
	border-color: var(--md-accent); 
}
/* your own icon CSS draws the icon; this only keeps an unstyled one clickable */
.md-iconbar icon { 
	min-width: 1.2em; 
	min-height: 1.2em; 
}
.md-imagebar { 
	max-height: 15rem; 
}
.md-imagebar button { 
	min-width: 0; 
	padding: 4px; 
}
.md-imagebar img { 
	display: block; 
	width: 5.5rem; 
	height: 4rem; 
	object-fit: cover; 
	border-radius: 4px; 
}
.md-icon-name { 
	color: var(--md-muted); 
	max-width: 6rem; 
	overflow: hidden; 
	text-overflow: ellipsis; 
	white-space: nowrap; 
}
.md-surface { 
	min-height: 9rem; 
	padding: .75rem 1rem; 
	outline: none; 
	overflow-wrap: anywhere; 
	cursor: text; 
}
.md-surface[data-empty] .md-leaf:first-child::before { 
	content: var(--md-placeholder); 
	color: var(--md-muted); 
	position: absolute; 
	pointer-events: none; 
}
.md-count { 
	text-align: right; 
	font-size: 12px; 
	color: var(--md-muted); 
	padding: 0 .75rem .4rem; 
}
.md-count.over { 
	color: #b3261e; 
	font-weight: 600; 
}
.md-leaf { 
	position: relative; 
	margin: 0 0 .6em; 
	white-space: pre-wrap; 
}
.md-leaf[data-kind=h] { 
	font-weight: 700; 
	line-height: 1.25;
	margin-top: .9em; 
}
.md-leaf[data-level="1"] { 
	font-size: 1.5em; 
} 
.md-leaf[data-level="2"] { 
	font-size: 1.25em; 
} 
.md-leaf[data-level="3"] { 
	font-size: 1.1em; 
}
.md-leaf[data-kind=code] { 
	font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; 
	background: color-mix(in srgb, var(--md-fg) 7%, transparent); 
	padding: .5rem .75rem; 
	border-radius: 6px; 
}
.md-leaf[data-kind=hr] { 
	margin: .8em 0; 
	user-select: none; 
}
.md-leaf[data-kind=hr] hr { 
	border: 0; 
	border-top: 2px solid var(--md-border); 
	margin: 0; 
}
.md-leaf[data-q] { 
	border-left: 3px solid var(--md-border); 
	padding-left: .9rem; 
	margin-left: .1rem; 
}
.md-leaf[data-q="2"] { 
	margin-left: 1rem; 
}
.md-leaf[data-d] { 
	padding-left: calc(1.8rem * var(--d, 1)); 
}
.md-leaf[data-d="1"] { 
	--d: 1; 
} 
.md-leaf[data-d="2"] { 
	--d: 2; 
} 
.md-leaf[data-d="3"] { 
	--d: 3; 
}
.md-leaf[data-q][data-d] { 
	padding-left: calc(.9rem + 1.8rem * var(--d, 1)); 
}
.md-leaf[data-d]::before { 
	content: attr(data-marker); 
	position: absolute; 
	left: calc(1.8rem * (var(--d, 1) - 1)); 
	width: 1.6rem; 
	text-align: right; 
	color: var(--md-muted); 
	user-select: none; 
}
.md-leaf[data-q][data-d]::before { 
	left: calc(.9rem + 1.8rem * (var(--d, 1) - 1)); 
}
.md-surface code { 
	font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; 
	background: color-mix(in srgb, var(--md-fg) 9%, transparent); 
	padding: 0 .25em; 
	border-radius: 4px; 
}
.md-surface a { 
	color: var(--md-accent); 
	text-decoration: underline; 
	cursor: text; 
}
.md-img { 
	display: inline-block; 
	vertical-align: bottom; 
	user-select: all; 
}
.md-img img { 
	max-width: 100%; 
	max-height: 16rem; 
	border-radius: 4px; 
}
.md-icon { 
	vertical-align: baseline; 
	min-width: .6em; 
}
.md-img-missing { 
	color: var(--md-muted); 
	font-style: italic; 
	border: 1px dashed var(--md-border); 
	padding: 0 .4em; 
	border-radius: 4px; 
}
/* what readers see after the server renders the post */
.md-post p, .md-post ul, .md-post ol, .md-post blockquote, .md-post pre { 
	margin: 0 0 .6em; 
}
.md-post blockquote { 
	border-left: 3px solid var(--md-border, #c9ccd1); 
	padding-left: .9rem; 
	margin-left: .1rem; 
}
.md-post pre { 
	background: rgba(0,0,0,.06); 
	padding: .5rem .75rem; 
	border-radius: 6px; 
	overflow: auto; 
}
.md-post img { 
	max-width: 100%;
	max-height: 16rem; 
}
.md-post .img-unavailable { 
	color: #6b7280; 
	font-style: italic; 
}