:root,
html[data-theme="light"] {
  --theme-markdown-text: var(--color-surface-600);
  --theme-markdown-heading: var(--color-surface-900);
  --theme-markdown-muted: var(--color-surface-500);
  --theme-markdown-link: var(--color-brand-600);
  --theme-markdown-link-hover: var(--color-brand-700);
  --theme-markdown-blockquote-border: var(--color-brand-400);
  --theme-markdown-blockquote-background: color-mix(in srgb, var(--color-brand-400) 14%, var(--theme-focus-surface));
  --theme-markdown-blockquote-text: var(--color-surface-700);
  --theme-markdown-inline-code-background: var(--color-surface-200);
  --theme-markdown-inline-code-text: var(--color-code-inline);
  --theme-markdown-code-background: var(--theme-code-surface);
  --theme-markdown-code-text: var(--theme-code-text);
  --theme-markdown-code-border: color-mix(in srgb, var(--color-surface-200) 80%, transparent);
  --theme-markdown-code-copy-background: color-mix(in srgb, var(--theme-surface-card) 88%, transparent);
  --theme-markdown-code-copy-background-hover: color-mix(in srgb, var(--color-brand-500) 12%, var(--theme-surface-card));
  --theme-markdown-code-copy-border: color-mix(in srgb, var(--color-surface-300) 72%, transparent);
  --theme-markdown-code-copy-text: var(--color-surface-600);
  --theme-markdown-code-copy-success: var(--theme-success-text);
  --theme-markdown-code-copy-error: var(--theme-danger-text);
  --theme-markdown-image-preview-background: rgba(15, 23, 42, 0.72);
  --theme-markdown-image-preview-panel: rgba(255, 255, 255, 0.92);
  --theme-markdown-image-preview-text: var(--color-surface-700);
  --theme-markdown-image-recovery-background: color-mix(in srgb, var(--theme-surface-card) 88%, transparent);
  --theme-markdown-image-recovery-border: color-mix(in srgb, var(--color-surface-300) 72%, transparent);
  --theme-markdown-image-recovery-text: var(--color-surface-700);
  --theme-markdown-image-recovery-button-background: color-mix(in srgb, var(--color-brand-500) 12%, var(--theme-surface-card));
  --theme-markdown-image-recovery-button-text: var(--color-brand-700);
  --theme-markdown-mermaid-background: color-mix(in srgb, var(--theme-surface-card) 96%, var(--color-brand-400) 4%);
  --theme-markdown-mermaid-border: color-mix(in srgb, var(--color-brand-400) 24%, var(--theme-markdown-code-border));
  --theme-markdown-mermaid-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --theme-markdown-mermaid-glow: color-mix(in srgb, var(--color-brand-400) 10%, transparent);
  --theme-markdown-mermaid-scroll-hint-background: color-mix(in srgb, var(--theme-surface-card) 90%, transparent);
  --theme-markdown-mermaid-scroll-hint-text: var(--color-surface-500);
  --theme-markdown-mermaid-mobile-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --theme-markdown-mermaid-node-background: var(--color-surface-50);
  --theme-markdown-mermaid-node-text: var(--color-surface-900);
  --theme-markdown-mermaid-node-border: var(--color-surface-300);
  --theme-markdown-mermaid-secondary-background: var(--color-surface-100);
  --theme-markdown-mermaid-tertiary-background: var(--theme-surface-card);
  --theme-markdown-mermaid-line: var(--color-surface-500);
  --theme-markdown-mermaid-text: var(--color-surface-700);
  --theme-markdown-mermaid-cluster-background: var(--color-surface-50);
  --theme-markdown-mermaid-cluster-border: var(--color-surface-300);
  --theme-markdown-mermaid-edge-label-background: var(--theme-surface-card);
  --theme-markdown-mermaid-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-markdown-mermaid-font-size: 14px;
  --theme-markdown-table-border: var(--color-surface-200);
  --theme-markdown-table-head-background: var(--color-surface-50);
  --theme-markdown-table-row-background: var(--theme-surface-card);
  --theme-markdown-table-row-alt-background: color-mix(in srgb, var(--color-surface-50) 72%, var(--theme-surface-card));
  --theme-markdown-hr: var(--color-surface-200);
  --theme-markdown-kbd-background: var(--theme-surface-card);
  --theme-markdown-kbd-border: var(--color-surface-300);
  --theme-markdown-kbd-text: var(--color-surface-700);
  --theme-markdown-details-background: color-mix(in srgb, var(--color-surface-50) 72%, var(--theme-surface-card));
  --theme-markdown-details-border: var(--color-surface-200);
  --theme-markdown-preview-empty: var(--color-surface-500);
  --theme-markdown-toolbar-border: var(--color-surface-200);
  --theme-markdown-toolbar-button-background: var(--theme-surface-card);
  --theme-markdown-toolbar-button-background-hover: var(--color-surface-50);
  --theme-markdown-toolbar-button-text: var(--color-surface-700);
  --theme-markdown-toolbar-button-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --theme-markdown-toolbar-button-hover-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --theme-markdown-history-button-disabled-background: var(--color-surface-100);
  --theme-markdown-history-button-disabled-text: var(--color-surface-400);
  --theme-markdown-resize-bars: var(--color-surface-300);
  --theme-markdown-token-comment: #94a3b8;
  --theme-markdown-token-punctuation: #cbd5e1;
  --theme-markdown-token-property: #93c5fd;
  --theme-markdown-token-selector: #f9a8d4;
  --theme-markdown-token-operator: #67e8f9;
  --theme-markdown-token-keyword: #c4b5fd;
  --theme-markdown-token-function: #fcd34d;
  --theme-markdown-token-string: #86efac;
  --theme-markdown-token-number: #fdba74;
  --theme-markdown-token-tag: #fda4af;
  --theme-markdown-token-attr-name: #7dd3fc;
  --theme-markdown-token-attr-value: #bef264;
 }

