/* Kesher calls (1:1 voice + video). Uses the app's theme variables only; the video stage is black like any video. */
.call-ib svg{width:22px;height:22px}
.call-ov{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:var(--panel);color:var(--text);padding:calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 28px);overflow:hidden}
.call-ov[hidden]{display:none}
.call-stage{position:absolute;inset:0;z-index:0;pointer-events:none}
.call-stage video{display:none;object-fit:cover;background:var(--call-video-bg,#000)}
/* 1.13: the other person's video shows the whole picture (no crop); a tap on it switches to fill-the-screen and back */
.call-stage .call-rv{object-fit:contain}
.call-ov.rv-fill .call-rv{object-fit:cover}
.call-ov.has-rv{cursor:pointer}
.call-ov.has-rv .call-ctl,.call-ov.has-rv .call-top{cursor:auto}
.call-ov.has-rv .call-rv{display:block;position:absolute;inset:0;width:100%;height:100%}
.call-ov .call-rv{display:block;position:absolute;width:1px;height:1px;opacity:0}
.call-ov.has-rv .call-rv{opacity:1}
.call-ov.has-lv .call-lv{display:block;position:absolute;right:14px;top:calc(var(--safe-t) + 64px);width:28vw;max-width:160px;aspect-ratio:3/4;border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.35);pointer-events:auto}
.call-ov.vid:not(.has-rv).has-lv .call-lv{inset:0;width:100%;height:100%;max-width:none;border-radius:0;aspect-ratio:auto;top:0;right:0}
.call-ov.mirror .call-lv{transform:scaleX(-1)}
.call-ov.vid{background:var(--call-video-bg,#000);color:var(--call-video-fg,#fff)}
.call-ov.vid .call-name,.call-ov.vid .call-status,.call-ov.vid .call-enc{text-shadow:0 1px 4px rgba(0,0,0,.6)}
.call-top{position:relative;z-index:1;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px}
.call-top>*{flex:1}
.call-min{flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:inherit}
.call-min svg{width:24px;height:24px}
.call-enc{flex:none;display:flex;align-items:center;gap:5px;font-size:12.5px;opacity:.75}
.call-enc svg{width:13px;height:13px}
.call-who{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:6vh;text-align:center}
.call-ov.has-rv .call-who{margin-top:0}
.call-ov.has-rv .call-who .av{display:none}
.call-name{font-size:26px;font-weight:600;max-width:86vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call-status{font-size:16px;opacity:.75;font-variant-numeric:tabular-nums}
.call-note{font-size:13.5px;opacity:.7}
.call-ctl{position:relative;z-index:1;width:100%;max-width:420px;display:flex;flex-direction:column;align-items:center;gap:22px}
.call-ctl.two{flex-direction:row;justify-content:space-around}
.call-row{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}
.call-btn{display:flex;flex-direction:column;align-items:center;gap:6px;color:inherit}
.call-btn .call-ic{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--chip,var(--line));color:var(--text)}
.call-ov.vid .call-btn .call-ic{background:rgba(255,255,255,.18);color:inherit;backdrop-filter:blur(6px)}
.call-btn.on .call-ic{background:var(--accent,var(--text));color:var(--on-accent,var(--panel))}
.call-ov.vid .call-btn.on .call-ic{background:var(--call-video-fg,#fff);color:var(--call-video-bg,#000)}
.call-btn .call-ic svg{width:26px;height:26px}
.call-btn small{font-size:12.5px;opacity:.8}
.call-ov .call-btn.end .call-ic{width:68px;height:68px;background:var(--danger);color:#fff}
.call-btn.end .call-ic svg{transform:rotate(135deg)}
.call-ov .call-btn.ok .call-ic{width:68px;height:68px;background:var(--accent,var(--brand));color:var(--on-accent,var(--panel))}
.call-ov[data-state=incoming] .call-btn.ok .call-ic{animation:call-pulse 1.6s ease-in-out infinite}
@keyframes call-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.call-tap{position:relative;z-index:1;padding:8px 14px;border-radius:18px;background:var(--chip,var(--line));color:var(--text);font-size:14px}
.call-tap[hidden]{display:none}
.call-pill{position:fixed;z-index:1500;left:50%;transform:translateX(-50%);top:calc(var(--safe-t) + 6px);display:flex;align-items:center;gap:8px;padding:7px 14px;border-radius:20px;background:var(--accent,var(--text));color:var(--on-accent,var(--panel));font-size:14px;font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.25);max-width:92vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-pill-ic svg{width:16px;height:16px}
.b.cb{padding:8px 10px}
.call-log{display:flex;align-items:center;gap:10px;text-align:left;color:inherit;padding:2px 2px 0;min-width:170px}
.call-log-ic{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent-l,var(--chip));color:var(--accent,var(--text));flex:none}
.call-log-ic svg{width:18px;height:18px}
.call-log-t{display:flex;flex-direction:column;line-height:1.25}
.call-log-t b{font-weight:600;font-size:15px}
.call-log-t small{opacity:.7;font-size:13px}
.call-log.miss .call-log-t b,.call-log.miss .call-log-ic{color:var(--danger)}
/* Add someone while you're on the call. The sheet sits above the call, and a toast sits above the sheet. */
.overlay.call-add{z-index:2600}
.toast{z-index:2700}
.call-add .fwd-list{max-height:46dvh}
.call-add-find{padding:0 8px 8px}
.gc-ctl{flex-wrap:wrap;row-gap:12px}
.gc-tile.invite{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent)}
.gc-tile.invite.declined,.gc-tile.invite.missed{opacity:.55}
.gc-tile.keep{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent)}
.gc-btn.off{opacity:.45}
