.ac-rich-tools.at-tools { flex-wrap: wrap; gap: 5px; padding: 9px; border: 1px solid #d5dfe2; background: #f6f8f9; border-radius: 4px; }
.ac-rich-tools .icon-button { width: 31px; height: 31px; padding: 6px; flex-shrink: 0; }
.ac-rich-tools .icon-button svg { width: 16px; height: 16px; }
.ac-rich-tools .icon-button[aria-pressed=true] { background: #e0efed; border-color: #65a39d; color: #197f73; }
.ac-rich-tools select { width: auto; min-width: 0; max-width: 115px; min-height: 31px; padding: 5px 7px; font-size: 11px; background: #fff; border: 1px solid #cdd9de; border-radius: 3px; }
.ac-rich-tools .ac-color { display: block; margin: 0; width: 29px; height: 29px; padding: 2px; border: 1px solid #cdd9de; border-radius: 3px; background: #fff; }
.ac-color input[type=color] { display: block; width: 23px; height: 23px; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ac-link-tools { display: grid; grid-template-columns: minmax(0,1fr) 32px; gap: 7px; align-items: center; margin-bottom: 10px; }
.ac-link-tools[hidden], .editor-block [hidden] { display: none !important; }
.ac-table-tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;border:1px solid #d5dfe2;margin-bottom:10px}
.ac-table-tools[hidden]{display:none!important}
.ac-table-tools label{display:flex;flex-direction:column;gap:5px;font-size:12px;max-width:85px}
.ac-table-tools input{width:100%;min-width:0}
.ac-table-tools [role=status]{font-size:12px;color:#a23f32}
:is(.at-rich,.pm-rich,.ve-rich-node) table{width:100%;border-collapse:collapse;margin:16px 0;table-layout:fixed;white-space:normal}
:is(.at-rich,.pm-rich,.ve-rich-node) td,:is(.at-rich,.pm-rich,.ve-rich-node) th{border:1px solid #cad5da;padding:10px;overflow-wrap:anywhere;min-width:30px}
.ac-link-tools input { width: 100%; min-width: 0; }
.ac-link-tools small { grid-column: 1/-1; color: #b34244; }
.at-rich { font-weight: 400; color: #35484e; }
.editor-writing > *, .editor-writing label, .editor-writing .at-rich { min-width: 0; max-width: 100%; }
.editor-writing .at-rich { overflow-wrap: anywhere; }
.article-editor .editor-block-tools { flex-wrap: wrap; }
.at-rich h2 { font-size: 24px; line-height: 1.6; margin: 18px 0 12px; }
.at-rich h3 { font-size: 20px; line-height: 1.7; margin: 15px 0 10px; }
:is(.at-rich,.article-prose) blockquote { border-left: 3px solid #328f83; background: #f0f7f5; padding: 13px 18px; margin: 20px 0; color: #47746b; }
:is(.at-rich,.article-prose) blockquote p:last-child { margin-bottom: 0; }
:is(.at-rich,.article-prose) hr { border: 0; border-top: 1px solid #cbd8da; margin: 28px 0; }
.ac-media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.ac-media-actions label.button { display: inline-flex; align-items: center; flex-direction: row; gap: 6px; margin: 0; cursor: pointer; }
.ac-media-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block: 12px; }
.ac-media-options label { min-width: 0; }
.ac-media-options select { width: 100%; min-width: 0; }
.ac-image-text-field { margin-top: 14px; }
.ac-image-empty, .ac-media-empty { min-height: 130px; display: grid; place-items: center; background: #f1f5f6; border: 1px dashed #cbd8dc; }
.ac-image-empty svg, .ac-media-empty svg { width: 36px; height: 36px; color: #7e9ca3; }
.ac-upload-note { display: block; font-size: 11px; line-height: 1.8; color: #74888d; margin-bottom: 12px; }
.ac-video-preview { display: block; width: 100%; aspect-ratio: 16/9; max-height: 350px; object-fit: contain; background: #212727; }
.ac-media-status, .ac-video-error { color: #ad4949; font-size: 12px; line-height: 1.8; margin: 8px 0; }
.ac-insert-menu { position: relative; margin-right: auto; padding: 0; border: 0; }
.ac-insert-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; min-height: 0; padding: 0; line-height: 1; background: #fff; border: 1px solid #d1dcdf; border-radius: 4px; }
.ac-insert-menu > summary::after { content: none; }
.ac-insert-menu > summary::-webkit-details-marker { display: none; }
.ac-insert-menu > summary svg { width: 15px; height: 15px; }
.ac-insert-menu > div { position: absolute; top: 35px; left: 0; z-index: 5; width: 180px; padding: 5px; background: #fff; border: 1px solid #d0dce0; box-shadow: 0 6px 18px #273a3b18; border-radius: 4px; }
.ac-insert-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 8px; border: 0; background: transparent; text-align: left; font-size: 12px; color: #405d65; }
.ac-insert-menu button:hover { background: #edf5f4; }
.ac-insert-menu button svg { width: 16px; height: 16px; }
.article-prose .ac-media { min-width: 0; }
.article-prose .ac-width-100 { width: 100%; }
.article-prose .ac-width-75 { width: 75%; }
.article-prose .ac-width-50 { width: 50%; }
.article-prose .ac-align-center { margin-left: auto; margin-right: auto; }
.article-prose .ac-align-left { margin-left: 0; margin-right: auto; }
.article-prose .ac-align-right { margin-left: auto; margin-right: 0; }
.article-prose .ac-media img { max-height: 550px; }
.article-prose .ac-ratio-16-9 img { aspect-ratio: 16/9; }
.article-prose .ac-ratio-4-3 img { aspect-ratio: 4/3; }
.article-prose .ac-ratio-1-1 img { aspect-ratio: 1; }
.article-prose .ac-fit-contain img { object-fit: contain; }
.article-prose .ac-fit-cover img { object-fit: cover; }
.article-prose .ac-image-text { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; align-items: center; margin: 30px 0; }
.article-prose .ac-image-text > figure { margin: 0; width: 100%; }
.article-prose .ac-image-right > figure { order: 2; }
.article-prose .ac-image-copy { min-width: 0; }
.article-prose .ac-image-copy > :last-child { margin-bottom: 0; }
.article-prose h3 { font-size: 20px; line-height: 1.7; margin: 28px 0 14px; }
.article-prose .ac-video video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #222929; }
.article-prose .ac-video-error[hidden] { display: none; }
.article-prose table { display: block; max-width: 100%; overflow-x: auto; }
.ac-preview-modes { display: flex; gap: 5px; margin-left: auto; }
.ac-preview-modes button[aria-pressed=true] { color: #1c8075; background: #eaf5f1; border-color: #7fbbb1; }
.article-preview-dialog.ac-preview-mobile { width: min(420px,calc(100% - 24px)); padding: 22px 18px; }
.ac-preview-mobile .preview-heading h1 { font-size: 25px; }
.ac-preview-mobile .article-prose .ac-image-text { grid-template-columns: minmax(0,1fr); gap: 16px; }
.ac-preview-mobile .article-prose .ac-image-right > figure { order: 0; }
.ac-preview-mobile .article-prose .ac-media { max-width: 100%; }
.article-prose .pm-rich table,.article-prose .ve-rich-node table{display:table;width:100%;white-space:normal}
@media (max-width: 700px) {
  .ac-rich-tools.at-tools { padding: 7px; gap: 4px; }
  .ac-rich-tools .icon-button { width: 30px; height: 30px; }
  .ac-rich-tools select { max-width: 102px; font-size: 10px; }
  .ac-media-actions .button { font-size: 11px; padding: 8px; }
  .ac-media-options { gap: 10px; }
  .article-prose .ac-image-text { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .article-prose .ac-image-right > figure { order: 0; }
  .article-prose .ac-media { max-width: 100%; }
  .at-rich h2 { font-size: 22px; }
  .at-rich h3 { font-size: 18px; }
  .article-editor .edit-footer { flex-wrap: wrap; gap: 7px; }
  .article-editor .edit-footer [data-at-status] { flex-basis: 100%; }
  .article-editor .edit-footer .button { padding-inline: 12px; }
}
