/* TinyMDE editor styles */

.TinyMDE {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0 0 6px 6px;
  min-height: 200px;
  outline: none;
  background: #fff;
}
.TinyMDE:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Placeholder */
.TinyMDE.TinyMDE_empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  pointer-events: none;
}

/* Command bar (toolbar) */
.TMCommandBar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #f8f9fa;
}

.TMCommandButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  color: #555;
}
.TMCommandButton svg { width: 16px; height: 16px; fill: currentColor; }
.TMCommandButton_Inactive:hover { background: #e2e6ea; color: #333; }
.TMCommandButton_Active { background: #d0d4d8; color: #111; }
.TMCommandButton_Disabled { opacity: 0.35; cursor: default; }

.TMCommandDivider {
  width: 1px;
  height: 20px;
  align-self: center;
  background: #ccc;
  margin: 0 2px;
}

/* Line-level formatting */
.TMH1 { font-size: 1.4em; font-weight: 600; }
.TMH2 { font-size: 1.2em; font-weight: 600; }
.TMH3 { font-size: 1.05em; font-weight: 600; }
.TMH4, .TMH5, .TMH6 { font-weight: 600; }
.TMSetextH1, .TMSetextH2 { font-weight: 600; }
.TMSetextH1 { font-size: 1.4em; }
.TMSetextH2 { font-size: 1.2em; }

.TMBlockquote { color: #666; border-left: 3px solid #a0b4c8; padding-left: 0.5em; }
.TMHR { color: #999; }
.TMFencedCodeBacktick,
.TMFencedCodeTilde { background: #f6f8fa; }
.TMHTMLBlock { color: #888; }

/* Inline formatting */
.TMStrong { font-weight: 700; }
.TMEm { font-style: italic; }
.TMStrikethrough { text-decoration: line-through; opacity: 0.6; }
.TMHighlight { background: #fff3b0; border-radius: 3px; }
.TMCode { background: #f0f0f0; border-radius: 3px; padding: 0.1em 0.25em; }
.TMAutolink { color: var(--accent); text-decoration: underline; }
.TMLink, .TMImage { color: var(--accent); }
.TMLinkDestination, .TMImageDestination { color: #888; }
.TMLinkTitle, .TMImageTitle { color: #888; }

/* Dim markdown syntax markers */
.TMMark { color: #bbb; }
.TMInfoString { color: #888; }