html[data-theme="dark"] {
  --theme-markdown-text: var(--color-surface-600);
  --theme-markdown-heading: var(--color-surface-900);
  --theme-markdown-muted: var(--color-surface-500);
  --theme-markdown-link: var(--color-brand-600);
  --theme-markdown-link-hover: var(--color-brand-700);
  --theme-markdown-blockquote-border: var(--color-brand-500);
  --theme-markdown-blockquote-background: color-mix(in srgb, var(--color-brand-500) 16%, var(--theme-focus-surface));
  --theme-markdown-blockquote-text: var(--color-surface-700);
  --theme-markdown-inline-code-background: color-mix(in srgb, var(--color-surface-200) 75%, transparent);
  --theme-markdown-inline-code-text: var(--color-code-inline);
  --theme-markdown-code-background: var(--theme-code-surface);
  --theme-markdown-code-text: var(--theme-code-text);
  --theme-markdown-code-border: color-mix(in srgb, var(--color-surface-300) 72%, transparent);
  --theme-markdown-code-copy-background: color-mix(in srgb, var(--theme-surface-card) 82%, transparent);
  --theme-markdown-code-copy-background-hover: color-mix(in srgb, var(--color-brand-500) 18%, var(--theme-surface-card));
  --theme-markdown-code-copy-border: color-mix(in srgb, var(--color-surface-400) 58%, transparent);
  --theme-markdown-code-copy-text: var(--color-surface-700);
  --theme-markdown-code-copy-success: var(--theme-success-text);
  --theme-markdown-code-copy-error: var(--theme-danger-text);
  --theme-markdown-image-preview-background: rgba(2, 6, 23, 0.86);
  --theme-markdown-image-preview-panel: rgba(15, 23, 42, 0.94);
  --theme-markdown-image-preview-text: var(--color-surface-700);
  --theme-markdown-image-recovery-background: color-mix(in srgb, var(--theme-surface-card) 84%, transparent);
  --theme-markdown-image-recovery-border: color-mix(in srgb, var(--color-surface-400) 58%, transparent);
  --theme-markdown-image-recovery-text: var(--color-surface-700);
  --theme-markdown-image-recovery-button-background: color-mix(in srgb, var(--color-brand-500) 18%, var(--theme-surface-card));
  --theme-markdown-image-recovery-button-text: var(--color-brand-600);
  --theme-markdown-mermaid-background: color-mix(in srgb, var(--theme-surface-card) 92%, var(--color-brand-500) 8%);
  --theme-markdown-mermaid-border: color-mix(in srgb, var(--color-brand-500) 28%, var(--theme-markdown-code-border));
  --theme-markdown-mermaid-shadow: 0 20px 50px rgba(2, 6, 23, 0.3);
  --theme-markdown-mermaid-glow: color-mix(in srgb, var(--color-brand-500) 16%, transparent);
  --theme-markdown-mermaid-scroll-hint-background: color-mix(in srgb, var(--theme-surface-card) 84%, transparent);
  --theme-markdown-mermaid-scroll-hint-text: var(--color-surface-500);
  --theme-markdown-mermaid-mobile-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
  --theme-markdown-mermaid-node-background: var(--color-surface-200);
  --theme-markdown-mermaid-node-text: var(--color-surface-900);
  --theme-markdown-mermaid-node-border: var(--color-surface-400);
  --theme-markdown-mermaid-secondary-background: color-mix(in srgb, var(--color-surface-200) 72%, var(--theme-surface-card));
  --theme-markdown-mermaid-tertiary-background: var(--theme-surface-card);
  --theme-markdown-mermaid-line: var(--color-surface-500);
  --theme-markdown-mermaid-text: var(--color-surface-800);
  --theme-markdown-mermaid-cluster-background: color-mix(in srgb, var(--color-surface-200) 58%, var(--theme-surface-card));
  --theme-markdown-mermaid-cluster-border: var(--color-surface-400);
  --theme-markdown-mermaid-edge-label-background: var(--theme-surface-card);
  --theme-markdown-table-border: var(--color-surface-300);
  --theme-markdown-table-head-background: color-mix(in srgb, var(--color-surface-200) 78%, var(--theme-surface-card));
  --theme-markdown-table-row-background: color-mix(in srgb, var(--theme-surface-card) 92%, transparent);
  --theme-markdown-table-row-alt-background: color-mix(in srgb, var(--color-surface-200) 58%, var(--theme-surface-card));
  --theme-markdown-hr: var(--color-surface-300);
  --theme-markdown-kbd-background: color-mix(in srgb, var(--color-surface-200) 78%, var(--theme-surface-card));
  --theme-markdown-kbd-border: var(--color-surface-400);
  --theme-markdown-kbd-text: var(--color-surface-700);
  --theme-markdown-details-background: color-mix(in srgb, var(--color-surface-200) 52%, var(--theme-surface-card));
  --theme-markdown-details-border: var(--color-surface-300);
  --theme-markdown-preview-empty: var(--color-surface-500);
  --theme-markdown-toolbar-border: var(--color-surface-300);
  --theme-markdown-toolbar-button-background: var(--theme-surface-card);
  --theme-markdown-toolbar-button-background-hover: color-mix(in srgb, var(--color-surface-200) 68%, var(--theme-surface-card));
  --theme-markdown-toolbar-button-text: var(--color-surface-700);
  --theme-markdown-toolbar-button-shadow: 0 1px 2px rgba(2, 6, 23, 0.24);
  --theme-markdown-toolbar-button-hover-shadow: 0 8px 22px rgba(2, 6, 23, 0.32);
  --theme-markdown-history-button-disabled-background: color-mix(in srgb, var(--color-surface-200) 65%, var(--theme-surface-card));
  --theme-markdown-history-button-disabled-text: var(--color-surface-400);
  --theme-markdown-resize-bars: var(--color-surface-400);
}

