.meeting-shell--livekit {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.body--meeting,
.body--meeting #app {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.zoom-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
  position: relative;
  z-index: 1;
}

.zoom-shell > * {
  min-height: 0;
}

.zoom-header,
.livekit-sidebar,
.zoom-toolbar,
.zoom-modal__card,
.screen-tab,
.zoom-stage,
.zoom-pill,
.zoom-header__icon-button,
.pending-file-chip,
.participant-row,
.message-row {
  backdrop-filter: blur(16px);
}

.zoom-header,
.livekit-sidebar,
.zoom-toolbar,
.zoom-stage,
.zoom-modal__card {
  background: rgba(12, 14, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.zoom-header {
  align-items: center;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 14px;
}

.zoom-header__brand,
.zoom-header__actions,
.zoom-header__copy,
.zoom-stage__overlay,
.livekit-sidebar__header,
.livekit-sidebar__tabs,
.livekit-chat-form__row,
.zoom-modal__header,
.zoom-breakout-item {
  align-items: center;
  display: flex;
}

.zoom-header__brand,
.zoom-header__copy,
.livekit-sidebar__header,
.zoom-stage__overlay,
.zoom-modal__header {
  gap: 12px;
}

.zoom-header__brand {
  min-width: 0;
}

.zoom-header .brand-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-height: 32px;
  padding: 0 12px;
  text-transform: uppercase;
}

.zoom-header__copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zoom-header__copy strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.zoom-header__copy span,
.zoom-stage__overlay p,
.livekit-sidebar__header p,
.participant-row__meta span,
.message-row__header,
.zoom-breakout-item span,
.zoom-avatar-stage__meta span {
  color: var(--text-soft);
}

.zoom-header__copy span {
  font-size: 0.78rem;
}

.zoom-header__tabs {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0;
}

.zoom-header__tabs::-webkit-scrollbar {
  height: 6px;
}

.zoom-header__tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.screen-tab,
.zoom-pill,
.zoom-header__icon-button,
.pending-file-chip,
.sidebar-switch,
.livekit-attach-button,
.zoom-send-button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.screen-tab {
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 36px;
  padding: 0 12px;
}

.screen-tab.is-active {
  background: rgba(45, 140, 255, 0.22);
  border-color: rgba(45, 140, 255, 0.5);
}

.screen-tab.is-live {
  box-shadow: inset 0 0 0 1px rgba(30, 208, 155, 0.36);
}

.zoom-pill {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 34px;
  padding: 0 12px;
  text-transform: uppercase;
}

.zoom-pill--accent {
  background: rgba(45, 140, 255, 0.18);
  border-color: rgba(45, 140, 255, 0.38);
}

.zoom-header__actions {
  gap: 8px;
}

.zoom-header__icon-button,
.sidebar-switch,
.livekit-attach-button {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  height: 36px;
  min-width: 36px;
  padding: 0;
}

.zoom-main {
  --zoom-sidebar-width: min(360px, calc(100vw - 32px));
  display: block;
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.zoom-stage {
  border-radius: 20px;
  bottom: 0;
  height: auto;
  left: 0;
  min-height: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.zoom-main.has-sidebar .zoom-stage {
  right: calc(var(--zoom-sidebar-width) + 12px);
}

.zoom-stage__surface {
  align-items: center;
  background: #090b10;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 100%;
  padding: 18px 18px 104px;
}

.zoom-stage.is-share-view .zoom-stage__surface {
  align-items: stretch;
  background: #050608;
  justify-content: stretch;
  padding: 0;
}

.zoom-stage.is-grid-view .zoom-stage__surface {
  align-items: stretch;
  justify-content: stretch;
}

.zoom-stage__grid {
  display: grid;
  gap: 14px;
  grid-auto-rows: minmax(0, 1fr);
  height: 100%;
  width: 100%;
}

.zoom-stage__grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.zoom-stage__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zoom-stage__grid--3,
.zoom-stage__grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zoom-grid-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.zoom-grid-tile__footer {
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.08) 0%, rgba(8, 10, 14, 0.82) 100%);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.zoom-grid-tile__footer strong {
  font-size: 0.92rem;
}

.zoom-grid-tile__footer span {
  color: var(--text-soft);
  font-size: 0.78rem;
}

.zoom-video-surface {
  background: #050608;
  border-radius: 20px;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  width: 100%;
}

.zoom-stage.is-share-view .zoom-video-surface {
  border-radius: 0;
}

.zoom-video-surface--tile {
  border-radius: 0;
  object-fit: cover;
}

.zoom-stage__overlay {
  align-items: flex-start;
  justify-content: space-between;
  left: 0;
  padding: 14px 16px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.zoom-stage__meta {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: min(65%, 560px);
  padding: 10px 12px;
}

.zoom-stage__meta.is-hidden,
.zoom-pill.is-hidden {
  display: none;
}

.zoom-stage__overlay h2,
.livekit-sidebar__header h3,
.zoom-modal__header h3,
.participant-row__meta strong,
.zoom-avatar-stage__meta strong {
  margin: 0;
}

.zoom-stage__overlay p,
.livekit-sidebar__header p,
.zoom-modal__header p {
  margin: 4px 0 0;
}

.zoom-stage__overlay h2 {
  font-size: 0.95rem;
  font-weight: 600;
}

.zoom-stage__overlay p {
  font-size: 0.8rem;
}

.zoom-avatar-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.zoom-avatar-stage__avatar,
.participant-row__avatar {
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.28) 0%, rgba(112, 93, 255, 0.22) 100%);
  border: 1px solid rgba(139, 173, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.zoom-avatar-stage__avatar {
  font-size: 2.4rem;
  height: 124px;
  width: 124px;
}

.zoom-avatar-stage__meta {
  display: grid;
  gap: 6px;
}

.zoom-avatar-stage__meta strong {
  font-size: 1.35rem;
  font-weight: 600;
}

.zoom-avatar-stage__meta span {
  font-size: 1rem;
}

.zoom-avatar-stage--tile {
  height: 100%;
  justify-content: center;
  padding: 18px;
}

.zoom-avatar-stage--tile .zoom-avatar-stage__avatar {
  font-size: 1.4rem;
  height: 72px;
  width: 72px;
}

.zoom-avatar-stage--tile .zoom-avatar-stage__meta strong {
  font-size: 1rem;
}

.zoom-avatar-stage--tile .zoom-avatar-stage__meta span {
  font-size: 0.82rem;
}

.livekit-sidebar {
  background: rgba(18, 19, 24, 0.97);
  border-radius: 18px;
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: var(--zoom-sidebar-width);
  z-index: 6;
}

.livekit-sidebar.is-hidden {
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

.livekit-sidebar__header {
  justify-content: space-between;
}

.livekit-sidebar__tabs {
  gap: 10px;
}

.livekit-sidebar__body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0;
}

.sidebar-empty {
  color: var(--text-soft);
  padding: 6px 0;
}

.participant-row,
.message-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
}

.participant-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.participant-row--stats {
  justify-content: flex-start;
}

.participant-row--stats .participant-row__avatar {
  border-radius: 14px;
}

.participant-row__avatar {
  font-size: 0.9rem;
  height: 40px;
  width: 40px;
}

.participant-row__meta {
  display: grid;
  gap: 4px;
}

.message-row {
  display: grid;
  gap: 8px;
}

.message-row.is-self {
  border-color: rgba(79, 124, 255, 0.28);
}

.message-row__body {
  line-height: 1.6;
}

.message-row__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-row__attachments a {
  color: #dce8ff;
}

.livekit-chat-form {
  background: rgba(18, 19, 24, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  margin: 0 -16px -16px;
  padding: 14px 16px 16px;
}

.livekit-chat-form.is-hidden {
  display: none;
}

.livekit-pending-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pending-file-chip {
  background: rgba(255, 255, 255, 0.05);
  min-height: 34px;
  padding: 0 12px;
}

.livekit-chat-form__row {
  gap: 10px;
  min-width: 0;
}

.livekit-chat-form__row input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  flex: 1 1 auto;
  min-height: 42px;
  min-width: 0;
  padding: 0 14px;
}

.zoom-send-button {
  background: rgba(45, 140, 255, 0.2);
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
}

.zoom-toolbar {
  align-items: stretch;
  align-self: auto;
  border-radius: 18px;
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  left: 50%;
  max-width: min(calc(100% - 24px), 920px);
  overflow-x: auto;
  padding: 6px 10px;
  position: absolute;
  bottom: 12px;
  transition: left 0.18s ease, max-width 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%);
  width: auto;
  z-index: 5;
}

.zoom-main.has-sidebar .zoom-toolbar {
  left: calc((100% - var(--zoom-sidebar-width)) / 2);
  max-width: min(calc(100% - var(--zoom-sidebar-width) - 24px), 920px);
}

.zoom-toolbar::-webkit-scrollbar {
  height: 0;
}

.zoom-toolbar__button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 64px;
  min-width: 82px;
  padding: 8px 12px;
}

