.camera-tile {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brand-gamepad {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  vertical-align: -2px;
}

.camera-tile.speaking {
  border-color: #58e39b;
  box-shadow: inset 0 0 0 1px #58e39b, 0 0 18px #58e39b55;
}

.tile-identity,
.person-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tile-identity {
  flex: 1;
}

.tile-name,
.person-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-name {
  flex: 1;
}

.live-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #d83c4a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.live-status[hidden] {
  display: none;
}

.live-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

@media (prefers-reduced-motion: reduce) {
  .camera-tile {
    transition: none;
  }
}

.share-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.share-settings-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border: 1px solid #504c70;
  border-radius: 8px;
  background: #292638;
  color: #d8d2e5;
}

.share-settings-button:hover,
.share-settings-button[aria-expanded='true'] {
  border-color: var(--purple);
  color: var(--text);
}

.share-settings-menu {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 12px);
  left: 50%;
  width: 260px;
  padding: 14px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 36px #0008;
}

.share-settings-menu label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.share-settings-menu select {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--deep);
  color: var(--text);
}

.share-settings-menu p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.screen-selector {
  width: min(180px, 38%);
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--deep);
  color: var(--text);
  font-size: 11px;
}

.person-volume-control {
  position: relative;
  flex: 0 0 30px;
}

.volume-settings-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.volume-settings-button:hover,
.volume-settings-button[aria-expanded='true'] {
  border-color: var(--line);
  background: var(--deep);
  color: var(--text);
}

.volume-settings-button svg {
  width: 16px;
  height: 16px;
}

.person-volume-panel {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 6px);
  display: grid;
  gap: 12px;
  width: min(230px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px #0009;
}

.person-volume-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 11px;
}

.person-volume-row input {
  width: 100%;
  min-width: 0;
  accent-color: var(--purple);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .share-settings-menu {
    right: 0;
    left: auto;
    transform: none;
  }

  .screen-selector {
    width: 42%;
  }
}