/**
 * zibll-dual-editor — card UI.
 * Stacked cards: mode → toolbar → paper (+ status).
 */

.zde-editor {
  --zde-ink: var(--main-color, #1e293b);
  --zde-muted: var(--muted-2-color, #64748b);
  --zde-muted3: var(--muted-3-color, #94a3b8);
  --zde-line: var(--main-border-color, rgba(15, 23, 42, 0.08));
  --zde-soft: var(--muted-bg-color, #f6f7f9);
  --zde-soft-line: var(--muted-border-color, rgba(15, 23, 42, 0.06));
  --zde-surface: var(--main-bg-color, #ffffff);
  --zde-paper: var(--zde-surface);
  --zde-hover: color-mix(in srgb, var(--zde-ink) 5%, transparent);
  --zde-inset: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --zde-accent: #ff5473;
  --zde-accent-soft: rgba(255, 84, 115, 0.1);
  --zde-radius: 12px;
  --zde-radius-sm: 8px;
  --zde-shadow: 0 1px 2px var(--main-shadow, rgba(15, 23, 42, 0.04)),
    0 8px 24px var(--main-shadow, rgba(15, 23, 42, 0.06));
  --zde-chrome-z: 20;
  --zde-pad-x: 20px;
  --zde-pad-y: 18px;
  --zde-pad-bottom: 36px;
  --zde-md-line: 1.75em;
  --zde-card-gap: 10px;
  --zde-sb-size: 5px;
  --zde-sb-radius: 999px;
  --zde-sb-thumb: color-mix(in srgb, var(--zde-ink) 22%, transparent);
  --zde-sb-thumb-hover: color-mix(in srgb, var(--zde-ink) 38%, transparent);
  --zde-sb-thumb-active: color-mix(in srgb, var(--zde-ink) 48%, transparent);
  --zde-sb-track: transparent;
  --zde-edit-max: min(72vh, 880px);
  display: flex;
  flex-direction: column;
  gap: var(--zde-card-gap);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  max-width: 100%;
  box-shadow: none;
  font-family: inherit;
  color: var(--zde-ink);
  position: relative;
  box-sizing: border-box;
}

body.dark-theme .zde-editor {
  --zde-paper: var(--zde-surface);
  --zde-hover: rgba(255, 255, 255, 0.06);
  --zde-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --zde-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28);
  --zde-line: var(--main-border-color, rgba(255, 255, 255, 0.08));
  --zde-sb-thumb: rgba(255, 255, 255, 0.2);
  --zde-sb-thumb-hover: rgba(255, 255, 255, 0.34);
  --zde-sb-thumb-active: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .zde-editor__chrome,
  .zde-editor__mode,
  .zde-editor__view,
  .zde-editor__tool,
  .zde-editor__toast,
  .zde-editor__focus-btn {
    transition: none !important;
  }
}


.zde-editor.is-converting {
  pointer-events: none;
  opacity: 0.72;
}

.zde-editor.is-converting::after {
  content: '正在转换…';
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--zde-surface);
  border: 1px solid var(--zde-line);
  box-shadow: var(--zde-shadow, 0 12px 32px rgba(15, 23, 42, 0.06));
  font-size: 13px;
  font-weight: 700;
  color: var(--zde-ink);
  letter-spacing: 0;
}

.zde-editor [hidden] {
  display: none !important;
}

.zde-editor .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.zde-editor__hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Toolbar card — same surface / shadow language as TinyMCE .mce-toolbar-grp */
.zde-editor__chrome {
  position: sticky;
  top: var(--zde-sticky-top, 0px);
  z-index: var(--zde-chrome-z);
  margin: 0;
  padding: 0;
  background: var(--zde-surface);
  border: 1px solid var(--zde-line);
  border-radius: var(--zde-radius);
  box-shadow: var(--zde-shadow);
  overflow: visible;
  color: var(--zde-ink);
}

.zde-editor__chrome.is-stuck {
  background: var(--zde-surface);
  box-shadow: 0 6px 22px var(--main-shadow, rgba(15, 23, 42, 0.12));
  border-color: var(--zde-line);
}

body.dark-theme .zde-editor__chrome.is-stuck {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.zde-editor__bar {
  display: none;
}

.zde-editor__focus-btn {
  appearance: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--zde-muted3);
  width: 30px;
  height: 30px;
  border-radius: var(--zde-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.zde-editor__focus-btn:hover {
  color: var(--zde-ink);
  background: var(--zde-hover);
}

.zde-editor__focus-btn[aria-pressed='true'] {
  color: var(--zde-accent);
  background: var(--zde-accent-soft);
}

/* Mode / view controls live in mode-bar.css (split layout). */
.zde-editor__modes,
.zde-editor__views {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

.zde-editor__mode,
.zde-editor__view {
  appearance: none;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
}

.zde-editor__mode:focus-visible,
.zde-editor__view:focus-visible,
.zde-editor__tool:focus-visible,
.zde-editor__menu-item:focus-visible,
.zde-editor__focus-btn:focus-visible {
  outline: 2px solid var(--zde-accent);
  outline-offset: 2px;
}

/* Toolbar — match TinyMCE chrome (flat surface, muted icons, accent active) */
.zde-editor__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 10px;
  overflow: visible;
  background: transparent;
}

.zde-editor__toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.zde-editor__toolbar-row + .zde-editor__toolbar-row {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid var(--zde-line);
}

.zde-editor__toolbar-row--zibll {
  background: transparent;
  border-color: var(--zde-line);
}

.zde-editor__toolbar-row--zibll[hidden] {
  display: none !important;
}

.zde-editor__row-tag {
  display: none !important;
}

.zde-editor.is-preview .zde-editor__toolbar {
  display: none;
}

.zde-editor__tool-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
}

.zde-editor__tool-group + .zde-editor__tool-group {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.zde-editor__divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 6px;
  background: var(--zde-line);
  align-self: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.zde-editor__tool {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--zde-muted);
  min-width: 30px;
  height: 30px;
  margin: 0;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  box-shadow: none;
}

.zde-editor__tool .fa {
  font-size: 13px;
  width: 1em;
  text-align: center;
}

/* Keyboard-key toolbar control (cmd: kbd) */
.zde-editor__tool .zde-tool-kbd {
  display: inline-block;
  margin: 0;
  padding: 2px 6px;
  min-width: 1.6em;
  border: 1px solid var(--zde-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--zde-ink) 4%, var(--zde-surface));
  color: inherit;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--zde-ink) 6%, transparent);
}

.zde-editor__tool:hover {
  background: var(--zde-hover);
  color: var(--zde-ink);
  box-shadow: none;
}

.zde-editor__toolbar-row--zibll .zde-editor__tool:hover {
  background: var(--zde-hover);
  box-shadow: none;
}

.zde-editor__tool:hover .zde-tool-kbd {
  border-color: color-mix(in srgb, var(--zde-ink) 18%, var(--zde-line));
  background: var(--zde-surface);
  color: var(--zde-ink);
}

.zde-editor__tool:active {
  transform: none;
}

.zde-editor__tool.is-active {
  background: transparent;
  color: var(--zde-accent);
  box-shadow: none;
  font-weight: 650;
}

.zde-editor__tool.is-active:hover {
  background: var(--zde-hover);
  color: var(--zde-accent);
}

.zde-editor__tool.is-active .zde-tool-kbd {
  border-color: color-mix(in srgb, var(--zde-accent) 40%, var(--zde-line));
  color: var(--zde-accent);
  background: var(--zde-accent-soft);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--zde-accent) 18%, transparent);
}

