﻿/* ==========================================================================
   md-editor-v3 Default Preview Theme & Atom One Dark Highlighting
   Synchronized for Personal Blog SSR Article Detail Pages
   ========================================================================== */

.md-editor-preview,
div.default-theme {
  --md-theme-color: var(--text-primary, #3f4a54);
  --md-theme-color-reverse: #eee;
  --md-theme-color-hover: #eee;
  --md-theme-color-hover-inset: #ddd;
  --md-theme-link-color: var(--accent-color, #2d8cf0);
  --md-theme-link-hover-color: #73d13d;
  --md-theme-border-color: var(--border-color, #e6e6e6);
  --md-theme-border-color-reverse: #bebebe;
  --md-theme-border-color-inset: #d6d6d6;
  --md-theme-bg-color: var(--bg-card, #fff);
  --md-theme-bg-color-inset: #ececec;
  --md-theme-code-copy-tips-color: inherit;
  --md-theme-code-copy-tips-bg-color: #fff;
  --md-theme-code-active-color: #61aeee;
  --md-theme-radius-s: 4px;
  --md-theme-radius-m: 8px;
  --md-theme-code-inline-color: #3594f7;
  --md-theme-code-inline-bg-color: rgba(59, 170, 250, 0.1);
  --md-theme-code-inline-radius: 4px;
  --md-theme-code-block-color: #abb2bf;
  --md-theme-code-block-bg-color: #282c34;
  --md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);
  --md-theme-code-block-radius: 8px;
  --md-theme-code-line-number-color: #999;
  --md-theme-code-line-number-gap: 0.5em;
  --md-theme-code-line-highlight-bg-color: rgba(59, 170, 250, 0.14);
  font-family: inherit;
  line-height: 1.8;
  word-break: break-word;
}

[data-theme=dark] .md-editor-preview,
[data-theme=dark] div.default-theme {
  --md-theme-color: var(--text-primary, #e5e5e5);
  --md-theme-color-reverse: #222;
  --md-theme-color-hover: #191919;
  --md-theme-color-hover-inset: #444;
  --md-theme-link-color: var(--accent-color, #38bdf8);
  --md-theme-link-hover-color: #73d13d;
  --md-theme-border-color: var(--border-color, #262626);
  --md-theme-border-color-reverse: #e6e6e6;
  --md-theme-border-color-inset: #5a5a5a;
  --md-theme-bg-color: var(--bg-card, #141414);
  --md-theme-bg-color-inset: #111;
  --md-theme-code-copy-tips-color: inherit;
  --md-theme-code-copy-tips-bg-color: #3a3a3a;
  --md-theme-code-active-color: #e6c07b;
  --md-theme-radius-s: 4px;
  --md-theme-radius-m: 8px;
  --md-theme-code-inline-color: #38bdf8;
  --md-theme-code-inline-bg-color: rgba(56, 189, 248, 0.15);
  --md-theme-code-inline-radius: 4px;
  --md-theme-code-block-color: #abb2bf;
  --md-theme-code-block-bg-color: #1a1a1a;
  --md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);
  --md-theme-code-block-radius: 8px;
  --md-theme-code-line-number-color: #999;
  --md-theme-code-line-number-gap: 0.5em;
  --md-theme-code-line-highlight-bg-color: rgba(56, 189, 248, 0.18);
}

/* ==========================================================================
   md-editor-v3 Code Block Container, Mac Header & Atom One Dark Highlighting
   ========================================================================== */

.md-editor-preview .md-editor-code,
.markdown-body .md-editor-code {
  color: var(--md-theme-code-block-color, #abb2bf);
  background-color: var(--md-theme-code-block-bg-color, #1a1a1a);
  border: 1px solid var(--md-theme-border-color, #2d2d2d);
  border-radius: var(--md-theme-code-block-radius, 8px);
  margin: 1.5em 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-size: 14px;
}

/* Header bar */
.md-editor-preview .md-editor-code .md-editor-code-head,
.markdown-body .md-editor-code .md-editor-code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  width: 100%;
  font-size: 13px;
  background-color: var(--md-theme-code-before-bg-color, #1a1a1a);
  margin: 0;
  padding: 0 14px;
  border-radius: var(--md-theme-code-block-radius, 8px) var(--md-theme-code-block-radius, 8px) 0 0;
  list-style: none;
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Remove default summary marker in Chrome / Safari / Firefox */
.md-editor-code .md-editor-code-head::-webkit-details-marker {
  display: none;
}
.md-editor-code .md-editor-code-head::marker {
  display: none;
  content: "";
}
.md-editor-code .md-editor-code-head:focus {
  outline: none;
}

/* Three dots (Mac style flag) */
.md-editor-code .md-editor-code-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.md-editor-code .md-editor-code-flag span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.md-editor-code .md-editor-code-flag span:nth-of-type(1) {
  background-color: #ec6a5e;
}
.md-editor-code .md-editor-code-flag span:nth-of-type(2) {
  background-color: #f4bf4f;
}
.md-editor-code .md-editor-code-flag span:nth-of-type(3) {
  background-color: #61c554;
}

/* Action section on the right */
.md-editor-code .md-editor-code-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #abb2bf;
}
.md-editor-code .md-editor-code-lang {
  line-height: 1;
  color: #8fa0b5;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.md-editor-code .md-editor-copy-button {
  cursor: pointer;
  line-height: 1;
  color: #abb2bf;
  user-select: none;
  font-size: 12px;
  transition: color 0.2s ease;
}
.md-editor-code .md-editor-copy-button:hover {
  color: #ffffff;
}
.md-editor-code .md-editor-collapse-tips {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fa0b5;
  transition: color 0.2s ease;
}
.md-editor-code .md-editor-collapse-tips:hover {
  color: #ffffff;
}
.md-editor-code .md-editor-collapse-tips .md-editor-icon {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}

/* Open/closed toggle states */
details.md-editor-code:not([open]) .md-editor-code-head .md-editor-collapse-tips .md-editor-icon {
  transform: rotate(-90deg);
}
details.md-editor-code:not([open]) .md-editor-code-head {
  border-radius: var(--md-theme-code-block-radius, 8px);
}

/* Pre & Code inside md-editor-code */
.md-editor-preview .md-editor-code pre,
.markdown-body .md-editor-code pre,
.markdown-body pre.md-editor-code-pre {
  margin: 0 !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 16px 16px 16px !important;
  overflow-x: auto;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}
.md-editor-preview .md-editor-code pre code,
.markdown-body .md-editor-code pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background-color: transparent !important;
  color: var(--md-theme-code-block-color, #abb2bf);
  padding: 0 !important;
  border: none !important;
  display: block;
}

/* Line numbers & layout */
.md-editor-code pre code:has(.md-editor-code-line) {
  white-space: normal;
}
.md-editor-code .md-editor-code-block-lines {
  display: block;
}
.md-editor-code .md-editor-code-line {
  display: grid;
  grid-template-columns: var(--md-code-line-number-width, 2.5ch) minmax(0, 1fr);
  column-gap: var(--md-theme-code-line-number-gap, 0.75em);
  align-items: start;
  min-height: 1.6em;
}
.md-editor-code .md-editor-code-line:not(:has(>[rn-wrapper])) {
  grid-template-columns: minmax(0, 1fr);
}
.md-editor-code .md-editor-code-line > [rn-wrapper],
.md-editor-scrn pre code .md-editor-code-line > [rn-wrapper] {
  display: inline-flex;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--md-theme-code-line-number-color, #636e7b);
  pointer-events: none;
  user-select: none;
  white-space: normal;
}
.md-editor-code .md-editor-code-line > [rn-wrapper]::before,
.md-editor-scrn pre code .md-editor-code-line > [rn-wrapper]::before {
  color: inherit;
  content: attr(data-line-number);
}
.md-editor-code .md-editor-code-line-content {
  min-width: 0;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

/* Atom One Dark Syntax Highlight Palette */
.hljs {
  color: #abb2bf;
  background: transparent;
}
.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}
.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #c678dd;
}
.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e06c75;
}
.hljs-literal {
  color: #56b6c2;
}
.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #98c379;
}
.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #d19a66;
}
.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #61aeee;
}
.hljs-built_in,
.hljs-title.class_,
.hljs-class .hljs-title {
  color: #e6c07b;
}
.hljs-title.function_ {
  color: #61aeee;
}
.hljs-variable.language_ {
  color: #e6c07b;
}
.hljs-params {
  color: #abb2bf;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: bold;
}
.hljs-link {
  text-decoration: underline;
}

/* Base typography refinements */
.md-editor-preview p {
  margin: 1em 0;
  line-height: 1.8;
}

.md-editor-preview img {
  border-radius: var(--md-theme-radius-m, 8px);
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  display: block;
}

.md-editor .md-editor-preview{--md-theme-color: var(--md-color);--md-theme-color-reverse: #eee;--md-theme-color-hover: #eee;--md-theme-color-hover-inset: #ddd;--md-theme-link-color: #2d8cf0;--md-theme-link-hover-color: #73d13d;--md-theme-border-color: #e6e6e6;--md-theme-border-color-reverse: #bebebe;--md-theme-border-color-inset: #d6d6d6;--md-theme-bg-color: #fff;--md-theme-bg-color-inset: #ececec;--md-theme-code-copy-tips-color: inherit;--md-theme-code-copy-tips-bg-color: #fff;--md-theme-code-active-color: #61aeee;--md-theme-radius-s: 2px;--md-theme-radius-m: 5px}.md-editor[data-theme=dark] .md-editor-preview{--md-theme-color: var(--md-color);--md-theme-color-reverse: #222;--md-theme-color-hover: #191919;--md-theme-color-hover-inset: #444;--md-theme-link-color: #2d8cf0;--md-theme-link-hover-color: #73d13d;--md-theme-border-color: #2d2d2d;--md-theme-border-color-reverse: #e6e6e6;--md-theme-border-color-inset: #5a5a5a;--md-theme-bg-color: #000;--md-theme-bg-color-inset: #111;--md-theme-code-copy-tips-color: inherit;--md-theme-code-copy-tips-bg-color: #3a3a3a;--md-theme-code-active-color: #e6c07b;--md-theme-radius-s: 2px;--md-theme-radius-m: 5px}.md-editor .md-editor-admonition-note{--md-admonition-color: #212121;--md-admonition-bg-color: #FFFFFF;--md-admonition-border-color: rgb(166.2, 166.2, 166.2)}.md-editor .md-editor-admonition-tip{--md-admonition-color: #616161;--md-admonition-bg-color: #F5F5F5;--md-admonition-border-color: rgb(185.8, 185.8, 185.8)}.md-editor .md-editor-admonition-info{--md-admonition-color: #424242;--md-admonition-bg-color: #F0F0F0;--md-admonition-border-color: rgb(170.4, 170.4, 170.4)}.md-editor .md-editor-admonition-quote{--md-admonition-color: #455a64;--md-admonition-bg-color: #eceff1;--md-admonition-border-color: rgb(169.2, 179.4, 184.6)}.md-editor .md-editor-admonition-abstract{--md-admonition-color: #0288d1;--md-admonition-bg-color: #e1f5fe;--md-admonition-border-color: rgb(135.8, 201.4, 236)}.md-editor .md-editor-admonition-attention{--md-admonition-color: #1e88e5;--md-admonition-bg-color: #e3f2fd;--md-admonition-border-color: rgb(148.2, 199.6, 243.4)}.md-editor .md-editor-admonition-example{--md-admonition-color: #5e35b1;--md-admonition-bg-color: #ede7f6;--md-admonition-border-color: rgb(179.8, 159.8, 218.4)}.md-editor .md-editor-admonition-hint{--md-admonition-color: #00897B;--md-admonition-bg-color: #E0F2F1;--md-admonition-border-color: rgb(134.4, 200, 193.8)}.md-editor .md-editor-admonition-success{--md-admonition-color: #388e3c;--md-admonition-bg-color: #e8f5e9;--md-admonition-border-color: rgb(161.6, 203.8, 163.8)}.md-editor .md-editor-admonition-question{--md-admonition-color: #f9a825;--md-admonition-bg-color: #fffde7;--md-admonition-border-color: rgb(252.6, 219, 153.4)}.md-editor .md-editor-admonition-caution{--md-admonition-color: #fb8c00;--md-admonition-bg-color: #fff8e1;--md-admonition-border-color: rgb(253.4, 204.8, 135)}.md-editor .md-editor-admonition-warning{--md-admonition-color: #f57c00;--md-admonition-bg-color: #fff3e0;--md-admonition-border-color: rgb(251, 195.4, 134.4)}.md-editor .md-editor-admonition-danger{--md-admonition-color: #d84315;--md-admonition-bg-color: #ffebee;--md-admonition-border-color: rgb(239.4, 167.8, 151.2)}.md-editor .md-editor-admonition-failure{--md-admonition-color: #d32f2f;--md-admonition-bg-color: #fee2e6;--md-admonition-border-color: rgb(236.8, 154.4, 156.8)}.md-editor .md-editor-admonition-bug{--md-admonition-color: #c31a1a;--md-admonition-bg-color: #fddadd;--md-admonition-border-color: rgb(229.8, 141.2, 143)}.md-editor .md-editor-admonition-error{--md-admonition-color: #b71c1c;--md-admonition-bg-color: #fdd2d6;--md-admonition-border-color: rgb(225, 137.2, 139.6)}.md-editor[data-theme=dark] .md-editor-admonition-note{--md-admonition-color: #E0E0E0;--md-admonition-bg-color: #1E1E1E;--md-admonition-border-color: rgb(107.6, 107.6, 107.6)}.md-editor[data-theme=dark] .md-editor-admonition-tip{--md-admonition-color: #B0B0B0;--md-admonition-bg-color: #262626;--md-admonition-border-color: rgb(93.2, 93.2, 93.2)}.md-editor[data-theme=dark] .md-editor-admonition-info{--md-admonition-color: #B3B3B3;--md-admonition-bg-color: #2B2B2B;--md-admonition-border-color: rgb(97.4, 97.4, 97.4)}.md-editor[data-theme=dark] .md-editor-admonition-quote{--md-admonition-color: #b0bec5;--md-admonition-bg-color: #263238;--md-admonition-border-color: rgb(93.2, 106, 112.4)}.md-editor[data-theme=dark] .md-editor-admonition-abstract{--md-admonition-color: #81d4fa;--md-admonition-bg-color: #012f45;--md-admonition-border-color: rgb(52.2, 113, 141.4)}.md-editor[data-theme=dark] .md-editor-admonition-attention{--md-admonition-color: #64b5f6;--md-admonition-bg-color: #102a4c;--md-admonition-border-color: rgb(49.6, 97.6, 144)}.md-editor[data-theme=dark] .md-editor-admonition-example{--md-admonition-color: #9575cd;--md-admonition-bg-color: #271b52;--md-admonition-border-color: rgb(83, 63, 131.2)}.md-editor[data-theme=dark] .md-editor-admonition-hint{--md-admonition-color: #4DB6AC;--md-admonition-bg-color: #003D3A;--md-admonition-border-color: rgb(30.8, 109.4, 103.6)}.md-editor[data-theme=dark] .md-editor-admonition-success{--md-admonition-color: #81c784;--md-admonition-bg-color: #1b5e20;--md-admonition-border-color: rgb(67.8, 136, 72)}.md-editor[data-theme=dark] .md-editor-admonition-question{--md-admonition-color: #ffd54f;--md-admonition-bg-color: #3e2f00;--md-admonition-border-color: rgb(139.2, 113.4, 31.6)}.md-editor[data-theme=dark] .md-editor-admonition-caution{--md-admonition-color: #ffcc80;--md-admonition-bg-color: #3e2600;--md-admonition-border-color: rgb(139.2, 104.4, 51.2)}.md-editor[data-theme=dark] .md-editor-admonition-warning{--md-admonition-color: #ffb74d;--md-admonition-bg-color: #3d2600;--md-admonition-border-color: rgb(138.6, 96, 30.8)}.md-editor[data-theme=dark] .md-editor-admonition-danger{--md-admonition-color: #ef9a9a;--md-admonition-bg-color: #3c0000;--md-admonition-border-color: rgb(131.6, 61.6, 61.6)}.md-editor[data-theme=dark] .md-editor-admonition-failure{--md-admonition-color: #ef9a9a;--md-admonition-bg-color: #3c0900;--md-admonition-border-color: rgb(131.6, 67, 61.6)}.md-editor[data-theme=dark] .md-editor-admonition-bug{--md-admonition-color: #e68381;--md-admonition-bg-color: #300000;--md-admonition-border-color: rgb(120.8, 52.4, 51.6)}.md-editor[data-theme=dark] .md-editor-admonition-error{--md-admonition-color: #ef5350;--md-admonition-bg-color: #300000;--md-admonition-border-color: rgb(124.4, 33.2, 32)}.md-editor-preview .md-editor-admonition{background-color:var(--md-admonition-bg-color);border:1px solid var(--md-admonition-border-color);border-radius:var(--md-theme-radius-m);color:var(--md-admonition-color);display:flow-root;font-size:14px;font-weight:400;margin:1rem 0;padding:1em 1em .5em;page-break-inside:avoid}.md-editor-preview .md-editor-admonition-title{margin:0;padding:0;position:relative;font-weight:700}.md-editor-preview .md-editor-admonition p{margin:.5em 0;padding:0}.md-editor-preview .md-editor-admonition p:first-of-type{margin-block-start:0}.md-editor-preview .md-editor-admonition+p:empty,.md-editor-preview .md-editor-admonition+p:empty+p:empty{display:none}.md-editor-preview .md-editor-mermaid{overflow:hidden;line-height:normal}.md-editor-preview .md-editor-mermaid p{line-height:normal}.md-editor-preview .md-editor-mermaid:not([data-processed]){white-space:pre}.md-editor-preview [class=md-editor-mermaid][data-grab]{cursor:grab}.md-editor-preview [class=md-editor-mermaid][data-grab]:active{cursor:grabbing}.md-editor-preview [class=md-editor-mermaid][data-processed]{position:relative;display:flex;justify-content:center;align-items:center}.md-editor-preview [class=md-editor-mermaid][data-processed] svg{transform-origin:top left}.md-editor-preview [class=md-editor-mermaid][data-processed] .md-editor-mermaid-action{position:absolute;inset-block-start:10px;inset-inline-end:10px;z-index:1;opacity:0;transition:opacity .3s;cursor:pointer;display:flex;gap:8px}.md-editor-preview [class=md-editor-mermaid][data-processed] .md-editor-mermaid-action svg{padding:6px;border-radius:4px;background-color:var(--md-bk-color-outstand)}.md-editor-preview [class=md-editor-mermaid][data-processed]:hover .md-editor-mermaid-action{opacity:1}.md-editor-katex-block{text-align:center;margin:20px}.md-editor-katex-inline,.md-editor-katex-block{display:none;direction:ltr}.md-editor-katex-inline[data-processed]{display:initial}.md-editor-katex-block[data-processed]{display:block}.md-editor .md-editor-preview{--md-theme-code-inline-color: #3594f7;--md-theme-code-inline-bg-color: rgba(59, 170, 250, 0.1);--md-theme-code-inline-radius: var(--md-theme-radius-s);--md-theme-code-block-color: #a9b7c6;--md-theme-code-block-bg-color: #282c34;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: var(--md-theme-radius-m);--md-theme-code-line-number-color: #999;--md-theme-code-line-number-gap: 0.5em;--md-theme-code-line-highlight-bg-color: rgba(59, 170, 250, 0.14)}.md-editor[data-theme=dark] .md-editor-preview{--md-theme-code-inline-color: #3594f7;--md-theme-code-inline-bg-color: rgba(59, 170, 250, 0.1);--md-theme-code-inline-radius: var(--md-theme-radius-s);--md-theme-code-block-color: #a9b7c6;--md-theme-code-block-bg-color: #1a1a1a;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: var(--md-theme-radius-m);--md-theme-code-line-number-color: #999;--md-theme-code-line-number-gap: 0.5em;--md-theme-code-line-highlight-bg-color: rgba(59, 170, 250, 0.18)}.md-editor-preview code{direction:ltr;color:var(--md-theme-code-inline-color);background-color:var(--md-theme-code-inline-bg-color);border-radius:var(--md-theme-code-inline-radius);padding:2px 4px;line-height:22px}.md-editor-preview .md-editor-code{color:var(--md-theme-code-block-color);font-size:12px;line-height:1;margin:20px 0;position:relative}.md-editor-preview .md-editor-code input[type=radio],.md-editor-preview .md-editor-code input[type=radio]+pre,.md-editor-preview .md-editor-code input[type=radio]+span.md-editor-code-lang{display:none}.md-editor-preview .md-editor-code input:checked+pre,.md-editor-preview .md-editor-code input:checked+span.md-editor-code-lang{display:block}.md-editor-preview .md-editor-code input:checked+label{border-block-end:1px solid;color:var(--md-theme-code-active-color)}.md-editor-preview .md-editor-code .md-editor-code-head{display:grid;grid-template:"1fr 1fr";justify-content:space-between;height:32px;width:100%;font-size:12px;background-color:var(--md-theme-code-before-bg-color);margin-block-end:0;border-start-start-radius:var(--md-theme-code-block-radius);border-start-end-radius:var(--md-theme-code-block-radius);-webkit-tap-highlight-color:rgba(0,0,0,0);list-style:none;position:sticky;top:0;z-index:10000}.md-editor-preview .md-editor-code .md-editor-code-head::-webkit-details-marker{display:none}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag{margin-inline-start:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span{display:inline-block;width:10px;height:10px;border-radius:50%;margin-block-start:11px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(1){background-color:#ec6a5e}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(2){background-color:#f4bf4f}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(3){background-color:#61c554}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span+span{margin-inline-start:4px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label{box-sizing:border-box;white-space:nowrap;user-select:none;background-color:var(--md-theme-code-block-bg-color);margin-block-start:8px;padding:0}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li{line-height:1;list-style:none;display:inline-block;position:relative;vertical-align:super;margin:0}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li label{cursor:pointer;user-select:none;display:inline-block;font-size:14px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li+li{margin-inline-start:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-action{display:flex;align-items:center}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-action>*{margin-inline-end:10px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-lang{line-height:32px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button:not(data-is-icon){cursor:pointer;line-height:32px;position:initial}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button:not(data-is-icon) .md-editor-icon{width:15px;height:15px;display:inline-block;vertical-align:sub}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]{cursor:pointer;line-height:1;position:relative}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon] .md-editor-icon{width:15px;height:15px;display:inline-block;vertical-align:sub}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]::before{content:attr(data-tips);color:var(--md-theme-code-copy-tips-color);background-color:var(--md-theme-code-copy-tips-bg-color);position:absolute;font-size:12px;font-family:sans-serif;width:max-content;text-align:center;padding:4px;border-radius:var(--md-theme-radius-s);box-shadow:0 0 2px rgba(0,0,0,.2);inset-inline-start:-10px;inset-block-start:50%;transform:translate(-100%, -50%)}[dir=rtl] .md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]::before{transform:translate(100%, -50%)}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]::after{content:"";color:var(--md-theme-code-copy-tips-bg-color);position:absolute;width:0;height:0;border:5px solid rgba(0,0,0,0);border-inline-end-width:0;border-inline-start-color:currentColor;inset-inline-start:-10px;inset-block-start:50%;transform:translate(0, -50%);filter:drop-shadow(4px 0 2px rgba(0, 0, 0, 0.2))}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]::before,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]::after{visibility:hidden;transition:.3s}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:hover::before,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:hover::after{visibility:visible}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips{margin-inline-end:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{width:16px;height:16px;font-size:16px;display:inline-block;vertical-align:sub;transition:transform .1s;transform:rotate(0)}[dir=rtl] .md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,[dir=rtl] .md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{transform:rotate(180deg)}.md-editor-preview .md-editor-code pre{position:relative;margin:0}.md-editor-preview .md-editor-code pre code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14px;color:var(--md-theme-code-block-color);background-color:var(--md-theme-code-before-bg-color);display:block;line-height:1.6;overflow:auto;padding:1em;position:relative;border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:var(--md-theme-code-block-radius);border-end-end-radius:var(--md-theme-code-block-radius)}.md-editor-preview .md-editor-code pre code:has(.md-editor-code-line){white-space:normal}.md-editor-preview .md-editor-code pre code .md-editor-code-line{display:grid;grid-template-columns:var(--md-code-line-number-width) minmax(0, 1fr);column-gap:var(--md-theme-code-line-number-gap);align-items:start;min-height:1.6em}.md-editor-preview .md-editor-code pre code .md-editor-code-line:not(:has(>[rn-wrapper])){grid-template-columns:minmax(0, 1fr)}.md-editor-preview .md-editor-code pre code .md-editor-code-line.md-editor-code-line-highlight,.md-editor-preview .md-editor-code pre code .md-editor-code-line.highlighted-line{background-color:var(--md-theme-code-line-highlight-bg-color)}.md-editor-preview .md-editor-code pre code .md-editor-code-line-content{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.md-editor-preview details.md-editor-code .md-editor-code-head{cursor:pointer}.md-editor-preview details.md-editor-code:not(open) .md-editor-code-head{border-end-start-radius:var(--md-theme-code-block-radius);border-end-end-radius:var(--md-theme-code-block-radius)}.md-editor-preview details.md-editor-code[open] .md-editor-code-head{border-end-start-radius:0;border-end-end-radius:0}.md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,.md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{transform:rotate(-90deg)}[dir=rtl] .md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,[dir=rtl] .md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{transform:rotate(270deg)}.md-editor-scrn pre code .md-editor-code-line>[rn-wrapper]{display:inline-flex;justify-content:flex-end;align-items:flex-start;color:var(--md-theme-code-line-number-color);pointer-events:none;user-select:none;white-space:normal}.md-editor-scrn pre code .md-editor-code-line>[rn-wrapper]::before{color:inherit;content:attr(data-line-number)}.md-editor-preview figure{margin:0 0 1em 0;display:inline-flex;flex-direction:column;text-align:center}.md-editor-preview figure figcaption{color:var(--md-theme-color);font-size:.875em;margin-block-start:5px}.md-editor .md-editor-preview{--md-theme-heading-color: var(--md-theme-color);--md-theme-heading-border: none;--md-theme-heading-1-color: var(--md-theme-heading-color);--md-theme-heading-1-border: var(--md-theme-heading-border);--md-theme-heading-2-color: var(--md-theme-heading-color);--md-theme-heading-2-border: var(--md-theme-heading-border);--md-theme-heading-3-color: var(--md-theme-heading-color);--md-theme-heading-3-border: var(--md-theme-heading-border);--md-theme-heading-4-color: var(--md-theme-heading-color);--md-theme-heading-4-border: var(--md-theme-heading-border);--md-theme-heading-5-color: var(--md-theme-heading-color);--md-theme-heading-5-border: var(--md-theme-heading-border);--md-theme-heading-6-color: var(--md-theme-heading-color);--md-theme-heading-6-border: var(--md-theme-heading-border)}.md-editor-preview h1,.md-editor-preview h2,.md-editor-preview h3,.md-editor-preview h4,.md-editor-preview h5,.md-editor-preview h6{position:relative;word-break:break-all;margin:1.4em 0 .8em 0;font-weight:bold}.md-editor-preview h1 a,.md-editor-preview h2 a,.md-editor-preview h3 a,.md-editor-preview h4 a,.md-editor-preview h5 a,.md-editor-preview h6 a{color:inherit}.md-editor-preview h1 a:hover,.md-editor-preview h2 a:hover,.md-editor-preview h3 a:hover,.md-editor-preview h4 a:hover,.md-editor-preview h5 a:hover,.md-editor-preview h6 a:hover{color:inherit}.md-editor-preview h1{color:var(--md-theme-heading-1-color);border-block-end:var(--md-theme-heading-1-border)}.md-editor-preview h2{color:var(--md-theme-heading-2-color);border-block-end:var(--md-theme-heading-2-border)}.md-editor-preview h3{color:var(--md-theme-heading-3-color);border-block-end:var(--md-theme-heading-3-border)}.md-editor-preview h4{color:var(--md-theme-heading-4-color);border-block-end:var(--md-theme-heading-4-border)}.md-editor-preview h5{color:var(--md-theme-heading-5-color);border-block-end:var(--md-theme-heading-5-border)}.md-editor-preview h6{color:var(--md-theme-heading-6-color);border-block-end:var(--md-theme-heading-6-border)}.md-editor-preview h1{font-size:2em}.md-editor-preview h2{font-size:1.5em}.md-editor-preview h3{font-size:1.25em}.md-editor-preview h4{font-size:1em}.md-editor-preview h5{font-size:.875em}.md-editor-preview h6{font-size:.85em}.md-editor-preview hr{height:1px;margin:10px 0;border:none;border-block-start:1px solid var(--md-theme-border-color)}.md-editor-preview a{color:var(--md-theme-link-color);text-decoration:none;transition:color .1s}.md-editor-preview a:hover{color:var(--md-theme-link-hover-color)}.md-editor-preview a:empty::before{content:attr(href)}.md-editor-preview ol,.md-editor-preview ul{padding-inline-start:2em}.md-editor-preview ol .task-list-item,.md-editor-preview ul .task-list-item{list-style-type:none}.md-editor-preview ol .task-list-item input,.md-editor-preview ul .task-list-item input{margin-inline-start:-1.5em;margin-inline-end:.1em}.md-editor-preview img{max-width:100%}.md-editor-preview p:empty{display:none}.md-editor .md-editor-preview{--md-theme-quote-color: var(--md-theme-color);--md-theme-quote-border: none;--md-theme-quote-bg-color: inherit}.md-editor-preview blockquote{padding:0 1em;color:var(--md-theme-quote-color);border-inline-start:var(--md-theme-quote-border);background-color:var(--md-theme-quote-bg-color)}.md-editor .md-editor-preview{--md-theme-table-stripe-color: #fafafa;--md-theme-table-tr-bg-color: inherit;--md-theme-table-td-border-color: var(--md-theme-border-color)}.md-editor[data-theme=dark] .md-editor-preview{--md-theme-table-stripe-color: #0c0c0c;--md-theme-table-tr-bg-color: inherit;--md-theme-table-td-border-color: var(--md-theme-border-color)}.md-editor-preview table tr{background-color:var(--md-theme-table-tr-bg-color)}.md-editor-preview table tr th,.md-editor-preview table tr td{border:1px solid var(--md-theme-table-td-border-color)}.md-editor-preview table tr:nth-child(2n){background-color:var(--md-theme-table-stripe-color)}.md-editor-preview{color:var(--md-theme-color)}.md-editor-preview ::-webkit-scrollbar{width:6px;height:6px}.md-editor-preview ::-webkit-scrollbar-button:vertical{display:none}.md-editor-preview ::-webkit-scrollbar-corner,.md-editor-preview ::-webkit-scrollbar-track,.md-editor-preview ::-webkit-scrollbar-thumb{border-radius:2px}.md-editor .md-editor-preview ::-webkit-scrollbar-corner,.md-editor .md-editor-preview ::-webkit-scrollbar-track{background-color:#e2e2e2}.md-editor .md-editor-preview ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.3019607843)}.md-editor .md-editor-preview ::-webkit-scrollbar-thumb:vertical:hover{background-color:rgba(0,0,0,.3490196078)}.md-editor .md-editor-preview ::-webkit-scrollbar-thumb:vertical:active{background-color:rgba(0,0,0,.3803921569)}.md-editor[data-theme=dark] .md-editor-preview ::-webkit-scrollbar-corner,.md-editor[data-theme=dark] .md-editor-preview ::-webkit-scrollbar-track{background-color:#0f0f0f}.md-editor[data-theme=dark] .md-editor-preview ::-webkit-scrollbar-thumb{background-color:#2d2d2d}.md-editor[data-theme=dark] .md-editor-preview ::-webkit-scrollbar-thumb:vertical:hover{background-color:#3a3a3a}.md-editor[data-theme=dark] .md-editor-preview ::-webkit-scrollbar-thumb:vertical:active{background-color:#3a3a3a}.md-editor div.default-theme{--md-theme-code-copy-tips-color: #141414}.md-editor[data-theme=dark] div.default-theme{--md-theme-code-copy-tips-color: inherit}div.default-theme img{margin:0 auto;box-sizing:border-box}div.default-theme a{display:inline-flex;line-height:1;border-block-end:none}div.default-theme a:hover{border-block-end:1px solid}div.default-theme a[target=_blank]{align-items:center}div.default-theme a[target=_blank]::after{content:"";display:inline-block;width:16px;height:16px;margin-inline-start:2px;background-color:currentColor;mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-arrow-out-up-right"><path d="M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6"/><path d="m21 3-9 9"/><path d="M15 3h6v6"/></svg>');mask-size:contain;mask-repeat:no-repeat}div.default-theme ol,div.default-theme ul{margin:.6em 0}div.default-theme ol li,div.default-theme ul li{line-height:1.6;margin:.5em 0}div.default-theme p{line-height:1.6;margin:.5rem 0}.md-editor div.default-theme{--md-theme-quote-border: 5px solid #35b378;--md-theme-quote-bg-color: var(--md-theme-bg-color-inset)}div.default-theme blockquote{margin:20px 0;padding:0 1.2em;line-height:2em;display:flow-root}.md-editor default-theme{--md-theme-table-stripe-color: #fafafa}.md-editor[data-theme=dark] default-theme{--md-theme-table-stripe-color: #0c0c0c}div.default-theme table{overflow:auto;border-spacing:0;border-collapse:collapse;margin-block-end:1em;margin-block-start:1em}div.default-theme table tr th,div.default-theme table tr td{word-wrap:break-word;padding:8px 14px}div.default-theme table tbody tr:hover{background-color:var(--md-theme-color-hover)}div.default-theme blockquote table{line-height:initial}div.default-theme blockquote table tr th,div.default-theme blockquote table tr td{border-color:var(--md-theme-border-color-inset)}div.default-theme blockquote table tbody tr:nth-child(n){background-color:inherit}div.default-theme blockquote table tbody tr:hover{background-color:var(--md-theme-color-hover-inset)}
