*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f7f8f4;color:#403a36;font-family:Playground,Arial,sans-serif}
#film{height:100%;display:flex;flex-direction:column;border:1px solid #dce6de;background:#f7f8f4;overflow:hidden}
.film-topbar{height:52px;min-height:52px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f9faf7;border-bottom:1px solid #dce6de;color:#4d6258}
.film-brand,.film-status{display:flex;align-items:center;gap:15px;min-width:0}.film-brand img{width:105px;height:auto;display:block}.film-brand .divider{width:1px;height:20px;background:#d9e2d9}.film-brand strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.film-status{gap:7px;font-size:10px;letter-spacing:.08em;font-weight:600;color:#819489;white-space:nowrap}.film-status i{width:7px;height:7px;background:#83b49a;border-radius:50%}
#viewport{flex:1;min-height:0;position:relative;overflow:hidden;background:#f5f7f2}
#camera{position:absolute;width:1600px;height:1050px;transform-origin:0 0;transition:transform 1.2s cubic-bezier(.22,.7,.2,1);will-change:transform}
#workspace{width:1600px;height:1050px;border:0;display:block;pointer-events:none;background:#f6f7f1}
#cursor{position:absolute;left:370px;top:180px;width:34px;height:43px;z-index:5;pointer-events:none;transition:none;filter:drop-shadow(0 3px 4px #21152a99)}
#cursor.tracking{transition:left .08s linear,top .08s linear}
#cursor svg{width:100%;height:100%;fill:#332545;stroke:white;stroke-width:1.6}
#cursor i{position:absolute;left:-10px;top:-10px;width:30px;height:30px;border-radius:100%;border:3px solid #9f81c5;opacity:0}
#cursor.click i{animation:click .75s ease-out}@keyframes click{0%{opacity:1;transform:scale(.3)}100%{opacity:0;transform:scale(2)}}
footer{position:relative;flex:none;background:#f8faf6;padding:0 20px 15px;color:#40594d;border-top:1px solid #e0e9e0}
.progress{height:3px;background:#dae8db;margin:0 -20px 13px}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#90bd9e,#a78ac9);transition:width 1.2s ease}
.caption{display:flex;align-items:center;gap:14px}.caption>span{font-size:22px;color:#7c9c87;font-variant-numeric:tabular-nums}.caption strong{font-size:15px;font-weight:600}.caption small{margin-left:auto;color:#778e80;font-size:10px}
#fade{position:absolute;inset:0;background:#f8f8f5;opacity:0;pointer-events:none;transition:opacity .3s ease}#fade.on{opacity:1}
#file-ghost{display:none;position:absolute;z-index:6;width:175px;border-radius:12px;padding:20px;background:white;border:1px solid #b8d5c6;box-shadow:0 14px 35px #382e4330;color:#60846c;font-size:14px;transition:left 1s,top 1s}#file-ghost b{display:block;font-size:20px;margin:8px 0}#file-ghost small{font-size:10px}
body[data-kind=comp] #film,body[data-kind=comp] .film-topbar,body[data-kind=comp] footer{border-color:#e6dceb}body[data-kind=comp] .film-topbar,body[data-kind=comp] footer{background:#faf7fb}body[data-kind=comp] .caption>span{color:#9d7db3}body[data-kind=comp] .progress i{background:linear-gradient(90deg,#b99ad0,#e2b7d3)}
body[data-kind=autonomy] #film{border-color:#5b516d;background:#252137}body[data-kind=autonomy] .film-topbar,body[data-kind=autonomy] footer{background:#322b43;border-color:#51465e;color:#e9dfed}body[data-kind=autonomy] .film-brand img{filter:brightness(0) invert(1);opacity:.92}body[data-kind=autonomy] .film-brand .divider{background:#625873}body[data-kind=autonomy] .film-status,body[data-kind=autonomy] .caption small{color:#c3b4ca}body[data-kind=autonomy] .film-status i{background:#b59bdf}body[data-kind=autonomy] .progress{background:#493e59}body[data-kind=autonomy] .progress i{background:linear-gradient(90deg,#9181c5,#d5a8bc)}body[data-kind=autonomy] .caption>span{color:#c5add5}body[data-kind=autonomy] #viewport,body[data-kind=autonomy] #workspace{background:#252137}
@media(max-width:600px){.film-topbar{height:42px;min-height:42px;padding:0 11px}.film-brand{gap:8px}.film-brand img{width:76px}.film-brand .divider{height:17px}.film-brand strong{font-size:11px}.film-status{font-size:8px;letter-spacing:.03em;gap:5px}.film-status i{width:6px;height:6px}footer{padding:0 12px 11px}.caption{gap:8px;flex-wrap:wrap}.caption>span{font-size:19px}.caption strong{font-size:12px;flex:1;line-height:1.3}.caption small{font-size:9px;margin-left:27px;width:100%}.progress{margin:0 -12px 9px}}
@media(prefers-reduced-motion:reduce){#camera,#cursor{transition:none}}
/* The career-structure film begins on the architecture, keeping the review queue out of its opening frame. */
body[data-kind=ja]:not([data-ready]) #camera,body[data-kind=ja]:not([data-ready]) #cursor{visibility:hidden}
/* Five presentation treatments, all showing the same live workspace and soft pan. */
body[data-display="2"] #film{background:#f4f7f2;border:8px solid #e7f0e6;border-radius:12px}
body[data-display="2"] .film-topbar,body[data-display="2"] footer{background:#eff6ef;border-color:#cfe1d2;color:#355b45}
body[data-display="2"] .film-topbar{border-bottom:2px solid #bedbc5}
body[data-display="2"] .caption>span{color:#4e9066}
body[data-display="3"] #film{background:#f5f2fa;border:8px solid #d9cde5;border-radius:18px}
body[data-display="3"] .film-topbar{background:linear-gradient(110deg,#eee7f5,#f7eff0);border-color:#d9c9df;color:#614c70}
body[data-display="3"] footer{background:#f4edf6;border-color:#ded0e4;color:#5c426d}
body[data-display="3"] .caption>span{color:#a27db8}
body[data-display="3"] .film-status i{background:#ac8dca}
body[data-display="4"] #film{background:#fbf7f0;border:5px solid #dbc6b8;border-radius:3px}
body[data-display="4"] .film-topbar{height:64px;min-height:64px;background:#fffaf3;border-bottom:1px solid #c6b1a2;color:#5b483d}
body[data-display="4"] .film-brand strong{font-size:15px;letter-spacing:-.02em}
body[data-display="4"] footer{background:#fffaf3;color:#55463c;border-color:#ded1c5;padding-bottom:18px}
body[data-display="4"] .progress{height:2px;background:#eadfd6}
body[data-display="4"] .caption>span{color:#bd8572}
body[data-display="5"] #film{background:#211b30;border:8px solid #352a47;border-radius:12px}
body[data-display="5"] .film-topbar,body[data-display="5"] footer{background:#2c233d;color:#f4eaf7;border-color:#51415f}
body[data-display="5"] .film-brand img{filter:brightness(0) invert(1);opacity:.92}
body[data-display="5"] .film-brand .divider{background:#665372}
body[data-display="5"] .film-status,body[data-display="5"] .caption small{color:#d6c5dc}
body[data-display="5"] .film-status i{background:#ceadf0}
body[data-display="5"] .progress{background:#493951}
body[data-display="5"] .progress i{background:linear-gradient(90deg,#ad98d4,#edb29c)}
body[data-display="5"] .caption>span{color:#d8b1d8}
@media(max-width:600px){body[data-display="4"] .film-topbar{height:44px;min-height:44px}body[data-display="4"] .film-brand strong{font-size:11px}body[data-display="4"] footer{padding-bottom:11px}body[data-display="2"] #film,body[data-display="3"] #film,body[data-display="5"] #film{border-width:4px}}

/* Soft studio framing with readable, wrapping labels. */
body[data-display="3"] #film{border-width:2px;border-color:#cdbed5;border-radius:16px}body[data-kind="ja"][data-display="3"] .film-topbar,body[data-kind="ja"][data-display="3"] footer{background:#edf4ea;color:#3b5b48;border-color:#d0dfce}body[data-kind="ja"][data-display="3"] #film{background:#edf4ea;border-color:#c7d7c5}body[data-kind="comp"][data-display="3"] .film-topbar,body[data-kind="comp"][data-display="3"] footer{background:#f0e8f5;color:#604572;border-color:#d8c7e0}.film-brand strong{white-space:normal;overflow:visible;line-height:1.25}.caption strong{line-height:1.4;overflow-wrap:anywhere}.caption small{line-height:1.35}@media(max-width:750px){.film-status{display:none}.caption small{display:none}.film-topbar{padding:0 12px}}

#step-explainer{position:absolute;z-index:12;left:50%;top:50%;width:min(520px,88%);transform:translate(-50%,-45%);padding:28px 32px;border:1px solid #cbb7d9;border-radius:18px;background:linear-gradient(135deg,#fffafd,#eee4f5);box-shadow:0 18px 65px #2d1c4c36;opacity:0;visibility:hidden;transition:opacity .28s,transform .28s,visibility .28s;color:#503361;pointer-events:none}#step-explainer.on{opacity:1;visibility:visible;transform:translate(-50%,-50%)}#step-explainer small{display:block;color:#815c95;font-size:11px;font-weight:650;letter-spacing:.12em;margin-bottom:13px}#step-explainer h2{font-size:clamp(22px,2.4vw,31px);font-weight:500;line-height:1.14;letter-spacing:-.025em;margin:0 0 14px}#step-explainer p{font-size:clamp(16px,1.7vw,20px);line-height:1.5;margin:0;color:#654874}#step-explainer>i{display:block;height:3px;margin-top:22px;background:#dfd0e6;overflow:hidden;border-radius:3px}#step-explainer>i>b{display:block;height:100%;width:0;background:linear-gradient(90deg,#8a659f,#e4aa88)}#step-explainer.on>i>b{animation:explanation-time 4.5s linear forwards}#viewport[data-explaining="true"] #camera{filter:blur(1.5px) saturate(.8) brightness(.93)}#viewport[data-explaining="true"] #cursor{opacity:0}@keyframes explanation-time{to{width:100%}}@media(max-width:600px){#step-explainer{padding:20px 22px}#step-explainer small{font-size:10px;margin-bottom:10px}#step-explainer h2{font-size:23px}#step-explainer p{font-size:16px}#step-explainer>i{margin-top:16px}}@media(prefers-reduced-motion:reduce){#step-explainer{transition:none}#step-explainer.on>i>b{animation:none;width:100%}}

/* Anchored descriptions — no sequential step badge. */
#step-explainer{width:min(300px,78%);left:20px;top:20px;transform:translateY(10px) scale(.97);padding:17px 19px;border:1px solid #cfc7b9;border-radius:10px;background:#fffdf8f7;color:#403a33;box-shadow:0 12px 36px #30271e24;transition:opacity .5s cubic-bezier(.2,.75,.2,1),transform .5s cubic-bezier(.2,.75,.2,1),visibility .5s}#step-explainer.on{transform:translateY(0) scale(1)}#step-explainer small{display:none}#step-explainer h2{font-size:19px;line-height:1.15;letter-spacing:-.02em;margin:0 0 9px;color:#403a33}#step-explainer p{font-size:14px;line-height:1.45;color:#655d51}#step-explainer>i{height:2px;margin-top:13px;background:#e4dfd3}#step-explainer>i>b{background:#9a8a73}#viewport[data-explaining="true"] #camera{filter:blur(.8px) saturate(.94)}#number{display:none}@media(max-width:500px){#step-explainer{width:min(260px,80%);padding:14px 16px}#step-explainer h2{font-size:17px}#step-explainer p{font-size:13px}}

/* The Studio site keeps the native product palettes in its preview chrome. */
body[data-kind=ja][data-display="3"] .film-topbar,body[data-kind=ja][data-display="3"] footer{background:#eef4e9;color:#476c54;border-color:#d1decc}body[data-kind=handoff][data-display="3"] .film-topbar,body[data-kind=handoff][data-display="3"] footer{background:#f8f7f1;color:#635b52;border-color:#dedbd0}body[data-kind=comp][data-display="3"] .film-topbar,body[data-kind=comp][data-display="3"] footer{background:#f0e8f5;color:#826596;border-color:#ddcde7}

body[data-kind=autonomy][data-display="3"] .film-topbar,body[data-kind=autonomy][data-display="3"] footer{background:#322b43;border-color:#584960;color:#e8dfed}body[data-kind=autonomy][data-display="3"] .film-status{color:#c3afce}
/* A warmer, more legible callout with a drawn connection to its source. */
#step-explainer{background:linear-gradient(130deg,#fffdf4 8%,#f7e5ce 65%,#efd0bb);border:1px solid #b99b7b;border-top:3px solid #ba8862;color:#362b26;box-shadow:0 12px 28px #33251d40,0 2px 5px #33251d26;padding:18px 20px;border-radius:11px;z-index:8}#step-explainer h2{color:#342922;font-size:20px;line-height:1.15}#step-explainer p{color:#5b493b;font-size:14px;line-height:1.45}#step-explainer>i{height:3px;background:#d6b99d}#step-explainer>i>b{background:linear-gradient(90deg,#906b4b,#b78161);animation-duration:var(--caption-hold,4500ms)}#caption-connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:7;opacity:0;overflow:visible;transition:opacity .35s}#caption-connector path{fill:none;stroke-linejoin:round;stroke-linecap:round}#caption-connector .leader-halo{stroke:#fff9ed;stroke-width:5}#caption-connector .leader-line{stroke:#886147;stroke-width:1.8;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .7s cubic-bezier(.2,.7,.2,1)}#caption-connector circle{fill:#c18c65;stroke:#fff6e5;stroke-width:2;filter:drop-shadow(0 0 3px #75513755)}#viewport[data-explaining=true] #caption-connector{opacity:1}#viewport[data-explaining=true] #caption-connector .leader-line{stroke-dashoffset:0}#viewport[data-explaining=true] #camera{filter:blur(1px) saturate(.82) brightness(.96)}@media(max-width:500px){#step-explainer{padding:14px 16px}#step-explainer h2{font-size:17px}#step-explainer p{font-size:13px}}@media(prefers-reduced-motion:reduce){#caption-connector .leader-line{transition:none;stroke-dashoffset:0}}

/* Three compact off-white caption treatments. The attached connector ends beneath the card. */
#step-explainer{width:min(244px,78%);padding:14px 16px;border:1px solid #d5cbbb;border-top-width:1px;border-radius:11px;background:linear-gradient(135deg,#fffdf6,#f5f1e7);box-shadow:0 8px 22px #4d402425,0 1px 3px #4d402415;color:#443c33;transform-origin:50% 50%}#step-explainer h2{font-size:17px;line-height:1.15;margin-bottom:7px;color:#493f34}#step-explainer p{font-size:12px;line-height:1.4;color:#7d705f;margin:0}#step-explainer>i{height:2px;margin-top:11px;background:#dfd8ca}#step-explainer>i>b{background:#a89b83}#caption-connector{z-index:7}#caption-connector .leader-halo{display:none}#caption-connector .leader-line{stroke:#c4b49a;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#caption-connector circle{fill:#c4b49a;stroke:#fffdf6;stroke-width:1.5;filter:none}#viewport[data-explaining=true] #camera{filter:blur(.7px) saturate(.9)}
body[data-popout="2"] #step-explainer{width:min(430px,86%);padding:13px 18px;border-radius:10px;border-color:#cfc8b8;background:#faf7ef;box-shadow:0 7px 24px #3d352a1f}body[data-popout="2"] #step-explainer h2{font-size:16px;margin-bottom:5px}body[data-popout="2"] #step-explainer p{font-size:12px;line-height:1.35}body[data-popout="2"] #step-explainer>i{margin-top:9px}body[data-popout="2"] #caption-connector path{display:none}body[data-popout="2"] #caption-connector circle{fill:#fffbef40;stroke:#b9a989;stroke-width:2.5}body[data-popout="2"] #viewport[data-explaining=true] #camera{filter:blur(.3px) saturate(.95)}
body[data-popout="3"] #step-explainer{width:min(215px,72%);border-radius:8px;padding:11px 13px;background:#fffdf5;box-shadow:0 4px 15px #493c2626;border-color:#cfc3ae}body[data-popout="3"] #step-explainer h2{font-size:15px;line-height:1.15;margin-bottom:5px}body[data-popout="3"] #step-explainer p{font-size:11px;line-height:1.35}body[data-popout="3"] #step-explainer>i{margin-top:8px}body[data-popout="3"] #caption-connector path{display:none}body[data-popout="3"] #caption-connector circle{fill:none;stroke:#c4b49a;stroke-width:2}body[data-popout="3"] #step-explainer:before{content:'';position:absolute;top:var(--tail-y,25px);width:8px;height:8px;background:#fffdf5;border:1px solid #cfc3ae;transform:translateY(-50%) rotate(45deg);z-index:-1}body[data-popout="3"] #step-explainer[data-side=right]:before{left:-5px;border-right:0;border-top:0}body[data-popout="3"] #step-explainer[data-side=left]:before{right:-5px;border-left:0;border-bottom:0}
@media(max-height:330px){#step-explainer{padding:11px 13px;width:min(230px,78%)}#step-explainer h2{font-size:15px}#step-explainer p{font-size:11px;line-height:1.3}#step-explainer>i{margin-top:8px}}@media(max-width:500px){#step-explainer{padding:12px 14px}#step-explainer h2{font-size:16px}#step-explainer p{font-size:12px}}
/* Focus labels use an element-anchored spotlight; the subject remains sharp and readable. */
body[data-popout="3"] #caption-connector circle{fill:#fff8df0a;stroke:#bda67a;stroke-width:2.5;filter:drop-shadow(0 1px 1px #fffdf4);vector-effect:non-scaling-stroke}body[data-popout="3"] #viewport[data-explaining=true] #camera{filter:none}body[data-popout="3"] #step-explainer{background:#fffdf6;box-shadow:0 5px 16px #493c2626}body[data-popout="3"] #step-explainer:before{display:none}
/* Quiet floating guidance: the popup itself carries the emphasis. */
body[data-popout="3"] #caption-connector{display:none}
body[data-popout="3"] #step-explainer{background:#fffdf6;border:1px solid #c8b4d7;border-radius:10px;box-shadow:0 6px 18px #30213d24,0 0 0 1px #b79acd24,0 0 19px #a276cc59,0 0 38px #9c6bc92b;transform:translateY(8px) scale(.98);transition:opacity .45s cubic-bezier(.22,.75,.2,1),transform .45s cubic-bezier(.22,.75,.2,1),visibility .45s}
body[data-popout="3"] #step-explainer.on{transform:translateY(0) scale(1)}
body[data-popout="3"] #step-explainer h2{color:#4d3a5b}
body[data-popout="3"] #step-explainer p{color:#76677b}
body[data-popout="3"] #step-explainer>i{background:#e5dce8}
body[data-popout="3"] #step-explainer>i>b{background:linear-gradient(90deg,#b29ac7,#87609e)}
@media(prefers-reduced-motion:reduce){body[data-popout="3"] #step-explainer{transition:none;transform:none}body[data-popout="3"] #step-explainer.on{transform:none}}

/* One camera scale, with slow pans and compact folio chrome. */
body[data-calm=true] #camera{transition-duration:1200ms;transition-timing-function:cubic-bezier(.22,.65,.25,1)}
body[data-compact=true] #film{grid-template-rows:35px minmax(0,1fr) 37px}body[data-compact=true] .film-topbar{height:35px;padding:0 14px}body[data-compact=true] .film-brand img{width:95px}body[data-compact=true] .film-brand strong{font-size:11px}body[data-compact=true] .film-status{font-size:7px}body[data-compact=true] .caption{padding:7px 14px}body[data-compact=true] .caption>strong{font-size:12px}body[data-compact=true] .caption>small{font-size:8px}

/* Hold the same composition from the first cursor move through the caption. */
#camera,body[data-calm=true] #camera{transition:transform 1500ms cubic-bezier(.25,.1,.25,1)}
/* Keep the actual pointer visible while a compact guidance label is on screen. */
#viewport[data-explaining=true] #cursor{opacity:1}

/* Compact captions lead; the workspace softens just enough to separate the text. */
body[data-popout="3"] #viewport[data-explaining=true] #camera{filter:blur(1.1px) saturate(.94);transition:transform 1500ms cubic-bezier(.25,.1,.25,1),filter .3s ease}
#camera{transition:transform 1500ms cubic-bezier(.25,.1,.25,1),filter .3s ease}
#drag-ghost{position:absolute;z-index:50;pointer-events:none;padding:12px 18px;color:#4c6a55;background:#f5fbf1e8;border:2px dashed #73947e;border-radius:7px;box-shadow:0 8px 16px #3e51432b;font-size:16px;white-space:nowrap}#drag-ghost[hidden]{display:none}#cursor .grab-cursor{display:none}#cursor[data-mode=grab]>svg:first-child,#cursor[data-mode=grabbing]>svg:first-child{display:none}#cursor[data-mode=grab] .grab-cursor,#cursor[data-mode=grabbing] .grab-cursor{display:block}#cursor[data-mode=grabbing]{transform:rotate(-9deg) scale(.95)}#cursor[data-mode=grab],#cursor[data-mode=grabbing]{filter:drop-shadow(0 3px 4px #21152a88)}
body[data-kind=autonomy] #film{border:2px solid #ae93c6;border-radius:12px;overflow:hidden}body[data-kind=autonomy] #viewport{border-inline:1px solid #9a81b1}
body[data-popout="3"] #step-explainer{transition:opacity .45s ease,transform .55s cubic-bezier(.2,.7,.2,1)}

/* The reading hold and both progress bars share the same duration. */
#step-explainer.on>i>b{animation-duration:var(--caption-hold,4500ms)}
body[data-kind=autonomy],body[data-kind=autonomy] #film,body[data-kind=autonomy] #viewport,body[data-kind=autonomy] #camera,body[data-kind=autonomy] #workspace{background:#211a31}
body[data-kind=autonomy] #film{border-radius:0;border:0}body[data-kind=autonomy] #viewport{border:0}

/* One border belongs to the outer site card; the actual film has no second rounded inset. */
body[data-display] #film,body[data-kind=autonomy] #film{border:0!important;border-radius:0!important;box-shadow:none!important}
#viewport,body[data-kind=autonomy] #viewport{border:0!important;border-radius:0!important}
#workspace{border:0!important;border-radius:0!important}#camera{border:0;border-radius:0;overflow:visible}

/* Start on the real, white career structure; midnight arrives with the integrated workspace. */
body[data-kind=autonomy][data-autonomy-phase=human],body[data-kind=autonomy][data-autonomy-phase=human] :is(#film,#viewport,#camera,#workspace){background:#fff!important}
body[data-kind=autonomy][data-autonomy-phase=human] :is(.film-topbar,footer){background:#fff;color:#476c54;border-color:#d9e3d7}
body[data-kind=autonomy][data-autonomy-phase=human] .film-brand img{filter:none;opacity:1}
body[data-kind=autonomy][data-autonomy-phase=human] .film-brand .divider{background:#d6dfd1}
body[data-kind=autonomy][data-autonomy-phase=human] :is(.film-status,.caption small){color:#7b8f80}
body[data-kind=autonomy][data-autonomy-phase=human] .progress{background:#e4ebe1}
#fade[data-theme-shift=true]{background:#211a31;transition:opacity .5s ease;z-index:9}#fade[data-theme-shift=true].on{opacity:1}
@media(prefers-reduced-motion:reduce){#fade[data-theme-shift=true]{transition:none}}
/* The initial human-architecture frame is the first visible content, never the loading hub. */
body[data-kind=autonomy]:not([data-ready]) #camera,body[data-kind=autonomy]:not([data-ready]) #cursor{visibility:hidden}

/* Centered pause: one calm off-white caption above a lightly softened workspace. */
body[data-popout="5"] #step-explainer{width:min(440px,65%);max-width:calc(100% - 24px);padding:24px 28px;border:1px solid #d4c6dc;border-radius:13px;background:#fffdf7;color:#4c3127;text-align:center;box-shadow:0 10px 30px #30213d24,0 0 25px #a276cc36;transform:translateY(8px) scale(.98);transition:opacity .4s ease,transform .5s cubic-bezier(.2,.7,.2,1),visibility .4s}
body[data-popout="5"] #step-explainer.on{transform:translateY(0) scale(1)}
body[data-popout="5"] #step-explainer h2{font-size:clamp(18px,2vw,23px);font-weight:500;line-height:1.15;letter-spacing:-.025em;color:#4c3127;margin:0 0 9px}
body[data-popout="5"] #step-explainer p{font-size:clamp(12px,1.3vw,15px);line-height:1.5;color:#6a5965;margin:0}
body[data-popout="5"] #step-explainer small,body[data-popout="5"] #caption-connector,body[data-popout="5"] #step-explainer:before{display:none}
body[data-popout="5"] #step-explainer>i{max-width:140px;height:2px;margin:16px auto 0;background:#e5dce8;border-radius:2px}
body[data-popout="5"] #step-explainer>i>b{background:linear-gradient(90deg,#b29ac7,#87609e)}
body[data-popout="5"] #viewport[data-explaining=true] #camera{filter:blur(1.1px) saturate(.94);transition:transform 1500ms cubic-bezier(.25,.1,.25,1),filter .3s ease}
body[data-popout="5"] #viewport[data-explaining=true] #cursor{opacity:1}
@media(max-width:500px){body[data-popout="5"] #step-explainer{padding:18px 19px}body[data-popout="5"] #step-explainer h2{font-size:18px}body[data-popout="5"] #step-explainer p{font-size:12px}}
@media(prefers-reduced-motion:reduce){body[data-popout="5"] #step-explainer{transition:none;transform:none}body[data-popout="5"] #step-explainer.on{transform:none}}

/* Restart on the last real frame, with a light neutral wash rather than a blank app. */
#film-reset-hold{position:absolute;inset:0;z-index:7;overflow:hidden;pointer-events:none;opacity:1;transition:opacity .28s ease;background:transparent}
#film-reset-hold>iframe{position:absolute;left:0;top:0;border:0;transform-origin:0 0;pointer-events:none;opacity:0}
#film-reset-hold.loaded>iframe{opacity:1}
#film-reset-hold.leaving{opacity:0}
#film-reset-hold[data-content=loading]{display:grid;place-items:center;background:#f8f8f5}
.film-loading-note{text-align:center;color:#81766d;font-size:12px;letter-spacing:.015em}
.film-loading-note>span{display:block;width:96px;height:2px;margin:0 auto 14px;background:linear-gradient(90deg,#d9ddd5,#b8a4c8,#d9ddd5);background-size:200% 100%;animation:film-prepare 1.7s ease infinite}
.film-loading-note>p{margin:0}
#viewport[data-initializing=true] #camera,#viewport[data-initializing=true] #cursor,#viewport[data-resetting=true] #camera,#viewport[data-resetting=true] #cursor{visibility:hidden}
#fade{z-index:8}#fade:not([data-theme-shift=true]).on{opacity:.38}
@keyframes film-prepare{to{background-position:200% 0}}
@media(prefers-reduced-motion:reduce){#film-reset-hold{transition:none}.film-loading-note>span{animation:none}}

/* Caption dismissal comes from the native scene clock, never a separate timeout. */
#viewport[data-caption-paused=true] #step-explainer>i>b{animation-play-state:paused!important}
#step-explainer[data-complete=true]>i>b{animation:none!important;width:100%}

/* The carousel shares its presentation chrome with Design & Deploy. */
body[data-case-palette="design"]{--case-start:#fff4e8;--case-wash:#f4dbce;--case-edge:#d6b8a7;--case-ink:#63483e;--case-accent:#a67b65}
body[data-case-palette="deploy"]{--case-start:#fcfcf3;--case-wash:#dceee2;--case-edge:#b5cbbd;--case-ink:#466550;--case-accent:#7fa68b}
body[data-case-palette][data-display="3"] :is(.film-topbar,footer){background:linear-gradient(120deg,var(--case-start),var(--case-wash));border-color:var(--case-edge);color:var(--case-ink)}
body[data-case-palette] .film-status,body[data-case-palette] .caption small{color:var(--case-ink);opacity:.75}
body[data-case-palette] .film-status i{background:var(--case-accent)}
body[data-case-palette] .progress{background:var(--case-edge)}
body[data-case-palette] .progress i{background:linear-gradient(90deg,var(--case-edge),var(--case-accent))}
body[data-case-palette][data-popout="5"] #step-explainer{border-color:var(--case-edge);box-shadow:0 10px 30px #4d352f24,0 0 22px #4d352f0b}
body[data-case-palette][data-popout="5"] #step-explainer>i{background:var(--case-edge)}
body[data-case-palette][data-popout="5"] #step-explainer>i>b{background:var(--case-accent)}

/* The same cream chrome as the Design & Deploy workspace preview. */
body[data-case-palette="cream"]{--case-start:#f8f7f1;--case-wash:#f8f7f1;--case-edge:#dedbd0;--case-ink:#635b52;--case-accent:#a48eaf}
body[data-case-palette="cream"][data-display="3"] :is(.film-topbar,footer){background:#f8f7f1;border-color:#dedbd0;color:#635b52}
body[data-case-palette="cream"] .progress i{background:linear-gradient(90deg,#96c1a1,#ac8bc0)}

.film-expand{display:none}
@media(max-width:700px){
 body[data-display="3"] #film{border:0;border-radius:0}
 body[data-display="3"] .film-topbar,body[data-compact=true] .film-topbar{height:38px;min-height:38px;padding:0 10px;gap:8px}
 .film-brand{gap:8px;flex:1}.film-brand img,body[data-compact=true] .film-brand img{width:70px}.film-brand .divider{height:14px}.film-brand strong,body[data-compact=true] .film-brand strong{font-size:10px;line-height:1.2}
 .film-expand{display:block;border:1px solid #b9a9c4;border-radius:5px;background:#fffdf8;color:#6a5079;font:10px/1.2 Arial,sans-serif;padding:6px 8px;cursor:pointer;flex:none}
 body[data-kind=autonomy] .film-expand{background:#443751;color:#f0e5f5;border-color:#867094}
 .film-expand:focus-visible{outline:2px solid #b196c3;outline-offset:2px}
 #cursor{width:24px;height:31px}
 body[data-popout="5"] #step-explainer{width:calc(100% - 36px);max-width:360px;padding:16px 18px;border-radius:11px}
 body[data-popout="5"] #step-explainer h2{font-size:17px;line-height:1.2;margin-bottom:8px}
 body[data-popout="5"] #step-explainer p{font-size:12px;line-height:1.45}
 body[data-popout="5"] #step-explainer>i{margin-top:12px}
 body[data-display="3"] footer{padding:0 10px 10px;min-height:0}
 body[data-compact=true] .caption{padding:0}
 body[data-compact=true] .caption>strong,.caption strong{font-size:10px;line-height:1.3}
 .progress{margin:0 -10px 8px}
}
@media(max-width:700px){
 body:not(:has(.preview-dialog)) #viewport{touch-action:pan-y pinch-zoom}
 body[data-popout="5"] #step-explainer{width:min(280px,80%);padding:13px 14px;border-radius:10px}
 body[data-popout="5"] #step-explainer h2{font-size:15px;line-height:1.2;margin-bottom:7px}
 body[data-popout="5"] #step-explainer p{font-size:11.5px;line-height:1.4}
 body[data-popout="5"] #step-explainer>i{margin-top:10px}
}

/* Compact full-screen icon on phone previews. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){.film-expand{display:grid;place-items:center;width:28px;height:28px;padding:5px;border:0;background:transparent}.film-expand svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}body:has(.film-expand) #viewport{cursor:zoom-in}}

/* The native workspace owns the branding in a rotated full-screen preview. */
body[data-expanded=true][data-expanded-orientation=landscape] #film{border:0;border-radius:0}
body[data-expanded=true][data-expanded-orientation=landscape] .film-topbar{display:none}
body[data-expanded=true][data-expanded-orientation=landscape] footer{padding:0 10px 6px;min-height:0}
body[data-expanded=true][data-expanded-orientation=landscape] .progress{height:2px;margin:0 -10px 5px}
body[data-expanded=true][data-expanded-orientation=landscape] .caption{padding:0;gap:0}
body[data-expanded=true][data-expanded-orientation=landscape] .caption strong{font-size:10px;line-height:1.2}
body[data-expanded=true][data-expanded-orientation=landscape] .caption small{display:none}

.film-footer small,.film-caption small{color:#625d54!important;font-size:12px!important}.film-footer strong{color:#4c463d!important}

/* Combined review palette: readable purple accents on white preview chrome. */
.film-topbar,#film .film-topbar,.film-footer,#film .film-footer{background:#faf7fd!important;border-color:#e2d6eb!important;color:#78518d!important}.film-brand strong,.film-footer strong{color:#6e4c80!important}.film-status{color:#876b99!important}.film-status i{background:#a684bc!important}#film{border-color:#e2d6eb!important;background:#fff!important}#r172-card{background:linear-gradient(135deg,#fff,#f8f2fc)!important}#r172-card h2{color:#50382f!important}