/* Stage motion is painted only inside its own nested surface. */
html body #deal-editor-content .stage-swipe-box{min-width:0;overflow:hidden;contain:paint;isolation:isolate;touch-action:pan-y;border:1px solid var(--sd-rule);border-radius:10px;background:#f7f7ff}
html[data-theme=dark] body #deal-editor-content .stage-swipe-box{background:#242536}
html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section{position:relative;background:transparent!important;margin:0!important;padding:16px!important;border:0!important;border-radius:0!important;box-shadow:none!important;opacity:1!important;min-width:0;scroll-margin-top:170px}
html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section::before{content:none!important;box-shadow:none!important}
html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section[hidden]{display:none!important}
html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section:not([hidden]){display:block!important}
html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section>summary{display:none!important}
/* Full page-width background without moving the centred editor content. */
html body #deal-stage-nav{isolation:isolate;background:var(--sd-canvas)!important;border-bottom:0!important;padding:10px 0 4px!important}
html body #deal-stage-nav::before{content:'';position:absolute;z-index:-1;top:0;bottom:0;left:var(--stage-header-offset,0px);width:var(--stage-header-width,100%);background:var(--sd-canvas);border-bottom:1px solid var(--sd-rule);box-shadow:0 3px 8px #2432470b;pointer-events:none}
html body #deal-stage-nav .stage-nav-identity>strong{font-size:14px!important}
html body #deal-stage-nav .stage-nav-identity>small{font-size:12px!important}
html body #deal-stage-nav.is-slim{padding-top:4px!important;padding-bottom:0!important}
html body #deal-stage-nav.is-slim .stage-nav-identity>strong{font-size:12px!important}
html body #deal-stage-nav.is-slim .stage-nav-identity>small{display:none!important}
html body #deal-stage-nav.is-slim .stage-nav-heading{margin-bottom:0!important}
html body #deal-stage-nav .stage-nav-timeline{position:relative;margin:6px auto 0!important;padding:0 0 36px!important;width:calc(100% - 52px)!important;max-width:760px!important;grid-template-columns:repeat(4,minmax(0,1fr)) 88px!important;gap:0!important}
html body #deal-stage-nav .stage-nav-timeline::before{top:22px!important}
html body #deal-stage-nav .stage-nav-timeline>button{height:44px!important;min-height:44px!important;display:grid!important;place-items:center!important}
html body #deal-stage-nav .stage-nav-node{width:28px!important;height:28px!important}
html body #deal-stage-nav .stage-nav-final-outcomes{gap:0!important;width:88px!important;justify-content:center!important}
html body #deal-stage-nav .stage-nav-final-outcomes>button{justify-content:center!important;padding:0!important;flex:0 0 44px!important}
html body #deal-stage-nav .stage-nav-viewing{display:block!important;position:absolute;top:45px;left:50%;transform:translateX(-50%);width:104px;margin:0!important;text-align:center;white-space:normal!important;font-size:11px!important;line-height:1.25;pointer-events:none;transition:left 220ms ease}
html body #deal-stage-nav.is-slim .stage-nav-timeline{margin-top:0!important;padding-bottom:30px!important}
html body #deal-stage-nav.is-slim .stage-nav-arrows button{height:34px!important}
html body #deal-stage-nav [data-view-stage="5"][aria-pressed=true] .stage-nav-node{border-color:#c1334e!important;color:#b12640!important;background:var(--sd-canvas)!important}
html[data-theme=dark] body #deal-stage-nav [data-view-stage="5"][aria-pressed=true] .stage-nav-node{border-color:#ff91a2!important;color:#ff91a2!important}
/* Keep the header controls in an independent, stable paint layer. */
body.deal-editor-page>.topbar{isolation:isolate}
body.deal-editor-page>.topbar .user-menu{flex-shrink:0;position:relative;z-index:2;backface-visibility:hidden}
@media(max-width:600px){
 html body #deal-editor-content .v657-upload-row{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:8px!important}
 html body #deal-editor-content .v657-upload-row>.upload-form{display:contents!important}
 html body #deal-editor-content .v657-upload-row .upload-form>input[type=file]{grid-column:1/-1!important;grid-row:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
 html body #deal-editor-content .v657-upload-row .upload-form>button.btn{grid-column:1!important;grid-row:2!important;justify-self:stretch;height:44px!important;min-height:44px!important;margin:0!important;width:100%!important}
 html body #deal-editor-content .v657-upload-row>.camera-upload-form{grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center!important;margin:0!important;width:44px!important;height:44px!important;min-height:44px!important;align-self:center!important}
 html body #deal-editor-content .v657-upload-row .camera-capture-button{height:44px!important;min-height:44px!important;width:44px!important;margin:0!important}
 html body #deal-editor-content #deal-form .stage-swipe-box>details.stage-section{padding:12px!important}
}
@media(prefers-reduced-motion:reduce){html body #deal-stage-nav .stage-nav-viewing{transition:none}}
