.oe-editor {
  --oe-font: inherit;
  --oe-font-mono: 'JetBrains Mono', 'Fira Code', Monaco, Consolas, monospace;
  --oe-font-size: 15px;
  --oe-line-height: 1.7;

  --oe-block-gap: 0px;
  --oe-block-spacing: 1rem;
  --oe-radius: 8px;
  --oe-radius-sm: 4px;

  --oe-transition: 0.15s ease;

  --oe-bg: #0d0d0d;
  --oe-surface: #0a0a0a;
  --oe-card: #111;
  --oe-card-hover: #191919;
  --oe-border: #1a1a1a;
  --oe-border-hover: #2a2a2a;
  --oe-text-1: #f5f5f5;
  --oe-text-2: #c4c4c4;
  --oe-text-3: #908c8c;
  --oe-accent: #4357b4;
  --oe-accent-alpha: rgba(67, 87, 180, 0.15);
  --oe-accent-text: #a78bfa;
  --oe-surface-2: #141414;
  --oe-surface-elevated: #1e1e24;
  --oe-surface-hover: #1e1e24;
  --oe-border-focus: #4357b4;
  --oe-input-bg: #2c2c33;
  --oe-input-bg-hover: #353540;


  --oe-success: #4ade80;
  --oe-success-alpha: rgba(74, 222, 128, 0.14);
  --oe-danger: #f87171;
  --oe-danger-light: #fca5a5;
  --oe-danger-alpha: rgba(248, 113, 113, 0.14);
  --oe-text-on-accent: #fff;

  --oe-toolbar-bg: var(--oe-card);
  --oe-toolbar-border: var(--oe-border);
  --oe-toolbar-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  --oe-selection-bg: rgba(255, 255, 255, 0.15);

  /* Shared across plugins — prevents hardcoded colors */
  --oe-mark-bg: rgba(245, 166, 35, 0.2);
  --oe-overlay: rgba(0, 0, 0, 0.55);
  --oe-overlay-dark: rgba(0, 0, 0, 0.7);

  /*
   * Blocks form low, isolated stacking contexts. Editor-owned menus start at
   * z-index 15, so even an active plugin block stays below global UI.
   */
  --oe-z-focused-block: 1;
  --oe-z-active-block: 2;
  --oe-plugin-panel-z-index: 1100;
  --oe-plugin-popover-z-index: 1120;
  --oe-plugin-dialog-z-index: 1200;

  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--oe-font), sans-serif;
  font-size: var(--oe-font-size);
  line-height: var(--oe-line-height);
  color: var(--oe-text-1);
  outline: none;
}


.oe-editor ::selection {
  background: var(--oe-selection-bg);
}

/* Cross-block selection via CSS Highlight API — renders across
   contenteditable boundaries where native ::selection won't. */
::highlight(oe-cross-select) {
  background: var(--oe-selection-bg, rgba(255, 255, 255, 0.15));
}

/* Suppress native ::selection during cross-block drag to avoid double highlight */
.oe-editor--cross-selecting ::selection {
  background: transparent;
}


.oe-click-area {
  flex-grow: 1;
  min-height: 60px;
  cursor: text;
}


.oe-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--oe-block-gap);
}


.oe-block {
  position: relative;
  z-index: 0;
  margin-bottom: var(--oe-block-spacing);
  transition: background-color var(--oe-transition);
  border-radius: var(--oe-radius-sm);
  transform-origin: top center;
}

.oe-block[data-oe-layer-open='true'] {
  z-index: var(--oe-z-active-block, 2);
}

.oe-block:last-child {
  margin-bottom: 0;
}

.oe-block--focused {
  z-index: var(--oe-z-focused-block, 1);
}


.oe-block--dragging {
  opacity: 0.4;
}

.oe-pending-pastes {
  display: grid;
  gap: var(--oe-block-spacing);
}

.oe-block--pending-paste {
  display: grid;
  min-height: 10rem;
  place-items: center;
}

.oe-block--pending-paste > [hidden] {
  display: none !important;
}

.oe-pending-paste__indicator {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: inherit;
  color: var(--oe-text-2);
  pointer-events: none;
}

.oe-pending-paste__spinner {
  display: block;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 3px solid var(--oe-border-hover);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: oe-pending-paste-spin 0.8s linear infinite;
}