.zde-editor__menu-wrap {
  position: relative;
  display: inline-flex;
}

.zde-editor__tool--menu {
  padding-right: 8px;
}

.zde-editor__tool--menu .zde-editor__caret {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

.zde-editor__tool--menu:hover .zde-editor__caret {
  opacity: 0.9;
}

.zde-editor__menu {
  /* Portaled menus inherit from body; re-bind Zibll tokens here. */
  --zde-ink: var(--main-color, #1e293b);
  --zde-muted: var(--muted-2-color, #64748b);
  --zde-line: var(--main-border-color, #e2e8f0);
  --zde-soft: var(--muted-bg-color, #f1f5f9);
  --zde-surface: var(--main-bg-color, #ffffff);
  --zde-accent: #ff5473;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 168px;
  max-height: min(70vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  border: 1px solid var(--zde-line);
  border-radius: 10px;
  background: var(--zde-surface);
  color: var(--zde-ink);
  box-shadow: 0 8px 28px var(--main-shadow, rgba(15, 23, 42, 0.12));
}

body.dark-theme .zde-editor__menu {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.zde-editor__menu.is-fixed {
  z-index: 100100;
  margin: 0;
}

.zde-editor__menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--zde-ink);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 10px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.zde-editor__menu-item:hover,
.zde-editor__menu-item:focus {
  background: var(--zde-soft);
  color: var(--zde-accent);
  outline: none;
}

.zde-editor__swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--zde-swatch, #cbd5e1);
}

.zde-editor__menu-item--h1 {
  font-size: 17px;
  font-weight: 700;
}

.zde-editor__menu-item--h2 {
  font-size: 15px;
  font-weight: 700;
}

.zde-editor__menu-item--h3 {
  font-size: 14px;
  font-weight: 700;
}

.zde-editor__menu-item--h4 {
  font-size: 13.5px;
  font-weight: 600;
}

.zde-editor__menu-item--h5,
.zde-editor__menu-item--h6 {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.zde-editor__menu-item--h0 {
  font-size: 13px;
  font-weight: 500;
}

/* Writing paper card (panes + status) */
.zde-editor__paper {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid var(--zde-line);
  border-radius: 0;
  background: var(--zde-paper);
  box-shadow: var(--zde-shadow);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zde-editor__paper:focus-within {
  border-color: color-mix(in srgb, var(--zde-accent) 22%, var(--zde-line));
  box-shadow: 0 0 0 3px var(--zde-accent-soft), var(--zde-shadow);
}

.zde-editor__panes {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  gap: 0;
}

.zde-editor__panes:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.zde-editor__panes.is-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: transparent;
}

.zde-editor__pane {
  min-width: 0;
  min-height: 420px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/*
 * Chrome/Windows: ::-webkit-scrollbar on <textarea> is ignored.
 * Scroll the pane <div> instead; textarea auto-grows (overflow:hidden).
 */
.zde-editor__pane--edit {
  position: relative;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: var(--zde-edit-max);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--zde-sb-thumb) var(--zde-sb-track);
}

.zde-editor__pane--preview {
  max-height: var(--zde-edit-max);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--zde-sb-thumb) var(--zde-sb-track);
}

.zde-editor__pane,
.zde-editor__menu {
  scrollbar-width: thin;
  scrollbar-color: var(--zde-sb-thumb) var(--zde-sb-track);
}

.zde-editor__pane::-webkit-scrollbar,
.zde-editor__menu::-webkit-scrollbar {
  width: var(--zde-sb-size);
  height: var(--zde-sb-size);
  background: transparent;
}

.zde-editor__pane::-webkit-scrollbar-button,
.zde-editor__menu::-webkit-scrollbar-button,
.zde-editor__pane::-webkit-scrollbar-button:single-button,
.zde-editor__pane::-webkit-scrollbar-button:vertical:start:decrement,
.zde-editor__pane::-webkit-scrollbar-button:vertical:end:increment,
.zde-editor__pane::-webkit-scrollbar-button:horizontal:start:decrement,
.zde-editor__pane::-webkit-scrollbar-button:horizontal:end:increment,
.zde-editor__menu::-webkit-scrollbar-button:vertical:start:decrement,
.zde-editor__menu::-webkit-scrollbar-button:vertical:end:increment {
  display: block;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  background-image: none;
}

.zde-editor__pane::-webkit-scrollbar-track,
.zde-editor__menu::-webkit-scrollbar-track {
  background: transparent;
  border: 0;
}

.zde-editor__pane::-webkit-scrollbar-thumb,
.zde-editor__menu::-webkit-scrollbar-thumb {
  background-color: var(--zde-sb-thumb);
  border-radius: var(--zde-sb-radius);
  border: 0;
  min-height: 24px;
}

.zde-editor__pane::-webkit-scrollbar-thumb:hover,
.zde-editor__menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--zde-sb-thumb-hover);
}

.zde-editor__pane::-webkit-scrollbar-thumb:active,
.zde-editor__menu::-webkit-scrollbar-thumb:active {
  background-color: var(--zde-sb-thumb-active);
}

.zde-editor__pane::-webkit-scrollbar-corner,
.zde-editor__menu::-webkit-scrollbar-corner {
  background: transparent;
}

.zde-editor__pane--preview {
  border-left: 0;
  background: color-mix(in srgb, var(--zde-surface) 70%, var(--zde-paper));
  box-shadow: none;
}

.zde-editor__panes.is-split .zde-editor__pane--preview {
  border-left: 1px solid var(--zde-line);
  background: rgba(0, 0, 0, 0.015);
}

body.dark-theme .zde-editor__panes.is-split .zde-editor__pane--preview {
  background: rgba(255, 255, 255, 0.03);
}

.zde-editor__panes:not(.is-split) .zde-editor__pane--preview {
  border-left: 0;
}

/* Labels only in split / preview-only */
.zde-editor__pane-label {
  display: none;
  position: absolute;
  top: 12px;
  left: var(--zde-pad-x);
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--zde-muted3);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.zde-editor__panes.is-split .zde-editor__pane-label,
.zde-editor.is-preview .zde-editor__pane--preview .zde-editor__pane-label {
  display: block;
}

.zde-editor__pane-label .fa {
  display: none;
}

.zde-editor__preview-label {
  display: none !important;
}

/* Markdown code shell: gutter + textarea (grows; pane scrolls) */
.zde-editor__code {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 420px;
  height: auto;
  max-height: none;
  position: relative;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

.zde-editor__gutter {
  --zde-gutter-ch: 2;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(var(--zde-gutter-ch) * 1ch + 20px);
  min-width: 2.5em;
  margin: 0;
  padding: var(--zde-pad-y) 6px var(--zde-pad-bottom) 10px;
  border: 0;
  border-right: 1px solid var(--zde-line);
  background: transparent;
  color: color-mix(in srgb, var(--zde-muted3) 80%, transparent);
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: var(--zde-md-line, 1.75em);
  text-align: right;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

body.dark-theme .zde-editor__gutter {
  background: transparent;
}

.zde-editor__gutter span {
  display: block;
  box-sizing: border-box;
  /* height set per wrapped visual block via JS */
  min-height: var(--zde-md-line, 1.75em);
  line-height: var(--zde-md-line, 1.75em);
  overflow: hidden;
}

.zde-editor__gutter span > i {
  display: block;
  font-style: normal;
  height: var(--zde-md-line, 1.75em);
  line-height: var(--zde-md-line, 1.75em);
}

/* Hidden probe for measuring soft-wrapped line heights */
.zde-editor__line-mirror {
  position: absolute;
  left: -99999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: content-box;
  padding: 0;
  margin: 0;
  border: 0;
}

.zde-editor__panes.is-split .zde-editor__gutter {
  padding-top: calc(var(--zde-pad-y) + 18px);
}

.zde-editor__code .zde-editor__textarea {
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 420px;
  height: auto;
  max-height: none;
  align-self: stretch;
  padding-left: 14px;
  resize: none;
  /* Soft-wrap; no native scrollbar — Chrome ignores textarea ::-webkit-scrollbar */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
}

.zde-editor__textarea,
.zde-editor__rich {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  height: auto;
  margin: 0;
  padding: var(--zde-pad-y) var(--zde-pad-x) var(--zde-pad-bottom);
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: var(--zde-ink);
  font-size: 16px;
  line-height: 1.85;
  box-shadow: none !important;
  word-wrap: break-word;
  box-sizing: border-box;
  caret-color: var(--zde-accent);
  overflow: hidden;
  color-scheme: light;
}

body.dark-theme .zde-editor__textarea,
body.dark-theme .zde-editor__rich,
body.dark-theme .zde-editor__pane,
body.dark-theme .zde-editor__preview-body {
  color-scheme: dark;
}

.zde-editor__rich ::selection {
  background: color-mix(in srgb, var(--zde-accent) 22%, transparent);
}

.zde-editor__textarea ::selection {
  background: color-mix(in srgb, var(--zde-accent) 22%, transparent);
}

/* Rich text: grow with content, no nested scrollbar (page scrolls instead) */
.zde-editor [data-zde-rt] {
  min-height: 420px;
  overflow: visible;
}

.zde-editor [data-zde-rt] .zde-editor__pane {
  overflow: visible;
  height: auto;
}

.zde-editor [data-zde-rt] .zde-editor__rich {
  height: auto;
  min-height: 420px;
  resize: none;
  overflow: visible;
}

.zde-editor [data-zde-rt] .zde-editor__preview-body {
  height: auto;
  min-height: 420px;
  overflow: visible;
}

.zde-editor__pane--edit .zde-editor__textarea,
.zde-editor__pane--edit .zde-editor__rich {
  position: relative;
  z-index: 1;
  background: transparent;
  padding-top: var(--zde-pad-y);
}

.zde-editor__panes.is-split .zde-editor__pane--edit .zde-editor__textarea,
.zde-editor__panes.is-split .zde-editor__pane--edit .zde-editor__rich,
.zde-editor__panes.is-split .zde-editor__preview-body,
.zde-editor.is-preview .zde-editor__preview-body {
  padding-top: calc(var(--zde-pad-y) + 18px);
}

.zde-editor__textarea {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: var(--zde-md-line);
  tab-size: 2;
  /* Soft lined paper — barely there */
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    transparent calc(var(--zde-md-line) - 1px),
    color-mix(in srgb, var(--zde-ink) 4%, transparent) 0
  );
  background-size: 100% var(--zde-md-line);
  background-repeat: repeat-y;
  background-position: left top;
  background-origin: content-box;
  background-clip: content-box;
  background-attachment: local;
}

.zde-editor__textarea::placeholder {
  color: var(--zde-muted3);
  opacity: 0.7;
  font-style: normal;
}

body.dark-theme .zde-editor__textarea {
  background-image: linear-gradient(
    to bottom,
    transparent calc(var(--zde-md-line) - 1px),
    rgba(255, 255, 255, 0.09) 0
  );
}

.zde-editor__rich {
  font-family: inherit;
}

.zde-editor__rich:empty::before {
  content: attr(data-placeholder);
  color: var(--zde-muted3);
  pointer-events: none;
  white-space: pre-line;
}



.zde-editor__preview-body {
  padding: var(--zde-pad-y) var(--zde-pad-x) var(--zde-pad-bottom);
  min-height: 420px;
  box-sizing: border-box;
  overflow: visible;
  /* Typography comes from .zde-markdown-content (frontend.css) — same as published. */
}

/* Edit surface only — preview uses shared frontend.css */
.zde-editor__rich h1,
.zde-editor__rich h2,
.zde-editor__rich h3,
.zde-editor__rich h4,
.zde-editor__rich h5,
.zde-editor__rich h6 {
  margin: 1.35em 0 0.55em;
  line-height: 1.35;
  font-weight: 700;
  color: var(--zde-ink);
  position: relative;
}


.zde-editor__rich h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 0;
}

.zde-editor__rich h2::before {
  content: '';
  flex-shrink: 0;
  align-self: center;
  width: 3px;
  height: 0.85em;
  border-radius: 2px;
  background: var(--theme-color, var(--zde-accent));
  opacity: 0.9;
}

.zde-editor__rich h1 { font-size: 1.55em; letter-spacing: -0.01em; }
.zde-editor__rich h2 { font-size: 1.35em; }
.zde-editor__rich h3 { font-size: 1.18em; }
.zde-editor__rich h4 { font-size: 1.05em; }
.zde-editor__rich h5,
.zde-editor__rich h6 {
  font-size: 1em;
  color: color-mix(in srgb, var(--zde-ink) 82%, var(--zde-muted));
}

.zde-editor__rich h1:first-child,
.zde-editor__rich h2:first-child,
.zde-editor__rich h3:first-child {
  margin-top: 0;
}

.zde-editor__rich p {
  margin: 0 0 1em;
}

.zde-editor__rich mark {
  background: color-mix(in srgb, #fde68a 70%, transparent);
  color: inherit;
  padding: 0.05em 0.15em;
  border-radius: 2px;
}

.zde-editor__rich code:not(pre code) {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--zde-soft);
  border: 0;
  color: color-mix(in srgb, var(--zde-ink) 88%, #be185d);
}

.zde-editor__rich a {
  color: var(--zde-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
}

.zde-editor__rich kbd,
.zde-editor__preview-body kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.3;
  color: var(--zde-ink);
  background: color-mix(in srgb, var(--zde-ink) 5%, var(--zde-surface));
  border: 1px solid var(--zde-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--zde-ink) 6%, transparent);
  white-space: nowrap;
}

/* Callouts — icon + accent bar */
.zde-editor__rich .zde-callout {
  --zde-callout-accent: var(--theme-color, var(--zde-accent));
  --zde-callout-icon-size: 1.15em;
  --zde-callout-lh: 1.65;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1em 0 1.25em;
  padding: 12px 14px;
  border-radius: 8px;
  border: 0;
  border-left: 3px solid var(--zde-callout-accent);
  background: color-mix(in srgb, var(--zde-callout-accent) 8%, transparent);
  line-height: var(--zde-callout-lh);
  box-sizing: border-box;
}

.zde-editor__rich .zde-callout::before {
  content: '' !important;
  flex: 0 0 var(--zde-callout-icon-size);
  width: var(--zde-callout-icon-size);
  height: var(--zde-callout-icon-size);
  margin: calc((1em * var(--zde-callout-lh) - var(--zde-callout-icon-size)) / 2) 0 0;
  position: static;
  left: auto;
  top: auto;
  border-radius: 0;
  background-color: var(--zde-callout-accent);
  -webkit-mask: var(--zde-callout-icon) center / contain no-repeat;
  mask: var(--zde-callout-icon) center / contain no-repeat;
  display: block !important;
}

.zde-editor__rich .zde-callout > :not(.zde-block-remove) {
  flex: 1 1 auto;
  min-width: 0;
}

.zde-editor__rich .zde-callout__title {
  display: none !important;
}

.zde-editor__rich .zde-callout > :first-child,
.zde-editor__rich .zde-callout [contenteditable='true'] > :first-child {
  margin-top: 0;
}

.zde-editor__rich .zde-callout > :last-child,
.zde-editor__rich .zde-callout [contenteditable='true'] > :last-child {
  margin-bottom: 0;
}

.zde-editor__rich .zde-callout [contenteditable='true'] {
  line-height: inherit;
}

.zde-editor__rich .zde-callout p {
  margin: 0 0 0.55em;
  line-height: inherit;
}

.zde-editor__rich .zde-callout p:last-child {
  margin-bottom: 0;
}

.zde-editor__rich .zde-callout--info {
  --zde-callout-accent: #3b82f6;
  --zde-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

.zde-editor__rich .zde-callout--success {
  --zde-callout-accent: #22c55e;
  --zde-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.zde-editor__rich .zde-callout--warning {
  --zde-callout-accent: #f59e0b;
  --zde-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.zde-editor__rich .zde-callout--danger {
  --zde-callout-accent: #ef4444;
  --zde-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
}

.zde-editor__rich .zde-callout--tip {
  --zde-callout-accent: #8b5cf6;
  --zde-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/%3E%3C/svg%3E");
}

.zde-editor__rich .zde-spoiler {
  margin: 1em 0 1.25em;
  padding: 0;
  border: 1px solid var(--zde-line);
  border-radius: 8px;
  background: var(--zde-surface, #fff);
  position: relative;
  overflow: hidden;
}

.zde-editor__rich .zde-spoiler::before {
  display: none !important;
}

.zde-editor__rich .zde-spoiler > summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--zde-ink) 2.5%, transparent);
  border-bottom: 1px solid transparent;
  list-style: none;
}

.zde-editor__rich .zde-spoiler[open] > summary {
  border-bottom-color: var(--zde-line);
}

.zde-editor__rich .zde-spoiler > summary::-webkit-details-marker {
  display: none;
}

.zde-editor__rich .zde-spoiler > :not(summary) {
  padding: 12px 14px;
}

.zde-editor__rich .zde-math--block {
  display: block;
  margin: 1em 0;
  overflow-x: auto;
  text-align: center;
  position: relative;
  padding: 14px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--zde-ink) 2.5%, transparent);
  border: 1px solid var(--zde-line);
}

.zde-editor__rich .zde-math--block::before {
  display: none !important;
}

.zde-editor__rich .zde-math--inline {
  display: inline;
}

.zde-editor__rich .katex-display {
  margin: 0.75em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.zde-editor__rich .zde-math-block {
  background: rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
  border-radius: 8px;
  overflow-x: auto;
}

.zde-editor__rich ul,
.zde-editor__rich ol {
  margin: 10px 0 20px 15px;
  padding-left: 15px;
}

.zde-editor__rich ul {
  list-style: disc;
}

.zde-editor__rich ol {
  list-style: decimal;
}

.zde-editor__rich li {
  margin-bottom: 0.45em;
}

.zde-editor__rich hr {
  margin: 1.6em 0;
  border: 0;
  height: 1px;
  background: var(--zde-line);
}

.zde-editor__rich img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75em auto;
  border-radius: 6px;
}

.zde-editor__rich img:focus,
.zde-editor__rich img[data-mce-selected] {
  outline: 2px solid color-mix(in srgb, var(--zde-accent) 55%, transparent);
  outline-offset: 2px;
}

.zde-editor__preview-body .zde-block-remove {
  display: none !important;
}

.zde-editor__preview-body.is-empty {
  color: var(--zde-muted);
}

.zde-editor__status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-top: 1px solid var(--zde-line);
  border-radius: 0;
  background: color-mix(in srgb, var(--zde-soft) 55%, var(--zde-surface));
  box-shadow: none;
  font-size: 11.5px;
  color: var(--zde-muted3);
  line-height: 1.4;
}

.zde-editor__status-format {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--zde-accent) 12%, transparent);
  color: color-mix(in srgb, var(--zde-accent) 78%, var(--zde-ink));
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.zde-editor__status-sep {
  opacity: 0.3;
}

.zde-editor__status-count {
  font-variant-numeric: tabular-nums;
}

.zde-editor__status-block {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--zde-muted);
  background: transparent;
}

