/* The rest of the app, shown inside the Connect page so a call is never interrupted (call-keep.js). */
.ck-wrap {
  position: fixed; inset: 0; z-index: 940; display: flex; flex-direction: column;
  background: var(--bg, #020b1f);
}
.ck-wrap[hidden] { display: none; }

/* A thin bar so it is always obvious the call is still running underneath. */
.ck-bar {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-top)); padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(90deg, color-mix(in srgb, #16a34a 24%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text);
}
.ck-bar strong { font-size: .9rem; }
.ck-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ckPulse 1.8s ease-out infinite;
}
@keyframes ckPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .65); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.ck-page {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-muted); font-size: .85rem;
}
.ck-back {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 700; color: #fff; border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.ck-back:hover { filter: brightness(1.08); }

.ck-frame { flex: 1; width: 100%; border: 0; display: block; background: var(--bg, #020b1f); }

/* The call box sits above the frame while it is open, and the page underneath must not scroll
   behind it. The call keeps its own corner position from connect-call.css (.cc-call.is-small). */
html.ck-open { overflow: hidden; }
html.ck-open .cc-call { z-index: 960; }

/* Phones: the bar wraps rather than squashing the button off the edge. */
@media (max-width: 520px) {
  .ck-bar { flex-wrap: wrap; gap: 8px 10px; }
  .ck-page { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ck-dot { animation: none; } }