@keyframes oe-pending-paste-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oe-pending-paste__spinner {
    animation-duration: 1.8s;
  }
}


.oe-block code {
  padding: 2px 6px;
  background: var(--oe-code-inline-bg, #1e1e24);
  border: 1px solid var(--oe-border-hover, #2a2a2a);
  border-radius: var(--oe-radius-sm, 4px);
  font-family: var(--oe-font-mono), monospace;
  font-size: 0.875em;
  color: var(--oe-code-inline-text, #a78bfa);
}

.oe-block [contenteditable] {
  outline: none;
  caret-color: var(--oe-text-1);
}

.oe-block [contenteditable]:focus {
  outline: none;
}


.oe-toolbar {
  position: absolute;
  right: -52px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  z-index: 10;
  transition: opacity var(--oe-transition);
}

@media (max-width: 767px) {
  .oe-toolbar {
    position: static;
    margin-top: 8px;
    gap: 8px;
  }

  .oe-toolbar .oe-toolbar__btn {
    width: 36px;
    height: 36px;
    background: var(--oe-card);
    border: 1px solid var(--oe-border);
    border-radius: var(--oe-radius-sm);
  }

  .oe-toolbar .oe-toolbar__btn:hover {
    background: var(--oe-card-hover);
  }

  .oe-toolbar .oe-toolbar__btn--active {
    transform: none;
  }

}


@media (max-width: 767px) {
  .oe-toolbox,
  .oe-settings-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50vh;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: var(--oe-radius) var(--oe-radius) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
  }

  .oe-toolbox--open,
  .oe-settings-menu--open {
    transform: translateY(0);
  }
}

.oe-offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.oe-offcanvas-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

.oe-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-3);
  cursor: pointer;
  transition: color var(--oe-transition);
}

.oe-toolbar__btn:hover {
  color: var(--oe-text-1);
}

.oe-toolbar__btn--active {
  color: var(--oe-text-1);
  transform: rotate(45deg);
}

.oe-toolbar__drag {
  cursor: pointer;
}


.oe-toolbox {
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  outline: none;
}

@media (min-width: 768px) {
  .oe-toolbox {
    position: absolute;
    z-index: 20;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
  }
}

.oe-toolbox__item,
.oe-settings-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  outline: none;
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-toolbox__item:focus-visible,
.oe-settings-menu__item:focus-visible {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-toolbox__item:hover,
.oe-settings-menu__item:hover {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-toolbox__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--oe-text-3);
}

.oe-toolbox__item:hover .oe-toolbox__icon {
  color: var(--oe-text-1);
}

.oe-toolbox__label {
  flex: 1;
}


.oe-inline-toolbar {
  position: absolute;
  z-index: 20;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  transform: translateX(-50%) translateY(-100%);
  margin-top: -8px;
  overflow: visible;
}


.oe-inline-toolbar__panel {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px;
}


.oe-inline-toolbar__panel--link {
  gap: 4px;
}


.oe-inline-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-1);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.15s;
}

.oe-inline-tool::before {
  position: absolute;
  content: '';
  inset: 0;
  border-radius: var(--oe-radius-sm);
  background-color: var(--oe-card-hover);
  transform: scale(0);
  transition: transform 0.35s ease;
}

.oe-inline-tool:hover {
  color: var(--oe-text-on-accent);
}

.oe-inline-tool:hover::before {
  transform: scale(1);
  background-color: var(--oe-accent, #4357b4);
}

.oe-inline-tool svg {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
}

.oe-inline-tool--active {
  color: var(--oe-text-on-accent);
}

.oe-inline-tool--active::before {
  transform: scale(1);
  background-color: var(--oe-accent, #4357b4);
}

.oe-inline-tool--active:hover {
  color: var(--oe-text-on-accent);
}

.oe-inline-tool--back:hover {
  color: var(--oe-text-1);
}

.oe-inline-tool--apply:hover {
  color: var(--oe-success);
}

.oe-inline-tool--apply::before {
  background-color: var(--oe-success-alpha);
}

.oe-inline-tool--unlink:hover {
  color: var(--oe-danger);
}

.oe-inline-tool--unlink::before {
  background-color: var(--oe-danger-alpha);
}


.oe-inline-tool__color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--oe-text-on-accent);
  border: none;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.15s;
}


