.operations-scenes{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.operations-scenes.single{grid-template-columns:1fr}.operations-scenes>.panel{min-width:0;margin:0;overflow:hidden}.operations-scenes .panelhead{gap:12px;align-items:center;flex-wrap:wrap}.operations-scenes .actions button{padding:8px 12px;font-size:12px}.operations-scenes .google-map-canvas,.operations-scenes #googleMap{min-height:510px;height:510px}.operations-scenes .floor-stage{min-height:0}.operation-floor-panel #overviewOperationsFloor{min-height:510px;display:flex;align-items:center;background:#081526}.operation-floor-panel #overviewOperationsFloor>.floor-stage{width:100%}.operations-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin-top:20px}.operations-cards>.panel{min-width:0}.operation-mini{padding:16px 20px;border-bottom:1px solid #223b50}.operation-mini>strong{display:block;margin-bottom:10px}.operation-device{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid #223b50;flex-wrap:wrap}.operation-device>span{display:flex;align-items:center;gap:10px}.operation-device svg{width:20px;height:20px}.operation-device .badge{font-size:11px}.operation-popup{width:min(420px,75vw);font-size:13px;line-height:1.5;color:#dceafb;background:#091c30;box-sizing:border-box;padding:14px;border-radius:10px}.operation-popup .operation-popup-title{display:block;font-size:19px;line-height:1.25;padding-right:18px;color:white}.operation-popup p{margin:7px 0;color:#bacee2}.operation-popup .actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.operation-popup button{font-size:12px;padding:8px 12px}.operation-camera-preview{height:236px;background:#03090f;border-radius:7px;overflow:hidden;margin-top:12px}.operation-camera-preview>.live-preview{width:100%;height:100%}.operation-camera-preview>img{display:block;width:100%;height:100%;object-fit:contain}.operation-popup .live-detection-label{font-size:14px;padding:4px 7px}.operation-floor-popup{position:absolute;width:min(420px,calc(100% - 20px));left:clamp(10px,calc(var(--anchor-x) - 210px),calc(100% - 430px));top:12px;z-index:6;box-shadow:0 12px 40px #0009;border:1px solid #6c98c8;line-height:1.5;max-height:calc(100% - 24px);overflow:auto}.operation-popup-close{position:absolute;right:7px;top:6px;background:transparent!important;color:#bcd3e8;border:0!important;font-size:25px!important;padding:0 7px!important}.floor-camera{border-radius:8px;background:#10557e}.marker-camera,.maptiler-point[data-status=camera]{background:#176eb4!important;color:white!important;border-radius:7px!important}.marker-camera-alert,.maptiler-point[data-status=camera-alert]{animation:floor-emergency 1.8s steps(1,end) infinite;border-radius:7px!important}.patrol-map-marker svg,.maptiler-point svg{width:21px;height:21px;margin-top:3px}.operation-popup .live-preview-message{padding:20px}.placement-plan{position:relative;line-height:0;cursor:crosshair;overflow:hidden}.placement-plan img{width:100%;display:block;user-select:none}.placement-plan [data-placement-marker]{position:absolute;transform:translate(-50%,-50%);background:#1377c5;border:2px solid white;border-radius:6px;padding:5px;color:white;pointer-events:none}.placement-plan svg{width:25px;height:25px}.maplibregl-popup-content:has(.operation-popup),.leaflet-popup-content-wrapper:has(.operation-popup){background:#091c30;color:white;padding:0}.leaflet-popup-content:has(.operation-popup){margin:0;width:auto!important}.maplibregl-popup-close-button{color:#dceafb;z-index:2}.leaflet-popup-tip:has(+*){background:#091c30}#modalform fieldset[hidden],#cameraPlacementHint[hidden]{display:none!important}.operations-scenes .overview-patrol{max-height:240px;overflow:auto}.floor-overlay .room-draft-edge{fill:none;stroke:#76c8ff;stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:5 4}.floor-editor .room-draft-vertex{position:absolute;transform:translate(-50%,-50%);width:12px;height:12px;background:white;border:2px solid #147fd0;border-radius:50%;pointer-events:none;z-index:4}
@media(min-width:1800px){.operations-scenes .google-map-canvas,.operations-scenes #googleMap{height:610px}.operation-floor-panel #overviewOperationsFloor{min-height:610px}}
@media(max-width:1200px){.operations-scenes{grid-template-columns:1fr}.operations-cards{grid-template-columns:1fr 1fr}.operation-floor-panel #overviewOperationsFloor{min-height:300px}}
@media(max-width:700px){.operations-cards{grid-template-columns:1fr}.operations-scenes .google-map-canvas,.operations-scenes #googleMap{height:420px;min-height:420px}.operation-popup{width:min(350px,76vw)}.operation-camera-preview{height:190px}.operation-floor-popup{width:calc(100% - 20px);left:10px;top:10px}.operation-floor-popup .operation-camera-preview{height:160px}.operations-scenes .panelhead{padding:14px}}
@media(prefers-reduced-motion:reduce){.marker-camera-alert,.maptiler-point[data-status=camera-alert]{animation:none;background:#c62640!important;border-color:#3f91ff!important}}
/* Alarm bubbles are translucent; camera pixels and controls remain fully opaque. */
.patrol-floating-bubble .leaflet-popup-content-wrapper,.patrol-floating-bubble .maplibregl-popup-content{background:rgba(8,24,41,.73)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);color:#edf5ff;border:1px solid #92b9df80;border-radius:12px;padding:0!important;box-shadow:0 8px 24px #0005}
.patrol-floating-bubble .leaflet-popup-content{margin:0!important;width:auto!important;line-height:1.45}
.patrol-floating-bubble .operation-popup{background:transparent;max-width:none;padding:12px}
.patrol-floating-bubble .patrol-point-popup{box-sizing:border-box;padding:14px;color:#edf5ff;line-height:1.45}
.patrol-floating-bubble .patrol-point-popup strong,.patrol-floating-bubble .operation-popup-title{color:white;font-size:16px;line-height:1.3;padding-right:18px}
.positioned-bubble{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.positioned-bubble p{color:#e0ebf7}
.positioned-bubble .operation-camera-preview{height:auto;aspect-ratio:16/9;min-height:90px;margin-top:8px}
.positioned-bubble .actions{gap:6px;margin-top:8px}
.positioned-bubble button{font-size:12px;padding:7px 9px}
.patrol-floating-bubble .leaflet-popup-close-button,.patrol-floating-bubble .maplibregl-popup-close-button{color:#edf5ff!important;z-index:8;font-size:23px!important;right:5px!important;top:3px!important}
.patrol-floating-bubble .leaflet-popup-tip{background:rgba(8,24,41,.73)}
.patrol-floating-bubble[data-placement=left] .leaflet-popup-tip-container,.patrol-floating-bubble[data-placement=right] .leaflet-popup-tip-container{display:none}
.patrol-floating-bubble.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-right-color:rgba(8,24,41,.73)}
.patrol-floating-bubble.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:rgba(8,24,41,.73)}
.patrol-floating-bubble.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:rgba(8,24,41,.73)}
.operation-floor-popup.positioned-bubble{background:rgba(8,24,41,.73);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);border-color:#92b9df80;box-shadow:0 8px 24px #0005;padding:12px}
.operation-floor-popup.positioned-bubble .operation-popup-title{font-size:16px}
@media(prefers-reduced-transparency:reduce){.patrol-floating-bubble .leaflet-popup-content-wrapper,.patrol-floating-bubble .maplibregl-popup-content,.operation-floor-popup.positioned-bubble{background:#091c30!important;backdrop-filter:none}}

.editor-camera{pointer-events:none;opacity:.8}.sensor-camera-link{stroke:#73c6ff;stroke-width:.35;stroke-dasharray:1 1;vector-effect:non-scaling-stroke}
