/* The dispatch console's Live panel (pro-live.js) and the LIVE badge on a DRIVER's card. Dashivo black, white and
   yellow; the panel floats over the map at the bottom left and fits a 1440x900 screen. */
.dc-live-badge { flex: none; align-self: center; justify-self: start; width: fit-content; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: #ffff06; color: #050506;
  font: 750 10px/1.2 var(--font, "Geist", system-ui, sans-serif); letter-spacing: .06em; }
.dc-live-badge.is-weak { background: #ffb020; }
.dc-qa-btn.dc-qa-live { border-color: #ffff06; color: #ffff06; }
.dc-qa-btn.dc-qa-live.is-weak { border-color: #ffb020; color: #ffb020; }
.pl-panel { position: fixed; left: 88px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(560px, calc(100vw - 32px));
  padding: 14px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; background: #0b0b0d; color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); font: 14px/1.4 var(--font, "Geist", system-ui, sans-serif); }
.pl-head { display: flex; align-items: flex-start; gap: 12px; }
.pl-titles { flex: 1; min-width: 0; }
.pl-head h2 { margin: 0; font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 3px 0 0; color: #a6a6a2; font-size: 12.5px; }
.pl-badge { display: none; padding: 1px 7px; border-radius: 6px; background: #ffff06; color: #050506; font-weight: 750; font-size: 10.5px; letter-spacing: .06em; }
.pl-panel[data-phase="live"] .pl-badge { display: inline-block; }
.pl-panel[data-phase="live"] .pl-status { color: #fff; }
.pl-panel[data-phase="reconnecting"] .pl-status, .pl-panel[data-phase="waiting"] .pl-status { color: #ffb020; }
.pl-panel[data-phase="error"] .pl-status, .pl-panel[data-phase="closed"] .pl-status { color: #ff7070; }
.pl-since:empty { display: none; }
.pl-x { flex: none; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: #17171a; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pl-x:hover, .pl-btn:hover:not(:disabled) { border-color: #ffff06; }
/* Rear / Front / Both (owner, Oct 9 2026): one picture, two side by side, or the other camera small in a corner */
.pl-tiles { position: relative; display: flex; gap: 8px; width: 100%; height: min(46vh, 380px); }
.pl-tile { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 12px; background: #000; }
.pl-tiles[data-layout="side"] .pl-tile { flex-grow: var(--grow, 1); }
.pl-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-name { position: absolute; left: 8px; top: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(5, 5, 6, .72); font-size: 11px; font-weight: 650; }
.pl-off { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; color: #ffb020; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.pl-off:empty { display: none; }
.pl-tile[data-state="off"] .pl-off, .pl-tile[data-state="none"] .pl-off { color: #a6a6a2; }
.pl-tiles[data-layout="pip"] .pl-tile[data-small="true"] { position: absolute; z-index: 2; right: 8px; bottom: 8px; width: 30%; height: auto; aspect-ratio: var(--ar, 16 / 9);
  max-height: 48%; border: 1.5px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); cursor: pointer; }
.pl-tiles[data-layout="pip"] .pl-tile[data-small="true"] .pl-off { font-size: 11px; padding: 4px; }
.pl-tile[hidden], .pl-rec[hidden], .pl-seg[hidden] { display: none; }
.pl-rec { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 600; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex: none; }  /* recording: red, like REC (owner, Oct 9 2026) */
.pl-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; overflow: hidden; }
.pl-seg-b { min-height: 34px; min-width: 56px; padding: 0 12px; border: 0; background: transparent; color: #fff; font: 650 12.5px/1 inherit; cursor: pointer; }
.pl-seg-b + .pl-seg-b { border-left: 1px solid rgba(255, 255, 255, .5); }
.pl-seg-b[aria-checked="true"] { background: #ffff06; color: #050506; }
.pl-seg-b:focus-visible { outline: 2.5px solid #ffff06; outline-offset: -2px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; color: #a6a6a2; font-size: 12.5px; }
.pl-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-chip b { color: #fff; font-weight: 650; }
.pl-chip[data-state="wait"] .pl-dot { background: #ffb020; }
.pl-chip[data-state="wait"] span:last-child { color: #ffb020; }
.pl-chip[data-state="off"] .pl-dot { background: transparent; border: 1.5px solid rgba(255, 255, 255, .4); }
.pl-bar { display: flex; align-items: center; gap: 12px; }
.pl-btn { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: transparent; color: #fff; font: 650 12.5px/1 inherit; cursor: pointer; }
.pl-btn[aria-pressed="true"] { background: #ffff06; border-color: #ffff06; color: #050506; }
.pl-btn:disabled { opacity: .5; cursor: default; }
.pl-note { margin: 0; color: #a6a6a2; font-size: 12px; }
.pl-x:focus-visible, .pl-btn:focus-visible { outline: 2.5px solid #ffff06; outline-offset: 2px; }
@media (max-width: 900px) { .pl-panel { left: 16px; bottom: 16px; } }
/* the phone's heat paused the stop's front camera (owner, Oct 8 2026): amber words on the card and in the panel */
.dc-live-hot { grid-column: 2; justify-self: start; margin-left: 6px; color: #ffb020; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pl-hot { margin: 0; color: #ffb020; font-size: 12px; font-weight: 600; }
.pl-hot[hidden] { display: none; }

/* the stream's frame (owner, Oct 9 2026): black, a fine yellow edge and yellow viewfinder corners; amber while the
   camera waits (starting, paused), grey when it's off; the camera's name on a yellow tag */
.pl-tile { border: 1.5px solid rgba(255, 255, 6, .38); background: #050506; box-shadow: 0 0 0 4px #050506, 0 0 0 5px rgba(255, 255, 6, .12); }
.pl-tile::after { content: ""; position: absolute; inset: 6px; z-index: 1; pointer-events: none; --c: #ffff06; --l: 16px; --t: 2.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.pl-tile[data-state]:not([data-state=""])::after { --c: #ffb020; }
.pl-tile[data-state]:not([data-state=""]) { border-color: rgba(255, 176, 32, .45); }
.pl-tile[data-state="off"]::after, .pl-tile[data-state="none"]::after { --c: rgba(255, 255, 255, .35); }
.pl-tile[data-state="off"], .pl-tile[data-state="none"] { border-color: rgba(255, 255, 255, .16); }
.pl-name { left: 16px; top: 14px; z-index: 2; background: #ffff06; color: #050506; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.pl-tiles[data-layout="pip"] .pl-tile[data-small="true"] { box-shadow: 0 0 0 3px #050506; }
.pl-tiles[data-layout="pip"] .pl-tile[data-small="true"]::after { inset: 4px; --l: 12px; --t: 2px; }
/* "Keep watching": a dispatcher-started live view's last minute (pro_live_view.SESSION_S) */
.pl-keep { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 8px 10px; border: 1px solid #ffff06; border-radius: 10px; color: #fff; font-size: 13px; }
.pl-keep[hidden] { display: none; }
.pl-keep span { flex: 1; min-width: 0; }
.pl-keep-b { flex: none; background: #ffff06; color: #050506; border-color: #ffff06; }