.oe-inline-tool[data-tool="bgcolor"]::before {
  display: none;
}


.oe-inline-tool.oe-font-size-select {
  width: auto;
  gap: 3px;
  padding: 4px 6px;
  font-size: 12px;
  font-family: var(--oe-font), sans-serif;
  color: var(--oe-text-2);
  white-space: nowrap;
  border-radius: var(--oe-radius-sm);
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-inline-tool.oe-font-size-select::before {
  display: none;
}

.oe-inline-tool.oe-font-size-select:hover {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-font-size-select__value {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.oe-font-size-select__chevron {
  display: flex;
  align-items: center;
  opacity: 0.6;
}


.oe-font-size-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  z-index: 30;
  overflow: hidden;
}

.oe-font-size-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 6px;
  border-bottom: 1px solid var(--oe-toolbar-border);
}

.oe-font-size-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  background: var(--oe-input-bg, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-1);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  outline: none;
  -moz-appearance: textfield;
}

.oe-font-size-input::-webkit-inner-spin-button,
.oe-font-size-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.oe-font-size-input:focus {
  border-color: var(--oe-accent, #4357b4);
}

.oe-font-size-input::placeholder {
  color: var(--oe-text-3, rgba(255, 255, 255, 0.3));
}

.oe-font-size-apply,
.oe-font-size-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.oe-font-size-apply:hover {
  background: var(--oe-accent, #4357b4);
  color: var(--oe-text-on-accent);
}

.oe-font-size-reset:hover {
  background: var(--oe-danger-alpha);
  color: var(--oe-danger);
}

.oe-font-size-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--oe-text-3, rgba(255, 255, 255, 0.15)) transparent;
}

.oe-font-size-list::-webkit-scrollbar {
  width: 4px;
}

.oe-font-size-list::-webkit-scrollbar-thumb {
  background: var(--oe-text-3, rgba(255, 255, 255, 0.15));
  border-radius: 2px;
}

.oe-font-size-item {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--oe-radius-sm);
  background: transparent;
  color: var(--oe-text-1);
  text-align: left;
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.oe-font-size-item:hover {
  background: var(--oe-card-hover, rgba(255, 255, 255, 0.06));
}

.oe-font-size-item--active {
  background: var(--oe-card-hover, rgba(255, 255, 255, 0.06));
}


/* ── Inline Plugin Widgets ─────────────────────────────────── */

.oe-ip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 5px;
  border-radius: 9px;
  background: var(--oe-card-hover);
  font-family: var(--oe-font-mono), monospace;
  font-size: 0.85em;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
  line-height: 1.4;
}

.oe-ip:hover {
  background: var(--oe-border);
}

.oe-ip__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(128, 128, 128, 0.3);
}

.oe-ip__label {
  color: var(--oe-text-2);
}

/* ── Inline Plugin Popup ──────────────────────────────────── */

.oe-ip-popup {
  position: fixed;
  z-index: 100;
}

.oe-ip-popup .oe-color-dropdown {
  position: static;
  transform: none;
}


.oe-inline-toolbar__link-input {
  width: 180px;
  padding: 5px 8px;
  background: var(--oe-bg);
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-1);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  outline: none;
  caret-color: var(--oe-text-1);
}

.oe-inline-toolbar__link-input::placeholder {
  color: var(--oe-text-3);
}

.oe-inline-toolbar__link-input:focus {
  border-color: var(--oe-border-focus);
}


