#workflow-dialog{width:min(480px,calc(100% - 24px));height:auto!important;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:24px;overflow:auto;overscroll-behavior:contain;background:white}
#workflow-dialog::backdrop{background:#0f172a99}
.workflow-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e2e8f0}
.workflow-head h2{font-size:17px;font-weight:750}
.workflow-head button{padding:8px;font-size:13px;min-height:40px}
#workflow-frame{display:block;width:100%;height:440px;max-height:calc(100dvh - 100px);border:0}
#workflow-status{padding:12px 16px;font-size:13px;color:#9a3412}
body:has(#workflow-dialog[open]){overflow:hidden}
/* Desktop gets a roomier account panel; phone dimensions stay unchanged. */
@media(min-width:768px){
 #workflow-dialog{width:min(640px,calc(100% - 64px))}
 .workflow-head{padding:16px 24px}
 .workflow-head h2{font-size:19px}
}
