/*
 * Editor de conteúdo — design 3.2 (base/Editor-de-noticia.html).
 * Tudo escopado em .ubx-ed; os tokens vêm do ubx.css.
 */

.ubx-ed { --ed-line: #ECEAE6; --ed-line2: #F1EFEB; --ed-line3: #F4F2EE; --ed-field: #E6E3DE; --ed-soft: #FBFAF8; --ed-text: #1C1B1A; --ed-text2: #3D3A36; --ed-text3: #57534E; --ed-muted: #8A857D; --ed-faint: #A8A39B; --ed-or: #F26A1B; --ed-or2: #E05E12; --ed-ring: #FFF1E7; }
.ubx-ed [hidden] { display: none !important; }

/* ---------- barra de ações (fixa ao rolar) ---------- */
.ubx-ed__bar { position: sticky; top: 0; z-index: 20; background: #F7F6F3; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; margin-bottom: 8px; }
.ubx-ed__barl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ubx-ed__back { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ed-field); background: #fff; border-radius: 7px; color: var(--ed-text3); flex: none; }
.ubx-ed__back:hover { background: var(--ed-soft); color: var(--ed-text); }
.ubx-ed__titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ubx-ed__crumb { font-size: 13px; color: var(--ed-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx .ubx-ed__crumb a { color: var(--ed-muted); }
.ubx .ubx-ed__crumb a:hover { color: #C2510E; }
.ubx-ed__titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ubx-ed__pagetitle { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ed-text); }
.ubx-ed__status { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: #F1EFEB; color: #6B6862; white-space: nowrap; }
.ubx-ed__status[data-s="published"] { background: #E8F1EB; color: #2E6B4D; }
.ubx-ed__status[data-s="scheduled"] { background: #EBF0F7; color: #335C99; }
.ubx-ed__status[data-s="pending_review"] { background: #FFF1E7; color: #C2510E; }
.ubx-ed__status[data-s="returned"] { background: #FBEDEA; color: #C23B22; }
.ubx-ed__barr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ubx-ed__save { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ed-muted); padding-right: 4px; white-space: nowrap; }
.ubx-ed__savedot { width: 6px; height: 6px; border-radius: 50%; background: #2E9E5B; }
.ubx-ed__save.is-dirty .ubx-ed__savedot { background: var(--ed-or); }

.ubx-ed__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--ed-field); background: #fff; border-radius: 7px; font: inherit; font-size: 14px; color: var(--ed-text2); cursor: pointer; white-space: nowrap; text-decoration: none; }
.ubx .ubx-ed__btn:hover { background: var(--ed-soft); color: var(--ed-text); }
.ubx-ed__btn--sm { height: 30px; }
.ubx-ed__btn:disabled { opacity: .55; cursor: progress; }
.ubx-ed__pub { position: relative; display: flex; }
.ubx-ed__primary { height: 32px; padding: 0 14px; border: 0; background: var(--ed-or); color: #fff; border-radius: 7px 0 0 7px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ubx-ed__primary:hover { background: var(--ed-or2); }
.ubx-ed__primary--solo { border-radius: 7px; }
.ubx-ed__primary--sm { height: 30px; padding: 0 12px; }
.ubx-ed__primary:disabled { opacity: .45; cursor: default; }
.ubx-ed__caret { width: 30px; height: 32px; display: grid; place-items: center; border: 0; border-left: 1px solid #F59A63; background: var(--ed-or); color: #fff; border-radius: 0 7px 7px 0; cursor: pointer; }
.ubx-ed__caret:hover { background: var(--ed-or2); }
.ubx-ed__pub.is-solo .ubx-ed__primary { border-radius: 7px; }
.ubx-ed__pub.is-solo .ubx-ed__caret { display: none; }
.ubx-ed.is-busy .ubx-ed__barr button { pointer-events: none; opacity: .7; }

.ubx-ed__menu, .ubx-ed__sched { position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--ed-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(28, 27, 26, .08); z-index: 40; display: flex; flex-direction: column; }
.ubx-ed__menu { width: 260px; padding: 6px; gap: 2px; }
.ubx-ed__mi { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; text-align: left; color: var(--ed-text2); font: inherit; }
.ubx-ed__mi:hover { background: var(--ed-line3); color: var(--ed-text); }
.ubx-ed__mi svg { margin-top: 1px; }
.ubx-ed__mitext { display: flex; flex-direction: column; gap: 2px; }
.ubx-ed__milabel { font-size: 14px; font-weight: 500; }
.ubx-ed__midesc { font-size: 13px; color: var(--ed-muted); }
.ubx-ed__sched { width: 280px; padding: 14px; gap: 10px; }
.ubx-ed__schedtitle { font-size: 14px; font-weight: 600; color: var(--ed-text); }
.ubx-ed__schedhint { font-size: 13px; color: var(--ed-muted); line-height: 1.5; }
.ubx-ed__schedacts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

.ubx-ed__returned { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #F2D3CC; background: #FBEDEA; border-radius: 10px; font-size: 14px; color: #8E2B19; }

/* ---------- grade ---------- */
.ubx-ed__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ubx-ed__main, .ubx-ed__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1179.98px) { .ubx-ed__grid { grid-template-columns: minmax(0, 1fr); } }

.ubx-ed__card { background: #fff; border: 1px solid var(--ed-line); border-radius: 12px; }
.ubx-ed__card--pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ubx-ed__card--tight { gap: 8px; }
.ubx-ed__cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ubx-ed__cardhead--base { align-items: baseline; }
.ubx-ed__cardtitle { font-size: 14px; font-weight: 600; color: var(--ed-text); }
.ubx-ed__faint { font-size: 12px; font-weight: 400; color: var(--ed-faint); }
.ubx-ed__faint2 { font-size: 13px; color: var(--ed-muted); }
.ubx-ed__hint { font-size: 13px; color: var(--ed-muted); }

/* ---------- título, endereço, linha fina ---------- */
.ubx-ed__head { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.ubx-ed__titlewrap { display: flex; flex-direction: column; gap: 6px; }
.ubx .ubx-ed__title { width: 100%; border: 0; outline: none; padding: 0; font: inherit; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; color: var(--ed-text); background: transparent; box-shadow: none; height: auto; }
.ubx-ed__title::placeholder { color: #B8B3AB; }
.ubx-ed__err { font-size: 13px; color: #C23B22; }
.ubx-ed__url { display: flex; align-items: center; height: 28px; padding: 0 8px; border: 1px solid var(--ed-line2); background: var(--ed-soft); border-radius: 6px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; max-width: 100%; min-width: 0; color: var(--ed-faint); }
.ubx-ed__url svg { margin-right: 6px; stroke: var(--ed-faint); }
.ubx-ed__urlbase { color: var(--ed-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ubx .ubx-ed__url input { flex: 1; min-width: 60px; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 13px; color: var(--ed-text2); padding: 0; height: auto; box-shadow: none; }
.ubx-ed__hr { height: 1px; background: var(--ed-line2); margin: 4px 0; }
.ubx-ed__sum { display: flex; flex-direction: column; gap: 6px; }
.ubx-ed__sumhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ubx .ubx-ed__sumtext { width: 100%; box-sizing: border-box; border: 0; outline: none; resize: none; padding: 0; font: inherit; font-size: 15px; line-height: 1.55; color: var(--ed-text3); background: transparent; min-height: 0; box-shadow: none; overflow: hidden; }
.ubx-ed__sumtext::placeholder { color: #B8B3AB; }
.ubx-ed__count { font-size: 12px; font-weight: 400; color: var(--ed-faint); font-variant-numeric: tabular-nums; }
.ubx-ed__count.is-over { color: #C23B22; }

/* ---------- campos ---------- */
.ubx-ed__lbl { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ubx-ed__lbltext { font-size: 13px; font-weight: 500; color: var(--ed-text3); }
.ubx-ed__lblrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ubx .ubx-ed__input { width: 100%; box-sizing: border-box; height: 34px; border: 1px solid var(--ed-field); border-radius: 7px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; outline: none; color: var(--ed-text); box-shadow: none; }
.ubx .ubx-ed__input--sm { height: 32px; }
.ubx .ubx-ed__textarea { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; min-height: 0; }
.ubx .ubx-ed__select { padding: 0 8px; cursor: pointer; }
.ubx .ubx-ed__input:focus { border-color: var(--ed-or); box-shadow: 0 0 0 3px var(--ed-ring); }
.ubx-ed__input::placeholder { color: #B8B3AB; }
.ubx-ed__warn { font-size: 12px; color: #B5530F; }
.ubx-ed__textbtn { border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; font-weight: 400; color: #C2510E; cursor: pointer; }
.ubx-ed__textbtn:hover { color: #9E3F0A; }
.ubx-ed__textbtn--danger { color: #C23B22; height: 30px; padding: 0 10px; border-radius: 6px; font-size: 14px; }
.ubx-ed__textbtn--danger:hover { background: #FBEDEA; color: #C23B22; }
.ubx-ed__newterm { display: flex; gap: 6px; }
.ubx-ed__check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ed-text2); cursor: pointer; }
.ubx-ed__check input { accent-color: var(--ed-or); margin: 0; }
.ubx-ed__mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; }

/* ---------- editor ---------- */
.ubx-ed__editor { position: relative; display: flex; flex-direction: column; }
.ubx-ed__tools { position: sticky; top: 60px; z-index: 5; background: #fff; border-bottom: 1px solid var(--ed-line2); border-radius: 12px 12px 0 0; padding: 6px 8px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ubx .ubx-ed__block { height: 30px; border: 1px solid var(--ed-field); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: var(--ed-text2); padding: 0 6px; margin-right: 4px; cursor: pointer; box-shadow: none; width: auto; }
.ubx-ed__tool { height: 30px; min-width: 30px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: transparent; color: var(--ed-text3); border-radius: 6px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; }
.ubx-ed__tool:hover { background: var(--ed-line3); color: var(--ed-text); }
.ubx-ed__tool.is-on { background: var(--ed-ring); color: #C2510E; }
.ubx-ed__tool--label { padding: 0 9px; border-color: var(--ed-field); background: #fff; }
.ubx-ed__tool:disabled { opacity: .35; pointer-events: none; }
.ubx-ed__sep { width: 1px; height: 18px; background: var(--ed-line); margin: 0 5px; }
.ubx-ed__spacer { flex: 1; min-width: 8px; }
.ubx-ed__link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: var(--ed-soft); border-bottom: 1px solid var(--ed-line2); }
.ubx .ubx-ed__link .ubx-ed__input { flex: 1; min-width: 200px; width: auto; height: 30px; border-radius: 6px; }
.ubx-ed__linknew { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ed-text3); cursor: pointer; white-space: nowrap; }
.ubx-ed__linknew input { accent-color: var(--ed-or); margin: 0; }
.ubx-ed__dark { height: 30px; padding: 0 12px; border: 0; background: var(--ed-text); color: #fff; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ubx-ed__dark:hover { background: var(--ed-text2); }
.ubx-ed__area { position: relative; flex: 1; }
.ubx-ed__ph { position: absolute; top: 24px; left: 0; right: 0; padding: 0 28px; box-sizing: border-box; font-size: 16px; color: #B8B3AB; pointer-events: none; }
.ubx-ed__body { min-height: 440px; box-sizing: border-box; padding: 24px 28px 32px; font-size: 16px; line-height: 1.7; color: #2A2826; outline: none; text-wrap: pretty; }
.ubx-ed__code { display: block; flex: 1; min-height: 440px; width: 100%; box-sizing: border-box; border: 0; outline: none; resize: vertical; padding: 18px 22px; background: var(--ed-soft); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.65; color: var(--ed-text2); }
.ubx-ed__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--ed-line2); font-size: 13px; color: var(--ed-muted); flex-wrap: wrap; }
.ubx-ed__num { font-variant-numeric: tabular-nums; }

/* tela cheia */
.ubx-ed__editor.is-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; overflow-y: auto; }
.ubx-ed__editor.is-full .ubx-ed__tools { top: 0; border-radius: 0; }
.ubx-ed__editor.is-full .ubx-ed__body, .ubx-ed__editor.is-full .ubx-ed__code { min-height: calc(100vh - 110px); }

/* conteúdo do texto (editor e prévia) */
.ubx-ed [data-ed] > :first-child { margin-top: 0; }
.ubx-ed [data-ed] p { margin: 0 0 14px; }
.ubx-ed [data-ed] h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 28px 0 10px; color: var(--ed-text); }
.ubx-ed [data-ed] h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 24px 0 8px; color: var(--ed-text); }
.ubx-ed [data-ed] h4 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 20px 0 6px; color: var(--ed-text); }
.ubx-ed [data-ed] ul, .ubx-ed [data-ed] ol { margin: 0 0 14px; padding-left: 22px; }
.ubx-ed [data-ed] li { margin: 4px 0; }
.ubx-ed [data-ed] blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid #E6E3DE; font-size: 17px; color: var(--ed-text3); }
.ubx-ed [data-ed] a { color: #C2510E; text-decoration: underline; text-underline-offset: 3px; }
.ubx-ed [data-ed] hr { border: 0; border-top: 1px solid var(--ed-line); margin: 24px 0; }
.ubx-ed [data-ed] img { max-width: 100%; height: auto; border-radius: 8px; display: block; }
.ubx-ed [data-ed] figure { margin: 20px 0; max-width: 100%; }
.ubx-ed [data-ed] figcaption { font-size: 13px; color: var(--ed-muted); margin-top: 6px; }

/* imagem no texto: tamanho, posição (lateral com texto ao lado), legenda e crédito */
.ubx-ed__body::after { content: ''; display: block; clear: both; }
.ubx-ed [data-ed] figure.ubx-fig { box-sizing: border-box; }
.ubx-ed [data-ed] figure.ubx-fig img { width: 100%; }
.ubx-ed [data-ed] figure.aligncenter { margin: 22px auto; }
.ubx-ed [data-ed] figure.alignleft { float: left; margin: 4px 24px 14px 0; }
.ubx-ed [data-ed] figure.alignright { float: right; margin: 4px 0 14px 24px; }
.ubx-ed [data-ed] .ubx-fig__credit { display: block; font-size: 12px; color: var(--ed-faint); margin-top: 2px; }
.ubx-ed [data-ed] .ubx-fig__credit:only-child { margin-top: 0; }
.ubx-ed__body figure.ubx-fig { cursor: pointer; border-radius: 9px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .12s; }
.ubx-ed__body figure.ubx-fig:hover { outline-color: #F6C9AE; }
.ubx-ed__body figure.ubx-fig.is-sel { outline-color: var(--ed-or); }
.ubx-ed__figbar { position: absolute; z-index: 6; display: flex; align-items: center; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--ed-line); border-radius: 9px; box-shadow: 0 8px 24px rgba(28, 27, 26, .14); white-space: nowrap; }
.ubx-ed__figgroup { display: flex; gap: 2px; }
.ubx-ed__figsep { width: 1px; height: 20px; background: var(--ed-line); margin: 0 4px; }
.ubx .ubx-ed__figbtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 28px; justify-content: center; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ed-text2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ubx .ubx-ed__figbtn:hover { background: var(--ed-soft); color: var(--ed-text); }
.ubx .ubx-ed__figbtn.is-on { background: #FDEBDF; color: #C2510E; }
.ubx .ubx-ed__figbtn[data-fig="del"]:hover { background: #FBEDEA; color: #C23A2B; }
.ubx-ed__figpop { position: absolute; z-index: 7; width: 320px; max-width: calc(100% - 16px); display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--ed-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(28, 27, 26, .16); box-sizing: border-box; }
.ubx-ed__figpopacts { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 759.98px) {
	.ubx-ed [data-ed] figure.alignleft, .ubx-ed [data-ed] figure.alignright { float: none; width: 100% !important; margin: 20px 0; }
	.ubx-ed__figbar { flex-wrap: wrap; white-space: normal; max-width: calc(100% - 16px); }
}

/* ---------- SEO ---------- */
.ubx-ed__seohead { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 0; background: transparent; cursor: pointer; text-align: left; border-radius: 12px; color: var(--ed-text); font: inherit; }
.ubx-ed__seohead:hover { background: var(--ed-soft); }
.ubx-ed__seotitles { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ubx-ed__seodesc { font-size: 13px; color: var(--ed-muted); }
.ubx-ed__seomode { font-size: 13px; color: var(--ed-muted); white-space: nowrap; }
.ubx-ed__chev { display: flex; color: var(--ed-muted); transition: transform .15s; }
.ubx-ed__seo.is-open .ubx-ed__chev { transform: rotate(180deg); }
.ubx-ed__seobody { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.ubx-ed__serp { border: 1px solid var(--ed-line2); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ubx-ed__serpsite { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; min-width: 0; }
.ubx-ed__serpico { width: 26px; height: 26px; border-radius: 50%; background: var(--ed-line2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #2E6B4D; flex: none; }
.ubx-ed__serpwho { display: flex; flex-direction: column; min-width: 0; }
.ubx-ed__serpname { font-size: 14px; color: var(--ed-text); }
.ubx-ed__serpurl { font-size: 13px; color: #6B6862; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx-ed__serpt { font-size: 19px; line-height: 1.3; color: #335C99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx-ed__serpd { font-size: 14px; line-height: 1.55; color: var(--ed-text3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- publicação ---------- */
.ubx-ed__rows { display: flex; flex-direction: column; }
.ubx-ed__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; font-size: 14px; border-bottom: 1px solid var(--ed-line3); }
.ubx-ed__row--last { border-bottom: 0; }
.ubx-ed__rowk { color: var(--ed-muted); white-space: nowrap; }
.ubx-ed__rowv { color: var(--ed-text); text-align: right; }
.ubx-ed__rowlink { border: 0; background: transparent; padding: 0; font: inherit; font-size: 14px; color: var(--ed-text); cursor: pointer; text-align: right; text-decoration: underline; text-decoration-color: #D9D5CE; text-underline-offset: 3px; }
.ubx-ed__rowlink:hover { color: #C2510E; }
.ubx .ubx-ed__rowsel { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ed-text); text-align: right; cursor: pointer; padding: 0; outline: none; box-shadow: none; height: auto; width: auto; max-width: 60%; }
.ubx .ubx-ed__rowinput { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ed-text); text-align: right; padding: 0; outline: none; box-shadow: none; height: 32px; min-width: 0; flex: 1; }
.ubx-ed__rowinput::placeholder { color: var(--ed-faint); }
.ubx-ed__rowinput:focus { color: var(--ed-text); }
.ubx-ed__trash { align-self: flex-start; border: 0; background: transparent; padding: 0; font: inherit; font-size: 13px; color: #C23B22; cursor: pointer; }
.ubx-ed__trash:hover { color: #9E2E1A; text-decoration: underline; }

/* ---------- tags ---------- */
.ubx-ed__tags { min-height: 34px; box-sizing: border-box; border: 1px solid var(--ed-field); border-radius: 7px; padding: 4px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; background: #fff; cursor: text; }
.ubx-ed__tags:focus-within { border-color: var(--ed-or); box-shadow: 0 0 0 3px var(--ed-ring); }
.ubx-ed__tag { display: flex; align-items: center; gap: 2px; height: 24px; padding: 0 4px 0 8px; border-radius: 5px; background: var(--ed-line3); font-size: 13px; color: var(--ed-text2); }
.ubx-ed__tag button { width: 18px; height: 18px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 4px; color: var(--ed-muted); cursor: pointer; padding: 0; }
.ubx-ed__tag button:hover { background: var(--ed-field); color: var(--ed-text); }
.ubx .ubx-ed__taginput { flex: 1; min-width: 80px; height: 24px; border: 0; outline: none; font: inherit; font-size: 14px; padding: 0 4px; background: transparent; box-shadow: none; }
.ubx-ed__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--ed-muted); }
.ubx-ed__suggest > span { margin-right: 2px; }
.ubx-ed__suggest button { height: 22px; padding: 0 7px; border: 1px dashed #DAD6CF; background: transparent; border-radius: 5px; font: inherit; font-size: 13px; color: var(--ed-text3); cursor: pointer; }
.ubx-ed__suggest button:hover { border-color: var(--ed-or); color: #C2510E; }

/* ---------- imagem destacada ---------- */
.ubx-ed__featacts { display: flex; gap: 2px; }
.ubx-ed__minibtn { height: 26px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 13px; color: var(--ed-text3); cursor: pointer; }
.ubx-ed__minibtn:hover { background: var(--ed-line3); color: var(--ed-text); }
.ubx-ed__miniicon { width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; color: var(--ed-muted); cursor: pointer; padding: 0; }
.ubx-ed__miniicon:hover { background: var(--ed-line3); color: var(--ed-text); }
.ubx-ed__miniicon--danger:hover { background: #FBEDEA; color: #C23B22; }
.ubx-ed__featempty { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #DAD6CF; background: var(--ed-soft); border-radius: 8px; cursor: pointer; color: var(--ed-text3); font: inherit; padding: 0; }
.ubx-ed__featempty:hover { border-color: var(--ed-or); background: #FFF8F3; color: #C2510E; }
.ubx-ed__featemptytitle { font-size: 14px; font-weight: 500; }
.ubx-ed__featemptyhint { font-size: 12px; color: var(--ed-faint); }
.ubx-ed__featbody { display: flex; flex-direction: column; gap: 6px; }
.ubx-ed__featimg { position: relative; border-radius: 8px; overflow: hidden; cursor: crosshair; background: var(--ed-line2); }
.ubx-ed__featimg img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ubx-ed__focusdot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(28, 27, 26, .35), 0 1px 4px rgba(28, 27, 26, .3); pointer-events: none; }
.ubx-ed__featmeta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ed-faint); }
.ubx-ed__featmeta span { white-space: nowrap; }
.ubx-ed__featname { overflow: hidden; text-overflow: ellipsis; font-family: 'Geist Mono', ui-monospace, monospace; }

/* campos antigos (personalizados, blocos) dentro do card novo */
.ubx-ed__legacy:empty { display: none; }
.ubx-ed .ubp-blk { padding: 16px; margin: 0; }

/* ---------- modal de mídia ---------- */
.ubx-ed__overlay { position: fixed; inset: 0; background: rgba(28, 27, 26, .32); z-index: 70; display: grid; place-items: center; padding: 20px; }
.ubx-ed__modal { width: 100%; max-width: 980px; height: min(680px, calc(100vh - 40px)); background: #fff; border: 1px solid var(--ed-line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(28, 27, 26, .18); }
.ubx-ed__mhead { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--ed-line2); }
.ubx-ed__mtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ubx-ed__mtitle { font-size: 16px; font-weight: 600; color: var(--ed-text); }
.ubx-ed__mtop .ubx-ed__miniicon { width: 30px; height: 30px; border-radius: 7px; }
.ubx-ed__mnav { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ubx-ed__mtabs { display: flex; gap: 18px; }
.ubx-ed__mtab { height: 36px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ed-muted); cursor: pointer; }
.ubx-ed__mtab.is-on { color: var(--ed-text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ed-text); }
.ubx-ed__msearch { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--ed-field); border-radius: 7px; margin-bottom: 6px; width: 220px; max-width: 100%; box-sizing: border-box; color: var(--ed-faint); }
.ubx .ubx-ed__msearch input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 14px; background: transparent; box-shadow: none; height: auto; padding: 0; }
.ubx-ed__mbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; overflow: hidden; }
.ubx-ed__mpane { overflow-y: auto; padding: 16px 20px; min-width: 0; }
.ubx-ed__mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.ubx-ed__mitem { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; min-width: 0; font: inherit; }
.ubx-ed__mthumb { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--ed-line); background: var(--ed-line2); }
.ubx-ed__mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ubx-ed__mitem.is-sel .ubx-ed__mthumb { box-shadow: 0 0 0 2px var(--ed-or); }
.ubx-ed__mcheck { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ed-or); display: none; place-items: center; box-shadow: 0 0 0 2px #fff; color: #fff; }
.ubx-ed__mitem.is-sel .ubx-ed__mcheck { display: grid; }
.ubx-ed__mname { font-size: 13px; color: var(--ed-text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx-ed__mempty { padding: 40px 0; text-align: center; font-size: 14px; color: var(--ed-muted); }
.ubx-ed__mmore { display: flex; justify-content: center; padding: 16px 0 4px; }
.ubx-ed__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 280px; box-sizing: border-box; border: 1.5px dashed #DAD6CF; border-radius: 12px; background: var(--ed-soft); cursor: pointer; text-align: center; padding: 24px; color: var(--ed-muted); }
.ubx-ed__drop:hover, .ubx-ed__drop.is-over { border-color: var(--ed-or); background: #FFF8F3; }
.ubx-ed__drop.is-busy { opacity: .6; cursor: progress; }
.ubx-ed__droptitle { font-size: 15px; font-weight: 500; color: var(--ed-text); }
.ubx-ed__accent { color: #C2510E; }
.ubx-ed__drophint { font-size: 13px; color: var(--ed-muted); }
.ubx-ed__mside { border-left: 1px solid var(--ed-line2); background: var(--ed-soft); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ubx-ed__mnosel { flex: 1; display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--ed-muted); padding: 20px; line-height: 1.5; }
.ubx-ed__msel { display: flex; flex-direction: column; gap: 12px; }
.ubx-ed__msel [data-ubx-ed-meditor] { display: flex; flex-direction: column; gap: 12px; }
.ubx-ed__mselimg { width: 100%; height: auto; min-height: 120px; max-height: 300px; object-fit: contain; box-sizing: border-box; padding: 8px; border: 1px solid var(--ed-line); border-radius: 8px; display: block; background: repeating-conic-gradient(#A8A39B 0 25%, #C4BFB7 0 50%) 0 0 / 14px 14px; }
.ubx-ed__mselinfo { display: flex; flex-direction: column; gap: 2px; }
.ubx-ed__mselname { font-size: 14px; font-weight: 500; word-break: break-all; color: var(--ed-text); }
.ubx-ed__mfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--ed-line2); flex-wrap: wrap; }
.ubx-ed__mfootacts { display: flex; gap: 8px; }
.ubx-ed__seg { display: flex; padding: 2px; background: #EFEDE9; border-radius: 7px; gap: 2px; }
.ubx-ed__seg button { flex: 1; height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #6B6862; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ubx-ed__seg button.is-on { background: #fff; color: var(--ed-text); box-shadow: 0 1px 2px rgba(28, 27, 26, .08); }
.ubx-ed__seg button:disabled { opacity: .4; pointer-events: none; }
.ubx-ed__seg--inline button { flex: none; }
@media (max-width: 819.98px) {
	.ubx-ed__mbody { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
	.ubx-ed__mpane, .ubx-ed__mside { overflow-y: visible; }
	.ubx-ed__mside { border-left: 0; border-top: 1px solid var(--ed-line2); }
	.ubx-ed__mside.is-empty { display: none; }
}

/* ---------- prévia ---------- */
.ubx-ed__pv { position: fixed; inset: 0; z-index: 80; background: #EFEDE9; display: flex; flex-direction: column; }
.ubx-ed__pvbar { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--ed-line); }
.ubx-ed__pvl, .ubx-ed__pvr { display: flex; align-items: center; gap: 14px; }
.ubx-ed__pvr { gap: 8px; }
.ubx-ed__pvscroll { flex: 1; overflow-y: auto; padding: 28px 16px 60px; }
.ubx-ed__pvart { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--ed-line); border-radius: 12px; padding: 44px 52px; box-sizing: border-box; transition: max-width .2s; }
.ubx-ed__pv.is-mob .ubx-ed__pvart { max-width: 390px; padding: 24px 20px; }
.ubx-ed__pvcat { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #C2510E; margin-bottom: 10px; }
.ubx-ed__pvh1 { margin: 0 0 12px; font-size: 33px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--ed-text); }
.ubx-ed__pv.is-mob .ubx-ed__pvh1 { font-size: 25px; }
.ubx-ed__pvsum { margin: 0 0 16px; font-size: 18px; line-height: 1.55; color: var(--ed-text3); text-wrap: pretty; }
.ubx-ed__pvmeta { font-size: 13px; color: var(--ed-muted); margin-bottom: 22px; }
.ubx-ed__pvfig { margin: 0 0 26px; }
.ubx-ed__pvfig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.ubx-ed__pvfig figcaption { font-size: 12px; color: var(--ed-faint); margin-top: 6px; }
.ubx-ed__pvbody { font-size: 17px; line-height: 1.75; color: #2A2826; }

.ubx-ed__toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ed-text); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 9px; box-shadow: 0 10px 30px rgba(28, 27, 26, .2); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.ubx-ed__toast.is-error { background: #C23B22; }

/* ---------- celular ---------- */
@media (max-width: 759.98px) {
	.ubx-ed__bar { position: static; }
	.ubx-ed__barr { width: 100%; }
	.ubx-ed__save { width: 100%; order: -1; }
	.ubx-ed__barr > .ubx-ed__btn[data-ubx-ed-preview] { padding: 0 9px; }
	.ubx-ed__pub { margin-left: auto; }
	.ubx-ed__head { padding: 16px; }
	.ubx-ed__title { font-size: 20px; }
	.ubx-ed__tools { top: 0; }
	.ubx-ed__body { padding: 18px 16px 24px; min-height: 320px; }
	.ubx-ed__ph { padding: 0 16px; top: 18px; }
	.ubx-ed__pvart { padding: 24px 20px; }
	.ubx-ed__pvbar { padding: 0 12px; }
	.ubx-ed__pvh1 { font-size: 25px; }
	.ubx-ed__overlay { padding: 0; }
	.ubx-ed__modal { height: 100vh; max-height: none; border-radius: 0; }
}
