/* Approved interactive-section palette. Page and record surfaces stay white. */
html #up-combined :is(.d-inventory-visual,.d-work-visual){position:relative;overflow:hidden;background:#F2EDF5;border-color:#DED4E4;box-shadow:none}
html #up-combined :is(.d-inventory-visual,.d-work-visual)::before{content:'';position:absolute;pointer-events:none;z-index:-1;width:360px;height:84px;right:-125px;top:190px;transform:rotate(-28deg);background:#F2B49E;border-radius:90px}
html #up-combined :is(.d-inventory-visual,.d-work-visual)::after{content:'';position:absolute;pointer-events:none;z-index:-1;width:230px;height:20px;right:-120px;top:246px;transform:rotate(-28deg);background:#E94D22;border-radius:20px;opacity:.3}
html #up-combined :is(.d-inventory-visual,.d-work-visual) .d-inv-heading{border-bottom-color:#DCD1E2}
html #up-combined :is(.d-inventory-visual,.d-work-visual) .d-paper{background:#fff}
html #up-combined .d-record{border-color:#D8D0DF;box-shadow:0 2px 0 #fff,0 3px 0 #DED6E4,0 16px 26px -18px #40264C40}
html #up-combined .d-difference{border-color:#D8D0DF;box-shadow:0 2px 0 #E8E1ED,0 10px 20px -15px #40264C40}
@media(max-width:640px){html #up-combined :is(.d-inventory-visual,.d-work-visual)::before{width:200px;height:58px;right:-110px;top:205px}html #up-combined :is(.d-inventory-visual,.d-work-visual)::after{width:130px;height:13px;right:-84px;top:242px}}

/* Use the same paper edges and restrained depth for shipment and claim records. */
html #up-combined .d-work-back{background:#fff;border-color:#DED6E4}
html #up-combined :is(.d-work-record,.d-work-next){border-color:#D8D0DF;box-shadow:0 2px 0 #fff,0 3px 0 #DED6E4,0 16px 26px -18px #40264C40}
html #up-combined .d-work-visual::before{width:280px;height:64px;right:-145px;top:180px}
html #up-combined .d-work-visual::after{width:190px;height:15px;right:-135px;top:220px}
@media(max-width:640px){
 html #up-combined .d-work-visual::before{width:200px;height:58px;right:-110px;top:280px}
 html #up-combined .d-work-visual::after{width:130px;height:13px;right:-84px;top:317px}
}

/* A broad, shallow paper stroke echoes the palette without filling each section. */
html #up-combined :is(.d-connections .u-names,.d-getting-started .u-grid,.d-final-surface){position:relative;isolation:isolate}
html #up-combined :is(.d-connections .u-names,.d-getting-started .u-grid,.d-final-surface)::before{content:"";position:absolute;z-index:-1;pointer-events:none;background:url("assets/plum-stroke.svg") center / 100% 100% no-repeat}
html #up-combined .d-connections .u-names::before{inset:-42px -28px -48px;transform:rotate(-3deg);opacity:.9}
html #up-combined .d-getting-started .u-grid::before{left:-28px;right:-28px;height:210px;top:30%;transform:scaleX(-1);opacity:.8}
html #up-combined .d-final-surface::before{width:82%;height:170px;right:-26px;top:-26px;opacity:.9}
html #up-combined .d-start-step{background:#fff}
@media(max-width:640px){
 html #up-combined .d-connections .u-names::before{inset:-14px -8px -18px;transform:none;background-size:100% 100%}
 html #up-combined .d-getting-started .u-grid::before{width:calc(100% + 16px);height:100%;left:-8px;right:auto;top:0;background-image:url("assets/plum-stroke-vertical.svg");background-size:100% 100%;transform:none;opacity:.8}
 html #up-combined .d-final-surface::before{width:calc(100% + 16px);height:130px;right:-8px;top:50px;opacity:.85}
}

/* Paper sweep stills for Getting started and the closing section, wide desktop only.
   Below 1280px nothing here applies and the SVG stroke rules above stay in effect.
   Must come after the existing plum stroke rules: these selectors match their specificity
   (one id, two classes), so source order decides. */
@media(min-width:1280px){
 html #up-combined .d-getting-started .u-grid::before{inset:auto;left:-74px;top:-110px;width:calc(100% + 148px);height:calc(100% + 183px);transform:none;opacity:1;background:url("assets/plum-paper-steps.webp") 0 0 / 100% 100% no-repeat}
 html #up-combined .u-bottom .d-final-surface::before{inset:auto;left:300px;top:-40px;width:calc(100% - 472px);height:calc(100% + 81px);transform:none;opacity:1;background:url("assets/plum-paper-closing.webp") 0 0 / 100% 100% no-repeat}
}
