/* Markmap editor — source-first: the mind map is a Markdown outline, edited in the Properties panel
   in a monospace textarea. The map itself is a live SVG whose node labels are HTML. */
.dia-markmap .flow-props .flow-panel-body { width: 340px; max-width: 80vw; }

.dia-markmap .markmap-src {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 260px;
  resize: vertical;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.85rem;
  line-height: 1.35;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  outline: none;
}
.dia-markmap .markmap-src:focus { border-color: var(--accent); }

/* the map's node labels are HTML inside the SVG; keep them dark on the light diagram backdrop */
svg.md-markmap { display: block; margin: 0 auto; color: #24292f; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
svg.md-markmap a { color: #0969da; }
svg.md-markmap code { font-size: 0.85em; padding: 0 0.25em; border-radius: 3px; background: rgba(0, 0, 0, 0.06); }
