:root{--bg-app: #1e1e2e;--bg-panel: #252536;--bg-panel-alt: #2a2a3c;--bg-toolbar: #1a1a2a;--bg-menubar: #181828;--bg-statusbar: #16161e;--bg-input: #1c1c2c;--bg-canvas: #2d2d3d;--bg-console: #1a1a26;--bg-dropdown: #22222f;--bg-tab-active: #2e2e42;--bg-tool-active: #3a3a52;--bg-tool-hover: #2f2f44;--bg-hover: #2f2f44;--bg-active: #3a3a52;--border-panel: #3a3a50;--border-subtle: #2e2e42;--border-focus: #6a8cff;--text-primary: #e0ddd4;--text-secondary: #a8a4a0;--text-muted: #6e6a66;--accent: #5b8cff;--accent-primary: #5b8cff;--accent-hover: #7aa4ff;--accent-green: #60c080;--accent-red: #e06060;--accent-yellow: #d4c050;--accent-orange: #e09050;--menubar-h: 24px;--toolbar-h: 36px;--statusbar-h: 22px;--left-panel-w: 240px;--right-panel-w: 260px;--bottom-panel-h: 160px;--resize-handle: 4px;color:var(--text-primary);background:var(--bg-app);font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;font-size:12px}*,*:before,*:after{box-sizing:border-box}html,body,#root{width:100%;height:100%;min-height:100%;margin:0}body{overflow:hidden;overscroll-behavior:none;background:var(--bg-app)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.55}.editor-shell{position:fixed;inset:0;display:grid;grid-template-rows:var(--menubar-h) var(--toolbar-h) minmax(0,1fr) var(--statusbar-h);overflow:hidden;background:var(--bg-app);color:var(--text-primary)}.editor-shell--scripts-expanded{--right-panel-w: min(940px, 68vw)}.editor-shell--left-collapsed{--left-panel-w: 0px}.editor-shell--bottom-collapsed{--bottom-panel-h: 28px}.editor-toolbar{position:fixed;z-index:100;top:0;left:0;right:0;height:var(--menubar-h);background:var(--bg-menubar);border-bottom:1px solid var(--border-subtle)}.editor-menubar{display:flex;align-items:center;height:var(--menubar-h);padding:0 4px;gap:0}.editor-menu{position:relative}.editor-menu__trigger{height:var(--menubar-h);padding:0 10px;color:var(--text-primary);border-radius:2px;line-height:var(--menubar-h);list-style:none}.editor-menu__trigger::-webkit-details-marker{display:none}.editor-menu[open] .editor-menu__trigger,.editor-menu__trigger:hover{background:var(--accent);color:#fff}.editor-menu__panel{position:absolute;top:100%;left:0;z-index:200;min-width:220px;padding:4px 0;background:#22222f;border:1px solid var(--border-panel);box-shadow:0 4px 16px #00000080}.editor-menu__item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:5px 24px 5px 12px;border:0;background:transparent;color:var(--text-primary);font-size:11px;text-align:left}.editor-menu__item:hover:not(:disabled){background:var(--accent);color:#fff}.editor-menu__separator{height:1px;margin:4px 8px;background:var(--border-subtle)}.editor-menu__row{display:grid;grid-template-columns:minmax(0,1fr)}.editor-menu__item--static{cursor:default}.editor-menu__shortcut{color:var(--text-muted);font-size:10px}.editor-sidebar--left{position:fixed;z-index:90;top:var(--menubar-h);left:0;right:0;height:var(--toolbar-h);min-height:var(--toolbar-h);display:flex;align-items:center;padding:0 6px;overflow:visible;background:var(--bg-toolbar);border-bottom:1px solid var(--border-subtle)}.editor-tool-rail{display:flex;flex-direction:row;gap:2px}.editor-tool{width:28px;height:28px;min-width:28px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--text-secondary)}.editor-tool:hover:not(:disabled){background:var(--bg-hover);border-color:var(--border-panel);color:var(--text-primary)}.editor-tool--active{background:var(--bg-active);border-color:var(--accent);color:#fff}.editor-prototype-icon{width:16px;height:16px}.editor-toolbar-sep{width:1px;height:20px;margin:0 4px;background:var(--border-subtle)}.editor-toolbar-zoom{min-width:36px;color:var(--text-muted);font-size:10px;text-align:center}.editor-toolbar-toggle{display:inline-flex;align-items:center;gap:4px;height:24px;padding:3px 8px;border:0;border-radius:3px;background:transparent;color:var(--text-secondary);font-size:11px}.editor-toolbar-toggle:hover{background:var(--bg-tool-hover);color:var(--text-primary)}.editor-toolbar-toggle--on{color:var(--accent-primary)}.editor-toolbar-check{width:12px;height:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-panel);border-radius:2px;background:var(--bg-input)}.editor-toolbar-toggle--on .editor-toolbar-check{background:var(--accent-primary);border-color:var(--accent-primary)}.editor-toolbar-toggle--on .editor-toolbar-check:after{content:"";width:6px;height:6px;border-radius:1px;background:#fff}.editor-toolbar-spacer{flex:1}.editor-toolbar-layer-label{color:var(--text-muted);font-size:11px}.editor-toolbar-layer-select{width:100px;height:22px;padding:0 4px;font-size:10px}.editor-tool__label,.editor-tool small,.editor-text-icon{min-width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:currentColor;font-size:9px;font-weight:800;line-height:1;letter-spacing:0}.editor-main{position:fixed;inset:calc(var(--menubar-h) + var(--toolbar-h)) var(--right-panel-w) calc(var(--statusbar-h) + var(--bottom-panel-h)) var(--left-panel-w);min-width:0;min-height:0;overflow:hidden;background:var(--bg-canvas);border-left:1px solid var(--border-panel);border-right:1px solid var(--border-panel)}.editor-canvas-frame{position:absolute;inset:0;overflow:hidden;background:var(--bg-canvas)}.editor-viewport{position:absolute;inset:0;overflow:hidden}.editor-map-canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.editor-map-canvas--overlay{z-index:3}.editor-status{position:absolute;z-index:20;top:8px;left:8px;max-width:min(520px,calc(100vw - 32px));padding:8px 10px;background:#16161ee6;border:1px solid var(--border-panel);color:var(--text-secondary)}.editor-status--error{border-color:#e06060b3;color:#ffb3b3}.editor-sidebar--right{position:fixed!important;z-index:80;top:calc(var(--menubar-h) + var(--toolbar-h))!important;right:0!important;bottom:var(--statusbar-h)!important;left:auto!important;width:var(--right-panel-w)!important;height:auto!important;min-height:0;padding:0;overflow:hidden;background:var(--bg-panel);border-left:1px solid var(--border-panel)}.editor-prototype-left-panel{position:fixed;z-index:70;top:calc(var(--menubar-h) + var(--toolbar-h));left:0;bottom:var(--statusbar-h);width:var(--left-panel-w);min-width:0;overflow:hidden;background:var(--bg-panel);border-right:1px solid var(--border-panel)}.editor-shell--left-collapsed .editor-prototype-left-panel{display:none}.editor-prototype-reopen{position:fixed;z-index:85;border:1px solid var(--border-panel);background:var(--bg-panel-alt);color:var(--text-secondary);font-size:11px}.editor-prototype-reopen--left{top:calc(var(--menubar-h) + var(--toolbar-h) + 8px);left:0;padding:6px 4px;writing-mode:vertical-rl;text-orientation:mixed}.editor-prototype-resize-handle{position:fixed;z-index:75;background:transparent;transition:background .16s ease}.editor-prototype-resize-handle:hover{background:var(--accent-primary)}.editor-prototype-resize-handle--left{top:calc(var(--menubar-h) + var(--toolbar-h));left:var(--left-panel-w);bottom:var(--statusbar-h);width:var(--resize-handle);cursor:col-resize}.editor-prototype-resize-handle--right{top:calc(var(--menubar-h) + var(--toolbar-h));right:var(--right-panel-w);bottom:var(--statusbar-h);width:var(--resize-handle);cursor:col-resize}.editor-prototype-resize-handle--bottom{left:var(--left-panel-w);right:var(--right-panel-w);bottom:calc(var(--statusbar-h) + var(--bottom-panel-h));height:var(--resize-handle);cursor:row-resize}.editor-prototype-panel-header{height:28px;min-height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:var(--bg-panel-alt);border-bottom:1px solid var(--border-subtle);color:var(--text-secondary);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.editor-prototype-collapse{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:2px;background:transparent;color:var(--text-muted);font-size:10px}.editor-prototype-collapse:hover{background:var(--bg-tool-hover);color:var(--text-primary)}.editor-prototype-panel-tabs{display:flex;background:var(--bg-toolbar);border-bottom:1px solid var(--border-subtle)}.editor-prototype-panel-tab{flex:1;min-width:0;padding:6px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--text-muted);font-size:11px}.editor-prototype-panel-tab:hover{background:var(--bg-tool-hover);color:var(--text-secondary)}.editor-prototype-panel-tab--active{background:var(--bg-tab-active);border-bottom-color:var(--accent-primary);color:var(--accent-primary)}.editor-prototype-tile-size-toggle{display:flex;gap:2px;padding:4px 8px;background:var(--bg-toolbar);border-bottom:1px solid var(--border-subtle)}.editor-prototype-tile-size-btn{flex:1;padding:3px 0;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--text-muted);font-size:10px}.editor-prototype-tile-size-btn:hover{background:var(--bg-tool-hover);color:var(--text-secondary)}.editor-prototype-tile-size-btn--active{background:var(--bg-tool-active);border-color:var(--border-panel);color:var(--text-primary)}.editor-prototype-palette-content{height:calc(100% - 84px);min-height:0;overflow:hidden}.editor-prototype-palette-label{padding:4px 6px 2px;color:var(--text-muted);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.editor-prototype-left-panel .editor-right-section--palette{height:calc(100% - 20px);display:grid;grid-template-rows:minmax(0,1fr);gap:8px;padding:0 4px 4px;overflow:hidden}.editor-prototype-left-panel .editor-right-section--palette>.editor-panel__header{display:none}.editor-prototype-left-panel .editor-palette-overview-card,.editor-prototype-left-panel .editor-palette-library,.editor-prototype-left-panel .editor-selected-tile-card{display:none}.editor-prototype-left-panel .editor-palette-overview-card__meta,.editor-prototype-left-panel .editor-selected-tile-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.editor-prototype-left-panel .editor-palette-scroller--main{min-height:0;overflow:auto;background:#1b1b29;border:1px solid var(--border-subtle);image-rendering:pixelated}.editor-prototype-left-panel .editor-palette-virtual-space{min-width:max-content}.editor-prototype-object-list{height:100%;display:flex;flex-direction:column;gap:2px;overflow:auto;padding:4px}.editor-prototype-object-item{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:8px;padding:5px 8px;border:0;border-radius:3px;background:transparent;color:var(--text-secondary);font-size:11px;text-align:left}.editor-prototype-object-item:hover{background:var(--bg-tool-hover);color:var(--text-primary)}.editor-prototype-object-item .editor-object-list__thumb{width:24px!important;height:24px!important;border-radius:3px}.editor-prototype-bottom-panel{position:fixed;z-index:65;left:var(--left-panel-w);right:var(--right-panel-w);bottom:var(--statusbar-h);height:var(--bottom-panel-h);min-width:0;overflow:hidden;background:var(--bg-console);border-top:1px solid var(--border-panel);border-left:1px solid var(--border-panel);border-right:1px solid var(--border-panel)}.editor-prototype-bottom-tabs{display:flex;align-items:stretch;height:100%}.editor-prototype-bottom-tab{min-width:auto;padding:0 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--text-muted);font-size:11px;text-align:left}.editor-prototype-bottom-tab--active{color:var(--text-primary);border-bottom-color:var(--accent-primary)}.editor-prototype-console{height:calc(100% - 28px);overflow:auto;padding:6px 10px;color:var(--text-secondary);font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.6;background:var(--bg-console)}.editor-shell--bottom-collapsed .editor-prototype-console{display:none}.editor-prototype-log-line{display:flex;gap:8px;padding:1px 0}.editor-prototype-log-time{flex-shrink:0;color:var(--text-muted)}.editor-prototype-log-msg{color:var(--text-secondary)}.editor-prototype-log-msg--info{color:#60c0d0}.editor-prototype-log-msg--success{color:var(--accent-green)}.editor-canvas-info{position:absolute;z-index:10;top:8px;right:8px;display:flex;gap:4px;pointer-events:none}.editor-canvas-badge{padding:2px 8px;border:1px solid var(--border-panel);border-radius:3px;background:#0009;color:var(--text-secondary);font-size:10px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.editor-shell--scripts-expanded .editor-sidebar--right{width:var(--right-panel-w)!important}.editor-right-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:var(--bg-panel)}.editor-right-shell.editor-panel{display:flex;padding:0;border:0;border-radius:0}.editor-right-dock-header{display:grid;grid-template-columns:minmax(0,1fr);min-height:30px;background:var(--bg-toolbar);border-bottom:1px solid var(--border-subtle)}.editor-right-dock-grip,.editor-sidebar-resize-handle,.editor-right-dock-actions{display:none}.editor-right-tabs{display:flex;overflow-x:auto}.editor-right-tab{min-width:0;padding:6px 9px;border:0;border-right:0;border-bottom:2px solid transparent;border-radius:0;background:var(--bg-toolbar);color:var(--text-muted);white-space:nowrap}.editor-right-tab:hover{background:var(--bg-hover);color:var(--text-secondary)}.editor-right-tab--active{background:var(--bg-tab-active);color:var(--accent-primary);border-bottom-color:var(--accent-primary);box-shadow:none}.editor-right-tab__label{display:inline;font-size:11px}.editor-right-panel-body{min-height:0;flex:1;overflow:auto;padding:0}.editor-panel,.editor-event-card,.editor-empty-state,.editor-compact-details{background:var(--bg-panel-alt);border:1px solid var(--border-subtle);border-radius:3px}.editor-panel{display:grid;gap:8px;padding:8px}.editor-sidebar--right .editor-right-section{gap:0}.editor-sidebar--right .editor-panel__header{min-height:28px;padding:0 8px;background:var(--bg-panel-alt);border-bottom:1px solid var(--border-subtle)}.editor-sidebar--right .editor-panel__section-title,.editor-sidebar--right .editor-panel__title{color:var(--text-secondary);font-size:11px;font-weight:700;letter-spacing:.08em}.editor-sidebar--right .editor-event-card,.editor-sidebar--right .editor-empty-state,.editor-sidebar--right .editor-compact-details{border:0;border-bottom:1px solid var(--border-subtle);border-radius:0;background:transparent}.editor-sidebar--right .editor-event-card{padding:0}.editor-sidebar--right .editor-event-card__header{min-height:28px;padding:6px 10px;color:var(--text-secondary);cursor:default}.editor-sidebar--right .editor-event-card__header:hover{background:var(--bg-tool-hover)}.editor-sidebar--right .editor-event-card__header:before{content:"▼";color:var(--text-muted);font-size:8px}.editor-sidebar--right .editor-event-card__body,.editor-sidebar--right .editor-card-grid,.editor-sidebar--right .editor-map-setup-grid{padding:6px 10px 10px}.editor-sidebar--right .editor-event-card__actions,.editor-sidebar--right .editor-inspector-actions{padding:6px 10px}.editor-sidebar--right .editor-button{min-height:22px;padding:3px 7px}.editor-sidebar--right .editor-field{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:6px}.editor-sidebar--right .editor-field>span,.editor-sidebar--right .editor-field__label{color:var(--text-muted);font-size:11px;font-weight:400;letter-spacing:0;text-transform:none}.editor-sidebar--right .editor-field input,.editor-sidebar--right .editor-field select,.editor-sidebar--right .editor-field textarea,.editor-sidebar--right .editor-select{min-height:22px;padding:3px 6px;font-size:11px}.editor-sidebar--right .editor-field textarea{grid-column:1 / -1}.editor-sidebar--right .editor-panel__row,.editor-sidebar--right .editor-map-setup-grid,.editor-sidebar--right .editor-card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.editor-sidebar--right .editor-field--span-2{grid-column:auto}.editor-sidebar--right .editor-encounter-summary{border:0;border-bottom:1px solid var(--border-subtle);background:transparent}.editor-right-section{display:grid;gap:8px}.editor-panel__header{min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 6px;border-bottom:1px solid var(--border-subtle)}.editor-panel__header--compact{min-height:24px;padding-bottom:4px}.editor-panel__section-title,.editor-panel__title{margin:0;color:var(--text-secondary);font-family:inherit;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.editor-panel__hint,.editor-panel__copy,.editor-event-card__meta{margin:0;color:var(--text-muted);font-size:11px;line-height:1.35}.editor-panel__hint--error{color:#ffb3b3}.editor-panel__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-panel__row--triplet{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-panel__stack{display:grid;gap:8px}.editor-event-card{display:grid;gap:8px;padding:8px}.editor-event-card--compact{padding:7px}.editor-event-card__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.editor-event-card__body{display:grid;gap:8px}.editor-event-card__body--dense{gap:6px}.editor-event-card__actions,.editor-inspector-actions{display:flex;flex-wrap:wrap;gap:4px}.editor-inspector-actions--double{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.editor-inspector-actions--triple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.editor-button{min-height:24px;padding:5px 8px;border:1px solid var(--border-panel);border-radius:3px;background:var(--bg-hover);color:var(--text-primary);font-size:11px;text-align:center}.editor-button:hover:not(:disabled){background:var(--bg-active);border-color:var(--accent)}.editor-button--primary{background:#314b83;border-color:var(--accent)}.editor-field{display:grid;gap:4px}.editor-field>span,.editor-field__label{color:var(--text-secondary);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.editor-field--compact{gap:3px}.editor-field--span-2{grid-column:span 2}input,select,textarea,.editor-select{width:100%;min-width:0;padding:5px 7px;border:1px solid var(--border-panel);border-radius:2px;outline:none;background:var(--bg-input);color:var(--text-primary)}input:focus,select:focus,textarea:focus{border-color:var(--border-focus)}textarea{resize:vertical}.editor-toggle,.editor-toggle-list{display:grid;gap:6px}.editor-toggle{grid-template-columns:auto minmax(0,1fr);align-items:start;color:var(--text-secondary)}.editor-segmented-control,.editor-encounter-kind-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border:1px solid var(--border-subtle)}.editor-segmented-control__button,.editor-encounter-kind-tab{min-width:0;padding:6px 4px;border:0;border-right:1px solid var(--border-subtle);border-radius:0;background:var(--bg-toolbar);color:var(--text-secondary);font-size:11px}.editor-segmented-control__button:last-child,.editor-encounter-kind-tab:last-child{border-right:0}.editor-segmented-control__button--active,.editor-encounter-kind-tab--active{background:#2e2e42;color:var(--accent-hover);box-shadow:inset 0 -2px 0 var(--accent)}.editor-object-list,.editor-map-list{display:grid;gap:4px}.editor-object-list--browser,.editor-map-list--browser{max-height:min(420px,calc(100vh - 230px));overflow:auto;padding-right:2px}.editor-object-list__item,.editor-map-list__item,.editor-layer-list__item{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;padding:6px;border:1px solid var(--border-subtle);border-radius:3px;background:#262638;color:var(--text-primary);text-align:left}.editor-map-list__item,.editor-layer-list__item{grid-template-columns:minmax(0,1fr)}.editor-object-list__item:hover,.editor-map-list__item:hover,.editor-layer-list__item:hover{background:var(--bg-hover);border-color:var(--border-panel)}.editor-object-list__item--active,.editor-map-list__item--active,.editor-layer-list__item--active{border-color:var(--accent);background:#30304a}.editor-map-list__item--highlighted{box-shadow:inset 0 0 0 1px var(--accent-hover)}.editor-object-list__content,.editor-selected-tile-copy{display:grid;gap:2px;min-width:0}.editor-object-list__primary,.editor-map-list__primary{overflow:hidden;color:var(--text-primary);font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.editor-object-list__meta,.editor-map-list__meta{overflow:hidden;color:var(--text-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.editor-object-list__thumb,.editor-selected-object-preview,.editor-tile-swatch,.editor-selected-tile-preview{width:40px;height:40px;background:var(--bg-canvas);border:1px solid var(--border-subtle);image-rendering:pixelated}.editor-selected-tile-card{grid-template-columns:auto minmax(0,1fr);align-items:center}.editor-empty-state{display:grid;gap:8px;padding:12px;color:var(--text-muted);text-align:center}.editor-empty-state--compact{padding:8px}.editor-pill,.editor-object-list__badge{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid var(--border-panel);border-radius:999px;color:var(--text-secondary);font-size:10px;font-weight:700;text-transform:uppercase}.editor-pill--accent,.editor-object-list__badge--critical{border-color:var(--accent);color:var(--accent-hover)}.editor-pill--muted{color:var(--text-muted)}.editor-map-setup-grid,.editor-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-event-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid var(--border-subtle);border-radius:999px;color:var(--text-secondary);font-size:10px}.editor-event-chip__icon{display:inline-flex}.editor-layer-list{display:grid;gap:4px}.editor-layer-list__row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:6px}.editor-layer-list__meta{color:var(--text-muted);font-size:10px}.editor-palette-grid,.editor-palette-panel,.editor-palette-canvas-host{min-width:0}.editor-palette-canvas-host,.editor-conversion-palette-host{max-height:min(520px,calc(100vh - 230px));overflow:auto;background:#1b1b29;border:1px solid var(--border-subtle)}.editor-palette-canvas,.editor-preview-canvas{display:block;image-rendering:pixelated}.editor-collision-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.editor-collision-button{min-height:28px;border:1px solid var(--border-subtle);background:#262638;color:var(--text-secondary)}.editor-collision-button--active{border-color:var(--accent);color:var(--text-primary);background:#30304a}.editor-statusbar{position:fixed;z-index:100;inset:auto 0 0;height:var(--statusbar-h);display:flex;align-items:center;gap:16px;overflow:hidden;padding:0 10px;background:var(--bg-statusbar);border-top:1px solid var(--border-subtle);color:#8a8680;font-size:10px}.editor-statusbar-item{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}.editor-statusbar-sep{width:1px;height:12px;flex-shrink:0;background:var(--border-subtle)}.editor-status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent-green)}.editor-statusbar-spacer{flex:1}.editor-encounter-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:var(--bg-panel-alt);border:1px solid var(--border-subtle)}.editor-encounter-summary div{display:grid;gap:2px}.editor-encounter-summary span,.editor-encounter-summary small{color:var(--text-muted)}.editor-encounter-toolbar{display:grid;grid-template-columns:minmax(72px,1fr) auto auto;align-items:end;gap:6px}.editor-encounter-grid{display:grid;gap:0;border-top:1px solid var(--border-subtle)}.editor-encounter-slot{display:grid;grid-template-columns:minmax(0,1fr) 64px 44px;align-items:center;gap:6px;padding:5px 8px;border:0;border-bottom:1px solid var(--border-subtle);border-radius:0;background:transparent;color:var(--text-primary);text-align:left}.editor-encounter-slot--active{box-shadow:inset 2px 0 0 var(--accent-primary);background:var(--bg-tab-active)}.editor-encounter-slot span,.editor-encounter-slot small{color:var(--text-muted);font-size:11px}.editor-compact-details{background:var(--bg-panel-alt)}.editor-compact-details summary{padding:7px 8px;color:var(--text-secondary);font-weight:700;cursor:pointer}.editor-compact-details .editor-panel__stack{padding:0 8px 8px}.editor-script-workspace{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:8px;min-height:0}.editor-script-workspace__sources{align-content:start;max-height:calc(100vh - 132px);overflow:auto}.editor-script-workspace__editor{min-width:0}.editor-monaco{overflow:hidden;border:1px solid var(--border-subtle);border-radius:3px}.editor-monaco--expanded{height:min(620px,calc(100vh - 300px))!important}.editor-hover-card,.editor-ui-tooltip,.editor-hit-chooser,.editor-canvas-selection-hud,.editor-convert-canvas-hud{position:absolute;z-index:30;padding:6px 8px;background:#181828f0;border:1px solid var(--border-panel);color:var(--text-secondary);pointer-events:auto}.editor-hover-card{display:grid;gap:2px}.editor-hit-chooser__list{display:grid;gap:4px;margin-top:6px}.editor-hit-chooser__item,.editor-canvas-selection-hud__action{border:1px solid var(--border-subtle);background:#262638;color:var(--text-primary)}.editor-hit-chooser__item--active{border-color:var(--accent)}.editor-canvas-selection-hud{display:flex;align-items:center;gap:4px}.editor-canvas-selection-hud__copy{display:grid;gap:1px;margin-right:4px}.editor-canvas-selection-hud__label{color:var(--text-muted);font-size:9px;text-transform:uppercase}.editor-canvas-selection-hud__title{color:var(--text-primary);font-size:11px}.editor-canvas-selection-hud__action{min-width:28px;height:24px}.editor-selection-banner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px;background:#22223a;border-bottom:1px solid var(--border-subtle)}.editor-selection-banner__copy{display:grid;gap:2px}.editor-selection-banner__eyebrow{color:var(--text-muted);font-size:9px;font-weight:700;text-transform:uppercase}.editor-selection-banner__actions{display:flex;gap:4px}.party-item-prompt,.battle-window-panel,.editor-sandbox{background:var(--bg-app)}.battle-window-panel,.editor-sandbox{position:fixed;inset:calc(var(--menubar-h) + var(--toolbar-h) + 8px) 8px calc(var(--statusbar-h) + 8px) 8px;z-index:120;overflow:auto;padding:8px}.battle-window-panel__preview,.battle-window-panel__metric,.editor-sandbox__pre,.editor-sandbox__column{background:var(--bg-panel-alt);border:1px solid var(--border-subtle);border-radius:3px}.editor-sandbox__results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}.editor-sandbox__pre{max-height:320px;overflow:auto;padding:8px;white-space:pre-wrap}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-panel)}::-webkit-scrollbar-thumb{background:var(--border-panel)}::-webkit-scrollbar-thumb:hover{background:#4a4a68}@media(max-width:920px){:root{--left-panel-w: 210px;--right-panel-w: 260px;--bottom-panel-h: 128px}.editor-main{inset:calc(var(--menubar-h) + var(--toolbar-h)) 0 calc(var(--statusbar-h) + var(--bottom-panel-h)) var(--left-panel-w)}.editor-sidebar--right,.editor-shell--scripts-expanded .editor-sidebar--right{left:auto!important;width:var(--right-panel-w)!important}.editor-prototype-bottom-panel{right:0}.editor-script-workspace,.editor-panel__row,.editor-map-setup-grid,.editor-card-grid{grid-template-columns:minmax(0,1fr)}.editor-field--span-2{grid-column:auto}}
