 .blok-output, .roadmap-block-content, .changelog-entry-body).
 * Одинаковые отступы, размеры шрифтов, рендер. Без дублирования.
 */

/* --- Переменные: размеры и отступы --- */
.editor-content,
.blok-output,
.roadmap-block-content,
.changelog-entry-body,
.eidoc-readable,
.prose {
  font-family: var(--ui-font-body, inherit);
  --editor-font-size: var(--ui-type-body-size, 1rem);
  --editor-line-height: var(--ui-type-body-lh, 1.625);
  --editor-block-spacing: var(--ui-space-3, 0.75rem);
  --editor-inline-spacing: var(--ui-space-1, 0.25rem);
  --editor-header-1: var(--ui-type-h1, 2rem);
  --editor-header-2: var(--ui-type-h2, 1.5rem);
  --editor-header-3: var(--ui-type-h3, 1.25rem);
  --editor-header-4: var(--ui-type-h4, 1.125rem);
  --editor-header-5: var(--ui-type-h5, 1rem);
  --editor-header-6: var(--ui-type-h6, 0.875rem);
  font-size: var(--editor-font-size);
  line-height: var(--editor-line-height);
}

/* --- Общий вертикальный ритм блоков --- */
.editor-content > *,
.editor-content > .editor-content__checklist,
.eidoc-readable > *,
.eidoc-readable > .editor-content__checklist,
.prose > *,
.prose > .editor-content__checklist {
  margin-top: 0;
  margin-bottom: var(--editor-block-spacing);
}
.editor-content > *:last-child,
.eidoc-readable > *:last-child,
.prose > *:last-child {
  margin-bottom: 0;
}

/* --- Layout: toolbar left, content right{
  padding-right: 4px;
}

/* Mobile: уменьшаем отступ контента для узких экранов */
@media (max-width: 640px) {
}

/* Small mobile: ещё компактнее для экранов <400px */
@media (max-width: 400px) {
}

