.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cdbdad;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f3eae1;
}

.rich-toolbar button,
.rich-toolbar select {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #cdbdad;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.rich-editor {
  min-height: 300px;
  padding: 16px;
  border: 1px solid #cdbdad;
  border-radius: 0 0 8px 8px;
  background: #fff;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rich-editor:focus {
  outline: 3px solid rgba(116, 22, 37, .14);
  border-color: var(--wine);
}

.rich-editor h2,
.rich-editor h3 {
  color: var(--wine);
  font-family: Georgia, serif;
}

.post-image-preview {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 10px;
}

.post-image-preview img {
  width: min(360px, 100%);
  max-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3eee7;
  object-fit: contain;
}

.post-image-preview span {
  color: var(--muted);
  font-size: .8rem;
}

.image-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 400 !important;
}

.image-remove input { min-height: auto; }

@media (max-width: 700px) {
  .rich-toolbar > * { flex: 1 1 auto; }
  .rich-toolbar select { flex-basis: 100%; }
  .post-image-preview { display: block; }
  .post-image-preview span { display: block; margin-top: 6px; }
}
