.admin-body {
    font-size: 15px;
    line-height: 1.55;
}

.admin-main {
    width: min(1180px, 100%);
}

.admin-main h1 {
    font-size: clamp(2rem, 4vw, 2.55rem);
    line-height: 1.18;
}

.admin-main h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.admin-main h3 {
    font-size: 1.08rem;
}

.editor {
    width: min(920px, 100%);
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-label {
    font-weight: 700;
}

.rich-editor {
    gap: 0;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px solid #aeb8c1;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #f5f8fb;
}

.rich-toolbar button,
.rich-toolbar select {
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #aeb8c1;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.rich-toolbar button:hover,
.rich-toolbar button:focus-visible,
.rich-toolbar select:focus-visible {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(23, 59, 103, .16);
}

.toolbar-divider {
    width: 1px;
    margin: 4px 2px;
    background: #cfd7de;
}

.rich-surface {
    min-height: 18em;
    max-height: 70vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid #aeb8c1;
    border-radius: 0 0 10px 10px;
    background: #fff;
    color: var(--ink);
    line-height: 1.65;
}

.rich-surface-compact {
    min-height: 12em;
}

.rich-surface-tall {
    min-height: 25em;
}

.rich-surface:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23, 59, 103, .14);
    outline: 0;
}

.rich-surface:empty::before {
    content: "Comece a escrever aqui…";
    color: #71808d;
}

.rich-surface h2,
.rich-surface h3,
.rich-surface h4 {
    color: var(--navy);
    font-family: Georgia, serif;
}

.rich-surface blockquote {
    margin: 1em 0;
    padding: 10px 18px;
    border-left: 4px solid var(--blue);
    background: #edf3fa;
}

.visual-settings {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dbe1e6;
    border-radius: 14px;
    background: #f8fafc;
}

.visual-settings h2 {
    margin: 0;
    font: 700 22px Georgia, serif;
    color: var(--navy);
}

.audit-details {
    display: grid;
    gap: 4px;
    margin: 0;
}

.audit-details div {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 8px;
}

.audit-details dt {
    font-weight: 700;
}

.audit-details dd {
    margin: 0;
}

.text-align-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-justify { text-align: justify; }

@media (max-width: 700px) {
    .rich-toolbar {
        gap: 5px;
    }
    .rich-toolbar button,
    .rich-toolbar select {
        min-height: 42px;
    }
    .toolbar-divider {
        display: none;
    }
}

.section-image-settings { display: grid; gap: 20px; }
.section-image-field { display: grid; gap: 16px; min-width: 0; border: 1px solid #c8d8e1; border-radius: 12px; padding: 20px; }
.section-image-field legend { padding: 0 8px; font-weight: 700; }
.section-image-preview { display: block; width: auto; max-width: 100%; max-height: 180px; object-fit: contain; }
