/* Full-screen file editor (CodeMirror) */
#fmEditor .CodeMirror {
  height: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}
#fmEditorPane { min-height: 0; }
#fmEditorPane .CodeMirror { height: 100%; }
#fmPreviewContent { font-size: 14px; line-height: 1.7; }
#fmPreviewContent h1, #fmPreviewContent h2, #fmPreviewContent h3,
#fmPreviewContent h4, #fmPreviewContent h5, #fmPreviewContent h6 {
  font-weight: 700; margin: 1.2em 0 0.5em; line-height: 1.3;
}
#fmPreviewContent h1 { font-size: 1.6em; border-bottom: 1px solid var(--border-color); padding-bottom: 0.3em; }
#fmPreviewContent h2 { font-size: 1.35em; }
#fmPreviewContent h3 { font-size: 1.15em; }
#fmPreviewContent p { margin: 0.8em 0; }
#fmPreviewContent code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em; background: color-mix(in srgb, var(--text-main) 8%, var(--bg-card));
  padding: 0.15em 0.4em; border-radius: 4px;
}
#fmPreviewContent pre {
  background: #0b1020; color: #d7e0f4; padding: 1em; border-radius: 8px;
  overflow-x: auto; margin: 1em 0;
}
#fmPreviewContent pre code { background: none; padding: 0; color: inherit; }
#fmPreviewContent ul, #fmPreviewContent ol { margin: 0.8em 0; padding-left: 1.5em; }
#fmPreviewContent ul { list-style: disc; }
#fmPreviewContent ol { list-style: decimal; }
#fmPreviewContent blockquote {
  border-left: 3px solid var(--border-color); padding-left: 1em;
  color: var(--text-muted); margin: 1em 0;
}
#fmPreviewContent table { border-collapse: collapse; margin: 1em 0; width: 100%; }
#fmPreviewContent th, #fmPreviewContent td { border: 1px solid var(--border-color); padding: 0.4em 0.8em; text-align: left; }
#fmPreviewContent th { background: color-mix(in srgb, var(--text-main) 5%, var(--bg-card)); }
#fmPreviewContent a { color: var(--accent); text-decoration: underline; }
#fmPreviewContent img { max-width: 100%; }
