/* Life Atelier calls on Zoom's Video SDK or LiveKit: the stage drawn by Shared/atelier-video-call.js (15 October;
   LiveKit test, 16 October: LiveKit draws plain <video> elements in the same boxes and tiles).
   The other person large, two side by side, your own picture small in the corner, a shared screen large. */
.vc{position:absolute;inset:0;padding:16px;box-sizing:border-box;background:#141414;font-family:-apple-system,"Segoe UI",Inter,system-ui,sans-serif;overflow:hidden}
/* Explicit width and height as well as the offsets (Nicolas's first real call, 15 October: the stage came out a few
   pixels tall, the other person black and his own picture cut off at the top), so the Video SDK's own styles for its
   container cannot collapse it. */
/* !important as well (Nicolas's client call in Firefox, 16 October: the picture still collapsed to a strip at the top).
   In Firefox the Video SDK draws video with WebAssembly rather than WebRTC and sizes its container itself; these keep
   the container on our stage in every browser. */
.vc video-player-container{display:block!important;position:absolute!important;top:16px!important;left:16px!important;width:calc(100% - 32px)!important;height:calc(100% - 32px)!important;max-height:none!important;min-height:0!important;margin:0!important;box-sizing:border-box}
.vc-others{position:absolute;inset:0;display:grid;grid-template-columns:1fr;gap:12px}
.vc[data-count="2"] .vc-others,.vc[data-count="3"] .vc-others{grid-template-columns:1fr 1fr}
.vc[data-waiting]:not([data-waiting=""])::after{content:attr(data-waiting);position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);color:#e9e4dc;font-size:24px;text-align:center}
.vc-tile{position:relative;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,#3b4a52,#232a2f);display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.vc-tile video-player{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important}
.vc-av{display:none;width:28%;max-width:200px;aspect-ratio:1;border-radius:50%;background:#e2eef6;color:#2c5d7a;font:500 clamp(28px,6vw,88px)/1 Georgia,serif;align-items:center;justify-content:center}
.vc-tile.vc-off .vc-av{display:flex}
.vc-nm{position:absolute;left:12px;bottom:10px;background:#0009;color:#fff;font-size:13px;padding:3px 9px;border-radius:6px;z-index:2;white-space:nowrap;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis}
/* Your own picture: small in the corner, with a – button to hide it; Show Me brings it back (Nicolas, 15 October). */
.vc-self{position:absolute;right:14px;bottom:14px;width:min(240px,26%);aspect-ratio:16/9;border:2px solid #91d9c1;z-index:3;box-shadow:0 6px 18px #0006}
.vc-self .vc-av{background:#f5e8d8;color:#7a4f22;font-size:26px;width:32%}
.vc-self video-player{transform:scaleX(-1)}
.vc-hide{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:6px;border:0;background:#0008;color:#fff;font:600 18px/1 system-ui,sans-serif;cursor:pointer;z-index:4;display:flex;align-items:center;justify-content:center;padding:0 0 2px}
.vc-hide:hover{background:#000c}
.vc-selfhidden .vc-self{display:none}
.vc-showme{position:absolute;right:30px;bottom:30px;height:36px;padding:0 14px;border-radius:999px;background:#1d2328;border:2px solid #91d9c1;color:#fff;font:500 14px system-ui,sans-serif;cursor:pointer;z-index:5}
.vc-showme[hidden],.vc-myshare[hidden]{display:none!important}
/* A shared screen fills the stage; the people move into a column on the right. */
.vc-sharebox{display:none!important}
.vc-sharing .vc-sharebox{display:block!important;width:calc(100% - 32px - min(260px,24%) - 12px)!important}
.vc-share{position:absolute;inset:0;border-radius:12px;overflow:hidden;background:#0b0b0b}
.vc-share video-player{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
.vc-sharing .vc-people{left:auto!important;right:16px;width:min(260px,24%)!important}
.vc-sharing .vc-others{position:static;display:flex;flex-direction:column;gap:12px}
.vc-sharing .vc-others .vc-tile{aspect-ratio:16/9;flex:none}
.vc-sharing .vc-self{position:relative;right:auto;bottom:auto;width:100%;margin-top:12px}
/* Zoom in Chrome and Firefox on the isolated call pages draws every picture onto one canvas BEHIND our tiles, sized to
   its container; Safari puts a picture inside each tile. Opaque tiles hid it: grey tiles and a black shared screen
   while video was flowing (Nicolas's tests, 16 October). Tiles with a picture, and the shared screen, are see-through;
   the stage's own dark background shows where there is nothing to draw. */
.vc:not(.vc-lk) .vc-tile:not(.vc-off){background:transparent}
.vc:not(.vc-lk) .vc-share{background:transparent}
/* Your own picture on Zoom in its own container, so it gets its own canvas on top: on the shared one Zoom drew the
   other person over it and the corner showed them instead of you (Nicolas's test in Firefox, 16 October). */
.vc video-player-container.vc-selfbox{top:auto!important;left:auto!important;right:14px;bottom:14px;width:min(240px,26%)!important;height:auto!important;aspect-ratio:16/9;z-index:3}
.vc-selfbox .vc-self{position:absolute;inset:0;width:auto;aspect-ratio:auto;margin:0}
.vc-sharing video-player-container.vc-selfbox{right:16px;bottom:16px;width:min(260px,24%)!important}
.vc-sharing .vc-selfbox .vc-self{position:absolute;inset:0;width:auto;aspect-ratio:auto;margin:0}
.vc-selfhidden .vc-selfbox{display:none!important}
/* LiveKit (test, 16 October): plain boxes and <video> elements in place of Zoom's video-player ones. */
.vc .vc-box{display:block;position:absolute;top:16px;left:16px;width:calc(100% - 32px);height:calc(100% - 32px);box-sizing:border-box}
.vc-tile>video,.vc-share>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0b0b0b}
.vc-share>video{object-fit:contain}
.vc-tile>video.vc-mirror{transform:scaleX(-1)}
.vc-sound{display:none}
/* A column on the right (Stones In Calls, 19 October): the other person above, you below, the same size, while
   Stone Constellations fills the big screen. Set .vc-col on any box around the stage. */
.vc-col .vc video-player-container.vc-people{height:calc(50% - 22px)!important}
.vc-col .vc video-player-container.vc-selfbox{top:auto!important;left:16px!important;right:16px;bottom:16px;width:calc(100% - 32px)!important;height:calc(50% - 22px)!important;aspect-ratio:auto}
.vc-col .vc-lk .vc-people{display:flex;flex-direction:column;gap:12px}
.vc-col .vc-lk .vc-others{position:relative;inset:auto;flex:1;min-height:0}
.vc-col .vc-lk .vc-self{position:relative;right:auto;bottom:auto;width:100%;flex:1;min-height:0;aspect-ratio:auto}
/* Peer to peer (20 October): a browser that holds the other person's sound back until a click gets this button. */
.vc-enable{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);height:36px;padding:0 16px;border-radius:8px;background:#91d9c1;border:0;color:#1d2328;font:600 14px system-ui,sans-serif;cursor:pointer;z-index:6}
.vc-enable[hidden]{display:none!important}
/* Remove Guest (Guest Link, 22 October): Nicolas's side only. Guest badge aqua, Remove Guest orange #d06f56 (both themes). */
.vc{--vc-ask-bg:#fff;--vc-ask-fg:#1f1e1d;--vc-ask-sub:#5d5a55;--vc-ask-no:#f1eee9}
html[data-theme="dark"] .vc{--vc-ask-bg:#2a2826;--vc-ask-fg:#ece8e1;--vc-ask-sub:#c9c2b8;--vc-ask-no:#1f1e1d}
.vc-gst{display:inline-block;margin-left:6px;background:#91d9c1;color:#16352b;font-size:12px;font-weight:700;padding:1px 6px;border-radius:4px;vertical-align:1px}
.vc-rmg{position:absolute;right:12px;top:12px;z-index:4;display:flex;align-items:center;gap:6px;border:0;border-radius:8px;background:#d06f56;color:#fff;font-family:inherit;font-size:13px;font-weight:700;line-height:1;padding:9px 12px;cursor:pointer}
.vc-rmg:hover{background:#bf5f47}
.vc-rmg span,.vc-yes span{font-size:17px;line-height:12px;font-weight:400}
.vc-ask{position:absolute;left:50%;top:18px;transform:translateX(-50%);z-index:20;width:min(520px,calc(100% - 32px));box-sizing:border-box;background:var(--vc-ask-bg);color:var(--vc-ask-fg);border-radius:14px;padding:22px 24px;box-shadow:0 12px 40px #0006;display:flex;flex-direction:column;gap:12px}
.vc-ask b{font-size:22px}
.vc-ask p{margin:0;font-size:16px;color:var(--vc-ask-sub)}
.vc-ask div{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:6px}
.vc-ask button{border:0;border-radius:8px;padding:16px 12px;font-family:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px}
.vc-no{background:var(--vc-ask-no);color:var(--vc-ask-fg)}
.vc-yes{background:#d06f56;color:#fff}
.vc-yes:disabled{opacity:.6;cursor:default}
/* Sharing from a phone (Nicolas, 3 November; MU approved 15:41Z): the other person on top, at most a third of the stage,
   your own picture hidden, the photo or screen fitted whole below with whose it is and an orange Stop Sharing.
   Make Smaller leaves a 64px strip with the name. Computer to computer sharing keeps the column on the right. */
.vc-phoneshare{--ps-top:calc((100% - 32px) / 3)}
.vc-phoneshare.vc-pssmall{--ps-top:64px}
.vc.vc-phoneshare .vc-people{left:16px!important;right:auto;top:16px;width:calc(100% - 32px)!important;height:var(--ps-top)!important}
.vc.vc-phoneshare .vc-others{position:absolute;inset:0;display:grid;grid-template-columns:1fr}
.vc.vc-phoneshare .vc-others .vc-tile{aspect-ratio:auto}
.vc.vc-phoneshare .vc-self,.vc.vc-phoneshare .vc-showme{display:none!important}
.vc.vc-phoneshare .vc-sharebox{top:calc(16px + var(--ps-top) + 12px)!important;left:16px;width:calc(100% - 32px)!important;height:calc(100% - 44px - var(--ps-top))!important}
.vc-pssmall .vc-others .vc-tile>video,.vc-pssmall .vc-others .vc-av{display:none!important}
.vc-pssmall .vc-others .vc-nm{top:50%;bottom:auto;transform:translateY(-50%);font-size:15px;font-weight:600}
.vc-psbar{position:absolute;left:12px;right:12px;top:12px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:10px;pointer-events:none}
.vc-psbar>*{pointer-events:auto}
.vc-pill{display:inline-flex;align-items:center;gap:8px;min-width:0;height:34px;padding:0 12px;border-radius:8px;background:#91d9c1;color:#16352b;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vc-pill svg,.vc-shrink svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vc-stopshare{display:inline-flex;align-items:center;gap:8px;flex:none;height:34px;padding:0 14px;border:0;border-radius:8px;background:#d06f56;color:#fff;font-family:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer}
.vc-stopshare span{font-size:20px;font-weight:400;line-height:12px}
.vc-stopshare:hover{background:#bf5f47}
.vc-shrink{display:none}
.vc-phoneshare .vc-shrink{position:absolute;right:30px;top:30px;z-index:5;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:8px;border:1px solid #ffffff33;background:#141414e6;color:#fff;font-family:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer}
.vc-pssmall .vc-shrink{top:29px;height:38px}
.vc-phoneshare .vc-others .vc-av{width:auto;height:72%;max-height:150px;font-size:clamp(28px,5vh,64px)}
.vc-phoneshare .vc-share>video{top:58px;height:calc(100% - 70px)}
/* On a computer (Nicolas, 18 November: "the client should be on the side of the screenshare, not on top"): the other
   person in a column on the right, the same width as computer to computer sharing; the phone's screen fills the rest.
   The column is already small, so Make Smaller is not offered here. Phones keep the person on top. */
@media (min-width:900px) and (orientation:landscape){
  .vc-phoneshare{--ps-side:min(260px,24%)}
  .vc.vc-phoneshare .vc-people{left:auto!important;right:16px!important;top:16px;width:var(--ps-side)!important;height:calc(100% - 32px)!important}
  .vc.vc-phoneshare .vc-others{align-content:start;gap:12px}
  .vc.vc-phoneshare .vc-others .vc-tile{aspect-ratio:4/3}
  .vc-phoneshare .vc-shrink{display:none}
  .vc.vc-phoneshare .vc-sharebox{top:16px!important;left:16px;width:calc(100% - 44px - var(--ps-side))!important;height:calc(100% - 32px)!important}
}
