/* cutout page: empty preview, progress bar, edge/background/shadow controls, sizes on the save buttons */
.wc svg{display:block;width:min(24rem,100%);height:auto;border-radius:1.15rem;box-shadow:0 1rem 2.6rem rgba(0,0,0,.35);margin-bottom:1rem}
.ubusy small{max-width:30ch}
.ucs{display:grid;gap:.9rem;padding:.4rem 1.6rem 1rem}
.ucs[hidden]{display:none}
.ur{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.ulb{display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:var(--tx2)}
.ulb b{font-weight:500;color:var(--tx);font-variant-numeric:tabular-nums}
.ur>.ulb{margin-inline-end:.2rem}
.ur .seg button{height:2.45rem;padding:0 .9rem}
.ur>.seg{flex:1 1 auto}
.ux{display:flex;align-items:center;flex:1 1 100%;min-width:0}
.ux[hidden]{display:none}
.ux .rng{margin:0}
.ux .btn{flex:1;min-width:0;height:2.95rem}
.ux .btn b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.ux .hex{flex:1;min-width:0}
.uf2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.6rem}
.uf2 .ush{align-content:center}.uf2 .ush .tg{width:100%;height:3.4rem}
.uf{display:grid;gap:0}
.uf .rng{height:2rem}
.url{display:flex;justify-content:space-between;margin-top:-.2rem;color:var(--tx3);font-size:.88rem}
.url i{font-style:normal}
.tg{display:flex;align-items:center;gap:.7rem;height:2.95rem;padding:0 1.1rem 0 .8rem;border-radius:1rem;background:var(--field);box-shadow:inset 0 0 0 1.5px var(--line2);color:var(--tx2);transition:box-shadow .11s,color .11s}
.tg:hover{box-shadow:inset 0 0 0 1.5px var(--edge2);color:var(--tx)}
.tg i{position:relative;width:2.1rem;height:1.25rem;border-radius:1rem;background:rgba(255,255,255,.16);transition:background-color .14s}
.tg i::after{content:"";position:absolute;inset:.2rem auto .2rem .2rem;width:.85rem;border-radius:50%;background:#fff;transition:translate .14s}
.tg[aria-pressed=true]{color:var(--tx);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tg[aria-pressed=true] i{background:var(--ink)}
.tg[aria-pressed=true] i::after{translate:.85rem 0}
[dir=rtl] .tg[aria-pressed=true] i::after{translate:-.85rem 0}
.out footer .btn{flex-wrap:wrap;justify-content:center;row-gap:0}
.out footer .btn em{flex:0 0 100%;text-align:center;font-style:normal;font-size:.84rem;color:var(--tx3);line-height:1.2}
.out footer .btn em:empty{display:none}
.out footer .btn:has(em:not(:empty)){height:auto;min-height:3.4rem;padding-block:.5rem}
@media (max-width:760px){
 .ucs{padding-inline:1rem}
 .uf2{grid-template-columns:minmax(0,1fr);gap:.7rem}
 .ur>.ulb{display:none}
 .ur>[data-bgm]{flex:1 1 100%}
 .tg{justify-content:center}
}
/* the picture is fitted into the panel by its own aspect ratio, so the transparent chequer shows only where the picture itself is transparent */
.out .ures.full .fitbox{container-type:size}
.out .ures.full .fitbox #ucmp{width:min(100cqw,calc(100cqh*var(--ar,1.5)));height:auto;aspect-ratio:var(--ar,1.5);max-height:100%}
.ux>.uf{flex:1;min-width:0}
/* background placement */
.ubgc{display:flex;align-items:stretch;gap:.6rem;flex:1;min-width:0}.ubgc[hidden]{display:none}.ubgf{flex:1;min-width:0}.ux .ubgc .ubgr{height:auto;flex:none;gap:.5rem;padding:0 1.1rem}
.uh{margin:-.3rem 0 0;color:var(--tx3);font-size:.9rem}
.uh[hidden]{display:none}
.cmp.pl{touch-action:none;cursor:grab}
.cmp.pl.gr{cursor:grabbing}
/* picture background: the divider rests at the left and is hidden while the picture is moved */
.cmp.pan>i,.cmp.pan>.cl{display:none}
/* live preview while the background is moved: picture under the subject, both on the compositor */
.cmp .bgl{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#05070c}
.cmp .bgl[hidden]{display:none}
.cmp .bgq{position:absolute;left:50%;top:50%;background-size:100% 100%;background-repeat:no-repeat;will-change:transform;transform-origin:50% 50%}
.cmp .bgf{position:absolute;inset:0;width:100%;height:100%;display:block}
.cmp .bgbadge{position:absolute;top:.8rem;left:50%;translate:-50% 0;display:flex;align-items:center;gap:.5rem;padding:.4rem .8rem;border-radius:.8rem;background:rgba(8,10,16,.72);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.28);color:#fff;font-size:.88rem;white-space:nowrap;pointer-events:none;transition:opacity .5s}
.cmp .bgbadge[hidden]{display:none}
.cmp .bgbadge.off{opacity:0}
.out .ucs{padding-inline:var(--opx)} /* s58: same inset as the buttons below */