.markdown-content {
  color: var(--theme-markdown-text);
  font-size: 1rem;
  line-height: 1.9;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.markdown-content,
.markdown-content * {
  box-sizing: border-box;
}

.markdown-content > * {
  max-width: 100%;
  min-width: 0;
}

.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content > *:last-child {
  margin-bottom: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--theme-markdown-heading);
  font-weight: 700;
  line-height: 1.3;
}

.markdown-content h1 {
  font-size: 2rem;
}

.markdown-content h2 {
  font-size: 1.75rem;
}

.markdown-content h3 {
  font-size: 1.5rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content table,
.markdown-table-wrapper,
.markdown-content details,
.markdown-content hr {
  margin-bottom: 1.25rem;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5rem;
}

.markdown-content ul {
  list-style: disc;
}

.markdown-content ol {
  list-style: decimal;
}

.markdown-content li + li {
  margin-top: 0.35rem;
}

.markdown-content li > p {
  margin-bottom: 0.75rem;
}

.markdown-content li.task-list-item {
  list-style: none;
  margin-left: -1.5rem;
  padding-left: 1.75rem;
  position: relative;
}

.markdown-content li.task-list-item > input[type="checkbox"] {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--theme-markdown-link);
  pointer-events: none;
}

.markdown-content a {
  color: var(--theme-markdown-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--theme-markdown-link) 35%, transparent);
  overflow-wrap: anywhere;
}

.markdown-content a:hover {
  color: var(--theme-markdown-link-hover);
}

.markdown-content blockquote {
  margin-left: 0;
  border-left: 4px solid var(--theme-markdown-blockquote-border);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background-color: var(--theme-markdown-blockquote-background);
  padding: 1rem 1.25rem;
  color: var(--theme-markdown-blockquote-text);
}