.zde-editor__status-block:not([hidden])::before {
  content: '·';
  margin-right: 10px;
  opacity: 0.3;
}

.zde-editor__status-action {
  color: var(--zde-accent);
  font-weight: 600;
  animation: zde-action-in 0.2s ease;
}

.zde-editor__status-hint {
  margin-left: auto;
  opacity: 0.4;
  font-size: 11px;
  letter-spacing: 0.01em;
}

/* Toast */
.zde-editor__toast {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 60;
  transform: translateX(-50%) translateY(6px);
  max-width: min(92%, 320px);
  padding: 7px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--zde-ink) 90%, #000);
  color: #fff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.zde-editor__toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.zde-editor__toast.is-ok {
  background: color-mix(in srgb, var(--zde-ink) 92%, #000);
}

.zde-editor__toast.is-muted {
  background: color-mix(in srgb, var(--zde-ink) 78%, #000);
}

body.dark-theme .zde-editor__toast.is-ok {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Custom dialog (replace native prompt/alert) */
.zde-editor__dialog {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.zde-editor__dialog[hidden] {
  display: none !important;
}

.zde-editor__dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.zde-editor__dialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(86vh, 560px);
  overflow: auto;
  border-radius: 16px;
  background: var(--zde-surface);
  border: 1px solid var(--zde-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 48px rgba(15, 23, 42, 0.14);
  animation: zde-dialog-in 0.18s ease;
}

.zde-editor__dialog.is-code .zde-editor__dialog-panel {
  width: min(100%, 680px);
  max-height: min(90vh, 720px);
}

.zde-editor__dialog.is-table .zde-editor__dialog-panel {
  width: min(100%, 760px);
  max-height: min(90vh, 720px);
}

@keyframes zde-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zde-editor__dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--zde-line);
}

.zde-editor__dialog-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--zde-ink);
  line-height: 1.3;
}

