.qb-workspace-bar{position:sticky;top:0;z-index:20;background:var(--sb-panel,#fff);border:1px solid var(--sb-border,#ddd);border-radius:12px;padding:12px 18px;margin:0 0 22px;box-shadow:0 4px 16px #00000008}
.qb-progress{display:flex;gap:8px;margin-bottom:12px}.qb-progress button{flex:1;display:flex;align-items:center;gap:8px;justify-content:center;min-height:44px!important;font-size:14px!important}.qb-progress button span{border-radius:50%;width:24px;height:24px;display:grid;place-items:center;background:var(--sb-soft,#eee)}.qb-progress .qb-done span{background:#17695f;color:white}.qb-live{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px}.qb-live strong{font-size:22px;margin-left:8px}.qb-live>div{display:flex;flex-wrap:wrap;gap:16px}.qb-live>div span{text-transform:capitalize}.qb-live b{font-weight:600}.qb-live button{min-height:44px}.qb-reuse{margin-bottom:18px;padding:14px 18px;border:1px solid var(--sb-border);border-radius:10px}.qb-reuse summary{cursor:pointer;font-size:14px}.qb-reuse label{margin:16px 0 10px}.qb-setup{max-width:800px;margin:0 auto}.qb-setup input:not([type=checkbox]),.qb-reuse select{min-height:48px;font-size:16px}.qb-setup button{min-height:48px;font-size:16px}.qb-setup fieldset{border:1px solid var(--sb-border);border-radius:10px;padding:16px;margin-top:18px}.qb-check{display:flex!important;align-items:center;gap:12px;margin:12px 0}.qb-check input{width:22px;height:22px}.qb-tip{display:inline-grid;place-items:center;border:1px solid var(--sb-border);border-radius:50%;width:18px;height:18px;cursor:help}.qb-error{min-height:24px;color:#c43b30}.qb-setup h2{font-size:28px}.qb-setup .tag{margin-bottom:12px}
@media(max-width:760px){body.sb-workspace,body.sb-workspace.sb-sidebar-collapsed,body.sb-workspace.sb-mobile-menu{--sb-rail:0px}body.sb-workspace>.workspace{margin-left:0!important}.sb-closed .sb-sidebar{display:none}.sb-open .sb-sidebar{width:280px}.sb-ui .sb-mobile-trigger{min-width:44px;min-height:44px;display:grid;place-items:center}.sb-demo-content{margin-left:0}.sb-header-actions{flex-direction:row-reverse}.qb-workspace-bar{padding:10px;margin-bottom:16px}.qb-progress{gap:4px}.qb-progress button{font-size:12px!important;padding:6px!important;gap:4px}.qb-progress button span{width:20px;height:20px;flex-shrink:0}.qb-live{flex-wrap:wrap}.qb-live strong{font-size:20px}.qb-live>div{order:3;width:100%;gap:10px;font-size:12px}.qb-setup .fields{grid-template-columns:1fr}.qb-setup{padding:20px!important}.qb-setup .actions{flex-direction:column;align-items:stretch}.qb-setup fieldset{padding:12px}.qb-reuse{padding:12px}.sb-ui .sb-nav-option{min-height:46px}}
.qb-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.qb-progress button{min-width:0!important;white-space:normal;overflow-wrap:anywhere}.qb-live>span,.qb-live>div{min-width:0}.qb-live>span{overflow-wrap:anywhere}
@media screen and (max-width:760px){body.sb-workspace>.workspace{transition:none!important}}
@media print{#quickWorkspaceBar,.qb-reuse{display:none!important}}

.qb-compact-step{display:none}
@media screen and (max-width:760px){
  #quickWorkspaceBar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px}
  #quickWorkspaceBar .qb-compact-step{display:block;min-width:0;white-space:nowrap;font-size:13px;font-weight:600}
  #quickWorkspaceBar .qb-progress,#quickWorkspaceBar .qb-live>span,#quickWorkspaceBar .qb-live>div{display:none}
  #quickWorkspaceBar .qb-live{display:contents}
  #quickWorkspaceBar #quickNext{flex:none;min-height:44px;padding:6px 10px;white-space:nowrap}
}

/* Proposal actions stay in normal flow; the progress bar must not cover them. */
#quickWorkspaceBar.qb-proposal-bar{position:static}
/* A narrow viewport has little room above focused fields. Keep progress in
   normal flow so scroll/focus cannot place tax or proposal actions behind it. */
@media screen and (max-width:760px){#quickWorkspaceBar{position:static}.sb-closed .sb-menu-backdrop{display:none!important;pointer-events:none}}
@media screen and (max-width:760px){.sb-open .sb-sidebar{max-width:calc(100vw - 44px)}.sb-open .sb-menu-backdrop{left:min(280px,calc(100vw - 44px))}}