.markdown-content code {
  border-radius: 0.5rem;
  background-color: var(--theme-markdown-inline-code-background);
  padding: 0.15rem 0.4rem;
  color: var(--theme-markdown-inline-code-text);
  font-size: 0.92em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-content pre {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--theme-markdown-code-border);
  border-radius: var(--radius-card);
  background-color: var(--theme-markdown-code-background);
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.markdown-code-block-shell {
  position: relative;
  max-width: 100%;
}

.markdown-code-block-shell > pre {
  margin-bottom: 0;
}

.markdown-content pre.markdown-code-block {
  padding-top: 3.25rem;
}

.markdown-code-copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  border: 1px solid var(--theme-markdown-code-copy-border);
  border-radius: 9999px;
  background: var(--theme-markdown-code-copy-background);
  padding: 0.35rem 0.7rem;
  color: var(--theme-markdown-code-copy-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.markdown-code-copy-button:hover {
  border-color: color-mix(in srgb, var(--color-brand-500) 34%, var(--theme-markdown-code-copy-border));
  background: var(--theme-markdown-code-copy-background-hover);
  transform: translateY(-1px);
}

.markdown-code-copy-button:focus-visible {
  outline: none;
  box-shadow: var(--theme-frontend-action-focus-ring);
}

.markdown-code-copy-button svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.markdown-code-copy-button[data-copy-state="success"] {
  color: var(--theme-markdown-code-copy-success);
}

.markdown-code-copy-button[data-copy-state="error"] {
  color: var(--theme-markdown-code-copy-error);
}

.markdown-code-copy-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.markdown-content pre code {
  display: block;
  min-width: max-content;
  background-color: transparent;
  padding: 0;
  color: var(--theme-markdown-code-text);
  overflow-wrap: normal;
  word-break: normal;
}

.markdown-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.markdown-content .markdown-image-center {
  text-align: center;
}

.markdown-content img.markdown-image-center,
.markdown-content .markdown-image-center > img {
  margin-inline: auto;
}

.markdown-content .markdown-image-center > a {
  display: inline-block;
  max-width: 100%;
}

.markdown-content .markdown-image-center > a > img {
  display: block;
  margin-inline: auto;
}

.markdown-image-shell {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-card);
}

.markdown-content .markdown-image-center > .markdown-image-shell,
.markdown-image-shell-center {
  margin-inline: auto;
}

.markdown-image-shell > a,
.markdown-image-shell > img {
  display: block;
  max-width: 100%;
}

.markdown-image-shell[data-markdown-image-state="retrying"] > img,
.markdown-image-shell[data-markdown-image-state="error"] > img,
.markdown-image-shell[data-markdown-image-state="retrying"] > a > img,
.markdown-image-shell[data-markdown-image-state="error"] > a > img {
  opacity: 0.45;
}

.markdown-image-recovery-panel {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  z-index: 2;
  display: none;
  max-width: calc(100% - 1rem);
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--theme-markdown-image-recovery-border);
  border-radius: 9999px;
  background: var(--theme-markdown-image-recovery-background);
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  color: var(--theme-markdown-image-recovery-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--theme-frontend-card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.markdown-image-shell[data-markdown-image-state="retrying"] > .markdown-image-recovery-panel,
.markdown-image-shell[data-markdown-image-state="error"] > .markdown-image-recovery-panel {
  display: inline-flex;
}

.markdown-image-recovery-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.markdown-image-recovery-button {
  flex-shrink: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--theme-markdown-image-recovery-button-background);
  padding: 0.35rem 0.65rem;
  color: var(--theme-markdown-image-recovery-button-text);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.markdown-image-recovery-button:hover:not(:disabled),
.markdown-image-recovery-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.markdown-image-recovery-button:focus-visible {
  box-shadow: var(--theme-frontend-action-focus-ring);
}

.markdown-image-recovery-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.markdown-previewable-image {
  cursor: zoom-in;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.markdown-previewable-image:hover,
.markdown-previewable-image:focus-visible {
  filter: brightness(0.98);
  outline: none;
  box-shadow: var(--theme-frontend-action-focus-ring);
  transform: translateY(-1px);
}

.markdown-image-preview-open {
  overflow: hidden;
}

.markdown-image-preview-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--theme-markdown-image-preview-background);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overscroll-behavior: contain;
  isolation: isolate;
}

.markdown-image-preview-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--theme-markdown-image-preview-panel) 20%, transparent), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.markdown-image-preview-dialog.hidden {
  display: none;
}

.markdown-image-preview-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.markdown-image-preview-close,
.markdown-image-preview-nav {
  border: 1px solid var(--theme-frontend-card-border);
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 86%, transparent);
  color: var(--theme-text-primary);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.markdown-image-preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  color: var(--theme-text-primary);
}

.markdown-image-preview-close:hover,
.markdown-image-preview-nav:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--color-brand-500) 32%, var(--theme-frontend-card-border));
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 78%, var(--color-brand-500));
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.markdown-image-preview-close:hover {
  transform: translateY(-1px);
}

.markdown-image-preview-close:focus-visible,
.markdown-image-preview-nav:focus-visible {
  outline: none;
  box-shadow: var(--theme-frontend-action-focus-ring);
}

