/* Редактор трасс — отдельный слой поверх общих стилей игры. */

html.ed-html,
body.ed-page {
  height: 100%;
  overflow: hidden;
}

body.ed-page {
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(211, 58, 44, 0.08), transparent 60%),
    #121110;
}

.ed-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(23, 20, 17, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ed-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.ed-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ed-logo-text b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.ed-logo-text small {
  margin-top: 4px;
  color: var(--red-hot);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.ed-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.ed-track-select {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 4px 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #141210;
}
.ed-track-select > span {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.ed-track-select select {
  min-width: 185px;
  max-width: 260px;
  height: 32px;
  padding: 0 26px 0 6px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  outline: none;
}
.ed-track-select select option,
.ed-track-select select optgroup {
  background: #1b1815;
  color: var(--paper);
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ed-btn:hover {
  border-color: rgba(241, 231, 210, 0.5);
  background: rgba(241, 231, 210, 0.055);
}
.ed-btn-save {
  border-color: rgba(233, 185, 73, 0.5);
  color: var(--yellow);
}
.ed-btn-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff6e9;
}
.ed-btn-primary:hover {
  border-color: var(--red-hot);
  background: var(--red-hot);
}
.ed-btn[aria-disabled="true"] {
  opacity: 0.45;
}

.ed-body {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  height: calc(100dvh - 68px);
  min-height: 0;
}

/* ---------------------------------------------------------
   Панель параметров
   --------------------------------------------------------- */
.ed-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #181512;
}

.ed-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  flex: 0 0 auto;
}
.ed-dirty[hidden] {
  display: none !important;
}
.ed-dirty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2px;
  text-transform: none;
}
.ed-dirty::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(233, 185, 73, 0.12);
}

.ed-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 231, 210, 0.18) transparent;
}

.ed-section {
  border-bottom: 1px solid var(--line);
}
.ed-section > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ed-section > summary::-webkit-details-marker {
  display: none;
}
.ed-section > summary::after {
  content: "+";
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
}
.ed-section[open] > summary::after {
  content: "−";
}
.ed-section > summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ed-section > summary i {
  color: var(--red);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 1px;
}
.ed-section > summary b {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.ed-section[open] > summary {
  background: rgba(241, 231, 210, 0.025);
}
.ed-section-body {
  padding: 2px 18px 18px;
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.ed-field > span,
.ed-preview-lanes > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.ed-field output {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.ed-field input,
.ed-field select,
.ed-field textarea,
.ed-row input,
.ed-row select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #11100e;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.ed-field textarea {
  resize: vertical;
  min-height: 64px;
}
.ed-field input:focus,
.ed-field select:focus,
.ed-field textarea:focus,
.ed-row input:focus,
.ed-row select:focus {
  border-color: rgba(211, 58, 44, 0.7);
  background: #15120f;
}
.ed-field input[type="range"] {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--red);
}
.ed-field input[type="color"] {
  min-height: 34px;
  padding: 3px;
  cursor: pointer;
}
.ed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ed-row .ed-field {
  min-width: 0;
}
.ed-hint {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}
.ed-hint code,
.ed-hint kbd {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #11100e;
  color: var(--paper-3);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
}
.ed-hint kbd {
  border-color: rgba(233, 185, 73, 0.35);
  color: var(--yellow);
}
.ed-subblock[hidden] {
  display: none;
}
.ed-finish-row {
  margin-top: 14px;
}

.ed-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.ed-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--paper-3);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ed-mini:hover {
  border-color: var(--line-strong);
  background: rgba(241, 231, 210, 0.04);
  color: var(--paper);
}

/* точки контура */
.ed-point-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 230px;
  overflow: auto;
  padding-right: 3px;
}
.ed-point {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 5px;
  align-items: center;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #141210;
}
.ed-point.is-selected {
  border-color: rgba(211, 58, 44, 0.6);
  background: rgba(211, 58, 44, 0.07);
}
.ed-point-num {
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 9px;
  text-align: center;
}
.ed-point label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.ed-point label span {
  color: var(--muted-2);
  font-size: 8px;
}
.ed-point input {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0e0d0b;
  color: var(--paper);
  font-size: 10px;
  outline: none;
}
.ed-point input:focus {
  border-color: var(--red);
}
.ed-point-del {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
}
.ed-point-del:hover:not(:disabled) {
  background: rgba(211, 58, 44, 0.18);
  color: var(--red-hot);
}
.ed-point-del:disabled {
  opacity: 0.25;
  cursor: default;
}