/* --- Заголовки (h1–h6) --- */
#blok-changelog-holder [data-level="1"],
#blok-roadmap-holder [data-level="1"],
#blok-add-row-holder [data-level="1"],
.editor-content [data-level="1"],
.editor-content .editor-content__header[data-level="1"],
.eidoc-readable [data-level="1"],
.eidoc-readable .editor-content__header[data-level="1"],
.prose [data-level="1"],
.prose .editor-content__header[data-level="1"]{
  font-size: var(--editor-header-1);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

#blok-changelog-holder [data-level="2"],
#blok-roadmap-holder [data-level="2"],
#blok-add-row-holder [data-level="2"],
.editor-content [data-level="2"],
.editor-content .editor-content__header[data-level="2"],
.eidoc-readable [data-level="2"],
.eidoc-readable .editor-content__header[data-level="2"],
.prose [data-level="2"],
.prose .editor-content__header[data-level="2"]{
  font-size: var(--editor-header-2);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

#blok-changelog-holder [data-level="3"],
#blok-roadmap-holder [data-level="3"],
#blok-add-row-holder [data-level="3"],
.editor-content [data-level="3"],
.editor-content .editor-content__header[data-level="3"],
.eidoc-readable [data-level="3"],
.eidoc-readable .editor-content__header[data-level="3"],
.prose [data-level="3"],
.prose .editor-content__header[data-level="3"]{
  font-size: var(--editor-header-3);
  line-height: 1.35;
  font-weight: 600;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

#blok-changelog-holder [data-level="4"],
#blok-roadmap-holder [data-level="4"],
#blok-add-row-holder [data-level="4"],
.editor-content [data-level="4"],
.editor-content .editor-content__header[data-level="4"],
.eidoc-readable [data-level="4"],
.eidoc-readable .editor-content__header[data-level="4"],
.prose [data-level="4"],
.prose .editor-content__header[data-level="4"]{
  font-size: var(--editor-header-4);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

#blok-changelog-holder [data-level="5"],
#blok-roadmap-holder [data-level="5"],
#blok-add-row-holder [data-level="5"],
.editor-content [data-level="5"],
.editor-content .editor-content__header[data-level="5"],
.eidoc-readable [data-level="5"],
.eidoc-readable .editor-content__header[data-level="5"],
.prose [data-level="5"],
.prose .editor-content__header[data-level="5"]{
  font-size: var(--editor-header-5);
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

#blok-changelog-holder [data-level="6"],
#blok-roadmap-holder [data-level="6"],
#blok-add-row-holder [data-level="6"],
.editor-content [data-level="6"],
.editor-content .editor-content__header[data-level="6"],
.eidoc-readable [data-level="6"],
.eidoc-readable .editor-content__header[data-level="6"],
.prose [data-level="6"],
.prose .editor-content__header[data-level="6"]{
  font-size: var(--editor-header-6);
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 var(--editor-inline-spacing) 0;
}

/* --- Параграф --- */
.editor-content p,
.editor-content .editor-content__paragraph,
.blok-output p,
.roadmap-block-content p,
.changelog-entry-body p,
.eidoc-readable p,
.eidoc-readable .editor-content__paragraph,
.prose p,
.prose .editor-content__paragraph {
  margin: 0 0 var(--editor-block-spacing) 0;
  font-size: var(--editor-font-size);
}
.editor-content p:last-child,
.eidoc-readable p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

/* --- Список --- */
.editor-content .editor-content__list,
.editor-content ul[data-style],
.editor-content ol[data-style],
.blok-output .editor-content__list,
.roadmap-block-content .editor-content__list,
.changelog-entry-body .editor-content__list,
.eidoc-readable .editor-content__list,
.prose .editor-content__list,
.eidoc-readable ul[data-style],
.prose ul[data-style],
.eidoc-readable ol[data-style],
.prose ol[data-style]{
  margin: var(--editor-block-spacing) 0;
  padding-left: 1.5em;
}

.editor-content .editor-content__list--ordered,
.editor-content ol[data-style="ordered"],
.eidoc-readable .editor-content__list--ordered,
.eidoc-readable ol[data-style="ordered"],
.prose .editor-content__list--ordered,
.prose ol[data-style="ordered"]{
  list-style-type: decimal;
}

.editor-content .editor-content__list--ordered,
.editor-content ol.editor-content__list--ordered[data-style="ordered"],
.blok-output .editor-content__list--ordered,
.blok-output ol.editor-content__list--ordered[data-style="ordered"],
.roadmap-block-content .editor-content__list--ordered,
.roadmap-block-content ol.editor-content__list--ordered[data-style="ordered"],
.changelog-entry-body .editor-content__list--ordered,
.changelog-entry-body ol.editor-content__list--ordered[data-style="ordered"],
.eidoc-readable .editor-content__list--ordered,
.eidoc-readable ol.editor-content__list--ordered[data-style="ordered"],
.prose .editor-content__list--ordered,
.prose ol.editor-content__list--ordered[data-style="ordered"],
.eidoc-readable ol.editor-content__list--ordered,
.prose ol.editor-content__list--ordered {
  counter-reset: blok-ordered-list;
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}

.editor-content__list--ordered,
.eidoc-readable .editor-content__list--ordered,
.prose .editor-content__list--ordered {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}

.editor-content .editor-content__list--ordered > .editor-content__list-item,
.blok-output .editor-content__list--ordered > .editor-content__list-item,
.roadmap-block-content .editor-content__list--ordered > .editor-content__list-item,
.changelog-entry-body .editor-content__list--ordered > .editor-content__list-item,
.eidoc-readable .editor-content__list--ordered > .editor-content__list-item,
.prose .editor-content__list--ordered > .editor-content__list-item,
.eidoc-readable ol.editor-content__list--ordered > li,
.prose ol.editor-content__list--ordered > li {
  counter-increment: blok-ordered-list;
  display: block;
  list-style: none !important;
  list-style-type: none !important;
}

.editor-content__list--ordered > .editor-content__list-item,
.eidoc-readable .editor-content__list--ordered > .editor-content__list-item,
.prose .editor-content__list--ordered > .editor-content__list-item,
.eidoc-readable ol.editor-content__list--ordered > li,
.prose ol.editor-content__list--ordered > li {
  display: block;
  list-style: none !important;
  list-style-type: none !important;
}

.editor-content .editor-content__list--ordered > .editor-content__list-item::before,
.blok-output .editor-content__list--ordered > .editor-content__list-item::before,
.roadmap-block-content .editor-content__list--ordered > .editor-content__list-item::before,
.changelog-entry-body .editor-content__list--ordered > .editor-content__list-item::before,
.eidoc-readable .editor-content__list--ordered > .editor-content__list-item::before,
.prose .editor-content__list--ordered > .editor-content__list-item::before,
.eidoc-readable ol.editor-content__list--ordered > li::before,
.prose ol.editor-content__list--ordered > li::before {
  content: none !important;
}

.editor-content__list--ordered > .editor-content__list-item::before,
.eidoc-readable .editor-content__list--ordered > .editor-content__list-item::before,
.prose .editor-content__list--ordered > .editor-content__list-item::before,
.eidoc-readable ol.editor-content__list--ordered > .editor-content__list-item::before,
.prose ol.editor-content__list--ordered > .editor-content__list-item::before,
.eidoc-readable ol.editor-content__list--ordered > li::before,
.prose ol.editor-content__list--ordered > li::before {
  content: none !important;
}

.editor-content .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before,
.blok-output .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before,
.roadmap-block-content .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before,
.changelog-entry-body .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before,
.eidoc-readable .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before,
.prose .editor-content__list--ordered > .editor-content__list-item > .cdx-list__item-content::before {
  content: none !important;
}

.editor-content .editor-content__list-marker,
.blok-output .editor-content__list-marker,
.roadmap-block-content .editor-content__list-marker,
.changelog-entry-body .editor-content__list-marker,
.eidoc-readable .editor-content__list-marker,
.prose .editor-content__list-marker {
  font-variant-numeric: tabular-nums;
}

.editor-content__list-marker,
.eidoc-readable .editor-content__list-marker,
.prose .editor-content__list-marker {
  font-variant-numeric: tabular-nums;
}

.editor-content .editor-content__indent,
.blok-output .editor-content__indent,
.roadmap-block-content .editor-content__indent,
.changelog-entry-body .editor-content__indent,
.eidoc-readable .editor-content__indent,
.prose .editor-content__indent {
  display: block;
  max-width: 100%;
}
.editor-content .editor-content__list--level-2,
.blok-output .editor-content__list--level-2,
.roadmap-block-content .editor-content__list--level-2,
.changelog-entry-body .editor-content__list--level-2,
.eidoc-readable .editor-content__list--level-2,
.prose .editor-content__list--level-2 {
  margin-left: 1.5em;
}
.editor-content .editor-content__list--level-3,
.blok-output .editor-content__list--level-3,
.roadmap-block-content .editor-content__list--level-3,
.changelog-entry-body .editor-content__list--level-3,
.eidoc-readable .editor-content__list--level-3,
.prose .editor-content__list--level-3 {
  margin-left: 3em;
}
.editor-content .editor-content__list--level-4,
.blok-output .editor-content__list--level-4,
.roadmap-block-content .editor-content__list--level-4,
.changelog-entry-body .editor-content__list--level-4,
.eidoc-readable .editor-content__list--level-4,
.prose .editor-content__list--level-4 {
  margin-left: 4.5em;
}

.editor-content .editor-content__list--unordered,
.editor-content ul[data-style="unordered"],
.eidoc-readable .editor-content__list--unordered,
.eidoc-readable ul[data-style="unordered"],
.prose .editor-content__list--unordered,
.prose ul[data-style="unordered"]{
  list-style-type: disc;
}

.editor-content .editor-content__list-item,
.editor-content .editor-content__list li,
.blok-output .editor-content__list-item,
.roadmap-block-content .editor-content__list-item,
.changelog-entry-body .editor-content__list-item,
.eidoc-readable .editor-content__list-item,
.eidoc-readable .editor-content__list li,
.prose .editor-content__list-item,
.prose .editor-content__list li{
  margin: var(--editor-inline-spacing) 0;
  font-size: var(--editor-font-size);
}

.editor-content .editor-content__list .editor-content__list,
.blok-output .editor-content__list .editor-content__list,
.roadmap-block-content .editor-content__list .editor-content__list,
.changelog-entry-body .editor-content__list .editor-content__list,
.eidoc-readable .editor-content__list .editor-content__list,
.prose .editor-content__list .editor-content__list {
  margin: var(--editor-inline-spacing) 0 0;
}

/* --- Чеклист --- */
.editor-content .editor-content__checklist,
.editor-content .checklist,
.blok-output .editor-content__checklist,
.roadmap-block-content .editor-content__checklist,
.changelog-entry-body .editor-content__checklist,
.eidoc-readable .editor-content__checklist,
.eidoc-readable .checklist,
.prose .editor-content__checklist,
.prose .checklist{
  list-style: none;
  padding-left: 0;
  margin: var(--editor-block-spacing) 0;
}

.editor-content .checklist-item,
.editor-content .editor-content__checklist-item,
.blok-output .editor-content__checklist-item,
.roadmap-block-content .editor-content__checklist-item,
.changelog-entry-body .editor-content__checklist-item,
.eidoc-readable .checklist-item,
.eidoc-readable .editor-content__checklist-item,
.prose .checklist-item,
.prose .editor-content__checklist-item{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--editor-inline-spacing) 0;
  list-style: none;
  font-size: var(--editor-font-size);
}

.editor-content .checklist-item input[type="checkbox"],
.editor-content .editor-content__checklist-item input[type="checkbox"],
.blok-output .editor-content__checklist-item input[type="checkbox"],
.roadmap-block-content .editor-content__checklist-item input[type="checkbox"],
.changelog-entry-body .editor-content__checklist-item input[type="checkbox"],
.eidoc-readable .checklist-item input[type="checkbox"],
.eidoc-readable .editor-content__checklist-item input[type="checkbox"],
.prose .checklist-item input[type="checkbox"],
.prose .editor-content__checklist-item input[type="checkbox"]{
  margin-top: 0.25em;
  flex-shrink: 0;
  cursor: pointer;
}

.editor-content .checklist-item span,
.editor-content .editor-content__checklist-item span,
.blok-output .editor-content__checklist-item span,
.roadmap-block-content .editor-content__checklist-item span,
.changelog-entry-body .editor-content__checklist-item span,
.eidoc-readable .checklist-item span,
.eidoc-readable .editor-content__checklist-item span,
.prose .checklist-item span,
.prose .editor-content__checklist-item span{
  flex: 1;
}

.editor-content .checklist-item.is-checked span,
.editor-content .editor-content__checklist-item.is-checked span,
.blok-output .editor-content__checklist-item.is-checked span,
.roadmap-block-content .editor-content__checklist-item.is-checked span,
.changelog-entry-body .editor-content__checklist-item.is-checked span,
.eidoc-readable .checklist-item.is-checked span,
.eidoc-readable .editor-content__checklist-item.is-checked span,
.prose .checklist-item.is-checked span,
.prose .editor-content__checklist-item.is-checked span{
  text-decoration: line-through;
  opacity: 0.85;
}

.editor-content .checklist-item.is-checked input[type="checkbox"],
.editor-content .editor-content__checklist-item.is-checked input[type="checkbox"],
.blok-output .editor-content__checklist-item.is-checked input[type="checkbox"],
.roadmap-block-content .editor-content__checklist-item.is-checked input[type="checkbox"],
.changelog-entry-body .editor-content__checklist-item.is-checked input[type="checkbox"],
.eidoc-readable .checklist-item.is-checked input[type="checkbox"],
.eidoc-readable .editor-content__checklist-item.is-checked input[type="checkbox"],
.prose .checklist-item.is-checked input[type="checkbox"],
.prose .editor-content__checklist-item.is-checked input[type="checkbox"]{
  accent-color: hsl(var(--p));
}

.editor-content .editor-content__checklist .editor-content__checklist,
.blok-output .editor-content__checklist .editor-content__checklist,
.roadmap-block-content .editor-content__checklist .editor-content__checklist,
.changelog-entry-body .editor-content__checklist .editor-content__checklist,
.eidoc-readable .editor-content__checklist .editor-content__checklist,
.prose .editor-content__checklist .editor-content__checklist {
  flex-basis: 100%;
  margin: var(--editor-inline-spacing) 0 0 1.75rem;
}

/* --- Разделитель --- */
.editor-content hr.blok-delimiter,
.blok-delimiter,
.eidoc-readable hr.blok-delimiter,
.prose hr.blok-delimiter {
  border: none;
  border-top: 2px solid currentColor;
  opacity: 0.3;
  margin: var(--editor-block-spacing) 0;
}

/* --- Цитата --- */
.editor-content blockquote,
.blok-output blockquote,
.roadmap-block-content blockquote,
.changelog-entry-body blockquote,
.eidoc-readable blockquote,
.prose blockquote {
  border-left: 4px solid currentColor;
  opacity: 0.9;
  margin: var(--editor-block-spacing) 0;
  padding: 0.5em 0 0.5em 1em;
  font-style: italic;
  font-size: var(--editor-font-size);
}

.editor-content blockquote cite,
.blok-output blockquote cite,
.eidoc-readable blockquote cite,
.prose blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.875em;
  opacity: 0.8;
}

/* --- Blok floating panels — глобальный z-index{
  position: relative;
  z-index: 1;
}

/* Blok в модальных окнах и других контейнерах: отключаем overflow: hidden, чтобы не обрезать плавающие панели */
.cpanel-dev-modal-box {
  overflow: visible !important;
}
/* --- Код (блочный) --- */
.editor-content pre,
.editor-content .editor-content__code,
.blok-output pre,
.roadmap-block-content pre,
.changelog-entry-body pre,
.eidoc-readable pre,
.eidoc-readable .editor-content__code,
.prose pre,
.prose .editor-content__code {
  background: var(--fallback-n, oklch(var(--n) / 0.1));
  padding: 0.75em 1em;
  border-radius: 0.5em;
  overflow-x: auto;
  font-size: 0.875em;
  margin: var(--editor-block-spacing) 0;
}

.editor-content pre code,
.editor-content .editor-content__code code,
.eidoc-readable pre code,
.eidoc-readable .editor-content__code code,
.prose pre code,
.prose .editor-content__code code {
  background: none;
  padding: 0;
}

/* --- Изображение --- */
.editor-content .blok-image figure,
.blok-image figure,
.eidoc-readable .blok-image figure,
.prose .blok-image figure {
  margin: var(--editor-block-spacing) 0;
}

.editor-content .blok-image img,
.blok-image img,
.eidoc-readable .blok-image img,
.prose .blok-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5em;
}

.editor-content .blok-image figcaption,
.blok-image figcaption,
.eidoc-readable .blok-image figcaption,
.prose .blok-image figcaption {
  font-size: 0.875em;
  opacity: 0.8;
  margin-top: 0.25em;
}

/* --- Таблица (вывод) --- */
.editor-content .table-overflow,
.blok-output .table-overflow,
.eidoc-readable .table-overflow,
.prose .table-overflow,
.table-overflow {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--editor-block-spacing) 0;
}

.editor-content .table-overflow table,
.eidoc-readable .table-overflow table,
.prose .table-overflow table,
.table-overflow table {
  min-width: 280px;
  font-size: var(--editor-font-size);
}

/* --- Raw / прочее --- */
.editor-content .blok-raw,
.blok-output .blok-raw,
.eidoc-readable .blok-raw,
.prose .blok-raw {
  margin: var(--editor-block-spacing) 0;
  font-size: var(--editor-font-size);
}