.markdown-image-preview-stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.markdown-image-preview-image {
  display: block;
  max-width: min(100%, 82rem);
  max-height: 100%;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--theme-markdown-image-preview-panel) 60%, transparent);
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 92%, transparent);
  object-fit: contain;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.markdown-image-preview-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  max-width: min(86vw, 30rem);
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--theme-frontend-card-border) 90%, transparent);
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 88%, transparent);
  padding: 0.8rem 1.05rem;
  color: var(--theme-markdown-image-preview-text);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.markdown-image-preview-dialog[data-image-preview-state="ready"] .markdown-image-preview-status,
.markdown-image-preview-status:empty,
.markdown-image-preview-caption.hidden,
.markdown-image-preview-nav.hidden {
  display: none;
}

.markdown-image-preview-dialog[data-image-preview-state="loading"] .markdown-image-preview-image {
  opacity: 0.35;
}

.markdown-image-preview-dialog[data-image-preview-state="error"] .markdown-image-preview-image {
  display: none;
}

.markdown-image-preview-nav {
  position: fixed;
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  --markdown-image-preview-nav-shift-x: -50%;
  --markdown-image-preview-nav-shift-y: 0px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 8.5rem;
  height: 3.35rem;
  padding: 0 1.05rem;
  transform: translate(var(--markdown-image-preview-nav-shift-x), var(--markdown-image-preview-nav-shift-y));
  border-radius: 9999px;
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 82%, transparent);
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.markdown-image-preview-nav:hover:not(:disabled) {
  --markdown-image-preview-nav-shift-y: -1px;
}

.markdown-image-preview-nav:disabled {
  cursor: default;
  opacity: 0.45;
}

.markdown-image-preview-nav::before,
.markdown-image-preview-nav::after {
  color: currentColor;
}

.markdown-image-preview-nav::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 72%, transparent);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.markdown-image-preview-nav::after {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.markdown-image-preview-nav-previous {
  left: 50%;
  --markdown-image-preview-nav-shift-x: calc(-100% - 0.4rem);
}

.markdown-image-preview-nav-previous::before {
  content: "‹";
}

.markdown-image-preview-nav-previous::after {
  content: "上一张";
}

.markdown-image-preview-nav-next {
  left: 50%;
  --markdown-image-preview-nav-shift-x: 0.4rem;
}

.markdown-image-preview-nav-next::before {
  content: "›";
}

.markdown-image-preview-nav-next::after {
  content: "下一张";
}

.markdown-image-preview-caption {
  z-index: 3;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: min(90vw, 52rem);
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--theme-frontend-card-border) 92%, transparent);
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 84%, transparent);
  padding: 0.65rem 1.05rem;
  color: var(--theme-markdown-image-preview-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-bottom: 4.5rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.markdown-image-preview-counter {
  flex-shrink: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--theme-markdown-image-preview-panel) 68%, transparent);
  padding: 0.28rem 0.55rem;
  color: var(--theme-markdown-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.markdown-mermaid-shell {
  position: relative;
  max-width: 100%;
  min-height: 8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--theme-markdown-mermaid-border);
  border-radius: calc(var(--radius-card) + 0.25rem);
  background: linear-gradient(145deg, var(--theme-markdown-mermaid-background), color-mix(in srgb, var(--theme-markdown-mermaid-background) 86%, var(--theme-focus-surface)));
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--theme-markdown-mermaid-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-markdown-mermaid-line) transparent;
}

.markdown-mermaid-shell::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 12%, var(--theme-markdown-mermaid-glow), transparent 42%);
  pointer-events: none;
}

