/* DrecuWorks R39 — centered processing portals, sponsor stability and refined tool theme */
html.drecu-modal-open,html.drecu-modal-open body{overflow:hidden!important}
body>.toolbox-processing-overlay,body>.toolbox-sponsor-modal{position:fixed!important;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100dvh!important;min-width:100vw!important;min-height:100dvh!important;margin:0!important;padding:clamp(12px,3vw,30px)!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:2147483500!important;background:rgba(6,10,20,.74)!important;backdrop-filter:blur(10px)!important;box-sizing:border-box!important;overflow:auto!important;contain:none!important}
body>.toolbox-processing-overlay.d-none,body>.toolbox-sponsor-modal.d-none{display:none!important}
body>.toolbox-processing-overlay>.toolbox-processing-modal,body>.toolbox-sponsor-modal>.toolbox-sponsor-dialog{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;translate:none!important;margin:auto!important;width:min(100%,480px)!important;max-width:480px!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;box-sizing:border-box!important;border-radius:24px!important;box-shadow:0 30px 90px rgba(0,0,0,.42)!important}
body>.toolbox-processing-overlay>.toolbox-processing-modal{padding:clamp(24px,4vw,38px)!important;text-align:center!important}
body>.toolbox-sponsor-modal>.toolbox-sponsor-dialog{padding:clamp(24px,4vw,34px)!important;text-align:center!important;background:#fff!important;color:#111827!important;border:1px solid rgba(148,163,184,.24)!important}
.toolbox-sponsor-dialog [data-r39-sponsor-status]{display:block!important;min-height:20px!important;margin:8px 0 12px!important;font-size:12px!important;font-weight:700!important;line-height:1.45!important;color:#475569!important}.toolbox-sponsor-dialog [data-r39-sponsor-status].is-error{color:#dc2626!important}.toolbox-sponsor-dialog [data-r39-sponsor-status].is-success{color:#059669!important}
.toolbox-sponsor-dialog [data-r39-reward-ad]{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-height:160px!important;overflow:hidden!important;margin:12px auto!important;border-radius:14px!important;background:#f8fafc!important}
.toolbox-page-v4 .toolbox-processing-card{border-radius:24px!important;overflow:hidden!important}.toolbox-page-v4 .toolbox-workbench-header{padding:18px 20px!important;border-radius:20px!important}.toolbox-page-v4 .toolbox-easy-steps{gap:12px!important}.toolbox-page-v4 .toolbox-easy-steps span{min-width:0!important}.toolbox-page-v4 .toolbox-submit-button{min-height:52px!important;border-radius:14px!important}
@media(max-width:640px){body>.toolbox-processing-overlay,body>.toolbox-sponsor-modal{padding:10px!important}body>.toolbox-processing-overlay>.toolbox-processing-modal,body>.toolbox-sponsor-modal>.toolbox-sponsor-dialog{width:100%!important;max-height:calc(100dvh - 20px)!important;border-radius:19px!important}.toolbox-processing-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}.toolbox-page-v4 .toolbox-workbench-header{padding:15px!important}}
@media(prefers-reduced-motion:reduce){.toolbox-processing-modal *,.toolbox-sponsor-dialog *{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* R39 global processing portal alignment: all tool generations stay centered. */
body>[data-processing-overlay],body>.toolbox-processing-overlay,body>.drecu-processing-overlay,body>.processing-overlay{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:clamp(10px,3vw,28px)!important;display:grid!important;place-items:center!important;z-index:2147483500!important;box-sizing:border-box!important;overflow:auto!important}
body>[data-processing-overlay].d-none,body>.toolbox-processing-overlay.d-none,body>.drecu-processing-overlay.d-none,body>.processing-overlay.d-none{display:none!important}
body>[data-processing-overlay]>* ,body>.toolbox-processing-overlay>* ,body>.drecu-processing-overlay>* ,body>.processing-overlay>*{position:relative!important;inset:auto!important;transform:none!important;margin:auto!important;max-width:min(520px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important}
.toolbox-processing-modal,.toolbox-sponsor-dialog{left:auto!important;right:auto!important;top:auto!important;bottom:auto!important}
.toolbox-sponsor-dialog [data-r39-sponsor-status]{display:block;min-height:20px;margin:8px 0 12px;font-size:12px;font-weight:700;line-height:1.45}.toolbox-sponsor-dialog [data-r39-sponsor-status].is-error{color:#dc2626}.toolbox-sponsor-dialog [data-r39-sponsor-status].is-success{color:#059669}
.toolbox-sponsor-dialog [data-r39-reward-ad]{display:flex;align-items:center;justify-content:center;width:100%;max-height:160px;overflow:hidden;margin:12px auto;border-radius:14px;background:#f8fafc}
