/* World Studio — isolated, touch-first construction workspace */
.world-wrap{--world-border:#30343e;--world-soft:#1d212a;--world-muted:#999ead;--world-gold:#f6c486;--world-green:#79d3a9;min-width:0;color:#f6f3ef;width:100%;padding-bottom:30px}
.world-wrap *{box-sizing:border-box}
.world-wrap button,.world-wrap input,.world-wrap select{font:inherit}
.world-wrap button{cursor:pointer}
.world-wrap button:disabled{opacity:.42;cursor:not-allowed}
.world-wrap input:focus,.world-wrap select:focus{outline:2px solid #e8b477;outline-offset:1px}
.world-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:2px 0 17px}
.world-heading h1{font-size:clamp(23px,3vw,34px);line-height:1.04;letter-spacing:-.04em;margin:5px 0 6px;font-weight:700}
.world-heading p{font-size:13px;color:var(--world-muted);margin:0;max-width:670px;line-height:1.45}
.world-kicker,.world-minilabel{font-size:9px;font-weight:750;color:#c2a079;letter-spacing:1.5px}
.world-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.world-actions .btn{white-space:nowrap;min-height:37px}
.world-cmd{display:flex;align-items:center;gap:6px}
.world-projbar{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.world-projinfo{display:flex;align-items:center;gap:11px;min-width:0}
.world-scene-mark{height:42px;width:42px;display:grid;place-items:center;flex:none;border-radius:10px;font-size:26px;color:#edbf83;background:#352d27;border:1px solid #4d3e2e}
.world-projinfo>div{display:grid;gap:3px;min-width:0}
.world-minilabel{line-height:1;font-size:8px;font-weight:800}
.world-projinfo select{border:0;background:transparent;color:#f5f2ee;max-width:250px;font-weight:730;font-size:14px;cursor:pointer;padding:0 12px 0 0}
.world-projinfo select option{background:#272c35;color:#fff}
.world-projinfo small{font-size:10px;color:var(--world-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.world-projstats{display:flex;align-items:center;gap:9px;font-size:11px;color:#a6aeb9;flex-wrap:wrap;justify-content:flex-end}
.world-projstats>span{display:inline-flex;align-items:center;gap:6px}
.world-projstats i{width:7px;height:7px;background:#74d4a2;border-radius:50%;box-shadow:0 0 8px #78d5a25c}
.world-projstats b{font-weight:750;color:#eef3f8}
.world-projstats .world-userpill{padding:6px 9px;border-radius:7px;background:#262b35;border:1px solid var(--world-border);color:var(--user-color);white-space:nowrap}
.world-projstats .world-demopill{font-size:10px;padding:5px 8px;border-radius:5px;color:#dbb17f;background:#352c24;border:1px solid #634a30;white-space:nowrap;font-weight:600}
.world-workgrid{display:grid;grid-template-columns:202px minmax(0,1fr) 219px;gap:10px;align-items:start;min-width:0}
.world-wrap .panel{min-width:0;border:1px solid var(--world-border);border-radius:11px;background:#20232b;overflow:hidden;padding:0}
.world-wrap .world-projbar{padding:10px 12px}
.world-main{display:grid;gap:12px;min-width:0}
.world-sidehead{min-height:46px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid var(--world-border)}
.world-sidehead b{font-size:12px;font-weight:720;letter-spacing:-.015em;white-space:nowrap}
.world-sidehead>span{color:#8e94a5;font-size:10px;white-space:nowrap}
.world-search{padding:10px 10px 3px}
.world-search input{width:100%;min-width:0;background:#191c23;border:1px solid #353945;border-radius:6px;padding:8px 9px;color:#f5f2ee;font-size:11px;line-height:16px}
.world-search input::placeholder{color:#898f9f}
.world-assetlist{padding:3px 7px 10px;display:grid;gap:3px;max-height:274px;overflow:auto;scrollbar-width:thin;scrollbar-color:#454c59 transparent}
.world-asset{display:flex;align-items:center;text-align:left;width:100%;gap:8px;padding:6px;border:1px solid transparent;border-radius:7px;background:transparent;color:#f3f0ed;min-width:0;transition:.18s}
.world-asset:hover{background:#2b303a;border-color:#404653;transform:translateY(-1px)}
.world-asset[hidden]{display:none}
.world-asset img,.world-asset-thumb{width:38px;height:34px;border-radius:5px;flex:none;object-fit:cover}
.world-asset-thumb{display:grid;place-items:center;background:color-mix(in srgb,var(--asset-color) 20%,#20242c);color:var(--asset-color);font-size:21px;border:1px solid color-mix(in srgb,var(--asset-color) 40%,#303541)}
.world-asset>span:nth-child(2){min-width:0;flex:1}
.world-asset b,.world-asset small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-asset b{font-size:11px;line-height:1.25;font-weight:620}
.world-asset small{font-size:9px;color:#9499aa;line-height:1.3;margin-top:3px}
.world-asset i{font-style:normal;color:var(--world-gold);font-size:16px;flex:none}
.world-outliner-head{border-top:1px solid var(--world-border)}
.world-outliner{padding:6px 7px;max-height:267px;overflow:auto;scrollbar-width:thin;scrollbar-color:#454c59 transparent}
.world-object-row{display:flex;align-items:center;gap:3px;min-height:29px;border:1px solid transparent;padding:2px 5px 2px 3px;border-radius:6px;margin:1px 0}
.world-object-row.selected{border-color:#66503a;background:#3c3128}
.world-object-row:hover:not(.selected){background:#2b303a}
.world-object-row>button:first-child{width:calc(100% - 23px);display:flex;gap:7px;align-items:center;padding:3px 2px;color:#dddfeb;min-width:0;background:transparent;border:0;text-align:left}
.world-object-row>button:first-child span{width:17px;text-align:center;flex:none;font-size:13px}
.world-object-row b{font-size:10px;font-weight:550;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.world-object-row small{font-size:9px;white-space:nowrap}
.world-eye{background:transparent;border:none;color:#808ea5;font-size:12px;padding:0 2px;white-space:nowrap}
.world-eye.hidden{color:#575e6b}
.world-hint{margin:8px 12px 12px;color:#a1a5b2;font-size:10px;line-height:1.45}
.world-toolbar{padding:8px 9px;display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:43px;border-bottom:1px solid var(--world-border)}
.world-segs,.world-toolset,.world-cameractrl{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.world-seg,.world-icon{border:1px solid transparent;background:transparent;border-radius:6px;color:#aeb5c2;white-space:nowrap;font-size:11px;padding:7px 8px;line-height:15px;font-weight:620;transition:.15s}
.world-seg:hover,.world-icon:hover{background:#343943;color:white}
.world-seg.active{border-color:#755638;background:#3b3028;color:#ffd9a5}
.world-view-label{font-size:10px;color:#a6acb9;white-space:nowrap;margin-left:auto}
.world-view-label span{color:#86caa0;font-size:8px}
.world-icon{min-width:27px;padding:6px 7px;font-size:12px}
.world-viewport{position:relative;width:100%;height:clamp(350px,48vh,570px);background:#181d25;overflow:hidden;border-bottom:1px solid var(--world-border)}
.world-viewport canvas,.world-reference{width:100%;height:100%;display:block;object-fit:cover;touch-action:none}
.world-viewport canvas{cursor:grab}
.world-viewport canvas:active{cursor:grabbing}
.world-viewtop{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.65px;font-weight:750;pointer-events:none}
.world-viewtop span{background:#14191fbb;border:1px solid #65718155;backdrop-filter:blur(7px);padding:6px 8px;border-radius:5px;color:#d4d7db;white-space:nowrap}
.world-axis{position:absolute;bottom:40px;left:14px;width:43px;height:39px;pointer-events:none;color:#fff;font-size:10px;font-weight:800;text-shadow:0 1px 2px #20242a}
.world-axis:before{content:'';position:absolute;bottom:8px;left:17px;height:25px;border-left:2px solid #94cf8f}
.world-axis:after{content:'';position:absolute;bottom:4px;left:16px;width:28px;height:32px;border-top:2px solid #ed8577;transform:rotate(30deg);transform-origin:0 100%}
.world-ax-x{color:#ed8577;position:absolute;left:37px;bottom:5px}.world-ax-z{color:#89ade6;position:absolute;left:0;bottom:4px}.world-axis b{color:#94cf8f;position:absolute;top:-3px;left:14px}
.world-canvas-help,.world-reference-caption{position:absolute;bottom:8px;left:10px;right:10px;pointer-events:none;text-align:center;color:#d3d8e2;font-size:10px;font-weight:500;line-height:1.35;background:#13171d99;border:1px solid #aeb8c51c;border-radius:6px;padding:7px 5px;backdrop-filter:blur(6px)}
.world-reference-caption{bottom:12px;padding:9px 10px}
.world-viewport:fullscreen{height:100vh;width:100vw}
.world-viewport.world-expanded{position:fixed;inset:10px;width:calc(100vw - 20px);height:calc(100vh - 20px);z-index:1000;border:1px solid #596170;border-radius:10px}
.world-viewportfoot{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:7px 8px;min-height:42px}
.world-viewportfoot .world-seg{font-size:10px;padding:6px 7px}
.world-cameractrl .world-icon{border-color:#3c424d;min-width:26px;padding:5px 6px;font-size:11px}
.world-refstrip{padding:9px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.world-refthumb{background:#171a21;color:#b8bfca;border:1px solid #373b46;border-radius:7px;overflow:hidden;padding:0;text-align:left;min-width:0}
.world-refthumb.active{border-color:#e4b479;background:#3e3125;color:#ffdbad}
.world-refthumb img{display:block;width:100%;height:50px;object-fit:cover}
.world-refthumb span{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:5px 6px;font-size:10px;font-weight:650}
.world-pipeline{padding:13px!important}
.world-pipe-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}
.world-pipe-title b{font-size:13px}.world-pipe-title span{font-size:10px;color:#969dac}
.world-steps{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.world-steps>i{color:#656b79;font-style:normal}
.world-step{display:flex;align-items:center;gap:7px;min-width:0;color:#aaaeba}
.world-step>span{width:29px;height:29px;display:grid;place-items:center;border:1px solid #3c414d;border-radius:7px;background:#242a34;font-size:11px;flex:none;font-weight:750}
.world-step.active>span{color:#edbc80;border-color:#725434;background:#3b2d23}
.world-step b,.world-step small{display:block;white-space:nowrap;line-height:1.35}
.world-step b{font-size:11px;font-weight:620;color:#f0ece9}
.world-step small{font-size:9px;color:#979fad}
.world-pipeline p{margin:13px 0 10px;color:#9da4b2;font-size:11px;line-height:1.55}
.world-pipe-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.world-pipe-actions .btn{font-size:10px;padding:6px 9px}
.world-selection{display:flex;align-items:center;gap:9px;padding:13px 12px 11px}
.world-selection-icon{height:37px;width:37px;border:1px solid #55515b80;border-radius:8px;display:grid;place-items:center;font-size:22px;flex:none}
.world-selection>div{min-width:0}
.world-selection b,.world-selection small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-selection b{font-size:12px;color:#fff;font-weight:700}
.world-selection small{font-size:10px;color:#9ca3b1;margin-top:3px}
.world-lockstatus{display:flex;align-items:center;gap:5px;margin:0 12px 10px;padding:7px 5px 7px 7px;background:#212a28;border:1px solid #394d44;border-radius:6px;font-size:9px;color:#91c7ac;line-height:1.2}
.world-lockstatus>i{height:6px;width:6px;border-radius:50%;background:#83cca5;flex:none}
.world-lockstatus.locked{background:#3a3125;border-color:#715230;color:#f1c891}
.world-lockstatus.locked>i{background:#e8c18d}
.world-smallbtn{margin-left:auto;border:1px solid #536459;background:#2c3b35;border-radius:4px;color:#d7e8df;font-size:9px;white-space:nowrap;padding:4px 5px}
.world-lockstatus.locked .world-smallbtn{border-color:#735534;background:#4b3725;color:#fbd09a}
.world-form{padding:0 12px 12px;display:grid;gap:10px}
.world-form label{font-size:10px;color:#b4bac8;font-weight:550;display:grid;gap:5px;min-width:0}
.world-form input:not([type=color]){width:100%;min-width:0;color:#f3f2ef;background:#181b22;border-radius:6px;border:1px solid #393e49;min-height:32px;padding:6px 7px;font-size:11px}
.world-form input:disabled{opacity:.72}
.world-form-title{display:flex;justify-content:space-between;align-items:center;padding-top:5px;font-size:9px;font-weight:750;color:#c3a47e;letter-spacing:.75px}
.world-form-title span{font-size:8px;font-weight:450;color:#8f97a6;letter-spacing:0}
.world-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.world-form .world-material{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:6px 7px;background:#181b22;border:1px solid #393e49;border-radius:6px}
.world-material span{display:flex;align-items:center;gap:7px;white-space:nowrap}
.world-material i{height:14px;width:14px;border:1px solid #7778;border-radius:3px}
.world-material input[type=color]{height:22px;width:34px;border:none;cursor:pointer;background:transparent;padding:0}
.world-transform-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.world-transform-actions .btn{min-width:0;padding:7px 5px;border:1px solid #3b414d;background:#2a303a;color:#dddfe3;font-size:9px;line-height:1.3;white-space:nowrap}
.world-transform-actions .world-danger{color:#f3aca4;background:#34262b;border-color:#664046}
.world-layerhead{border-top:1px solid #343943}
.world-layers{padding:4px 12px 11px}
.world-layer{display:flex;position:relative;align-items:center;justify-content:space-between;gap:5px;padding:8px 0;border-bottom:1px solid #333741;color:#c4c9d2;font-size:10px;cursor:pointer}
.world-layer:last-child{border-bottom:0}
.world-layer>span{display:flex;align-items:center;gap:7px}
.world-layer i{display:block;width:7px;height:7px;border-radius:2px;background:#737f92}
.world-layer:nth-child(2) i{background:#be8b6d}.world-layer:nth-child(3) i{background:#79a67b}.world-layer:nth-child(4) i{background:#7799bb}.world-layer:nth-child(5) i{background:#f2b569}.world-layer:nth-child(6) i{background:#999aae}
.world-layer input{position:absolute;right:0;width:31px;height:22px;opacity:0;cursor:pointer}
.world-layer em{width:27px;height:15px;border-radius:10px;background:#424854;position:relative;pointer-events:none;transition:background .15s}
.world-layer em:before{content:'';width:11px;height:11px;background:#b8bdc7;border-radius:50%;position:absolute;left:2px;top:2px;transition:transform .15s}
.world-layer input:checked+em{background:#977142}.world-layer input:checked+em:before{transform:translateX(12px);background:#f9d3a4}
@media(min-width:1450px){.world-workgrid{grid-template-columns:226px minmax(0,1fr) 246px;gap:12px}.world-viewport{height:clamp(420px,50vh,650px)}}
@media(max-width:1190px){.world-workgrid{grid-template-columns:176px minmax(0,1fr) 181px;gap:8px}.world-sidehead{padding:0 9px}.world-toolbar{padding:7px}.world-view-label{display:none}.world-viewportfoot{flex-wrap:wrap;gap:7px}.world-viewtop{font-size:7px}.world-form,.world-selection{padding-left:9px;padding-right:9px}.world-lockstatus{margin-left:9px;margin-right:9px}.world-steps{gap:7px}.world-projstats{gap:7px}}
@media(max-width:1040px){.world-workgrid{grid-template-columns:185px minmax(0,1fr)}.world-inspector{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:start}.world-inspector #world-inspectorbody{grid-row:span 2;border-right:1px solid var(--world-border)}.world-inspector .world-layerhead{border-top:0}.world-layers{padding:6px 12px}.world-formgrid{grid-template-columns:repeat(4,1fr)}.world-form .world-material{min-height:35px}.world-selection small{font-size:11px}.world-toolbar{gap:9px}.world-view-label{display:inline-block}.world-viewport{height:clamp(360px,48vh,530px)}}
@media(max-width:720px){.world-heading{align-items:flex-start;display:grid;gap:10px;margin-bottom:13px}.world-heading p{font-size:12px}.world-actions{gap:6px}.world-actions .btn{min-height:34px;font-size:11px;padding:7px 9px}.world-projbar{gap:8px!important}.world-projinfo small{max-width:145px}.world-projstats{gap:5px;max-width:138px;font-size:10px}.world-projstats .world-demopill{display:none}.world-projstats .world-userpill{padding:4px 6px;font-size:9px}.world-scene-mark{height:36px;width:36px;font-size:22px}.world-projinfo{gap:7px}.world-projinfo select{max-width:167px;font-size:13px}.world-workgrid{grid-template-columns:1fr;gap:12px}.world-main{grid-column:1;grid-row:1}.world-inspector{grid-column:1;grid-row:2;display:block}.world-assets{grid-row:3;grid-column:1}.world-inspector #world-inspectorbody{border-right:0}.world-inspector .world-layerhead{border-top:1px solid var(--world-border)}.world-viewport{height:min(440px,47vh);min-height:300px}.world-viewtop{font-size:7px}.world-canvas-help{font-size:9px}.world-toolbar{padding:8px}.world-view-label{font-size:9px}.world-viewportfoot{flex-wrap:wrap;gap:6px}.world-toolset{width:100%;justify-content:space-between}.world-viewportfoot .world-seg{font-size:10px;font-weight:620;flex:1;text-align:center;padding:8px 4px;min-height:34px}.world-cameractrl{width:100%;justify-content:space-between}.world-cameractrl .world-icon{flex:1;min-height:32px;font-size:12px}.world-assetlist{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;gap:5px;padding:8px}.world-asset{border-color:#343b46;background:#242a34;padding:8px 6px;min-height:54px}.world-asset img,.world-asset-thumb{width:39px;height:39px}.world-asset b{font-size:11px}.world-outliner{max-height:260px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.world-object-row{min-height:33px;padding:3px 4px}.world-object-row b{font-size:11px}.world-formgrid{grid-template-columns:repeat(2,1fr)}.world-form input:not([type=color]){min-height:40px;font-size:14px;padding:9px}.world-selection b{font-size:13px}.world-selection small{font-size:11px}.world-lockstatus{font-size:11px}.world-smallbtn{font-size:11px;padding:6px 9px}.world-form label{font-size:12px}.world-transform-actions .btn{font-size:11px;min-height:36px}.world-layer{min-height:40px;font-size:12px}.world-steps{gap:6px}.world-step b{font-size:10px}.world-step small{font-size:8px}.world-step>span{width:24px;height:24px;font-size:9px}.world-refthumb img{height:50px}}
@media(max-width:410px){.world-steps{display:grid;grid-template-columns:1fr 1fr}.world-steps>i{display:none}.world-step:last-child{grid-column:1/-1}.world-view-label{display:none}.world-projstats{max-width:105px}.world-viewport{min-height:270px}.world-refthumb img{height:43px}.world-refthumb span{font-size:9px;padding:4px 3px}}
