:root {
  --bg: #252525;
  --toolbar: #252525;
  --accent: var(--second-color);
  --muted: #6b7280;
}

.wysiwyg-editor-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: #252525;
  border-radius: 3px;
  overflow: hidden
}

.wysiwyg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--toolbar);
  align-items: center
}

.wysiwyg-toolbar .group {
  display: flex;
  gap: 6px
}

button.tool {
  background: #0f0f0f;
  border: 0px solid #e6eef6;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.2s;
}

button.tool:hover {
  background: black;
}

button.tool.active {
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06);
  background: #e6f0ff
}

.editor {
  min-height: 320px;
  padding: 20px;
  border-top: 1px solid #0f0f0f;
  outline: none
}

.editor[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: var(--muted)
}

figure {
  border-left: 3px solid #e2e8f0;
  padding: 8px 12px;
  margin: 8px 0;
  background: #fbfdff
}

img.inserted {
  max-width: 100%;
  height: auto;
  border-radius: 6px
}

@media (max-width:640px) {
  .toolbar {
    gap: 6px;
    padding: 8px
  }

  .editor {
    padding: 12px
  }
}
  