.markdown-mermaid-shell::after {
  content: "横向滑动查看完整图表";
  position: sticky;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: none;
  width: max-content;
  max-width: calc(100% - 1rem);
  transform: translateX(-50%);
  border: 1px solid var(--theme-markdown-mermaid-border);
  border-radius: 9999px;
  background: var(--theme-markdown-mermaid-scroll-hint-background);
  padding: 0.25rem 0.65rem;
  color: var(--theme-markdown-mermaid-scroll-hint-text);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.markdown-mermaid-shell-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-markdown-mermaid-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.markdown-mermaid-shell-loading::after {
  content: "正在渲染流程图...";
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: inline-flex;
  width: auto;
  max-width: none;
  transform: none;
  border: 1px solid var(--theme-markdown-mermaid-border);
  border-radius: 9999px;
  background: var(--theme-markdown-mermaid-scroll-hint-background);
  padding: 0.45rem 0.85rem;
  color: var(--theme-markdown-mermaid-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.markdown-mermaid-shell svg {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  margin-inline: auto;
  color: var(--theme-markdown-mermaid-text);
  font-family: var(--theme-markdown-mermaid-font-family);
  font-size: var(--theme-markdown-mermaid-font-size);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.markdown-mermaid-shell .flowchart-link:not([style*="stroke"]),
.markdown-mermaid-shell .edgePath path:not([style*="stroke"]) {
  stroke: var(--theme-markdown-mermaid-line);
  stroke-width: 2px;
  fill: none;
}

.markdown-mermaid-shell marker path:not([style*="fill"]),
.markdown-mermaid-shell .marker:not([style*="fill"]),
.markdown-mermaid-shell .arrowheadPath:not([style*="fill"]) {
  fill: var(--theme-markdown-mermaid-line);
  stroke: var(--theme-markdown-mermaid-line);
}

.markdown-mermaid-shell .node rect,
.markdown-mermaid-shell .node polygon,
.markdown-mermaid-shell .node circle,
.markdown-mermaid-shell .node ellipse,
.markdown-mermaid-shell .node path {
  fill: var(--theme-markdown-mermaid-node-background);
  stroke: var(--theme-markdown-mermaid-node-border);
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.06));
}

.markdown-mermaid-shell .cluster rect,
.markdown-mermaid-shell .cluster polygon,
.markdown-mermaid-shell .cluster path {
  fill: var(--theme-markdown-mermaid-cluster-background);
  stroke: var(--theme-markdown-mermaid-cluster-border);
}

.markdown-mermaid-shell .edgeLabel,
.markdown-mermaid-shell .edgeLabel rect,
.markdown-mermaid-shell .labelBkg {
  background-color: var(--theme-markdown-mermaid-edge-label-background);
  fill: var(--theme-markdown-mermaid-edge-label-background);
}

.markdown-mermaid-shell text,
.markdown-mermaid-shell .label,
.markdown-mermaid-shell .nodeLabel,
.markdown-mermaid-shell .edgeLabel,
.markdown-mermaid-shell .cluster-label {
  color: var(--theme-markdown-mermaid-text);
  fill: var(--theme-markdown-mermaid-text);
  font-family: var(--theme-markdown-mermaid-font-family);
}

.markdown-mermaid-shell .edgeLabel,
.markdown-mermaid-shell .nodeLabel {
  font-size: var(--theme-markdown-mermaid-font-size);
  font-weight: 500;
  line-height: 1.4;
}

.markdown-mermaid-shell .nodeLabel,
.markdown-mermaid-shell .nodeLabel p,
.markdown-mermaid-shell .node .label,
.markdown-mermaid-shell .node text {
  color: var(--theme-markdown-mermaid-node-text);
  fill: var(--theme-markdown-mermaid-node-text);
}

.markdown-mermaid-shell-error {
  min-height: 0;
  display: block;
  color: var(--theme-danger-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.75;
}

.markdown-mermaid-shell-error::after {
  display: none;
}

@media (max-width: 640px) {
  .markdown-image-preview-dialog {
    align-items: center;
    padding: 0.75rem;
  }

  .markdown-image-preview-image {
    max-height: 76vh;
    border-radius: 1rem;
  }

  .markdown-image-preview-close {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .markdown-image-preview-caption {
    max-width: calc(100vw - 1.5rem);
    border-radius: 1rem;
    margin-bottom: 4rem;
    gap: 0.55rem;
    padding: 0.58rem 0.85rem;
  }

  .markdown-image-preview-nav {
    min-width: 6.8rem;
    height: 3rem;
    padding: 0 0.85rem;
    gap: 0.4rem;
    bottom: max(0.75rem, calc(env(safe-area-inset-bottom) + 0.4rem));
  }

  .markdown-image-preview-nav::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.125rem;
  }

  .markdown-image-preview-nav::after {
    font-size: 0.8125rem;
  }

  .markdown-image-recovery-panel {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
    transform: none;
    flex-wrap: wrap;
    border-radius: 1rem;
    padding: 0.55rem;
  }

  .markdown-image-recovery-text {
    white-space: normal;
  }

  .markdown-mermaid-shell {
    min-height: 7rem;
    padding: 0.85rem;
    border-radius: var(--radius-card);
    box-shadow: var(--theme-markdown-mermaid-mobile-shadow);
  }

  .markdown-mermaid-shell::before {
    inset: 0.5rem;
  }

  .markdown-mermaid-shell[data-mermaid-overflow-x="true"]:not(.markdown-mermaid-shell-loading):not(.markdown-mermaid-shell-error)::after {
    display: inline-flex;
  }

  .markdown-mermaid-shell svg {
    margin-inline: 0;
    font-size: 13px;
  }

  .markdown-mermaid-shell .edgeLabel,
  .markdown-mermaid-shell .nodeLabel {
    font-size: 13px;
    font-weight: 500;
  }

  .markdown-mermaid-shell .node rect,
  .markdown-mermaid-shell .node polygon,
  .markdown-mermaid-shell .node circle,
  .markdown-mermaid-shell .node ellipse,
  .markdown-mermaid-shell .node path {
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.05));
  }
}

.markdown-content hr {
  border: 0;
  border-top: 1px solid var(--theme-markdown-hr);
}

.markdown-content kbd {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--theme-markdown-kbd-border);
  border-bottom-width: 2px;
  border-radius: 0.5rem;
  background: var(--theme-markdown-kbd-background);
  padding: 0.125rem 0.5rem;
  color: var(--theme-markdown-kbd-text);
  font-size: 0.85em;
  line-height: 1.5;
}

