/* WE ARE ONE MILLION V169 — match original ROOM GLIDE SPEEDS, with content
   already inside each complete moving panel. This stylesheet is scoped to
   the 3 hosted ordering stages during entrance/exit ONLY. No runtime changes
   to map/canvas or actual face controls. */

/* Picker & Review: old V137/V157/V158/V159/V162 child-by-child stagger was
   causing headings, map footer, controls and buttons to animate AFTER their
   containing panel. Suppress that staging only while travelling. A moving
   parent carries the rendered children and interactive controls as a unit.
   Upload keeps the V167 grouping and gains the original V157 glide speeds. */
/* Descendant-only selectors do NOT match root panels themselves. */
html.waom-selector.waom-entering :is(.head,.waom-return-bar,.intro,.main>section.panel,.controls,.info) *,
html.waom-selector.waom-leaving :is(.head,.waom-return-bar,.intro,.main>section.panel,.controls,.info) *,
html.waom-review.waom-entering :is(.shell>header,.waom-return-bar,.reviewIntro,.stepper,.layout>div>.card,.layout>aside,.layout>div>.secure) *,
html.waom-review.waom-leaving :is(.shell>header,.waom-return-bar,.reviewIntro,.stepper,.layout>div>.card,.layout>aside,.layout>div>.secure) *{
 animation:none!important;animation-delay:0s!important;
}
/* Pickers retain the V157 original durations/easing and the V158 adjusted
   delay cadence. First-visit panel cadence still uses V159 exactly: we
   change no panel's animation-duration or animation-delay on this stage. */
/* Independent ROOTS: map frame and control column remain separate glides;
   internal map heading/footer/buttons/segmented controls move WITH them. */

/* Review heading already enters as one .reviewIntro panel since V163.1.
   Keep its original 1.04s glide, and leave the full card/summary panel
   1.18s / 1.16s duration and established stagger unchanged. */

/* Upload: V167 changed the glides to .62-.82s and shortened their offsets.
   Restore exactly the V157 original leisurely motion speeds/directions.
   Its existing animationend ignition starts after the editor PANEL finishes,
   not after the unrelated 4.2s navigation timer or child delays. */
html.waom-upload.waom-entering body[data-waom-page="upload"] .header{
 --v157-x:0px;--v157-y:-78px;
 animation:v157RoomArrive .92s .05s cubic-bezier(.16,.79,.21,1) both!important;
}
html.waom-upload.waom-entering body[data-waom-page="upload"] .waom-return-bar{
 --v157-x:-90px;--v157-y:0px;
 animation:v157RoomArrive .85s .18s cubic-bezier(.16,.79,.21,1) both!important;
}
html.waom-upload.waom-entering body[data-waom-page="upload"] .uploadIntro{
 --v157-x:-120px;--v157-y:6px;
 animation:v157RoomArrive 1.10s .28s cubic-bezier(.16,.79,.21,1) both!important;
}
html.waom-upload.waom-entering body[data-waom-page="upload"] .editorSharedPanel{
 --v157-x:-125px;--v157-y:8px;
 animation:v157RoomArrive 1.18s .46s cubic-bezier(.16,.79,.21,1) both!important;
}
html.waom-upload.waom-entering body[data-waom-page="upload"] #finishedPanel{
 --v157-x:115px;--v157-y:10px;
 animation:v157RoomArrive 1.07s .77s cubic-bezier(.16,.79,.21,1) both!important;
}
/* Restore the original V157 exit glide and keep entire panel contents together. */
html.waom-upload.waom-leaving body[data-waom-page="upload"] .header{
 --v157-x:0px;--v157-y:-70px;
 animation:v157RoomDepart .73s .05s cubic-bezier(.55,.07,.91,.5) both!important;
}
html.waom-upload.waom-leaving body[data-waom-page="upload"] .waom-return-bar{
 --v157-x:-90px;--v157-y:0px;
 animation:v157RoomDepart .74s .11s cubic-bezier(.55,.07,.91,.5) both!important;
}
html.waom-upload.waom-leaving body[data-waom-page="upload"] .uploadIntro{
 --v157-x:-120px;--v157-y:0px;
 animation:v157RoomDepart .78s .18s cubic-bezier(.55,.07,.91,.5) both!important;
}
html.waom-upload.waom-leaving body[data-waom-page="upload"] .editorSharedPanel{
 --v157-x:-125px;--v157-y:8px;
 animation:v157RoomDepart .80s .27s cubic-bezier(.55,.07,.91,.5) both!important;
}
html.waom-upload.waom-leaving body[data-waom-page="upload"] #finishedPanel{
 --v157-x:115px;--v157-y:10px;
 animation:v157RoomDepart .75s .35s cubic-bezier(.55,.07,.91,.5) both!important;
}
/* The optional separate upload photo guide, when present, also travels
   as one complete panel; do not replay six independently staggered cards. */
