.markdown-body {
    word-break: break-word;
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    overflow-x: hidden;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    line-height: 1.5;
    margin-top: 2em;
    margin-bottom: 0.5em;
    padding-bottom: 5px;
    font-weight: 700;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
    margin-top: 0;
}

.markdown-body h1 {
    margin-bottom: 5px;
    color: var(--color-gray-900, #111827);
    font-size: 24px;
}

.markdown-body h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
    color: var(--color-gray-850, #18212f);
    font-size: 1.375rem;
    line-height: 1.875rem;
}

.markdown-body h3 {
    padding-bottom: 0;
    color: var(--color-gray-850, #18212f);
    font-size: 20px;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    font-size: 20px;
}

.markdown-body h6 {
    margin-top: 5px;
}

.markdown-body p {
    line-height: inherit;
    margin-top: 1em;
    margin-bottom: 1em;
}

.markdown-body p:first-child {
    margin-top: 0;
}

.markdown-body img {
    max-width: 100%;
}

.markdown-body hr {
    margin-top: 32px;
    margin-bottom: 32px;
    border: none;
    border-top: 1px solid #ddd;
}

.markdown-body a {
    color: #0269c8;
    text-decoration: none;
    border-bottom: 1px solid #d1e9ff;
}

.markdown-body a:active,
.markdown-body a:hover {
    color: #275b8c;
}

.markdown-body code,
.markdown-body pre {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.markdown-body code {
    word-break: break-word;
    border-radius: 2px;
    overflow-x: auto;
    background-color: #fff5f5;
    color: #ff502c;
    font-size: 13px;
    padding: 0.065em 0.4em;
}

.markdown-body pre {
    position: relative;
    overflow: auto;
    line-height: 1.75;
    color: #333;
    background: #f8f8f8;
}

.markdown-body pre.markdown-code-enhanced {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
}

.markdown-body pre textarea,
.markdown-body pre .markdown-code-copy-buffer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: none;
    opacity: 0;
}

.markdown-body .markdown-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f4f4f5;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
    cursor: pointer;
    user-select: none;
}

.markdown-body .markdown-code-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    min-height: 2.25rem;
    border: 0;
    background: transparent;
    color: #d1d5db;
    cursor: inherit;
}

.markdown-body .markdown-code-collapse svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.15s ease;
}

.markdown-body pre.is-collapsed .markdown-code-collapse svg {
    transform: rotate(-90deg);
}

.markdown-body .markdown-code-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 0.875rem;
}

.markdown-body .markdown-code-body {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    min-height: 0;
}

.markdown-body pre.is-collapsed .markdown-code-body {
    display: none;
}

.markdown-body .markdown-code-lines {
    margin: 0;
    min-width: 2.5rem;
    padding: 15px 0.625rem;
    background: #f4f4f5;
    color: #80868b;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.75;
    list-style: none;
    text-align: right;
    user-select: none;
    white-space: nowrap;
}

.markdown-body .markdown-code-lines li {
    margin: 0;
    list-style: none;
}

.markdown-body .markdown-code-scroller {
    min-width: 0;
    overflow-x: auto;
}

.markdown-body pre > code,
.markdown-body pre > code.hljs {
    display: block;
    margin: 0;
    padding: 15px 12px;
    overflow-x: auto;
    word-break: normal;
    background: #f8f8f8;
    color: #333;
    font-size: 13px;
}

.markdown-body .markdown-code-scroller > code,
.markdown-body .markdown-code-scroller > code.hljs {
    display: block;
    margin: 0;
    padding: 15px 12px;
    overflow-x: visible;
    word-break: normal;
    background: #f8f8f8;
    color: #333;
    font-size: 13px;
}

.markdown-body pre .copyTooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    height: 1.75rem;
    min-height: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.markdown-body pre .copyTooltip:hover {
    color: #0767c8;
}

.markdown-body pre .copyTooltip svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.markdown-body pre .copyTooltip span {
    display: inline-block;
}

.markdown-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #f6f6f6;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-indent: initial;
    -webkit-overflow-scrolling: touch;
}

.markdown-body thead {
    background: #f6f6f6;
    color: #000;
    text-align: left;
}

.markdown-body tr:nth-child(2n) {
    background-color: #fcfcfc;
}

