*, *::before, *::after { box-sizing: border-box; }
html.manage { background: var(--bg); color-scheme: dark; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--bone); font-size: 15px; line-height: 1.55; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--panel-2); padding: .1em .35em; }

/* --- signed-out --- */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(224,27,36,.18), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--panel); border: calc(var(--border) * 1px) solid var(--line); padding: 40px 32px; }
.auth-card__eyebrow { margin: 0 0 24px; font-family: var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); font-size: 12px; }
.auth-card__title { margin: 0 0 8px; font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; text-transform: uppercase; }
.auth-card__body { margin: 0 0 24px; color: var(--muted); }
.auth-card__note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* --- shell --- */
.manage-body { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.manage-nav { background: var(--panel); border-right: calc(var(--border) * 1px) solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.manage-nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); margin-bottom: 24px; }
.manage-nav__brand:hover { text-decoration: none; color: var(--ink); }
.manage-nav__mark { width: 14px; height: 14px; background: var(--ink); clip-path: polygon(0 0, 100% 22%, 78% 100%, 0 74%); }
.manage-nav__label { margin: 18px 0 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.manage-nav__list { list-style: none; margin: 0; padding: 0; }
.manage-nav__link { display: block; padding: 7px 10px; color: var(--bone); border-left: 2px solid transparent; }
.manage-nav__link:hover { background: var(--panel-2); text-decoration: none; }
.manage-nav__link.is-active { border-left-color: var(--ink); color: var(--ink); background: var(--panel-2); }
.manage-nav__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.manage-nav__user { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.manage-main { padding: 32px 40px 80px; max-width: 1180px; }
.manage-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.manage-crumbs__link { color: var(--muted); }
.manage-crumbs__link:hover { color: var(--ink); text-decoration: none; }
.manage-crumbs__link::after { content: '/'; margin-left: 8px; color: var(--line); }
.manage-crumbs__link:last-child::after { content: ''; margin-left: 0; }
.manage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.manage-head__title { margin: 0; font-family: var(--font-display); font-size: 32px; letter-spacing: .05em; text-transform: uppercase; }
.manage-head__actions { display: flex; gap: 8px; }

/* --- controls --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; border: calc(var(--border) * 1px) solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--deep); border-color: var(--deep); }
.btn--ghost { border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { background: var(--panel-2); color: var(--bone); border-color: var(--muted); }
.btn--danger { border-color: var(--deep); color: var(--deep); }
.btn--danger:hover { background: var(--deep); color: var(--bone); }
.btn--sm { padding: 5px 12px; font-size: 11px; }
.btn--block { width: 100%; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__input, .field select, .field textarea { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--bone); font: inherit; }
.field__input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -2px; border-color: var(--ink); }
.field__input--code { font-family: var(--font-mono); font-size: 28px; letter-spacing: .5em; text-align: center; }
.field--row { display: flex; align-items: center; gap: 10px; }

/* --- surfaces --- */
.panel { background: var(--panel); border: 1px solid var(--line); padding: 20px 22px; }
.panel__title { margin: 0 0 14px; font-family: var(--font-display); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel__empty { color: var(--muted); margin: 0; }
.panel-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 16px 18px; }
.stat__value { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1; }
.stat__label { margin: 6px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.row-list__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row-list__item > a { flex: 1; color: var(--bone); }
.row-list__item > a:hover { color: var(--ink); }
.row-list__meta { font-size: 12px; color: var(--muted); }

.pill { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); }
.pill--published { border-color: var(--ink); color: var(--ink); }
.pill--draft { border-color: var(--muted); }

.flash { padding: 10px 14px; border-left: 3px solid var(--muted); background: var(--panel-2); margin: 0 0 16px; }
.flash--ok { border-left-color: var(--ink); }
.flash--error { border-left-color: var(--deep); color: var(--bone); background: rgba(139,15,22,.22); }
.notice { padding: 12px 16px; border: 1px dashed var(--line); color: var(--muted); margin: 0 0 24px; }
.notice--warn { border-color: var(--ink); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--panel-2); }

@media (max-width: 860px) {
  .manage-body { grid-template-columns: 1fr; }
  .manage-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .manage-nav__label { display: none; }
  .manage-nav__list { display: flex; flex-wrap: wrap; gap: 4px; }
  .manage-main { padding: 24px 18px 60px; }
}

/* --- media --- */
.uploader { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.uploader__drop { flex: 1; min-width: 260px; border: 1px dashed var(--line); padding: 22px; text-align: center; cursor: pointer; color: var(--muted); }
.uploader__drop:hover { border-color: var(--ink); color: var(--bone); }
.uploader__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.media-tile { margin: 0; background: var(--panel); border: 1px solid var(--line); }
.media-tile__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel-2); }
.media-tile__meta { padding: 10px; display: grid; gap: 6px; }
.media-tile__form { display: grid; gap: 6px; }

