/* NOE Map Forge editor visuals: isolated from the game's window manager. */
#noe40MapLauncher:not([hidden]){padding:7px 10px;background:linear-gradient(130deg,#432c72,#623499);border:1px solid #bb8ce4;color:#fff2d5;border-radius:7px;letter-spacing:.1px;white-space:nowrap}
#noe40MapLauncher[aria-pressed="true"]{outline:2px solid #8af7bf}
#noe40MapPanel{position:fixed;right:12px;top:68px;z-index:10002;width:324px;max-width:min(93vw,380px);max-height:calc(100dvh - 130px);overflow:auto;border:1px solid #b58be3;border-radius:12px;padding:12px;background:linear-gradient(145deg,#211535f7,#101021f9);box-shadow:0 15px 45px #000d;color:#f7ddff;font:12px/1.4 system-ui,sans-serif;display:flex;flex-direction:column;gap:9px}
#noe40MapPanel[hidden]{display:none!important}
#noe40MapPanel header,#noe40MapPanel .noe40-row,#noe40MapPanel .noe40-modes{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
#noe40MapPanel header{justify-content:space-between}
#noe40MapPanel header strong{font-size:14px;letter-spacing:.4px}
#noe40MapPanel header small{font-size:10px;color:#9ee7d3}
#noe40MapPanel label{display:flex;flex-direction:column;gap:4px;color:#ead0f4;font-weight:600}
#noe40MapPanel select,#noe40MapPanel textarea{font:12px system-ui;background:#151027;color:#e8d9ff;border:1px solid #795d97;border-radius:6px;padding:7px;width:100%}
#noe40MapPanel button{padding:6px 8px;color:#fff0ff;background:#342149;border:1px solid #704c92;border-radius:6px;cursor:pointer;font-size:11px;flex-grow:1}
#noe40MapPanel button:hover{border-color:#d5b3ff;background:#4b2b62}
#noe40MapPanel .noe40-primary{background:#6439a4;border-color:#a66add;font-weight:700}
#noe40MapPanel button[aria-pressed="true"]{background:#477e62;border-color:#8af5b7;color:#fff}
#noe40MapPanel .noe40-muted{font-size:10px;color:#baadcf;margin:0;line-height:1.4}
#noe40MapPanel .noe40-stats{display:flex;justify-content:space-between;gap:8px;color:#9ff0cd;font-size:10px}
#noe40Notice{font-size:11px;padding:8px;min-height:35px;border:1px solid #423b61;border-radius:6px;background:#11152b;color:#c9e9f0}
.noe40-edit-root{isolation:isolate!important}
#noe40Draw{display:block;position:absolute;inset:0;z-index:10001;width:100%;height:100%;pointer-events:auto!important;cursor:crosshair;touch-action:none;overflow:visible}
#noe40Draw *{pointer-events:none}
@media(max-width:980px){#noe40MapPanel{left:8px;right:auto;top:64px;width:270px;max-height:55dvh}}