.zde-editor__dialog-x {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--zde-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zde-editor__dialog-x:hover {
  background: var(--zde-accent-soft);
  color: var(--zde-accent);
}

.zde-editor__dialog-body {
  padding: 14px 16px 6px;
}

.zde-editor__dialog-msg {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--zde-ink);
}

.zde-editor__dialog-field {
  margin: 0 0 12px;
}

.zde-editor__dialog-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zde-muted);
}

.zde-editor__dialog-field input,
.zde-editor__dialog-field textarea,
.zde-editor__dialog-field select {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--zde-line);
  border-radius: var(--zde-radius, 6px);
  background: var(--zde-surface);
  color: var(--zde-ink);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zde-editor__dialog-field select {
  cursor: pointer;
  appearance: auto;
}

.zde-editor__dialog-field textarea {
  min-height: 84px;
  resize: vertical;
}

.zde-editor__dialog-field input.zde-dialog-lang {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
}

.zde-editor__dialog-field textarea.zde-dialog-code {
  min-height: 280px;
  max-height: min(52vh, 480px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  word-wrap: normal;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.025);
}

body.dark-theme .zde-editor__dialog-field textarea.zde-dialog-code {
  background: rgba(0, 0, 0, 0.25);
}

.zde-editor__dialog-field.is-wide {
  grid-column: 1 / -1;
}

