/* Public editorial actions, shared by the current and legacy page shells. */
a.editor-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    padding: .6rem .9rem;
    border: 1px solid #d8bed4;
    border-radius: .65rem;
    background: #fbf5fa;
    color: #702767;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: .8125rem;
    font-weight: 650;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    vertical-align: middle;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 2px #4820400a;
}
a.editor-action:hover {
    border-color: #86317d;
    background: #f0e2ee;
    color: #54204e;
    text-decoration: none;
}
a.editor-action:focus-visible {
    outline: 3px solid #702767;
    outline-offset: 3px;
}
a.editor-action .editor-action-icon {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
}
.editor-review-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid #eadfe8;
    border-inline-start: 3px solid #86317d;
    border-radius: .8rem;
    background: #fcfafc;
}
.editor-toolbar-label {
    flex-basis: 100%;
    color: #702767;
    font: 700 .75rem/1.5 ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.editor-toolbar-meta {
    color: #59505a;
    font: 400 .75rem/1.5 ui-sans-serif, system-ui, sans-serif;
}
@media (min-width: 64rem) {
    .editor-review-heading:has(> .editor-toolbar) {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
        gap: 2rem;
    }
    .editor-toolbar {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .editor-toolbar-label { flex-basis: auto; }
    .editor-toolbar .editor-action { justify-content: flex-start; }
}
@media (forced-colors: active) {
    a.editor-action, .editor-toolbar { border-color: ButtonText; }
    a.editor-action:focus-visible { outline-color: Highlight; }
}

/* Keep title spacing independent of the action row and its touch targets. */
.editor-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    margin-block-end: 1.5rem;
}
.editor-page-heading > header {
    min-width: 0;
    margin: 0;
}
.editor-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
@media (min-width: 64rem) {
    .editor-page-heading:has(> .editor-page-actions) {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .editor-page-actions { max-width: 20rem; }
}
