/* Scoped to the video room; no global reset or external assets. */
.call-room {
  --call-ink: #202338;
  --call-muted: #838798;
  --call-line: #e9eaf1;
  --call-purple: #7861d8;
  color: var(--call-ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  padding: 30px 36px 36px;
  max-width: 1680px;
  margin: 0 auto;
  box-sizing: border-box;
}
.call-room * {
  box-sizing: border-box;
}
.call-room [hidden] {
  display: none !important;
}
.call-room button,
.call-room input {
  font: inherit;
}
.call-room button {
  cursor: pointer;
}
.call-room button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.call-room svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.call-room button:focus-visible,
.call-room input:focus-visible {
  outline: 3px solid #baaaf9;
  outline-offset: 3px;
}
.call-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.call-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--call-line);
  border-radius: 13px;
  background: white;
  color: #65677d;
}
.call-heading {
  flex: 1;
  min-width: 0;
}
.call-eyebrow,
.call-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #9996ac;
}
.call-heading h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 6px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.call-mode {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #878297;
  font-size: 11px;
  white-space: nowrap;
  margin-right: 10px;
}
.call-mode svg {
  width: 15px;
  height: 15px;
}
.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition:
    background 0.2s,
    transform 0.15s;
}
.call-button:active:not(:disabled) {
  transform: translateY(1px);
}
.call-button-light {
  background: #fff;
  border-color: var(--call-line);
  color: #57536f;
}
.call-button-light:hover {
  background: #f7f5ff;
}
.call-button-primary {
  background: #7861d8;
  color: #fff;
  box-shadow: 0 5px 12px #7056d51c;
}
.call-button-primary:hover {
  background: #6951cc;
}
.call-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f2effa;
  border: 1px solid #e9e3f6;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.6;
  color: #80758e;
  padding: 11px 14px;
  margin-bottom: 20px;
}
.call-notice svg {
  width: 16px;
  height: 16px;
  color: #9680be;
  margin-top: 2px;
}
.call-notice strong {
  color: #71627d;
  font-weight: 600;
}
.call-alert,
.call-signal-warning {
  padding: 13px 16px;
  margin: 0 0 18px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  background: #fff1ed;
  color: #a3513a;
  border: 1px solid #f5dbd3;
}
.call-signal-warning {
  color: #8b733a;
  background: #fffae9;
  border-color: #f1e8c6;
}
.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 298px;
  gap: 24px;
  align-items: start;
}
.call-stage {
  display: flex;
  flex-direction: column;
  background: #181a27;
  border-radius: 17px;
  padding: 19px;
  min-height: 568px;
  overflow: hidden;
  box-shadow: 0 8px 22px #20203208;
}
.call-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8c8d9e;
  font-size: 10px;
  padding: 1px 4px 17px;
}
.call-session-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.call-session-status i {
  width: 6px;
  height: 6px;
  background: #8a8199;
  border-radius: 50%;
}
.call-session-status.is-live i {
  background: #7bd4b1;
  box-shadow: 0 0 0 3px #7bd4b112;
}
.call-duration {
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: #aaa9b9;
}
.call-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
  flex: 1;
  align-content: center;
}
.call-tile {
  position: relative;
  aspect-ratio: 16/10;
  min-height: 215px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #323043 0, #242634 45%, #222430 100%);
  border: 1px solid #ffffff05;
  isolation: isolate;
}
.call-video-grid:has(> .call-tile:only-child) .call-tile {
  min-height: 365px;
}
.call-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
}
.call-tile.call-has-video video {
  opacity: 1;
}
.call-tile.call-is-screen video {
  object-fit: contain;
  background: #151620;
}
.call-video-mirrored {
  transform: scaleX(-1);
}
.call-avatar-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  gap: 10px;
  transition: opacity 0.2s;
}
.call-has-video .call-avatar-wrap {
  opacity: 0;
  pointer-events: none;
}
.call-avatar {
  height: 76px;
  width: 76px;
  border-radius: 24px;
  background: linear-gradient(140deg, #4a435f, #37334d);
  box-shadow:
    0 8px 24px #0d102025,
    inset 0 1px #ffffff08;
  display: grid;
  place-items: center;
  color: #b6a7e5;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.call-avatar svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.4;
}
.call-placeholder-title {
  color: #d1cedc;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.call-placeholder-subtitle {
  font-size: 11px;
  color: #817e93;
  line-height: 1.5;
}
.call-tile-label {
  position: absolute;
  bottom: 13px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
  color: #e9e5f4;
  font-size: 10px;
}
.call-tile-label > span:first-child {
  padding: 6px 8px;
  border-radius: 6px;
  background: #17162285;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  backdrop-filter: blur(5px);
}
.call-tile-label svg {
  width: 14px;
  height: 14px;
}
.call-local-media,
.call-peer-media {
  display: grid;
  place-items: center;
  background: #17162285;
  padding: 6px;
  border-radius: 7px;
}
.call-peer-connection {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #171622a6;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9px;
  color: #b8adc9;
  z-index: 2;
}
.call-peer-connection.is-connected {
  color: #9adebd;
}
.call-peer-connection.is-failed {
  color: #e9acac;
}
.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px 0 6px;
}
.call-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 65px;
  height: 65px;
  background: #292b3b;
  border: 1px solid #38394b;
  border-radius: 12px;
  color: #e0dbea;
  transition: background 0.2s;
}
.call-control svg {
  width: 20px;
  height: 20px;
}
.call-control span {
  font-size: 9px;
  line-height: 1.2;
}
.call-control:hover:not(:disabled) {
  background: #353547;
}
.call-control-off {
  background: #353142;
  color: #beb2ce;
  border-color: #423b50;
}
.call-control-active {
  background: #6f54c6;
  color: white;
  border-color: #8b70d4;
}
.call-control-divider {
  height: 28px;
  width: 1px;
  background: #353547;
  margin: 0 6px;
}
.call-control.call-leave {
  background: #c75d71;
  color: white;
  border-color: #d06f80;
}
.call-control.call-leave:hover {
  background: #b94e62;
}
.call-stage-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6b6b82;
  font-size: 9px;
  text-align: center;
  line-height: 1.5;
  padding-top: 20px;
  margin-top: auto;
}
.call-stage-footnote svg {
  width: 12px;
  height: 12px;
}
.call-awaiting {
  font-size: 11px;
  color: #aaa1bf;
  line-height: 1.5;
  text-align: center;
  margin: 15px 0 -6px;
}
.call-enable-audio {
  align-self: center;
  background: #7965ac;
  color: #fff;
  font-size: 11px !important;
  margin-top: 12px;
}
.call-sidebar {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.call-lobby,
.call-participants,
.call-invite {
  background: white;
  border: 1px solid var(--call-line);
  border-radius: 13px;
  padding: 24px 21px;
}
.call-lobby h2,
.call-participants h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 10px 0 11px;
  font-weight: 600;
}
.call-sidebar p {
  font-size: 11px;
  line-height: 1.7;
  color: #92909f;
  margin: 0 0 21px;
  overflow-wrap: anywhere;
}
.call-field-label {
  display: block;
  color: #726c82;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 8px;
}
.call-name-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e7e3ee;
  border-radius: 8px;
  color: #4a435d;
  background: #fcfbfe;
  font-size: 12px !important;
  margin-bottom: 15px;
}
.call-name-input::placeholder {
  color: #b6afc0;
}
.call-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #716981;
  margin-bottom: 13px;
  cursor: pointer;
}
.call-check input {
  width: 15px;
  height: 15px;
  accent-color: #7b63d5;
  margin: 0;
}
.call-check span {
  flex: 1;
}
.call-check svg {
  width: 15px;
  height: 15px;
  color: #a29aae;
}
.call-join {
  width: 100%;
  margin-top: 22px;
}
.call-listen {
  width: 100%;
  margin-top: 9px;
  font-size: 10px !important;
  background: #fcfbfe;
  padding: 10px 4px;
  min-height: 36px;
}
.call-permission-note {
  font-size: 9px;
  color: #aaa3b6;
  line-height: 1.65;
  text-align: center;
  margin-top: 16px;
}
.call-invite {
  padding: 21px;
}
.call-invite h3 {
  font-size: 15px;
  margin: 10px 0 8px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.call-invite p {
  margin: 0 0 16px;
}
.call-link-box {
  display: flex;
  background: #f7f6fa;
  border: 1px solid #eeebf3;
  border-radius: 8px;
  align-items: center;
  min-width: 0;
}
.call-link-input {
  border: 0;
  background: transparent;
  color: #6f617d;
  min-width: 0;
  width: 100%;
  font-size: 10px !important;
  padding: 11px 9px;
  outline-offset: 0 !important;
}
.call-copy-icon {
  border: 0;
  background: transparent;
  color: #917cad;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 7px;
}
.call-copy-icon:hover {
  background: #ebe5f5;
}
.call-copy-icon svg {
  width: 15px;
  height: 15px;
}
.call-invite p.call-access-note {
  font-size: 9px;
  line-height: 1.6;
  color: #aca5b6;
  margin: 12px 0 0;
}
.call-participant-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f2eefb;
  color: #9580bd;
  font-size: 11px;
  vertical-align: middle;
  margin-left: 5px;
}
.call-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f2eff6;
}
.call-person:last-child {
  border-bottom: 0;
}
.call-person-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  background: #efeaf8;
  color: #8b74b7;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.call-person > div {
  flex: 1;
  min-width: 0;
}
.call-person strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
  color: #61596f;
}
.call-person strong small {
  color: #b4abbd;
  font-weight: 400;
  font-size: 10px;
  margin-left: 3px;
}
.call-person-status {
  display: block;
  color: #aaa2b5;
  font-size: 9px;
  margin-top: 5px;
  line-height: 1.4;
}
.call-person-connected {
  color: #82a295;
}
.call-person-failed {
  color: #bd7c7c;
}
.call-person > svg {
  width: 14px;
  height: 14px;
  color: #aca2b9;
}
.call-participants p.call-peer-explanation {
  margin: 14px 0 0;
  font-size: 9px;
  color: #b0a9b9;
}
.call-grid-many {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.call-grid-many .call-tile {
  min-height: 180px;
}
.call-grid-many .call-avatar {
  height: 56px;
  width: 56px;
  font-size: 18px;
  border-radius: 18px;
}
@media (min-width: 1450px) {
  .call-stage {
    min-height: 630px;
  }
  .call-video-grid:has(> .call-tile:only-child) .call-tile {
    min-height: 420px;
  }
}
@media (max-width: 1100px) {
  .call-room {
    padding: 25px 24px;
  }
  .call-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .call-mode {
    display: none;
  }
  .call-lobby,
  .call-participants,
  .call-invite {
    padding: 20px 17px;
  }
  .call-stage {
    padding: 15px;
    min-height: 555px;
  }
  .call-video-grid {
    grid-template-columns: 1fr;
  }
  .call-video-grid:has(> .call-tile:only-child) .call-tile {
    min-height: 350px;
  }
  .call-grid-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-grid-many .call-tile {
    min-height: 145px;
  }
  .call-grid-many .call-placeholder-subtitle {
    font-size: 9px;
  }
  .call-grid-many .call-avatar {
    height: 44px;
    width: 44px;
    border-radius: 14px;
    font-size: 16px;
  }
  .call-grid-many .call-avatar-wrap {
    gap: 5px;
  }
  .call-grid-many .call-placeholder-title {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .call-layout {
    grid-template-columns: 1fr;
  }
  .call-stage {
    min-height: 420px;
  }
  .call-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .call-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  .call-video-grid:has(> .call-tile:only-child) .call-tile {
    min-height: 310px;
    aspect-ratio: 16/8;
  }
  .call-room {
    padding: 23px;
  }
  .call-grid-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-grid-many .call-tile {
    min-height: 180px;
  }
}
@media (max-width: 540px) {
  .call-room {
    padding: 15px 12px 26px;
  }
  .call-header {
    gap: 11px;
    margin-bottom: 16px;
    align-items: center;
  }
  .call-back {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 10px;
  }
  .call-heading h1 {
    font-size: 19px;
    letter-spacing: -0.5px;
    margin-top: 4px;
  }
  .call-eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .call-copy {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 10px;
  }
  .call-copy span {
    display: none;
  }
  .call-copy svg {
    width: 17px;
    height: 17px;
  }
  .call-notice {
    font-size: 9px;
    line-height: 1.65;
    padding: 10px;
    margin-bottom: 14px;
    gap: 8px;
  }
  .call-notice svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .call-layout {
    gap: 15px;
  }
  .call-stage {
    padding: 12px;
    border-radius: 13px;
    min-height: 330px;
  }
  .call-stage-top {
    font-size: 9px;
    padding-bottom: 12px;
  }
  .call-video-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .call-video-grid:has(> .call-tile:only-child) .call-tile {
    min-height: 245px;
    aspect-ratio: 4/3;
  }
  .call-tile {
    min-height: 225px;
    aspect-ratio: 4/3;
  }
  .call-avatar {
    height: 65px;
    width: 65px;
    border-radius: 21px;
  }
  .call-placeholder-title {
    font-size: 13px;
  }
  .call-placeholder-subtitle {
    font-size: 10px;
  }
  .call-stage-footnote {
    font-size: 8px;
    gap: 5px;
    padding-top: 14px;
  }
  .call-sidebar {
    display: flex;
    gap: 14px;
  }
  .call-lobby,
  .call-invite,
  .call-participants {
    padding: 22px 20px;
  }
  .call-lobby h2 {
    font-size: 20px;
  }
  .call-sidebar p {
    font-size: 12px;
  }
  .call-name-input {
    height: 45px;
    font-size: 13px !important;
  }
  .call-check {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .call-button {
    min-height: 46px;
    font-size: 12px !important;
  }
  .call-copy.call-button {
    min-height: 36px;
  }
  .call-listen {
    font-size: 11px !important;
  }
  .call-permission-note {
    font-size: 10px;
  }
  .call-controls {
    gap: 7px;
    margin-top: 16px;
  }
  .call-control {
    min-width: 58px;
    height: 61px;
    border-radius: 10px;
  }
  .call-control-divider {
    margin: 0 3px;
  }
  .call-control span {
    font-size: 8px;
  }
  .call-awaiting {
    font-size: 10px;
  }
  .call-grid-many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .call-grid-many .call-tile {
    min-height: 155px;
    aspect-ratio: 1;
  }
  .call-grid-many .call-avatar-wrap {
    padding: 10px;
    gap: 4px;
  }
  .call-grid-many .call-avatar {
    width: 41px;
    height: 41px;
    font-size: 15px;
    border-radius: 13px;
    margin-bottom: 3px;
  }
  .call-grid-many .call-placeholder-title {
    font-size: 10px;
  }
  .call-grid-many .call-placeholder-subtitle {
    font-size: 8px;
  }
  .call-grid-many .call-tile-label {
    bottom: 7px;
    left: 6px;
    right: 6px;
    gap: 2px;
    font-size: 8px;
  }
  .call-grid-many .call-tile-label > span:first-child {
    padding: 4px 5px;
    max-width: 82%;
  }
  .call-grid-many .call-peer-media,
  .call-grid-many .call-local-media {
    padding: 4px;
  }
  .call-grid-many .call-tile-label svg {
    width: 11px;
    height: 11px;
  }
  .call-grid-many .call-peer-connection {
    top: 6px;
    left: 6px;
    font-size: 7px;
    padding: 4px 5px;
  }
  .call-person strong {
    font-size: 12px;
  }
  .call-person-status {
    font-size: 10px;
  }
  .call-alert,
  .call-signal-warning {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .call-room * {
    transition: none !important;
  }
}
/* Readable support text; keep dark stage and light sidebar contrast distinct. */
.call-room {
  --call-muted: #687187;
}
.call-sidebar p,
.call-permission-note,
.call-invite p.call-access-note,
.call-participants p.call-peer-explanation,
.call-person-status,
.call-section-label,
.call-eyebrow {
  color: #71708a;
}
.call-stage-footnote {
  color: #aaa6bc;
}
.call-stage-top {
  color: #b4b2c4;
}
.call-notice {
  color: #6e5e83;
}
.call-person-connected {
  color: #477f69;
}
.call-person-failed {
  color: #a05c64;
}
