/* One compact calculation action shared by template and scaffold pages. */
:is(.realiz-template-ui #column-form .template-primary-actions,body[data-scaffold-type] #settings>.actions){position:fixed;left:auto!important;right:28px;bottom:18px;z-index:9;display:flex!important;align-items:center;justify-content:flex-end;gap:0;width:auto;max-width:calc(100vw - 56px);margin:0;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none}
:is(.realiz-template-ui #column-form .template-primary-actions,body[data-scaffold-type] #settings>.actions)>:not(button){display:none!important}
:is(.realiz-template-ui #column-form .template-primary-actions,body[data-scaffold-type] #settings>.actions)>button{pointer-events:auto;width:auto!important;max-width:100%;margin:0;font:700 14px/1.4 "Microsoft JhengHei",sans-serif;padding:12px 18px;border:0;border-radius:7px;background:#0e3e6b;color:#fff;box-shadow:0 2px 8px #12355426}
.realiz-template-ui main,body[data-scaffold-type] .editor{padding-bottom:88px}
body[data-scaffold-type] [data-draft-status]{display:none!important}
body[data-scaffold-type] :is(#scaffold-calculation-status,#bracket-calculation-status).report-error:not(:empty){bottom:78px}
@media(max-width:800px){
 :is(.realiz-template-ui #column-form .template-primary-actions,body[data-scaffold-type] #settings>.actions){right:16px;bottom:14px;max-width:calc(100vw - 32px)}
 .realiz-template-ui main,body[data-scaffold-type] .editor{padding-bottom:96px}
 body[data-scaffold-type] :is(#scaffold-calculation-status,#bracket-calculation-status).report-error:not(:empty){bottom:72px}
}
@media print{.realiz-template-ui #column-form .template-primary-actions,body[data-scaffold-type] #settings>.actions{display:none!important}}
