Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix: rewrite game view with iframe, delete orphaned CSS, fix inspector

esengine31b9e4b98af5
diff --git a/editor/src/DockLayoutManager.ts b/editor/src/DockLayoutManager.ts
index f8367f7a8..331a1a15f 100644
--- a/editor/src/DockLayoutManager.ts
+++ b/editor/src/DockLayoutManager.ts
@@ -120,6 +120,14 @@ export class DockLayoutManager {
position: { referencePanel: 'hierarchy', direction: 'right' },
});
+ this.api_.addPanel({
+ id: 'game',
+ component: 'game',
+ title: 'Game',
+ position: { referencePanel: 'scene', direction: 'within' },
+ inactive: true,
+ });
+
this.api_.addPanel({
id: 'inspector',
component: 'inspector',
diff --git a/editor/src/Editor.ts b/editor/src/Editor.ts
index 714e878e6..d13ec8b5c 100644
--- a/editor/src/Editor.ts
+++ b/editor/src/Editor.ts
@@ -846,6 +846,21 @@ export class Editor {
this.updatePreviewButton();
}
+ async startPreviewServer(): Promise<string | null> {
+ if (this.store_.isDirty && this.store_.filePath && hasFileHandle()) {
+ await this.saveScene();
+ }
+ const port = await this.previewManager_.startServer(
+ this.store_.scene, this.scriptLoader_, this.spineVersion_,
+ );
+ if (port === null) return null;
+ return `http://localhost:${port}`;
+ }
+
+ async stopPreviewServer(): Promise<void> {
+ await this.previewManager_.stopPreview();
+ }
+
async togglePreview(): Promise<void> {
if (this.isPreviewRunning_) {
await this.stopPreview();
diff --git a/editor/src/PreviewManager.ts b/editor/src/PreviewManager.ts
index cff86ffe4..bf0e01e68 100644
--- a/editor/src/PreviewManager.ts
+++ b/editor/src/PreviewManager.ts
@@ -34,6 +34,29 @@ export class PreviewManager {
}
}
+ async startServer(
+ scene: SceneData,
+ scriptLoader: ScriptLoader | null,
+ spineVersion: string,
+ ): Promise<number | null> {
+ if (!this.previewService_) {
+ console.warn('Preview not available: no project loaded');
+ return null;
+ }
+
+ try {
+ if (scriptLoader) {
+ await scriptLoader.compile();
+ }
+ const compiledScript = scriptLoader?.getCompiledCode() ?? undefined;
+ const { enablePhysics, physicsConfig, previewSpineVersion, runtimeConfig } = this.collectPreviewConfig(spineVersion);
+ return await this.previewService_.startServer(scene, compiledScript, previewSpineVersion, enablePhysics, physicsConfig, runtimeConfig);
+ } catch (err) {
+ console.error('Failed to start preview server:', err);
+ return null;
+ }
+ }
+
async stopPreview(): Promise<void> {
await this.previewService_?.stopPreview();
}
diff --git a/editor/src/panels/InspectorPanel.ts b/editor/src/panels/InspectorPanel.ts
index f0d741a1b..1aeb2ca28 100644
--- a/editor/src/panels/InspectorPanel.ts
+++ b/editor/src/panels/InspectorPanel.ts
@@ -49,12 +49,6 @@ export class InspectorPanel {
this.container_.className = 'es-inspector-panel';
this.container_.innerHTML = `
- <div class="es-panel-header">
- <div class="es-panel-actions">
- <button class="es-btn es-btn-icon" title="Minimize">${icons.chevronDown(12)}</button>
- <button class="es-btn es-btn-icon" title="Close">${icons.x(12)}</button>
- </div>
- </div>
<div class="es-inspector-toolbar">
<button class="es-btn es-btn-icon es-lock-btn" title="Lock Inspector">${icons.lockOpen()}</button>
</div>
diff --git a/editor/src/panels/builtinPanels.ts b/editor/src/panels/builtinPanels.ts
index 4b45a6691..ef81983da 100644
--- a/editor/src/panels/builtinPanels.ts
+++ b/editor/src/panels/builtinPanels.ts
@@ -38,7 +38,7 @@ export function registerBuiltinPanels(options: BuiltinPanelOptions): void {
icon: icons.play(14),
position: 'center',
order: 1,
- defaultVisible: false,
+ defaultVisible: true,
factory: (c, s) => new GameViewPanel(c, s, { projectPath: options.projectPath }),
});
diff --git a/editor/src/panels/game-view/GameInstanceManager.ts b/editor/src/panels/game-view/GameInstanceManager.ts
index dbef2596c..1b7116aa4 100644
--- a/editor/src/panels/game-view/GameInstanceManager.ts
+++ b/editor/src/panels/game-view/GameInstanceManager.ts
@@ -1,79 +1,15 @@
-import type { App, ESEngineModule, SceneData } from 'esengine';
-import { createWebApp, loadRuntimeScene, type RuntimeAssetProvider } from 'esengine';
-import type { SceneData as EditorSceneData } from '../../types/SceneTypes';
-import { getPlatformAdapter } from '../../platform/PlatformAdapter';
-import { isUUID, getAssetLibrary } from '../../asset/AssetDatabase';
+import { getEditorInstance } from '../../context/EditorContext';
-export type GameState = 'stopped' | 'playing' | 'paused';
+export type GameState = 'stopped' | 'playing';
export interface GameInstanceCallbacks {
onStateChange(state: GameState): void;
- onFpsUpdate(fps: number): void;
onError(error: Error): void;
}
-class EditorRuntimeAssetProvider implements RuntimeAssetProvider {
- private projectDir_: string;
-
- constructor(projectDir: string) {
- this.projectDir_ = projectDir;
- }
-
- async loadPixels(ref: string): Promise<{ width: number; height: number; pixels: Uint8Array }> {
- const resolved = this.resolvePath(ref);
- const url = getPlatformAdapter().convertFilePathToUrl(`${this.projectDir_}/${resolved}`);
- const img = await this.loadImage(url);
- const canvas = document.createElement('canvas');
- canvas.width = img.width;
- canvas.height = img.height;
- const ctx = canvas.getContext('2d')!;
- ctx.drawImage(img, 0, 0);
- const imageData = ctx.getImageData(0, 0, img.width, img.height);
- return { width: img.width, height: img.height, pixels: new Uint8Array(imageData.data.buffer) };
- }
-
- async readText(ref: string): Promise<string> {
- const resolved = this.resolvePath(ref);
- const url = getPlatformAdapter().convertFilePathToUrl(`${this.projectDir_}/${resolved}`);
- const resp = await fetch(url);
- return resp.text();
- }
-
- async readBinary(ref: string): Promise<Uint8Array> {
- const resolved = this.resolvePath(ref);
- const url = getPlatformAdapter().convertFilePathToUrl(`${this.projectDir_}/${resolved}`);
- const resp = await fetch(url);
- const buf = await resp.arrayBuffer();
- return new Uint8Array(buf);
- }
-
- resolvePath(ref: string): string {
- if (isUUID(ref)) {
- return getAssetLibrary().getPath(ref) ?? ref;
- }
- return ref;
- }
-
- private loadImage(url: string): Promise<HTMLImageElement> {
- return new Promise((resolve, reject) => {
- const img = new Image();
- img.onload = () => resolve(img);
- img.onerror = () => reject(new Error(`Failed to load image: ${url}`));
- img.src = url;
- });
- }
-}
-
export class GameInstanceManager {
- private app_: App | null = null;
- private editorModule_: ESEngineModule | null = null;
private state_: GameState = 'stopped';
private callbacks_: GameInstanceCallbacks;
- private canvasSelector_ = '';
- private projectDir_ = '';
- private frameCount_ = 0;
- private lastFpsTime_ = 0;
- private fpsInterval_: ReturnType<typeof setInterval> | null = null;
constructor(callbacks: GameInstanceCallbacks) {
this.callbacks_ = callbacks;
@@ -83,125 +19,43 @@ export class GameInstanceManager {
return this.state_;
}
- setEditorModule(module: ESEngineModule): void {
- this.editorModule_ = module;
- }
-
- setProjectDir(projectDir: string): void {
- this.projectDir_ = projectDir;
- }
-
- setCanvasSelector(selector: string): void {
- this.canvasSelector_ = selector;
- }
-
- async play(sceneData: EditorSceneData): Promise<void> {
- if (this.state_ === 'paused') {
- this.resume();
- return;
- }
+ async play(): Promise<string | null> {
+ if (this.state_ === 'playing') return null;
- if (this.state_ === 'playing') return;
- if (!this.editorModule_) {
- this.callbacks_.onError(new Error('WASM module not available'));
- return;
+ const editor = getEditorInstance();
+ if (!editor) {
+ this.callbacks_.onError(new Error('Editor not available'));
+ return null;
}
try {
- this.editorModule_.shutdownRenderer();
-
- const success = this.editorModule_.initRendererWithCanvas(this.canvasSelector_);
- if (!success) {
- this.callbacks_.onError(new Error('Failed to initialize WebGL context for Game View'));
- return;
+ const url = await editor.startPreviewServer();
+ if (!url) {
+ this.callbacks_.onError(new Error('Failed to start preview server'));
+ return null;
}
-
- const canvasSelector = this.canvasSelector_;
- const getViewportSize = () => {
- const canvas = document.querySelector(canvasSelector) as HTMLCanvasElement;
- if (!canvas) return { width: 0, height: 0 };
- return { width: canvas.width, height: canvas.height };
- };
-
- this.app_ = createWebApp(this.editorModule_, { getViewportSize });
-
- const sdkSceneData = JSON.parse(JSON.stringify(sceneData)) as SceneData;
- const provider = new EditorRuntimeAssetProvider(this.projectDir_);
- await loadRuntimeScene(this.app_, this.editorModule_, sdkSceneData, provider);
-
- this.app_.run();
this.setState('playing');
- this.startFpsCounter();
+ return url;
} catch (e) {
- this.stop();
this.callbacks_.onError(e instanceof Error ? e : new Error(String(e)));
+ return null;
}
}
- pause(): void {
- if (this.state_ !== 'playing' || !this.app_) return;
- this.setState('paused');
- }
-
- private resume(): void {
- if (this.state_ !== 'paused' || !this.app_) return;
- this.setState('playing');
- }
-
- step(): void {
- if (this.state_ !== 'paused') return;
- }
-
- stop(): void {
- if (this.app_) {
- try {
- this.app_.quit();
- } catch (e) {
- console.warn('[GameView] Error during quit:', e);
- }
- this.app_ = null;
+ async stop(): Promise<void> {
+ const editor = getEditorInstance();
+ if (editor) {
+ await editor.stopPreviewServer();
}
-
- this.stopFpsCounter();
this.setState('stopped');
}
- dispose(): void {
- this.stop();
- this.editorModule_ = null;
+ async dispose(): Promise<void> {
+ await this.stop();
}
private setState(state: GameState): void {
this.state_ = state;
this.callbacks_.onStateChange(state);
}
-
- private startFpsCounter(): void {
- this.frameCount_ = 0;
- this.lastFpsTime_ = performance.now();
- this.fpsInterval_ = setInterval(() => {
- const now = performance.now();
- const elapsed = (now - this.lastFpsTime_) / 1000;
- if (elapsed > 0) {
- this.callbacks_.onFpsUpdate(Math.round(this.frameCount_ / elapsed));
- }
- this.frameCount_ = 0;
- this.lastFpsTime_ = now;
- }, 1000);
-
- const countFrames = () => {
- if (this.state_ === 'stopped') return;
- this.frameCount_++;
- requestAnimationFrame(countFrames);
- };
- requestAnimationFrame(countFrames);
- }
-
- private stopFpsCounter(): void {
- if (this.fpsInterval_ !== null) {
- clearInterval(this.fpsInterval_);
- this.fpsInterval_ = null;
- }
- this.callbacks_.onFpsUpdate(0);
- }
}
diff --git a/editor/src/panels/game-view/GameViewPanel.ts b/editor/src/panels/game-view/GameViewPanel.ts
index db0b93dd4..03a8df6fe 100644
--- a/editor/src/panels/game-view/GameViewPanel.ts
+++ b/editor/src/panels/game-view/GameViewPanel.ts
@@ -1,6 +1,5 @@
-import type { App } from 'esengine';
import type { EditorStore } from '../../store/EditorStore';
-import type { AppAware, PanelInstance, Resizable } from '../PanelRegistry';
+import type { PanelInstance, Resizable } from '../PanelRegistry';
import { GameInstanceManager, type GameState } from './GameInstanceManager';
import { GameViewToolbar } from './GameViewToolbar';
@@ -8,60 +7,38 @@ export interface GameViewPanelOptions {
projectPath?: string;
}
-export class GameViewPanel implements PanelInstance, Resizable, AppAware {
+export class GameViewPanel implements PanelInstance, Resizable {
private container_: HTMLElement;
- private store_: EditorStore;
- private app_: App | null = null;
- private projectPath_: string | null;
- private canvas_: HTMLCanvasElement | null = null;
- private canvasId_: string;
+ private iframe_: HTMLIFrameElement | null = null;
private toolbar_: GameViewToolbar;
private gameManager_: GameInstanceManager;
private viewport_: HTMLElement | null = null;
- private resizeObserver_: ResizeObserver | null = null;
private placeholder_: HTMLElement | null = null;
- constructor(container: HTMLElement, store: EditorStore, options?: GameViewPanelOptions) {
+ constructor(container: HTMLElement, _store: EditorStore, _options?: GameViewPanelOptions) {
this.container_ = container;
- this.store_ = store;
- this.projectPath_ = options?.projectPath ?? null;
- this.canvasId_ = `es-gameview-canvas-${Date.now()}`;
this.gameManager_ = new GameInstanceManager({
onStateChange: (state) => this.onStateChange(state),
- onFpsUpdate: (fps) => this.toolbar_.updateFps(fps),
onError: (err) => console.error('[GameView]', err.message),
});
this.toolbar_ = new GameViewToolbar(container, {
onPlay: () => this.play(),
- onPause: () => this.gameManager_.pause(),
- onStep: () => this.gameManager_.step(),
- onStop: () => this.gameManager_.stop(),
- onResolutionChange: () => this.updateCanvasSize(),
+ onStop: () => this.stop(),
+ onResolutionChange: () => this.updateIframeSize(),
});
this.buildUI();
}
- setApp(app: App): void {
- this.app_ = app;
- if (app.wasmModule) {
- this.gameManager_.setEditorModule(app.wasmModule);
- }
- }
-
resize(): void {
- this.updateCanvasSize();
+ this.updateIframeSize();
}
dispose(): void {
this.gameManager_.dispose();
this.toolbar_.dispose();
- if (this.resizeObserver_) {
- this.resizeObserver_.disconnect();
- this.resizeObserver_ = null;
- }
}
private buildUI(): void {
@@ -73,40 +50,33 @@ export class GameViewPanel implements PanelInstance, Resizable, AppAware {
</div>
</div>
<div class="es-gameview-viewport">
- <canvas id="${this.canvasId_}" class="es-gameview-canvas"></canvas>
+ <iframe class="es-gameview-iframe"></iframe>
<div class="es-gameview-placeholder">
<span>Click Play to start</span>
</div>
</div>
`;
- this.canvas_ = this.container_.querySelector(`#${this.canvasId_}`)!;
+ this.iframe_ = this.container_.querySelector('.es-gameview-iframe')!;
this.viewport_ = this.container_.querySelector('.es-gameview-viewport')!;
this.placeholder_ = this.container_.querySelector('.es-gameview-placeholder')!;
this.toolbar_.setup();
+ this.updateIframeSize();
+ }
- if (this.projectPath_) {
- const projectDir = this.projectPath_.replace(/\\/g, '/').replace(/\/[^/]+$/, '');
- this.gameManager_.setProjectDir(projectDir);
+ private async play(): Promise<void> {
+ const url = await this.gameManager_.play();
+ if (url && this.iframe_) {
+ this.iframe_.src = url;
}
-
- this.gameManager_.setCanvasSelector(`#${this.canvasId_}`);
-
- this.resizeObserver_ = new ResizeObserver(() => this.updateCanvasSize());
- this.resizeObserver_.observe(this.viewport_);
-
- this.updateCanvasSize();
}
- private play(): void {
- if (!this.app_?.wasmModule) {
- console.warn('[GameView] WASM module not available yet');
- return;
+ private async stop(): Promise<void> {
+ if (this.iframe_) {
+ this.iframe_.src = 'about:blank';
}
- this.gameManager_.setEditorModule(this.app_.wasmModule);
- this.updateCanvasSize();
- this.gameManager_.play(this.store_.scene);
+ await this.gameManager_.stop();
}
private onStateChange(state: GameState): void {
@@ -115,16 +85,15 @@ export class GameViewPanel implements PanelInstance, Resizable, AppAware {
if (this.placeholder_) {
this.placeholder_.style.display = state === 'stopped' ? 'flex' : 'none';
}
- if (this.canvas_) {
- this.canvas_.style.display = state === 'stopped' ? 'none' : 'block';
+ if (this.iframe_) {
+ this.iframe_.style.display = state === 'stopped' ? 'none' : 'block';
}
}
- private updateCanvasSize(): void {
- if (!this.canvas_ || !this.viewport_) return;
+ private updateIframeSize(): void {
+ if (!this.iframe_ || !this.viewport_) return;
const rect = this.viewport_.getBoundingClientRect();
- const dpr = window.devicePixelRatio || 1;
const preset = this.toolbar_.currentPreset;
if (preset.width > 0 && preset.height > 0) {
@@ -142,15 +111,11 @@ export class GameViewPanel implements PanelInstance, Resizable, AppAware {
displayH = displayW / targetAspect;
}
- this.canvas_.style.width = `${displayW}px`;
- this.canvas_.style.height = `${displayH}px`;
- this.canvas_.width = displayW * dpr;
- this.canvas_.height = displayH * dpr;
+ this.iframe_.style.width = `${displayW}px`;
+ this.iframe_.style.height = `${displayH}px`;
} else {
- this.canvas_.style.width = `${rect.width}px`;
- this.canvas_.style.height = `${rect.height}px`;
- this.canvas_.width = rect.width * dpr;
- this.canvas_.height = rect.height * dpr;
+ this.iframe_.style.width = '100%';
+ this.iframe_.style.height = '100%';
}
}
}
diff --git a/editor/src/panels/game-view/GameViewToolbar.ts b/editor/src/panels/game-view/GameViewToolbar.ts
index 6038fc26d..773330b5e 100644
--- a/editor/src/panels/game-view/GameViewToolbar.ts
+++ b/editor/src/panels/game-view/GameViewToolbar.ts
@@ -17,8 +17,6 @@ const RESOLUTION_PRESETS: ResolutionPreset[] = [
export interface GameViewToolbarCallbacks {
onPlay(): void;
- onPause(): void;
- onStep(): void;
onStop(): void;
onResolutionChange(preset: ResolutionPreset): void;
}
@@ -27,8 +25,6 @@ export class GameViewToolbar {
private container_: HTMLElement;
private callbacks_: GameViewToolbarCallbacks;
private playBtn_: HTMLButtonElement | null = null;
- private pauseBtn_: HTMLButtonElement | null = null;
- private stepBtn_: HTMLButtonElement | null = null;
private stopBtn_: HTMLButtonElement | null = null;
private fpsDisplay_: HTMLSpanElement | null = null;
private resolutionSelect_: HTMLSelectElement | null = null;
@@ -48,8 +44,6 @@ export class GameViewToolbar {
<div class="es-gameview-toolbar">
<div class="es-gameview-controls">
<button class="es-btn es-btn-icon es-gameview-play" title="Play">${icons.play(14)}</button>
- <button class="es-btn es-btn-icon es-gameview-pause" title="Pause" disabled>${icons.pause(14)}</button>
- <button class="es-btn es-btn-icon es-gameview-step" title="Step Forward" disabled>${icons.stepForward(14)}</button>
<button class="es-btn es-btn-icon es-gameview-stop" title="Stop" disabled>${icons.stop(14)}</button>
</div>
<div class="es-toolbar-divider"></div>
@@ -61,15 +55,11 @@ export class GameViewToolbar {
setup(): void {
this.playBtn_ = this.container_.querySelector('.es-gameview-play');
- this.pauseBtn_ = this.container_.querySelector('.es-gameview-pause');
- this.stepBtn_ = this.container_.querySelector('.es-gameview-step');
this.stopBtn_ = this.container_.querySelector('.es-gameview-stop');
this.fpsDisplay_ = this.container_.querySelector('.es-gameview-fps');
this.resolutionSelect_ = this.container_.querySelector('.es-gameview-resolution');
this.playBtn_?.addEventListener('click', () => this.callbacks_.onPlay());
- this.pauseBtn_?.addEventListener('click', () => this.callbacks_.onPause());
- this.stepBtn_?.addEventListener('click', () => this.callbacks_.onStep());
this.stopBtn_?.addEventListener('click', () => this.callbacks_.onStop());
this.resolutionSelect_?.addEventListener('change', () => {
@@ -83,12 +73,9 @@ export class GameViewToolbar {
if (!this.playBtn_) return;
const playing = state === 'playing';
- const paused = state === 'paused';
const stopped = state === 'stopped';
this.playBtn_.disabled = playing;
- this.pauseBtn_!.disabled = !playing;
- this.stepBtn_!.disabled = !paused;
this.stopBtn_!.disabled = stopped;
this.playBtn_.classList.toggle('es-active', playing);
@@ -105,8 +92,6 @@ export class GameViewToolbar {
dispose(): void {
this.playBtn_ = null;
- this.pauseBtn_ = null;
- this.stepBtn_ = null;
this.stopBtn_ = null;
this.fpsDisplay_ = null;
this.resolutionSelect_ = null;
diff --git a/editor/src/preview/PreviewService.ts b/editor/src/preview/PreviewService.ts
index 4d9b6a5c2..c027b9717 100644
--- a/editor/src/preview/PreviewService.ts
+++ b/editor/src/preview/PreviewService.ts
@@ -62,6 +62,27 @@ export class PreviewService {
await invoke('open_preview_in_browser', { port });
}
+ async startServer(scene: SceneData, compiledScript?: string, spineVersion?: string, enablePhysics?: boolean, physicsConfig?: { gravityX: number; gravityY: number; fixedTimestep: number; subStepCount: number }, runtimeConfig?: Record<string, unknown>): Promise<number | null> {
+ const fs = this.getNativeFS();
+ const invoke = this.getTauriInvoke();
+
+ if (!fs || !invoke) {
+ console.error('PreviewService: Native APIs not available');
+ return null;
+ }
+
+ await this.stopPreview();
+
+ await this.preparePreviewFiles(fs, scene, compiledScript, spineVersion, enablePhysics, physicsConfig, runtimeConfig);
+
+ const port = await invoke('start_preview_server', {
+ projectDir: this.projectDir_,
+ port: this.port_,
+ }) as number;
+
+ return port;
+ }
+
async stopPreview(): Promise<void> {
const invoke = this.getTauriInvoke();
if (invoke) {
diff --git a/editor/src/styles/builder.css b/editor/src/styles/builder.css
index 99fb2bdfe..0dd1138ab 100644
--- a/editor/src/styles/builder.css
+++ b/editor/src/styles/builder.css
@@ -642,228 +642,6 @@
border-color: #3d9ee0;
}
-/* =============================================================================
- * Output Panel
- * ============================================================================= */
-
-.es-output-container {
- height: 100%;
-}
-
-.es-output-panel {
- display: flex;
- flex-direction: column;
- height: 100%;
- background: var(--es-bg-primary);
-}
-
-.es-output-header {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 4px 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
- flex-shrink: 0;
-}
-
-.es-output-toolbar {
- display: flex;
- align-items: center;
- gap: 6px;
- flex: 1;
- min-width: 0;
-}
-
-.es-output-filters {
- display: flex;
- gap: 2px;
- flex-shrink: 0;
-}
-
-.es-output-filter-btn {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- padding: 2px 6px;
- font-size: 11px;
- border-radius: 3px;
- color: var(--es-text-secondary);
- opacity: 0.5;
- cursor: pointer;
-}
-
-.es-output-filter-btn.es-active {
- opacity: 1;
- color: var(--es-text-primary);
-}
-
-.es-output-filter-command.es-active { color: var(--es-accent); }
-.es-output-filter-stderr.es-active { color: #e5c07b; }
-.es-output-filter-error.es-active { color: var(--es-danger); }
-.es-output-filter-success.es-active { color: var(--es-success); }
-
-.es-output-filter-count {
- font-size: 10px;
- opacity: 0.7;
- min-width: 8px;
- text-align: center;
-}
-
-.es-output-search-wrap {
- flex: 1;
- min-width: 60px;
- max-width: 200px;
-}
-
-.es-output-search {
- width: 100%;
- padding: 2px 6px;
- font-size: 11px;
- border: 1px solid var(--es-border);
- border-radius: 3px;
- background: var(--es-bg-primary);
- color: var(--es-text-primary);
- outline: none;
-}
-
-.es-output-search:focus {
- border-color: var(--es-accent);
-}
-
-.es-output-actions {
- display: flex;
- gap: 2px;
- flex-shrink: 0;
-}
-
-.es-output-scroll-btn.es-active {
- color: var(--es-accent);
-}
-
-.es-output-content {
- flex: 1;
- overflow: auto;
- padding: 8px;
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 12px;
- user-select: text;
- cursor: text;
-}
-
-.es-output-empty {
- color: var(--es-text-secondary);
- text-align: center;
- padding: 20px;
-}
-
-/* =============================================================================
- * Output Panel Lines
- * ============================================================================= */
-
-.es-output-line {
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 12px;
- line-height: 1.5;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.es-output-badge {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 18px;
- height: 16px;
- padding: 0 5px;
- margin-right: 6px;
- border-radius: 8px;
- background: var(--es-accent);
- color: #fff;
- font-size: 10px;
- font-weight: 600;
- line-height: 1;
- vertical-align: middle;
-}
-
-.es-output-command {
- color: var(--es-accent);
- font-weight: 500;
- margin-top: 8px;
-}
-
-.es-output-stdout {
- color: var(--es-text-primary);
-}
-
-.es-output-stderr {
- color: #e5c07b;
-}
-
-.es-output-error {
- color: var(--es-danger);
-}
-
-.es-output-success {
- color: var(--es-success);
-}
-
-.es-output-timestamp {
- color: var(--es-text-secondary);
- opacity: 0.6;
- margin-right: 8px;
- font-size: 11px;
- user-select: none;
-}
-
-.es-output-group-header {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 0 2px;
- cursor: pointer;
- user-select: none;
- border-top: 1px solid var(--es-border);
- margin-top: 4px;
-}
-
-.es-output-group-header:first-child {
- border-top: none;
- margin-top: 0;
-}
-
-.es-output-group-toggle {
- display: inline-flex;
- transition: transform 0.15s;
-}
-
-.es-output-group-header.es-collapsed .es-output-group-toggle {
- transform: rotate(-90deg);
-}
-
-.es-output-context-menu {
- position: fixed;
- z-index: 10000;
- min-width: 120px;
- padding: 4px 0;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
-}
-
-.es-output-context-item {
- padding: 5px 12px;
- font-size: 12px;
- cursor: pointer;
- color: var(--es-text-primary);
-}
-
-.es-output-context-item:hover {
- background: var(--es-accent);
- color: #fff;
-}
-
/* =============================================================================
* Build Settings Dialog - Three Column Layout
* ============================================================================= */
diff --git a/editor/src/styles/editor.css b/editor/src/styles/editor.css
deleted file mode 100644
index 063246ee9..000000000
--- a/editor/src/styles/editor.css
+++ /dev/null
@@ -1,5652 +0,0 @@
-/**
- * ESEngine Web Editor Styles
- */
-
-/* =============================================================================
- * Variables
- * ============================================================================= */
-
-:root {
- --es-bg-primary: #1e1e1e;
- --es-bg-secondary: #252526;
- --es-bg-tertiary: #2d2d30;
- --es-bg-hover: #3e3e42;
- --es-border: #3c3c3c;
- --es-text-primary: #cccccc;
- --es-text-secondary: #8c8c8c;
- --es-accent: #0078d4;
- --es-accent-hover: #1084d8;
- --es-danger: #f44336;
- --es-success: #4caf50;
- --es-warning: #f0ad4e;
- --es-error: #d9534f;
- --es-input-bg: #2d2d2d;
- --es-text-disabled: #555555;
- --es-text-muted: #737373;
- --es-scrollbar-track: #1e1e1e;
- --es-scrollbar-thumb: #424242;
- --es-scrollbar-thumb-hover: #555555;
- --es-accent-gold: #d19a66;
- --es-prefab: #4fc1ff;
- --es-drag: #61afef;
- --es-selection-bg: rgba(209, 154, 102, 0.2);
- --es-radius-sm: 3px;
- --es-radius-md: 4px;
- --es-radius-lg: 6px;
- --es-font-xs: 10px;
- --es-font-sm: 11px;
- --es-font-md: 12px;
- --es-font-base: 13px;
- --es-font-lg: 14px;
-}
-
-*, *::before, *::after {
- box-sizing: border-box;
-}
-
-/* =============================================================================
- * Scrollbar
- * ============================================================================= */
-
-::-webkit-scrollbar {
- width: 8px;
- height: 8px;
-}
-
-::-webkit-scrollbar-track {
- background: var(--es-scrollbar-track);
-}
-
-::-webkit-scrollbar-thumb {
- background: var(--es-scrollbar-thumb);
- border-radius: 4px;
-}
-
-::-webkit-scrollbar-thumb:hover {
- background: var(--es-scrollbar-thumb-hover);
-}
-
-::-webkit-scrollbar-corner {
- background: var(--es-scrollbar-track);
-}
-
-/* =============================================================================
- * SVG Icons
- * ============================================================================= */
-
-.es-editor svg {
- display: inline-block;
- vertical-align: middle;
-}
-
-.es-btn-icon svg {
- stroke: var(--es-text-primary);
-}
-
-.es-btn-icon:hover svg {
- stroke: #e0e0e0;
-}
-
-.es-btn-icon.es-active {
- background: var(--es-accent);
- border-radius: 3px;
-}
-
-.es-btn-icon.es-active svg {
- stroke: white;
-}
-
-.es-hierarchy-visibility svg,
-.es-hierarchy-expand svg,
-.es-hierarchy-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-hierarchy-item.es-selected .es-hierarchy-icon svg {
- stroke: var(--es-accent-gold);
-}
-
-.es-btn-remove svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-btn-remove:hover svg {
- stroke: var(--es-danger);
-}
-
-/* =============================================================================
- * Editor Layout
- * ============================================================================= */
-
-.es-editor {
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 100%;
- background: var(--es-bg-primary);
- color: var(--es-text-primary);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- font-size: 13px;
-}
-
-/* =============================================================================
- * Menubar
- * ============================================================================= */
-
-.es-editor-menubar {
- display: flex;
- align-items: center;
- height: 32px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
- user-select: none;
-}
-
-.es-menubar-logo {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 32px;
- padding: 0 8px;
-}
-
-.es-menubar-logo svg {
- width: 20px;
- height: 20px;
- border-radius: 3px;
-}
-
-.es-menubar-spacer {
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
-.es-menubar-scene-name {
- font-size: 12px;
- color: var(--es-text-secondary);
- opacity: 0.8;
-}
-
-.es-menu {
- position: relative;
- height: 100%;
-}
-
-.es-menu-trigger {
- display: flex;
- align-items: center;
- height: 100%;
- padding: 0 12px;
- font-size: 12px;
- color: var(--es-text-primary);
- cursor: pointer;
- transition: background 0.1s;
-}
-
-.es-menu-trigger:hover,
-.es-menu.es-open .es-menu-trigger {
- background: var(--es-bg-hover);
-}
-
-.es-menu-dropdown {
- display: none;
- position: absolute;
- top: 100%;
- left: 0;
- min-width: 200px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
- z-index: 1000;
- padding: 4px 0;
-}
-
-.es-menu.es-open .es-menu-dropdown {
- display: block;
-}
-
-.es-menu-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 6px 12px;
- font-size: 12px;
- color: var(--es-text-primary);
- cursor: pointer;
- transition: background 0.1s;
-}
-
-.es-menu-item:hover {
- background: var(--es-accent);
- color: white;
-}
-
-.es-menu-item:hover .es-menu-item-shortcut {
- color: rgba(255, 255, 255, 0.8);
-}
-
-.es-menu-item.es-disabled {
- color: var(--es-text-secondary);
- cursor: not-allowed;
- pointer-events: none;
-}
-
-.es-menu-item.es-disabled:hover {
- background: transparent;
- color: var(--es-text-secondary);
-}
-
-.es-menu-item.es-disabled:hover .es-menu-item-shortcut {
- color: var(--es-text-secondary);
-}
-
-.es-menu-item-text {
- flex: 1;
-}
-
-.es-menu-item-shortcut {
- margin-left: 24px;
- font-size: 11px;
- color: var(--es-text-secondary);
-}
-
-.es-menu-divider {
- height: 1px;
- margin: 4px 8px;
- background: var(--es-border);
-}
-
-.es-editor-menubar .es-btn-preview {
- display: flex;
- align-items: center;
- gap: 6px;
- margin: 0 8px;
- padding: 4px 12px;
- background: var(--es-success);
- border: none;
- color: white;
- font-size: 11px;
- font-weight: 500;
- border-radius: 3px;
- cursor: pointer;
- transition: background 0.15s;
-}
-
-.es-editor-menubar .es-btn-preview:hover {
- background: #5cb85c;
-}
-
-.es-editor-menubar .es-btn-preview svg {
- stroke: white;
-}
-
-.es-editor-menubar .es-btn-preview.es-btn-danger {
- background: var(--es-error);
-}
-
-.es-editor-menubar .es-btn-preview.es-btn-danger:hover {
- background: #c9302c;
-}
-
-.es-editor-dock {
- flex: 1;
- overflow: hidden;
-}
-
-.dockview-theme-dark {
- --dv-background-color: var(--es-bg-primary);
- --dv-group-view-background-color: var(--es-bg-primary);
- --dv-tabs-and-actions-container-background-color: var(--es-bg-secondary);
- --dv-tabs-and-actions-container-height: 30px;
- --dv-tabs-and-actions-container-font-size: 12px;
- --dv-activegroup-visiblepanel-tab-background-color: var(--es-bg-primary);
- --dv-activegroup-hiddenpanel-tab-background-color: var(--es-bg-secondary);
- --dv-inactivegroup-visiblepanel-tab-background-color: var(--es-bg-tertiary);
- --dv-inactivegroup-hiddenpanel-tab-background-color: var(--es-bg-secondary);
- --dv-activegroup-visiblepanel-tab-color: var(--es-accent-gold);
- --dv-activegroup-hiddenpanel-tab-color: var(--es-text-secondary);
- --dv-inactivegroup-visiblepanel-tab-color: var(--es-text-primary);
- --dv-inactivegroup-hiddenpanel-tab-color: var(--es-text-secondary);
- --dv-separator-border: var(--es-border);
- --dv-tab-divider-color: var(--es-border);
- --dv-active-sash-color: var(--es-accent);
- --dv-drag-over-background-color: rgba(0, 120, 212, 0.15);
- --dv-drag-over-border-color: var(--es-accent);
-}
-
-/* =============================================================================
- * Hierarchy Panel
- * ============================================================================= */
-
-.es-hierarchy-panel {
- height: 100%;
- display: flex;
- flex-direction: column;
- background: var(--es-bg-primary);
-}
-
-.es-hierarchy-toolbar {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-hierarchy-search {
- flex: 1;
- min-width: 80px;
-}
-
-.es-hierarchy-columns {
- display: flex;
- align-items: center;
- padding: 4px 8px;
- background: var(--es-bg-tertiary);
- border-bottom: 1px solid var(--es-border);
- font-size: 11px;
- color: var(--es-text-secondary);
-}
-
-.es-hierarchy-col-visibility,
-.es-hierarchy-col-lock {
- width: 20px;
- text-align: center;
-}
-
-.es-hierarchy-col-label {
- flex: 1;
- padding-left: 24px;
-}
-
-.es-hierarchy-col-type {
- width: 60px;
- text-align: right;
-}
-
-.es-hierarchy-tree {
- flex: 1;
- overflow: auto;
- padding: 4px 0;
-}
-
-.es-hierarchy-scroll-content {
- position: relative;
- min-height: 100%;
-}
-
-.es-hierarchy-visible-window {
- position: absolute;
- left: 0;
- right: 0;
- will-change: transform;
-}
-
-.es-hierarchy-item {
- user-select: none;
- position: relative;
-}
-
-.es-hierarchy-row {
- display: flex;
- align-items: center;
- padding: 3px 8px;
- min-width: fit-content;
- cursor: pointer;
- border-left: 2px solid transparent;
- position: relative;
- height: 22px;
- box-sizing: border-box;
- transition: background 0.15s;
-}
-
-.es-hierarchy-row:hover {
- background: var(--es-bg-hover);
-}
-
-.es-hierarchy-item.es-selected > .es-hierarchy-row {
- background: rgba(209, 154, 102, 0.3);
- border-left-color: var(--es-accent-gold);
-}
-
-.es-hierarchy-item.es-selected > .es-hierarchy-row .es-hierarchy-name {
- color: var(--es-accent-gold);
-}
-
-.es-hierarchy-item.es-drag-over > .es-hierarchy-row {
- background: rgba(97, 175, 239, 0.3);
- border-left-color: var(--es-drag);
-}
-
-.es-hierarchy-tree.es-drag-over {
- background: rgba(97, 175, 239, 0.1);
- outline: 1px dashed var(--es-drag);
- outline-offset: -2px;
-}
-
-.es-hierarchy-item.es-drop-before > .es-hierarchy-row::before {
- content: '';
- position: absolute;
- top: 0;
- left: 20px;
- right: 0;
- height: 2px;
- background: var(--es-drag);
- pointer-events: none;
-}
-
-.es-hierarchy-item.es-drop-after > .es-hierarchy-row::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 20px;
- right: 0;
- height: 2px;
- background: var(--es-drag);
- pointer-events: none;
-}
-
-.es-hierarchy-item.es-drop-inside > .es-hierarchy-row {
- background: rgba(97, 175, 239, 0.3);
- border-left-color: var(--es-drag);
-}
-
-.es-hierarchy-item.es-dragging {
- opacity: 0.5;
-}
-
-.es-hierarchy-visibility {
- width: 16px;
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
-}
-
-.es-hierarchy-visibility svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-hierarchy-expand {
- width: 16px;
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- transition: transform 0.15s;
-}
-
-.es-hierarchy-expand svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-hierarchy-item.es-expanded > .es-hierarchy-row > .es-hierarchy-expand {
- transform: rotate(90deg);
-}
-
-.es-hierarchy-spacer {
- width: 16px;
- flex-shrink: 0;
-}
-
-.es-hierarchy-icon {
- width: 18px;
- flex-shrink: 0;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- margin-right: 4px;
-}
-
-.es-hierarchy-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-hierarchy-name {
- flex: 1;
- min-width: 80px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: 12px;
-}
-
-.es-hierarchy-type {
- width: 60px;
- flex-shrink: 0;
- text-align: right;
- font-size: 11px;
- color: var(--es-text-secondary);
-}
-
-.es-hierarchy-rename-input {
- width: 100%;
- height: 18px;
- padding: 0 4px;
- margin: 0;
- border: 1px solid var(--es-accent-gold);
- border-radius: 2px;
- background: var(--es-bg-primary);
- color: var(--es-text-primary);
- font-size: 12px;
- font-family: inherit;
- outline: none;
- box-sizing: border-box;
-}
-
-.es-hierarchy-item.es-entity-hidden > .es-hierarchy-row {
- opacity: 0.4;
-}
-
-.es-prefab-edit-bar {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 8px;
- background: rgba(79, 193, 255, 0.1);
- border-bottom: 1px solid rgba(79, 193, 255, 0.25);
- font-size: 11px;
- color: var(--es-prefab);
-}
-
-.es-prefab-back-btn {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 2px 8px;
- font-size: 11px;
- color: var(--es-text-primary);
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 3px;
- cursor: pointer;
-}
-
-.es-prefab-back-btn:hover {
- background: var(--es-bg-hover);
-}
-
-.es-prefab-back-btn svg {
- transform: rotate(180deg);
-}
-
-.es-prefab-edit-name {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- font-weight: 600;
-}
-
-.es-prefab-edit-name svg {
- stroke: var(--es-prefab);
-}
-
-.es-hierarchy-item.es-prefab-root > .es-hierarchy-row .es-hierarchy-name {
- color: var(--es-prefab);
- font-weight: 600;
-}
-
-.es-hierarchy-item.es-prefab-root > .es-hierarchy-row .es-hierarchy-icon svg {
- stroke: var(--es-prefab);
-}
-
-.es-hierarchy-item.es-prefab-child > .es-hierarchy-row .es-hierarchy-name {
- color: #87d7ff;
-}
-
-.es-search-highlight {
- background: rgba(229, 192, 123, 0.3);
- color: #e5c07b;
- font-weight: 600;
- padding: 0 1px;
- border-radius: 2px;
-}
-
-.es-hierarchy-item.es-search-selected {
- background: rgba(97, 175, 239, 0.2);
-}
-
-.es-hierarchy-item.es-search-selected > .es-hierarchy-row {
- border-left: 2px solid var(--es-drag);
-}
-
-.es-hierarchy-footer {
- padding: 6px 12px;
- font-size: 11px;
- color: var(--es-text-secondary);
- background: var(--es-bg-secondary);
- border-top: 1px solid var(--es-border);
-}
-
-/* =============================================================================
- * Inspector Panel
- * ============================================================================= */
-
-.es-inspector-panel {
- height: 100%;
- display: flex;
- flex-direction: column;
- background: var(--es-bg-primary);
-}
-
-.es-inspector-toolbar {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-inspector-content {
- flex: 1;
- overflow: auto;
- padding: 4px;
-}
-
-.es-inspector-empty {
- color: var(--es-text-secondary);
- text-align: center;
- padding: 20px;
-}
-
-.es-inspector-multi-header {
- padding: 16px;
- text-align: center;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- margin-bottom: 8px;
-}
-
-.es-inspector-multi-header h3 {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- margin: 0 0 8px 0;
- color: var(--es-text-primary);
- font-size: 14px;
- font-weight: 600;
-}
-
-.es-inspector-multi-header p {
- margin: 0;
- color: var(--es-text-secondary);
- font-size: 12px;
-}
-
-.es-inspector-entity-header {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 6px 8px;
- margin-bottom: 4px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
-}
-
-.es-entity-icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-entity-icon svg {
- stroke: var(--es-accent-gold);
-}
-
-.es-entity-name {
- flex: 1;
- font-weight: 600;
- font-size: 12px;
- color: var(--es-accent-gold);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-entity-visibility {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- padding: 2px;
- border-radius: 3px;
-}
-
-.es-entity-visibility:hover {
- background: var(--es-bg-hover);
-}
-
-.es-entity-visibility svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-entity-id {
- font-size: 10px;
- color: var(--es-text-secondary);
-}
-
-.es-entity-name-input {
- flex: 1;
- min-width: 0;
- padding: 2px 4px;
- font-size: 12px;
- font-weight: 600;
- color: var(--es-accent-gold);
- background: transparent;
- border: 1px solid transparent;
- border-radius: 2px;
- outline: none;
-}
-
-.es-entity-name-input:hover {
- background: var(--es-bg-primary);
-}
-
-.es-entity-name-input:focus {
- background: var(--es-bg-primary);
- border-color: var(--es-accent);
-}
-
-.es-prefab-info-bar {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 8px;
- margin-bottom: 4px;
- background: rgba(79, 193, 255, 0.08);
- border: 1px solid rgba(79, 193, 255, 0.25);
- border-radius: 3px;
- font-size: 11px;
- color: var(--es-prefab);
-}
-
-.es-prefab-info-bar svg {
- stroke: var(--es-prefab);
- flex-shrink: 0;
-}
-
-.es-prefab-info-path {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-prefab-info-link {
- cursor: pointer;
- text-decoration: underline;
- text-decoration-color: transparent;
- transition: text-decoration-color 0.15s;
-}
-
-.es-prefab-info-link:hover {
- text-decoration-color: var(--es-prefab);
-}
-
-.es-prefab-info-bar .es-btn {
- font-size: 10px;
- padding: 1px 6px;
- border: 1px solid rgba(79, 193, 255, 0.3);
- color: var(--es-prefab);
- background: transparent;
- cursor: pointer;
- border-radius: 3px;
-}
-
-.es-prefab-info-bar .es-btn:hover {
- background: rgba(79, 193, 255, 0.15);
-}
-
-.es-property-row.es-overridden .es-property-label {
- font-weight: 700;
- color: var(--es-prefab);
-}
-
-.es-property-row.es-overridden .es-property-label::before {
- content: '';
- display: inline-block;
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--es-prefab);
- margin-right: 4px;
- vertical-align: middle;
-}
-
-.es-component-section {
- background: var(--es-bg-secondary);
- margin-bottom: 4px;
- overflow: hidden;
- border: 1px solid var(--es-border);
-}
-
-.es-component-tag-row {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 8px;
- background: var(--es-bg-tertiary);
-}
-
-.es-component-tag-row .es-component-title {
- flex: 1;
-}
-
-.es-component-tag-row:hover {
- background: var(--es-bg-hover);
-}
-
-.es-component-header {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 8px;
- background: var(--es-bg-tertiary);
- cursor: pointer;
- border-bottom: 1px solid transparent;
-}
-
-.es-collapsible.es-expanded .es-component-header {
- border-bottom-color: var(--es-border);
-}
-
-.es-component-header:hover {
- background: var(--es-bg-hover);
-}
-
-.es-collapse-icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 14px;
- height: 14px;
- transition: transform 0.15s;
-}
-
-.es-collapsible:not(.es-expanded) .es-collapse-icon {
- transform: rotate(-90deg);
-}
-
-.es-collapse-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-component-icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-component-icon svg {
- stroke: var(--es-accent-gold);
-}
-
-.es-component-title {
- flex: 1;
- font-weight: 500;
- font-size: 11px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-collapsible-content {
- display: block;
-}
-
-.es-collapsible:not(.es-expanded) .es-collapsible-content {
- display: none;
-}
-
-.es-component-properties {
- padding: 6px 8px;
-}
-
-.es-component-raw {
- padding: 6px;
- font-size: 10px;
- overflow: auto;
- background: var(--es-bg-primary);
- margin: 0;
-}
-
-.es-property-row {
- display: flex;
- align-items: center;
- min-height: 24px;
- margin-bottom: 4px;
-}
-
-.es-property-row:last-child {
- margin-bottom: 0;
-}
-
-.es-property-label {
- width: 35%;
- max-width: 80px;
- flex-shrink: 1;
- padding-right: 8px;
- color: var(--es-text-secondary);
- font-size: 11px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- line-height: 1.3;
-}
-
-.es-property-reset {
- flex-shrink: 0;
- margin-left: 2px;
- padding: 0;
- width: 16px;
- height: 16px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- background: transparent;
- border: none;
- opacity: 0;
- cursor: pointer;
- color: var(--es-text-secondary);
-}
-
-.es-property-row:hover .es-property-reset {
- opacity: 0.5;
-}
-
-.es-property-reset:hover {
- opacity: 1 !important;
-}
-
-.es-property-editor {
- flex: 1;
- display: flex;
- align-items: center;
-}
-
-.es-btn-reset-size {
- flex-shrink: 0;
- margin-left: 4px;
- padding: 2px !important;
- min-width: 18px !important;
- background: transparent !important;
- border: none !important;
- opacity: 0.5;
- cursor: pointer;
-}
-
-.es-btn-reset-size:hover {
- opacity: 1;
-}
-
-.es-btn-reset-size svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-add-component-wrapper {
- margin-top: 8px;
- padding: 0 4px;
-}
-
-.es-btn-add-component {
- width: 100%;
- padding: 6px 8px;
- background: var(--es-bg-tertiary);
- border: 1px dashed var(--es-border);
- color: var(--es-text-secondary);
- font-size: 11px;
-}
-
-.es-btn-add-component:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
- border-style: solid;
-}
-
-.es-inspector-footer {
- padding: 6px 12px;
- font-size: 11px;
- color: var(--es-text-secondary);
- background: var(--es-bg-secondary);
- border-top: 1px solid var(--es-border);
-}
-
-/* Asset Inspector */
-
-.es-inspector-asset-header {
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 8px 10px;
- margin-bottom: 4px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
-}
-
-.es-asset-header-icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-asset-header-icon svg {
- stroke: var(--es-accent);
-}
-
-.es-asset-header-name {
- flex: 1;
- font-weight: 600;
- font-size: 13px;
- color: var(--es-text-primary);
- word-break: break-all;
-}
-
-.es-asset-meta-info {
- padding: 2px 10px 6px;
- background: var(--es-bg-secondary);
- border-left: 1px solid var(--es-border);
- border-right: 1px solid var(--es-border);
- border-bottom: 1px solid var(--es-border);
- margin-top: -5px;
- margin-bottom: 4px;
-}
-
-.es-asset-meta-uuid {
- font-size: 11px;
- color: var(--es-text-muted);
- cursor: pointer;
- user-select: all;
-}
-
-.es-asset-meta-uuid:hover {
- color: var(--es-text-secondary);
-}
-
-.es-asset-preview-section {
- margin-bottom: 4px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
-}
-
-.es-asset-preview-loading,
-.es-asset-preview-error {
- padding: 20px;
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 12px;
-}
-
-.es-asset-preview-error {
- color: #e74c3c;
-}
-
-.es-image-preview-container {
- padding: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- background: repeating-conic-gradient(#222 0% 25%, #2a2a2a 0% 50%) 50% / 16px 16px;
- min-height: 100px;
- max-height: 200px;
-}
-
-.es-image-preview {
- max-width: 100%;
- max-height: 180px;
- object-fit: contain;
- border: 1px solid var(--es-border);
-}
-
-.es-property-value {
- flex: 1;
- font-size: 11px;
- color: var(--es-text-primary);
- background: var(--es-bg-tertiary);
- padding: 4px 8px;
- border-radius: 3px;
-}
-
-.es-code-preview {
- margin: 0;
- padding: 10px;
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 11px;
- line-height: 1.5;
- color: var(--es-text-secondary);
- background: var(--es-bg-primary);
- overflow: auto;
- max-height: 150px;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.es-asset-actions {
- padding: 8px;
- display: flex;
- justify-content: center;
-}
-
-.es-btn-primary {
- background: var(--es-accent);
- color: white;
- border: none;
- padding: 6px 16px;
- font-size: 12px;
- border-radius: 4px;
- cursor: pointer;
-}
-
-.es-btn-primary:hover {
- background: #5a9cf5;
-}
-
-/* =============================================================================
- * SceneView Panel
- * ============================================================================= */
-
-.es-sceneview-panel {
- height: 100%;
- display: flex;
- flex-direction: column;
-}
-
-.es-sceneview-tools {
- display: flex;
- align-items: center;
- gap: 8px;
-}
-
-.es-zoom-display {
- font-size: 11px;
- color: var(--es-text-secondary);
- min-width: 40px;
-}
-
-.es-sceneview-viewport {
- flex: 1;
- position: relative;
- overflow: hidden;
- background: #1a1a1a;
-}
-
-.es-sceneview-webgl {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: block;
- pointer-events: none;
-}
-
-.es-sceneview-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- display: block;
- pointer-events: auto;
-}
-
-.es-sceneview-canvas {
- display: block;
-}
-
-.es-gizmo-toolbar {
- display: flex;
- gap: 2px;
- background: var(--es-bg-tertiary);
- border-radius: 4px;
- padding: 2px;
-}
-
-.es-gizmo-btn {
- background: transparent;
- border: none;
- border-radius: 3px;
- padding: 4px;
- opacity: 0.6;
-}
-
-.es-gizmo-btn:hover {
- background: var(--es-bg-hover);
- opacity: 1;
-}
-
-.es-gizmo-btn.es-active {
- background: var(--es-accent);
- opacity: 1;
-}
-
-.es-gizmo-btn.es-active svg {
- stroke: white;
-}
-
-.es-toolbar-divider {
- width: 1px;
- height: 20px;
- background: var(--es-border);
- margin: 0 4px;
-}
-
-/* Gizmo Settings Dropdown */
-.es-gizmo-settings-wrapper {
- position: relative;
-}
-
-.es-gizmo-settings-dropdown {
- position: absolute;
- top: 100%;
- right: 0;
- margin-top: 4px;
- min-width: 180px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- padding: 8px;
- z-index: 1000;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
-}
-
-.es-settings-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 4px 0;
- gap: 8px;
-}
-
-.es-settings-label {
- font-size: 11px;
- color: var(--es-text-secondary);
- white-space: nowrap;
-}
-
-.es-settings-checkbox {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 11px;
- color: var(--es-text-primary);
- cursor: pointer;
-}
-
-.es-settings-checkbox input[type="checkbox"] {
- width: 14px;
- height: 14px;
- cursor: pointer;
- accent-color: var(--es-accent);
-}
-
-.es-settings-divider {
- height: 1px;
- background: var(--es-border);
- margin: 6px 0;
-}
-
-.es-color-input {
- width: 32px;
- height: 22px;
- padding: 0;
- border: 1px solid var(--es-border);
- border-radius: 3px;
- background: transparent;
- cursor: pointer;
-}
-
-.es-color-input::-webkit-color-swatch-wrapper {
- padding: 2px;
-}
-
-.es-color-input::-webkit-color-swatch {
- border: none;
- border-radius: 2px;
-}
-
-.es-slider-input {
- width: 80px;
- height: 4px;
- -webkit-appearance: none;
- appearance: none;
- background: var(--es-bg-tertiary);
- border-radius: 2px;
- cursor: pointer;
-}
-
-.es-slider-input::-webkit-slider-thumb {
- -webkit-appearance: none;
- appearance: none;
- width: 12px;
- height: 12px;
- border-radius: 50%;
- background: var(--es-accent);
- cursor: pointer;
-}
-
-.es-slider-input::-moz-range-thumb {
- width: 12px;
- height: 12px;
- border-radius: 50%;
- background: var(--es-accent);
- border: none;
- cursor: pointer;
-}
-
-/* =============================================================================
- * Common Elements
- * ============================================================================= */
-
-.es-btn {
- padding: 4px 10px;
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 11px;
- cursor: pointer;
- transition: background 0.15s;
-}
-
-.es-btn:hover:not(:disabled) {
- background: var(--es-bg-hover);
-}
-
-.es-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
-}
-
-.es-btn-icon {
- padding: 2px 6px;
- min-width: 20px;
- cursor: pointer;
- transition: background 0.15s;
-}
-
-.es-btn-remove {
- background: transparent;
- border: none;
- color: var(--es-text-secondary);
- font-size: 16px;
-}
-
-.es-btn-remove:hover {
- color: var(--es-danger);
-}
-
-.es-btn-clear {
- background: transparent !important;
- border: none !important;
- opacity: 0.5;
-}
-
-.es-btn-clear:hover {
- opacity: 1;
-}
-
-.es-btn-clear svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-btn-clear:hover svg {
- stroke: var(--es-danger);
-}
-
-.es-input {
- padding: 4px 6px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 11px;
- width: 100%;
-}
-
-.es-input:focus {
- outline: none;
- border-color: var(--es-accent);
-}
-
-.es-input-number {
- width: 100%;
- -moz-appearance: textfield;
-}
-
-.es-input-number::-webkit-outer-spin-button,
-.es-input-number::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
-}
-
-.es-validation-error {
- border-color: var(--es-danger) !important;
- animation: shake 0.3s;
-}
-
-@keyframes shake {
- 0%, 100% { transform: translateX(0); }
- 25% { transform: translateX(-4px); }
- 75% { transform: translateX(4px); }
-}
-
-.es-number-editor {
- display: flex;
- align-items: center;
- width: 100%;
- border: 1px solid var(--es-border);
- border-radius: 4px;
- overflow: hidden;
-}
-
-.es-number-editor .es-input-number {
- border: none;
- border-radius: 0;
-}
-
-.es-number-drag-label {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 16px;
- height: 24px;
- background: var(--es-input-bg);
- color: #666;
- font-size: 10px;
- cursor: ew-resize;
- user-select: none;
- border-right: 1px solid var(--es-border);
- letter-spacing: -2px;
-}
-
-.es-number-drag-label:hover {
- background: var(--es-bg-hover);
- color: #999;
-}
-
-.es-input-checkbox {
- width: 14px;
- height: 14px;
- margin: 0;
- cursor: pointer;
- accent-color: var(--es-accent-gold);
-}
-
-.es-input-select {
- width: 100%;
- cursor: pointer;
- appearance: none;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: right 8px center;
- padding-right: 28px;
-}
-
-/* =============================================================================
- * Vector Editors
- * ============================================================================= */
-
-.es-vec-editor {
- display: flex;
- gap: 2px;
- width: 100%;
-}
-
-.es-vec-field {
- display: flex;
- align-items: center;
- flex: 1;
- min-width: 0;
- border: 1px solid var(--es-border);
-}
-
-.es-vec-label {
- width: 18px;
- height: 22px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 10px;
- font-weight: 600;
- color: #fff;
- background: var(--es-text-secondary);
- flex-shrink: 0;
- cursor: ew-resize;
- user-select: none;
-}
-
-.es-vec-field.es-vec-x .es-vec-label {
- background: #c94c4c;
-}
-
-.es-vec-field.es-vec-y .es-vec-label {
- background: #5cb85c;
-}
-
-.es-vec-field.es-vec-z .es-vec-label {
- background: #5bc0de;
-}
-
-.es-vec-field.es-vec-w .es-vec-label {
- background: #9b59b6;
-}
-
-.es-vec-field .es-input {
- flex: 1;
- min-width: 0;
- width: 100%;
- border: none;
- padding: 2px 4px;
- height: 22px;
- font-size: 11px;
- -moz-appearance: textfield;
-}
-
-.es-vec-field .es-input::-webkit-outer-spin-button,
-.es-vec-field .es-input::-webkit-inner-spin-button {
- -webkit-appearance: none;
- margin: 0;
-}
-
-.es-vec-field .es-input:focus {
- outline: none;
- background: var(--es-bg-tertiary);
-}
-
-/* =============================================================================
- * Color Editor
- * ============================================================================= */
-
-.es-color-editor {
- display: flex;
- align-items: center;
- gap: 4px;
- width: 100%;
-}
-
-.es-input-color {
- width: 32px;
- height: 22px;
- padding: 0;
- border: 1px solid var(--es-border);
- cursor: pointer;
- background: none;
-}
-
-.es-input-color::-webkit-color-swatch-wrapper {
- padding: 1px;
-}
-
-.es-input-color::-webkit-color-swatch {
- border: none;
-}
-
-.es-input-hex {
- flex: 2;
- min-width: 60px;
- font-family: monospace;
- font-size: 11px;
- text-transform: uppercase;
-}
-
-.es-input-alpha {
- flex: 1;
- min-width: 40px;
-}
-
-/* =============================================================================
- * Button Transition Editor
- * ============================================================================= */
-
-.es-btn-transition-section {
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- overflow: hidden;
-}
-
-.es-btn-transition-header {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 8px;
- background: var(--es-bg-tertiary);
- cursor: pointer;
- border-bottom: 1px solid transparent;
-}
-
-.es-btn-transition-section.es-expanded .es-btn-transition-header {
- border-bottom-color: var(--es-border);
-}
-
-.es-btn-transition-header:hover {
- background: var(--es-bg-hover);
-}
-
-.es-btn-transition-title {
- flex: 1;
- font-weight: 500;
- font-size: 11px;
-}
-
-.es-btn-transition-content {
- padding: 6px 8px;
-}
-
-.es-btn-transition-content .es-property-row {
- margin-bottom: 4px;
-}
-
-.es-btn-transition-content .es-property-row:last-child {
- margin-bottom: 0;
-}
-
-/* =============================================================================
- * Context Menu
- * ============================================================================= */
-
-.es-context-menu {
- position: fixed;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
- min-width: 160px;
- padding: 4px 0;
- z-index: 2000;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- font-size: 12px;
-}
-
-.es-context-menu-item {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 6px 12px;
- color: var(--es-text-primary);
- cursor: pointer;
- position: relative;
- transition: background 0.15s;
-}
-
-.es-context-menu-item:hover {
- background: var(--es-accent);
- color: white;
-}
-
-.es-context-menu-item.es-disabled {
- color: var(--es-text-disabled);
- cursor: default;
-}
-
-.es-context-menu-item.es-disabled:hover {
- background: transparent;
- color: var(--es-text-disabled);
-}
-
-.es-context-menu-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 16px;
- flex-shrink: 0;
-}
-
-.es-context-menu-label {
- flex: 1;
-}
-
-.es-context-menu-shortcut {
- color: var(--es-text-secondary);
- font-size: 11px;
- margin-left: auto;
-}
-
-.es-context-menu-item:hover .es-context-menu-shortcut {
- color: rgba(255, 255, 255, 0.7);
-}
-
-.es-context-menu-arrow {
- display: flex;
- align-items: center;
- margin-left: auto;
-}
-
-.es-context-menu-separator {
- height: 1px;
- margin: 4px 8px;
- background: var(--es-border);
-}
-
-/* =============================================================================
- * Container Classes
- * ============================================================================= */
-
-.es-hierarchy-container,
-.es-inspector-container,
-.es-sceneview-container {
- height: 100%;
-}
-
-.es-panel-container {
- width: 100%;
- height: 100%;
- overflow: hidden;
-}
-
-/* =============================================================================
- * Content Browser
- * ============================================================================= */
-
-.es-content-browser {
- display: flex;
- flex-direction: column;
- height: 100%;
- background: var(--es-bg-primary);
-}
-
-.es-content-browser-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 6px 12px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-content-browser-actions {
- display: flex;
- gap: 4px;
-}
-
-.es-content-browser-body {
- display: flex;
- flex: 1;
- overflow: hidden;
-}
-
-.es-content-browser-tree {
- width: 160px;
- min-width: 120px;
- background: var(--es-bg-secondary);
- border-right: 1px solid var(--es-border);
- overflow: auto;
- padding: 4px 0;
-}
-
-.es-content-browser-main {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-
-.es-content-browser-toolbar {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-content-breadcrumb {
- display: flex;
- align-items: center;
- flex: 1;
- min-width: 0;
- overflow: hidden;
-}
-
-.es-breadcrumb-item {
- color: var(--es-text-secondary);
- cursor: pointer;
- padding: 2px 4px;
- border-radius: 3px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 12px;
-}
-
-.es-breadcrumb-item:hover {
- color: var(--es-text-primary);
- background: var(--es-bg-hover);
-}
-
-.es-breadcrumb-item.es-active {
- color: var(--es-text-primary);
- cursor: default;
-}
-
-.es-breadcrumb-item.es-active:hover {
- background: transparent;
-}
-
-.es-breadcrumb-separator {
- color: var(--es-text-muted);
- display: flex;
- align-items: center;
- flex-shrink: 0;
-}
-
-.es-content-search {
- max-width: 200px;
- flex-shrink: 0;
-}
-
-.es-content-browser-grid {
- flex: 1;
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- padding: 12px;
- overflow: auto;
- align-content: flex-start;
-}
-
-.es-content-browser-footer {
- padding: 6px 12px;
- font-size: 11px;
- color: var(--es-text-secondary);
- background: var(--es-bg-secondary);
- border-top: 1px solid var(--es-border);
-}
-
-/* Folder Tree */
-.es-folder-item {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 8px;
- cursor: pointer;
- user-select: none;
- transition: background 0.15s;
-}
-
-.es-folder-item:hover {
- background: var(--es-bg-hover);
-}
-
-.es-folder-item.es-selected {
- background: var(--es-selection-bg);
-}
-
-.es-folder-item.es-selected .es-folder-name {
- color: var(--es-accent-gold);
-}
-
-.es-folder-expand {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 14px;
-}
-
-.es-folder-expand svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-folder-spacer {
- width: 14px;
-}
-
-.es-folder-icon {
- display: inline-flex;
- align-items: center;
-}
-
-.es-folder-icon svg {
- stroke: #e8c36a;
-}
-
-.es-folder-name {
- font-size: 12px;
-}
-
-/* Asset Grid */
-.es-asset-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 72px;
- padding: 8px;
- border-radius: 4px;
- cursor: pointer;
- user-select: none;
- transition: background 0.15s;
-}
-
-.es-asset-item:hover {
- background: var(--es-bg-hover);
-}
-
-.es-asset-item.es-selected {
- background: var(--es-selection-bg);
-}
-
-.es-asset-item.es-dragging {
- opacity: 0.5;
-}
-
-.es-asset-item[draggable="true"] {
- cursor: grab;
-}
-
-.es-asset-item[draggable="true"]:active {
- cursor: grabbing;
-}
-
-.es-asset-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 48px;
- height: 48px;
- margin-bottom: 4px;
-}
-
-.es-asset-icon svg {
- stroke: #e8c36a;
-}
-
-.es-asset-name {
- font-size: 11px;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 100%;
-}
-
-.es-asset-subpath {
- font-size: 9px;
- color: var(--es-text-muted);
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 100%;
-}
-
-/* Thumbnail */
-.es-cb-thumbnail {
- object-fit: contain;
- border-radius: 2px;
-}
-
-.es-cb-thumb-loading {
- opacity: 0.5;
-}
-
-/* Up Button */
-.es-cb-up-btn {
- flex-shrink: 0;
-}
-
-/* View Toggle */
-.es-cb-view-toggle {
- flex-shrink: 0;
-}
-
-/* List View */
-.es-cb-list-view {
- flex-direction: column;
- flex-wrap: nowrap;
- gap: 0;
- padding: 4px 0;
-}
-
-.es-cb-list-row {
- display: flex;
- align-items: center;
- height: 24px;
- padding: 0 8px;
- cursor: pointer;
- user-select: none;
- gap: 8px;
-}
-
-.es-cb-list-row:hover {
- background: var(--es-bg-hover);
-}
-
-.es-cb-list-row.es-selected {
- background: var(--es-selection-bg);
-}
-
-.es-cb-list-row[draggable="true"] {
- cursor: grab;
-}
-
-.es-cb-list-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- flex-shrink: 0;
-}
-
-.es-cb-list-icon svg {
- stroke: #e8c36a;
-}
-
-.es-cb-list-name {
- flex: 1;
- font-size: 12px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- min-width: 0;
-}
-
-.es-cb-list-subpath {
- color: var(--es-text-muted);
- font-size: 10px;
- margin-left: 6px;
-}
-
-.es-cb-list-type {
- font-size: 10px;
- color: var(--es-text-muted);
- flex-shrink: 0;
- width: 60px;
- text-align: right;
-}
-
-/* Empty State */
-.es-cb-empty-state {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 100%;
- gap: 8px;
- pointer-events: none;
-}
-
-.es-cb-empty-icon {
- opacity: 0.3;
-}
-
-.es-cb-empty-icon svg {
- stroke: var(--es-text-muted);
-}
-
-.es-cb-empty-text {
- font-size: 12px;
- color: var(--es-text-muted);
-}
-
-/* Grid focus */
-.es-content-browser-grid:focus {
- outline: none;
-}
-
-/* =============================================================================
- * Status Bar
- * ============================================================================= */
-
-.es-editor-statusbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 24px;
- padding: 0 4px;
- background: var(--es-bg-tertiary);
- border-top: 1px solid var(--es-border);
- font-size: 11px;
-}
-
-.es-statusbar-left,
-.es-statusbar-right {
- display: flex;
- align-items: center;
- gap: 2px;
- height: 100%;
- flex-shrink: 0;
-}
-
-.es-statusbar-left {
- flex-shrink: 1;
- min-width: 0;
- overflow: hidden;
-}
-
-.es-statusbar-left > span,
-.es-statusbar-right > span,
-.es-statusbar-cmd-wrapper {
- display: contents;
-}
-
-.es-btn-dropdown,
-.es-btn-tab {
- display: flex;
- align-items: center;
- gap: 4px;
- height: 100%;
- padding: 0 10px;
- background: transparent;
- border: none;
- border-radius: 0;
- color: var(--es-text-secondary);
- font-size: 11px;
- cursor: pointer;
-}
-
-.es-btn-dropdown:hover,
-.es-btn-tab:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-.es-btn-dropdown svg,
-.es-btn-tab svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-btn-dropdown:hover svg,
-.es-btn-tab:hover svg {
- stroke: var(--es-text-primary);
-}
-
-.es-status-indicator {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 0 8px;
- height: 100%;
- color: var(--es-text-secondary);
-}
-
-.es-status-indicator svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-status-saved {
- color: var(--es-text-secondary);
-}
-
-.es-status-saved svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-status-unsaved {
- color: var(--es-warning);
-}
-
-.es-unsaved-dot {
- display: inline-block;
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: var(--es-warning);
-}
-
-.es-statusbar-message {
- padding: 0 8px;
- font-size: 11px;
- color: var(--es-text-secondary);
- white-space: nowrap;
-}
-
-.es-statusbar-icons {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 0 8px;
- border-left: 1px solid var(--es-border);
-}
-
-.es-statusbar-icons button {
- display: flex;
- align-items: center;
- justify-content: center;
- min-width: 20px;
- height: 20px;
- padding: 0 4px;
- background: transparent;
- border: none;
- border-radius: 2px;
- cursor: pointer;
- color: var(--es-text-secondary);
- font-size: 11px;
-}
-
-.es-statusbar-icons button:hover {
- background: var(--es-bg-hover);
-}
-
-.es-statusbar-icons svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-hidden {
- display: none !important;
-}
-
-/* =============================================================================
- * Output Panel
- * ============================================================================= */
-
-.es-output-container {
- height: 100%;
-}
-
-.es-output-panel {
- display: flex;
- flex-direction: column;
- height: 100%;
- background: var(--es-bg-primary);
-}
-
-.es-output-header {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 4px 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
- flex-shrink: 0;
-}
-
-.es-output-toolbar {
- display: flex;
- align-items: center;
- gap: 6px;
- flex: 1;
- min-width: 0;
-}
-
-.es-output-filters {
- display: flex;
- gap: 2px;
- flex-shrink: 0;
-}
-
-.es-output-filter-btn {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- padding: 2px 6px;
- font-size: 11px;
- border-radius: 3px;
- color: var(--es-text-secondary);
- opacity: 0.5;
- cursor: pointer;
-}
-
-.es-output-filter-btn.es-active {
- opacity: 1;
- color: var(--es-text-primary);
-}
-
-.es-output-filter-command.es-active { color: var(--es-accent); }
-.es-output-filter-stderr.es-active { color: #e5c07b; }
-.es-output-filter-error.es-active { color: var(--es-danger); }
-.es-output-filter-success.es-active { color: var(--es-success); }
-
-.es-output-filter-count {
- font-size: 10px;
- opacity: 0.7;
- min-width: 8px;
- text-align: center;
-}
-
-.es-output-search-wrap {
- flex: 1;
- min-width: 60px;
- max-width: 200px;
-}
-
-.es-output-search {
- width: 100%;
- padding: 2px 6px;
- font-size: 11px;
- border: 1px solid var(--es-border);
- border-radius: 3px;
- background: var(--es-bg-primary);
- color: var(--es-text-primary);
- outline: none;
-}
-
-.es-output-search:focus {
- border-color: var(--es-accent);
-}
-
-.es-output-actions {
- display: flex;
- gap: 2px;
- flex-shrink: 0;
-}
-
-.es-output-scroll-btn.es-active {
- color: var(--es-accent);
-}
-
-.es-output-content {
- flex: 1;
- overflow: auto;
- padding: 8px;
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 12px;
- user-select: text;
- cursor: text;
-}
-
-.es-output-empty {
- color: var(--es-text-secondary);
- text-align: center;
- padding: 20px;
-}
-
-/* Active state for statusbar buttons */
-.es-btn-dropdown.es-active,
-.es-btn-tab.es-active {
- color: var(--es-accent-gold);
-}
-
-.es-btn-dropdown.es-active svg,
-.es-btn-tab.es-active svg {
- stroke: var(--es-accent-gold);
-}
-
-/* =============================================================================
- * Project Launcher
- * ============================================================================= */
-
-.es-launcher {
- width: 100%;
- height: 100%;
- background: var(--es-bg-primary);
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-launcher-content {
- width: 100%;
- max-width: 600px;
- padding: 40px;
-}
-
-.es-launcher-header {
- text-align: center;
- margin-bottom: 40px;
-}
-
-.es-launcher-logo {
- display: inline-flex;
- align-items: center;
- gap: 16px;
-}
-
-.es-launcher-logo-icon {
- width: 64px;
- height: 64px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-launcher-logo-icon svg {
- width: 64px;
- height: 64px;
- border-radius: 12px;
-}
-
-.es-launcher-logo-text {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
-}
-
-.es-launcher-title {
- font-size: 28px;
- font-weight: 600;
- color: var(--es-text-primary);
-}
-
-.es-launcher-subtitle {
- font-size: 16px;
- color: var(--es-text-secondary);
-}
-
-.es-launcher-actions {
- display: flex;
- gap: 12px;
- margin-bottom: 32px;
-}
-
-.es-launcher-btn {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- padding: 16px 24px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 14px;
- cursor: pointer;
- transition: all 0.15s;
-}
-
-.es-launcher-btn:hover {
- background: var(--es-bg-hover);
- border-color: var(--es-text-secondary);
-}
-
-.es-launcher-btn-primary {
- background: var(--es-accent-gold);
- border-color: var(--es-accent-gold);
- color: #1e1e1e;
- font-weight: 500;
-}
-
-.es-launcher-btn-primary:hover {
- background: #e5c07b;
- border-color: #e5c07b;
-}
-
-.es-launcher-btn-icon {
- font-size: 18px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-launcher-btn-icon svg {
- width: 18px;
- height: 18px;
- stroke: currentColor;
-}
-
-.es-launcher-recent {
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
-}
-
-.es-launcher-recent-header {
- padding: 12px 16px;
- border-bottom: 1px solid var(--es-border);
- color: var(--es-text-secondary);
- font-size: 12px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
-}
-
-.es-launcher-recent-list {
- max-height: 300px;
- overflow-y: auto;
-}
-
-.es-launcher-recent-empty {
- padding: 40px 20px;
- text-align: center;
- color: var(--es-text-secondary);
-}
-
-.es-launcher-recent-item {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 16px;
- cursor: pointer;
- transition: background 0.15s;
-}
-
-.es-launcher-recent-item:hover {
- background: var(--es-bg-hover);
-}
-
-.es-launcher-recent-icon {
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-launcher-recent-icon svg {
- width: 20px;
- height: 20px;
- stroke: var(--es-text-secondary);
-}
-
-.es-launcher-recent-info {
- flex: 1;
- min-width: 0;
-}
-
-.es-launcher-recent-name {
- color: var(--es-text-primary);
- font-size: 14px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.es-launcher-recent-path {
- color: var(--es-text-secondary);
- font-size: 12px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.es-launcher-recent-time {
- color: var(--es-text-secondary);
- font-size: 12px;
- flex-shrink: 0;
-}
-
-.es-launcher-recent-remove {
- width: 24px;
- height: 24px;
- background: transparent;
- border: none;
- color: var(--es-text-secondary);
- font-size: 16px;
- cursor: pointer;
- opacity: 0;
- transition: opacity 0.15s;
-}
-
-.es-launcher-recent-item:hover .es-launcher-recent-remove {
- opacity: 1;
-}
-
-.es-launcher-recent-remove:hover {
- color: var(--es-danger);
-}
-
-.es-launcher-footer {
- margin-top: 24px;
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 12px;
-}
-
-/* =============================================================================
- * Dialog Overlay
- * ============================================================================= */
-
-.es-dialog-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 3000;
- color: var(--es-text-primary);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- font-size: 13px;
-}
-
-.es-dialog {
- width: 100%;
- max-width: 480px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
-}
-
-.es-dialog-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16px 20px;
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-dialog-title {
- font-size: 16px;
- font-weight: 500;
- color: var(--es-text-primary);
-}
-
-.es-dialog-close {
- width: 28px;
- height: 28px;
- background: transparent;
- border: none;
- color: var(--es-text-secondary);
- font-size: 20px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-dialog-close:hover {
- color: var(--es-text-primary);
-}
-
-.es-dialog-body {
- padding: 20px;
-}
-
-.es-dialog-field {
- margin-bottom: 16px;
-}
-
-.es-dialog-field:last-child {
- margin-bottom: 0;
-}
-
-.es-dialog-label {
- display: block;
- margin-bottom: 6px;
- font-size: 13px;
- color: var(--es-text-secondary);
-}
-
-.es-dialog-input {
- width: 100%;
- padding: 8px 12px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 14px;
-}
-
-.es-dialog-input:focus {
- outline: none;
- border-color: var(--es-accent);
-}
-
-.es-dialog-path-row {
- display: flex;
- gap: 8px;
-}
-
-.es-dialog-path {
- flex: 1;
-}
-
-.es-dialog-browse {
- padding: 8px 16px;
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- cursor: pointer;
-}
-
-.es-dialog-browse:hover {
- background: var(--es-bg-hover);
-}
-
-.es-dialog-templates {
- display: flex;
- flex-direction: column;
- gap: 8px;
-}
-
-.es-dialog-template {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- padding: 12px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- cursor: pointer;
- transition: all 0.15s;
-}
-
-.es-dialog-template:hover:not(.disabled) {
- border-color: var(--es-text-secondary);
-}
-
-.es-dialog-template.selected {
- border-color: var(--es-accent-gold);
- background: rgba(209, 154, 102, 0.1);
-}
-
-.es-dialog-template.disabled {
- opacity: 0.5;
- cursor: not-allowed;
-}
-
-.es-dialog-template input {
- margin-top: 2px;
-}
-
-.es-dialog-template-name {
- display: block;
- color: var(--es-text-primary);
- font-size: 14px;
- font-weight: 500;
-}
-
-.es-dialog-template-desc {
- display: block;
- color: var(--es-text-secondary);
- font-size: 12px;
- margin-top: 2px;
-}
-
-.es-dialog-footer {
- display: flex;
- justify-content: flex-end;
- gap: 8px;
- padding: 16px 20px;
- border-top: 1px solid var(--es-border);
-}
-
-.es-dialog-btn {
- padding: 8px 20px;
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 14px;
- cursor: pointer;
- transition: all 0.15s;
-}
-
-.es-dialog-btn:hover {
- background: var(--es-bg-hover);
-}
-
-.es-dialog-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
-}
-
-.es-dialog-btn-primary {
- background: var(--es-accent-gold);
- border-color: var(--es-accent-gold);
- color: #1e1e1e;
- font-weight: 500;
-}
-
-.es-dialog-btn-primary:hover:not(:disabled) {
- background: #e5c07b;
- border-color: #e5c07b;
-}
-
-.es-dialog-message {
- margin: 0;
- color: var(--es-text-primary);
- font-size: 14px;
- line-height: 1.5;
-}
-
-.es-dialog-error {
- margin-top: 8px;
- padding: 8px 12px;
- background: rgba(244, 67, 54, 0.1);
- border: 1px solid rgba(244, 67, 54, 0.3);
- border-radius: 4px;
- color: var(--es-danger);
- font-size: 12px;
-}
-
-.es-dialog-danger .es-dialog-btn-primary {
- background: var(--es-danger);
- border-color: var(--es-danger);
-}
-
-.es-dialog-danger .es-dialog-btn-primary:hover:not(:disabled) {
- background: #e53935;
- border-color: #e53935;
-}
-
-/* =============================================================================
- * Settings Dialog
- * ============================================================================= */
-
-.es-settings-dialog {
- max-width: 640px !important;
-}
-
-.es-settings-dialog .es-dialog-body {
- padding: 0;
-}
-
-.es-settings-dialog-body {
- display: flex;
- min-height: 400px;
-}
-
-.es-settings-nav {
- width: 180px;
- min-width: 180px;
- background: var(--es-bg-primary);
- border-right: 1px solid var(--es-border);
- padding: 8px 0;
- overflow-y: auto;
-}
-
-.es-settings-nav-item {
- display: block;
- width: 100%;
- padding: 8px 16px;
- background: transparent;
- border: none;
- color: var(--es-text-secondary);
- font-size: 13px;
- text-align: left;
- cursor: pointer;
- transition: all 0.15s;
-}
-
-.es-settings-nav-item:hover {
- color: var(--es-text-primary);
- background: var(--es-bg-hover);
-}
-
-.es-settings-nav-item.es-active {
- color: var(--es-text-primary);
- background: var(--es-bg-tertiary);
- border-left: 2px solid var(--es-accent-gold);
- padding-left: 14px;
-}
-
-.es-settings-content {
- flex: 1;
- padding: 20px;
- overflow-y: auto;
-}
-
-.es-settings-section-title {
- margin: 0 0 16px;
- font-size: 15px;
- font-weight: 500;
- color: var(--es-text-primary);
-}
-
-.es-settings-item {
- margin-bottom: 14px;
-}
-
-.es-settings-item:last-child {
- margin-bottom: 0;
-}
-
-.es-settings-label {
- display: block;
- margin-bottom: 6px;
- font-size: 13px;
- color: var(--es-text-secondary);
-}
-
-.es-settings-checkbox-row {
- display: flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- font-size: 13px;
- color: var(--es-text-primary);
-}
-
-.es-settings-checkbox-row input[type="checkbox"] {
- margin: 0;
-}
-
-.es-settings-input {
- width: 100%;
- padding: 6px 10px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 13px;
- box-sizing: border-box;
-}
-
-.es-settings-input:focus {
- outline: none;
- border-color: var(--es-accent);
-}
-
-.es-settings-select {
- width: 100%;
- padding: 6px 10px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
- font-size: 13px;
- box-sizing: border-box;
-}
-
-.es-settings-select:focus {
- outline: none;
- border-color: var(--es-accent);
-}
-
-.es-settings-color-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
-}
-
-.es-settings-color-row .es-color-input {
- width: 60px;
- height: 28px;
- padding: 2px;
- border: 1px solid var(--es-border);
- background: var(--es-bg-primary);
- cursor: pointer;
-}
-
-.es-settings-range-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
-}
-
-.es-settings-range-value {
- font-size: 12px;
- color: var(--es-text-secondary);
- min-width: 32px;
- text-align: right;
-}
-
-.es-settings-description {
- font-size: 11px;
- color: var(--es-text-secondary);
- margin: 2px 0 6px;
- opacity: 0.7;
-}
-
-.es-settings-item-header {
- display: flex;
- align-items: center;
- gap: 6px;
-}
-
-.es-settings-item-header .es-settings-label {
- margin-bottom: 0;
-}
-
-.es-settings-reset-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 18px;
- height: 18px;
- padding: 0;
- background: transparent;
- border: 1px solid var(--es-border);
- border-radius: 3px;
- color: var(--es-text-secondary);
- font-size: 12px;
- cursor: pointer;
- flex-shrink: 0;
-}
-
-.es-settings-reset-btn:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-/* =============================================================================
- * Add Component Popup
- * ============================================================================= */
-
-.es-popup-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 5000;
-}
-
-.es-popup-container {
- max-width: 400px;
- width: 90%;
- max-height: 80vh;
-}
-
-.es-add-component-popup {
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 6px;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
- overflow: hidden;
- display: flex;
- flex-direction: column;
- max-height: 80vh;
-}
-
-.es-add-component-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 12px 16px;
- border-bottom: 1px solid var(--es-border);
- background: var(--es-bg-tertiary);
-}
-
-.es-add-component-title {
- font-size: 14px;
- font-weight: 500;
- color: var(--es-text-primary);
-}
-
-.es-add-component-close {
- background: none;
- border: none;
- cursor: pointer;
- padding: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 4px;
-}
-
-.es-add-component-close:hover {
- background: var(--es-bg-hover);
-}
-
-.es-add-component-close svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-add-component-close:hover svg {
- stroke: var(--es-text-primary);
-}
-
-.es-add-component-search {
- display: flex;
- align-items: center;
- padding: 8px 12px;
- border-bottom: 1px solid var(--es-border);
- gap: 8px;
-}
-
-.es-search-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-add-component-search .es-search-input {
- flex: 1;
- background: transparent;
- border: none;
- color: var(--es-text-primary);
- font-size: 13px;
- outline: none;
-}
-
-.es-add-component-search .es-search-input::placeholder {
- color: var(--es-text-secondary);
-}
-
-.es-add-component-list {
- overflow-y: auto;
- max-height: 400px;
- padding: 8px 0;
-}
-
-.es-component-category {
- margin-bottom: 4px;
-}
-
-.es-category-header {
- display: flex;
- align-items: center;
- padding: 6px 12px;
- cursor: pointer;
- user-select: none;
- gap: 6px;
-}
-
-.es-category-header:hover {
- background: var(--es-bg-hover);
-}
-
-.es-category-chevron svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-category-label {
- flex: 1;
- font-size: 11px;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- color: var(--es-text-secondary);
-}
-
-.es-category-count {
- font-size: 11px;
- color: var(--es-text-secondary);
- background: var(--es-bg-tertiary);
- padding: 1px 6px;
- border-radius: 10px;
-}
-
-.es-category-items {
- padding-left: 12px;
-}
-
-.es-category-items.es-hidden {
- display: none;
-}
-
-.es-component-item {
- display: flex;
- align-items: center;
- padding: 6px 12px;
- cursor: pointer;
- gap: 8px;
- border-radius: 4px;
- margin: 2px 8px;
-}
-
-.es-component-item:hover,
-.es-component-item.es-highlighted {
- background: var(--es-bg-hover);
-}
-
-.es-component-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-component-item:hover .es-component-icon svg,
-.es-component-item.es-highlighted .es-component-icon svg {
- stroke: var(--es-accent);
-}
-
-.es-component-item mark {
- background: var(--es-accent);
- color: var(--es-bg-primary);
- border-radius: 2px;
- padding: 0 1px;
-}
-
-.es-component-name {
- font-size: 13px;
- color: var(--es-text-primary);
-}
-
-.es-no-components {
- padding: 24px;
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 13px;
-}
-
-/* =============================================================================
- * Nine-Slice Editor
- * ============================================================================= */
-
-.es-nine-slice-editor {
- margin-bottom: 12px;
-}
-
-.es-nine-slice-preview {
- position: relative;
- width: 100%;
- background: repeating-conic-gradient(#333 0% 25%, #444 0% 50%) 50% / 16px 16px;
- border: 1px solid var(--es-border);
- overflow: hidden;
-}
-
-.es-nine-slice-image {
- display: block;
- width: 100%;
- height: auto;
- image-rendering: pixelated;
-}
-
-.es-nine-slice-line {
- position: absolute;
- background: #00ff00;
- z-index: 10;
-}
-
-.es-nine-slice-left,
-.es-nine-slice-right {
- top: 0;
- bottom: 0;
- width: 2px;
- cursor: ew-resize;
-}
-
-.es-nine-slice-left {
- left: 0;
-}
-
-.es-nine-slice-right {
- right: 0;
-}
-
-.es-nine-slice-top,
-.es-nine-slice-bottom {
- left: 0;
- right: 0;
- height: 2px;
- cursor: ns-resize;
-}
-
-.es-nine-slice-top {
- top: 0;
-}
-
-.es-nine-slice-bottom {
- bottom: 0;
-}
-
-.es-nine-slice-line:hover {
- background: #00ff88;
-}
-
-.es-nine-slice-line::before {
- content: '';
- position: absolute;
- background: transparent;
-}
-
-.es-nine-slice-left::before,
-.es-nine-slice-right::before {
- top: 0;
- bottom: 0;
- left: -4px;
- right: -4px;
-}
-
-.es-nine-slice-top::before,
-.es-nine-slice-bottom::before {
- left: 0;
- right: 0;
- top: -4px;
- bottom: -4px;
-}
-
-.es-nine-slice-inputs {
- margin-top: 8px;
-}
-
-/* =============================================================================
- * Texture Editor
- * ============================================================================= */
-
-.es-texture-editor {
- display: flex;
- flex-direction: column;
- gap: 8px;
-}
-
-.es-texture-preview {
- width: 64px;
- height: 64px;
- background: repeating-conic-gradient(#333 0% 25%, #444 0% 50%) 50% / 8px 8px;
- border: 1px solid var(--es-border);
- border-radius: 4px;
- overflow: hidden;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: border-color 0.15s;
-}
-
-.es-texture-preview:hover {
- border-color: var(--es-accent);
-}
-
-.es-texture-preview.es-has-preview:hover {
- opacity: 0.9;
-}
-
-.es-texture-preview-img {
- max-width: 100%;
- max-height: 100%;
- object-fit: contain;
- display: none;
- image-rendering: pixelated;
-}
-
-.es-texture-preview::before {
- content: '';
- display: block;
-}
-
-.es-texture-preview.es-has-preview::before {
- display: none;
-}
-
-.es-texture-input-row {
- display: flex;
- gap: 4px;
-}
-
-.es-texture-input-row .es-input-texture {
- flex: 1;
- min-width: 0;
-}
-
-.es-btn-locate {
- flex-shrink: 0;
-}
-
-/* =============================================================================
- * Spine File Editor
- * ============================================================================= */
-
-.es-file-editor {
- display: flex;
- gap: 4px;
-}
-
-.es-file-editor .es-input-file {
- flex: 1;
- min-width: 0;
-}
-
-.es-file-editor .es-btn-browse {
- flex-shrink: 0;
-}
-
-.es-file-editor.es-drag-over,
-.es-texture-editor.es-drag-over {
- outline: 2px solid var(--es-accent);
- outline-offset: -2px;
- border-radius: 3px;
-}
-
-.es-asset-link {
- cursor: pointer;
-}
-
-.es-asset-link:not(:placeholder-shown):hover {
- color: var(--es-accent);
- text-decoration: underline;
-}
-
-.es-missing-asset {
- color: #ff6b6b !important;
-}
-
-/* =============================================================================
- * Spine Animation/Skin Editor
- * ============================================================================= */
-
-.es-spine-animation-editor,
-.es-spine-skin-editor {
- display: flex;
- gap: 4px;
-}
-
-.es-spine-animation-editor .es-input-select,
-.es-spine-skin-editor .es-input-select {
- flex: 1;
- min-width: 0;
-}
-
-.es-btn-refresh {
- flex-shrink: 0;
-}
-
-.es-btn-refresh:hover {
- color: var(--es-accent);
-}
-
-/* =============================================================================
- * Build Settings Dialog
- * ============================================================================= */
-
-.es-build-dialog {
- width: 90%;
- max-width: 800px;
- max-height: 80vh;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 6px;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-
-.es-build-toolbar {
- display: flex;
- padding: 8px 12px;
- border-bottom: 1px solid var(--es-border);
- background: var(--es-bg-tertiary);
-}
-
-.es-build-toolbar .es-btn {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 10px;
- font-size: 12px;
-}
-
-.es-build-body {
- display: flex;
- flex: 1;
- min-height: 400px;
- max-height: 60vh;
- overflow: hidden;
-}
-
-.es-build-sidebar {
- width: 200px;
- flex-shrink: 0;
- background: var(--es-bg-primary);
- border-right: 1px solid var(--es-border);
- overflow-y: auto;
- padding: 8px 0;
-}
-
-.es-build-section-title {
- font-size: 11px;
- font-weight: 600;
- color: var(--es-text-secondary);
- text-transform: uppercase;
- padding: 8px 12px 4px;
- letter-spacing: 0.5px;
-}
-
-.es-build-platform {
- padding: 8px 12px;
- display: flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- color: var(--es-text-primary);
- transition: background 0.15s;
-}
-
-.es-build-platform:hover {
- background: var(--es-bg-hover);
-}
-
-.es-build-platform.es-active {
- background: var(--es-bg-tertiary);
-}
-
-.es-build-platform-header {
- display: flex;
- align-items: center;
- gap: 8px;
- flex: 1;
-}
-
-.es-build-badge {
- font-size: 10px;
- padding: 2px 6px;
- background: var(--es-accent);
- color: white;
- border-radius: 3px;
- margin-left: auto;
-}
-
-.es-build-config-item {
- position: relative;
- padding: 6px 12px 6px 32px;
- display: flex;
- align-items: center;
- gap: 8px;
- cursor: pointer;
- color: var(--es-text-secondary);
- font-size: 12px;
- transition: background 0.15s, color 0.15s;
-}
-
-.es-build-config-item:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-.es-build-config-item.es-active {
- background: var(--es-bg-tertiary);
- color: var(--es-text-primary);
-}
-
-.es-build-config-item.es-active::before {
- content: '';
- position: absolute;
- left: 0;
- width: 3px;
- top: 0;
- bottom: 0;
- background: var(--es-accent);
-}
-
-.es-build-config-name {
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-build-config-delete {
- opacity: 0;
- transition: opacity 0.15s;
- color: var(--es-text-secondary);
- padding: 2px;
-}
-
-.es-build-config-item:hover .es-build-config-delete {
- opacity: 1;
-}
-
-.es-build-config-delete:hover {
- color: var(--es-danger);
-}
-
-.es-build-detail {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- overflow-y: auto;
- padding: 16px;
-}
-
-.es-build-detail-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-bottom: 16px;
- border-bottom: 1px solid var(--es-border);
- margin-bottom: 16px;
-}
-
-.es-build-detail-title h3 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: var(--es-text-primary);
-}
-
-.es-build-detail-platform {
- font-size: 12px;
- color: var(--es-text-secondary);
-}
-
-.es-build-detail-actions {
- display: flex;
- gap: 8px;
-}
-
-.es-build-detail-actions .es-btn {
- padding: 6px 12px;
- font-size: 12px;
-}
-
-.es-build-detail-actions .es-btn-primary {
- display: flex;
- align-items: center;
- gap: 6px;
-}
-
-.es-build-detail-content {
- display: flex;
- flex-direction: column;
- gap: 24px;
-}
-
-.es-build-data-section h4,
-.es-build-settings-section h4 {
- margin: 0 0 12px;
- font-size: 12px;
- font-weight: 600;
- color: var(--es-text-secondary);
- text-transform: uppercase;
- letter-spacing: 0.5px;
-}
-
-.es-build-collapse {
- border: 1px solid var(--es-border);
- border-radius: 4px;
- overflow: hidden;
- margin-bottom: 8px;
-}
-
-.es-build-collapse-header {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 8px 12px;
- background: var(--es-bg-tertiary);
- cursor: pointer;
- font-size: 12px;
- font-weight: 500;
- color: var(--es-text-primary);
- transition: background 0.15s;
-}
-
-.es-build-collapse-header:hover {
- background: var(--es-bg-hover);
-}
-
-.es-build-collapse-content {
- display: none;
- padding: 12px;
- background: var(--es-bg-primary);
-}
-
-.es-build-collapse.es-expanded .es-build-collapse-content {
- display: block;
-}
-
-.es-build-scene-list {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin-bottom: 8px;
-}
-
-.es-build-scene-item {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 6px 8px;
- background: var(--es-bg-secondary);
- border-radius: 3px;
- font-size: 12px;
-}
-
-.es-build-scene-item input[type="checkbox"] {
- flex-shrink: 0;
-}
-
-.es-build-scene-item span {
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- color: var(--es-text-primary);
-}
-
-.es-build-scene-item .es-btn-icon {
- opacity: 0;
- transition: opacity 0.15s;
-}
-
-.es-build-scene-item:hover .es-btn-icon {
- opacity: 1;
-}
-
-.es-build-empty-list {
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 12px;
- padding: 12px;
-}
-
-.es-build-define-list {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- margin-bottom: 8px;
-}
-
-.es-build-define-item {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 8px;
- background: var(--es-bg-secondary);
- border-radius: 3px;
- font-size: 11px;
- font-family: monospace;
- color: var(--es-accent);
-}
-
-.es-build-define-item .es-btn-icon {
- padding: 2px;
- opacity: 0.6;
-}
-
-.es-build-define-item:hover .es-btn-icon {
- opacity: 1;
-}
-
-.es-build-define-add {
- display: flex;
- gap: 6px;
-}
-
-.es-build-define-add .es-input {
- flex: 1;
- min-width: 0;
- padding: 4px 8px;
- font-size: 12px;
-}
-
-.es-build-field {
- margin-bottom: 12px;
-}
-
-.es-build-field:last-child {
- margin-bottom: 0;
-}
-
-.es-build-field label {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 12px;
- color: var(--es-text-primary);
- cursor: pointer;
-}
-
-.es-build-field input[type="checkbox"] {
- width: 14px;
- height: 14px;
-}
-
-.es-build-label {
- display: block;
- margin-bottom: 4px;
- font-size: 12px;
- color: var(--es-text-secondary);
-}
-
-.es-build-path-row {
- display: flex;
- gap: 6px;
-}
-
-.es-build-path-row .es-input {
- flex: 1;
- min-width: 0;
-}
-
-.es-build-path-row .es-btn {
- flex-shrink: 0;
- padding: 6px 10px;
-}
-
-.es-build-hint {
- margin-top: 4px;
- font-size: 11px;
- color: var(--es-text-muted);
-}
-
-.es-build-empty {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 200px;
- color: var(--es-text-secondary);
- text-align: center;
-}
-
-.es-build-empty p {
- margin: 4px 0;
- font-size: 13px;
-}
-
-.es-build-add-dialog {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-build-dialog .es-input {
- padding: 6px 10px;
- border-radius: 3px;
- font-size: 12px;
-}
-
-.es-build-dialog .es-select {
- width: 100%;
- padding: 6px 10px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- border-radius: 3px;
- color: var(--es-text-primary);
- font-size: 12px;
- cursor: pointer;
-}
-
-.es-build-dialog .es-select:focus {
- outline: none;
- border-color: var(--es-accent);
-}
-
-.es-build-dialog .es-btn {
- border-radius: 3px;
-}
-
-.es-build-dialog .es-btn-primary {
- background: var(--es-accent);
- border-color: var(--es-accent);
- color: white;
-}
-
-.es-build-dialog .es-btn-primary:hover {
- background: #3d9ee0;
- border-color: #3d9ee0;
-}
-
-.es-btn-link {
- background: none;
- border: none;
- color: var(--es-accent);
- font-size: 12px;
- cursor: pointer;
- padding: 4px 0;
- text-decoration: underline;
-}
-
-.es-btn-link:hover {
- color: #3d9ee0;
-}
-
-.es-build-dialog .es-btn-icon {
- background: transparent;
- border: none;
- color: var(--es-text-secondary);
- padding: 4px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 3px;
-}
-
-.es-build-dialog .es-btn-icon:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-.es-build-define-add .es-btn-icon {
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
-}
-
-.es-build-define-add .es-btn-icon:hover {
- background: var(--es-bg-hover);
-}
-
-/* =============================================================================
- Toast Notifications
- ============================================================================= */
-
-.es-toast-container {
- position: fixed;
- bottom: 44px;
- right: 20px;
- z-index: 10000;
- display: flex;
- flex-direction: column-reverse;
- gap: 10px;
- pointer-events: none;
-}
-
-.es-toast {
- display: flex;
- align-items: flex-start;
- gap: 12px;
- min-width: 320px;
- max-width: 420px;
- padding: 14px 16px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 6px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
- pointer-events: auto;
- transform: translateX(100%);
- opacity: 0;
- transition: transform 0.2s ease, opacity 0.2s ease;
-}
-
-.es-toast-show {
- transform: translateX(0);
- opacity: 1;
-}
-
-.es-toast-hide {
- transform: translateX(100%);
- opacity: 0;
-}
-
-.es-toast-icon {
- flex-shrink: 0;
- width: 24px;
- height: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
- color: var(--es-text-secondary);
-}
-
-.es-toast-success .es-toast-icon {
- color: var(--es-success, #4caf50);
-}
-
-.es-toast-error .es-toast-icon {
- color: var(--es-danger, #f44336);
-}
-
-.es-toast-progress .es-toast-icon {
- color: var(--es-accent, #0078d4);
-}
-
-.es-toast-content {
- flex: 1;
- min-width: 0;
-}
-
-.es-toast-title {
- font-size: 13px;
- font-weight: 500;
- color: var(--es-text-primary);
- margin-bottom: 2px;
-}
-
-.es-toast-message {
- font-size: 12px;
- color: var(--es-text-secondary);
- margin-top: 4px;
- word-break: break-word;
-}
-
-.es-toast-close {
- flex-shrink: 0;
- width: 20px;
- height: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: none;
- border: none;
- color: var(--es-text-muted);
- cursor: pointer;
- border-radius: 3px;
- transition: background 0.15s, color 0.15s;
-}
-
-.es-toast-close:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-.es-toast-progress-bar {
- margin-top: 10px;
- height: 4px;
- background: var(--es-bg-tertiary);
- border-radius: 2px;
- overflow: hidden;
-}
-
-.es-toast-progress-fill {
- height: 100%;
- background: var(--es-accent, #0078d4);
- border-radius: 2px;
- transition: width 0.3s ease;
-}
-
-.es-toast-spinner {
- width: 18px;
- height: 18px;
- border: 2px solid var(--es-bg-tertiary);
- border-top-color: var(--es-accent, #0078d4);
- border-radius: 50%;
- animation: es-toast-spin 0.8s linear infinite;
-}
-
-@keyframes es-toast-spin {
- to { transform: rotate(360deg); }
-}
-
-.es-toast-actions {
- display: flex;
- gap: 8px;
- margin-top: 12px;
-}
-
-.es-toast-btn {
- padding: 6px 12px;
- font-size: 12px;
- border: 1px solid var(--es-border);
- border-radius: 4px;
- background: var(--es-bg-tertiary);
- color: var(--es-text-primary);
- cursor: pointer;
- transition: background 0.15s, border-color 0.15s;
-}
-
-.es-toast-btn:hover {
- background: var(--es-bg-hover);
-}
-
-.es-toast-btn-primary {
- background: var(--es-accent, #0078d4);
- border-color: var(--es-accent, #0078d4);
- color: white;
-}
-
-.es-toast-btn-primary:hover {
- background: #3d9ee0;
- border-color: #3d9ee0;
-}
-
-/* =============================================================================
- * Statusbar Command Input
- * ============================================================================= */
-
-.es-statusbar-divider {
- width: 1px;
- height: 14px;
- background: var(--es-border);
- margin: 0 6px;
-}
-
-.es-statusbar-btn {
- display: flex;
- align-items: center;
- gap: 4px;
- height: 20px;
- padding: 0 8px;
- background: transparent;
- border: none;
- border-radius: 3px;
- color: var(--es-text-secondary);
- font-size: 11px;
- cursor: pointer;
- white-space: nowrap;
-}
-
-.es-statusbar-btn:hover {
- background: var(--es-bg-hover);
- color: var(--es-text-primary);
-}
-
-.es-statusbar-btn svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-statusbar-btn:hover svg {
- stroke: var(--es-text-primary);
-}
-
-.es-statusbar-btn-primary {
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
- color: var(--es-text-primary);
-}
-
-.es-statusbar-btn-primary:hover {
- background: var(--es-bg-hover);
- border-color: var(--es-text-secondary);
-}
-
-.es-statusbar-btn-primary svg {
- stroke: var(--es-text-primary);
-}
-
-.es-statusbar-btn.es-active {
- color: var(--es-text-primary);
-}
-
-.es-statusbar-btn.es-active svg {
- stroke: var(--es-text-primary);
-}
-
-.es-cmd-prompt {
- color: var(--es-text-secondary);
- font-size: 12px;
- font-weight: 500;
- margin: 0 4px;
-}
-
-.es-cmd-input {
- flex: 1;
- min-width: 150px;
- max-width: 300px;
- height: 20px;
- padding: 0 8px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- border-radius: 3px;
- color: var(--es-text-primary);
- font-size: 11px;
- outline: none;
-}
-
-.es-cmd-input::placeholder {
- color: var(--es-text-secondary);
-}
-
-.es-cmd-input:focus {
- border-color: var(--es-accent);
-}
-
-/* =============================================================================
- * Output Panel Lines
- * ============================================================================= */
-
-.es-output-line {
- font-family: 'Consolas', 'Monaco', monospace;
- font-size: 12px;
- line-height: 1.5;
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.es-output-badge {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 18px;
- height: 16px;
- padding: 0 5px;
- margin-right: 6px;
- border-radius: 8px;
- background: var(--es-accent);
- color: #fff;
- font-size: 10px;
- font-weight: 600;
- line-height: 1;
- vertical-align: middle;
-}
-
-.es-output-command {
- color: var(--es-accent);
- font-weight: 500;
- margin-top: 8px;
-}
-
-.es-output-stdout {
- color: var(--es-text-primary);
-}
-
-.es-output-stderr {
- color: #e5c07b;
-}
-
-.es-output-error {
- color: var(--es-danger);
-}
-
-.es-output-success {
- color: var(--es-success);
-}
-
-.es-output-timestamp {
- color: var(--es-text-secondary);
- opacity: 0.6;
- margin-right: 8px;
- font-size: 11px;
- user-select: none;
-}
-
-.es-output-group-header {
- display: flex;
- align-items: center;
- gap: 4px;
- padding: 4px 0 2px;
- cursor: pointer;
- user-select: none;
- border-top: 1px solid var(--es-border);
- margin-top: 4px;
-}
-
-.es-output-group-header:first-child {
- border-top: none;
- margin-top: 0;
-}
-
-.es-output-group-toggle {
- display: inline-flex;
- transition: transform 0.15s;
-}
-
-.es-output-group-header.es-collapsed .es-output-group-toggle {
- transform: rotate(-90deg);
-}
-
-.es-output-context-menu {
- position: fixed;
- z-index: 10000;
- min-width: 120px;
- padding: 4px 0;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
-}
-
-.es-output-context-item {
- padding: 5px 12px;
- font-size: 12px;
- cursor: pointer;
- color: var(--es-text-primary);
-}
-
-.es-output-context-item:hover {
- background: var(--es-accent);
- color: #fff;
-}
-
-/* =============================================================================
- * Build Settings Dialog - Three Column Layout
- * ============================================================================= */
-
-.es-build-dialog-wide {
- max-width: 1000px;
-}
-
-.es-build-body-three-col {
- display: flex;
- flex: 1;
- min-height: 450px;
- max-height: 65vh;
- overflow: hidden;
-}
-
-.es-build-body-three-col .es-build-sidebar {
- width: 180px;
- min-width: 160px;
-}
-
-.es-build-body-three-col .es-build-detail {
- flex: 1;
- min-width: 300px;
- border-right: 1px solid var(--es-border);
-}
-
-.es-build-body-three-col .es-build-output {
- width: 220px;
- min-width: 180px;
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- background: var(--es-bg-primary);
- padding: 12px;
- overflow-y: auto;
-}
-
-.es-build-toolbar-left,
-.es-build-toolbar-right {
- display: flex;
- align-items: center;
- gap: 6px;
-}
-
-.es-build-toolbar-left {
- flex: 1;
-}
-
-.es-build-output-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
-}
-
-.es-build-output-latest {
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- padding: 12px;
- margin-bottom: 16px;
-}
-
-.es-build-output-empty {
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 12px;
- padding: 24px 8px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
-}
-
-.es-build-output-stat {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- font-size: 12px;
-}
-
-.es-build-output-stat:last-child {
- margin-bottom: 0;
-}
-
-.es-build-output-label {
- color: var(--es-text-secondary);
-}
-
-.es-build-output-value {
- color: var(--es-text-primary);
- font-weight: 500;
-}
-
-.es-build-output-actions {
- display: flex;
- gap: 8px;
- margin-top: 12px;
- padding-top: 12px;
- border-top: 1px solid var(--es-border);
-}
-
-.es-btn-small {
- padding: 4px 8px;
- font-size: 11px;
- display: flex;
- align-items: center;
- gap: 4px;
-}
-
-/* Build Status Indicators */
-.es-build-status-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- flex-shrink: 0;
-}
-
-.es-build-status-dot.es-build-status-success {
- background: var(--es-success);
-}
-
-.es-build-status-dot.es-build-status-failed {
- background: var(--es-danger);
-}
-
-.es-build-status-dot.es-build-status-cancelled {
- background: var(--es-text-secondary);
-}
-
-.es-build-status-success {
- color: var(--es-success);
-}
-
-.es-build-status-failed {
- color: var(--es-danger);
-}
-
-.es-build-status-cancelled {
- color: var(--es-text-secondary);
-}
-
-/* Build History */
-.es-build-history {
- margin-top: 8px;
-}
-
-.es-build-history-list {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin-top: 8px;
-}
-
-.es-build-history-item {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 6px 8px;
- background: var(--es-bg-secondary);
- border-radius: 3px;
- font-size: 11px;
-}
-
-.es-build-history-icon {
- font-size: 12px;
-}
-
-.es-build-history-time {
- flex: 1;
- color: var(--es-text-primary);
-}
-
-.es-build-history-duration {
- color: var(--es-text-secondary);
-}
-
-/* Config Name Input */
-.es-build-name-input {
- background: transparent;
- border: 1px solid transparent;
- color: var(--es-text-primary);
- font-size: 16px;
- font-weight: 600;
- padding: 4px 8px;
- border-radius: 3px;
- width: 200px;
-}
-
-.es-build-name-input:hover {
- background: var(--es-bg-tertiary);
-}
-
-.es-build-name-input:focus {
- outline: none;
- background: var(--es-bg-primary);
- border-color: var(--es-accent);
-}
-
-/* Collapse Count Badge */
-.es-build-collapse-count {
- margin-left: auto;
- font-size: 10px;
- background: var(--es-bg-hover);
- color: var(--es-text-secondary);
- padding: 2px 6px;
- border-radius: 10px;
-}
-
-/* Build Templates */
-.es-build-templates-list {
- display: flex;
- flex-direction: column;
- gap: 8px;
- max-height: 400px;
- overflow-y: auto;
-}
-
-.es-build-template-item {
- padding: 12px;
- background: var(--es-bg-primary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- cursor: pointer;
- transition: all 0.15s;
-}
-
-.es-build-template-item:hover {
- border-color: var(--es-accent);
- background: var(--es-bg-tertiary);
-}
-
-.es-build-template-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 4px;
-}
-
-.es-build-template-name {
- font-size: 13px;
- font-weight: 500;
- color: var(--es-text-primary);
-}
-
-.es-build-template-platform {
- font-size: 10px;
- padding: 2px 6px;
- background: var(--es-bg-tertiary);
- color: var(--es-text-secondary);
- border-radius: 3px;
- text-transform: uppercase;
-}
-
-.es-build-template-desc {
- font-size: 11px;
- color: var(--es-text-secondary);
-}
-
-/* =============================================================================
- * Build Progress Panel
- * ============================================================================= */
-
-.build-progress-panel {
- position: fixed;
- bottom: 20px;
- right: 20px;
- width: 420px;
- max-height: 400px;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 8px;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
- display: none;
- flex-direction: column;
- z-index: 10000;
- overflow: hidden;
-}
-
-.build-progress-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 12px 16px;
- background: var(--es-bg-tertiary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.build-progress-title {
- font-size: 13px;
- font-weight: 500;
- color: var(--es-text-primary);
-}
-
-.build-progress-close {
- background: none;
- border: none;
- color: var(--es-text-secondary);
- font-size: 18px;
- line-height: 1;
- cursor: pointer;
- padding: 0 4px;
-}
-
-.build-progress-close:hover {
- color: var(--es-text-primary);
-}
-
-.build-progress-phase-section {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 12px 16px 8px;
-}
-
-.build-progress-phase {
- font-size: 14px;
- font-weight: 500;
- color: var(--es-accent);
-}
-
-.build-progress-phase.build-progress-success {
- color: var(--es-success);
-}
-
-.build-progress-phase.build-progress-error {
- color: var(--es-danger);
-}
-
-.build-progress-time {
- font-size: 11px;
- color: var(--es-text-secondary);
-}
-
-.build-progress-bar-section {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 0 16px 8px;
-}
-
-.build-progress-bar-track {
- flex: 1;
- height: 6px;
- background: var(--es-bg-tertiary);
- border-radius: 3px;
- overflow: hidden;
-}
-
-.build-progress-bar-fill {
- height: 100%;
- background: var(--es-accent);
- border-radius: 3px;
- transition: width 0.2s ease;
- width: 0%;
-}
-
-.build-progress-bar-fill.build-progress-bar-error {
- background: var(--es-danger);
-}
-
-.build-progress-percent {
- font-size: 12px;
- font-weight: 500;
- color: var(--es-text-primary);
- min-width: 36px;
- text-align: right;
-}
-
-.build-progress-task {
- padding: 0 16px 12px;
- font-size: 11px;
- color: var(--es-text-secondary);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-
-.build-progress-logs {
- flex: 1;
- min-height: 120px;
- max-height: 180px;
- overflow-y: auto;
- background: var(--es-bg-primary);
- margin: 0 12px;
- border-radius: 4px;
- font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
- font-size: 11px;
- line-height: 1.5;
-}
-
-.build-progress-log-line {
- padding: 2px 8px;
- color: var(--es-text-secondary);
- border-bottom: 1px solid var(--es-bg-secondary);
-}
-
-.build-progress-log-line:last-child {
- border-bottom: none;
-}
-
-.build-progress-log-line .log-time {
- color: var(--es-text-secondary);
- opacity: 0.6;
- margin-right: 4px;
-}
-
-.build-progress-log-line.progress-log-info {
- color: var(--es-text-primary);
-}
-
-.build-progress-log-line.progress-log-warn {
- color: #e6a700;
-}
-
-.build-progress-log-line.progress-log-error {
- color: var(--es-danger);
-}
-
-.build-progress-log-line.progress-log-debug {
- color: var(--es-text-secondary);
- opacity: 0.7;
-}
-
-.build-progress-footer {
- display: flex;
- justify-content: flex-end;
- padding: 12px 16px;
- border-top: 1px solid var(--es-border);
-}
-
-.build-progress-cancel-btn {
- padding: 6px 16px;
- background: var(--es-bg-tertiary);
- border: 1px solid var(--es-border);
- border-radius: 4px;
- color: var(--es-text-primary);
- font-size: 12px;
- cursor: pointer;
-}
-
-.build-progress-cancel-btn:hover:not(:disabled) {
- background: var(--es-bg-hover);
-}
-
-.build-progress-cancel-btn:disabled {
- opacity: 0.5;
- cursor: default;
-}
-
-/* =============================================================================
- * Material Preview Panel
- * ============================================================================= */
-
-.es-material-preview-panel {
- border-top: 1px solid var(--es-border);
- background: var(--es-bg-secondary);
-}
-
-.es-material-preview-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 12px;
- cursor: pointer;
- user-select: none;
-}
-
-.es-material-preview-header:hover {
- background: var(--es-bg-hover);
-}
-
-.es-material-preview-title {
- display: flex;
- align-items: center;
- gap: 6px;
- font-weight: 600;
- font-size: 12px;
-}
-
-.es-material-preview-title svg {
- stroke: var(--es-text-secondary);
- transition: transform 0.15s;
-}
-
-.es-material-preview-panel.es-expanded .es-material-preview-title svg {
- transform: rotate(90deg);
-}
-
-.es-material-preview-open-btn {
- padding: 2px 8px !important;
- font-size: 10px !important;
- background: transparent !important;
- border: 1px solid var(--es-border) !important;
- color: var(--es-text-secondary) !important;
-}
-
-.es-material-preview-open-btn:hover {
- background: var(--es-bg-hover) !important;
- color: var(--es-text-primary) !important;
-}
-
-.es-material-preview-content {
- display: none;
- padding: 8px 12px;
- background: var(--es-bg-primary);
-}
-
-.es-material-preview-panel.es-expanded .es-material-preview-content {
- display: block;
-}
-
-.es-material-preview-name {
- font-size: 11px;
- color: var(--es-text-secondary);
- margin-bottom: 8px;
- padding-bottom: 6px;
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-material-preview-empty {
- padding: 16px;
- text-align: center;
- color: var(--es-text-secondary);
- font-size: 11px;
- font-style: italic;
-}
-
-.es-material-preview-row {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 4px 0;
-}
-
-.es-material-preview-row .es-property-label {
- width: 90px;
- flex-shrink: 0;
- font-size: 11px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-material-preview-row.es-overridden .es-property-label {
- color: #4fc3f7;
-}
-
-.es-material-preview-row .es-property-editor {
- flex: 1;
- min-width: 0;
-}
-
-.es-btn-reset-override {
- padding: 2px !important;
- min-width: 16px !important;
- background: transparent !important;
- border: none !important;
- opacity: 0;
- transition: opacity 0.15s;
-}
-
-.es-material-preview-row:hover .es-btn-reset-override {
- opacity: 0.6;
-}
-
-.es-btn-reset-override:hover {
- opacity: 1 !important;
-}
-
-.es-btn-reset-override svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-material-preview-status {
- font-size: 10px;
- color: var(--es-text-secondary);
- padding: 6px 0;
- border-top: 1px solid var(--es-border);
- margin-top: 8px;
-}
-
-/* =============================================================================
- * Addressable Panel
- * ============================================================================= */
-
-.es-addressable-panel {
- display: flex;
- flex-direction: column;
- height: 100%;
- background: var(--es-bg-primary);
-}
-
-.es-addressable-body {
- display: flex;
- flex: 1;
- overflow: hidden;
-}
-
-.es-addressable-sidebar {
- width: 180px;
- min-width: 140px;
- background: var(--es-bg-secondary);
- border-right: 1px solid var(--es-border);
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-
-.es-addressable-main {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
-}
-
-.es-addressable-sidebar-section {
- display: flex;
- flex-direction: column;
- min-height: 0;
-}
-
-.es-addressable-sidebar-section + .es-addressable-sidebar-section {
- border-top: 1px solid var(--es-border);
-}
-
-.es-sidebar-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px;
- font-size: 10px;
- text-transform: uppercase;
- color: var(--es-text-secondary);
- user-select: none;
-}
-
-.es-sidebar-header .es-btn-icon {
- padding: 0;
- min-width: 16px;
- height: 16px;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-
-.es-addr-group-list,
-.es-addr-label-list {
- overflow-y: auto;
- flex: 1;
- min-height: 0;
-}
-
-.es-addr-group-item {
- display: flex;
- align-items: center;
- gap: 6px;
- height: 28px;
- padding: 0 12px 0 8px;
- cursor: pointer;
- user-select: none;
- font-size: 12px;
- border-left: 2px solid transparent;
-}
-
-.es-addr-group-item:hover {
- background: var(--es-bg-hover);
-}
-
-.es-addr-group-item.es-selected {
- background: rgba(209, 154, 102, 0.25);
- border-left-color: var(--es-accent-gold);
- color: var(--es-accent-gold);
-}
-
-.es-addr-group-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: var(--es-accent);
- flex-shrink: 0;
-}
-
-.es-addr-group-item.es-selected .es-addr-group-dot {
- background: var(--es-accent-gold);
-}
-
-.es-addr-group-count {
- margin-left: auto;
- font-size: 10px;
- color: var(--es-text-secondary);
- background: var(--es-bg-tertiary);
- padding: 1px 6px;
- border-radius: 8px;
-}
-
-.es-addr-label-item {
- height: 24px;
- display: flex;
- align-items: center;
- padding: 0 8px;
-}
-
-.es-addr-label-item:hover {
- background: var(--es-bg-hover);
-}
-
-.es-addr-label-check {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 11px;
- cursor: pointer;
- user-select: none;
-}
-
-.es-addr-label-check input[type="checkbox"] {
- accent-color: var(--es-accent-gold);
-}
-
-.es-addressable-toolbar {
- display: flex;
- align-items: center;
- gap: 12px;
- padding: 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-addr-search {
- flex: 1;
-}
-
-.es-addr-asset-table {
- display: flex;
- flex-direction: column;
- flex: 1;
- overflow: hidden;
-}
-
-.es-addr-table-header {
- display: flex;
- align-items: center;
- height: 28px;
- padding: 0 12px 0 8px;
- background: var(--es-bg-secondary);
- border-bottom: 1px solid var(--es-border);
- font-size: 11px;
- color: var(--es-text-secondary);
- user-select: none;
-}
-
-.es-addr-table-header [data-col] {
- cursor: pointer;
-}
-
-.es-addr-table-header [data-col]:hover {
- color: var(--es-text-primary);
-}
-
-.es-addr-table-header [data-col].es-sorted {
- color: var(--es-text-primary);
-}
-
-.es-addr-table-body {
- flex: 1;
- overflow-y: auto;
-}
-
-.es-addr-table-row {
- display: flex;
- align-items: center;
- height: 28px;
- padding: 0 12px 0 8px;
- font-size: 12px;
- cursor: default;
-}
-
-.es-addr-table-row:hover {
- background: var(--es-bg-hover);
-}
-
-.es-addr-table-row:nth-child(even) {
- background: rgba(255, 255, 255, 0.02);
-}
-
-.es-addr-table-row:nth-child(even):hover {
- background: var(--es-bg-hover);
-}
-
-.es-addr-table-row.es-selected {
- background: var(--es-selection-bg);
-}
-
-.es-addr-table-row.es-selected .es-addr-col-name {
- color: var(--es-accent-gold);
-}
-
-.es-addr-table-row:active {
- background: rgba(255, 255, 255, 0.05);
-}
-
-.es-addr-col-name {
- flex: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-addr-col-address {
- flex: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-addr-col-labels {
- flex: 1.5;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-addr-col-type {
- width: 80px;
- flex-shrink: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-addr-col-size {
- width: 70px;
- flex-shrink: 0;
- text-align: right;
-}
-
-.es-addr-sort-icon {
- margin-left: 2px;
- font-size: 9px;
-}
-
-.es-addr-empty {
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 1;
- color: var(--es-text-secondary);
- font-size: 12px;
- padding: 24px;
-}
-
-.es-addr-tag {
- display: inline-block;
- padding: 0 5px;
- margin-right: 3px;
- border-radius: 3px;
- font-size: 10px;
- background: color-mix(in srgb, var(--tag-color) 20%, transparent);
- color: var(--tag-color);
- line-height: 16px;
-}
-
-.es-addr-label-toggle {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 2px 6px;
- margin: 1px 3px 1px 0;
- border-radius: 3px;
- font-size: 11px;
- cursor: pointer;
- user-select: none;
- background: color-mix(in srgb, var(--tag-color) 10%, transparent);
- color: var(--es-text-secondary);
- transition: background 0.1s;
-}
-
-.es-addr-label-toggle:has(input:checked) {
- background: color-mix(in srgb, var(--tag-color) 25%, transparent);
- color: var(--tag-color);
-}
-
-.es-addr-label-toggle input[type="checkbox"] {
- width: 12px;
- height: 12px;
- accent-color: var(--tag-color);
-}
-
-.es-addr-inspector-labels {
- display: flex;
- flex-wrap: wrap;
- gap: 0;
-}
-
-.es-property-row-top {
- align-items: flex-start;
-}
-
-.es-addr-label-dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- display: inline-block;
- flex-shrink: 0;
-}
-
-.es-addr-table-row[draggable="true"] { cursor: grab; }
-.es-addr-table-row.es-dragging { opacity: 0.5; }
-
-.es-addr-group-item.es-drag-over {
- background: rgba(97, 175, 239, 0.25);
- border-left-color: var(--es-drag);
-}
-
-.es-addr-config-toggle {
- padding: 6px 8px;
- font-size: 10px;
- color: var(--es-text-secondary);
- cursor: pointer;
- user-select: none;
- border-top: 1px solid var(--es-border);
-}
-
-.es-addr-config-toggle:hover {
- color: var(--es-text-primary);
-}
-
-.es-addr-group-config-body {
- padding: 4px 8px 8px;
-}
-
-.es-addr-config-field {
- display: flex;
- flex-direction: column;
- gap: 2px;
- margin-bottom: 6px;
-}
-
-.es-addr-config-label {
- color: var(--es-text-secondary);
- font-size: 10px;
- text-transform: uppercase;
-}
-
-.es-addr-config-field .es-input {
- font-size: 11px;
- height: 22px;
-}
-
-.es-addr-include-list {
- font-size: 11px;
-}
-
-.es-addr-include-item {
- padding: 2px 0;
- color: var(--es-text-primary);
- font-family: monospace;
- font-size: 10px;
-}
-
-.es-addr-unreferenced {
- border-top: 1px solid var(--es-border);
- background: var(--es-bg-secondary);
- max-height: 200px;
- overflow-y: auto;
-}
-
-.es-addr-unreferenced-header {
- padding: 6px 12px;
- font-size: 11px;
- font-weight: 600;
- color: #e06c75;
- border-bottom: 1px solid var(--es-border);
-}
-
-.es-addr-unreferenced-list {
- padding: 0;
-}
-
-.es-addr-unreferenced-row {
- display: flex;
- align-items: center;
- height: 24px;
- padding: 0 12px 0 8px;
- font-size: 11px;
- cursor: default;
-}
-
-.es-addr-unreferenced-row:hover {
- background: var(--es-bg-hover);
-}
-
-.es-addr-unreferenced-row .es-addr-col-name {
- flex: 2;
-}
-
-.es-addr-unreferenced-row .es-addr-col-type {
- width: 60px;
-}
-
-.es-addr-unreferenced-row .es-addr-col-size {
- width: 60px;
-}
-
-.es-addressable-status {
- padding: 6px 12px;
- font-size: 11px;
- color: var(--es-text-secondary);
- background: var(--es-bg-secondary);
- border-top: 1px solid var(--es-border);
-}
-
-.es-muted {
- color: var(--es-text-secondary);
- font-size: 11px;
- padding: 8px;
-}
-
-/* =========================================================================
- UIRect Editor
- ========================================================================= */
-
-.es-uirect-editor { display: flex; flex-direction: column; gap: 6px; width: 100%; }
-
-.es-property-editor-full { width: 100%; }
-
-.es-anchor-section { display: flex; flex-direction: column; gap: 4px; }
-.es-anchor-title {
- font-size: 11px;
- color: var(--es-text-secondary);
- letter-spacing: 0.02em;
-}
-.es-anchor-mode-label {
- font-size: 10px;
- color: var(--es-text-secondary);
- min-height: 14px;
-}
-.es-anchor-presets {
- display: flex; gap: 0; align-items: start;
- padding: 5px;
- background: var(--es-bg-secondary);
- border-radius: 4px;
- border: 1px solid var(--es-border);
-}
-.es-anchor-group {
- display: flex; flex-direction: column; align-items: center; gap: 3px;
-}
-.es-anchor-group + .es-anchor-group {
- margin-left: 6px;
- padding-left: 6px;
- border-left: 1px solid var(--es-border);
-}
-.es-anchor-caption {
- font-size: 9px;
- color: var(--es-text-secondary);
- opacity: 0.6;
- text-transform: uppercase;
- letter-spacing: 0.05em;
-}
-.es-anchor-grid {
- display: grid;
- grid-template-columns: repeat(3, 28px);
- gap: 2px;
-}
-.es-anchor-stretch {
- display: flex; flex-direction: column; gap: 2px;
-}
-.es-anchor-cell {
- width: 28px; height: 28px;
- border: 1px solid transparent;
- background: transparent;
- cursor: pointer;
- display: flex; align-items: center; justify-content: center;
- border-radius: 3px;
- padding: 0;
- color: var(--es-text-secondary);
- transition: background 0.1s, border-color 0.1s, color 0.1s;
-}
-.es-anchor-cell:hover {
- background: var(--es-bg-hover);
- border-color: var(--es-border);
- color: var(--es-text-primary);
-}
-.es-anchor-cell.es-active {
- background: var(--es-accent);
- border-color: var(--es-accent);
- color: #fff;
-}
-.es-anchor-cell svg { width: 20px; height: 20px; }
-
-.es-floating-window {
- position: fixed;
- z-index: 5000;
- background: var(--es-bg-secondary);
- border: 1px solid var(--es-border);
- border-radius: 6px;
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
- display: flex;
- flex-direction: column;
- overflow: hidden;
- color: var(--es-text-primary);
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- font-size: 13px;
-}
-.es-floating-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 8px 12px;
- background: var(--es-bg-tertiary);
- border-bottom: 1px solid var(--es-border);
- cursor: move;
- user-select: none;
- flex-shrink: 0;
-}
-.es-floating-title {
- font-size: 13px;
- font-weight: 500;
-}
-.es-floating-body {
- flex: 1;
- min-height: 0;
- overflow: hidden;
-}
-.es-addressable-window {
- width: 900px;
- height: 600px;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- resize: both;
- min-width: 600px;
- min-height: 400px;
-}
-.es-addressable-window .es-addressable-panel > .es-panel-header {
- display: none;
-}
-
-.es-uirect-fields { display: flex; flex-direction: column; gap: 4px; }
-.es-uirect-row { display: flex; align-items: center; min-height: 22px; }
-.es-uirect-label { width: 72px; flex-shrink: 0; color: var(--es-text-secondary); font-size: 11px; }
-.es-uirect-row .es-vec-editor { flex: 1; }
-.es-uirect-pair { display: flex; gap: 8px; flex: 1; }
-.es-uirect-pair-item { display: flex; align-items: center; flex: 1; gap: 4px; }
-.es-uirect-pair-label { color: var(--es-text-secondary); font-size: 10px; flex-shrink: 0; cursor: ew-resize; }
-
-/* =============================================================================
- * Error Boundaries
- * ============================================================================= */
-
-.es-error-fallback {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 40px;
- text-align: center;
- background: rgba(224, 108, 117, 0.05);
- border: 2px dashed rgba(224, 108, 117, 0.3);
- border-radius: 8px;
- margin: 20px;
- min-height: 200px;
-}
-
-.es-error-fallback-icon {
- color: #e06c75;
- margin-bottom: 16px;
-}
-
-.es-error-fallback-title {
- font-size: 18px;
- font-weight: 600;
- margin: 0 0 8px 0;
- color: #e06c75;
-}
-
-.es-error-fallback-message {
- font-size: 14px;
- margin: 0 0 16px 0;
- color: var(--es-text-secondary);
- max-width: 600px;
-}
-
-.es-error-fallback-details {
- margin: 16px 0;
- width: 100%;
- max-width: 700px;
- text-align: left;
-}
-
-.es-error-fallback-details summary {
- cursor: pointer;
- padding: 8px 12px;
- background: var(--es-bg-secondary);
- border-radius: 4px;
- font-size: 12px;
- color: var(--es-text-secondary);
- user-select: none;
-}
-
-.es-error-fallback-details summary:hover {
- background: var(--es-bg-tertiary);
-}
-
-.es-error-fallback-stack {
- background: var(--es-bg-tertiary);
- padding: 12px;
- border-radius: 4px;
- font-size: 11px;
- font-family: 'Consolas', 'Monaco', monospace;
- overflow-x: auto;
- max-height: 200px;
- overflow-y: auto;
- margin-top: 8px;
- color: var(--es-text-primary);
- white-space: pre-wrap;
- word-break: break-all;
-}
-
-.es-error-fallback-actions {
- display: flex;
- gap: 8px;
- margin-top: 16px;
-}
-
-/* =============================================================================
- * Content Drawer
- * ============================================================================= */
-
-.es-content-drawer {
- position: relative;
- height: 0;
- overflow: hidden;
- transition: height 0.2s ease;
- border-top: 1px solid var(--es-border);
- display: flex;
- flex-direction: column;
- flex-shrink: 0;
-}
-
-.es-content-drawer.es-drawer-open {
- height: var(--drawer-height, 300px);
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
-}
-
-.es-content-drawer.es-drawer-resizing {
- transition: none;
-}
-
-.es-content-drawer-resize {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 4px;
- cursor: ns-resize;
- z-index: 10;
-}
-
-.es-content-drawer-resize:hover,
-.es-content-drawer-resize:active {
- background: var(--es-accent);
-}
-
-.es-content-drawer-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 28px;
- min-height: 28px;
- padding: 0 8px;
- background: var(--es-bg-tertiary);
- border-bottom: 1px solid var(--es-border);
- user-select: none;
-}
-
-.es-content-drawer-title {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 12px;
- color: var(--es-text-primary);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.es-content-drawer-title svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-content-drawer-actions {
- display: flex;
- align-items: center;
- gap: 2px;
-}
-
-.es-content-drawer-actions .es-btn-icon {
- width: 22px;
- height: 22px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: transparent;
- border: none;
- border-radius: 3px;
- cursor: pointer;
- padding: 0;
-}
-
-.es-content-drawer-actions .es-btn-icon:hover {
- background: var(--es-bg-hover);
-}
-
-.es-content-drawer-actions .es-btn-icon svg {
- stroke: var(--es-text-secondary);
-}
-
-.es-content-drawer-actions .es-btn-icon:hover svg {
- stroke: var(--es-text-primary);
-}
-
-.es-content-drawer-actions .es-btn-icon.es-active svg {
- stroke: var(--es-accent);
-}
-
-.es-content-drawer-body {
- flex: 1;
- overflow: hidden;
-}
-
-.es-content-drawer-body .es-content-browser-header {
- display: none;
-}
-
-/* =============================================================================
- * Focus Visible
- * ============================================================================= */
-
-.es-btn:focus-visible,
-.es-btn-icon:focus-visible,
-.es-gizmo-btn:focus-visible,
-.es-menu-trigger:focus-visible,
-.es-menu-item:focus-visible,
-.es-context-menu-item:focus-visible,
-.es-input:focus-visible,
-.es-input-checkbox:focus-visible,
-.es-statusbar-btn:focus-visible {
- outline: 2px solid var(--es-accent);
- outline-offset: 2px;
-}
-
-/* =============================================================================
- * Active / Pressed States
- * ============================================================================= */
-
-.es-btn:active:not(:disabled) {
- background: var(--es-bg-primary);
-}
-
-.es-btn-icon:active {
- background: var(--es-bg-primary);
-}
-
-.es-gizmo-btn:active {
- background: var(--es-bg-primary);
-}
-
-/* =============================================================================
- * Splitter
- * ============================================================================= */
-
-.es-splitter {
- background: var(--es-border);
- flex-shrink: 0;
- transition: background 0.15s;
-}
-
-.es-splitter:hover {
- background: var(--es-accent);
-}
-
-.es-splitter-horizontal {
- width: 100%;
- height: 4px;
- cursor: ns-resize;
-}
-
-.es-splitter-vertical {
- width: 4px;
- height: 100%;
- cursor: ew-resize;
-}
-
-/* =============================================================================
- * Reduced Motion
- * ============================================================================= */
-
-@media (prefers-reduced-motion: reduce) {
- *, *::before, *::after {
- animation-duration: 0.01ms !important;
- animation-iteration-count: 1 !important;
- transition-duration: 0.01ms !important;
- }
-}
diff --git a/editor/src/styles/game-view.css b/editor/src/styles/game-view.css
index 764e2aa25..b8a0cdb48 100644
--- a/editor/src/styles/game-view.css
+++ b/editor/src/styles/game-view.css
@@ -1,7 +1,3 @@
-/* =============================================================================
- * GameView Panel
- * ============================================================================= */
-
.es-gameview-panel {
height: 100%;
display: flex;
@@ -73,8 +69,10 @@
justify-content: center;
}
-.es-gameview-canvas {
+.es-gameview-iframe {
display: none;
+ border: none;
+ background: #000;
}
.es-gameview-placeholder {
diff --git a/editor/src/styles/index.css b/editor/src/styles/index.css
index 6e8eb9066..86ee3d91b 100644
--- a/editor/src/styles/index.css
+++ b/editor/src/styles/index.css
@@ -7,4 +7,5 @@
@import './game-view.css';
@import './content-browser.css';
@import './dialogs.css';
+@import './output.css';
@import './builder.css';
diff --git a/editor/src/styles/output.css b/editor/src/styles/output.css
new file mode 100644
index 000000000..f607ed387
--- /dev/null
+++ b/editor/src/styles/output.css
@@ -0,0 +1,221 @@
+/* =============================================================================
+ * Output Panel
+ * ============================================================================= */
+
+.es-output-container {
+ height: 100%;
+}
+
+.es-output-panel {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ background: var(--es-bg-primary);
+}
+
+.es-output-header {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 4px 8px;
+ background: var(--es-bg-secondary);
+ border-bottom: 1px solid var(--es-border);
+ flex-shrink: 0;
+}
+
+.es-output-toolbar {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ flex: 1;
+ min-width: 0;
+}
+
+.es-output-filters {
+ display: flex;
+ gap: 2px;
+ flex-shrink: 0;
+}
+
+.es-output-filter-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 3px;
+ padding: 2px 6px;
+ font-size: 11px;
+ border-radius: 3px;
+ color: var(--es-text-secondary);
+ opacity: 0.5;
+ cursor: pointer;
+}
+
+.es-output-filter-btn.es-active {
+ opacity: 1;
+ color: var(--es-text-primary);
+}
+
+.es-output-filter-command.es-active { color: var(--es-accent); }
+.es-output-filter-stderr.es-active { color: #e5c07b; }
+.es-output-filter-error.es-active { color: var(--es-danger); }
+.es-output-filter-success.es-active { color: var(--es-success); }
+
+.es-output-filter-count {
+ font-size: 10px;
+ opacity: 0.7;
+ min-width: 8px;
+ text-align: center;
+}
+
+.es-output-search-wrap {
+ flex: 1;
+ min-width: 60px;
+ max-width: 200px;
+}
+
+.es-output-search {
+ width: 100%;
+ padding: 2px 6px;
+ font-size: 11px;
+ border: 1px solid var(--es-border);
+ border-radius: 3px;
+ background: var(--es-bg-primary);
+ color: var(--es-text-primary);
+ outline: none;
+}
+
+.es-output-search:focus {
+ border-color: var(--es-accent);
+}
+
+.es-output-actions {
+ display: flex;
+ gap: 2px;
+ flex-shrink: 0;
+}
+
+.es-output-scroll-btn.es-active {
+ color: var(--es-accent);
+}
+
+.es-output-content {
+ flex: 1;
+ overflow: auto;
+ padding: 8px;
+ font-family: 'Consolas', 'Monaco', monospace;
+ font-size: 12px;
+ user-select: text;
+ cursor: text;
+}
+
+.es-output-empty {
+ color: var(--es-text-secondary);
+ text-align: center;
+ padding: 20px;
+}
+
+/* =============================================================================
+ * Output Panel Lines
+ * ============================================================================= */
+
+.es-output-line {
+ font-family: 'Consolas', 'Monaco', monospace;
+ font-size: 12px;
+ line-height: 1.5;
+ white-space: pre-wrap;
+ word-break: break-all;
+}
+
+.es-output-badge {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 18px;
+ height: 16px;
+ padding: 0 5px;
+ margin-right: 6px;
+ border-radius: 8px;
+ background: var(--es-accent);
+ color: #fff;
+ font-size: 10px;
+ font-weight: 600;
+ line-height: 1;
+ vertical-align: middle;
+}
+
+.es-output-command {
+ color: var(--es-accent);
+ font-weight: 500;
+ margin-top: 8px;
+}
+
+.es-output-stdout {
+ color: var(--es-text-primary);
+}
+
+.es-output-stderr {
+ color: #e5c07b;
+}
+
+.es-output-error {
+ color: var(--es-danger);
+}
+
+.es-output-success {
+ color: var(--es-success);
+}
+
+.es-output-timestamp {
+ color: var(--es-text-secondary);
+ opacity: 0.6;
+ margin-right: 8px;
+ font-size: 11px;
+ user-select: none;
+}
+
+.es-output-group-header {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ padding: 4px 0 2px;
+ cursor: pointer;
+ user-select: none;
+ border-top: 1px solid var(--es-border);
+ margin-top: 4px;
+}
+
+.es-output-group-header:first-child {
+ border-top: none;
+ margin-top: 0;
+}
+
+.es-output-group-toggle {
+ display: inline-flex;
+ transition: transform 0.15s;
+}
+
+.es-output-group-header.es-collapsed .es-output-group-toggle {
+ transform: rotate(-90deg);
+}
+
+.es-output-context-menu {
+ position: fixed;
+ z-index: 10000;
+ min-width: 120px;
+ padding: 4px 0;
+ background: var(--es-bg-secondary);
+ border: 1px solid var(--es-border);
+ border-radius: 4px;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
+}
+
+.es-output-context-item {
+ padding: 5px 12px;
+ font-size: 12px;
+ cursor: pointer;
+ color: var(--es-text-primary);
+}
+
+.es-output-context-item:hover {
+ background: var(--es-accent);
+ color: #fff;
+}