/* NiceSlides.ru V428 — final high-specificity UI corrections. */
:root{--ns428-violet:#6f35f2;--ns428-violet2:#9148ff;--ns428-violet3:#5120cf;--ns428-soft:#f6f1ff;--ns428-line:#dfd2ff;--ns428-ink:#17233d}

/* Public generation popup: beats legacy ui-v228/home-bundle !important selectors. */
html body #genModal.public-generation-modal-v137.generation-modal-v228{padding:10px!important;background:rgba(31,21,48,.48)!important}
html body #genModal.public-generation-modal-v137.generation-modal-v228>.gen-dialog.gen-dialog-v228{
 width:min(680px,calc(100vw - 20px))!important;max-width:680px!important;max-height:calc(100dvh - 20px)!important;min-height:0!important;
 margin:0!important;padding:72px 24px 22px!important;border:1px solid var(--ns428-line)!important;border-radius:24px!important;
 background:#fff!important;color:var(--ns428-ink)!important;box-shadow:0 22px 70px rgba(37,20,72,.20)!important;overflow:auto!important
}
html body #genModal .modal-x.modal-x-v228{top:12px!important;right:12px!important;width:38px!important;height:38px!important;min-width:38px!important;border:1px solid var(--ns428-line)!important;border-radius:50%!important;background:#f8f4ff!important;color:var(--ns428-violet)!important}
html body #genModal .modal-x.modal-x-v228 span{font:700 25px/1 Arial,sans-serif!important;transform:none!important}
html body #genModal .gen-orbit.gen-orbit-v228{top:0!important;width:116px!important;height:70px!important}
html body #genModal .gen-orbit.gen-orbit-v228 img{width:106px!important;height:80px!important;max-width:none!important}
html body #genModal .gen-dialog-v228>#genTitle{margin:0 0 5px!important;font-size:30px!important;line-height:1.06!important;letter-spacing:-.035em!important;color:#161e63!important}
html body #genModal .gen-dialog-v228>#genStatus{margin:0 0 14px!important;font-size:13px!important;line-height:1.35!important;color:#777c91!important}
html body #genModal .gen-dialog-v228>.progress{height:10px!important;margin:0 0 18px!important;border:1px solid #e5dafe!important;background:#f0eaff!important}
html body #genModal .gen-dialog-v228>.progress>#genProgress{background:linear-gradient(90deg,var(--ns428-violet),var(--ns428-violet2))!important}
html body #genModal .stage-list.stage-list-v228{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;padding:0!important;margin:0!important}
html body #genModal .stage-list-v228::before{left:8%!important;right:8%!important;top:27px!important;height:2px!important;background:#dac8ff!important}
html body #genModal .stage-list-v228>span{gap:6px!important}
html body #genModal .stage-list-v228 .stage-icon{width:54px!important;height:54px!important;padding:5px!important;border:1px solid #e4d9fb!important;border-radius:14px!important;background:#fbf9ff!important;box-shadow:0 7px 18px rgba(111,53,242,.06)!important}
html body #genModal .stage-list-v228 .stage-icon img{width:42px!important;height:42px!important}
html body #genModal .stage-list-v228 em{min-height:0!important;font-size:10px!important;line-height:1.15!important;color:#454a6c!important}
html body #genModal .stage-list-v228>span.active .stage-icon,html body #genModal .stage-list-v228>span.done .stage-icon{border-color:#9f76ff!important;box-shadow:0 0 0 3px rgba(111,53,242,.08)!important}
html body #genModal .stage-list-v228>span.active em,html body #genModal .stage-list-v228>span.done em{color:var(--ns428-violet3)!important}
html body #genModal .stage-list-v228>span.done::after{right:calc(50% - 28px)!important;top:-3px!important;width:17px!important;height:17px!important;font-size:9px!important;background:linear-gradient(135deg,var(--ns428-violet),var(--ns428-violet2))!important}

