/* One Dark theme for CodeMirror 6 (lightweight token styles).
   Matches the thememirror "oneDark" palette so syntax tokens read
   well against the dark editor background. */
.cm-editor {
  background: #282c34;
  color: #abb2bf;
}
.cm-editor .cm-gutters {
  background: #282c34;
  color: #5c6370;
  border-right: 1px solid #2c313c;
}
.cm-editor .cm-activeLineGutter { background: #2c313c; color: #abb2bf; }
.cm-editor .cm-activeLine { background: #2c313c; }
.cm-editor .cm-cursor { border-left-color: #528bff !important; }

/* Syntax highlighting tokens */
.cm-editor .tok-keyword,
.cm-editor .tok-operator,
.cm-editor .tok-modifier { color: #c678dd; }
.cm-editor .tok-string,
.cm-editor .tok-string-2,
.cm-editor .tok-string-special { color: #98c379; }
.cm-editor .tok-number,
.cm-editor .tok-atom,
.cm-editor .tok-bool { color: #d19a66; }
.cm-editor .tok-variable,
.cm-editor .tok-variable-2,
.cm-editor .tok-local { color: #e06c75; }
.cm-editor .tok-property,
.cm-editor .tok-attribute { color: #d19a66; }
.cm-editor .tok-type,
.cm-editor .tok-typeName,
.cm-editor .tok-className,
.cm-editor .tok-qualifier { color: #e5c07b; }
.cm-editor .tok-function,
.cm-editor .tok-def { color: #61afef; }
.cm-editor .tok-comment,
.cm-editor .tok-quote { color: #5c6370; font-style: italic; }
.cm-editor .tok-meta { color: #abb2bf; }
.cm-editor .tok-heading,
.cm-editor .tok-header { color: #e5c07b; font-weight: 600; }
.cm-editor .tok-url { color: #61afef; text-decoration: underline; }
.cm-editor .tok-link { color: #61afef; }
.cm-editor .tok-bracket,
.cm-editor .tok-punctuation { color: #abb2bf; }
.cm-editor .tok-tag { color: #e06c75; }
.cm-editor .tok-separator { color: #5c6370; }
.cm-editor .tok-emphasis { font-style: italic; }
.cm-editor .tok-strong { font-weight: 700; }
.cm-editor .tok-strikethrough { text-decoration: line-through; }
.cm-editor .tok-monospace { color: #98c379; }

/* Markdown-specific: emphasis marks, links, list bullets */
.cm-editor .cm-formatting { color: #5c6370; }
.cm-editor .cm-formatting-link,
.cm-editor .cm-formatting-emphasis,
.cm-editor .cm-formatting-strong { color: #c678dd; }
.cm-editor .cm-hr { color: #5c6370; }
.cm-editor .cm-quote { color: #5c6370; font-style: italic; }

/* Search match on dark bg */
.cm-editor .cm-searchMatch { background: rgba(198,154,63,0.45); }
