.live-call {
  --ink: #f4f1ea;
  --muted: #a7a39a;
  --line: rgba(244, 241, 234, 0.14);
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(125, 206, 198, 0.16), transparent 60%),
    #101114;
}

.live-call-banner {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  max-width: min(36rem, calc(100% - 2rem));
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #1c2433;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(106, 166, 255, 0.45);
}

.live-call.is-error .live-call-banner {
  background: #3a1d1d;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(196, 72, 72, 0.65);
}

.live-call-main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.live-call-transcript {
  height: calc(100vh - 3rem);
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  padding-right: 1.25rem;
}

.live-call-transcript h2 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 560;
}

.live-call-empty {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.live-call-transcript ol {
  list-style: none;
  margin: 0;
  padding: 0 0.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.live-call-transcript li {
  max-width: 85%;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  line-height: 1.4;
}

.live-call-transcript li.is-user {
  align-self: flex-end;
  background: rgba(226, 164, 58, 0.16);
}

.live-call-transcript li.is-bot {
  align-self: flex-start;
  background: rgba(106, 166, 255, 0.14);
}

.live-call-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.live-call-stage h1 {
  margin: 0.35rem 0 1.4rem;
  font-size: 1.7rem;
  font-weight: 560;
}

.live-call-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #07080a;
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 1.2rem;
}

.live-call-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07080a;
}

.live-call-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
}

.live-call-loading span {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 3px solid rgba(244, 241, 234, 0.22);
  border-top-color: var(--ink);
  animation: live-call-spin 0.8s linear infinite;
}

.live-call-progress {
  width: min(18rem, 76%);
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.live-call-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.live-call-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.16);
  overflow: hidden;
}

.live-call-fill {
  height: 100%;
  background: #f4f1ea;
  transition: width 320ms ease-in-out;
}

.live-call-self {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  width: 9.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.live-call-self-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  transform: scaleX(-1);
}

.live-call-toggles {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  z-index: 1;
  display: flex;
  gap: 0.3rem;
}

.live-call-toggles button {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.35rem;
  background: rgba(16, 17, 20, 0.72);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.live-call-toggles button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-call-toggles button[aria-pressed="false"] {
  background: #3a1d1d;
  color: white;
}

.live-call-actions {
  display: flex;
  gap: 0.6rem;
}

.live-call-actions button {
  font: inherit;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  background: var(--ink);
  color: #161616;
  cursor: pointer;
}

.live-call-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.live-call-actions button.is-hangup {
  background: #c44848;
  color: white;
}

@keyframes live-call-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .live-call-main {
    grid-template-columns: 1fr;
  }

  .live-call-stage {
    grid-row: 1;
  }

  .live-call-transcript {
    grid-row: 2;
    height: 50vh;
    position: static;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-right: 0;
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-call-loading span {
    animation: none;
    border-color: var(--ink);
  }
}

.hosted-page-root {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #101114;
}

.landing-demo-sdk .live-call {
  min-height: 0;
  height: 100%;
  background: transparent;
}

.landing-demo-sdk .live-call-main {
  width: 100%;
  height: 100%;
  padding: 0.5rem 0 0;
  gap: 1rem;
}

.landing-demo-sdk .live-call-transcript {
  height: auto;
  max-height: 100%;
  position: static;
}
