/* ===== ARTICLE EDITOR MODAL ===== */

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* --- Top bar --- */

.editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.editor-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-topbar-right {
  display: flex;
  align-items: center;
}

.editor-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-close-btn:hover { background: var(--bg-secondary); }
}

.editor-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.editor-author-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-author-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.editor-category-select {
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-category-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0.2rem var(--neutral-btn-glow); }

/* --- Editor body --- */

.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 80px;
  position: relative;
}

.editor-title-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 0 8px;
  outline: none;
}

.editor-title-input::placeholder { color: var(--text-tertiary); }

.editor-subtitle-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 0 16px;
  outline: none;
}

.editor-subtitle-input::placeholder { color: var(--text-tertiary); }

/* --- Cover banner --- */

.editor-cover-add {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .editor-cover-add:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
}

.editor-cover-banner {
  position: relative;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.editor-cover-banner-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.editor-cover-banner-change {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--bg-overlay);
  color: var(--text-primary);
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-cover-banner-change:hover { background: var(--bg-secondary); }
}

/* --- Blocks --- */

.editor-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.editor-block {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  padding: 4px 0;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.editor-block--dragging { opacity: 0.4; }
.editor-block--dragover { background: var(--bg-secondary); }

.editor-block-handle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: grab;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, background-color 0.15s;
}

.editor-block:hover .editor-block-handle { opacity: 1; }

@media (hover: hover) {
  .editor-block-handle:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
  }
}

.editor-block-content {
  flex: 1;
  min-width: 0;
}

/* --- Plus buttons between blocks --- */

.editor-block-plus-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  position: relative;
}

.editor-block-plus {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-tertiary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
  z-index: 1;
}

.editor-block-plus-wrap:hover .editor-block-plus { opacity: 1; }

@media (hover: hover) {
  .editor-block-plus:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
}

/* --- Inline formatting toolbar --- */

.editor-inline-toolbar {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.editor-inline-toolbar--visible {
  opacity: 1;
  pointer-events: auto;
}

.editor-inline-toolbar--link-mode {
  gap: 4px;
  padding: 4px 8px;
}

.editor-inline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.12s;
}

@media (hover: hover) {
  .editor-inline-btn:hover { background: var(--bg-tertiary); }
}

.editor-inline-btn--code {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.editor-inline-btn--apply { color: var(--status-success); }
.editor-inline-btn--cancel { color: var(--status-error); }

.editor-inline-sep {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  margin: 0 2px;
}

.editor-inline-link-input {
  width: 180px;
  padding: 4px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.editor-inline-link-input:focus {
  border-color: var(--brand-primary);
}

/* --- Slash command menu --- */

.editor-slash-menu {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  margin-top: 4px;
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.editor-slash-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.12s;
}

@media (hover: hover) {
  .editor-slash-item:hover { background: var(--bg-tertiary); }
}

/* Block text (contenteditable) */
.editor-block-text,
.editor-block-heading {
  outline: none;
  min-height: 1.5em;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.editor-block-text:empty::before,
.editor-block-heading:empty::before {
  content: attr(data-placeholder);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Inline formatting styles in contenteditable */
.editor-block-text code {
  background: var(--bg-tertiary);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.85em;
}

.editor-block-text a {
  color: var(--link-color);
  text-decoration: underline;
}

.editor-block-heading--2 { font-size: 1.3rem; font-weight: 700; }
.editor-block-heading--3 { font-size: 1.1rem; font-weight: 600; }
.editor-block-heading--4 { font-size: 1rem; font-weight: 600; }

/* Shared inputs */
.editor-input {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0.2rem var(--neutral-btn-glow); }
.editor-input-sm { font-size: 0.8rem; padding: 4px 8px; }

.editor-textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0.2rem var(--neutral-btn-glow); }
.editor-textarea-mono { font-family: monospace; }

.editor-select {
  padding: 4px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.8rem;
  margin-bottom: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.editor-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0.2rem var(--neutral-btn-glow); }

/* --- Image block --- */

.editor-image-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 6px;
}

.editor-image-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.editor-image-upload-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-image-upload-btn:hover { background: var(--brand-hover); }
}

.editor-image-actions .editor-input {
  margin-bottom: 0;
  flex: 1;
}

/* Divider preview */
.editor-divider-preview {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 8px 0;
}

/* List block */
.editor-list-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.editor-list-style-btn {
  padding: 2px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.editor-list-style-btn.active {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-color: var(--brand-primary);
}

@media (hover: hover) {
  .editor-list-style-btn.active:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
  }
}

.editor-list-item {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.editor-list-item .editor-input { margin-bottom: 0; }

.editor-list-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (hover: hover) {
  .editor-list-remove:hover { color: var(--status-error); }
}

.editor-list-add {
  padding: 4px 10px;
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

@media (hover: hover) {
  .editor-list-add:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
}

/* Unknown block */
.editor-block-unknown {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-style: italic;
}

/* --- Add block button --- */

.editor-add-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  margin-top: 8px;
  background: none;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .editor-add-block:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }
}

/* --- Block type picker --- */

.editor-block-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: var(--shadow-md);
}

