/* ===== Визуальный редактор (активен только в режиме редактирования) ===== */
.vste-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 14, 30, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.vste-bar__count { color: #ffb04c; font-weight: 600; }
.vste-bar__btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  transition: background .15s ease;
}
.vste-bar__btn:hover { background: rgba(255, 255, 255, .12); }
.vste-bar__btn--save {
  background: linear-gradient(135deg, #f60, #f06 51%, #9731ff);
  border-color: transparent;
  font-weight: 600;
}
.vste-bar__btn--save:disabled { opacity: .5; cursor: wait; }
.vste-flash {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(8px);
  z-index: 99999;
  background: #161616;
  color: #fff;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.vste-flash--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vste-on .vste-editable:hover {
  outline: 2px dashed rgba(151, 49, 255, .6);
  outline-offset: 3px;
  cursor: text;
}
.vste-on .vste-editable[contenteditable="true"] {
  outline: 2px solid #9731ff;
  outline-offset: 3px;
  background: rgba(151, 49, 255, .05);
}
.vste-on .vste-editable-img:hover {
  outline: 3px dashed rgba(255, 102, 0, .8);
  outline-offset: 3px;
  cursor: pointer;
  filter: brightness(.85);
}
.vste-login {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15, 10, 25, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vste-login__box {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
.vste-login__title { font-weight: 700; font-size: 18px; }
.vste-login__input {
  border: 1px solid #e3ddea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.vste-login__err { color: #ff3e3e; font-size: 12px; min-height: 14px; }