.zoom-toolbar__button + .zoom-toolbar__button {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.zoom-toolbar__button.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.zoom-toolbar__button.is-hidden {
  display: none;
}

.zoom-toolbar__button--danger {
  color: #ff5f73;
}

.zoom-toolbar__button--danger.is-active {
  background: rgba(255, 95, 115, 0.12);
}

.zoom-toolbar__button span {
  font-size: 0.76rem;
  white-space: nowrap;
}

.zoom-header__icon-button.is-active {
  background: rgba(45, 140, 255, 0.22);
  border-color: rgba(45, 140, 255, 0.42);
}

.zoom-icon {
  align-items: center;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.zoom-icon svg {
  height: 100%;
  width: 100%;
}

.zoom-modal {
  align-items: center;
  background: rgba(3, 8, 17, 0.76);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.zoom-modal.is-open {
  display: flex;
}

.zoom-modal__card {
  border-radius: 20px;
  display: grid;
  gap: 0;
  max-width: 640px;
  overflow: hidden;
  padding: 0;
  width: min(100%, 640px);
}

.zoom-modal__header {
  justify-content: space-between;
}

.zoom-modal__card--breakouts {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  max-height: min(78vh, 760px);
  max-width: 720px;
  width: min(100%, 720px);
}

.zoom-modal__card--breakouts .zoom-modal__header {
  padding: 18px 20px 16px;
}

.zoom-modal__card--breakouts .zoom-modal__header p {
  color: var(--text-soft);
  margin-top: 4px;
}

.zoom-breakout-summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 20px;
}

.zoom-breakout-summary__meta {
  display: grid;
  gap: 6px;
}

.zoom-breakout-summary__hint {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.zoom-breakout-summary__current {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.zoom-breakout-columns {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  display: grid;
  font-size: 0.68rem;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  text-transform: uppercase;
}

.zoom-breakout-columns span:nth-child(2),
.zoom-breakout-columns span:nth-child(3) {
  justify-self: end;
}

.zoom-breakout-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 14px;
}

.zoom-breakout-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px 12px 16px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.zoom-breakout-item.is-current {
  background: rgba(45, 140, 255, 0.08);
  border-color: rgba(45, 140, 255, 0.28);
}

.zoom-breakout-item__meta,
.zoom-breakout-item__heading {
  align-items: center;
  display: flex;
  min-width: 0;
}

.zoom-breakout-item__meta {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.zoom-breakout-item__heading {
  gap: 12px;
}

.zoom-breakout-item__indicator {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.zoom-breakout-item.is-current .zoom-breakout-item__indicator {
  background: #2d8cff;
}

.zoom-breakout-item__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.zoom-breakout-item__copy strong {
  margin: 0;
}

.zoom-breakout-item__copy span {
  font-size: 0.8rem;
}

.zoom-breakout-item__details {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.zoom-breakout-item__badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.zoom-breakout-item__status {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.zoom-breakout-item__status.is-current {
  color: #9fc2ff;
}

.zoom-breakout-item__action.secondary-action {
  background: #0b5cff;
  border-color: #0b5cff;
  border-radius: 10px;
  box-shadow: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 40px;
  min-width: 72px;
  padding: 0 14px;
}

.zoom-breakout-item__action.secondary-action:disabled {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.zoom-audio-sinks {
  height: 0;
  overflow: hidden;
  width: 0;
}

@media (max-width: 1180px) {
  .livekit-sidebar {
    width: min(360px, calc(100vw - 24px));
  }

  .zoom-toolbar {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .zoom-shell {
    gap: 10px;
    height: 100%;
    min-height: 0;
    padding: 10px;
  }

  .zoom-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .zoom-header__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .zoom-stage__surface {
    padding: 14px;
  }

  .zoom-stage__overlay {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .zoom-stage__meta {
    max-width: 100%;
  }

  .zoom-main {
    --zoom-sidebar-width: calc(100vw - 20px);
  }

  .livekit-sidebar {
    border-radius: 16px;
    width: var(--zoom-sidebar-width);
  }

  .zoom-main.has-sidebar .zoom-stage {
    right: 0;
  }

  .zoom-toolbar {
    bottom: 10px;
    left: 10px;
    max-width: none;
    right: 10px;
    transform: none;
    width: auto;
  }

  .zoom-main.has-sidebar .zoom-toolbar {
    left: 10px;
    max-width: none;
    transform: none;
  }

  .zoom-toolbar__button {
    min-width: 70px;
    padding: 8px 10px;
  }

  .zoom-toolbar__button span {
    font-size: 0.7rem;
  }

  .zoom-breakout-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .zoom-breakout-summary__current {
    white-space: normal;
  }

  .zoom-breakout-columns {
    display: none;
  }

  .zoom-breakout-item,
  .zoom-breakout-item__meta {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .zoom-breakout-item {
    grid-template-columns: 1fr;
  }

  .zoom-breakout-item__details {
    justify-items: start;
  }

  .zoom-breakout-item__badge {
    align-self: flex-start;
  }

  .zoom-breakout-item__action.secondary-action {
    width: 100%;
  }
}
