/* ============================================================================
   BULLET PROPOSALS: watching how the client moved  (the player, Nov 2026)
   App chrome for the owner. Never part of what the client sees.
   ============================================================================ */
:root { --pro-pointer: var(--guide-acc, #FFA51F); /* provisional: the live guide's orange, as every Bullet pointer (Peter, 3 Nov 2026) */ }

/* --pro-movie-shift: a page with a panel at one side sets it (minus half the panel's width for a panel on the right), so
   the bar sits under the document and not under the middle of the window (the invoice's client page, 12 Nov 2026) */
.pro-movie { position: fixed; left: calc(50% + var(--pro-movie-shift, 0px)); bottom: 24px; z-index: 90; transform: translateX(-50%); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: var(--space-3); max-width: calc(100vw - 16px); padding: 6px var(--space-2) 6px var(--space-4); background: var(--color-text); color: var(--color-surface); border-radius: var(--radius-full); box-shadow: var(--shadow-dropdown); font-family: var(--font-sans, inherit); font-size: var(--text-base); }
.pro-movie__btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-full); background: none; color: var(--color-surface); font: inherit; cursor: pointer; }
.pro-movie__btn:hover { background: color-mix(in srgb, var(--color-surface) 18%, transparent); }
.pro-movie__btn:focus-visible { outline: 2px solid var(--color-surface); outline-offset: 2px; }
.pro-movie__btn svg { width: 18px; height: 18px; flex: none; }
.pro-movie__bar { position: relative; flex: 0 1 160px; width: 160px; min-width: 80px; height: 4px; border-radius: var(--radius-full); background: color-mix(in srgb, var(--color-surface) 28%, transparent); overflow: hidden; }
.pro-movie__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--color-surface); }
.pro-movie__time { white-space: nowrap; margin-right: var(--space-2); }   /* room before Close (Signal's check, 12 Nov 2026) */
.pro-movie__label { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: color-mix(in srgb, var(--color-surface) 75%, transparent); }
.pro-movie__note { position: absolute; left: 50%; bottom: calc(100% + var(--space-2)); transform: translateX(-50%); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-dropdown); white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.pro-movie__note.is-on { opacity: 1; }
.pro-movie__msg { padding-right: var(--space-2); }

/* the layer over the proposal: the real mouse does nothing while the movie plays */
.pro-movie__shield { position: fixed; z-index: 80; background: transparent; cursor: default; }

/* the pointer and its click ring */
.pro-movie__pointer { position: fixed; z-index: 85; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--pro-pointer); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pro-pointer) 25%, transparent); pointer-events: none; display: none; }
.pro-movie__ring { position: fixed; z-index: 84; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid var(--pro-pointer); border-radius: 50%; pointer-events: none; animation: proMovieRing 0.5s ease-out forwards; }
@keyframes proMovieRing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pro-movie__ring { animation: none; opacity: 0; }
  .pro-movie__note { transition: none; }
}
/* THE BAR IS ONE LINE (Peter, 12 Nov 2026: "Fix the player": on a narrow window Close fell to a second line). Nothing
   wraps; the visit's name gives up its room first. */
.pro-movie { flex-wrap: nowrap; }
.pro-movie > * { flex: none; }
.pro-movie .pro-movie__label { flex: 0 1 auto; min-width: 0; }
.pro-movie .pro-movie__bar { flex: 0 1 160px; }
@media (max-width: 700px) { .pro-movie .pro-movie__label { display: none; } }
/* WATCHING A VISIT IS NOT EDITING (Peter, 21 Nov 2026: "You can edit the proposal when you're watching it"): while a replay
   plays, or its window is open, the proposal takes no clicks, no typing and no selection, and the edit bubble is hidden */
body.pro-movie-on #pro-root, body.pro-movie-win #pro-root { pointer-events: none; user-select: none; -webkit-user-select: none; }
body.pro-movie-on .pro-bub, body.pro-movie-win .pro-bub { display: none !important; }
/* A REPLAY SHOWS WHAT THE CLIENT SAW (Peter, 22 Nov 2026: "yes"): the owner's "Why it is written this way" notes and the
   cover picture buttons were never on the client's page, so they hide while a visit plays */
body.pro-movie-on .pro-why, body.pro-movie-win .pro-why, body.pro-movie-on .pro-notes, body.pro-movie-win .pro-notes,
body.pro-movie-on .pro-imgtools, body.pro-movie-win .pro-imgtools, body.pro-movie-on .pro-imgadd, body.pro-movie-win .pro-imgadd { display: none !important; }
/* ON A PHONE THE BAR FITS (21 Nov 2026): Play, speed, time and Close ran past both edges at 390px wide; the line shrinks and Close is its X */
@media (max-width: 480px) { .pro-movie { gap: var(--space-2); flex-wrap: nowrap; } .pro-movie__bar { flex: 1 1 40px; width: auto; min-width: 40px; } .pro-movie__close span, .pro-movie__play span { display: none; }
  /* THE TWO ENDS MATCH (Peter, 22 Nov 2026: "Fix", Play sat further in than Close): on a phone the icon buttons are round
     36px buttons and the pill has the same 6px at both ends */
  .pro-movie { padding: 6px; } .pro-movie__close, .pro-movie__play { width: 36px; padding: 0; justify-content: center; } }
/* in the visit's window the player sits inside the window, never wider than it (Peter, 22 Nov 2026: "the player isn't right in the page") */
body.pro-movie-win .pro-movie { max-width: calc(90vw - 16px); }