.oe-inline-toolbar__type-select {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  font-size: 12px;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-inline-toolbar__type-select:hover {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-inline-toolbar__type-name {
  line-height: 1;
}

.oe-inline-toolbar__type-chevron {
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.oe-inline-toolbar__divider {
  width: 1px;
  height: 20px;
  background: var(--oe-border);
  margin: 0 2px;
  flex-shrink: 0;
  align-self: center;
}


.oe-inline-toolbar__plugin-zone {
  display: flex;
  align-items: center;
  gap: 1px;
}

.oe-inline-toolbar__plugin-zone:empty {
  display: none;
}


.oe-inline-toolbar__level-select {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-inline-toolbar__level-select:hover {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-inline-toolbar__level-label {
  line-height: 1;
}

.oe-inline-toolbar__level-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  padding: 4px;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  z-index: 1;
}


.oe-inline-toolbar__type-dropdown {
  position: absolute;
  left: 0;
  min-width: 160px;
  padding: 4px;
  margin: 0;
  list-style: none;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  z-index: 1;
  max-height: 224px;
  overflow-y: auto;

  transform: none;
}

.oe-inline-toolbar__type-filter {
  position: sticky;
  top: -4px;
  z-index: 1;
  padding: 4px 0;
  margin: -4px 0 2px;
  background: var(--oe-toolbar-bg);
}

.oe-inline-toolbar__type-filter-input {
  width: 100%;
  height: 28px;
  padding: 0 8px 0 28px;
  border: 1px solid var(--oe-border);
  border-radius: 8px;
  background: var(--oe-surface);
  color: var(--oe-text-1);
  font-size: 12px;
  font-family: var(--oe-font), sans-serif;
  outline: none;
  transition: border-color var(--oe-transition);
}

.oe-inline-toolbar__type-filter-input:focus {
  border-color: var(--oe-border-hover);
}

.oe-inline-toolbar__type-filter-input::placeholder {
  color: var(--oe-text-3);
}

.oe-inline-toolbar__type-filter-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: var(--oe-text-3);
  pointer-events: none;
}

.oe-inline-toolbar__type-empty {
  padding: 8px;
  color: var(--oe-text-3);
  font-size: 12px;
  text-align: center;
}

.oe-inline-toolbar__type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-inline-toolbar__type-item:hover {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-inline-toolbar__type-item--active {
  color: var(--oe-text-1);
}

.oe-inline-toolbar__type-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.oe-inline-toolbar__type-item-icon svg {
  width: 14px;
  height: 14px;
}

.oe-inline-toolbar__type-item-label {
  flex: 1;
}


.oe-settings-menu {
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
  outline: none;
}

@media (min-width: 768px) {
  .oe-settings-menu {
    position: absolute;
    z-index: 40;
    min-width: 180px;
    max-height: 320px;
    overflow-y: auto;
  }
}


.oe-settings-menu--forward {
  animation: oe-drilldown-in 0.15s ease-out;
}

.oe-settings-menu--back {
  animation: oe-drilldown-back 0.15s ease-out;
}

@keyframes oe-drilldown-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes oe-drilldown-back {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Base + :hover + :focus-visible shared with .oe-toolbox__item above */

.oe-settings-menu__item--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.oe-settings-menu__item--danger {
  color: var(--oe-danger);
}

.oe-settings-menu__item--danger:focus-visible {
  color: var(--oe-danger-light);
  background: var(--oe-danger-alpha);
}

.oe-settings-menu__item--danger:hover {
  color: var(--oe-danger-light);
  background: var(--oe-danger-alpha);
}

.oe-settings-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.oe-settings-menu__label {
  flex: 1;
}

.oe-settings-menu__arrow {
  display: flex;
  align-items: center;
  color: var(--oe-text-3);
  margin-left: auto;
}

.oe-settings-menu__arrow svg {
  width: 14px;
  height: 14px;
}

.oe-settings-menu__separator {
  height: 1px;
  margin: 4px 6px;
  background: var(--oe-border);
}


.oe-settings-menu__item--active {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}


.oe-slash-menu {
  position: absolute;
  z-index: 25;
  width: 240px;
  min-width: 200px;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--oe-toolbar-bg);
  border: 1px solid var(--oe-toolbar-border);
  border-radius: var(--oe-radius);
  box-shadow: var(--oe-toolbar-shadow);
}

.oe-slash-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--oe-radius-sm);
  color: var(--oe-text-2);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
  cursor: pointer;
  transition: color var(--oe-transition), background var(--oe-transition);
}

.oe-slash-menu__item:hover,
.oe-slash-menu__item--active {
  color: var(--oe-text-1);
  background: var(--oe-card-hover);
}

.oe-slash-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--oe-text-3);
}

.oe-slash-menu__item:hover .oe-slash-menu__icon,
.oe-slash-menu__item--active .oe-slash-menu__icon {
  color: var(--oe-text-1);
}

.oe-slash-menu__label {
  flex: 1;
}

.oe-slash-menu__empty {
  padding: 8px 10px;
  color: var(--oe-text-3);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
}


