/* Форум classicbk — локальные правки поверх cassic-design-forum.css
   (модуль forum; не меняет общий клиентский CSS проекта). */

/* Заголовок темы в списке конференции — 14px */
.fc-topic-d1 h2 {
    font-size: 14px;
}

/* Комментарий: слева круглый аватар, справа сообщение */
.ft-commentDiv,
.ft-to-comment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ft-avatar-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Квадратик сворачивания и счётчик — под аватаром, на линии ветки */
.ft-thread-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
    position: relative;
    z-index: 2;
}
.ft-thread-box .ft-thread-toggle {
    width: 16px;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    padding: 0;
    font-size: 11px;
}
.ft-thread-box .ft-thread-count {
    font-size: 7.5pt;
    line-height: 1.2;
}
.ft-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(90, 60, 30, 0.35);
    background-color: #000;
}
.ft-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #5b3e33;
    background-color: #d9c68e;
}
.ft-comment-main {
    flex: 1 1 auto;
    min-width: 0;
    /* внутренний отступ, чтобы текст не прилипал к краю подсветки :target */
    padding: 4px 10px 6px;
}

/* Панели под сообщением («Ответить», модерация) видны только при наведении
   на блок сообщения. .cd-frm-answ-moder лежит внутри .ft-answer-add,
   поэтому скрывается вместе с ним.
   Оборачиваем в @media (hover: hover): на тач-устройствах наведения нет,
   там панели остаются видимыми. */
@media (hover: hover) {
    .ft-comment-main > .ft-answer-add,
    .ft-comment-main > .ft-answer-add2 {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }
    .ft-commentDiv:hover > .ft-comment-main > .ft-answer-add,
    .ft-to-comment:hover > .ft-comment-main > .ft-answer-add,
    .ft-to-comment:hover > .ft-comment-main > .ft-answer-add2,
    .ft-commentDiv:focus-within > .ft-comment-main > .ft-answer-add,
    .ft-to-comment:focus-within > .ft-comment-main > .ft-answer-add,
    .ft-to-comment:focus-within > .ft-comment-main > .ft-answer-add2 {
        opacity: 1;
        visibility: visible;
    }
}

/* Контейнер вложенных ответов под комментарием: если ответов нет — не показываем.
   Форма «Ответить» добавляется в этот же контейнер и делает его непустым. */
.ft_answers:empty {
    display: none;
}

/* Без разделительной линии между вложенными комментариями */
.ft-to-comment:not(:last-child) {
    border-bottom: 0;
}

/* Меню конференций: без кружков-маркеров, отступ слева 10px */
.cd-left-menu-forum ul {
    list-style: none;
    margin-left: 0;
    padding-left: 10px;
}
.cd-left-menu-forum li {
    margin-left: 0;
    list-style: none;
}

