.content-editor {
  --adm-border: #ddd7ce;
  --adm-bg: #f7f3ed;
  --adm-muted: #6f6a63;
  --adm-dark: #1a1a1a;
  --adm-accent: #c66a3d;
  width: 100%;
  max-width: 980px;
  padding: 1.5rem;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.content-editor .adm-card-header { margin-bottom: .65rem; }
.content-editor .adm-card-title { font-weight: 700; }
.content-editor .adm-help { color: var(--adm-muted); font-size: .82rem; }
.content-editor .adm-label { display: block; margin-bottom: .3rem; font-size: .8rem; font-weight: 600; }
.content-editor .adm-input,
.content-editor .adm-textarea { width: 100%; padding: .65rem .75rem; border: 1px solid var(--adm-border); border-radius: 5px; background: #fff; color: var(--adm-dark); box-sizing: border-box; font: inherit; }
.content-editor .adm-textarea { min-height: 100px; resize: vertical; }
.content-editor .adm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .45rem .75rem; border: 1px solid var(--adm-border); border-radius: 5px; background: #fff; color: var(--adm-dark); cursor: pointer; font: inherit; font-size: .78rem; text-decoration: none; }
.content-editor .adm-btn-primary { border-color: var(--adm-dark); background: var(--adm-dark); color: #fff; }
.content-editor .adm-btn-danger { color: #a22; }
.content-editor .adm-flash-error { padding: .75rem; border-radius: 5px; background: #fff0ef; color: #8b2920; }
.content-editor__add { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.content-editor__block { border: 1px solid var(--adm-border); border-radius: 8px; margin-top: 1rem; scroll-margin-top: 90px; background: #fff; }
.content-editor__block.is-hidden { opacity: .62; }
.content-editor__block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--adm-bg); border-bottom: 1px solid var(--adm-border); }
.content-editor__actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.content-editor__actions form { margin: 0; }
.content-editor__form { display: grid; gap: .65rem; padding: 1rem; }
.content-editor__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: .75rem; }
.content-editor__design { border-top: 1px solid var(--adm-border); padding-top: .75rem; }
.content-editor__design summary { cursor: pointer; font-size: .82rem; font-weight: 600; margin-bottom: .75rem; }
.content-editor__save { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.content-editor .adm-editor-toolbar { display: flex; gap: 4px; padding: 4px 6px; border: 1px solid var(--adm-border); border-bottom: 0; background: var(--adm-bg); }
.content-editor .adm-editor-button { width: 30px; height: 28px; border: 1px solid var(--adm-border); border-radius: 4px; background: #fff; cursor: pointer; }
.content-editor .adm-editor-toolbar + textarea { border-radius: 0 0 5px 5px; }
@media (max-width: 640px) {
  .content-editor { padding: 1rem; }
  .content-editor__block-head,
  .content-editor__save { align-items: stretch; flex-direction: column; }
}
