.editor-save-status { color: var(--muted); font-size: .875rem; margin: 0; }
.editor-save-status.has-changes { color: var(--ink); }
.editor-error-summary { border: 2px solid var(--danger, #b42318); border-radius: 12px; padding: 16px; background: var(--surface); }
.editor-error-summary[hidden] { display: none; }
.editor-error-summary h2 { font-size: 1rem; margin: 0 0 8px; }
.editor-error-summary ul { margin: 0; padding-inline-start: 24px; }
.editor-error-summary a, .editor-field-error { color: var(--danger, #b42318); }
.editor-error-summary:focus { outline: 3px solid var(--accent, #986f1c); outline-offset: 3px; }
.editor-field-error, .editor-character-count { display: block; font-size: .8rem; margin-top: 4px; }
.editor-character-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.editor-character-count.near-limit { color: var(--ink); font-weight: 650; }
#editor-form [aria-invalid="true"] { border-color: var(--danger, #b42318); outline: 1px solid var(--danger, #b42318); }
/* Keep the change marker above theme input shadows without changing focus outlines. */
.editor-field-changed,
#editor-form .editor-field-changed { box-shadow: inset 3px 0 0 var(--accent, #986f1c); }
@media (forced-colors: active) {
  #editor-form .editor-field-changed { border-inline-start: 3px solid Highlight; }
}
.editor-field-restore { display: block; width: fit-content; border: 0; padding: 4px 0; color: var(--ink); background: transparent; text-decoration: underline; font: inherit; font-size: .8rem; cursor: pointer; }
.editor-field-restore:focus-visible { outline: 2px solid var(--accent, #986f1c); outline-offset: 3px; }
/* Supplemental feedback is outside the field's label, so it never changes its name. */
.editor-feedback-field, .editor-field-feedback { min-width: 0; }
.editor-feedback-field > label { width: 100%; }
.editor-field-feedback:empty { display: none; }
