.grid-editor{--ge-surface:#fff;--ge-soft:#f4f6fa;--ge-text:#172235;--ge-muted:#66768a;--ge-line:#dbe2eb;--ge-node:#f3f5f8;--ge-selected:#f9ca7b;--ge-stat:#c5e8da;--ge-power:#c9dcf6;--ge-skill:#ddcef1;width:min(1100px,calc(100% - 32px));max-width:1100px;max-height:92dvh;padding:25px;background:var(--ge-surface);color:var(--ge-text);overflow:auto;overscroll-behavior:contain}
[data-theme=dark] .grid-editor{--ge-surface:#182638;--ge-soft:#122033;--ge-text:#e5edf6;--ge-muted:#9cacc2;--ge-line:#394b63;--ge-node:#22354a;--ge-selected:#efba62;--ge-stat:#376651;--ge-power:#31547c;--ge-skill:#5b467b}
.grid-editor .ge-header{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:20px}.grid-editor .ge-header h2{font-size:25px;letter-spacing:-.7px;font-weight:600;margin-top:5px}.grid-editor .ge-header p{color:var(--ge-muted);font-size:12px;margin-top:3px}.grid-editor .ge-close{font-size:28px;line-height:1;padding:0 4px;color:var(--ge-muted)}
.grid-editor .ge-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) 150px 120px auto;gap:16px;align-items:end;padding:15px;background:var(--ge-soft);border:1px solid var(--ge-line);border-radius:9px}.grid-editor .ge-toolbar label,.grid-editor .ge-search{display:block;font-size:10px;font-weight:600;color:var(--ge-muted)}.grid-editor input,.grid-editor select{display:block;width:100%;height:37px;padding:0 9px;margin-top:7px;background:var(--ge-surface);color:var(--ge-text);border:1px solid var(--ge-line);border-radius:5px;font-size:12px}.grid-editor .ge-energy span,.grid-editor .ge-energy small{display:block;font-size:9px;color:var(--ge-muted)}.grid-editor .ge-energy strong{display:block;font:600 21px var(--display);margin:3px 0;line-height:1}.grid-editor .ge-energy .ge-over-budget{color:#d45c65}.grid-editor .ge-lock-status{align-self:center;justify-self:end;font-size:10px;color:var(--ge-muted);white-space:nowrap}
.grid-editor .ge-instructions{font-size:10px;color:var(--ge-muted);line-height:1.7;margin:12px 0}.grid-editor .ge-message{padding:10px 13px;background:#dff1e8;color:#2e634b;border:1px solid #bedfce;border-radius:6px;font-size:11px;margin:10px 0}.grid-editor .ge-message.ge-error{background:#fae7e7;color:#9b3641;border-color:#e9bfc3}[data-theme=dark] .grid-editor .ge-message{background:#203f35;color:#b1dbc7;border-color:#3a6053}[data-theme=dark] .grid-editor .ge-message.ge-error{background:#4b2c36;color:#f1c1c9;border-color:#6d3b47}
.grid-editor .ge-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;margin-top:18px}.grid-editor .ge-board-section,.grid-editor .ge-list-section{min-width:0}.grid-editor .ge-legend{display:flex;flex-wrap:wrap;gap:9px;font-size:9px;color:var(--ge-muted)}.grid-editor .ge-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;background:var(--ge-node)}.grid-editor .ge-legend-stat:before{background:var(--ge-stat)!important}.grid-editor .ge-legend-power:before{background:var(--ge-power)!important}.grid-editor .ge-legend-skill:before{background:var(--ge-skill)!important}.grid-editor .ge-legend-selected:before{background:var(--ge-selected)!important}
.grid-editor .ge-map-wrap{margin:10px 0;background:var(--ge-soft);border:1px solid var(--ge-line);border-radius:9px;padding:10px;max-height:580px;overflow:hidden}.grid-editor .ge-map-wrap svg{display:block;width:100%;height:auto;max-height:550px}.grid-editor .ge-edge{stroke:var(--ge-line);stroke-width:2}.grid-editor .ge-edge-selected{stroke:var(--ge-selected);stroke-width:3}.grid-editor .ge-center circle{fill:var(--ge-surface);stroke:var(--ge-line);stroke-width:2}.grid-editor .ge-center text{font:600 6px var(--font);fill:var(--ge-muted);letter-spacing:.3px}.grid-editor .ge-map-node{cursor:pointer;outline:none}.grid-editor .ge-map-node polygon{stroke:var(--ge-line);stroke-width:1.5;fill:var(--ge-node);transition:fill .12s,stroke .12s}.grid-editor .ge-map-node.ge-kind-stat polygon{fill:var(--ge-stat)}.grid-editor .ge-map-node.ge-kind-powerup polygon{fill:var(--ge-power)}.grid-editor .ge-map-node.ge-kind-skill polygon{fill:var(--ge-skill)}.grid-editor .ge-map-node.ge-selected polygon{fill:var(--ge-selected);stroke:#bd8b3a;stroke-width:2}.grid-editor .ge-map-node.ge-level-locked{opacity:.38}.grid-editor .ge-map-node:focus-visible polygon{stroke:#528ef0;stroke-width:4}.grid-editor .ge-map-label{font:600 10px var(--display);fill:var(--ge-text);pointer-events:none}.grid-editor .ge-map-cost{font:500 6px var(--font);fill:var(--ge-muted);pointer-events:none}.grid-editor .ge-map-node.ge-selected text{fill:#262b34}
.grid-editor .ge-detail{padding:14px;background:var(--ge-soft);border-left:3px solid var(--accent);border-radius:4px;font-size:10px;min-height:100px}.grid-editor .ge-detail small{font-size:8px;color:var(--ge-muted);letter-spacing:.4px}.grid-editor .ge-detail h3{font-size:13px;margin:4px 0;font-weight:600}.grid-editor .ge-detail p{color:var(--ge-muted);line-height:1.7}.grid-editor .ge-detail>span{display:block;font-size:9px;color:var(--ge-muted);margin-top:8px}
.grid-editor .ge-list-count{font-size:9px;color:var(--ge-muted);margin:9px 0}.grid-editor .ge-node-list{display:grid;gap:6px;max-height:660px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 3px 2px}.grid-editor .ge-node-row{display:flex;align-items:start;gap:9px;border:1px solid var(--ge-line);border-radius:6px;padding:11px;text-align:left;background:var(--ge-surface);width:100%;color:var(--ge-text)}.grid-editor .ge-node-row:hover,.grid-editor .ge-node-row.ge-inspected{background:var(--ge-soft)}.grid-editor .ge-node-row.ge-selected{border-color:#d3a251;box-shadow:inset 3px 0 0 var(--accent)}.grid-editor .ge-node-row.ge-level-locked{opacity:.5}.grid-editor .ge-node-check{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;font-size:13px;border:1px solid var(--ge-line);border-radius:4px;color:var(--ge-muted)}.grid-editor .ge-selected .ge-node-check{background:var(--ge-selected);color:#253242;border-color:var(--ge-selected)}.grid-editor .ge-node-copy{display:grid;gap:4px;min-width:0}.grid-editor .ge-node-copy strong{font-size:11px;font-weight:600;line-height:1.4}.grid-editor .ge-node-copy>span{font-size:10px;line-height:1.65;color:var(--ge-muted)}.grid-editor .ge-node-copy small{font-size:8px;color:var(--ge-muted)}.grid-editor .ge-empty{font-size:11px;padding:20px;color:var(--ge-muted)}
.grid-editor .ge-summary-section,.grid-editor .ge-event-section{border-top:1px solid var(--ge-line);padding-top:17px;margin-top:20px}.grid-editor .ge-summary-section h3,.grid-editor .ge-event-section h3{font-size:13px;font-weight:600;margin-bottom:7px}.grid-editor .ge-summary-section p,.grid-editor .ge-event-section>p{font-size:11px;color:var(--ge-muted);line-height:1.7}.grid-editor .ge-summary-section .ge-subtle{font-size:10px;margin-top:7px}.grid-editor #gridEventList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.grid-editor .ge-event-card{padding:12px;border:1px solid var(--ge-line);background:var(--ge-soft);border-radius:6px;min-width:0}.grid-editor .ge-event-card p{font-size:9px;color:var(--ge-muted);line-height:1.7;margin-top:8px}.grid-editor .ge-event-card button{text-align:left}
.grid-editor .ge-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--ge-line);margin:20px 0 0;padding:17px 0 0;color:var(--ge-muted)}.grid-editor .ge-footer a{font-size:10px}.grid-editor .ge-actions{display:flex;flex-wrap:wrap;gap:9px}.grid-editor .ge-secondary,.grid-editor .ge-primary{font-size:11px;font-weight:600;border-radius:5px;min-height:37px;padding:8px 13px}.grid-editor .ge-secondary{border:1px solid var(--ge-line);background:var(--ge-surface);color:var(--ge-text)}.grid-editor .ge-primary{background:var(--accent);color:#242c38}.grid-editor .ge-primary:hover{background:#ffc678}.grid-editor .ge-storage-note{font-size:9px;color:var(--ge-muted);margin-top:11px;line-height:1.7}
@media(max-width:740px){.grid-editor{width:calc(100% - 20px);padding:18px;max-height:94dvh}.grid-editor .ge-toolbar{grid-template-columns:1fr 1fr;gap:12px}.grid-editor .ge-name{grid-column:1/-1}.grid-editor .ge-toolbar>label:not(.ge-name){grid-column:1}.grid-editor .ge-energy{grid-column:2;grid-row:2}.grid-editor .ge-lock-status{grid-column:1/-1;justify-self:start}.grid-editor .ge-workspace{grid-template-columns:1fr;gap:17px}.grid-editor .ge-map-wrap{max-height:none}.grid-editor .ge-map-wrap svg{max-height:580px}.grid-editor .ge-node-list{max-height:400px}.grid-editor .ge-footer{display:block}.grid-editor .ge-actions{margin-top:14px}.grid-editor .ge-actions button{flex:1}.grid-editor #gridEventList{grid-template-columns:1fr}.grid-editor .ge-header h2{font-size:22px}.grid-editor .ge-node-copy>span{font-size:10px}.grid-editor .ge-list-section{border-top:1px solid var(--ge-line);padding-top:15px}}
@media(prefers-reduced-motion:reduce){.grid-editor .ge-map-node polygon{transition:none}}
/* Brybry categories: statsup, movepowerup, syncmove, passiveskill, moveeffect. */
.grid-editor,[data-theme=dark] .grid-editor{--ge-stat:#568dd1;--ge-power:#4ab897;--ge-sync:#b4b7ff;--ge-ability:#e6ce5e;--ge-effect:#e1768a}
.grid-editor .ge-legend-sync:before{background:linear-gradient(135deg,#8aeaff,#e2a7ff)!important}.grid-editor .ge-legend-ability:before{background:var(--ge-ability)!important}.grid-editor .ge-legend-effect:before{background:var(--ge-effect)!important}
.grid-editor {--ge-idle-fill:#dce1e7}
[data-theme=dark] .grid-editor {--ge-idle-fill:#34404d}
.grid-editor .ge-map-node.ge-kind-stat polygon{fill:var(--ge-idle-fill);stroke:var(--ge-stat)}
.grid-editor .ge-map-node.ge-kind-power polygon{fill:var(--ge-idle-fill);stroke:var(--ge-power)}
.grid-editor .ge-map-node.ge-kind-sync polygon{fill:var(--ge-idle-fill);stroke:var(--ge-sync)}
.grid-editor .ge-map-node.ge-kind-ability polygon{fill:var(--ge-idle-fill);stroke:var(--ge-ability)}
.grid-editor .ge-map-node.ge-kind-effect polygon{fill:var(--ge-idle-fill);stroke:var(--ge-effect)}
.grid-editor .ge-map-node.ge-selected polygon{stroke:#fff;stroke-width:3}
.grid-editor .ge-map-node.ge-kind-stat.ge-selected polygon{fill:var(--ge-stat)}
.grid-editor .ge-map-node.ge-kind-power.ge-selected polygon{fill:var(--ge-power)}
.grid-editor .ge-map-node.ge-kind-sync.ge-selected polygon{fill:url(#gridSyncGradient)}
.grid-editor .ge-map-node.ge-kind-ability.ge-selected polygon{fill:var(--ge-ability)}
.grid-editor .ge-map-node.ge-kind-effect.ge-selected polygon{fill:var(--ge-effect)}
.grid-editor .ge-map-node.ge-inspected polygon{stroke-width:3}
.grid-editor .ge-map-node:focus-visible polygon{stroke-width:4;filter:drop-shadow(0 0 2px var(--ge-text))}
.grid-editor .ge-map-label,.grid-editor .ge-map-cost,.grid-editor .ge-map-node.ge-selected .ge-map-label,.grid-editor .ge-map-node.ge-selected .ge-map-cost{fill:#12253d}.grid-editor .ge-map-cost{font-size:7px;font-weight:600}
.grid-editor .ge-map-node:not(.ge-selected) .ge-map-label,
.grid-editor .ge-map-node:not(.ge-selected) .ge-map-cost{fill:var(--ge-text)}
.grid-editor .ge-edge-selected{stroke:#7495b5}
.grid-editor .ge-node-list{max-height:650px}.grid-editor .ge-node-row.ge-selected{box-shadow:none;border-color:var(--ge-line);cursor:default}.grid-editor .ge-node-row.ge-selected:hover{background:var(--ge-surface)}.grid-editor .ge-node-check{border:0;color:#12253d!important}.grid-editor .ge-list-section h3{font-size:16px;font-weight:600;margin:0 0 8px}.grid-editor .ge-selection-hint{font-size:11px;line-height:1.7;color:var(--ge-muted)}
/* Full-width board, followed by the inspected cell and then the saved selection. */
.grid-editor .ge-workspace{grid-template-columns:minmax(0,1fr);gap:26px}
.grid-editor .ge-map-wrap{max-height:none;padding:20px;overflow:visible}
.grid-editor .ge-map-wrap svg{width:100%;max-width:760px;max-height:none;height:auto;margin:0 auto}
.grid-editor .ge-legend{font-size:11px;gap:14px;margin-bottom:12px}
.grid-editor .ge-info-heading{font-size:17px;font-weight:600;margin:22px 0 10px}
.grid-editor .ge-detail{padding:20px;font-size:13px;min-height:115px}
.grid-editor .ge-detail h3{font-size:17px;line-height:1.5;margin:6px 0}
.grid-editor .ge-detail small{font-size:11px}.grid-editor .ge-detail>span{font-size:12px}
.grid-editor .ge-list-section{border-top:1px solid var(--ge-line);padding-top:24px}
.grid-editor .ge-list-section h3{font-size:20px}
.grid-editor .ge-selection-hint,.grid-editor .ge-list-count{font-size:13px}
.grid-editor .ge-node-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:none;overflow:visible}
.grid-editor .ge-node-row{padding:16px}.grid-editor .ge-node-copy strong{font-size:13px}.grid-editor .ge-node-copy>span{font-size:12px}.grid-editor .ge-node-copy small{font-size:10px}
@media(max-width:740px){.grid-editor .ge-map-wrap{padding:8px}.grid-editor .ge-map-wrap svg{max-height:none}.grid-editor .ge-node-list{grid-template-columns:minmax(0,1fr)}.grid-editor .ge-detail{padding:15px}.grid-editor .ge-legend{font-size:10px;gap:10px}}
/* The cell preview remains visible while the large map scrolls beneath it. */
.grid-editor .ge-cell-preview{position:sticky;top:0;z-index:5;background:transparent;padding:0;margin-bottom:8px;max-height:32dvh;overflow:auto}
.grid-editor .ge-cell-preview.ge-has-detail{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:stretch;gap:8px 10px}
.grid-editor .ge-preview-heading{display:flex;align-items:center;justify-content:flex-end}
.grid-editor .ge-has-detail .ge-preview-heading{grid-column:2;grid-row:1;align-items:stretch}
.grid-editor .ge-has-detail .ge-detail{grid-column:1;grid-row:1;margin:0}
.grid-editor .ge-has-detail .ge-connection-warning{grid-column:1/-1}
.grid-editor .ge-has-detail .ge-live-energy{display:grid;align-content:center;justify-content:stretch;gap:10px;width:100%;padding:9px 10px}
.grid-editor .ge-has-detail .ge-live-energy>span{display:grid;gap:3px}
.grid-editor .ge-has-detail .ge-live-energy strong{font-size:16px}
.grid-editor .ge-cell-preview .ge-detail{padding:8px 12px;min-height:0;background:var(--ge-soft);border:1px solid var(--ge-line);border-left:3px solid var(--accent);border-radius:7px}.grid-editor .ge-cell-preview .ge-detail h3{font-size:16px;line-height:1.4;margin:3px 0}.grid-editor .ge-cell-preview .ge-detail p{font-size:12px;line-height:1.5}.grid-editor .ge-cell-preview .ge-detail>span{font-size:10px;margin-top:4px}.grid-editor .ge-cell-preview .ge-detail small{font-size:10px}
.grid-editor .ge-map-node{scroll-margin-top:min(36dvh,280px);scroll-margin-bottom:20px}
@media(max-width:740px){.grid-editor .ge-cell-preview{max-height:35dvh}.grid-editor .ge-cell-preview.ge-has-detail{grid-template-columns:minmax(0,1fr) 100px;column-gap:7px}.grid-editor .ge-cell-preview .ge-detail h3{font-size:14px}}

.grid-editor .ge-map-node.ge-kind-learn polygon{fill:var(--ge-idle-fill);stroke:var(--ge-effect)}
.grid-editor .ge-map-node.ge-kind-learn.ge-selected polygon{fill:var(--ge-effect);stroke:#fff}

.grid-editor .ge-map-node.ge-kind-max polygon{fill:var(--ge-idle-fill);stroke:#fd7770}
.grid-editor .ge-map-node.ge-kind-max.ge-selected polygon{fill:url(#gridMaxGradient);stroke:#fff}

.grid-editor .ge-legend-max:before{background:linear-gradient(135deg,#ffad35,#fd5e77)!important}

.grid-editor .ge-library {
 padding:15px;
 margin-bottom:14px;
 border:1px solid var(--ge-line);
 border-radius:9px;
 background:var(--ge-soft);
}
.grid-editor .ge-library-heading {
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 font-size:12px;
 font-weight:600;
}
.grid-editor .ge-library-heading span {
 color:var(--ge-muted);
 font-variant-numeric:tabular-nums;
}
.grid-editor .ge-library-controls {
 display:flex;
 align-items:center;
 gap:9px;
 margin-top:9px;
}
.grid-editor .ge-library-controls select {
 flex:1;
 min-width:0;
 margin:0;
}
.grid-editor .ge-library-controls button {
 flex-shrink:0;
}
.grid-editor .ge-library>p {
 margin-top:8px;
 font-size:10px;
 line-height:1.6;
 color:var(--ge-muted);
}
@media(max-width:600px) {
 .grid-editor .ge-library-controls {flex-wrap:wrap}
 .grid-editor .ge-library-controls select {flex-basis:100%}
 .grid-editor .ge-library-controls button {flex:1}
}

.grid-editor .ge-map-wrap.ge-map-wide{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%}.grid-editor .ge-map-wide svg{max-width:none}

.grid-editor .ge-live-energy {
 display:flex;
 flex-wrap:wrap;
 justify-content:flex-end;
 gap:6px 12px;
 padding:6px 9px;
 border:1px solid var(--ge-line);
 border-radius:7px;
 background:var(--ge-soft);
}
.grid-editor .ge-live-energy>span {
 display:flex;
 align-items:baseline;
 gap:6px;
 font-size:10px;
 line-height:1.3;
 color:var(--ge-muted);
}
.grid-editor .ge-live-energy strong {
 font-size:12px;
 font-weight:600;
 font-variant-numeric:tabular-nums;
 color:var(--ge-text);
}
.grid-editor #gridLiveEnergyRemaining {color:var(--accent)}
.grid-editor .ge-live-energy.ge-over-budget strong {color:#d45c65}
.grid-editor .ge-connection-warning {
 margin:7px 0;
 padding:7px 10px;
 border-left:3px solid #cf4545;
 background:#cf454512;
 color:#b33535;
 font-size:11px;
 line-height:1.5;
}
[data-theme=dark] .grid-editor .ge-connection-warning {color:#ffaaaa}
.grid-editor .ge-edge-disconnected {
 stroke:#d64545;
 stroke-width:4;
}
.grid-editor .ge-edge-missing {
 stroke:#d64545;
 stroke-width:3;
 stroke-dasharray:5 4;
 opacity:.75;
}
.grid-editor .ge-map-node.ge-selected.ge-disconnected polygon,
[data-theme=dark] .grid-editor .ge-map-node.ge-disconnected polygon {
 stroke:#e34c4c;
 stroke-width:1.5;
 stroke-dasharray:6 3;
}
.grid-editor .ge-node-row.ge-disconnected {border-color:#d64545}
.grid-editor .ge-legend-disconnected:before {
 background:transparent!important;
 border:2px dashed #d64545;
}

/* Saved grids open as editable copies; leaving a changed draft requires a choice. */
.grid-editor.ge-unsaved-dialog{width:min(490px,calc(100% - 32px));padding:24px;border:1px solid var(--ge-line);border-radius:12px}
.ge-unsaved-dialog h2{font-size:21px;margin:0 0 12px}
.ge-unsaved-dialog p{font-size:13px;line-height:1.6;color:var(--ge-muted)}
.ge-unsaved-dialog .ge-unsaved-hint{margin-top:12px;color:#d45c65}
.ge-unsaved-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:22px}
.team-card .grid-card-button{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%}
.grid-button-icon{display:block;width:25px;height:24px;flex:none}
.grid-card-button .grid-button-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Mobile map has its own viewport. Details sit below it and never move a touched tile. */
.ge-zoom-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.grid-editor .ge-zoom-controls button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--ge-line);border-radius:7px;background:var(--ge-soft);color:var(--ge-text);font:600 14px var(--font)}
.grid-editor .ge-zoom-controls button:disabled{opacity:.4;cursor:default}
.ge-zoom-buttons{display:flex;align-items:center;gap:8px;margin-inline:auto}
.ge-zoom-icon{display:block;width:24px;height:24px;flex:none;color:var(--ge-muted)}
.ge-fit-energy{display:flex;align-items:stretch;gap:10px;flex:1 1 230px;min-width:0}
.grid-editor .ge-fit-energy button{flex:1;min-width:0}
.ge-zoom-energy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:1;min-width:0;color:var(--ge-muted);font-size:12px;line-height:1.3;text-align:center}
.ge-zoom-energy strong{color:var(--ge-text);font-size:18px;font-variant-numeric:tabular-nums}
.ge-over-budget .ge-zoom-energy strong{color:#d45c65}
.grid-editor .ge-map-wrap~.ge-legend{margin-top:14px;margin-bottom:8px}
@media(max-width:740px){
 .grid-editor .ge-zoom-toolbar{position:sticky;top:0;z-index:7;margin:0 0 10px;padding:8px;border:1px solid var(--ge-line);border-radius:8px;background:var(--ge-surface);box-shadow:0 3px 9px #0002}
 .grid-editor .ge-preview-heading .ge-live-energy{display:none}
 .grid-editor .ge-cell-preview{margin-bottom:0}
 .grid-editor .ge-map-wrap,.grid-editor .ge-map-wrap.ge-map-wide{height:clamp(280px,55dvh,500px);max-height:none;padding:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain;scrollbar-width:thin}
 .grid-editor .ge-map-stage{display:flex;align-items:center;justify-content:center;min-width:100%;min-height:100%}
 .grid-editor .ge-map-wrap svg{flex:none;max-width:none;max-height:none;margin:0}
 .grid-editor .ge-cell-preview,.grid-editor .ge-cell-preview.ge-has-detail{position:static;display:block;max-height:none;overflow:visible}
 .grid-editor .ge-has-detail .ge-live-energy{display:flex;width:auto;gap:6px 12px;padding:6px 9px}
 .grid-editor .ge-has-detail .ge-live-energy>span{display:flex;gap:6px}
 .grid-editor .ge-has-detail .ge-live-energy strong{font-size:12px}
 .grid-editor #gridNodeDetail{min-height:0;margin:10px 0 0;padding:12px;border:1px solid var(--ge-line);border-left:3px solid var(--accent);background:var(--ge-soft);border-radius:7px}
 .grid-editor #gridNodeDetail h3{font-size:14px;margin:0 0 6px;line-height:1.4}
 .grid-editor #gridNodeDetail p{font-size:13px;line-height:1.5}
 .grid-editor #gridNodeDetail>span{font-size:12px}
 .grid-editor .ge-map-node{scroll-margin:12px}
 .grid-editor .ge-map-node:focus-visible polygon{stroke-width:3}
 .grid-editor input,.grid-editor select{font-size:16px}
}
