/* Restricted to registered legacy entry controls, never lists or page chrome. */
.bsp-legacy-progressive-form{min-width:0}
.bsp-legacy-form-flow{width:100%;max-width:780px;margin-inline:auto;color:var(--text)}
.bsp-legacy-form-step{border-top:1px solid var(--border);padding:24px 0;min-width:0;scroll-margin-top:20px}
.bsp-legacy-form-heading{display:flex;align-items:center;gap:12px}
.bsp-legacy-form-heading h3{flex:1;font:600 20px/1.3 var(--font);letter-spacing:-.025em;margin:0;min-width:0}
.bsp-legacy-form-step.is-active>.bsp-legacy-form-heading h3{font-size:27px}
.bsp-legacy-form-number{width:24px;flex:none;font-size:11px;font-weight:600;color:var(--gray);font-variant-numeric:tabular-nums}
.bsp-legacy-form-step.is-active>.bsp-legacy-form-heading>.bsp-legacy-form-number{color:var(--orange)}
.bsp-legacy-form-change{border:0;background:transparent;color:var(--text);font:500 12px/1.3 var(--font);padding:8px 0 8px 12px;min-height:44px;cursor:pointer;flex:none}
.bsp-legacy-form-body{margin:24px 0 0 36px;min-width:0}
.bsp-legacy-form-body[hidden],.bsp-legacy-form-step[hidden],.bsp-legacy-form-change[hidden],.bsp-legacy-form-summary[hidden]{display:none!important}
.bsp-legacy-form-summary{margin:12px 0 0 36px;color:var(--gray);font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.bsp-legacy-form-body>.form-group{margin-bottom:18px}
.bsp-legacy-form-body>.card{padding:0;border:0;box-shadow:none;background:transparent}
.bsp-legacy-form-body :is(input,select,textarea){font-size:16px;max-width:100%;border-radius:12px}
.bsp-legacy-form-body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){min-height:48px}
.bsp-legacy-form-continue{display:flex;align-items:center;justify-content:center;gap:22px;margin:22px 0 0 auto;border:1px solid var(--navy);border-radius:12px;background:var(--navy);color:#fff;font:600 14px/1.3 var(--font);min-height:48px;padding:12px 22px;cursor:pointer}
.bsp-legacy-form-arrow{font-size:20px;font-weight:400}
.bsp-legacy-form-review-values{display:grid;margin-bottom:24px}
.bsp-legacy-form-review-values>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;border-bottom:1px solid var(--border);padding:14px 0}
.bsp-legacy-form-review-values dt{font-size:12px;color:var(--gray)}
.bsp-legacy-form-review-values dd{grid-column:1;font-size:15px;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.bsp-legacy-form-review-values .bsp-legacy-form-change{grid-column:2;grid-row:1/3}
.bsp-legacy-form-final-actions,.bsp-legacy-form-cancel{display:flex;flex-wrap:wrap;gap:10px}
.bsp-legacy-form-cancel{margin-top:12px}
.bsp-legacy-form-step :is(button,input,select,textarea,canvas):focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.bsp-legacy-form-step :is(button):disabled{cursor:default;opacity:.55}
@media(max-width:600px){.bsp-legacy-form-body{margin-left:0}.bsp-legacy-form-continue{width:100%}.bsp-legacy-form-heading h3{font-size:18px}.bsp-legacy-form-step.is-active>.bsp-legacy-form-heading h3{font-size:25px}}
.bsp-legacy-form-additional{margin:20px 0 24px;min-width:0}
.bsp-legacy-form-additional>summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:500;display:list-item;padding:12px 0}
.bsp-legacy-form-additional[open]>summary{margin-bottom:16px}
.bsp-legacy-form-additional .form-group{margin-bottom:16px}

:root[data-bsp-theme="dark"] .bsp-legacy-form-continue{background:#25466e;border-color:#456b98;color:#fff}
/* The iframe can be taller than the workspace viewport. Bound only registered
   entry dialogs to the parent viewport so their own scroll stays above its dock. */
body[data-bsp-embedded=true] .modal.bsp-legacy-progressive-form{max-height:calc(var(--bsp-workspace-viewport,720px) - 220px)!important;overflow-y:auto;padding-bottom:calc(32px + env(safe-area-inset-bottom));scroll-padding-bottom:112px}