html.waom-upload.waom-entering body[data-waom-page="upload"] .photoGuide{
 --v157-x:0px;--v157-y:92px;
 animation:v157RoomArrive 1s 1.07s cubic-bezier(.16,.79,.21,1) both!important;
}
html.waom-upload.waom-leaving body[data-waom-page="upload"] .photoGuide{
 --v157-x:0px;--v157-y:92px;
 animation:v157RoomDepart .75s .40s cubic-bezier(.55,.07,.91,.5) both!important;
}
html.waom-upload:is(.waom-entering,.waom-leaving) body[data-waom-page="upload"] .photoGuide *{
 animation:none!important;animation-delay:0s!important;
}
/* Outside the studio entrance the upload-guidelines ripples and all
   clickable/editing animations remain available as before. */

/* The black '+' mark is a precise pair of crossed bars at the hotspot centre.
   No badge or opaque fill; its full-size transparent hit-target is untouched. */
html.waom-upload body[data-waom-page="upload"] .ovalHotspot:not(.ready) .ovalMarkPlus::before,
html.waom-upload body[data-waom-page="upload"] .ovalHotspot:not(.ready) .ovalMarkPlus::after{
 background:#090b0c!important;box-shadow:0 0 1px rgba(255,255,255,.4)!important;
 width:22px;height:2.4px;left:50%;top:50%;
 transform:translate(-50%,-50%);border-radius:2px;
}
html.waom-upload body[data-waom-page="upload"] .ovalHotspot:not(.ready) .ovalMarkPlus::after{
 transform:translate(-50%,-50%) rotate(90deg);
}

/* The old charcoal/near-black 5-7px lip looked like a thick television bezel.
   The thin etched rim remains, but the exposed frame now picks up softer white instead of the V168 green.
   The source LED and its exterior television halo still use the shared flicker level. */
html.waom-upload body[data-waom-page="upload"] .previewDepthFrame{
 --waom-white-led:#f9faf7;--waom-light:#f9faf7;--waom-brand-lime:#f9faf7;
 background:rgb(
  calc(32 + 108 * var(--waom-led-level,1))
  calc(34 + 111 * var(--waom-led-level,1))
  calc(36 + 114 * var(--waom-led-level,1))
 )!important;
 box-shadow:
  0 0 7px 1px rgba(255,255,255,calc(var(--waom-led-level)*.34)),
  0 0 18px 4px rgba(255,255,255,calc(var(--waom-led-level)*.22)),
  0 0 40px 10px rgba(255,255,255,calc(var(--waom-led-level)*.14)),
  0 0 72px 18px rgba(255,255,255,calc(var(--waom-led-level)*.08)),
  0 6px 18px rgba(0,0,0,.48)!important;
}
html.waom-upload body[data-waom-page="upload"] .waomStudioFrameLip{
 border:1px solid rgba(255,255,255,calc(.12 + var(--waom-led-level,1)*.16))!important;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,calc(.08 + var(--waom-led-level,1)*.08)),
            inset 0 1px 1px rgba(255,255,255,calc(.08 + var(--waom-led-level,1)*.22)),
            0 1px 2px rgba(0,0,0,.13)!important;
}
/* V169 WHITE-LIT STUDIO PANEL.
   Keep the approved portrait-safe full-frame backdrop approach from V168,
   but replace the intense green/white treatment with a softer realistic
   white display glow. The true portrait canvas remains transparent above it
   so demo/live faces and customer uploads stay monochrome and visible. */
