:root{--bg:#0a111b;--panel:#111b25;--stroke:#2e4351;--text:#e4eff0;--mint:#7ce0c2}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{color:var(--text);background:var(--bg);font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}button{font:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:2px solid var(--mint);outline-offset:2px}.topbar{height:66px;background:#0f1b27;border-bottom:1px solid var(--stroke);display:flex;align-items:center;gap:22px;padding:0 23px}.back{color:#a6bbc3;text-decoration:none;font-weight:800;font-size:11px;letter-spacing:.11em}.back:hover{color:white}.identity{display:grid;gap:2px}.identity strong{font-size:18px;font-weight:800;letter-spacing:-.05em}.identity em{font-style:normal;color:#85dec0}.identity small{font-size:9px;letter-spacing:.15em;color:#93abb7}.lab-tag{margin-left:auto;font-size:10px;letter-spacing:.08em;padding:5px 9px;border:1px solid #48786e;color:#aedacd;border-radius:5px}.editor{height:calc(100dvh - 66px);min-height:480px;display:grid;grid-template-columns:276px minmax(0,1fr)}.tools{overflow:auto;background:var(--panel);border-right:1px solid var(--stroke);min-height:0}.panel-title{padding:27px 20px 19px}.panel-title small{font-size:10px;color:#9ae2c7;letter-spacing:.16em}.panel-title h1{font-size:22px;margin:9px 0 5px;letter-spacing:-.04em}.panel-title p,.panel-section p{color:#99afbb;font-size:11px;line-height:1.7}.world-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 14px 19px}.world-stats div{border:1px solid #2f4756;background:#142533;padding:10px;border-radius:7px}.world-stats dt{color:#91acb6;font-size:10px}.world-stats dd{margin:2px 0 0;font-size:17px;font-weight:800;letter-spacing:-.03em;color:#caf3e7;font-variant-numeric:tabular-nums}.panel-section{border-top:1px solid var(--stroke);padding:17px 16px 13px;display:grid;gap:8px}.panel-section h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin:1px 0 5px}.panel-section p{margin:2px 0 5px}.button{padding:11px 10px;text-align:left;color:#d7ebf0;border:1px solid #425b67;background:#233744;border-radius:6px;font-weight:650;font-size:11px}.button:hover{background:#2d4a57}.button.primary{background:#d1f0e2;color:#102d2a;border-color:#d1f0e2}.button.muted{color:#b8ced1}.workspace{min-width:0;display:grid;grid-template-rows:52px minmax(0,1fr) 39px}.viewport-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#13222d;padding:0 18px;font-size:11px;letter-spacing:.1em}.viewport-bar strong{white-space:nowrap;font-size:10px}.viewport-bar .dot{color:#7ce0c2}.viewport-bar #cameraCoordinates{color:#a9c7c7;font-variant-numeric:tabular-nums}.small-button{background:#19303c;border:1px solid #486b71;border-radius:5px;padding:6px 10px;color:#bfe8e4;white-space:nowrap}.canvas-wrap{position:relative;min-width:0;min-height:0;background:radial-gradient(ellipse at 50% 10%,#193d50,#081825 70%)}#worldCanvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.viewport-watermark{position:absolute;left:12px;top:12px;font-weight:750;font-size:10px;letter-spacing:.1em;color:#b9d0d4;pointer-events:none;background:#0e2131c8;border:1px solid #395765;padding:6px 8px;border-radius:4px}.controls-hint{position:absolute;left:50%;transform:translateX(-50%);bottom:17px;color:#c7d9da;white-space:nowrap;font-size:11px;background:#0b1b29cc;border:1px solid #39556580;border-radius:5px;padding:7px 12px;pointer-events:none}.error{position:absolute;inset:15%;display:grid;place-items:center;text-align:center;background:#1d2e39;border:1px solid #ce7777;border-radius:8px;padding:15px}.error[hidden]{display:none}.status-bar{display:flex;align-items:center;justify-content:space-between;background:#10212c;border-top:1px solid #2c4553;padding:0 14px;gap:10px;font-size:10px;color:#99b9c4}.status-bar span:first-child{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.status-bar span:last-child{white-space:nowrap;font-size:9px;letter-spacing:.06em}.touch-pad{display:none;position:absolute;bottom:65px;left:15px;pointer-events:auto}.touch-pad button{font-size:23px;font-weight:750;border:1px solid #77d4b6;color:#e6fff6;background:#142f3ddd;border-radius:9px;height:47px;width:47px;touch-action:none}.touch-pad>button{display:block;margin:0 auto 4px}.touch-pad>div{display:flex;gap:4px}.world-focus .topbar,.world-focus .tools{display:none}.world-focus .editor{height:100dvh;grid-template-columns:minmax(0,1fr)}.world-focus .workspace{height:100dvh}.world-focus .status-bar{height:39px}@media(pointer:coarse){.touch-pad{display:block}.controls-hint{display:none}}@media(max-width:750px){.topbar{height:58px;padding:0 10px;gap:12px}.identity strong{font-size:14px}.identity small{font-size:8px}.lab-tag{font-size:9px;padding:4px 5px}.editor{height:auto;min-height:0;display:flex;flex-direction:column}.workspace{order:0;height:70dvh;min-height:400px;grid-template-rows:45px minmax(0,1fr) 34px}.tools{order:1;border-right:0;border-top:1px solid var(--stroke);overflow:visible}.world-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.viewport-bar{padding:0 9px}.viewport-bar strong{font-size:9px;letter-spacing:.04em}.status-bar span:last-child{display:none}.world-focus .editor{display:grid;grid-template-columns:minmax(0,1fr)}.world-focus .workspace{height:100dvh;min-height:0}.back{font-size:9px}}
/* Streaming mode: independent local project selection and clear read-only state. */
.stream-guide{color:#9fedd0;text-decoration:underline;text-underline-offset:3px;font-size:11px;font-weight:700}
.stream-guide:hover{color:white}
.stream-section{background:#14282b}
.stream-section h2{color:#b7ead8}
body[data-stream-mode="files"] .lab-tag{color:#f4e5b3;border-color:#978859;background:#342f25}
body[data-stream-mode="files"] #streamNotice{color:#e7d6ac}
@media(max-width:750px){.stream-section{padding-bottom:20px}}

/* Report actual GPU instancing support, not assumed AAA capacity. */
#rendererMode{font-size:12px;letter-spacing:0;color:#c6e9de}
