/* Live video avatar stage. Shown only while the owner has the feature armed.
   It replaces the small header portrait: the still portrait sits here between
   replies and the video takes its place while a session is connected. */
.live-avatar-stage {
  position: relative;
  margin: 0 var(--space-4) var(--space-3);
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-avatar-stage[hidden] { display: none; }
/* Leave a strip under the still portrait for the status caption. */
.live-avatar-stage .live-avatar-portrait { height: calc(100% - 24px); align-self: flex-start; }
.live-avatar-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
/* The avatar video has its own dark backdrop; match it so the bars vanish. */
.live-avatar-stage.connected { background: black; }
.live-avatar-stage.connected video { display: block; }
.live-avatar-stage.connected .live-avatar-portrait { display: none; }
.live-avatar-stage .live-avatar-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}
.live-avatar-stage.connected .live-avatar-note { display: none; }
.live-avatar-stage.connecting .live-avatar-note { animation: statusPulse 1.2s ease-in-out infinite; }
.icon-btn[hidden] { display: none; }
.higgins-card.minimized .live-avatar-stage { display: none; }
/* One Higgins at a time: the header portrait steps aside for the stage. */
.higgins-card.live-avatar-armed .higgins-avatar-container { display: none; }