/* заужения */
.ed-zone-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.ed-zone {
  border: 1px solid var(--line);
  border-left: 2px solid rgba(211, 58, 44, 0.65);
  border-radius: 3px;
  background: #141210;
  padding: 8px;
}
.ed-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ed-zone-head > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--paper-3);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ed-zone-head i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-style: normal;
  font-size: 8px;
}
.ed-zone-head button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1;
}
.ed-zone-head button:hover {
  color: var(--red-hot);
}
.ed-zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ed-zone-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ed-zone-grid label.wide {
  grid-column: 1 / -1;
}
.ed-zone-grid input,
.ed-zone-grid select {
  width: 70px;
  min-width: 0;
  height: 27px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0e0d0b;
  color: var(--paper);
  font-size: 10px;
  outline: none;
}
.ed-zone-grid select {
  width: 100%;
  max-width: 150px;
}
.ed-add {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 1px dashed rgba(211, 58, 44, 0.45);
  border-radius: 3px;
  background: rgba(211, 58, 44, 0.04);
  color: #e8897e;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.ed-add:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(211, 58, 44, 0.09);
}
.ed-add:disabled {
  opacity: 0.35;
  cursor: default;
}
.ed-add-muted {
  border-color: rgba(233, 185, 73, 0.35);
  background: rgba(233, 185, 73, 0.035);
  color: #d5b977;
}
.ed-add-muted:hover:not(:disabled) {
  border-color: var(--yellow);
  background: rgba(233, 185, 73, 0.08);
}

.ed-preview-lanes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.ed-seg {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.ed-seg button {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
}
.ed-seg button:last-child {
  border-right: 0;
}
.ed-seg button.is-active {
  background: var(--paper);
  color: var(--ink);
}
.ed-hr {
  margin: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.ed-field-color {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.ed-field-color input {
  width: 68px;
}
.ed-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--paper-3);
  font-size: 11px;
  cursor: pointer;
}
.ed-check input {
  accent-color: var(--red);
}
.ed-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin-top: 2px;
}
.ed-theme[hidden] {
  display: none;
}

.ed-file-row .ed-mini {
  flex: 1 1 auto;
}
.ed-danger {
  width: 100%;
  min-height: 32px;
  margin-top: 14px;
  border: 1px solid rgba(211, 58, 44, 0.4);
  border-radius: 3px;
  background: transparent;
  color: #d88076;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ed-danger:hover:not(:disabled) {
  border-color: var(--red);
  background: rgba(211, 58, 44, 0.1);
}
.ed-danger:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---------------------------------------------------------
   Предпросмотр
   --------------------------------------------------------- */
.ed-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(760px 600px at 52% 42%, rgba(241, 231, 210, 0.035), transparent 68%),
    repeating-linear-gradient(135deg, rgba(241, 231, 210, 0.016) 0 1px, transparent 1px 10px),
    #141210;
}

.ed-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 18, 16, 0.55);
}
.ed-preview-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.ed-kicker {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
}
.ed-preview-title strong {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-preview-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(47, 125, 91, 0.5);
  border-radius: 999px;
  color: #73bd99;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ed-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.ed-badge.is-dirty {
  border-color: rgba(233, 185, 73, 0.5);
  color: var(--yellow);
}
.ed-badge.is-error {
  border-color: rgba(211, 58, 44, 0.6);
  color: var(--red-hot);
}

.ed-board-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px;
}
.ed-board-stage {
  width: 100%;
  height: 100%;
  padding: 0;
}
.ed-board-stage .board-shell {
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.55));
}
.ed-board-wrap .board-stage {
  min-height: 0;
}

