/* Deliberately scoped to map dialogs; no changes to existing forms or permissions. */
#modal.tracking-dialog036{width:min(1100px,calc(100vw - 28px));max-width:1100px;max-height:calc(100dvh - 24px)}
#modal.tracking-dialog036.map-expanded036{width:calc(100vw - 20px);max-width:none;height:calc(100dvh - 20px)}
.tracking-dialog036 .modal-body{padding:20px;overflow:auto}.map-toolbar036{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:14px 0 10px}.map-toolbar036>label{display:grid;gap:4px;font-size:12px;color:#657486;min-width:250px}.map-toolbar036 select{height:43px;width:100%;border:1px solid #dbe2e8;border-radius:10px;padding:8px;background:white;color:#1e2b37;font:inherit;font-size:14px}.map-buttons036{display:flex;gap:7px}.map-buttons036 .btn{white-space:nowrap}.interactive-map036{height:390px;position:relative;overflow:hidden;isolation:isolate;touch-action:none;cursor:grab;border:1px solid #dae3e9;border-radius:15px;background:#e9edf0}.interactive-map036:focus-visible{outline:3px solid #ff9e35;outline-offset:2px}.interactive-map036.dragging036{cursor:grabbing}.tiles036{position:absolute;inset:0;z-index:0}.tiles036 img{position:absolute;width:256px;height:256px;min-width:256px;max-width:none;pointer-events:none;user-select:none}.vectors036{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:hidden;pointer-events:none}.route-line036{fill:none;stroke:#de7200;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 1px #fff)}.marker-start036{fill:#118453;stroke:white;stroke-width:3}.marker-end036{fill:#bd5300;stroke:white;stroke-width:3}.marker-cursor036{fill:#254ab3;stroke:white;stroke-width:3}.marker-label036{fill:white;font-size:12px;font-family:Arial,sans-serif;font-weight:bold}.attribution036{position:absolute;right:0;bottom:0;max-width:80%;font-size:10px;line-height:1.35;z-index:2;background:#fffffff0;padding:4px 6px;color:#324962;text-decoration:none;cursor:pointer}.scale036{position:absolute;bottom:18px;left:12px;z-index:2;border:2px solid #3c4854;border-top:0;line-height:17px;text-align:center;font-size:10px;color:#1e2b37;text-shadow:0 1px white;background:#ffffffbf}.tile-warning036{position:absolute;top:12px;left:12px;right:12px;z-index:3;border:1px solid #efc374;background:#fff4da;padding:9px;border-radius:7px;font-size:12px}.map-hint036{font-size:12px;color:#647387;line-height:1.55;margin:8px 0 16px}.map-follow036{justify-content:space-between;margin-bottom:16px}.map-expanded036 .interactive-map036{height:calc(100dvh - 280px);min-height:320px}.route-heading036{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:14px}.playback036{display:flex;align-items:center;gap:12px;margin:14px 0 7px;padding:12px;border:1px solid #e2e8ef;border-radius:12px;background:#f7f9fb}.playback036 input{min-width:60px;flex:1;accent-color:#e8810a}.playback036 span{font-size:12px;color:#415570;min-width:180px}.route-stats036{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.route-stats036 .detail-item{margin:0;min-width:0}.layer-options036{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0}.history-bind036{border:1px solid #dde5ed;border-radius:13px;padding:17px;margin-top:15px}.history-bind036 h4{margin:0 0 6px}.history-bind036 .form-grid{margin:14px 0}.history-bind036 button{margin-top:13px}.cycle-route036{white-space:nowrap;min-height:40px;gap:5px}.cycle-route036 svg{width:16px;height:16px}.cycle-table-wrap th:last-child{min-width:132px}
@media(max-width:650px){#modal.tracking-dialog036{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:18px}.tracking-dialog036 .modal-body{padding:12px}.map-toolbar036{flex-direction:column;align-items:stretch;gap:8px}.map-toolbar036>label{min-width:0}.map-buttons036{justify-content:space-between}.map-buttons036 .btn{flex:1;padding:8px;font-size:12px}.interactive-map036{height:340px}.playback036{flex-wrap:wrap;gap:8px}.playback036 input{width:calc(100% - 120px)}.playback036 span{width:100%;text-align:center}.route-stats036{grid-template-columns:1fr 1fr}.route-stats036 .detail-item{padding:12px;gap:7px}.layer-options036{grid-template-columns:1fr}.route-heading036{gap:8px;font-size:12px}.map-expanded036 .interactive-map036{height:calc(100dvh - 285px);min-height:300px}}

.map-attribution035{white-space:normal;max-width:100%;line-height:10px;font-size:8px!important;text-align:right}
