/* --------------------------------------------------------------------------
   Markdown Text Editor Modal
   -------------------------------------------------------------------------- */
.md-editor-box {
  width: 820px;
  max-width: 94vw;
  height: 78vh;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popup);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sweetPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.md-editor-header {
  padding: 12px 16px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.md-editor-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.md-editor-filename {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-normal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-editor-external-btn {
  padding: 5px 10px;
  min-width: auto;
  font-size: 12px;
}

.md-editor-close-icon {
  font-size: 20px;
  line-height: 1;
}

.md-editor-textarea {
  flex: 1;
  width: 100%;
  background: #141418;
  color: var(--text-normal);
  border: none;
  padding: 16px 20px;
  font-family: var(--font-code);
  font-size: 13.5px;
  line-height: 1.65;
  resize: none;
  outline: none;
}

.md-editor-footer {
  padding: 10px 16px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.md-editor-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.md-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

