/* Screen-space gesture layer: stays legible at every camera scale. */
#dispatch-drag{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:7;overflow:visible}
#dispatch-drag line{stroke:#1e604d;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 1px 1px #fff)}
#dispatch-drag circle{fill:#f6d78144;stroke:#205f4d;stroke-width:3;stroke-dasharray:5 3}
#dispatch-drag .drag-target{fill:#ffe9a380;stroke:#c58b24;stroke-width:4;stroke-dasharray:none}
#dispatch-drag text{font:600 12px system-ui,'Microsoft YaHei',sans-serif;fill:#fffbe8;paint-order:stroke;stroke:#205b48;stroke-width:5;stroke-linejoin:round}
#map-world .building>*{pointer-events:none}
#map-world .building{touch-action:none;-webkit-user-drag:none}
/* Map-only feedback: HUD and controls keep their own stacking and input. */
#battle-map.edge-panning{box-shadow:inset 0 0 32px #21694a66}
#battle-map.edge-panning #dispatch-drag line{stroke:#124832;stroke-width:5}
/* R5 legality uses the same model route query as dispatch. */
#map-world .building.legal-target .building-base { filter:drop-shadow(0 0 8px #ffe17e) drop-shadow(0 0 3px #205f4d); }
#map-world .building.legal-target:after { content:'';position:absolute;inset:4px -5px 0;border:3px solid #efcf72;border-radius:28px;pointer-events:none; }
#map-world .building.illegal-target { opacity:.48; }
#dispatch-drag .drag-route { fill:none;stroke:#205f4d;stroke-width:4;stroke-linejoin:round;stroke-linecap:round; }
#dispatch-drag .drag-unconnected { fill:#675c4d22;stroke:#827766;stroke-dasharray:4 4; }
.route-buttons button:disabled { opacity:.4;cursor:default; }
