/**
 * sales-reps-listen.css — "Listen in" (js/sales-reps-listen.js): the small listen view a manager opens from Team now,
 * and the Listen in row on a rep's card. Everything is prefixed `srl-`.
 *
 * The view IS the call room's dark stage (css/sales-call.css: .scl-stage, .scl-stagehead, .scl-tiles, .scl-tile,
 * .scl-face, .scl-name, .scl-ctrl, .scl-consent, .scl-stage-msg and its --scl-* colors), used as it is. This file only
 * places it on the page and draws what only it has: the Listening mark, the reassurance line and the shared screen.
 * Sizes as the call room's: nothing a person reads under 13px, every control a 44px painted, 48px hit area.
 */

/* ── where the view sits: a small panel over Team now, bottom right, clear of the help bubble (bottom 24px, 56px tall).
   Above the page and that bubble (10000), under every modal (100060) and toast (100090). ── */
.srl { position: fixed; right: 24px; bottom: 96px; width: 400px; max-width: calc(100vw - 32px); z-index: 10050;
  max-height: calc(100vh - 120px); overflow-y: auto; border-radius: var(--radius-lg, 18px);
  box-shadow: 0 18px 48px rgba(21, 23, 43, .32); }
.srl-stage { border-radius: inherit; }
.srl .scl-stagehead { padding-bottom: 2px; }
.srl-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .04em; text-transform: uppercase; color: var(--scl-ok); }
.srl-on i { width: 8px; height: 8px; border-radius: 50%; background: var(--scl-ok); animation: srl-pulse 1.6s ease-in-out infinite; }
@keyframes srl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .srl-on i { animation: none; } }
.srl-who { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srl-safe { margin: 6px 14px 0; font-size: 14px; color: var(--scl-on-stage); opacity: .85; }

/* With video off the tiles are name cards, short, the picture above the name; with it on, the call room's 16:10. */
.srl[data-video="off"] .srl-tile { aspect-ratio: auto; min-height: 120px; padding-bottom: 30px; }
.srl .scl-face { width: 48px; height: 48px; font-size: 16px; }
.srl-screen { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.srl-tile video.srl-contain { object-fit: contain; background: var(--scl-stage); }
/* Whoever is talking: the call room's ring, drawn over the video so it shows with video on too. */
.srl-tile.scl-speaking::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  box-shadow: 0 0 0 2px var(--scl-speaking) inset; }

/* ── the Listen in row on a rep's card in Team now ── */
.sr-repcard .srl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--border-soft); }
.sr-repcard .srl-row .btn { min-height: 44px; margin-left: auto; }
.srl-row .srl-btn i { margin-right: 7px; }
/* Pressed while this manager is listening to that call. */
.srl-row .srl-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-deep); }
.srl-row .srl-row-line { margin: 0; }

/* ── on a phone: across the bottom, inside the 16px gutter ── */
@media (max-width: 600px) {
  .srl { left: 16px; right: 16px; bottom: 88px; width: auto; max-width: none; max-height: calc(100vh - 104px); }
  .srl .scl-ctrl button { flex: 1 1 auto; }
}
