/* V10 — editor chrome and a closing 3D cube. Final confirmation retains the editor geometry. */
.creation-lab{container-type:inline-size;position:relative;isolation:isolate;width:100%;max-width:1050px;margin:0 auto;padding:28px 28px 17px;border:1px solid #ffffff26;border-radius:26px;background:#09090b;color:#fff;box-shadow:0 24px 80px #0004,inset 0 1px 0 #ffffff06;scroll-margin-top:110px;--reveal:0;--charge:0}
.lab-stage{position:relative;height:clamp(360px,48.4cqw,490px);margin:0;perspective:1400px;isolation:isolate}
.lab-atmosphere{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 50% 52%,#14264470,transparent 69%);pointer-events:none}
.lab-world{position:absolute;width:86%;left:7%;top:0;border:1px solid #ffffff24;border-radius:16px;overflow:clip;background:#080a0e;opacity:.2;filter:blur(1px);transform:scale(.97);transition:opacity .65s,filter .65s,transform .8s var(--ease);box-shadow:0 28px 55px #0005}
.lab-world-canvas{position:relative;width:100%;aspect-ratio:16/9;overflow:clip;isolation:isolate}
.lab-wireframe{position:absolute;inset:0;width:100%;height:100%;opacity:calc(1 - var(--reveal));background:radial-gradient(ellipse at center,#12253b,#080a0f 75%)}
.lab-world-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;clip-path:circle(calc(var(--reveal)*100%) at 50% 48%);filter:blur(calc((1 - var(--reveal))*8px));transform:scale(calc(1.035 - var(--reveal)*.035));will-change:clip-path,filter}
.lab-reveal-ring{position:absolute;width:calc(var(--reveal)*200%);aspect-ratio:1;top:48%;left:50%;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #d6ebff99;box-shadow:0 0 30px #7bafff88,inset 0 0 40px #89bcff88;opacity:0;pointer-events:none}
.lab-energy{position:absolute;left:50%;top:48%;width:16%;aspect-ratio:1;transform:translate(-50%,-50%) scale(calc(.15 + var(--charge)*.85));border-radius:50%;opacity:0;filter:blur(1px);mix-blend-mode:screen;pointer-events:none;background:radial-gradient(circle,#fff 0,#c7e4ff 2%,#8dc7ff77 13%,#146fff22 35%,transparent 66%);box-shadow:0 0 100px #1875ff33}
.lab-energy i{position:absolute;inset:14%;border-radius:50%;background:conic-gradient(from 0deg,transparent,#b7dcffbb,transparent 32%,#a3ceff,transparent 66%,#fff);mask-image:radial-gradient(circle,transparent 52%,#000 60%,transparent 71%);animation:lab-orbit 2.2s linear infinite}
.lab-energy i:nth-child(2){inset:-10%;transform:rotateX(65deg) rotate(-35deg);animation-duration:1.7s;animation-direction:reverse;opacity:.6}
.lab-energy i:nth-child(3){inset:-40%;animation-duration:3.5s;opacity:.35}
.lab-burst{position:absolute;inset:-15%;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,#fff 0%,#e3f0ffbb 13%,#7bbcff33 35%,transparent 65%);mix-blend-mode:screen}
.creation-lab:is([data-phase="generating"],[data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-world{opacity:1;filter:none;transform:none}
.creation-lab[data-phase="generating"] .lab-energy{opacity:calc(1 - var(--reveal)*1.8)}
.creation-lab[data-phase="generating"] .lab-reveal-ring{opacity:calc(1 - var(--reveal))}
.creation-lab.is-burst .lab-burst{animation:lab-flash .85s ease-out both}
.lab-composer{position:absolute;left:22%;width:56%;top:40%;z-index:4;padding:24px;border:1px solid #ffffff3d;border-radius:20px;background:linear-gradient(135deg,#2c2d31ed,#141517f7);box-shadow:0 26px 70px #0008,inset 0 1px 0 #ffffff22;backdrop-filter:blur(24px);transition:opacity .5s,transform .65s var(--ease),box-shadow .5s}
.lab-attachments{display:flex;align-items:center;gap:8px;min-height:42px;margin-bottom:17px}
.lab-attachment{display:inline-flex;align-items:center;gap:6px;max-width:60%;padding:6px;border:1px solid #ffffff24;border-radius:8px;font-size:10px;color:#d4d7dd;background:#ffffff06;opacity:0;transform:translateY(8px);transition:opacity .35s,transform .5s var(--ease)}
.lab-attachment img{width:26px;height:26px;border-radius:5px;object-fit:cover}.lab-attachment>svg{width:17px;height:17px;flex:none;color:#b7c8df}.lab-attachment>svg:last-child{width:12px;height:12px;color:#91c0ff}.lab-attachment span{white-space:nowrap}
#lab-prompt{display:block;width:100%;padding:0;margin:0;color:#f7f8fa;font:400 clamp(20px,2.6cqw,26px)/1.35 DM,Arial,sans-serif;letter-spacing:-.03em;min-height:2.8em;user-select:none;-webkit-user-select:none;cursor:default;pointer-events:none}
#lab-prompt[data-empty="true"]{color:#969ba5}
.lab-composer-footer{display:flex;align-items:center;justify-content:space-between;margin-top:17px}.lab-composer-mark{width:23px;height:23px;color:#b6c2d3}
#lab-send{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#fff;color:#111;transition:opacity .3s,transform .3s,background .3s}#lab-send svg{width:20px;height:20px}#lab-send:disabled{opacity:.2;cursor:default}#lab-send:not(:disabled):hover{transform:scale(1.1);background:#d4e7ff}
.lab-file{position:absolute;z-index:5;transform-origin:center;border:1px solid #ffffff4d;border-radius:17px;background:linear-gradient(135deg,#343539e8,#17181ceb);color:#fff;backdrop-filter:blur(24px);box-shadow:0 20px 60px #0008,inset 0 1px 0 #ffffff26;text-align:left;padding:0;transition:border-color .3s,box-shadow .3s,scale .3s}
.lab-file:hover,.lab-file:focus-visible{border-color:#a9caff;box-shadow:0 25px 65px #0009,0 0 30px #1674ff30;scale:1.035}
.lab-video-file{width:25%;left:5%;top:4%;transform:rotate(-7deg)}
.lab-video-still{position:relative;display:block;margin:7px;aspect-ratio:16/10;overflow:hidden;border-radius:11px}.lab-video-still>img{width:100%;height:100%;object-fit:cover;filter:saturate(.75)}
.lab-video-still>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:41px;height:41px;border:1px solid #ffffff80;border-radius:50%;background:#111b;backdrop-filter:blur(8px)}.lab-video-still svg{width:18px;height:18px;fill:none}
.lab-file-name{display:flex;align-items:center;gap:7px;padding:15px 12px;font-size:12px;letter-spacing:-.02em;white-space:nowrap}.lab-file-name svg{width:14px;height:14px;flex:none}
.lab-document-file{width:22%;right:5%;top:7%;padding:22px;transform:rotate(7deg)}.lab-document-file>svg{width:23px;height:23px;color:#b4c0cf}.lab-document-file strong{display:block;font-size:clamp(19px,2.4cqw,25px);line-height:1.1;letter-spacing:-.035em;margin-top:20px}
.lab-paper-lines{display:block;margin:21px 0 12px}.lab-paper-lines i{display:block;height:2px;background:#ffffff27;margin-top:8px}.lab-paper-lines i:nth-child(2){width:88%}.lab-paper-lines i:last-child{width:62%}.lab-document-file .lab-file-name{padding:8px 0 0;color:#b9c0ca;font-size:11px}
.lab-file-add{position:absolute;top:17px;right:16px;display:grid;place-items:center;width:26px;height:26px;border:1px solid #ffffff70;border-radius:50%;background:#ffffff0c}.lab-file-add svg{width:13px;height:13px}
.creation-lab[data-phase="empty"] .lab-file{animation:lab-float 4.6s ease-in-out infinite}.creation-lab[data-phase="empty"] .lab-document-file{animation-delay:-2.3s}
.creation-lab[data-phase="empty"] :is(.lab-video-still>span,.lab-file-add):after{content:'';position:absolute;inset:-1px;border:1px solid #c2ddff;border-radius:50%;animation:lab-pulse 2.2s ease-out infinite;pointer-events:none}.creation-lab[data-phase="empty"] .lab-file-add:after{animation-delay:1.1s}
.creation-lab[data-phase="uploading"] .lab-file{pointer-events:none}
.creation-lab:not([data-phase="empty"]):not([data-phase="uploading"]) .lab-file{visibility:hidden;pointer-events:none}
.creation-lab[data-phase="ready"] .lab-attachment,.creation-lab[data-phase="generating"] .lab-attachment{opacity:1;transform:none}
.creation-lab[data-phase="ready"] .lab-composer{transform:translateY(-8px);box-shadow:0 25px 70px #0008,0 0 55px #1674ff12,inset 0 1px 0 #ffffff26}
.creation-lab:is([data-phase="generating"],[data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-composer{opacity:0;transform:translateY(45px) scale(.97);pointer-events:none;visibility:hidden;transition:opacity .4s,transform .6s var(--ease),visibility 0s .6s}
.lab-hotspot{position:absolute;display:flex;align-items:center;z-index:5;padding:0;opacity:0;visibility:hidden;transform:scale(.6);transition:opacity .4s,transform .5s var(--ease),visibility .4s}
.lab-hotspot>svg{width:18px;height:18px;padding:9px;box-sizing:content-box;border-radius:50%;color:#fff;background:#0a1426d9;border:1px solid #ffffffb3;box-shadow:0 0 0 6px #165dbe20,0 8px 25px #0003;backdrop-filter:blur(12px);transition:background .25s,transform .3s}
.lab-hotspot>span{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);background:#10151def;color:#fff;padding:7px 10px;border:1px solid #ffffff30;border-radius:8px;font-size:12px;white-space:nowrap;opacity:0;transition:opacity .25s;pointer-events:none}
.lab-hotspot:hover>span,.lab-hotspot:focus-visible>span{opacity:1}.lab-hotspot:hover>svg,.lab-hotspot[aria-pressed="true"]>svg{background:#096aff;transform:scale(1.1)}
.lab-hotspot[data-object="door"]{left:22%;top:34%}.lab-hotspot[data-object="extinguisher"]{left:59%;top:70%}
.creation-lab[data-phase="editing"] .lab-hotspot{opacity:1;visibility:visible;transform:none}.creation-lab[data-phase="editing"]:not([data-edited]) .lab-hotspot>svg{animation:lab-hotspot-pulse 2s ease-in-out infinite}
.lab-door-colour{position:absolute;inset:0;width:100%;height:100%;mix-blend-mode:color;opacity:0;pointer-events:none;transition:opacity .65s}.creation-lab[data-door="red"] .lab-door-colour{opacity:.95}
.lab-equipment-halo{position:absolute;left:56.5%;top:66%;width:9%;height:23%;border:3px solid #096aff;border-radius:50%;box-shadow:0 0 0 8px #146eff20,0 0 35px #176fff55;opacity:0;transform:scale(.8);transition:transform .6s var(--ease),opacity .4s;pointer-events:none}.creation-lab[data-equipment="highlight"] .lab-equipment-halo{opacity:1;transform:none}
.lab-guidance{position:relative;z-index:10;padding-top:15px;text-align:center}
.lab-heading{position:relative;display:flex;align-items:center;justify-content:center;gap:13px;margin:0;font-size:clamp(28px,3.3cqw,35px);line-height:1.2;letter-spacing:-.045em}
#lab-action{display:inline-flex;align-items:center;justify-content:center;gap:13px;max-width:100%;padding:5px 8px;font-size:inherit;font-weight:600;line-height:inherit;letter-spacing:inherit;color:#fff;transition:color .25s}#lab-action:disabled{cursor:default}.creation-lab[data-phase="published"] #lab-action:disabled{cursor:default}
.lab-action-orb{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border:1px solid #ffffff60;border-radius:50%;background:#ffffff08;transition:background .3s,transform .3s}.lab-action-orb svg{width:15px;height:15px;stroke-width:1.7}#lab-action:not(:disabled):hover .lab-action-orb{background:#126eff;transform:translateX(3px)}
.lab-step-check{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#fff;color:#111;flex:none;opacity:0;position:relative;margin-right:-42px;pointer-events:none}.lab-step-check svg{width:19px;height:19px;stroke-width:2.2}.lab-step-check path{stroke-dasharray:24;stroke-dashoffset:24}.creation-lab.is-step-complete .lab-step-check{animation:lab-check-pop 1.4s var(--ease) both}.creation-lab.is-step-complete .lab-step-check path{animation:lab-check-draw .4s .15s ease-out forwards}
.lab-hint{display:flex;align-items:center;justify-content:center;gap:8px;min-height:1.5em;margin:10px 0 23px;color:#a9b1bd;font-size:14px;line-height:1.5;letter-spacing:0}.lab-hint-dot{width:5px;height:5px;background:#83b8ff;border-radius:50%;flex:none}.creation-lab[data-phase="empty"] .lab-hint-dot{animation:lab-dot 2.2s ease-in-out infinite}
.lab-progress{display:grid;grid-template-columns:repeat(4,1fr);max-width:620px;padding:0;margin:0 auto;list-style:none;gap:0}.lab-progress li{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 6px;border-top:1px solid #ffffff20;color:#747d8c;font-size:12px;line-height:1.3;transition:color .35s,border-color .35s}.lab-progress li.is-current{color:#fff;border-color:#8bbaff}.lab-progress li.is-complete{color:#c5d1df;border-color:#63768f}
.lab-step-badge{position:relative;display:grid;place-items:center;width:22px;height:22px;flex:none;border:1px solid #ffffff26;border-radius:50%;font-size:10px;line-height:1}.lab-progress li.is-current .lab-step-badge{background:#126eff;border-color:#126eff;color:#fff}.lab-step-badge svg{display:none;width:12px;height:12px}.lab-progress li.is-complete .lab-step-badge{background:#dceaff;color:#122642;border-color:#dceaff}.lab-progress li.is-complete .lab-step-badge>span{display:none}.lab-progress li.is-complete .lab-step-badge svg{display:block;animation:lab-pop .35s var(--ease) both}
.lab-footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:12px;border-top:1px solid #ffffff0c;color:#828d9d;font-size:11px;line-height:1.5}.lab-footer button{display:flex;align-items:center;gap:7px;color:#b6c2d2;font-size:inherit;padding:6px 0}.lab-footer svg{width:14px;height:14px}.creation-lab[data-phase="empty"] .lab-footer button{visibility:hidden}
@keyframes lab-orbit{to{rotate:360deg}}@keyframes lab-flash{0%{opacity:0;transform:scale(.25)}25%{opacity:.85}100%{opacity:0;transform:scale(1.3)}}@keyframes lab-pop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes lab-float{0%,100%{translate:0 0}50%{translate:0 -7px}}@keyframes lab-pulse{0%{opacity:.85;scale:1}75%,100%{opacity:0;scale:1.75}}@keyframes lab-dot{0%,100%{opacity:.45}50%{opacity:1;box-shadow:0 0 0 4px #7eb7ff13}}@keyframes lab-hotspot-pulse{50%{box-shadow:0 0 0 10px #165dbe12,0 8px 25px #0003}}
@keyframes lab-check-pop{0%{opacity:0;transform:scale(.4)}18%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes lab-check-draw{to{stroke-dashoffset:0}}
@media(max-width:850px){
 .creation-lab{padding:24px 22px 15px}.lab-stage{height:380px}.lab-composer{left:15%;width:70%;top:40%;padding:20px}.lab-video-file{width:28%;left:3%;top:3%}.lab-document-file{width:25%;right:3%;top:4%;padding:19px}.lab-document-file strong{font-size:21px}.lab-file-name{font-size:11px;padding:13px 10px}.lab-world{width:96%;left:2%}.lab-heading{font-size:31px}
}
@media(max-width:650px){
 .creation-lab{padding:20px 16px 13px;border-radius:20px;scroll-margin-top:95px}.lab-stage{height:350px}.lab-world{width:100%;left:0;top:40px;border-radius:11px}.lab-composer{left:0;width:100%;top:154px;padding:16px;border-radius:14px}.lab-attachments{min-height:29px;gap:5px;margin-bottom:11px}.lab-attachment{font-size:8px;gap:4px;padding:5px;max-width:65%}.lab-attachment img{width:20px;height:20px}.lab-attachment>svg{width:12px;height:12px}.lab-attachment>svg:last-child{width:10px;height:10px}#lab-prompt{font-size:19px;height:3em}.lab-composer-footer{margin-top:11px}.lab-composer-mark{width:20px;height:20px}#lab-send{width:33px;height:33px}#lab-send svg{width:18px;height:18px}
 .lab-video-file{width:44%;left:1%;top:3%;border-radius:12px}.lab-video-still{margin:5px;border-radius:8px;aspect-ratio:16/9}.lab-video-still>span{width:30px;height:30px}.lab-video-still svg{width:14px;height:14px}.lab-file-name{font-size:9px;padding:11px 8px;gap:4px}.lab-file-name svg{width:12px;height:12px}.lab-document-file{width:41%;right:1%;top:2%;padding:14px 12px;border-radius:12px}.lab-document-file>svg{width:17px;height:17px}.lab-document-file strong{font-size:17px;margin-top:12px}.lab-paper-lines{margin:10px 0 7px}.lab-paper-lines i{margin-top:6px}.lab-paper-lines i:last-child{display:none}.lab-document-file .lab-file-name{font-size:9px;padding-top:4px}.lab-file-add{width:22px;height:22px;top:12px;right:11px}.lab-file-add svg{width:11px;height:11px}
 .creation-lab:is([data-phase="generating"],[data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-world{top:0}.creation-lab:is([data-phase="generating"],[data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-stage{height:calc(56.25cqw + 4px)}
 .lab-hotspot{padding:2px}.lab-hotspot>svg{width:14px;height:14px;padding:7px}.lab-hotspot>span{font-size:10px;padding:5px 7px}
 .lab-guidance{padding-top:12px}.lab-heading{font-size:clamp(23px,6vw,30px);gap:9px}#lab-action{gap:10px;padding-inline:0}.lab-action-orb{width:25px;height:25px;flex-basis:25px}.lab-action-orb svg{width:14px;height:14px}.lab-step-check{position:relative;left:auto;width:24px;height:24px;margin-right:-33px}.lab-step-check svg{width:16px;height:16px}.lab-hint{font-size:12px;margin:8px auto 20px;max-width:285px;min-height:3em}.lab-hint-dot{width:4px;height:4px}.lab-progress{gap:0}.lab-progress li{flex-direction:column;gap:8px;padding:11px 2px 6px;font-size:10px;white-space:nowrap}.lab-step-badge{width:21px;height:21px;font-size:10px}
}
@media(max-width:360px){
 .creation-lab{padding-inline:12px}.lab-stage{height:340px}.lab-composer{top:144px;padding:13px}.lab-attachment{font-size:7px;gap:3px}.lab-attachment>svg:last-child{display:none}#lab-prompt{font-size:17px;height:4.05em}.lab-file-name{font-size:8px;padding:10px 6px}.lab-file-name svg{width:10px;height:10px}.lab-document-file{padding:13px 10px}.lab-document-file strong{font-size:15px}.lab-document-file .lab-file-name{font-size:8px}.lab-file-add{width:20px;height:20px;right:9px}.lab-heading{font-size:23px}.lab-step-check{width:20px;height:20px;margin-right:-27px}.lab-hint{font-size:11px}.lab-progress li{font-size:9px}
}
html[data-motion="paused"] .creation-lab *,html[data-motion="paused"] .creation-lab *:before,html[data-motion="paused"] .creation-lab *:after{animation:none!important;transition:none!important}
html[data-motion="paused"] .creation-lab.is-step-complete .lab-step-check{opacity:1}html[data-motion="paused"] .creation-lab.is-step-complete .lab-step-check path{stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){.creation-lab *,.creation-lab *:before,.creation-lab *:after{animation:none!important;transition:none!important}.lab-world{transform:none}.creation-lab.is-step-complete .lab-step-check{opacity:1}.creation-lab.is-step-complete .lab-step-check path{stroke-dashoffset:0}}

/* Each file is a clear starting point, with an explicit click cue. */
.lab-file-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#a9ceff;font-size:11px;font-weight:600;line-height:1.3;letter-spacing:0;padding:0 12px 13px}
.lab-file-cta svg{width:14px;height:14px;flex:none;transition:transform .25s}
.lab-file:hover .lab-file-cta svg,.lab-file:focus-visible .lab-file-cta svg{transform:translateX(3px)}
.lab-video-file .lab-file-name{padding-bottom:8px}
.lab-document-file .lab-file-cta{padding:10px 0 0}
@media(max-width:650px){.lab-file-cta{font-size:9px;padding:0 8px 10px}.lab-file-cta svg{width:12px;height:12px}.lab-document-file .lab-file-cta{padding-top:8px}.lab-video-file .lab-file-name{padding-bottom:6px}.lab-document-file .lab-paper-lines{margin-block:8px 5px}.lab-document-file .lab-paper-lines i:nth-child(2){display:none}}
@media(max-width:360px){.lab-file-cta{font-size:8px;padding-inline:6px}.lab-file-cta svg{width:11px;height:11px}}



/* The task and its progress sit above the scene, in reading order. */
.lab-progress{margin:0 auto 22px;max-width:680px}
.lab-progress li{border-top:0;border-bottom:1px solid #ffffff20;padding:5px 6px 14px}
.lab-guidance{padding:0 0 12px}
.lab-hint{margin:8px auto 16px}
.lab-footer{justify-content:center;margin-top:4px;padding-top:6px;border:0}
.lab-footer button{padding:9px 15px;border-radius:100px;transition:background .2s,color .2s}
.lab-footer button:hover{background:#ffffff0a;color:#fff}
.creation-lab[data-phase="empty"] .lab-footer{display:none}
/* Hide the finished instruction without collapsing the space above the scene. */
.creation-lab[data-phase="published"] .lab-guidance{visibility:hidden;pointer-events:none}
.creation-lab[data-phase="published"] .lab-delivered{top:-80px}

/* Illustrative editor chrome. Only the two scene hotspots are editable. */
.lab-editor-toolbar,.lab-editor-sidebar{position:absolute;z-index:3;opacity:0;visibility:hidden;pointer-events:none;user-select:none;-webkit-user-select:none;transition:opacity .45s,transform .6s var(--ease),visibility .45s}
.lab-editor-toolbar{inset:0 0 auto;height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border:1px solid #ffffff16;border-radius:9px;background:#14171d;color:#d4dce8;font-size:10px;transform:translateY(-8px)}
.lab-editor-project,.lab-editor-view{display:flex;align-items:center;gap:9px}.lab-editor-project>svg{width:15px;height:15px;color:#74b1ff}.lab-editor-project>span{color:#7d899b}.lab-editor-view{color:#8997aa;font-size:9px}.lab-editor-view>svg{width:13px;height:13px}
.lab-editor-sidebar{top:48px;bottom:8px;width:135px;padding:14px 10px;border:1px solid #ffffff16;border-radius:9px;background:linear-gradient(160deg,#171b24,#10141c);font-size:10px;line-height:1.4;overflow:clip}
.lab-editor-scene{left:0;transform:translateX(-12px)}.lab-editor-properties{right:0;transform:translateX(12px)}
.lab-editor-panel-title{display:flex;align-items:center;justify-content:space-between;padding:0 3px 13px;border-bottom:1px solid #ffffff0d;margin-bottom:9px;color:#c3ccdb;font-weight:600;letter-spacing:.01em}.lab-editor-panel-title>svg{width:13px;height:13px;color:#8395ae}
.lab-editor-tree{display:grid;gap:5px}.lab-editor-tree-row{display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:5px;padding:7px 5px;color:#94a1b4;white-space:nowrap;font-size:9px}.lab-editor-tree-row>svg{width:13px;height:13px;flex:none}.lab-editor-tree-row:first-child{color:#d7e1f0}.lab-editor-tree-row:not(:first-child){padding-left:12px}
.lab-editor-assets{position:absolute;left:13px;right:13px;bottom:15px;color:#77869b;font-size:9px}.lab-editor-assets>div{display:flex;gap:6px;margin-top:9px}.lab-editor-assets svg{width:30px;height:30px;padding:7px;border:1px solid #ffffff12;border-radius:5px;background:#ffffff03;color:#91a4bf}
.lab-editor-properties>strong{display:block;margin:15px 3px;color:#bac7d9;font-size:10px;font-weight:500}.lab-editor-transform,.lab-editor-material,.lab-editor-behaviour{margin:16px 3px 0;color:#77869b;font-size:9px}.lab-editor-transform>span,.lab-editor-material>span,.lab-editor-behaviour>span{display:block;margin-bottom:8px}.lab-editor-transform>div{display:flex;align-items:center;gap:8px;margin:5px 0;padding:4px 6px;border:1px solid #ffffff0d;border-radius:4px;background:#090d1466}.lab-editor-transform i{font-size:8px;color:#7298c7;font-style:normal}.lab-editor-transform b{font-size:8px;font-weight:400;color:#8d9bb0}.lab-editor-swatches{display:flex;gap:7px}.lab-editor-swatches>i{width:20px;height:20px;border:2px solid #ffffff20;border-radius:5px;background:#1c6ee9}.lab-editor-swatches>i:nth-child(2){background:#d63a50}.lab-editor-swatches>i:last-child{background:#d9e2ef}.lab-editor-behaviour>strong{display:block;padding:6px;border:1px solid #ffffff0d;border-radius:4px;font-size:8px;font-weight:400;color:#95a7bf}
.creation-lab[data-selection="door"] [data-layer="door"],.creation-lab[data-selection="extinguisher"] [data-layer="extinguisher"]{background:#096aff25;border-color:#2577f23b;color:#c5ddff}
.creation-lab[data-door="red"] .lab-editor-swatches>i:nth-child(2){outline:1px solid #d3e6ff;outline-offset:2px}
.creation-lab[data-edited] .lab-editor-behaviour>strong{color:#b8d7ff;border-color:#2f72bd55;background:#096aff12}
.creation-lab[data-phase="editing"] :is(.lab-editor-toolbar,.lab-editor-sidebar){opacity:1;visibility:visible;transform:none}
.creation-lab:is([data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-stage{height:calc((100cqw - 300px)*.5625 + 64px);min-height:350px}
.creation-lab:is([data-phase="editing"],[data-phase="publishing"]) .lab-world{width:calc(100% - 300px);left:150px;top:48px;border-radius:10px}
.lab-world{transition:opacity .65s,filter .65s,transform .8s var(--ease),width .65s var(--ease),left .65s var(--ease),top .65s var(--ease)}
.creation-lab[data-phase="publishing"] :is(.lab-editor-toolbar,.lab-editor-sidebar){visibility:visible;animation:lab-editor-fold .35s ease-in both}
@keyframes lab-editor-fold{from{opacity:1;transform:none}to{opacity:0;transform:translateY(15px) scale(.96)}}

/* Publishing is an action on the scene, followed by a dimensional package. */
.lab-scene-tools{position:absolute;inset:0;z-index:8;pointer-events:none}
.lab-scene-publish[hidden],.lab-change-note[hidden],.lab-delivered[hidden]{display:none}
.lab-scene-publish{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;gap:16px;min-width:125px;padding:12px 18px;border:1px solid #ffffff3b;border-radius:100px;background:#096aff;color:#fff;font-size:14px;font-weight:700;line-height:1.2;box-shadow:0 8px 28px #001d5a55,inset 0 1px 0 #ffffff33;pointer-events:auto;animation:lab-pop .35s var(--ease) both;transition:transform .25s,background .25s}
.lab-scene-publish>svg{width:17px;height:17px}.lab-scene-publish:hover{background:#2380ff;transform:translateY(-2px)}.lab-scene-publish:focus-visible{outline:2px solid #fff;outline-offset:4px}
.lab-change-note{position:absolute;bottom:12px;left:12px;display:flex;align-items:center;gap:7px;max-width:60%;padding:8px 11px;margin:0;border:1px solid #ffffff45;border-radius:8px;background:#071327de;color:#f5f8ff;backdrop-filter:blur(14px);font-size:11px;line-height:1.4;user-select:none;-webkit-user-select:none;cursor:default;animation:lab-pop .3s var(--ease) both}
.lab-change-note>svg{width:14px;height:14px;flex:none;color:#a5ccff}.creation-lab[data-edited] .lab-action-orb{display:none}
.creation-lab[data-phase="publishing"] .lab-stage{overflow:clip}
.creation-lab[data-phase="publishing"] .lab-world{z-index:2;transform-origin:50% 50%;animation:lab-pack-world .8s cubic-bezier(.4,0,.15,1) both}
.creation-lab[data-phase="published"] .lab-world{visibility:hidden;opacity:0;pointer-events:none}
.lab-delivery{position:absolute;inset:0;z-index:4;visibility:hidden;pointer-events:none;perspective:1000px;--cube-size:clamp(82px,16cqw,158px)}
.creation-lab[data-phase="publishing"] .lab-delivery{visibility:visible}
.lab-cube-package{position:absolute;left:50%;top:51%;width:var(--cube-size);height:var(--cube-size);transform:translate(-50%,-50%);opacity:0;perspective:700px}
.lab-cube{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(-24deg) rotateY(-35deg)}
.lab-cube-face{position:absolute;inset:0;border:1px solid #80b9ff99;background:#096aff;backface-visibility:visible;box-shadow:inset 0 0 26px #9fceff12}
.lab-cube-front{transform:translateZ(calc(var(--cube-size)*.5));background:linear-gradient(145deg,#237fff,#0754d0);display:grid;place-items:center}
.lab-cube-front>svg{width:32%;height:32%;color:#dceaff;stroke-width:1.25;opacity:.85}
.lab-cube-back{transform:rotateY(180deg) translateZ(calc(var(--cube-size)*.5));background:#07367d}
.lab-cube-left{transform:rotateY(-90deg) translateZ(calc(var(--cube-size)*.5));background:linear-gradient(145deg,#1670df,#063c91)}
.lab-cube-right{transform:rotateY(90deg) translateZ(calc(var(--cube-size)*.5));background:linear-gradient(145deg,#145cb6,#063478)}
.lab-cube-bottom{transform:translateY(50%) rotateX(90deg);background:#072e63}
.lab-cube-lid{transform-origin:center top;transform:translateZ(calc(var(--cube-size)*-.5)) rotateX(172deg);background:linear-gradient(135deg,#66aeff,#2c83f8)}
.lab-cube-lid>span{position:absolute;left:45%;top:0;bottom:0;width:10%;background:#b6dbff35;border-inline:1px solid #b6dbff24}
.lab-cube-card{position:absolute;z-index:2;top:-35%;left:-18%;width:136%;aspect-ratio:16/9;border:2px solid #b7d5ff;border-radius:6px;overflow:clip;background:#14223a;opacity:0;transform:translateY(-40%) rotate(-6deg);box-shadow:0 15px 40px #0006}
.lab-cube-card .lab-world-image{clip-path:none;filter:none;transform:none}.lab-cube-card .lab-equipment-halo{border-width:1px;box-shadow:0 0 0 2px #146eff20}
.lab-cube-shadow{position:absolute;left:50%;top:80%;width:28%;height:8%;border-radius:50%;background:#126eff;filter:blur(24px);transform:translateX(-50%);opacity:0}
.lab-cube-ring{position:absolute;left:50%;top:51%;width:calc(var(--cube-size)*2.2);aspect-ratio:1;border:1px solid #64afff88;border-radius:50%;box-shadow:0 0 30px #1578ff22,inset 0 0 20px #4c9aff15;opacity:0;transform:translate(-50%,-50%) rotateX(65deg)}
.creation-lab[data-phase="publishing"] .lab-cube-package{animation:lab-cube-arrive .4s .3s both,lab-cube-send .75s 1.7s cubic-bezier(.55,0,.65,.5) forwards}
.creation-lab[data-phase="publishing"] .lab-cube-card{animation:lab-world-in .7s .45s var(--ease) both}
.creation-lab[data-phase="publishing"] .lab-cube-lid{animation:lab-cube-close .5s 1.1s cubic-bezier(.3,0,.2,1) forwards}
.creation-lab[data-phase="publishing"] .lab-cube{animation:lab-cube-turn .7s 1.55s ease-in-out forwards}
.creation-lab[data-phase="publishing"] .lab-cube-shadow{animation:lab-cube-shadow 2.1s .3s both}
.creation-lab[data-phase="publishing"] .lab-cube-ring{animation:lab-cube-seal .65s 1.4s ease-out both}
@keyframes lab-pack-world{0%{opacity:1;transform:none}55%{opacity:1;transform:translateY(-8%) scale(.34) rotate(-5deg)}100%{opacity:0;transform:translateY(9%) scale(.2) rotate(-2deg)}}
@keyframes lab-cube-arrive{from{opacity:0;transform:translate(-50%,-25%) scale(.7)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes lab-world-in{0%{opacity:0;transform:translateY(-40%) rotate(-6deg) scale(1)}15%,45%{opacity:1}100%{opacity:0;transform:translateY(105%) rotate(0deg) scale(.4)}}
@keyframes lab-cube-close{to{transform:translateZ(calc(var(--cube-size)*-.5)) rotateX(90deg)}}
@keyframes lab-cube-turn{to{transform:rotateX(-25deg) rotateY(45deg) rotateZ(-8deg)}}
@keyframes lab-cube-send{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}20%{opacity:1;transform:translate(-57%,-43%) scale(.98)}80%{opacity:1}100%{opacity:0;transform:translate(180%,-150%) scale(.35)}}
@keyframes lab-cube-shadow{0%{opacity:0;scale:.7}25%,60%{opacity:.3;scale:1}100%{opacity:0;scale:.5}}
@keyframes lab-cube-seal{0%{opacity:0;transform:translate(-50%,-50%) rotateX(65deg) scale(.6)}20%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) rotateX(65deg) scale(1.6)}}

/* One calm completion state; the top steps already tell the journey. */
.lab-delivered{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;text-align:center;padding:20px;background:radial-gradient(ellipse at 50% 45%,#0b387340,transparent 66%);animation:lab-pop .5s var(--ease) both}
.lab-delivered-check{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:#096aff;color:#fff;box-shadow:0 0 0 9px #096aff12,0 0 65px #096aff35}
.lab-delivered-check svg{width:29px;height:29px;stroke-width:2}.lab-delivered-check path{stroke-dasharray:24;stroke-dashoffset:24;animation:lab-check-draw .4s .15s ease-out forwards}
.lab-delivered strong{font-size:clamp(29px,3.8cqw,40px);line-height:1.15;letter-spacing:-.045em}
@media(max-width:850px){
 .lab-editor-sidebar{width:101px;padding:11px 7px}.lab-editor-tree-row{font-size:8px;gap:5px;padding-inline:3px}.lab-editor-tree-row:not(:first-child){padding-left:5px}.lab-editor-tree-row>svg{width:11px;height:11px}.lab-editor-panel-title{font-size:9px}.lab-editor-properties>strong{font-size:9px}.lab-editor-assets{left:10px;right:10px}.lab-editor-assets>div{gap:4px}.lab-editor-assets svg{width:23px;height:23px;padding:5px}.lab-editor-swatches{gap:5px}.lab-editor-swatches>i{width:17px;height:17px}
 .creation-lab:is([data-phase="editing"],[data-phase="publishing"]) .lab-world{width:calc(100% - 224px);left:112px}
 .creation-lab:is([data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-stage{height:calc((100cqw - 224px)*.5625 + 64px);min-height:320px}
 .lab-editor-transform{margin-top:12px}.lab-editor-transform>div{padding:3px 5px}.lab-editor-material,.lab-editor-behaviour{margin-top:12px}
 .lab-scene-publish{top:9px;right:9px;min-width:106px;padding:10px 14px;gap:12px;font-size:12px}.lab-scene-publish>svg{width:15px;height:15px}.lab-change-note{left:8px;bottom:8px;font-size:9px;padding:6px 8px;gap:5px}.lab-change-note>svg{width:12px;height:12px}
}
@media(max-width:650px){
 .lab-progress{margin-bottom:20px}.lab-progress li{flex-direction:row;gap:5px;padding:3px 1px 12px;font-size:9px}.lab-step-badge{width:18px;height:18px;font-size:9px}.lab-step-badge svg{width:10px;height:10px}
 .lab-guidance{padding:0 0 8px}.lab-heading{font-size:25px}.lab-hint{margin:7px auto 13px;font-size:11px;min-height:2.7em;max-width:290px}.lab-footer{font-size:10px;margin-top:0;padding-top:2px}
 .lab-editor-toolbar{height:29px;padding:0 8px;font-size:8px;border-radius:6px}.lab-editor-project{gap:5px}.lab-editor-project>svg{width:12px;height:12px}.lab-editor-view{font-size:0;gap:0}.lab-editor-view>svg{width:12px;height:12px}
 .lab-editor-sidebar{top:36px;bottom:5px;width:24px;padding:9px 3px;border-radius:5px}.lab-editor-panel-title{justify-content:center;margin-bottom:7px;padding:0 0 8px}.lab-editor-panel-title>span,.lab-editor-tree-row>span,.lab-editor-properties>strong,.lab-editor-transform,.lab-editor-material>span,.lab-editor-behaviour,.lab-editor-assets{display:none}
 .lab-editor-tree{gap:8px}.lab-editor-tree-row,.lab-editor-tree-row:not(:first-child){padding:4px 0;justify-content:center;border:0;border-radius:3px}.lab-editor-tree-row>svg{width:12px;height:12px}.lab-editor-material{margin:12px 0 0}.lab-editor-swatches{display:grid;justify-content:center;gap:10px}.lab-editor-swatches>i{width:12px;height:12px;border-width:1px;border-radius:3px}
 .creation-lab:is([data-phase="editing"],[data-phase="publishing"]) .lab-world{width:calc(100% - 60px);left:30px;top:36px;border-radius:6px}
 .creation-lab:is([data-phase="editing"],[data-phase="publishing"],[data-phase="published"]) .lab-stage{height:calc((100cqw - 60px)*.5625 + 46px);min-height:180px}
 .lab-scene-publish{top:6px;right:6px;min-width:84px;padding:8px 10px;gap:8px;font-size:10px}.lab-scene-publish>svg{width:12px;height:12px}.lab-change-note{max-width:62%;left:6px;bottom:6px;font-size:8px;padding:4px 6px;gap:4px;border-radius:5px}.lab-change-note>svg{width:10px;height:10px}
 .lab-hotspot>svg{width:12px;height:12px;padding:5px}.lab-hotspot>span{font-size:9px;padding:4px 6px}.lab-equipment-halo{border-width:2px}
 .lab-delivery{--cube-size:clamp(68px,23cqw,100px)}.lab-cube-package{top:56%}.lab-cube-card{border-width:1px}.lab-cube-ring{top:56%}
 .lab-delivered{gap:20px;padding:10px}.lab-delivered-check{width:48px;height:48px;box-shadow:0 0 0 7px #096aff12,0 0 40px #096aff35}.lab-delivered-check svg{width:24px;height:24px}.lab-delivered strong{font-size:27px}
}
@media(max-width:360px){
 .lab-progress li{font-size:8px;gap:6px;flex-direction:column}.lab-step-badge{width:16px;height:16px;font-size:8px}.lab-heading{font-size:22px}.lab-hint{font-size:10px;max-width:250px}
 .lab-editor-project>span{font-size:7px}.lab-editor-toolbar{padding-inline:5px}.lab-scene-publish{min-width:76px;font-size:9px;padding:7px 8px;gap:6px}.lab-scene-publish>svg{width:11px;height:11px}.lab-change-note{font-size:7px;padding:4px;max-width:65%}.lab-change-note>svg{width:8px;height:8px}.lab-hotspot{padding:0}.lab-hotspot>svg{width:10px;height:10px;padding:5px}.lab-delivered strong{font-size:24px}
}
html[data-motion="paused"] .creation-lab .lab-delivered-check path{stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){.creation-lab .lab-delivered-check path{stroke-dashoffset:0}}

/* V12: the four stages are keyboard-accessible tabs, with a full-width hit area. */
.lab-progress li{padding:0}
.lab-step-tab{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:inherit;gap:inherit;width:100%;min-height:44px;padding:5px 6px 14px;border:0;border-radius:8px 8px 0 0;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:pointer;transition:background .25s,color .25s}
.lab-step-tab:hover{background:#ffffff08;color:#fff}
.lab-step-tab:focus-visible{outline:2px solid #8bbaff;outline-offset:3px;background:#096aff14}
.lab-progress li.is-current{color:#fff;border-color:#8bbaff}
.lab-progress li.is-current .lab-step-badge{background:#126eff;border-color:#126eff;color:#fff}
@media(max-width:650px){.lab-step-tab{padding:3px 1px 12px}}

/* V13: make the editable points unmistakable and show the request before its result. */
.lab-hotspot{width:44px;height:44px;justify-content:center;padding:3px}
.lab-hotspot>svg{width:17px;height:17px;padding:9px;flex:none;background:#086aff;border:1px solid #e8f3ff;box-shadow:0 0 0 5px #086aff35,0 5px 18px #00163f55}
.creation-lab[data-phase="editing"]:not([data-edited]):not([data-edit-pending]) .lab-hotspot>svg{animation:lab-hotspot-invite 1.9s ease-in-out infinite}
.creation-lab[data-phase="editing"]:not([data-edited]):not([data-edit-pending]) .lab-hotspot::after{content:"";position:absolute;inset:0;border:2px solid #75b4ff;border-radius:50%;pointer-events:none;animation:lab-hotspot-ring 1.9s ease-out infinite}
.creation-lab[data-phase="editing"]:not([data-edited]):not([data-edit-pending]) .lab-hotspot[data-object="extinguisher"]::after{animation-delay:.45s}
.creation-lab[data-phase="editing"]:not([data-edited]):not([data-edit-pending]) .lab-hotspot>span{opacity:1;color:#fff;background:#07489be8;border-color:#7bb9ff80}
.creation-lab[data-edit-pending] .lab-hotspot{opacity:.45}
.creation-lab[data-edit-pending="door"] .lab-hotspot[data-object="door"],.creation-lab[data-edit-pending="extinguisher"] .lab-hotspot[data-object="extinguisher"]{opacity:1}
@keyframes lab-hotspot-invite{0%,100%{transform:scale(1);box-shadow:0 0 0 5px #086aff35,0 5px 18px #00163f55}50%{transform:scale(1.12);box-shadow:0 0 0 8px #086aff18,0 5px 25px #0077ff60}}
@keyframes lab-hotspot-ring{0%{transform:scale(.9);opacity:.8}85%,100%{transform:scale(1.75);opacity:0}}
.lab-edit-prompt{position:absolute;z-index:12;left:50%;bottom:9px;transform:translateX(-50%);width:min(420px,calc(100% - 36px));padding:15px 52px 16px 20px;border:1px solid #549aff99;border-radius:14px;background:linear-gradient(125deg,#132c4bf5,#081322f5);box-shadow:0 12px 40px #0006,0 0 24px #086aff15;color:#fff;pointer-events:none;user-select:none;-webkit-user-select:none;animation:lab-edit-prompt-in .32s var(--ease) both}
.lab-edit-prompt[hidden]{display:none}
.lab-edit-prompt-caption{display:block;margin-bottom:6px;color:#8ebcff;font-size:11px;line-height:1.3;letter-spacing:.02em}
.lab-edit-prompt strong{display:block;font-size:20px;font-weight:500;line-height:1.25;letter-spacing:-.025em}
.lab-edit-prompt-mark{position:absolute;right:18px;top:50%;display:grid;place-items:center;width:26px;height:26px;transform:translateY(-50%);border-radius:50%;background:#1476ef;color:#fff;font-size:17px;animation:lab-edit-working 1.2s ease-in-out infinite}
.lab-edit-prompt.is-applied{border-color:#a4d2ff99}
.lab-edit-prompt.is-applied .lab-edit-prompt-mark{animation:none;background:#dceaff;color:#07438e}
@keyframes lab-edit-prompt-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes lab-edit-working{50%{opacity:.55}}
@media(max-width:650px){
 .lab-hotspot{width:38px;height:38px;padding:2px;margin:-5px 0 0 -5px}
 .lab-hotspot>svg{width:13px;height:13px;padding:7px}
 .lab-hotspot>span{bottom:calc(100% + 2px);font-size:9px;padding:4px 6px}
 .lab-edit-prompt{bottom:1px;width:calc(100% - 12px);padding:10px 38px 11px 13px;border-radius:10px}
 .lab-edit-prompt-caption{font-size:9px;margin-bottom:4px}
 .lab-edit-prompt strong{font-size:15px;line-height:1.25}
 .lab-edit-prompt-mark{right:11px;width:21px;height:21px;font-size:14px}
}
@media(max-width:360px){.lab-edit-prompt strong{font-size:14px}.lab-edit-prompt-caption{font-size:8px}.lab-hotspot>span{font-size:8px}}