.zde-editor__dialog-field.is-tablegrid > label {
  margin-bottom: 8px;
}

.zde-dialog-table-host {
  width: 100%;
}

.zde-dialog-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.zde-dialog-table-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--zde-muted);
  font-weight: 600;
}

.zde-dialog-table-toolbar input[type='number'] {
  width: 64px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--zde-line);
  border-radius: 6px;
  background: var(--zde-surface);
  color: var(--zde-ink);
  font-size: 13px;
}

.zde-dialog-table-hint {
  font-size: 12px;
  color: var(--zde-muted3);
  font-weight: 400;
}

.zde-dialog-table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--zde-line);
  border-radius: 8px;
  background: var(--zde-surface);
}

.zde-dialog-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  table-layout: fixed;
}

.zde-dialog-table th,
.zde-dialog-table td {
  border: 1px solid var(--zde-line);
  padding: 0;
  vertical-align: middle;
  text-align: left;
}

.zde-dialog-table th {
  background: var(--zde-soft);
}

.zde-editor__dialog-field .zde-dialog-table input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
  padding: 8px 10px;
  min-height: 36px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--zde-ink);
  text-align: left;
}

.zde-dialog-table th input {
  font-weight: 700;
}

.zde-editor__dialog-field .zde-dialog-table input:focus {
  outline: 2px solid var(--zde-accent);
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.65);
  border-color: transparent;
  box-shadow: none;
}

body.dark-theme .zde-editor__dialog-field .zde-dialog-table input:focus {
  background: rgba(255, 255, 255, 0.06);
}

.zde-editor__dialog-field input:focus,
.zde-editor__dialog-field textarea:focus,
.zde-editor__dialog-field select:focus {
  border-color: var(--zde-accent);
  box-shadow: 0 0 0 3px var(--zde-accent-soft);
}

.zde-editor__dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
}

.zde-editor__dialog-btn {
  appearance: none;
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.zde-editor__dialog-btn--ghost {
  background: transparent;
  border-color: var(--zde-line);
  color: var(--zde-ink);
}

.zde-editor__dialog-btn--ghost:hover {
  background: var(--zde-soft);
}

.zde-editor__dialog-btn--primary {
  background: var(--zde-accent);
  color: #fff;
}

.zde-editor__dialog-btn--primary:hover {
  filter: brightness(1.05);
}

.zde-editor__dialog.is-alert .zde-editor__dialog-btn--ghost {
  display: none;
}

/* Flash inserted / formatted blocks */
.zde-editor__rich .zde-flash,
.zde-editor__preview-body .zde-flash {
  animation: zde-flash-pulse 0.75s ease;
}

.zde-editor__preview-body.is-pulse {
  animation: zde-preview-pulse 0.65s ease;
}

@keyframes zde-flash-pulse {
  0% {
    background-color: color-mix(in srgb, var(--zde-accent) 10%, transparent);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes zde-preview-pulse {
  0% {
    box-shadow: inset 0 0 0 0 transparent;
  }
  35% {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zde-accent) 35%, transparent);
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent;
  }
}

@keyframes zde-action-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zde-editor.is-fullscreen {
  --zde-edit-max: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--zde-soft);
  overflow: hidden;
  box-sizing: border-box;
}

.zde-editor.is-fullscreen .zde-editor__paper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.zde-editor.is-fullscreen .zde-editor__panes {
  flex: 1;
  min-height: 0;
}

