/* Live session (live.js): the top-left bar's "Live · N people · You drive" pill, the driver's
   pointer on the stage, and the Share dialog's live section (styled like the rest of the dialog,
   share.css). */

/* In a narrow bar it gives way first (its shrink factor dwarfs the name's, panel.css), down to
   "● Live…"; its label says it all, its title who drives. */
#viewer .sv-live-pill {
  flex: 0 100 auto;
  min-width: 5.5em;
  min-height: 32px;
  padding: 0 12px 0 10px;
  overflow: hidden;
  border-color: transparent;
  border-radius: 999px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--sv-hover);
}

#viewer .sv-live-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--sv-danger);
}

@media (pointer: coarse) {
  #viewer .sv-live-pill {
    min-height: 44px;
  }
}

/* Phones: just "● Live · N", so the model's name keeps its room. */
@media (max-width: 480px) {
  .sv-live-pill__more {
    display: none;
  }
}

/* The driver's pointer: a dot at its stage fraction (live.js), its name beside it. */
.sv-live-dot {
  --sv-live-colour: var(--sv-accent);
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--sv-live-colour);
  box-shadow: 0 1px 3px rgb(23 23 26 / 0.35);
  pointer-events: none;
  transition: left 50ms linear, top 50ms linear;
}

.sv-live-dot span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--sv-live-colour);
}

.sv-live {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--sv-border);
}

.sv-live h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}