.media-field { display: grid; gap: 8px; }
.media-field__preview { min-height: 88px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); padding: 8px; }
.media-field__preview img { max-height: 110px; max-width: 100%; display: block; }
.media-field__empty { color: var(--muted); font-size: 13px; }
.media-field__actions { display: flex; gap: 6px; }

.media-picker { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 60; padding: 40px 20px; }
.media-picker.is-open { display: block; }
.media-picker__panel { max-width: 960px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); max-height: 100%; display: flex; flex-direction: column; }
.media-picker__head { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.media-picker__grid { padding: 14px; overflow-y: auto; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.media-picker__tile { background: var(--panel-2); border: 1px solid var(--line); padding: 6px; cursor: pointer; color: var(--muted); display: grid; gap: 6px; font-size: 12px; }
.media-picker__tile:hover { border-color: var(--ink); color: var(--bone); }
.media-picker__tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.media-picker__loading { color: var(--muted); grid-column: 1 / -1; }

.pager { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager__link { padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); }
.pager__link:hover, .pager__link.is-current { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* --- editor --- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.editor__main { display: grid; gap: 18px; }
.editor__side { display: grid; gap: 16px; position: sticky; top: 24px; }
.editor__side .field { margin-bottom: 12px; }
textarea.field__input { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; resize: vertical; }

.filterbar { display: flex; gap: 4px; margin-bottom: 18px; }
.filterbar__link { padding: 5px 14px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.filterbar__link:hover, .filterbar__link.is-active { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.filterbar--search { gap: .5rem; }

    padding-left: calc(var(--depth, 0) * 1.5rem); }

.table__actions { display: flex; gap: 6px; justify-content: flex-end; }
.inline-edit { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.inline-edit .field__input { flex: 1; min-width: 90px; }
.inline-edit__num { max-width: 70px; flex: 0 0 70px; }

@media (max-width: 1080px) {
  .editor { grid-template-columns: 1fr; }
  .editor__side { position: static; }
}

/* ---- page builder ---------------------------------------------------- */
.pill--home { border-color: var(--bone); color: var(--bone); }
.cell--muted { color: var(--muted); }
.pill--new { border-color: var(--ink); color: var(--ink); }

/* ---- suggestion box ------------------------------------------------- */
.suggestion__meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; }
.suggestion__meta dt { color: var(--muted); }
.suggestion__meta dd { margin: 0; }
.suggestion__body { white-space: normal; line-height: 1.6; margin: 0 0 18px; }
.suggestion__trace { font-size: 13px; margin: 0 0 18px; }
.field__input--short { max-width: 120px; }
.field__input--mono { font-family: var(--font-mono); font-size: 13px; }

/* A native picker beside the hex box: pick or type, whichever is quicker. */
.field__color { display: flex; align-items: center; gap: 10px; }
.field__swatch {
  flex: none; width: 44px; height: 38px; padding: 3px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line);
}
.field__swatch::-webkit-color-swatch-wrapper { padding: 0; }
.field__swatch::-webkit-color-swatch { border: none; }
.field__swatch::-moz-color-swatch { border: none; }
.field__swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.field__range { display: flex; align-items: center; gap: 12px; }
.field__range input[type="range"] { flex: 1; min-width: 0; accent-color: var(--ink); }
.field__range-out {
  flex: none; min-width: 4ch; text-align: right;
  font-family: var(--font-mono); font-size: 13px; color: var(--bone);
}

.builder { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.builder__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.builder__head .panel__title { margin: 0; }
.builder__list { display: flex; flex-direction: column; gap: 12px; }
.builder__empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.builder__empty[hidden] { display: none; }

.block-card { border: 1px solid var(--line); background: var(--panel); }
.block-card__head { display: flex; align-items: stretch; gap: 8px; border-bottom: 1px solid var(--line); }
.block-card__toggle { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.block-card__toggle:hover { background: var(--panel-2); }
.block-card__name { font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--bone); }
.block-card__summary { font-size: 12px; color: var(--muted); }
.block-card__tools { display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.block-card__tools .btn { padding: 5px 10px; }
.block-card__body { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px; }
.block-card.is-collapsed .block-card__body { display: none; }
.block-card.is-collapsed { opacity: .82; }

.palette { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.palette__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.palette__item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--bone); }
.palette__item:hover { border-color: var(--ink); background: var(--panel-2); }
.palette__name { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.palette__summary { font-size: 12px; color: var(--muted); }
a.palette__item:hover { text-decoration: none; }

/* ---- settings -------------------------------------------------------- */
.secret-field { display: flex; flex-direction: column; gap: 8px; }
.secret-field .field--row { font-size: 13px; color: var(--muted); }
.secret-field .field--row input[type="checkbox"] { width: auto; }

.repeater { display: flex; flex-direction: column; gap: 10px; }
.repeater__rows { display: flex; flex-direction: column; gap: 10px; }
.repeater__row { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); background: var(--panel-2); }
.repeater__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.repeater__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.repeater > [data-repeater-add] { align-self: flex-start; }

/* ---- menu builder ---------------------------------------------------- */
.editor--wide { display: block; max-width: 1100px; }
.editor__actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }

.menu-new { margin-top: 24px; max-width: 460px; }
.menu-new__form { display: grid; gap: 14px; justify-items: start; }

.menu-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-rows__add { margin-top: 12px; }

.menu-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); }
.menu-row[data-depth="1"] { margin-left: 34px; border-left: 2px solid var(--ink); background: var(--panel-2); }
.menu-row__handle { width: 3px; align-self: stretch; background: var(--line); }
.menu-row[data-depth="1"] .menu-row__handle { background: var(--ink); }

.menu-row__fields { flex: 1; min-width: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; }
.menu-row__field { min-width: 0; }
.menu-row__field[hidden] { display: none; }
.menu-row__field--icon { max-width: 180px; }
.menu-row__flags { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.menu-row__flags .field--row { gap: 6px; }

/* The tile controls fold away: most links never carry one, and open by default
   they would double the height of every row in the builder. */
.menu-row__bg { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); }
.menu-row__bg[hidden] { display: none; }
.menu-row__bg-toggle {
  cursor: pointer; color: var(--muted);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.menu-row__bg-toggle:hover, .menu-row__bg[open] > .menu-row__bg-toggle { color: var(--bone); }
.menu-row__bg-fields {
  display: grid; gap: 10px; margin-top: 10px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.menu-row__tools { display: flex; flex-wrap: wrap; gap: 4px; max-width: 92px; justify-content: flex-end; }
.menu-row__tools .btn { min-width: 28px; padding: 4px 6px; line-height: 1; }

/* ---- rich text editor ------------------------------------------------ */
/* The surface echoes the shapes blog.css gives the reader — a red-ruled quote,
   a panelled code block, ruled tables — rather than importing .prose, which
   the manage screens do not load and whose type scale is built for an article
   column rather than a form. */
.rte { display: grid; border: 1px solid var(--line); background: var(--bg); }
.rte:focus-within { border-color: var(--ink); }

.rte__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 6px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 3;
}
.rte__group { display: flex; gap: 2px; }
.rte__group + .rte__group { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }

.rte__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font: inherit; line-height: 1;
}
.rte__btn:hover:not(:disabled) { background: var(--panel-2); color: var(--bone); border-color: var(--line); }
.rte__btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rte__btn:disabled { opacity: .35; cursor: default; }
.rte__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.rte__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.rte__glyph { font-size: 13px; letter-spacing: .02em; }
.rte__btn--bold .rte__glyph { font-weight: 800; }
.rte__btn--italic .rte__glyph { font-style: italic; font-family: Georgia, serif; }
.rte__btn--underline .rte__glyph { text-decoration: underline; }
.rte__btn--strike .rte__glyph { text-decoration: line-through; }

/* No fixed height: the display face is tall for its size, and 28px clipped the
   caps of the selected option. */
.rte__select {
  min-height: 28px; padding: 4px 8px; margin-right: 6px; line-height: 1.4;
  background: var(--bg); border: 1px solid var(--line); color: var(--bone);
  font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.rte__select:disabled { opacity: .35; }

.rte__surface {
  min-height: 420px; max-height: 70vh; overflow-y: auto; padding: 20px 24px;
  font-size: 15px; line-height: 1.7; outline: none;
}
.rte__surface > :first-child { margin-top: 0; }
.rte__surface p { margin: 0 0 1em; }
.rte__surface h2, .rte__surface h3, .rte__surface h4,
.rte__surface h5, .rte__surface h6 {
  font-family: var(--font-display); letter-spacing: .03em; text-transform: uppercase;
  line-height: 1.15; margin: 1.4em 0 .45em;
}
.rte__surface h2 { font-size: 28px; }
.rte__surface h3 { font-size: 23px; }
.rte__surface h4 { font-size: 19px; }
.rte__surface h5 { font-size: 16px; }
.rte__surface h6 { font-size: 14px; color: var(--muted); }
.rte__surface a { color: var(--ink); text-decoration: underline; }
.rte__surface ul, .rte__surface ol { padding-left: 1.5em; margin: 0 0 1em; }
.rte__surface li { margin-bottom: .35em; }
.rte__surface blockquote {
  margin: 1.3em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--ink);
  font-family: var(--font-display); font-size: 20px; line-height: 1.3;
  text-transform: uppercase; color: var(--bone);
}
.rte__surface pre {
  margin: 1.3em 0; padding: 16px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap;
}
.rte__surface code { font-family: var(--font-mono); font-size: .88em; background: var(--panel-2); padding: .12em .38em; }
.rte__surface pre code { background: none; padding: 0; }
.rte__surface mark { background: var(--ink); color: var(--bg); padding: 0 .2em; }
.rte__surface hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.rte__surface img { max-width: 100%; height: auto; display: block; }
.rte__surface figure { margin: 1.3em 0; max-width: 100%; border: 1px solid var(--line); }
.rte__surface figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px;
  background: var(--panel); border-top: 1px solid var(--line); }
