.redmont-editor {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}

.redmont-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.redmont-editor-toolbar button {
    min-width: 34px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
}

.redmont-editor-toolbar button:hover {
    border-color: #596575;
}

.redmont-editor-surface {
    min-height: 280px;
    padding: 18px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.redmont-editor-surface:focus {
    box-shadow: inset 0 0 0 1px var(--accent);
}

.redmont-editor-surface img {
    max-width: 100%;
    height: auto;
}

.redmont-editor-surface table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.redmont-editor-surface td,
.redmont-editor-surface th {
    border: 1px solid var(--line);
    padding: 10px;
    min-width: 60px;
}

.editor-checklist {
    list-style: none;
    padding-left: 0;
}

.editor-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.editor-checklist input {
    width: auto !important;
    margin: 0 !important;
}

.editor-footer {
    margin-top: 28px;
}

.editor-footer hr {
    border: 0;
    border-top: 1px solid var(--line);
}

.editor-footer p {
    color: var(--muted);
    margin-bottom: 0;
}

@media (max-width: 600px) {

    .redmont-editor-toolbar {
        gap: 4px;
    }

    .redmont-editor-toolbar button {
        min-width: 32px;
        padding: 5px 7px;
        font-size: 12px;
    }

}
