/* Modul Live Drone: widget peta + halaman admin */
.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 0 rgba(220,38,38,.6);animation:livePulse 1.6s infinite}
@keyframes livePulse{70%{box-shadow:0 0 0 8px rgba(220,38,38,0)}100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}}
@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}

.live-pill{position:absolute;left:14px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:430;display:flex;align-items:center;gap:.45rem;height:40px;margin:0;padding:0 .9rem;border:none;border-radius:20px;background:#095c2d;color:#fff;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.live-pill:hover{background:#0b6e36;border:none}
.live-pill[hidden],.live-float[hidden]{display:none}

.live-float{position:fixed;left:14px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:600;width:min(420px,calc(100vw - 28px));background:#0f172a;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.4);overflow:hidden}
.live-head{display:flex;align-items:center;gap:.5rem;padding:.4rem .5rem .4rem .7rem;background:#095c2d;color:#fff}
.live-title{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-head button{width:30px;height:30px;margin:0;padding:0;flex:0 0 auto;background:none;border:none;color:#fff;font-size:20px;line-height:1;cursor:pointer}
.live-head button:hover{background:rgba(255,255,255,.18);border:none}
.live-video{position:relative;aspect-ratio:16/9;background:#000}
.live-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.live-float.min .live-video{display:none}

#livePanel [data-live-open]{margin-top:.4rem}

/* Halaman admin */
.live-hint{font-size:.85rem;color:#64748b;margin:.4rem 0}
.live-btn{display:inline-block;padding:.35rem .8rem;border:1px solid #095c2d;border-radius:6px;color:#095c2d;font-weight:600;text-decoration:none;background:#fff;cursor:pointer;font-size:.85rem}
.live-btn.primary{background:#095c2d;color:#fff}
.live-copyrow{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.live-copyrow input{flex:1 1 220px;min-width:0;font-family:ui-monospace,Consolas,monospace}
.live-copyrow button{width:auto;margin:0}
.live-check{display:flex;align-items:center;gap:.5rem;margin:.6rem 0}
.live-check input{width:auto;margin:0}
.live-preview{position:relative;aspect-ratio:16/9;max-width:560px;margin:.6rem 0;background:#000;border-radius:8px;overflow:hidden}
.live-preview iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.live-chip{display:inline-block;padding:.1rem .6rem;border-radius:999px;font-size:.78rem;font-weight:700;border:1px solid currentColor}
.live-chip.live{color:#dc2626}.live-chip.waiting{color:#a16207}.live-chip.ended{color:#64748b}

/* Halaman admin Live Drone: style.css mengunci html/body (overflow:hidden, tinggi 100vh)
   untuk halaman peta, sehingga halaman panjang tidak bisa di-scroll. Buka kuncinya di sini. */
html.live-page{height:auto;min-height:100%;overflow-y:auto}
html.live-page body.admin-simple{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
.live-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.live-actions form{margin:0}
.live-check{text-transform:none;letter-spacing:normal;font-size:.92rem;font-weight:600}

.live-details summary{cursor:pointer;font-weight:600;color:#095c2d;margin:.2rem 0 .6rem}
.live-steps{padding-left:1.2rem;margin:.6rem 0 .9rem}

/* Jendela video bisa digeser: tarik bagian judul */
.live-head{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.live-float.dragging .live-head{cursor:grabbing}
.live-float.dragging{box-shadow:0 14px 38px rgba(0,0,0,.5)}
.live-float.dragging .live-video{pointer-events:none}

/* Pegangan ubah ukuran (sudut kanan-bawah) */
.live-resize{position:absolute;right:0;bottom:0;width:24px;height:24px;cursor:nwse-resize;touch-action:none;z-index:2;filter:drop-shadow(0 0 2px rgba(0,0,0,.7));background:linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.9) 48% 55%,transparent 55% 66%,rgba(255,255,255,.9) 66% 73%,transparent 73% 84%,rgba(255,255,255,.9) 84% 91%,transparent 91%)}
.live-float.min .live-resize{display:none}
@media (pointer:coarse){.live-resize{width:32px;height:32px}}