.rte__surface table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.3em 0; }
.rte__surface th, .rte__surface td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; min-width: 40px; }
.rte__surface th { background: var(--panel); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.rte__surface .align-center { text-align: center; }
.rte__surface .align-right { text-align: right; }
.rte__surface figure.align-center { margin-left: auto; margin-right: auto; }
.rte__surface figure.align-right { margin-left: auto; }

/* Source mode swaps the two panes: the textarea was never removed, only hidden,
   which is also what keeps the field usable with the script disabled. */
.rte__source { display: none; border: 0; min-height: 420px; }
.rte.is-source .rte__source { display: block; }
.rte.is-source .rte__surface { display: none; }
.rte__source:focus { outline: none; }

.rte__foot {
  padding: 6px 10px; border-top: 1px solid var(--line); background: var(--panel);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-align: right;
}

.rte__dialog { padding: 14px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.rte__dialog-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rte__dialog-form { display: grid; gap: 10px; }
.rte__dialog-field { display: grid; gap: 4px; }
.rte__dialog-field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rte__dialog-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.rte__dialog-check input { width: auto; }
.rte__dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 700px) {
  .rte__btn { width: 34px; height: 32px; }
  .rte__surface { min-height: 300px; padding: 14px; }
}


.post-entities__row { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.post-entities__label { flex: 1; }
.post-entities__designation { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-entities__results { list-style: none; margin: .25rem 0 0; padding: 0; border: 1px solid var(--line); }
.post-entities__results li { padding: .35rem .5rem; cursor: pointer; }
.post-entities__results li:hover { background: var(--panel); }