.editor-block-picker-item {
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

@media (hover: hover) {
  .editor-block-picker-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
  }
}

/* --- Context menu --- */

.editor-context-menu {
  position: absolute;
  z-index: 100;
  min-width: 160px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
}

.editor-context-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.editor-context-item:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (hover: hover) {
  .editor-context-item:not(:disabled):hover { background: var(--bg-tertiary); }
}

.editor-context-item--danger { color: var(--status-error); }

/* --- Overflow menu --- */

.editor-overflow-menu {
  position: absolute;
  z-index: 100;
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
}

/* --- Bottom toolbar --- */

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  flex-shrink: 0;
}

.editor-toolbar-publish {
  padding: 8px 20px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, filter 0.2s;
}

@media (hover: hover) {
  .editor-toolbar-publish:hover { background: var(--brand-hover); transform: translateY(-1px); filter: brightness(1.1); }
}

.editor-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-toolbar-btn:hover { background: var(--bg-secondary); }
}

.editor-save-status {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* --- Panels (Cover, Tags, SEO) --- */

.editor-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.editor-panel {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.editor-panel-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.editor-panel-body {
  padding: 16px;
  overflow-y: auto;
}

.editor-panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 12px;
}

.editor-panel-label:first-child { margin-top: 0; }

/* Cover panel */

.editor-cover-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.editor-cover-empty {
  padding: 30px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
}

.editor-cover-select-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-cover-select-btn:hover { background: var(--brand-hover); }
}

.editor-cover-remove-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--status-error);
  border-radius: 8px;
  color: var(--status-error);
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .editor-cover-remove-btn:hover { background: var(--status-error-bg); }
}

/* Tags panel */

.editor-tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 0;
}

.editor-tag-selected {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--brand-muted);
  color: var(--brand-primary);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.editor-tag-remove {
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
  transition: opacity 0.12s;
}

@media (hover: hover) {
  .editor-tag-remove:hover { opacity: 1; }
}

.editor-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.editor-tags-empty {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.editor-tag-chip {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.editor-tag-chip--selected {
  background: var(--brand-muted);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

@media (hover: hover) {
  .editor-tag-chip:hover { border-color: var(--brand-primary); }
  .editor-tag-chip--selected:hover { background: var(--brand-primary); color: var(--text-inverse); }
}

/* SEO panel */

.editor-char-count {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.editor-char-count--over {
  color: var(--status-warning);
}

/* --- Preview overlay --- */

.editor-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.editor-preview-wrap {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.editor-preview-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.editor-preview-content {
  padding: 20px;
  overflow-y: auto;
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .editor-modal-content { max-width: 100%; }
  .editor-body { padding: 16px 12px 80px; }
  .editor-title-input { font-size: 1.3rem; }
  .editor-topbar { padding: 8px 12px; }
  .editor-toolbar { padding: 8px 12px; }

  .editor-panel {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
  }

  .editor-panel-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .editor-preview-overlay { padding: 0; }
  .editor-preview-wrap {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Touch devices: always show block handles and plus buttons */
@media (pointer: coarse) {
  .editor-block-handle {
    opacity: 1;
    width: 44px;
    height: 44px;
  }

  .editor-block-plus {
    opacity: 1;
    width: 32px;
    height: 32px;
  }

  .editor-block-plus svg { width: 14px; height: 14px; }

  .editor-block-plus-wrap { height: 8px; }

  /* Image actions stack vertically */
  .editor-image-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-image-upload-btn {
    min-height: 44px;
    font-size: 0.85rem;
  }

  .editor-image-actions .editor-input { margin-top: 6px; }

  /* Inline toolbar: wider link input */
  .editor-inline-link-input {
    width: auto;
    min-width: 140px;
    flex: 1;
  }

  /* Inline toolbar buttons larger for touch */
  .editor-inline-btn {
    width: 36px;
    height: 36px;
  }

  /* Tag remove button larger touch target */
  .editor-tag-remove {
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  /* List remove button larger */
  .editor-list-remove {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  /* Slash menu items larger */
  .editor-slash-item {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Context menu items larger */
  .editor-context-item {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Block picker items larger */
  .editor-block-picker-item {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Add block button larger */
  .editor-add-block {
    min-height: 44px;
  }

  /* Cover banner change button bigger */
  .editor-cover-banner-change {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* Panel close button larger */
  .editor-panel-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  }
}

/* Block being dragged via touch */
.editor-block--touch-dragging {
  opacity: 0.5;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.editor-block--touch-dragover {
  border-top: 2px solid var(--brand-primary);
}