html.waom-upload body[data-waom-page="upload"] .previewDepthFrame::before{
 content:""!important;display:block!important;position:absolute!important;
 inset:7px!important;z-index:0!important;border-radius:14px!important;
 pointer-events:none!important;
 background:radial-gradient(ellipse 75% 75% at 50% 50%,
    #f7f8f5 0%,#f3f4f0 34%,#eceee8 58%,#dfe3dc 78%,#c9cfc9 100%)!important;
 opacity:calc(var(--waom-led-level,1) * .84)!important;
}
/* Portraits and their independently selectable empty oval outlines remain
   above this backdrop. Preserve the original grayscale PHOTO filter. */
html.waom-upload body[data-waom-page="upload"] .previewDepthFrame>#wallPreview{
 background:transparent!important;
}
html.waom-upload body[data-waom-page="upload"] .waomStudioEdgeLight{
 border-color:rgba(255,255,255,calc(var(--waom-led-level)*.92))!important;
 box-shadow:
  0 0 2px 1px rgba(255,255,255,calc(var(--waom-led-level)*.38)),
  0 0 7px 2px rgba(255,255,255,calc(var(--waom-led-level)*.24)),
  inset 0 0 8px 1px rgba(255,255,255,calc(var(--waom-led-level)*.22)),
  inset 0 0 20px 2px rgba(255,255,255,calc(var(--waom-led-level)*.10))!important;
}
html.waom-upload body[data-waom-page="upload"] .waomStudioEdgeLight path{
 stroke:#f9faf7!important;
}
html.waom-upload body[data-waom-page="upload"] .waomStudioEdgeCore{
 filter:drop-shadow(0 0 3px rgba(255,255,255,.72))!important;
}
html.waom-upload body[data-waom-page="upload"] .waomStudioIllumination{
 background:
  radial-gradient(ellipse 100% 34% at 50% 0%,rgba(255,255,255,.24),transparent 100%),
  linear-gradient(90deg,rgba(255,255,255,.10),transparent 13%,transparent 87%,rgba(255,255,255,.10)),
  linear-gradient(0deg,rgba(255,255,255,.08),transparent 16%)!important;
 box-shadow:inset 0 0 16px 2px rgba(255,255,255,.10)!important;
}
/* Hide only the old physical-frame pseudo-overlay, not the new gradient. */
html.waom-upload body[data-waom-page="upload"] .previewDepthFrame::after{
 content:none!important;display:none!important;
}
@media(max-width:620px){
 html.waom-upload body[data-waom-page="upload"] .previewDepthFrame{
  box-shadow:
   0 0 6px 1px rgba(255,255,255,calc(var(--waom-led-level)*.36)),
   0 0 15px 4px rgba(255,255,255,calc(var(--waom-led-level)*.23)),
   0 0 32px 8px rgba(255,255,255,calc(var(--waom-led-level)*.14)),
   0 0 58px 15px rgba(255,255,255,calc(var(--waom-led-level)*.08)),
   0 6px 18px rgba(0,0,0,.48)!important;
 }
 html.waom-upload body[data-waom-page="upload"] .previewDepthFrame::before{inset:6px!important;border-radius:12px!important}
}
/* Actual portrait artworks remain grayscale (existing CSS); no blend, tint,
   overlay or mask is inserted over the true #wallPreview pixels. */

@media(prefers-reduced-motion:reduce){
 html.waom-upload:is(.waom-entering,.waom-leaving) body[data-waom-page="upload"] :is(.header,.waom-return-bar,.uploadIntro,.editorSharedPanel,#finishedPanel,.photoGuide),
 html.waom-selector:is(.waom-entering,.waom-leaving) :is(.head,.waom-return-bar,.intro,.main>section.panel,.controls,.info),
 html.waom-review:is(.waom-entering,.waom-leaving) :is(.shell>header,.waom-return-bar,.reviewIntro,.stepper,.layout>div>.card,.layout>aside,.layout>div>.secure){
  animation:none!important;opacity:1!important;transform:none!important;
 }
}