.ed-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: all;
  touch-action: none;
}
.ed-handle {
  pointer-events: all;
  cursor: grab;
}
.ed-handle:active {
  cursor: grabbing;
}
.ed-hit {
  fill: transparent;
  stroke: none;
}
.ed-guide-poly {
  fill: rgba(211, 58, 44, 0.045);
  stroke: rgba(211, 58, 44, 0.58);
  stroke-width: 1.4;
  stroke-dasharray: 6 5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ed-handle-dot {
  fill: #171310;
  stroke: #f1e7d2;
  stroke-width: 2;
  transition: r 0.12s, fill 0.12s;
}
.ed-handle-point:hover .ed-handle-dot {
  fill: var(--red);
}
.ed-handle-point.is-selected .ed-handle-dot {
  fill: var(--red);
  stroke: #fff3df;
  r: 9;
}
.ed-handle-label {
  fill: rgba(23, 19, 16, 0.82);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(241, 231, 210, 0.9);
  stroke-width: 2.5px;
  stroke-linejoin: round;
  pointer-events: none;
}
.ed-handle-finish .ed-handle-label {
  font-size: 9px;
  letter-spacing: 1.4px;
}
.ed-finish-ring {
  fill: #d33a2c;
  stroke: #fff3df;
  stroke-width: 2;
}
.ed-finish-flag {
  fill: #fff3df;
  stroke: #171310;
  stroke-width: 0.7;
}
.ed-zone-ring {
  fill: #d33a2c;
  stroke: #fff3df;
  stroke-width: 2;
}
.ed-zone-label {
  fill: #fff6e9;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}
.ed-handle-cap .ed-cap-square {
  fill: #b07a2a;
  stroke: #fff3df;
  stroke-width: 2;
}
.ed-handle-cap .ed-zone-label {
  font-size: 11px;
}

.ed-empty {
  position: absolute;
  inset: 16px 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px;
  border: 1px solid rgba(211, 58, 44, 0.4);
  border-radius: 4px;
  background: rgba(19, 17, 15, 0.9);
  text-align: center;
}
.ed-empty[hidden] {
  display: none;
}
.ed-empty b {
  color: var(--red-hot);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
}
.ed-empty span {
  max-width: 380px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.ed-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 8px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.ed-preview-foot #preview-note {
  overflow: hidden;
  color: var(--muted-2);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  max-width: min(460px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--paper);
  border-radius: 3px;
  background: rgba(23, 19, 16, 0.97);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.ed-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.ed-toast.is-ok {
  border-left-color: var(--green);
}
.ed-toast.is-warn {
  border-left-color: var(--yellow);
}
.ed-toast.is-error {
  border-left-color: var(--red);
}

/* ---------------------------------------------------------
   Адаптив
   --------------------------------------------------------- */
@media (max-width: 1120px) {
  .ed-body {
    grid-template-columns: 350px minmax(0, 1fr);
  }
  .ed-track-select select {
    min-width: 150px;
    max-width: 190px;
  }
}

@media (max-width: 900px) {
  html.ed-html,
  body.ed-page {
    height: auto;
    overflow: auto;
  }
  .ed-header {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 62px;
    padding: 10px 14px;
    flex-wrap: wrap;
  }
  .ed-logo-text b {
    font-size: 19px;
  }
  .ed-toolbar {
    width: 100%;
    justify-content: stretch;
  }
  .ed-track-select {
    order: -1;
    flex: 1 1 100%;
  }
  .ed-track-select select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .ed-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }
  .ed-body {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .ed-preview {
    order: -1;
    height: min(68vh, 720px);
    min-height: 430px;
    border-bottom: 1px solid var(--line);
  }
  .ed-preview-head {
    padding: 9px 14px;
  }
  .ed-preview-tools .ed-mini {
    display: none;
  }
  .ed-board-wrap {
    padding: 8px;
  }
  .ed-preview-foot {
    padding: 7px 14px;
  }
  .ed-preview-foot #preview-note {
    display: none;
  }
  .ed-side {
    border-right: 0;
  }
  .ed-scroll {
    overflow: visible;
  }
  .ed-side-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #181512;
  }
}

@media (max-width: 560px) {
  .ed-header {
    gap: 8px;
  }
  .ed-logo-text small {
    display: none;
  }
  .ed-logo .brand-mark {
    transform: scale(0.85);
  }
  .ed-toolbar {
    gap: 5px;
  }
  .ed-btn {
    flex: 1 1 auto;
    padding: 0 9px;
    letter-spacing: 0.6px;
  }
  .ed-track-select {
    order: -1;
    flex: 1 1 100%;
  }
  .ed-preview {
    height: 58vh;
    min-height: 340px;
  }
  .ed-preview-title strong {
    font-size: 18px;
  }
  .ed-preview-tools {
    gap: 0;
  }
  .ed-preview-foot {
    font-size: 9px;
  }
  .ed-section-body {
    padding: 2px 14px 16px;
  }
  .ed-section > summary {
    padding: 0 14px;
  }
}
