/* CodeMirror 6 base styles — minimal, themed to match DaisyUI.
   CM6 emits .cm-editor / .cm-scroller / .cm-line / .cm-gutters. */
.cm-editor {
  height: 100%;
  font-size: 12px;
  background: transparent;
  color: inherit;
}
.cm-editor.cm-focused {
  outline: none;
}
.cm-editor .cm-scroller {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  line-height: 1.4;
}
.cm-editor .cm-gutters {
  background: hsl(var(--b2));
  border-right: 1px solid hsl(var(--b3));
  color: hsl(var(--bc) / 0.4);
  font-size: 10px;
}
.cm-editor .cm-activeLine {
  background: hsl(var(--b3) / 0.4);
}
.cm-editor .cm-activeLineGutter {
  background: hsl(var(--b3) / 0.6);
}
.cm-editor .cm-selectionBackground,
.cm-editor.cm-focused .cm-selectionBackground {
  background: hsl(var(--p) / 0.2);
}
.cm-editor .cm-cursor {
  border-left-color: hsl(var(--p));
}

/* Markdown syntax colors — light token scheme that works on light+dark via oklch vars */
.cm-editor .tok-heading,
.cm-editor .ͼ1 .tok-heading {
  font-weight: 700;
  color: hsl(var(--p));
}
.cm-editor .tok-emphasis,
.cm-editor .tok-strong {
  font-weight: 700;
}
.cm-editor .tok-quote {
  color: hsl(var(--bc) / 0.6);
  font-style: italic;
}
.cm-editor .tok-link,
.cm-editor .tok-url {
  color: hsl(var(--pc));
  text-decoration: underline;
}
.cm-editor .tok-monospace,
.cm-editor .tok-fencedCode {
  color: hsl(var(--ac));
  background: hsl(var(--b2));
}
.cm-editor .tok-list,
.cm-editor .tok-processingInstruction {
  color: hsl(var(--sc));
}