.oe-tooltip {
  position: fixed;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--oe-surface-elevated, #1a1a1a);
  border: 1px solid var(--oe-border-hover, #2a2a2a);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.oe-tooltip__label {
  font-size: 12px;
  color: var(--oe-text-1, #e5e5e5);
  line-height: 1;
}

.oe-tooltip__shortcut {
  font-size: 11px;
  color: var(--oe-text-3, #888);
  padding: 1px 5px;
  background: var(--oe-surface-2, #252525);
  border: 1px solid var(--oe-border, #333);
  border-radius: 3px;
  line-height: 1;
}


.oe-toolbox,
.oe-slash-menu,
.oe-settings-menu,
.oe-inline-toolbar__level-dropdown,
.oe-inline-toolbar__type-dropdown,
.oe-image__dropdown-panel,
.oe-image__custom-select-options,
.oe-gallery__dropdown-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--oe-border-hover) transparent;
}

.oe-toolbox::-webkit-scrollbar,
.oe-slash-menu::-webkit-scrollbar,
.oe-settings-menu::-webkit-scrollbar,
.oe-inline-toolbar__level-dropdown::-webkit-scrollbar,
.oe-inline-toolbar__type-dropdown::-webkit-scrollbar,
.oe-image__dropdown-panel::-webkit-scrollbar,
.oe-image__custom-select-options::-webkit-scrollbar,
.oe-gallery__dropdown-panel::-webkit-scrollbar {
  width: 6px;
}

.oe-toolbox::-webkit-scrollbar-track,
.oe-slash-menu::-webkit-scrollbar-track,
.oe-settings-menu::-webkit-scrollbar-track,
.oe-inline-toolbar__level-dropdown::-webkit-scrollbar-track,
.oe-inline-toolbar__type-dropdown::-webkit-scrollbar-track,
.oe-image__dropdown-panel::-webkit-scrollbar-track,
.oe-image__custom-select-options::-webkit-scrollbar-track,
.oe-gallery__dropdown-panel::-webkit-scrollbar-track {
  background: transparent;
}

.oe-toolbox::-webkit-scrollbar-thumb,
.oe-slash-menu::-webkit-scrollbar-thumb,
.oe-settings-menu::-webkit-scrollbar-thumb,
.oe-inline-toolbar__level-dropdown::-webkit-scrollbar-thumb,
.oe-inline-toolbar__type-dropdown::-webkit-scrollbar-thumb,
.oe-image__dropdown-panel::-webkit-scrollbar-thumb,
.oe-image__custom-select-options::-webkit-scrollbar-thumb,
.oe-gallery__dropdown-panel::-webkit-scrollbar-thumb {
  background: var(--oe-border-hover);
  border-radius: 3px;
}

.oe-toolbox::-webkit-scrollbar-thumb:hover,
.oe-slash-menu::-webkit-scrollbar-thumb:hover,
.oe-settings-menu::-webkit-scrollbar-thumb:hover,
.oe-inline-toolbar__level-dropdown::-webkit-scrollbar-thumb:hover,
.oe-inline-toolbar__type-dropdown::-webkit-scrollbar-thumb:hover,
.oe-image__dropdown-panel::-webkit-scrollbar-thumb:hover,
.oe-image__custom-select-options::-webkit-scrollbar-thumb:hover,
.oe-gallery__dropdown-panel::-webkit-scrollbar-thumb:hover {
  background: var(--oe-text-3);
}


.oe-toolbox__filter {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding: 0 4px;
}

.oe-toolbox__filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: var(--oe-text-3);
  pointer-events: none;
}

.oe-toolbox__filter-input {
  width: 100%;
  height: 30px;
  padding: 0 8px 0 30px;
  border: 1px solid var(--oe-border);
  border-radius: 8px;
  background: var(--oe-surface);
  color: var(--oe-text-1);
  font-size: 12px;
  font-family: var(--oe-font), sans-serif;
  outline: none;
  transition: border-color var(--oe-transition);
}

.oe-toolbox__filter-input:focus {
  border-color: var(--oe-border-hover);
}

.oe-toolbox__filter-input::placeholder {
  color: var(--oe-text-3);
}

.oe-toolbox__empty {
  padding: 8px 10px;
  color: var(--oe-text-3);
  font-size: 13px;
  font-family: var(--oe-font), sans-serif;
}


.oe-drop-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--oe-text-1);
  border-radius: 1px;
  z-index: 15;
  pointer-events: none;
}