/* Continue button + running progress: override old orange high-specificity rules. */
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.work-continue{border-color:transparent!important;background:linear-gradient(100deg,var(--ns428-violet),var(--ns428-violet2))!important;color:#fff!important;box-shadow:0 10px 23px rgba(111,53,242,.19)!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.work-continue>span{color:#fff!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.work-continue>img{filter:hue-rotate(215deg) saturate(1.45) brightness(.92)!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-progress-v61{background:#eee9f8!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-progress-v61>i{background:linear-gradient(90deg,var(--ns428-violet) 0%,var(--ns428-violet2) 72%,#b56dff 100%)!important;box-shadow:0 3px 10px rgba(111,53,242,.18)!important}

/* Editor badge never overlays the label. */
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.editor-action{position:relative!important;display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;justify-content:stretch!important;column-gap:8px!important;width:100%!important;min-width:0!important;padding:8px 10px!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.editor-action>img{width:28px!important;height:28px!important;grid-column:1!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.editor-action>span{grid-column:2!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;line-height:1.15!important;font-size:11px!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.editor-action>.cab-editor-paid-badge-v141{position:static!important;right:auto!important;top:auto!important;transform:none!important;grid-column:3!important;justify-self:end!important;min-width:48px!important;max-width:58px!important;height:20px!important;padding:0 6px!important;margin:0!important;font-size:7px!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important}

/* Result paywall in NiceSlides violet. */
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 article.cab-work-row-v61.cab-result-paywall-v424{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:18px!important;border:1px solid #d9c9ff!important;background:linear-gradient(145deg,#fff 0%,#faf7ff 68%,#f3edff 100%)!important;box-shadow:0 14px 36px rgba(80,44,150,.10)!important}
body.cabinet-body-v410 #worksList.cabinet-works-list-v61 article.cab-result-paywall-v424::before{background:linear-gradient(90deg,var(--ns428-violet) 0%,var(--ns428-violet2) 58%,#b66cff 100%)!important}
body.cabinet-body-v410 #worksList .cab-result-ready-badge-v424{border-color:#d7c2ff!important;background:#f4eeff!important;color:var(--ns428-violet3)!important}
body.cabinet-body-v410 #worksList .cab-result-progress-v424{background:#ece5fb!important}
body.cabinet-body-v410 #worksList .cab-result-progress-v424>i{background:linear-gradient(90deg,var(--ns428-violet),var(--ns428-violet2),#b66cff)!important}
body.cabinet-body-v410 #worksList .cab-result-offer-v424{border-color:#e0d4fa!important;background:linear-gradient(135deg,#faf7ff,#fff)!important}
body.cabinet-body-v410 #worksList .cab-result-offer-meta-v424 strong{color:var(--ns428-violet3)!important}
body.cabinet-body-v410 #worksList .cab-result-preview-v424{border-color:#cab5ff!important;background:#fff!important;color:var(--ns428-violet3)!important}
body.cabinet-body-v410 #worksList .cab-result-buy-v424{border-color:transparent!important;background:linear-gradient(100deg,var(--ns428-violet),var(--ns428-violet2))!important;color:#fff!important;box-shadow:0 12px 25px rgba(111,53,242,.22)!important}

@media(max-width:900px){body.cabinet-body-v410 .cabinet-works-v61.cab-mobile-works-first-v428{margin-top:0!important}}

@media(max-width:760px){
 html body #genModal.public-generation-modal-v137.generation-modal-v228{padding:5px!important}
 html body #genModal.public-generation-modal-v137.generation-modal-v228>.gen-dialog.gen-dialog-v228{width:calc(100vw - 10px)!important;max-width:none!important;max-height:calc(100dvh - 10px)!important;padding:60px 9px 13px!important;border-radius:18px!important}
 html body #genModal .modal-x.modal-x-v228{top:7px!important;right:7px!important;width:34px!important;height:34px!important;min-width:34px!important}
 html body #genModal .gen-orbit.gen-orbit-v228{top:0!important;width:92px!important;height:58px!important}
 html body #genModal .gen-orbit.gen-orbit-v228 img{width:86px!important;height:64px!important}
 html body #genModal .gen-dialog-v228>#genTitle{font-size:21px!important;line-height:1.05!important;margin-bottom:4px!important}
 html body #genModal .gen-dialog-v228>#genStatus{font-size:10.5px!important;line-height:1.25!important;margin-bottom:10px!important}
 html body #genModal .gen-dialog-v228>.progress{height:8px!important;margin-bottom:12px!important}
 html body #genModal .stage-list.stage-list-v228{gap:2px!important}
 html body #genModal .stage-list-v228::before{top:20px!important;height:1px!important}
 html body #genModal .stage-list-v228 .stage-icon{width:40px!important;height:40px!important;padding:3px!important;border-radius:11px!important}
 html body #genModal .stage-list-v228 .stage-icon img{width:32px!important;height:32px!important}
 html body #genModal .stage-list-v228 em{font-size:7.5px!important;line-height:1.1!important}
 html body #genModal .stage-list-v228>span.done::after{right:calc(50% - 21px)!important;width:14px!important;height:14px!important;font-size:8px!important}
 body.cabinet-body-v410 #worksList.cabinet-works-list-v61 .cab-work-action-v61.editor-action{grid-template-columns:26px minmax(0,1fr) auto!important;column-gap:7px!important;padding:8px 9px!important}
}
