/* NiceSlides.ru V434 — unique public generator modal + editor back button. */
:root{--ns434:#6f3df4;--ns434-2:#925bff;--ns434-ink:#172340;--ns434-muted:#70798d;--ns434-line:#e1d6fb}

/* Editor admin-back button: rounded violet, actual white icon asset. */
html body.account-body .presentation-editor-page a.editor-back.editor-topbar-back-v161.editor-topbar-back-v243{
  border:1px solid #7544f2!important;
  border-radius:22px!important;
  background:#6f3df4!important;
  background-image:linear-gradient(135deg,#6334e8 0%,#925bff 100%)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(111,61,244,.24)!important;
  overflow:hidden!important;
}
html body.account-body .presentation-editor-page a.editor-back.editor-topbar-back-v161.editor-topbar-back-v243 span{
  color:#fff!important;-webkit-text-fill-color:#fff!important
}
html body.account-body .presentation-editor-page a.editor-back.editor-topbar-back-v161.editor-topbar-back-v243 img{
  filter:none!important;opacity:1!important
}
html body.account-body .presentation-editor-page a.editor-back.editor-topbar-back-v161.editor-topbar-back-v243:hover{
  border-color:#5b2cdd!important;background:#5d2fe0!important;background-image:linear-gradient(135deg,#5528d6 0%,#8249f3 100%)!important
}

/* Completely unique public generator modal. No v228 modal/dialog/stage classes are used. */
html body > #genModal.ns-gen-modal-v434{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100vw!important;height:100dvh!important;min-height:100dvh!important;
  margin:0!important;padding:14px!important;box-sizing:border-box!important;
  overflow:hidden!important;touch-action:pan-y!important;
  background:rgba(30,21,48,.58)!important;
  backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important;
}
html body > #genModal.ns-gen-modal-v434[hidden]{display:none!important}
html body > #genModal.ns-gen-modal-v434 .ns-gen-dialog-v434{
  position:relative!important;width:min(570px,calc(100vw - 28px))!important;max-width:570px!important;
  max-height:calc(100dvh - 28px)!important;min-height:0!important;
  margin:auto!important;padding:22px!important;box-sizing:border-box!important;
  overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  border:1px solid var(--ns434-line)!important;border-radius:24px!important;
  background:#fff!important;box-shadow:0 28px 80px rgba(28,18,48,.28)!important;color:var(--ns434-ink)!important;
}
html body > #genModal .ns-gen-close-v434{
  position:absolute!important;top:14px!important;right:14px!important;
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;border:1px solid #e1d7f9!important;border-radius:50%!important;
  background:#f8f5ff!important;color:#6f3df4!important;cursor:pointer!important;
  font:700 25px/1 Arial,sans-serif!important;box-shadow:0 6px 16px rgba(111,61,244,.10)!important
}
html body > #genModal .ns-gen-close-v434 span{display:block!important;transform:translateY(-1px)!important}
html body > #genModal .ns-gen-head-v434{
  display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:13px!important;
  align-items:center!important;padding-right:44px!important;margin:0 0 14px!important
}
html body > #genModal .ns-gen-mascot-v434{width:62px!important;height:auto!important;display:block!important}
html body > #genModal .ns-gen-head-copy-v434{min-width:0!important}
html body > #genModal #genTitle{margin:0 0 4px!important;font-size:25px!important;line-height:1.08!important;font-weight:950!important;letter-spacing:-.03em!important;color:#17245b!important}
html body > #genModal #genStatus{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.35!important;color:var(--ns434-muted)!important;font-weight:550!important}
html body > #genModal .ns-gen-progress-v434{width:100%!important;height:9px!important;margin:0 0 18px!important;border:1px solid #e5dcfa!important;border-radius:999px!important;background:#f1ecff!important;overflow:hidden!important}
html body > #genModal .ns-gen-progress-v434 > #genProgress{display:block!important;height:100%!important;min-width:3%!important;border-radius:999px!important;background:linear-gradient(90deg,#6f3df4,#925bff)!important;box-shadow:0 4px 12px rgba(111,61,244,.18)!important}
html body > #genModal .ns-gen-stages-v434{position:relative!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;align-items:start!important;margin:0!important;padding:0!important}
html body > #genModal .ns-gen-stages-v434::before{content:""!important;position:absolute!important;left:8%!important;right:8%!important;top:24px!important;height:2px!important;background:#e4daf9!important;z-index:0!important}
html body > #genModal .ns-gen-stages-v434 > span{position:relative!important;z-index:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;min-width:0!important;color:#6d7488!important}
html body > #genModal .ns-gen-stage-icon-v434{width:48px!important;height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:4px!important;box-sizing:border-box!important;border:1px solid #e4daf9!important;border-radius:14px!important;background:#fff!important;box-shadow:0 7px 18px rgba(111,61,244,.07)!important}
html body > #genModal .ns-gen-stage-icon-v434 img{width:36px!important;height:36px!important;object-fit:contain!important}
html body > #genModal .ns-gen-stages-v434 em{min-height:0!important;margin:0!important;font-style:normal!important;font-size:9px!important;line-height:1.12!important;font-weight:800!important;text-align:center!important;white-space:normal!important;color:#5f677c!important}
html body > #genModal .ns-gen-stages-v434 > span.done .ns-gen-stage-icon-v434,
html body > #genModal .ns-gen-stages-v434 > span.active .ns-gen-stage-icon-v434{border-color:#9d78f8!important;box-shadow:0 0 0 3px rgba(111,61,244,.08),0 7px 18px rgba(111,61,244,.08)!important}
html body > #genModal .ns-gen-stages-v434 > span.done em,
html body > #genModal .ns-gen-stages-v434 > span.active em{color:#5426d5!important}
html body > #genModal .ns-gen-stages-v434 > span.done::after{content:"✓"!important;position:absolute!important;top:-4px!important;right:calc(50% - 27px)!important;width:17px!important;height:17px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:2px solid #fff!important;border-radius:50%!important;background:#6f3df4!important;color:#fff!important;font:800 9px/1 Arial,sans-serif!important;box-shadow:0 4px 10px rgba(111,61,244,.18)!important}
html body > #genModal .ns-gen-result-v434{margin-top:16px!important}

