.vr-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--ink, #f6eeef);
  container: voice-room / inline-size;
}
.vr-shell [hidden] {
  display: none !important;
}
.vr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 32px 21px;
}
.vr-heading {
  min-width: 0;
}
.vr-heading h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: -0.025em;
}
.vr-heading p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.vr-head-actions,
.vr-join-actions,
.vr-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.vr-btn,
.vr-enlarge {
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.vr-btn-icon {
  display: grid;
  place-items: center;
}
.vr-small {
  height: 35px;
  padding: 0 12px;
  background: var(--raised, #352e32);
  color: var(--ink);
}
.vr-small .icon {
  width: 16px;
  height: 16px;
}
.vr-body {
  padding: 0 32px 20px;
  min-height: 0;
  display: flex;
}
.vr-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  background: var(--panel, #211d21);
  border: 1px solid var(--line, #ffffff12);
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.vr-stage-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 15px;
}
.vr-stage-label {
  color: var(--ink);
  font-weight: 640;
  font-size: 13px;
}
.vr-cap {
  color: var(--brick-bright, #ffd5c5);
  font: 600 11px/1.3 var(--font, 'Segoe UI', sans-serif);
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  background: #403033;
  border-radius: 5px;
}
.vr-empty {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(ellipse 62% 80% at 50% 46%, #473238 0%, #33282d 52%, #262126 100%);
}
.vr-empty-center {
  text-align: center;
  padding: 10px 20px 34px;
}
.vr-emblem {
  position: relative;
  margin: 0 auto;
  width: min(240px, 65vw);
}
.vr-wave {
  width: 100%;
  display: block;
}
.vr-wave-shadow {
  stop-color: var(--brick-shadow, #ff8b90);
}
.vr-wave-bright {
  stop-color: var(--brick-bright, #ffd5c5);
}
.vr-wave-base {
  stop-color: var(--brick-base, #ffb4b2);
}
.vr-emblem > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brick-bright, #ffd5c5);
  filter: drop-shadow(0 3px 8px #ff8b9042);
}
.vr-empty h2 {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 675;
  letter-spacing: -0.016em;
  color: #fff5f1;
}
.vr-empty p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #d0bec3;
}
.vr-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(118px, 1fr);
  flex: 1;
  gap: 10px;
}
.vr-tiles[data-layout='solo'] {
  grid-template-columns: 1fr;
}
.vr-tiles[data-size='3'] > :last-child {
  grid-column: 1 / -1;
  width: calc((100% - 10px) / 2);
  justify-self: center;
}
.vr-tiles[data-layout='group'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.vr-tile {
  --vr-member-color: 150 93 99;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 118px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 38%, rgb(var(--vr-member-color) / 0.46), transparent 70%),
    linear-gradient(125deg, rgb(var(--vr-member-color) / 0.23), #262126);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 140ms ease;
}
.vr-tile.is-speaking {
  outline-color: var(--brick-base, #ffb4b2);
}
.vr-person-avatar {
  display: grid;
  width: 68px;
  aspect-ratio: 1;
  place-items: center;
  position: relative;
  isolation: isolate;
  margin: 22px 12px 30px;
}
.vr-person-avatar .avatar {
  width: 100%;
  height: 100%;
  border-radius: 35%;
  box-shadow: 0 9px 20px #15121d32;
}
.vr-person-avatar::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -14%;
  border: 1px solid color-mix(in srgb, var(--brick-bright, #ffd5c5) 55%, transparent);
  background: color-mix(in srgb, var(--brick-shadow, #ff8b90) 12%, transparent);
  border-radius: 34%;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 160ms ease,
    transform 180ms var(--ease, ease-out);
}
.is-speaking .vr-person-avatar::before {
  opacity: 1;
  transform: scale(1);
}
.vr-tiles[data-layout='solo'] .vr-person-avatar {
  width: 96px;
}
.vr-tile-info {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vr-tile-info strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #fff6f5;
}
.vr-self {
  font-size: 10px;
  color: #f1e2df;
  border: 1px solid #e2ccc742;
  padding: 0 4px;
  border-radius: 4px;
}
.vr-mic-status {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  place-items: center;
  color: #e7dedf;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: #1c151970;
}
.is-speaking .vr-mic-status {
  color: var(--brick-bright, #ffd5c5);
}
.vr-shares {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-bottom: 12px;
}
.vr-screen {
  position: relative;
  margin: 0;
  min-width: 0;
  background: #101015;
  border-radius: 10px;
  overflow: hidden;
}
.vr-screen video {
  display: block;
  width: 100%;
  object-fit: contain;
  min-height: 140px;
  max-height: min(55vh, 620px);
  aspect-ratio: 16/9;
}
.vr-screen:fullscreen {
  display: flex;
  align-items: center;
  border-radius: 0;
}
.vr-screen:fullscreen video {
  max-height: 100%;
  width: 100%;
  height: 100%;
}
.vr-screen figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 10px 8px;
  background: linear-gradient(transparent, #121016bd);
}
.vr-screen figcaption > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: white;
  font-size: 12px;
  min-width: 0;
}
.vr-screen figcaption strong {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.vr-screen figcaption > span .icon {
  color: var(--brick-ice, #9ee1ff);
}
.vr-enlarge {
  color: white;
  background: #282431cc;
  width: 30px;
  height: 30px;
}
.vr-enlarge .vr-btn-label,
.vr-compact .vr-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.has-screen .vr-tiles {
  flex: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  grid-auto-rows: 90px;
}
.has-screen .vr-tile {
  min-height: 90px;
}
.has-screen .vr-tiles[data-size='3'] > :last-child {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}
.has-screen .vr-person-avatar,
.has-screen .vr-tiles[data-layout='solo'] .vr-person-avatar {
  width: 39px;
  margin: 5px 5px 21px;
}
.vr-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 32px max(14px, env(safe-area-inset-bottom));
  background: var(--panel, #211d21);
  border-top: 1px solid var(--line);
  min-height: 76px;
}
.vr-status {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.vr-status-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: none;
  place-items: center;
  background: #3e2e34;
  color: var(--brick-base, #ffb4b2);
  border-radius: 11px;
}
.vr-status.connected .vr-status-icon {
  background: #253645;
  color: var(--brick-ice, #9ee1ff);
}
.vr-status.connected strong {
  color: var(--brick-ice, #9ee1ff);
}
.vr-status > div {
  min-width: 0;
}
.vr-status strong,
.vr-status small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vr-status strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}
.vr-status small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--soft);
  line-height: 1.5;
}
.vr-primary,
.vr-secondary {
  height: 40px;
  padding: 0 18px;
}
.vr-primary {
  color: #322126;
  background: var(--brick-base, #ffb4b2);
}
.vr-secondary,
.vr-tool {
  color: var(--ink);
  background: var(--raised, #352e32);
}
.vr-tool,
.vr-end {
  width: 43px;
  height: 39px;
}
.vr-tool.quiet {
  color: var(--brick-base, #ffb4b2);
  background: #412d32;
}
.vr-tool.sharing {
  color: #112b3b;
  background: var(--brick-blue, #5a9fdf);
}
.vr-end {
  color: #fff6f7;
  background: #b74253;
  width: 52px;
}
.vr-shell button:focus-visible {
  outline: 2px solid var(--brick-bright, #ffd5c5);
  outline-offset: 3px;
}
.vr-shell button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .vr-small:hover,
  .vr-secondary:hover,
  .vr-tool:hover {
    background: #463b41;
  }
  .vr-primary:hover {
    background: var(--brick-bright, #ffd5c5);
  }
  .vr-tool.quiet:hover {
    background: #563a45;
  }
  .vr-tool.sharing:hover {
    background: var(--brick-ice, #9ee1ff);
  }
  .vr-end:hover {
    background: #cb5061;
  }
  .vr-enlarge:hover {
    background: #433b50;
  }
}
@container voice-room (max-width: 650px) {
  .vr-head {
    padding: 19px 17px 16px;
    gap: 10px;
  }
  .vr-heading h1 {
    font-size: 22px;
  }
  .vr-heading p {
    font-size: 12px;
  }
  .vr-body {
    padding: 0 16px 15px;
  }
  .vr-stage {
    padding: 12px;
  }
  .vr-head-actions {
    gap: 5px;
  }
  .vr-small {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .vr-small .vr-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .vr-dock {
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    min-height: 64px;
  }
  .vr-status-icon {
    display: none;
  }
  .vr-tiles[data-layout='group'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vr-status small {
    font-size: 10px;
  }
}
@container voice-room (max-width: 420px) {
  .vr-head {
    padding: 16px 13px 14px;
  }
  .vr-body {
    padding: 0 10px 10px;
  }
  .vr-stage {
    padding: 11px;
  }
  .vr-dock {
    gap: 6px;
    padding-inline: 11px;
  }
  .vr-primary,
  .vr-secondary {
    padding-inline: 11px;
  }
  .vr-tool,
  .vr-end {
    width: 36px;
    height: 38px;
  }
  .vr-join-actions,
  .vr-call-actions {
    gap: 5px;
  }
  .vr-status {
    flex: 1;
  }
  .vr-person-avatar {
    width: 47px;
  }
  .vr-tiles {
    gap: 6px;
    grid-auto-rows: minmax(98px, 1fr);
  }
  .vr-stage:not(.has-screen) .vr-tiles[data-size='2'] {
    grid-template-columns: 1fr;
  }
  .vr-stage:not(.has-screen) .vr-tiles[data-size='3'] > :last-child {
    width: calc((100% - 6px) / 2);
  }
  .vr-tile {
    min-height: 98px;
  }
  .vr-tile-info {
    left: 8px;
    bottom: 8px;
    right: 32px;
  }
  .vr-mic-status {
    right: 6px;
    bottom: 5px;
    width: 20px;
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vr-person-avatar::before,
  .vr-tile {
    transition: none;
  }
}