.markdown-content details {
  border: 1px solid var(--theme-markdown-details-border);
  border-radius: var(--radius-card);
  background: var(--theme-markdown-details-background);
  padding: 1rem 1.25rem;
}

.markdown-content summary {
  cursor: pointer;
  color: var(--theme-markdown-heading);
  font-weight: 600;
}

.markdown-content details > :last-child {
  margin-bottom: 0;
}

.markdown-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.markdown-content table {
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-card);
  border: 1px solid var(--theme-markdown-table-border);
  table-layout: auto;
  margin-bottom: 0;
  background: var(--theme-markdown-table-row-background);
}

.markdown-content thead {
  background-color: var(--theme-markdown-table-head-background);
}

.markdown-content tbody tr:nth-child(even) {
  background: var(--theme-markdown-table-row-alt-background);
}

.markdown-content th,
.markdown-content td {
  border: 1px solid var(--theme-markdown-table-border);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.markdown-content p,
.markdown-content li,
.markdown-content blockquote,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6,
.markdown-content td,
.markdown-content th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-content h1[id],
.markdown-content h2[id],
.markdown-content h3[id],
.markdown-content h4[id],
.markdown-content h5[id],
.markdown-content h6[id] {
  scroll-margin-top: var(--sticky-header-offset, 5rem);
}

.markdown-content .katex {
  font-size: 1.05em;
}

.markdown-content .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0.125rem;
  margin: 1.25rem 0;
}

.markdown-content .token.comment,
.markdown-content .token.prolog,
.markdown-content .token.doctype,
.markdown-content .token.cdata {
  color: var(--theme-markdown-token-comment);
}

.markdown-content .token.punctuation {
  color: var(--theme-markdown-token-punctuation);
}

.markdown-content .token.property,
.markdown-content .token.constant,
.markdown-content .token.symbol,
.markdown-content .token.deleted {
  color: var(--theme-markdown-token-property);
}

.markdown-content .token.boolean,
.markdown-content .token.number {
  color: var(--theme-markdown-token-number);
}

.markdown-content .token.selector,
.markdown-content .token.attr-name,
.markdown-content .token.char,
.markdown-content .token.builtin,
.markdown-content .token.inserted {
  color: var(--theme-markdown-token-selector);
}

.markdown-content .token.operator,
.markdown-content .token.entity,
.markdown-content .token.url,
.markdown-content .language-css .token.string,
.markdown-content .style .token.string {
  color: var(--theme-markdown-token-operator);
}

.markdown-content .token.atrule,
.markdown-content .token.keyword {
  color: var(--theme-markdown-token-keyword);
}

.markdown-content .token.function,
.markdown-content .token.class-name {
  color: var(--theme-markdown-token-function);
}

.markdown-content .token.regex,
.markdown-content .token.important,
.markdown-content .token.variable {
  color: var(--theme-markdown-token-tag);
}

.markdown-content .token.string,
.markdown-content .token.attr-value {
  color: var(--theme-markdown-token-string);
}

.markdown-content .token.tag {
  color: var(--theme-markdown-token-tag);
}

.markdown-content .token.attr-name {
  color: var(--theme-markdown-token-attr-name);
}

.markdown-content .token.attr-value {
  color: var(--theme-markdown-token-attr-value);
}

[data-markdown-content="preview"]:empty::before {
  content: "请输入 Markdown 内容后查看预览。";
  color: var(--theme-markdown-preview-empty);
}

.article-copy-protected {
  user-select: none;
  -webkit-user-select: none;
}

.article-copy-protected pre,
.article-copy-protected pre *,
.article-copy-protected [data-allow-copy],
.article-copy-protected [data-allow-copy] * {
  user-select: text;
  -webkit-user-select: text;
}

.markdown-editor-workspace {
  --markdown-workspace-height: auto;
}

.markdown-editor-toolbar {
  background: var(--theme-editor-toolbar-bg);
}