/* Цитата сообщения (без ссылок): сверху видно, что цитируется */
.ft-quote {
    position: relative;
    margin: 4px 0 8px;
    padding: 6px 10px;
    background: #f3e8c4;
    border-left: 3px solid #c6b071;
    border-radius: 0 3px 3px 0;
}
.ft-quote-head {
    font-size: 8.5pt;
    color: #6b5a3e;
    margin-bottom: 2px;
}
.ft-quote-text {
    font-size: 9pt;
    font-style: italic;
    color: #7a6a55;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* Крестик «убрать цитату» в форме цитирования */
.ft-quote-preview {
    padding-left: 30px;
    padding-right: 8px;
}
.ft-quote-remove {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 6px;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #8a7355;
    text-decoration: none;
    background: #e8d9a8;
    border-radius: 50%;
}
.ft-quote-remove:hover {
    background: #d9c68e;
    color: #4a3c26;
    text-decoration: none;
}

.ft-quote-form {
    margin: 6px 0 10px;
}
/* Подсветка комментария, к которому перешли по ссылке:
   мягкая «вспышка» с плавным затуханием (без резкого повторного мигания) */
@keyframes ft-target-glow {
    0% {
        background-color: rgba(255, 236, 178, 0);
        box-shadow: inset 0 0 0 rgba(198, 176, 113, 0), 0 0 0 0 rgba(198, 176, 113, 0);
    }
    18% {
        background-color: #ffeeb4;
        box-shadow: inset 4px 0 0 #c6b071, 0 0 0 3px rgba(198, 176, 113, 0.32);
    }
    46% {
        background-color: #fff8e2;
        box-shadow: inset 4px 0 0 #dbcb99, 0 0 0 3px rgba(198, 176, 113, 0.10);
    }
    72% {
        background-color: #ffefb9;
        box-shadow: inset 4px 0 0 #c6b071, 0 0 0 3px rgba(198, 176, 113, 0.24);
    }
    100% {
        background-color: #fff3cf;
        box-shadow: inset 4px 0 0 #c6b071, 0 0 0 3px rgba(198, 176, 113, 0.20);
    }
}
/* Выделяем блок сообщения (справа от аватара), а не весь ряд:
   аватар остаётся слева и не «западает» на подсветку */
.ft-commentDiv:target > .ft-comment-main,
.ft-to-comment:target > .ft-comment-main {
    background-color: #fff3cf;
    border-radius: 6px;
    animation: ft-target-glow 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.ft-commentDiv:target,
.ft-to-comment:target {
    scroll-margin-top: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .ft-commentDiv:target > .ft-comment-main,
    .ft-to-comment:target > .ft-comment-main {
        animation: none;
        box-shadow: inset 4px 0 0 #c6b071;
    }
}

/* Формы ответа/цитаты — в том же стиле и с тем же фоном, что форма создания темы */
.ft-reply-box {
    border: 5px solid #e4d7a3;
    background-color: #e4d7a3;
    border-radius: 2px;
    padding: 3px;
    margin-top: 6px;
}
.ft-reply-box .reply-textarea {
    border: 1px solid #95864c;
    background-color: #f8edc1;
    width: 100%;
    padding: 10px;
    margin-top: 7px;
    font-size: 12px;
}
.ft-reply-box .forum-reply {
    margin: 0 !important;
    padding: 5px;
}

/* ---- Дерево комментариев (в духе reddit) ---- */
/* Линии дерева рисуются SVG-слоем (forum-thread.js): плавные кривые */
.ft-commentDiv,
.ft-to-comment {
    position: relative;
    z-index: 1;
}
.ft-comments {
    position: relative;
}
.ft-thread-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}
.ft-thread-svg path {
    fill: none;
    stroke: #d9c68e;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ft_answers {
    background: transparent;
    border-left: 0;
    border-radius: 0;
    margin-top: 10px;
    margin-left: 6px;
    padding-left: 14px;
}
.ft_answers::before {
    display: none !important;
}
.ft-thread-collapsed {
    display: none !important;
}
.ft-comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.ft-thread-toggle {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border: 1px solid #b99e66;
    border-radius: 3px;
    background: #efe2b8;
    color: #5b3e33;
    font-weight: bold;
    font-size: 11px;
    text-decoration: none;
    padding: 0 2px;
}
.ft-thread-toggle:hover {
    background: #fff3cf;
    text-decoration: none;
}
.ft-thread-count {
    display: none;
    font-size: 8pt;
    color: #7a6a55;
    background: #e8d9a8;
    border-radius: 8px;
    padding: 0 6px;
}
/* Вложенный ответ: аватар меньше, без лишнего паддинга — отступ даёт линия ветки */
.ft-to-comment {
    padding-left: 0;
}
.ft-to-comment .ft-avatar {
    width: 32px;
    height: 32px;
}

/* ---- Мобильная версия (узкий экран) ---- */
@media (max-width: 700px) {
    /* меньше отступов: дерево не уезжает за экран */
    .ft-comments {
        margin-left: 0;
    }
    .ft-commentDiv {
        padding-left: 4px;
        padding-right: 4px;
    }
    .ft-to-comment {
        padding-left: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .ft-commentDiv,
    .ft-to-comment {
        gap: 4px;
    }
    .ft-avatar {
        width: 34px;
        height: 34px;
        border-width: 1px;
    }
    .ft-to-comment .ft-avatar {
        width: 24px;
        height: 24px;
    }
    .ft_answers {
        margin-left: 0;
        margin-top: 6px;
        padding-left: 4px;
    }
    /* глубже 3-го уровня отступ не растим, иначе текст сжимается в точку:
       компенсируем аватар+зазор родителя, чтобы ветка шла без сдвига вправо */
    .ft_answers .ft_answers .ft_answers {
        padding-left: 0;
        margin-left: 0;
    }
    .ft_answers .ft_answers .ft_answers > .ft-to-comment {
        margin-left: -28px;
    }
    /* время ответа переносится, а не вылезает за экран */
    .ft-time-line2 {
        margin-left: 0;
        white-space: normal;
    }
    .ft-comment-head > * {
        min-width: 0;
    }
    .ft-comment-head {
        gap: 2px 6px;
    }
    .ft-comment-main {
        padding: 2px 6px 4px;
    }
    .ft-reply-box {
        border-width: 3px;
        padding: 2px;
    }
    .ft-reply-box .reply-textarea {
        padding: 6px;
    }
    .ft-editor-table-wrap {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
    .fecbk-toolbar button {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    .fecbk-toolbar button[data-value],
    .fecbk-toolbar button[data-action] {
        min-width: 28px;
        height: 28px;
    }
    .fecbk-sep {
        height: 18px;
    }
    .ft-link-dialog-input {
        font-size: 16px;
    }
    .ft-smile-panel {
        max-height: 45vh;
    }
    .ft-smile-item {
        max-width: 38px;
        max-height: 38px;
    }
    .ft-table-tools button {
        padding: 3px 8px;
        font-size: 12px;
    }
    .ft-thread-toggle {
        min-width: 18px;
        height: 18px;
        line-height: 16px;
    }
    .ft-thread-box {
        margin-top: 2px;
    }

    /* длинные слова/ссылки не вылезают за экран */
    .ft-commentDiv,
    .ft-to-comment,
    .ft-text,
    .fc-info,
    .fc-topic-d1,
    .fc-topic-d2,
    .fc-topic-minitext,
    .ft-reply-to,
    .login,
    .loginsize {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* картинки, таблицы, код — по ширине экрана */
    .ft-text img,
    .fc-info img,
    .ft-commentDiv img,
    .ft-text iframe,
    .ft-text video,
    .ft-text table {
        max-width: 100%;
        height: auto;
    }
    .ft-text pre {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
    .ft-text table {
        display: table;
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    /* панели действий переносятся, а не распирают блок */
    .ft-answer-add,
    .ft-answer-add2,
    .cd-frm-answ-moder-html {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 8px;
    }
    .ft-reply-to a {
        white-space: normal;
    }
    .ft-reply-to {
        max-width: 100%;
    }
    /* кнопка мобильного меню: ровный шестиугольник 64px */
    .cd-btn-menu {
        right: 8px;
    }
    .cd-btn-menu svg {
        display: block;
        overflow: visible;
    }
}

/* AJAX-отправка: спиннер в кнопке (цвет наследуется от текста кнопки) */
.ft-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ft-spin 0.7s linear infinite;
    opacity: 0.9;
    vertical-align: -2px;
}
@keyframes ft-spin {
    to { transform: rotate(360deg); }
}
button.is-loading {
    min-width: 92px;
    opacity: 0.9;
    cursor: progress;
}
/* Подсветка только что добавленного комментария (без перезагрузки) */
.ft-new-comment > .ft-comment-main {
    background-color: #fff3cf;
    border-radius: 6px;
    animation: ft-target-glow 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* Галочка «Уведомлять о новых ответах» на странице темы */
.ft-notify-line {
    margin: 10px 0 6px;
    font-size: 9.5pt;
}
.ft-notify-line label {
    cursor: pointer;
}
.ft-notify-status {
    color: #6b5a3e;
    margin-left: 6px;
}

/* ---- Расширенный редактор создания темы (VK-стиль) ---- */
.fecbk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 3px;
    box-sizing: border-box;
}
.ft-table-tools {
    flex-wrap: wrap;
}
.reply-link .reply-input {
    max-width: 100%;
    box-sizing: border-box;
}
.fecbk-toolbar button[data-value],
.fecbk-toolbar button[data-action] {
    min-width: 30px;
}
.fecbk-toolbar button svg {
    display: block;
    margin: 0 auto;
}
.fecbk-sep {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: #95864c;
    margin: 4px 2px 0;
}

/* Диалог вставки ссылки */
.ft-link-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 60;
    display: block;
}
.ft-link-dialog-box {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    background: #f8edc1;
    border: 1px solid #95864c;
    border-radius: 4px;
    padding: 12px;
    width: min(420px, 90vw);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.ft-link-dialog-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #5b3e33;
}
.ft-link-dialog-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #95864c;
    background: #fff;
    padding: 6px 8px;
    font-size: 13px;
}
.ft-link-dialog-btns {
    margin-top: 10px;
    text-align: right;
}
.ft-link-dialog-btns button {
    cursor: pointer;
    margin-left: 6px;
    padding: 4px 12px;
    border: 1px solid #95864c;
    background: #e4d7a3;
    border-radius: 2px;
}
.ft-link-dialog-btns .ft-link-ok {
    background: #a79651;
    color: #fff;
    border-color: #8a7a41;
}

/* Панель смайлов (как в чате) */
.ft-smile-panel {
    position: fixed;
    z-index: 72;
    box-sizing: border-box;
    background: #f8edc1;
    border: 1px solid #95864c;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow-y: auto;
    max-height: 260px;
}
.ft-smile-item {
    width: auto;
    height: auto;
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
}
.ft-smile-item:hover {
    background: #e4d7a3;
}
.ft-smile-empty {
    padding: 10px;
    font-size: 12px;
    color: #6b5a3e;
}
/* смайлы в тексте топика/комментария */
.ft-text img.ft-smile,
.ft-comment-main img.ft-smile {
    vertical-align: middle;
    max-height: 2em;
    width: auto;
    height: auto;
}

/* Модальное окно размера ячейки */
.ft-cell-size-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}
.ft-cell-size-row label {
    min-width: 104px;
    font-size: 13px;
}
.ft-cell-size-row input[type="number"] {
    width: 84px;
    padding: 3px 5px;
}
.ft-cell-size-row select {
    padding: 3px;
}

/* Модальное окно ссылки */
.ft-link-dialog-label {
    font-size: 12px;
    color: #6b5a3e;
    margin: 8px 0 3px;
}
.ft-link-dialog-imgrow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ft-link-status {
    font-size: 12px;
    color: #6b5a3e;
}
.ft-link-preview {
    max-width: 100%;
    max-height: 78px;
    margin: 6px 0 0;
    border: 1px solid #cdbf8d;
    border-radius: 4px;
}

/* Модальное окно размера изображения */
.ft-img-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ft-img-modal-box {
    background: #fffbe8;
    border: 1px solid #95864c;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 14px 16px;
    width: min(420px, 92vw);
}
.ft-img-modal-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #5b3e33;
}
.ft-img-modal-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}
.ft-img-modal-row label {
    min-width: 64px;
    font-size: 13px;
}
.ft-img-modal input[type="number"] {
    width: 76px;
    padding: 3px 5px;
}
.ft-img-modal select {
    padding: 3px;
}
.ft-img-modal-btns {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.ft-img-modal-btns button {
    padding: 5px 12px;
    cursor: pointer;
}
.ft-img-modal-preview {
    max-width: 100%;
    max-height: 90px;
    display: block;
    margin: 6px auto;
}
.ft-img-reset {
    background: #b3333f;
    color: #fff;
    border: 0;
    border-radius: 4px;
}

/* Модальное окно загрузки изображения */
.ft-upload-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 65;
}
.ft-upload-box {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: min(360px, 90vw);
    background: #f8edc1;
    border: 1px solid #95864c;
    border-radius: 4px;
    padding: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.ft-upload-title {
    font-weight: bold;
    color: #5b3e33;
    margin-bottom: 10px;
}
.ft-upload-bar {
    height: 12px;
    background: #e4d7a3;
    border: 1px solid #95864c;
    border-radius: 3px;
    overflow: hidden;
}
.ft-upload-fill {
    width: 0%;
    height: 100%;
    background: #a79651;
    transition: width 0.15s linear;
}
.ft-upload-fill-error {
    background: #c0392b;
}
.ft-upload-status {
    margin-top: 6px;
    font-size: 12px;
    color: #5b3e33;
    text-align: center;
}
.ft-upload-error {
    margin-top: 8px;
    color: #a3241c;
    font-size: 12px;
    text-align: center;
}
.ft-upload-actions {
    margin-top: 10px;
    text-align: right;
}
.ft-upload-close {
    cursor: pointer;
    padding: 4px 12px;
    border: 1px solid #95864c;
    background: #e4d7a3;
    border-radius: 2px;
}

/* Таблица в редакторе и в тексте топика */
.ft-editor-table-wrap {
    position: relative;
    margin: 6px 0;
}
.ft-editor-table {
    border-collapse: collapse;
    width: 100%;
    background: #fbf6df;
    table-layout: fixed;
}
.ft-editor-table td {
    border: 1px solid #95864c;
    padding: 6px 8px;
    min-width: 60px;
    vertical-align: top;
}
.ft-table-tools {
    margin-top: 3px;
    display: flex;
    gap: 6px;
}
.ft-table-tools button {
    cursor: pointer;
    border: 1px solid #95864c;
    background: #e4d7a3;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
}
.ft-table-tools .ft-table-del {
    margin-left: auto;
    color: #8a2f2f;
}
.ft-table-tools select.ft-table-style {
    border: 1px solid #95864c;
    background: #fbf6df;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 11px;
    cursor: pointer;
}

/* Три стиля таблицы: Разметка (по умолчанию), Блоки, Таблица */
.ft-editor-table.ft-table-layout,
.ft-text table.ft-table-layout {
    background: transparent;
}
/* в редакторе «Разметка» показывается пунктиром, на форуме — без границ */
.ft-editor-table.ft-table-layout td {
    border: 1px dashed #b9a86a;
    background: transparent;
}
.ft-text table.ft-table-layout td,
.ft-text table.ft-table-layout th {
    border-color: transparent;
    background: transparent;
}
.ft-editor-table.ft-table-grid tr:first-child td,
.ft-text table.ft-table-grid tr:first-child td,
.ft-text table.ft-table-grid tr:first-child th {
    border-top: 2px solid #5b3e33;
    background: #efe3b5;
}
.ft-editor-table td.ft-cell-center,
.ft-text table td.ft-cell-center,
.ft-text table th.ft-cell-center {
    text-align: center;
}
.ft-editor-table td.ft-cell-right,
.ft-text table td.ft-cell-right,
.ft-text table th.ft-cell-right {
    text-align: right;
}

/* Модальное окно фона ячейки */
.ft-bg-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ft-bg-picker {
    width: 44px;
    height: 30px;
    border: 1px solid #95864c;
    background: #fff;
    cursor: pointer;
    padding: 0;
}
.ft-bg-input {
    flex: 1;
    border: 1px solid #95864c;
    padding: 6px 8px;
    font-size: 13px;
}

/* Меню ячейки таблицы */
.ft-cell-menu {
    position: fixed;
    z-index: 70;
    background: #3a3228;
    border: 1px solid #6b5a3e;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 150px;
}
.ft-cell-menu button {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    color: #f2e5b1;
    text-align: left;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
}
.ft-cell-menu button:hover {
    background: #5a4d38;
}
.ft-editor-table td.ft-cell-hl {
    outline: 2px solid #c0392b;
    outline-offset: -2px;
    background: rgba(192, 57, 43, 0.15);
}

/* Отрисовка расширенного контента в тексте топика */
.ft-text table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    background: #fbf6df;
}
.ft-text table td,
.ft-text table th {
    word-break: break-word;
}
.ft-text table td,
.ft-text table th {
    border: 1px solid #95864c;
    padding: 6px 8px;
    vertical-align: top;
}
.ft-text img {
    max-width: 100%;
    height: auto;
}
.ft-text hr {
    border: 0;
    border-top: 2px solid #95864c;
    margin: 12px 0;
}
.ft-text blockquote,
.fecbk-editor blockquote {
    margin: 8px 0;
    padding: 6px 12px;
    border-left: 4px solid #a79651;
    background: #f8edc1;
    border-radius: 3px;
}
.ft-text h2, .ft-text h3, .ft-text h4 {
    margin: 10px 0 4px;
    color: #5b3e33;
}
.ft-text ul, .ft-text ol {
    margin: 6px 0 6px 26px;
    padding-left: 0;
}
.ft-text ul {
    list-style: disc outside;
}
.ft-text ol {
    list-style: decimal outside;
}
.ft-text li {
    display: list-item;
    margin: 2px 0;
}
.ft-text ul ul {
    list-style-type: circle;
}
.ft-text ul ul ul {
    list-style-type: square;
}

/* Списки и блоки в редакторе */
.fecbk-editor ul, .fecbk-editor ol {
    margin: 4px 0 4px 24px;
    padding-left: 0;
}
.fecbk-editor ul {
    list-style: disc outside;
}
.fecbk-editor ol {
    list-style: decimal outside;
}
.fecbk-editor li {
    display: list-item;
    margin: 2px 0;
}


