:root {
  --focus-chrome: #101014;
  --focus-float: rgba(27, 27, 33, .9);
  --focus-line: rgba(255, 255, 255, .11);
  --focus-shadow: 0 20px 70px rgba(0, 0, 0, .42);
}

.presence-toggle {
  display: none;
}

.recording-download {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.recording-download[hidden] {
  display: none;
}

body.workshop-focus {
  overflow: hidden;
  background: #fff;
}

body.workshop-focus .call-header {
  position: relative;
  z-index: 40;
  height: 58px;
  padding-inline: 18px;
  gap: 14px;
  background: var(--focus-chrome);
}

body.workshop-focus .call-brand {
  width: 72px;
}

body.workshop-focus .call-title {
  padding-inline-start: 14px;
}

body.workshop-focus .call-title span {
  display: none;
}

body.workshop-focus .call-shell.has-workshop {
  position: relative;
  height: calc(100svh - 58px);
  padding: 0;
  display: block;
  background: #fff;
}

body.workshop-focus .workshop-panel {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  animation: workshop-focus-in 360ms cubic-bezier(.16, 1, .3, 1) both;
}

body.workshop-focus .workshop-panel > header {
  display: none;
}

body.workshop-focus .workshop-panel iframe {
  width: 100%;
  height: 100%;
  background: #fff;
}

body.workshop-focus .meeting-stage {
  position: fixed;
  z-index: 32;
  inset-block-start: 76px;
  inset-inline-end: 18px;
  width: clamp(190px, 15vw, 244px);
  height: auto;
  max-height: calc(100svh - 176px);
  overflow: hidden;
  background: var(--focus-float);
  border: 1px solid var(--focus-line);
  border-radius: 18px;
  box-shadow: var(--focus-shadow);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  animation: people-rail-in 420ms cubic-bezier(.16, 1, .3, 1) both;
}

body.workshop-focus .participant-grid {
  height: auto;
  max-height: calc(100svh - 176px);
  padding: 46px 7px 7px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(108px, 132px);
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
}

body.workshop-focus .participant-grid::-webkit-scrollbar {
  display: none;
}

body.workshop-focus .participant-tile {
  min-height: 0;
  height: 100%;
  border-radius: 12px;
}

body.workshop-focus .participant-tile__fallback span {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

body.workshop-focus .participant-tile__name {
  inset-inline-start: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 5px 7px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.workshop-focus .empty-call {
  display: none;
}

body.workshop-focus .presence-toggle {
  position: absolute;
  z-index: 3;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 0;
  border-radius: 9px;
  font-size: 10px;
}

body.workshop-focus .presence-toggle span {
  color: #fff;
  letter-spacing: .1em;
}

body.workshop-focus .presence-toggle small {
  font-size: inherit;
}

body.workshop-focus.presence-collapsed .meeting-stage {
  width: auto;
  height: auto;
  max-height: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.workshop-focus.presence-collapsed .participant-grid {
  display: none;
}

body.workshop-focus.presence-collapsed .presence-toggle {
  position: static;
  min-height: 38px;
  padding-inline: 12px;
  color: #fff;
  background: var(--focus-float);
  border: 1px solid var(--focus-line);
  box-shadow: var(--focus-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.workshop-focus .control-dock {
  z-index: 50;
  bottom: max(12px, env(safe-area-inset-bottom));
}

body.workshop-focus .control[data-workshop] {
  color: #fff;
  background: rgba(116, 100, 255, .24);
}

@keyframes workshop-focus-in {
  from { opacity: .72; transform: scale(.992); }
  to { opacity: 1; transform: none; }
}

@keyframes people-rail-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  body.workshop-focus .meeting-stage {
    display: block;
    width: 176px;
    inset-block-start: 70px;
    inset-inline-end: 10px;
  }

  body.workshop-focus .participant-grid {
    grid-auto-rows: 98px;
  }
}

@media (max-width: 620px) {
  body.workshop-focus .call-header {
    height: 54px;
    padding-inline: 12px;
  }

  body.workshop-focus .call-title {
    border: 0;
  }

  body.workshop-focus .call-header__actions .invite-button {
    display: none;
  }

  body.workshop-focus .call-shell.has-workshop {
    height: calc(100svh - 54px);
    padding-bottom: 0;
  }

  body.workshop-focus .meeting-stage {
    width: 148px;
    inset-block-start: 64px;
    inset-inline-end: 8px;
  }

  body.workshop-focus .participant-grid {
    grid-auto-rows: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.workshop-focus .workshop-panel,
  body.workshop-focus .meeting-stage {
    animation-duration: .01ms;
  }
}