.markdown-editor-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border: 1px solid var(--theme-markdown-toolbar-border);
  border-radius: 0.85rem;
  background-color: var(--theme-markdown-toolbar-button-background);
  padding: 0.55rem 0.95rem;
  color: var(--theme-markdown-toolbar-button-text);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--theme-markdown-toolbar-button-shadow);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.markdown-editor-toolbar-button:hover {
  border-color: var(--color-surface-300);
  background-color: var(--theme-markdown-toolbar-button-background-hover);
  box-shadow: var(--theme-markdown-toolbar-button-hover-shadow);
  transform: translateY(-1px);
}

.markdown-editor-toolbar-button:focus-visible {
  outline: none;
  border-color: var(--color-brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand-500) 14%, var(--theme-focus-surface));
}

.markdown-editor-toolbar-button-primary {
  border-color: color-mix(in srgb, var(--color-brand-500) 30%, var(--theme-focus-surface));
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-brand-500) 12%, var(--theme-focus-surface)), color-mix(in srgb, var(--color-brand-500) 20%, var(--theme-focus-surface)));
  color: var(--color-brand-700);
}

.markdown-editor-toolbar-button-primary:hover {
  border-color: color-mix(in srgb, var(--color-brand-500) 45%, var(--theme-focus-surface));
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-brand-500) 18%, var(--theme-focus-surface)), color-mix(in srgb, var(--color-brand-500) 28%, var(--theme-focus-surface)));
}

.markdown-editor-history-bar {
  background: var(--theme-editor-history-bg);
}

.markdown-editor-history-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--color-brand-500) 18%, var(--theme-focus-surface));
  background-color: var(--theme-surface-card);
  padding: 0.4rem 0.8rem;
  color: var(--color-surface-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.markdown-editor-history-actions {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--theme-markdown-toolbar-border);
  border-radius: 0.95rem;
  background-color: var(--theme-surface-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.markdown-editor-history-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  color: var(--color-surface-700);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.markdown-editor-history-button + .markdown-editor-history-button {
  border-left: 1px solid var(--theme-markdown-toolbar-border);
}

.markdown-editor-history-button:hover {
  background-color: var(--theme-markdown-toolbar-button-background-hover);
}

.markdown-editor-history-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: none;
  background-color: color-mix(in srgb, var(--color-brand-500) 10%, var(--theme-focus-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand-500) 32%, var(--theme-focus-surface));
}

.markdown-editor-history-button:disabled {
  cursor: not-allowed;
  background-color: var(--theme-markdown-history-button-disabled-background);
  color: var(--theme-markdown-history-button-disabled-text);
}

.markdown-editor-history-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: var(--color-surface-100);
  color: var(--color-surface-700);
  font-size: 1rem;
  line-height: 1;
}

.markdown-editor-history-button:disabled .markdown-editor-history-button-icon {
  background-color: var(--color-surface-200);
  color: var(--theme-markdown-history-button-disabled-text);
}

.markdown-editor-pane {
  min-width: 0;
}

.markdown-editor-input,
.markdown-editor-pane-body {
  box-sizing: border-box;
}

.markdown-editor-input {
  overflow: auto;
}

.markdown-editor-pane-preview .markdown-editor-pane-body {
  overflow-y: auto;
}

.markdown-editor-resize-handle {
  cursor: ns-resize;
  user-select: none;
}

.markdown-editor-resize-handle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}

.markdown-editor-resize-handle-bars span {
  display: block;
  width: 2.5rem;
  height: 0.1875rem;
  border-radius: 9999px;
  background-color: var(--theme-markdown-resize-bars);
}

body.markdown-editor-resizing {
  cursor: ns-resize;
  user-select: none;
}

@media (min-width: 1024px) {
  .markdown-editor-workspace {
    height: var(--markdown-workspace-height, min(70vh, 52rem));
    min-height: 32rem;
  }

  .markdown-editor-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .markdown-editor-pane-body {
    flex: 1 1 auto;
    min-height: 0;
  }

  .markdown-editor-pane-editor .markdown-editor-pane-body {
    overflow: auto;
  }

  .markdown-editor-pane-editor .markdown-editor-input {
    height: 100%;
  }

  .markdown-editor-pane-preview .markdown-editor-pane-body {
    max-height: 100%;
  }
}

@media (max-width: 1023.98px) {
  .markdown-editor-pane-preview .markdown-editor-pane-body {
    max-height: 45vh;
  }
}

@media (max-width: 640px) {
  .markdown-content {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .markdown-content ul,
  .markdown-content ol {
    padding-left: 1.25rem;
  }

  .markdown-content blockquote,
  .markdown-content details {
    padding: 0.875rem 1rem;
  }

  .markdown-content pre {
    padding: 0.875rem 1rem;
  }

  .markdown-content th,
  .markdown-content td {
    padding: 0.75rem 0.875rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