.markdown-body td,
.markdown-body th {
    padding: 12px 7px;
    line-height: 24px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.markdown-body td {
    min-width: 120px;
}

.markdown-body blockquote {
    --markdown-quote-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%203a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202%201%201%200%200%201%201%201v1a2%202%200%200%201-2%202%201%201%200%200%200%200%202%204%204%200%200%200%204-4V5a2%202%200%200%200-2-2z'/%3E%3Cpath%20d='M5%203a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202%201%201%200%200%201%201%201v1a2%202%200%200%201-2%202%201%201%200%200%200%200%202%204%204%200%200%200%204-4V5a2%202%200%200%200-2-2z'/%3E%3C/svg%3E");
    position: relative;
    margin: 16px 0;
    padding: 12px;
    border: 0;
    border-left: 3px solid #d1d5db;
    border-radius: 0;
    background-color: #f6f7f9;
    color: var(--color-gray-600, #4b5563);
    font-size: inherit;
    line-height: inherit;
}

.markdown-body blockquote:has(> p):not(:has(> ul)):not(:has(> ol)) {
    padding: 16px 54px;
    border: 0;
    border-radius: 8px;
    background-color: #f6f7f9;
    color: var(--color-gray-600, #4b5563);
    font-size: inherit;
    line-height: inherit;
}

.markdown-body blockquote:has(> p):not(:has(> ul)):not(:has(> ol)):before {
    content: "";
    position: absolute;
    top: 18px;
    left: 20px;
    width: 20px;
    height: 20px;
    background-color: #9ca3af;
    transform: scaleX(-1);
    -webkit-mask: var(--markdown-quote-icon) center / contain no-repeat;
    mask: var(--markdown-quote-icon) center / contain no-repeat;
}

.markdown-body blockquote:has(> p):not(:has(> ul)):not(:has(> ol)):after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 20px;
    height: 20px;
    background-color: #9ca3af;
    -webkit-mask: var(--markdown-quote-icon) center / contain no-repeat;
    mask: var(--markdown-quote-icon) center / contain no-repeat;
}

.markdown-body blockquote > p {
    margin: 0.5em 0;
    font-size: inherit;
    line-height: inherit;
}

.markdown-body blockquote > p:first-child {
    margin-top: 0;
}

.markdown-body blockquote > p:last-child {
    margin-bottom: 0;
}

.markdown-body ol,
.markdown-body ul {
    margin-block: 0.5rem;
    padding-left: 28px;
    list-style: inherit;
}

.markdown-body ol {
    list-style: auto;
}

.markdown-body ol ul {
    padding-left: 14px;
}

.markdown-body ol li,
.markdown-body ul li {
    margin-bottom: 0;
    list-style: inherit;
}

.markdown-body ol ol,
.markdown-body ol ul,
.markdown-body ul ol,
.markdown-body ul ul {
    margin-top: 3px;
}

.markdown-body ol li {
    padding-left: 6px;
}

.markdown-body .contains-task-list {
    padding-left: 0;
}

.markdown-body .task-list-item {
    list-style: none;
}

.markdown-body ol li .task-list-item,
.markdown-body ul li .task-list-item {
    list-style: none;
}

.markdown-body ol li .task-list-item ol,
.markdown-body ol li .task-list-item ul,
.markdown-body ul li .task-list-item ol,
.markdown-body ul li .task-list-item ul {
    margin-top: 0;
}

.article-markdown {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.article-markdown .markdown-body {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-markdown .markdown-body img,
.article-markdown img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.article-markdown .markdown-body .katex-display,
.article-markdown .markdown-body .MathJax_Display,
.article-markdown .markdown-body mjx-container[display="true"] {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-block: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.article-markdown .markdown-body .katex-display > .katex,
.article-markdown .markdown-body mjx-container[display="true"] > svg,
.article-markdown .markdown-body mjx-container[display="true"] > mjx-math {
    display: inline-block;
    max-width: none;
}

.article-markdown .markdown-body iframe,
.article-markdown .markdown-body video {
    display: block;
    width: min(100%, 720px) !important;
    margin-inline: auto !important;
    aspect-ratio: 16 / 9;
}

.article-image-caption {
    margin-top: -0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.hljs-comment,
.hljs-quote {
    color: #998;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
    color: #333;
    font-weight: 700;
}

.hljs-literal,
.hljs-number,
.hljs-tag .hljs-attr,
.hljs-template-variable,
.hljs-variable {
    color: teal;
}

.hljs-doctag,
.hljs-string {
    color: #d14;
}

.hljs-section,
.hljs-selector-id,
.hljs-title {
    color: #900;
    font-weight: 700;
}

.hljs-subst {
    font-weight: 400;
}

.hljs-class .hljs-title,
.hljs-type {
    color: #458;
    font-weight: 700;
}

.hljs-attribute,
.hljs-name,
.hljs-tag {
    color: navy;
    font-weight: 400;
}

.hljs-link,
.hljs-regexp {
    color: #009926;
}

.hljs-bullet,
.hljs-symbol {
    color: #990073;
}

.hljs-built_in,
.hljs-builtin-name {
    color: #0086b3;
}

.hljs-meta {
    color: #999;
    font-weight: 700;
}

.hljs-deletion {
    background: #fdd;
}

.hljs-addition {
    background: #dfd;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: 700;
}

iframe.code-editor-container {
    width: 100%;
    min-height: 432px;
    box-sizing: border-box;
    border: 1px solid rgb(235, 235, 235);
    box-shadow: 0 0 0 0.5px rgba(228, 230, 235, 0.5);
}

.bytemd-fullscreen.bytemd {
    z-index: 10000;
}

.bytemd {
    display: flex;
    flex-direction: column;
}

.bytemd-toolbar-right .bytemd-tippy-right:last-child {
    display: none;
}

.bytemd .bytemd-status-right label {
    margin-bottom: 0;
    font-weight: 400;
}

.bytemd .bytemd-status-right input {
    margin-top: 0;
}

.bytemd .bytemd-editor .CodeMirror-scroll {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
}

.bytemd-preview .markdown-body {
    position: relative;
}
