.simple-editor-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #232b36);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-card, #12171f);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.simple-editor-wrapper:focus-within {
  border-color: var(--accent-green, #22c55e);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.simple-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: var(--bg-card-secondary, #18202b);
  border-bottom: 1px solid var(--border-color, #232b36);
}

.simple-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  min-width: 32px;
  height: 30px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.simple-editor-btn:hover {
  background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
  color: var(--text-main, #ffffff);
  border-color: var(--border-color, #232b36);
}

.simple-editor-btn:active {
  transform: translateY(1px);
}

.simple-editor-btn.active {
  background: var(--accent-green, #22c55e);
  color: #ffffff;
}

.simple-editor-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color, #232b36);
  margin: 0 0.25rem;
}

.simple-editor-textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  color: var(--text-main, #ffffff);
  border: none;
  outline: none;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
}

.simple-editor-preview {
  display: none;
  padding: 0.85rem 1rem;
  background: var(--bg-card, #12171f);
  color: var(--text-main, #ffffff);
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto;
}

.simple-editor-preview.active {
  display: block;
}

.simple-editor-preview h3,
.simple-editor-preview h4 {
  margin: 0.8rem 0 0.4rem 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.simple-editor-preview ul,
.simple-editor-preview ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.simple-editor-preview li {
  margin-bottom: 0.25rem;
}

.simple-editor-preview blockquote {
  border-left: 3px solid var(--accent-green, #22c55e);
  margin: 0.6rem 0;
  padding-left: 0.75rem;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

.simple-editor-preview code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.88rem;
  color: #38bdf8;
}

.simple-editor-preview a {
  color: #60a5fa;
  text-decoration: underline;
}
