/* Main processing actions share dimensions and idle effects across all tools. */
:root { --process-button-height:46px; }
:is(#processTask,#save-state,#sign-finalize,button).site-process-button {
    height:var(--process-button-height);
    min-height:var(--process-button-height);
    flex-basis:auto;
    box-sizing:border-box;
    padding:6px 16px;
    border-radius:9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#fff;
    background:linear-gradient(90deg,#882e27,#6d869a 50%,#231641) #44287d;
    background-size:400% 400%;
    background-position:100% 50%;
    animation:none;
    box-shadow:0 2px 8px #3232324d;
}
button.site-process-button:not(#processTask) {position:relative;}
#processTask.site-process-button > span {height:auto;min-height:0;margin:0;}
button.site-process-button > svg,button.site-process-button > span:last-child {flex-shrink:0;}
#processTask.site-process-button[data-process-sidebar] {
    width:var(--process-button-width,calc(100vw - 40px));
    right:var(--process-button-right,20px);
    max-width:calc(100vw - 32px);
}
/* Explicitly replace the former body.inactive two-second pulse. */
html body button.site-process-button#processTask::after,
html body button.site-process-button:not(#processTask)::after {
    content:none;
    animation:none;
    box-shadow:none;
    pointer-events:none;
}
html body :is(#processTask,button).site-process-button.cta-pulse-idle:enabled::after {
    content:"";
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border-radius:inherit;
    pointer-events:none;
    animation:process-button-pulse 5s cubic-bezier(.66,0,0,1) infinite;
}
html body :is(#processTask,button).site-process-button.cta-gradient-idle:enabled {animation:process-button-color 5s ease-in-out infinite;}
@keyframes process-button-color {0%,100%{background-position:0 50%;}50%{background-position:100% 50%;}}
@keyframes process-button-pulse {
    0%{box-shadow:0 0 0 0 #ff6a5899;}
    30%,40%{box-shadow:0 0 0 60px #ff6a581a;}
    100%{box-shadow:0 0 0 0 #ff6a581a;}
}
@media(max-width:889px){:root{--process-button-height:43px;}}
@media(prefers-reduced-motion:reduce){
    html body :is(#processTask,button).site-process-button.cta-gradient-idle:enabled,
    html body :is(#processTask,button).site-process-button.cta-pulse-idle:enabled::after {animation:none;}
}