@media(max-width:760px){
  html body > #genModal.ns-gen-modal-v434{padding:8px!important}
  html body > #genModal.ns-gen-modal-v434 .ns-gen-dialog-v434{width:min(420px,calc(100vw - 16px))!important;max-width:420px!important;max-height:calc(100dvh - 16px)!important;padding:14px 10px 12px!important;border-radius:20px!important}
  html body > #genModal .ns-gen-close-v434{top:9px!important;right:9px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:22px!important}
  html body > #genModal .ns-gen-head-v434{grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;padding-right:36px!important;margin-bottom:10px!important}
  html body > #genModal .ns-gen-mascot-v434{width:46px!important}
  html body > #genModal #genTitle{font-size:18px!important;margin-bottom:3px!important}
  html body > #genModal #genStatus{font-size:10.5px!important;line-height:1.25!important}
  html body > #genModal .ns-gen-progress-v434{height:7px!important;margin-bottom:13px!important}
  html body > #genModal .ns-gen-stages-v434{gap:2px!important}
  html body > #genModal .ns-gen-stages-v434::before{top:19px!important;height:1px!important}
  html body > #genModal .ns-gen-stage-icon-v434{width:38px!important;height:38px!important;padding:3px!important;border-radius:11px!important}
  html body > #genModal .ns-gen-stage-icon-v434 img{width:29px!important;height:29px!important}
  html body > #genModal .ns-gen-stages-v434 em{font-size:7px!important;line-height:1.05!important}
  html body > #genModal .ns-gen-stages-v434 > span.done::after{top:-3px!important;right:calc(50% - 20px)!important;width:13px!important;height:13px!important;font-size:7px!important}
}
