/* «Редактор текста онлайн» (/text-editor): кнопки над полем, группы действий, меню, результат ИИ */
.editor-toolbar .btn,
.editor-toolbar .photo-holder {
    margin: 0 .35rem .35rem 0;
}
.editor-toolbar .photo-holder .btn {
    margin: 0;
}
.editor-mode #text {
    min-height: 16rem;
    font-size: 1rem;
    line-height: 1.5;
}
#editor-stats {
    white-space: nowrap;
}
.editor-draft {
    font-size: .875rem;
    margin-right: .5rem;
}
.editor-group-title {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 .5rem .35rem 0;
}
#editor-check-title {
    display: block;
    margin-top: .25rem;
}
.editor-actions {
    margin-top: .75rem;
}
.editor-group {
    margin-bottom: .5rem;
}
.editor-group .editor-group-title {
    display: block;
}
.editor-group > .btn,
.editor-group .editor-menu-holder {
    margin: 0 .35rem .35rem 0;
}
.editor-menu-holder {
    position: relative;
    display: inline-block;
}
.editor-menu {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    min-width: 13rem;
    padding: .25rem 0;
    margin-top: .15rem;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}
.editor-menu-item {
    display: block;
    width: 100%;
    padding: .45rem .9rem;
    text-align: left;
    background: none;
    border: 0;
    color: #212529;
    font-size: .9rem;
    white-space: nowrap;
}
.editor-menu-item:hover,
.editor-menu-item:focus {
    background: #f1f3f9;
    color: #212529;
    text-decoration: none;
}
.editor-find .form-control {
    width: auto;
    flex: 1 1 10rem;
    max-width: 16rem;
}
.editor-ai {
    border-color: #c5cae9;
}
.editor-ai-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 26rem;
    overflow-y: auto;
    padding: .5rem .75rem;
    background: #fafbfe;
    border: 1px solid #e3e6f0;
    border-radius: .25rem;
}
@media (max-width: 575.98px) {
    .editor-mode #text {
        min-height: 12rem;
    }
    .editor-toolbar .btn {
        padding: .35rem .6rem;
    }
    .editor-group > .btn,
    .editor-group .editor-menu-holder > .btn {
        padding: .4rem .65rem;
    }
    .editor-menu {
        min-width: 12rem;
    }
}
.editor-menu-holder {
    vertical-align: top;
}
.editor-menu-holder > .btn {
    margin: 0;
}
