.bm-room {
  --bm-ink: #211a36;
  --bm-text: #f8f3ff;
  --bm-secondary: #d6cbea;
  --bm-border: #504269;
  --bm-accent: #d7c1ff;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--bm-text);
  background: var(--bm-ink);
  border: 1px solid var(--bm-border);
  border-radius: 0.65rem;
  font: inherit;
  text-align: start;
  isolation: isolate;
  container: studio-meeting / inline-size;
}
.bm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.bm-room *,
.bm-room *::after,
.bm-room *::before {
  box-sizing: border-box;
}
.bm-room [hidden] {
  display: none !important;
}
.bm-stage {
  position: relative;
  display: grid;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1.55;
  overflow: hidden;
  color: white;
  background: radial-gradient(ellipse at 50% 56%, #664a9e, #21153d 74%);
  isolation: isolate;
}
.bm-stage:after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(16, 15, 14, 0.85),
    transparent 34%,
    transparent 82%,
    rgba(22, 21, 20, 0.25)
  );
  pointer-events: none;
}
.bm-room .bm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bm-orbit {position:absolute;inset:0;display:grid;place-items:center}
.bm-orbit span {position:absolute;width:min(52%,320px);aspect-ratio:1;border-radius:100%;border:1px solid #dfc7ff9c;box-shadow:0 0 29px #bd9ff636 inset,0 0 24px #c3a2ff45;transform:scaleY(.6) rotate(-32deg) skewX(-11deg)}
.bm-orbit span:nth-child(2) {transform:scaleY(.73) rotate(29deg) skewX(11deg);border-color:#c1a6fc}
.bm-orbit span:nth-child(3) {transform:scale(.63);border-color:#cfb6fa6d}
.bm-orbit i {width:16%;max-width:72px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 38% 35%,#f6e7ff,#ae88f2 43%,#503288);box-shadow:0 0 42px #c39bffc9}
.bm-room[data-speaking=true] .bm-orbit i {animation:bm-orbit-pulse .8s var(--ease) infinite alternate}
@keyframes bm-orbit-pulse {to {transform:scale(1.14);box-shadow:0 0 67px #d7b7fff2}}
.bm-project {margin-top:.6rem;border:1px solid #635380;border-radius:.6rem;padding:.3rem .6rem;background:#2e2345}
.bm-project summary {display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:650;color:#f4e7ff}
.bm-project label {display:grid;gap:.35rem}
.bm-project .bm-notes {width:100%;resize:vertical}
.bm-room .bm-video {
  object-fit: contain;
  background: #20201e;
}
.bm-room audio {
  display: none;
}
.bm-hud,
.bm-byline {
  position: absolute;
  z-index: 2;
  left: clamp(0.8rem, 2.5cqw, 1.4rem);
  right: clamp(0.8rem, 2.5cqw, 1.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  pointer-events: none;
}
.bm-hud {
  top: clamp(0.8rem, 2.5cqw, 1.4rem);
}
.bm-byline {
  bottom: clamp(0.85rem, 2.9cqw, 1.65rem);
}
.bm-byline > div {
  display: grid;
  gap: 0.12rem;
}
.bm-room .bm-name {
  font-size: clamp(1.25rem, 3.4cqw, 1.85rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: #fffdf3;
}
.bm-identity {
  font-size: 0.9rem;
  color: #e4e2d9;
  line-height: 1.4;
}
.bm-badge,
.bm-clock,
.bm-kicker {
  font: 600 0.75rem/1.4 var(--mono, ui-monospace, monospace);
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.bm-badge,
.bm-clock {
  padding: 0.34rem 0.55rem;
  background: rgba(22, 23, 21, 0.82);
  border: 1px solid rgba(244, 241, 222, 0.3);
  border-radius: 0.23rem;
  color: #f4f0e6;
}
.bm-clock {
  font-variant-numeric: tabular-nums;
}
.bm-levels {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 1.7rem;
  height: 1.8rem;
}
.bm-levels i {
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: #e6dfd0;
}
.bm-room[data-speaking='true'] .bm-levels i {
  height: 1.1rem;
  background: var(--bm-accent);
  animation: bm-level 0.7s ease-in-out infinite alternate;
}
.bm-room[data-speaking='true'] .bm-levels i:nth-child(2) {
  animation-delay: -0.34s;
}
.bm-room[data-speaking='true'] .bm-levels i:nth-child(3) {
  animation-delay: -0.09s;
}
.bm-room[data-speaking='true'] .bm-levels i:nth-child(4) {
  animation-delay: -0.47s;
}
@keyframes bm-level {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
.bm-room .bm-panel {
  display: flex;
  flex-flow: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 4.4cqw, 2.4rem);
  gap: 0.8rem;
  overflow-wrap: anywhere;
}
.bm-lobby,
.bm-active,
.bm-form,
.bm-history {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.bm-room .bm-kicker {
  color: #fdad87;
}
.bm-room h3 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.7rem, 5.8cqw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.053em;
  margin: 0;
  color: var(--bm-text);
}
.bm-room p {
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  color: var(--bm-secondary);
}
.bm-room .bm-small,
.bm-room .bm-status {
  font-size: 0.9rem;
  line-height: 1.45;
}
.bm-room .bm-status {
  color: #e9c7af;
}
.bm-room .bm-status:empty {
  display: none;
}
.bm-check {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--bm-text);
  font-size: 1rem;
  line-height: 1.35;
}
.bm-check input {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin: 0;
  accent-color: var(--bm-accent);
}
.bm-room .bm-button,
.bm-room .bm-link,
.bm-room .bm-recap summary {
  max-width: 100%;
  min-height: 44px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: var(--bm-text);
  background: transparent;
  border: 1px solid var(--bm-border);
  border-radius: 0.38rem;
  padding: 0.62rem 0.88rem;
  touch-action: manipulation;
  cursor: pointer;
  box-shadow: none;
}
.bm-room .bm-button.bm-primary {
  border-color: var(--bm-accent);
  color: #16140f;
  background: var(--bm-accent);
  font-weight: 700;
}
.bm-room .bm-button[aria-pressed='true'] {
  border-color: #cf9b77;
  background: #49362c;
  color: #ffdac3;
}
.bm-room .bm-button.bm-leave {
  color: #ffb99c;
  border-color: #745447;
}
.bm-room .bm-button:disabled {
  opacity: 0.52;
  cursor: default;
}
.bm-room .bm-language-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin: 0 0 .85rem;
  color: var(--bm-secondary);
  font-size: .91rem;
  font-weight: 650;
}
.bm-room .bm-language {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #796391;
  border-radius: .55rem;
  padding: .45rem .7rem;
  background: #312545;
  color: var(--bm-text);
  font: inherit;
  font-size: 1rem;
  color-scheme: dark;
}
.bm-room .bm-language:disabled {opacity: .68}
.bm-room .bm-language:focus-visible,
.bm-room .bm-button:focus-visible,
.bm-room .bm-link:focus-visible,
.bm-room textarea:focus-visible,
.bm-room input:focus-visible,
.bm-room summary:focus-visible {
  outline: 2px solid #ffb58e;
  outline-offset: 3px;
}
.bm-room .bm-link,
.bm-room .bm-recap summary {
  justify-self: start;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-radius: 0;
  color: #ffba99;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.bm-room .bm-recap summary {
  display: list-item;
  align-content: center;
  list-style: revert;
  padding-top: 0.65rem;
}
.bm-room .bm-join {
  justify-self: start;
}
.bm-callhead,
.bm-historyhead,
.bm-tools,
.bm-compose,
.bm-playback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.bm-callhead,
.bm-historyhead {
  justify-content: space-between;
  gap: 0.7rem;
}
.bm-callhead > div {
  display: grid;
  gap: 0.25rem;
}
.bm-room .bm-callhead h3 {
  font-size: clamp(1.45rem, 4cqw, 2rem);
}
.bm-history {
  gap: 0.18rem;
  padding-block: 0.45rem 0.65rem;
  border-block: 1px solid var(--bm-border);
}
.bm-historyhead > strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--bm-text);
}
.bm-room .bm-historyhead .bm-link {
  font-size: 0.85rem;
}
.bm-log,
.bm-recap > div {
  display: grid;
  gap: 0.6rem;
  max-height: 14rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #68645d #211f1d;
}
.bm-log:empty {
  display: none;
}
.bm-recap > div {
  margin-block: 0.35rem 0.5rem;
}
.bm-room .bm-message {
  min-width: 0;
  padding: 0.4rem 0.65rem;
  border-inline-start: 2px solid #67655a;
  background: rgba(255, 255, 255, 0.028);
}
.bm-room .bm-message[data-role='assistant'] {
  border-color: #d88961;
}
.bm-room .bm-message strong {
  display: block;
  margin-bottom: 0.14rem;
  color: #d5d1c6;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.bm-room .bm-message[data-role='assistant'] strong {
  color: #ffb28b;
}
.bm-room .bm-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.42;
  color: var(--bm-text);
}
.bm-form {
  gap: 0.55rem;
}
.bm-form label {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bm-text);
}
.bm-room textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  box-shadow: none;
  border: 1px solid #58564e;
  border-radius: 0.4rem;
  background: #10110f;
  color: var(--bm-text);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.bm-room textarea::placeholder {
  color: #aaa99f;
  opacity: 1;
}
.bm-room .bm-playback,
.bm-room .bm-handoff {
  margin: 0;
}
@container studio-meeting (min-width: 48rem) {
  .bm-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  .bm-stage {
    aspect-ratio: auto;
    min-height: 25rem;
    height: 100%;
  }
}
@container studio-meeting (max-width: 23rem) {
  .bm-room .bm-panel {
    padding: 0.85rem;
  }
  .bm-room .bm-button {
    padding-inline: 0.66rem;
  }
  .bm-room .bm-callhead,
  .bm-room .bm-compose {
    align-items: stretch;
  }
  .bm-room .bm-compose .bm-button {
    flex: 1 1 6rem;
  }
}
@media (hover: hover) {
  .bm-room .bm-button:hover:enabled {
    border-color: var(--bm-accent);
  }
  .bm-room .bm-link:hover {
    color: #ffd7bd;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bm-room *,
  .bm-room *:before,
  .bm-room *:after {
    animation: none !important;
    transition: none !important;
  }
}