.zde-editor.is-fullscreen .zde-editor__pane--edit,
.zde-editor.is-fullscreen .zde-editor__pane--preview {
  max-height: none;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.zde-editor.is-fullscreen .zde-editor__code,
.zde-editor.is-fullscreen .zde-editor__code .zde-editor__textarea {
  max-height: none;
  height: auto;
  min-height: 100%;
  overflow: visible;
}

.zde-editor.is-fullscreen .zde-editor__code .zde-editor__textarea {
  overflow: hidden;
}

.zde-editor.is-fullscreen .zde-editor__gutter {
  height: auto;
  min-height: 100%;
}

/* Fullscreen keeps internal scroll for long rich text */
.zde-editor.is-fullscreen [data-zde-rt] .zde-editor__pane {
  overflow-x: hidden;
  overflow-y: auto;
}

.zde-editor.is-fullscreen [data-zde-rt] .zde-editor__rich,
.zde-editor.is-fullscreen [data-zde-rt] .zde-editor__preview-body {
  height: 100%;
  overflow: auto;
}

body.zde-fullscreen-lock {
  overflow: hidden !important;
}

/* Editor-only chips — hidden for a cleaner canvas */
.zde-editor__rich .zde-block-chip,
.zde-editor .quote_q > .zde-block-chip {
  display: none !important;
}

/* Edit: exact TinyMCE hide chrome (themes/zibll/css/tinymce.css) */
.zde-editor__rich .tinymce-hide {
  margin-bottom: 20px;
  border: 1px dashed #f93872;
  border-radius: 8px;
  padding: 6px;
  background: transparent;
  position: relative;
}

.zde-editor__rich .tinymce-hide > .hide-before {
  font-size: 13px;
  font-weight: 400;
  color: #db4c77;
  border: 0;
  border-bottom: 1px dashed #f93872;
  border-right: 1px dashed #f93872;
  margin: -5px 20px 6px -5px;
  padding: 0 12px 6px;
  display: inline-block;
  border-radius: 0 0 8px 0;
  background: transparent;
}

.zde-editor__rich .tinymce-hide > .hide-after {
  display: none;
}

.zde-editor__rich .tinymce-hide > [contenteditable='true'] {
  background: var(--main-bg-color, var(--zde-surface, #fff));
  border-radius: 6px;
  padding: 1px 10px;
  min-height: 1.5em;
  outline: none;
}

/* Nested rich blocks inside hide / quote — keep normal flow like TinyMCE */
.zde-editor__rich .tinymce-hide > [contenteditable='true'] > :first-child,
.zde-editor__rich .quote_q > [contenteditable='true'] > :first-child {
  margin-top: 0.35em;
}

.zde-editor__rich .tinymce-hide > [contenteditable='true'] > :last-child,
.zde-editor__rich .quote_q > [contenteditable='true'] > :last-child {
  margin-bottom: 0.35em;
}

.zde-editor__rich .tinymce-hide pre,
.zde-editor__rich .tinymce-hide .enlighter-pre,
.zde-editor__rich .tinymce-hide .zde-nest-pre,
.zde-editor__rich .quote_q pre,
.zde-editor__rich .quote_q .enlighter-pre {
  margin: 0.75em 0;
  padding: 12px 14px;
  overflow: auto;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--zde-line);
  white-space: pre !important;
  word-wrap: normal !important;
  position: relative;
}

.zde-editor__rich .tinymce-hide pre[data-lang]::before,
.zde-editor__rich .quote_q pre[data-lang]::before {
  content: attr(data-lang);
  display: block;
  margin: -4px 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--zde-muted3, #94a3b8);
  user-select: none;
  pointer-events: none;
}

.zde-editor__rich .tinymce-hide pre code,
.zde-editor__rich .quote_q pre code {
  display: block;
  background: transparent;
  padding: 0;
  white-space: pre !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.zde-editor__rich .tinymce-hide table,
.zde-editor__rich .quote_q table {
  margin: 0.75em 0;
  width: 100%;
}

.zde-editor__rich .tinymce-hide > [contenteditable='true'] p,
.zde-editor__rich .quote_q > [contenteditable='true'] p {
  margin: 0.65em 0;
}

.zde-editor__rich .tinymce-hide img,
.zde-editor__rich .quote_q img {
  max-width: 100%;
  height: auto;
}

.zde-editor__rich .tinymce-hide .file-download-box,
.zde-editor__rich .tinymce-hide .new-dplayer,
.zde-editor__rich .tinymce-hide .post-dplayer,
.zde-editor__rich .tinymce-hide .wp-block-embed,
.zde-editor__rich .quote_q .file-download-box {
  margin: 0.75em 0;
}

.zde-editor .quote_q {
  padding: 1.15em 1.2em 1.15em;
  margin: 10px 0 1.25em 0;
  position: relative;
  border-radius: 8px;
  --quote-color: var(--main-color, #4e5358);
  color: var(--quote-color) !important;
  border: 0;
  border-left: 3px solid color-mix(in srgb, var(--quote-color) 55%, transparent);
  background: color-mix(in srgb, var(--quote-color) 5%, transparent);
}

.zde-editor .quote_q > div[contenteditable='true'],
.zde-editor .quote_q > p {
  position: relative;
  margin: 0;
  padding-left: 2em;
  opacity: 0.7;
  z-index: 1;
  box-sizing: border-box;
}

.zde-editor .quote_q > div > p {
  margin: 0;
}

.zde-editor .quote_q::before {
  content: '';
  border-radius: 6px;
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: var(--quote-color);
  pointer-events: none;
  z-index: 0;
}

.zde-editor .quote_q.quote-mce::after {
  font: normal normal normal 14px/1 FontAwesome !important;
  content: '\f10d';
  font-size: 1.05em;
  margin-right: 0.5em;
  position: absolute;
  color: var(--quote-color);
  top: 1.2em;
  left: 14px;
  opacity: 0.45;
  z-index: 2;
  pointer-events: none;
  speak: none;
}

.zde-editor .quote_q [contenteditable='true'] {
  outline: none !important;
}

/* Remove button for locked blocks (quote / hide / media) */
.zde-editor__rich .zde-block-remove {
  appearance: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--zde-line);
  border-radius: 6px;
  background: var(--zde-surface);
  color: var(--zde-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.zde-editor__rich .quote_q:hover > .zde-block-remove,
.zde-editor__rich .tinymce-hide:hover > .zde-block-remove,
.zde-editor__rich .tinymce-hide > .zde-block-remove,
.zde-editor__rich .file-download-box:hover > .zde-block-remove,
.zde-editor__rich .zde-callout:hover > .zde-block-remove,
.zde-editor__rich .zde-spoiler:hover > .zde-block-remove,
.zde-editor__rich .zde-math--block:hover > .zde-block-remove,
.zde-editor__rich .zde-codeblock:hover > .zde-block-remove,
.zde-editor__rich .zde-codeblock > .zde-block-remove,
.zde-editor__rich pre.enlighter-pre:hover > .zde-block-remove,
.zde-editor__rich pre.enlighter-pre > .zde-block-remove,
.zde-editor__rich pre.zde-nest-pre:hover > .zde-block-remove,
.zde-editor__rich pre.zde-nest-pre > .zde-block-remove,
.zde-editor__rich .wp-block-embed:hover > .zde-block-remove,
.zde-editor__rich .new-dplayer:hover > .zde-block-remove,
.zde-editor__rich .post-dplayer:hover > .zde-block-remove,
.zde-editor__rich .zde-block-remove:focus {
  opacity: 1;
}

.zde-editor__rich .tinymce-hide > .zde-block-remove,
.zde-editor__rich .zde-codeblock > .zde-block-remove,
.zde-editor__rich pre.enlighter-pre > .zde-block-remove,
.zde-editor__rich pre.zde-nest-pre > .zde-block-remove {
  top: 6px;
  right: 6px;
  opacity: 0.65;
  z-index: 8;
}

.zde-editor__rich .tinymce-hide:hover > .zde-block-remove,
.zde-editor__rich .zde-codeblock:hover > .zde-block-remove,
.zde-editor__rich pre.enlighter-pre:hover > .zde-block-remove,
.zde-editor__rich pre.zde-nest-pre:hover > .zde-block-remove {
  opacity: 1;
}

.zde-editor__rich .zde-block-remove:hover {
  background: #fff1f2;
  border-color: color-mix(in srgb, #e11d48 35%, var(--zde-line));
  color: #e11d48;
}

.zde-editor__rich .tinymce-hide,
.zde-editor__rich .quote_q,
.zde-editor__rich .file-download-box,
.zde-editor__rich .zde-callout,
.zde-editor__rich .zde-spoiler,
.zde-editor__rich .zde-math--block,
.zde-editor__rich .zde-codeblock,
.zde-editor__rich .wp-block-embed {
  position: relative;
}

.zde-editor__rich pre,
.zde-editor__rich .zde-codeblock > pre,
.zde-editor__rich pre.enlighter-pre,
.zde-editor__rich pre.zde-nest-pre {
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  border-radius: 0 0 6px 6px;
  background: color-mix(in srgb, var(--zde-ink) 3%, transparent);
  white-space: pre !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  tab-size: 2;
  position: relative;
  border: 0;
}

/* Edit mode: minimal “这是代码块” shell — full chrome only in preview */
.zde-editor__rich .zde-codeblock {
  margin: 0.85em 0 1em;
  border: 1px dashed color-mix(in srgb, var(--zde-accent, #2563eb) 45%, var(--zde-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--zde-accent, #2563eb) 4%, var(--zde-surface, #fff));
  overflow: visible;
  position: relative;
  padding: 0;
  box-shadow: none;
}

.zde-editor__rich .zde-codeblock::before {
  content: '代码块';
  display: block;
  padding: 6px 36px 6px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--zde-accent, #2563eb);
  background: color-mix(in srgb, var(--zde-accent, #2563eb) 8%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--zde-accent, #2563eb) 30%, var(--zde-line));
  border-radius: 8px 8px 0 0;
  pointer-events: none;
  user-select: none;
}

.zde-editor__rich .zde-codeblock[data-lang]:not([data-lang=''])::before {
  content: '代码块 · ' attr(data-lang);
}

.zde-editor__rich .zde-codeblock:not([data-lang])::before,
.zde-editor__rich .zde-codeblock[data-lang='']::before {
  content: '代码块';
}

.zde-editor__rich .zde-codeblock > pre {
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0 0 6px 6px;
  white-space: pre !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  max-height: 280px;
}

/* Nest pre inside hide: same minimal edit cue */
.zde-editor__rich .tinymce-hide pre.enlighter-pre,
.zde-editor__rich .tinymce-hide pre.zde-nest-pre,
.zde-editor__rich .quote_q pre.enlighter-pre {
  margin: 0.65em 0;
  border: 1px dashed color-mix(in srgb, var(--zde-accent, #2563eb) 40%, var(--zde-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--zde-accent, #2563eb) 4%, transparent);
  padding-top: 28px;
}

.zde-editor__rich .tinymce-hide pre.enlighter-pre::before,
.zde-editor__rich .tinymce-hide pre.zde-nest-pre::before,
.zde-editor__rich .quote_q pre.enlighter-pre::before {
  content: '代码块';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 4px 36px 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--zde-accent, #2563eb);
  background: color-mix(in srgb, var(--zde-accent, #2563eb) 8%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--zde-accent, #2563eb) 28%, var(--zde-line));
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.zde-editor__rich .tinymce-hide pre.enlighter-pre[data-lang]:not([data-lang=''])::before,
.zde-editor__rich .tinymce-hide pre.zde-nest-pre[data-lang]:not([data-lang=''])::before {
  content: '代码块 · ' attr(data-lang);
}

.zde-editor__rich pre code,
.zde-editor__rich .zde-codeblock code,
.zde-editor__rich .zde-codeblock code[contenteditable='true'],
.zde-editor__rich pre.enlighter-pre code,
.zde-editor__rich .tinymce-hide pre code {
  display: block;
  outline: none;
  white-space: pre !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  tab-size: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 1.5em;
  background: transparent;
  padding: 0;
  color: inherit;
}

.zde-editor .qe_wzk_c-red,
.zde-editor .quote_q.qe_wzk_c-red {
  --quote-color: #dc3f3f;
}

.zde-editor .qe_wzk_lan,
.zde-editor .quote_q.qe_wzk_lan {
  --quote-color: #0092ff;
}

.zde-editor .qe_wzk_lv,
.zde-editor .quote_q.qe_wzk_lv {
  --quote-color: #23790e;
}

.zde-editor__rich .file-download-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--zde-soft);
  border: 1px solid var(--zde-line);
}

.zde-editor__rich .file-download-icon {
  width: 2.5em;
  height: 2.5em;
  border-radius: 4px;
  overflow: hidden;
  background: var(--zde-surface);
}

.zde-editor__rich .file-download-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.zde-editor__rich .post-dplayer,
.zde-editor__rich .new-dplayer {
  min-height: 120px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #0f172a;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zde-editor__rich .post-dplayer::before,
.zde-editor__rich .new-dplayer::before {
  content: '视频';
  font-size: 13px;
}

.zde-editor__rich .iframe-absbox {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.zde-editor__rich .iframe-absbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Tables — edit surface; preview uses frontend.css */
.zde-editor .zde-table,
.zde-editor__rich table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  border: 1px solid var(--zde-line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}

.zde-editor .zde-table th,
.zde-editor .zde-table td,
.zde-editor__rich table th,
.zde-editor__rich table td {
  border: 1px solid var(--zde-line);
  padding: 8px 12px;
  text-align: left;
  min-width: 3em;
  vertical-align: top;
}

.zde-editor .zde-table th,
.zde-editor__rich table th {
  background: var(--zde-soft);
  font-weight: 700;
}

.zde-editor__rich .zde-table td:focus,
.zde-editor__rich .zde-table th:focus {
  outline: 2px solid var(--zde-accent);
  outline-offset: -2px;
}

.zde-editor__rich p.zde-list-break,
.zde-editor__preview-body p.zde-list-break {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.zde-editor__rich .zde-task-list,
.zde-editor__preview-body .zde-task-list {
  --zde-task-accent: var(--theme-color, var(--zde-accent));
  display: block;
  width: 100%;
  list-style: none;
  padding-left: 0.15em;
  margin: 0.35em 0 0.55em;
  margin-left: 0;
}

.zde-editor__rich .zde-task-list > li.zde-task-item,
.zde-editor__preview-body .zde-task-list > li.zde-task-item {
  list-style: none;
  position: relative;
  display: block;
  float: none;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1.75em;
  margin-bottom: 4px;
  min-height: 1.45em;
  line-height: 1.55;
}

.zde-editor__rich .zde-task-list > li.zde-task-item:has(.zde-task-checkbox),
.zde-editor__preview-body .zde-task-list > li.zde-task-item:has(.zde-task-checkbox) {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}

.zde-editor__rich .zde-task-list > li.zde-task-item:not(:has(.zde-task-checkbox))::before,
.zde-editor__preview-body .zde-task-list > li.zde-task-item:not(:has(.zde-task-checkbox))::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1em;
  height: 1em;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--zde-ink) 28%, transparent);
  border-radius: 3px;
  background: var(--zde-surface, #fff);
  cursor: pointer;
  user-select: none;
}

.zde-editor__rich .zde-task-list > li.zde-task-item.is-checked:not(:has(.zde-task-checkbox))::before,
.zde-editor__rich .zde-task-list > li.zde-task-item[data-checked='1']:not(:has(.zde-task-checkbox))::before,
.zde-editor__preview-body .zde-task-list > li.zde-task-item.is-checked:not(:has(.zde-task-checkbox))::before,
.zde-editor__preview-body .zde-task-list > li.zde-task-item[data-checked='1']:not(:has(.zde-task-checkbox))::before {
  border-color: var(--zde-task-accent);
  background-color: var(--zde-task-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 0.72em 0.72em;
  background-position: center;
  background-repeat: no-repeat;
}

.zde-editor__rich .zde-task-list > li.zde-task-item.is-checked,
.zde-editor__rich .zde-task-list > li.zde-task-item[data-checked='1'],
.zde-editor__preview-body .zde-task-list > li.zde-task-item.is-checked,
.zde-editor__preview-body .zde-task-list > li.zde-task-item[data-checked='1'] {
  color: color-mix(in srgb, var(--zde-ink) 55%, transparent);
}

.zde-editor__rich .zde-task-list input[type='checkbox'],
.zde-editor__rich .zde-task-checkbox,
.zde-editor__preview-body .zde-task-checkbox {
  margin: 0.35em 0 0;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  accent-color: var(--zde-task-accent);
  cursor: pointer;
}

.zde-editor__rich .zde-align-left,
.zde-editor__rich [style*='text-align:left'],
.zde-editor__rich [style*='text-align: left'] {
  text-align: left;
}

.zde-editor__rich .zde-align-center,
.zde-editor__rich [style*='text-align:center'],
.zde-editor__rich [style*='text-align: center'] {
  text-align: center;
}

.zde-editor__rich .zde-align-right,
.zde-editor__rich [style*='text-align:right'],
.zde-editor__rich [style*='text-align: right'] {
  text-align: right;
}

.zde-editor__rich .zde-align-justify,
.zde-editor__rich [style*='text-align:justify'],
.zde-editor__rich [style*='text-align: justify'] {
  text-align: justify !important;
  text-justify: inter-ideograph;
  text-align-last: left;
}

/* Flex breaks text-align:justify — only use flex for L/C/R */
.zde-editor__rich h1[style*='text-align']:not([style*='justify']),
.zde-editor__rich h2[style*='text-align']:not([style*='justify']),
.zde-editor__rich h3[style*='text-align']:not([style*='justify']),
.zde-editor__rich h4[style*='text-align']:not([style*='justify']),
.zde-editor__rich h5[style*='text-align']:not([style*='justify']),
.zde-editor__rich h6[style*='text-align']:not([style*='justify']) {
  display: flex;
}

.zde-editor__rich h1[style*='justify'],
.zde-editor__rich h2[style*='justify'],
.zde-editor__rich h3[style*='justify'],
.zde-editor__rich h4[style*='justify'],
.zde-editor__rich h5[style*='justify'],
.zde-editor__rich h6[style*='justify'] {
  display: block !important;
}

@media (max-width: 900px) {
  .zde-editor__toolbar {
    padding: 4px 6px 6px;
  }

  .zde-editor__row-tag {
    display: none !important;
  }

  .zde-mode-bar--with-views {
    gap: 4px;
  }

  .zde-editor__mode,
  .zde-editor__view {
    font-size: 12px;
  }

  .zde-editor__panes.is-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .zde-editor__panes.is-split .zde-editor__pane--preview {
    border-left: 0;
    border-top: 1px solid var(--zde-line);
    box-shadow: none;
  }

  .zde-editor__status-hint {
    display: none;
  }

  .zde-editor {
    --zde-pad-x: 14px;
    --zde-pad-y: 12px;
    --zde-pad-bottom: 20px;
  }

  .zde-editor__textarea,
  .zde-editor__rich,
  .zde-editor__preview-body {
    min-height: 320px;
  }

  .zde-editor__panes,
  .zde-editor__pane {
    min-height: 320px;
  }
}

/* —— WordPress admin classic editor —— */
body.zde-admin-editor #wp-content-editor-tools,
body.zde-admin-editor .wp-editor-tools,
body.zde-admin-editor #ed_toolbar,
body.zde-admin-editor .wp-editor-expand #post-status-info {
  display: none !important;
}

body.zde-admin-editor #postdivrich,
body.zde-admin-editor #wp-content-wrap,
body.zde-admin-editor #wp-content-editor-container {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.zde-admin-editor #wp-content-editor-container {
  padding: 0 !important;
}

body.zde-admin-editor .zde-editor {
  margin: 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible !important;
  position: relative;
  z-index: 2;
  box-shadow: none;
  padding-bottom: 0;
}

/* Admin: keep chrome in normal flow — sticky overlays panes under WP adminbar. */
body.zde-admin-editor .zde-editor__chrome {
  position: relative;
  top: auto;
  z-index: 2;
}

body.zde-admin-editor .zde-editor__panes {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

body.zde-admin-editor .zde-editor__paper {
  position: relative;
  z-index: 1;
}

body.zde-admin-editor .zde-editor__status {
  border-radius: 0;
}

/* Zibll media modal above WP admin chrome */
body.zde-admin-editor .mini-media-modal,
body.zde-admin-editor .pay-dawnload-edit-modal {
  z-index: 100100 !important;
}

body.zde-admin-editor .modal-backdrop {
  z-index: 100090 !important;
}

body.zde-admin-editor .zde-editor__panes,
body.zde-admin-editor .zde-editor__pane,
body.zde-admin-editor .zde-editor__textarea,
body.zde-admin-editor .zde-editor__rich,
body.zde-admin-editor .zde-editor__preview-body,
body.zde-admin-editor .zde-editor__code {
  min-height: 420px;
}

body.zde-admin-editor .zde-editor__dialog {
  z-index: 100100;
}

/* Dropdown menus — beat WP admin button resets; solid panel always */
body.zde-admin-editor .zde-editor__menu,
body.zde-admin-editor .zde-editor__menu.is-fixed {
  background: #ffffff !important;
  color: #1d2327 !important;
  border: 1px solid #c3c4c7 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 4px !important;
  min-width: 168px;
}

body.zde-admin-editor .zde-editor__menu-item {
  background: transparent !important;
  color: #1d2327 !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 32px;
  padding: 7px 10px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  cursor: pointer !important;
}

body.zde-admin-editor .zde-editor__menu-item:hover,
body.zde-admin-editor .zde-editor__menu-item:focus {
  background: #f6f7f7 !important;
  color: #ff5473 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.zde-admin-editor .zde-editor__swatch {
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  flex-shrink: 0;
}
