#ys-edit-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483646;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #1a237e;
  color: #fff;
  box-shadow: 0 4px 18px rgba(26, 35, 126, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#ys-edit-toggle:hover {
  transform: scale(1.05);
  background: #283593;
}

#ys-edit-toggle.active {
  background: #ef6c00;
  box-shadow: 0 4px 18px rgba(239, 108, 0, 0.4);
}

#ys-edit-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

html.ys-edit-mode {
  outline: 3px dashed rgba(239, 108, 0, 0.35);
  outline-offset: -3px;
}

html.ys-edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(26, 35, 126, 0.35);
  outline-offset: 2px;
  cursor: text;
}

#ys-edit-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483646;
  background: #ef6c00;
  color: #fff;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: none;
  pointer-events: none;
}

html.ys-edit-mode #ys-edit-badge {
  display: block;
}
