/**
 * ModuloEditor reset.
 *
 * Provides a minimal, non-opinionated base using scoped data-* attributes.
 * No visual styles are applied at this level.
 *
 * Consumers are expected to style the editor with their own CSS.
 */

[data-mo-editor],
[data-mo-editor] * {
    box-sizing: border-box;
}

[data-mo-editor] {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

[data-mo-editor-header],
[data-mo-editor-body],
[data-mo-editor-footer],
[data-mo-editor-toolbar],
[data-mo-editor-input],
[data-mo-editor-preview],
[data-mo-editor-status] {
    margin: 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
}

[data-mo-editor-header] {
    display: flex;
}

[data-mo-editor-toolbar] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

[data-mo-editor-toolbar] button {
    appearance: none;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

[data-mo-editor-body] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: 350px;
}

[data-mo-editor-body] > * {
    min-width: 0;
    min-height: 0;
}

[data-mo-editor-input] {
    display: flex;
}

[data-mo-editor-input] textarea {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.5rem;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font: inherit;
    color: inherit;
}

[data-mo-editor-preview] {
    overflow: auto;
    padding: 0.5rem;
}

[data-mo-editor-status] {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}