/* Load after app CSS. Shared HUD only: scene/camera remain app-owned. */
.he-editor{--he-bg:#e8ece4;--he-panel:#fafbf7;--he-ink:#263e33;--he-accent:#355847;--he-radius:14px;--he-touch:44px;--he-top:56px;--he-rail:56px;--he-sheet-width:300px;background:var(--he-bg);color:var(--he-ink);overflow:hidden}
.he-editor>header{position:fixed;inset:0 0 auto;height:var(--he-top);box-sizing:border-box;z-index:40;background:var(--he-panel)}
.he-editor .studio-nav{position:fixed;inset:var(--he-top) auto 0 0;width:var(--he-rail);box-sizing:border-box;padding:6px;z-index:30;display:flex;flex-direction:column;background:var(--he-panel)}
.he-editor .studio-nav button,.he-editor .mobile-nav button{min-height:var(--he-touch);border-radius:10px;cursor:pointer}
.he-editor .workspace{position:fixed;inset:var(--he-top) 0 0 var(--he-rail);width:auto;height:auto;margin:0;background:var(--he-bg);overflow:hidden}
.he-editor #viewport{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;transform:none;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.he-editor #library,.he-editor #inspector{position:fixed;top:calc(var(--he-top) + 8px);bottom:8px;width:min(var(--he-sheet-width),calc(100vw - 80px));height:auto;max-height:none;box-sizing:border-box;z-index:35;overflow:auto;overscroll-behavior:contain;background:var(--he-panel);color:var(--he-ink);border-radius:var(--he-radius);box-shadow:0 8px 35px #263e3324;padding:18px}
.he-editor #library{left:calc(var(--he-rail) + 8px);right:auto}.he-editor #inspector{right:8px;left:auto}
.he-editor #library[hidden],.he-editor #inspector[hidden]{display:none!important}
.he-editor button:focus-visible{outline:3px solid var(--he-accent);outline-offset:3px}.he-editor .mobile-nav{display:none}
@media(max-width:880px){.he-editor{--he-rail:0px;--he-dock:calc(64px + env(safe-area-inset-bottom,0px))}.he-editor .studio-nav{display:none}.he-editor .workspace{bottom:var(--he-dock)}.he-editor .mobile-nav{position:fixed;inset:auto 0 0;height:var(--he-dock);box-sizing:border-box;display:flex;justify-content:space-around;align-items:center;padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px));z-index:40;background:var(--he-panel)}.he-editor .mobile-nav button{flex:1;min-width:0;font-size:11px}.he-editor #library,.he-editor #inspector{inset:auto 8px calc(var(--he-dock) + 8px);width:auto;max-height:52dvh;border-radius:var(--he-radius);padding:16px}.he-editor #viewport{inset:0;width:100%;height:100%}}
@media(prefers-reduced-motion:reduce){.he-editor *{scroll-behavior:auto!important}}
