/* Редактор публикаций (новости, галерея) */
.composer-box {
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-input-bg, rgba(255, 255, 255, 0.9));
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.35);
}

.composer-tool {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid var(--home-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--home-text);
  font-family: var(--font-home);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.composer-tool:hover {
  background: rgba(255, 179, 71, 0.2);
  border-color: var(--home-accent);
}

.composer-editor {
  min-height: 5.5rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-home);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--home-text);
  outline: none;
}

.composer-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--home-text-muted);
  pointer-events: none;
}

.composer-editor.upload-caption-editor {
  min-height: 4rem;
  max-height: 8rem;
}

.composer-sticker-wrap,
.composer-box .feed-sticker-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 0.5rem 0.45rem;
  border-top: 1px dashed rgba(155, 107, 184, 0.2);
}

.rich-text b,
.rich-text strong {
  font-weight: 800;
}

.rich-text i,
.rich-text em {
  font-style: italic;
}

.feed-caption-empty {
  color: var(--home-text-muted);
  font-style: italic;
}

.news-card-body.rich-text {
  line-height: 1.65;
}

.news-card-media {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.news-card-media.count-1 {
  grid-template-columns: 1fr;
}

.news-card-media.count-2 {
  grid-template-columns: 1fr 1fr;
}

.news-card-media.count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.news-card-media.count-3 .news-card-media-cell:first-child {
  grid-row: span 2;
}

.news-card-media.count-many {
  grid-template-columns: repeat(2, 1fr);
}

.news-card-media-cell {
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
  line-height: 0;
  min-height: 120px;
}

.news-card-media-cell img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.news-images-dropzone {
  margin-bottom: 0.85rem;
}

.composer-footer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
