/* ============================================================
   Canonical responsive Live Room
   One product surface at every width; CSS only changes its flow.
   ============================================================ */
.liveroom.lr-approved {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: block;
  overflow: hidden;
  overflow-x: hidden;
  color: #f5f8f4;
  background: #050606;
}

.lr-approved-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.lr-approved-shell:focus { outline: none; }
.lr-approved-shell button,
.lr-approved-shell input { font: inherit; }
.lr-approved-shell button:focus-visible,
.lr-approved-shell input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lr-approved-header,
.lr-approved-toolbar,
.lr-approved-stage,
.lr-approved-chat,
.lr-approved-viewers {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0c0c;
}

.lr-approved-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
}

.lr-approved-iconbtn,
.lr-approved-leave,
.lr-approved-media-control,
.lr-approved-stage-action,
.lr-approved-utility,
.lr-approved-invite {
  min-width: 44px;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f8f4;
  background: #151818;
  cursor: pointer;
}

.lr-approved-iconbtn {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
}
.lr-approved-iconbtn .ic { width: 18px; height: 18px; }

.lr-approved-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lr-approved-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb6b1;
  font-size: 12px;
}
.lr-approved-heading h1 {
  max-width: min(60vw, 760px);
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lr-approved-heading p {
  margin: 0;
  color: #aeb6b1;
  font-size: 12px;
}
.lr-approved-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff7180;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
}
.lr-approved-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4458;
}
.lr-approved-header__spacer { flex: 1 1 auto; }

.lr-approved-leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-color: rgba(255, 68, 88, 0.55);
  color: #ff9ba5;
  background: #211014;
  font-size: 12px;
  font-weight: 800;
}
.lr-approved-leave .ic { width: 16px; height: 16px; }
.lr-approved-leave:disabled { opacity: 0.5; cursor: wait; }

.lr-approved-toolbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 14px;
}
.lr-approved-media-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lr-approved-media-control {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
}
.lr-approved-media-control .ic { width: 19px; height: 19px; }
.lr-approved-media-control.is-on {
  border-color: #f5f8f4;
  color: #07110b;
  background: #f5f8f4;
}
.lr-approved-media-control:disabled,
.lr-approved-stage-action:disabled { opacity: 0.45; cursor: not-allowed; }
.lr-approved-stage-action {
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.lr-approved-media-status {
  color: #aeb6b1;
  font-size: 12px;
  white-space: nowrap;
}

.lr-approved-utilities {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lr-approved-utility {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  text-align: left;
}
.lr-approved-utility.is-active { border-color: rgba(255, 255, 255, 0.55); background: #202424; }
.lr-approved-utility .ic { width: 17px; height: 17px; flex: none; color: #c8d0cb; }
.lr-approved-utility span { min-width: 0; display: flex; flex-direction: column; }
.lr-approved-utility strong { color: #f5f8f4; font-size: 12px; line-height: 1.2; }
.lr-approved-utility small { color: #9da6a1; font-size: 11px; line-height: 1.2; white-space: nowrap; }

.lr-approved-permission-note,
.lr-approved-retry,
.lr-approved-notice {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #b5bdb8;
  background: #101313;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.lr-approved-retry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(255, 68, 88, 0.35);
  color: #ffabb4;
}
.lr-approved-retry button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  background: #1b2020;
  font-weight: 800;
}
.lr-approved-notice { border-color: rgba(255, 68, 88, 0.35); color: #ffabb4; }
.lr-approved-stage-prompts { display: grid; gap: 7px; max-height: 120px; overflow-y: auto; }
.lr-approved-stage-prompt {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: #101313;
  color: #cbd2ce;
  font-size: 12px;
}
.lr-approved-stage-prompt > span { flex: 1; }
.lr-approved-stage-prompt > div { display: flex; gap: 7px; }
.lr-approved-stage-prompt button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: #1a1e1e;
  font-weight: 800;
}

.lr-approved-middle {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
}
.lr-approved-stage-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}
.lr-approved-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border-radius: 14px;
}
.lr-approved-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  place-items: center;
  gap: 10px;
}
.lr-approved-grid--1 { grid-template-columns: minmax(220px, 420px); justify-content: center; }
.lr-approved-grid--2 { grid-template-columns: repeat(2, minmax(220px, 420px)); justify-content: center; }
.lr-approved-grid--5,
.lr-approved-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-approved-grid--7,
.lr-approved-grid--8,
.lr-approved-grid--9,
.lr-approved-grid--10 { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }

.lr-approved-tile {
  position: relative;
  width: auto;
  height: 100%;
  max-width: 420px;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: #111515;
}
.lr-approved-tile.is-speaking { border-color: #6ee7a0; box-shadow: inset 0 0 0 1px #6ee7a0; }
.lr-approved-tile video { width: 100%; height: 100%; object-fit: cover; }
.lr-approved-cameraoff {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #1a1e1e;
}
.lr-approved-mediahint {
  position: absolute;
  top: calc(50% + 54px);
  color: #aeb6b1;
  font-size: 12px;
}
.lr-approved-tile__scrim { position: absolute; inset: auto 0 0; height: 72px; background: rgba(0, 0, 0, 0.62); pointer-events: none; }
.lr-approved-hosttag {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 113, 128, 0.55);
  border-radius: 6px;
  color: #ffd8dc;
  background: #251217;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
}
.lr-approved-tile__name { position: absolute; left: 10px; right: 42px; bottom: 11px; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lr-approved-mic { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: rgba(0, 0, 0, 0.68); }
.lr-approved-mic.is-muted { background: #9f2635; }
.lr-approved-mic .ic { width: 15px; height: 15px; }

.lr-approved-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: #3b4742;
  font-weight: 850;
}
.lr-approved-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.lr-approved-avatar--me { width: 44px; height: 44px; }
.lr-approved-avatar--stage { width: 86px; height: 86px; font-size: 30px; }
.lr-approved-avatar--viewer { width: 40px; height: 40px; font-size: 14px; }
.lr-approved-presence { position: absolute; left: -1px; top: -1px; width: 12px; height: 12px; border: 2px solid #0b0d0d; border-radius: 50%; background: #4ade80; }

.lr-approved-chat {
  width: 320px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
}
.lr-approved-chat__head {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #b6beb9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.lr-approved-chat__head strong { margin-left: auto; }
.lr-approved-chat__stream {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 13px;
}
.lr-approved-message { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 8px; font-size: 14px; }
.lr-approved-message__avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #405049; font-size: 11px; font-weight: 800; }
.lr-approved-message strong { color: #d4dbd7; font-size: 12px; }
.lr-approved-message p { margin: 3px 0 0; color: #f0f3f1; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.lr-approved-reply { min-width: 44px; min-height: 44px; border: 0; color: #b6beb9; background: transparent; font-size: 12px; cursor: pointer; }
.lr-approved-chat__empty { min-height: 100%; display: grid; place-content: center; gap: 5px; color: #9da6a1; text-align: center; font-size: 14px; }
.lr-approved-chat__empty strong { color: #e7ebe9; }
.lr-approved-chat__empty span { max-width: 220px; }
.lr-approved-replying { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b6beb9; font-size: 12px; }
.lr-approved-replying button { width: 44px; height: 44px; margin-left: auto; border: 0; color: #fff; background: transparent; }
.lr-approved-composer { display: flex; gap: 7px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.lr-approved-composer input { min-width: 0; min-height: 44px; flex: 1; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; outline: 0; color: #fff; background: #060808; font-size: 14px; }
.lr-approved-composer button { width: 44px; height: 44px; border: 0; border-radius: 10px; color: #07110b; background: #f5f8f4; }
.lr-approved-composer button:disabled { opacity: 0.4; cursor: not-allowed; }
.lr-approved-error { padding: 8px 11px; color: #ffabb4; font-size: 12px; font-weight: 700; }

.lr-approved-viewers {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 14px;
}
.lr-approved-viewers__label { flex: none; color: #9da6a1; font-size: 11px; letter-spacing: 0.07em; }
.lr-approved-viewers__label strong { color: #fff; }
.lr-approved-viewers__strip { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; overflow-x: auto; }
.lr-approved-viewer { display: inline-flex; align-items: center; gap: 6px; color: #d7ddda; font-size: 12px; white-space: nowrap; }
.lr-approved-viewers__remaining,
.lr-approved-viewers__empty { color: #9da6a1; font-size: 12px; white-space: nowrap; }
.lr-approved-invite { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border-style: dashed; }
.lr-approved-invite .ic { width: 18px; height: 18px; }

.lr-approved-popover {
  position: fixed;
  z-index: 1700;
  max-height: min(480px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #f5f8f4;
  background: #111414;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.68);
}
.lr-approved-popover > header { min-height: 48px; display: flex; align-items: center; padding: 0 8px 0 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.lr-approved-popover > header strong { font-size: 14px; }
.lr-approved-popover > header button { width: 44px; height: 44px; margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 22px; }
.lr-approved-popover__body { max-height: 410px; overflow-y: auto; padding: 12px; }
.lr-approved-popover__body p { margin: 0 0 12px; color: #b7c0bb; font-size: 14px; line-height: 1.45; }
.lr-approved-popover__status { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lr-approved-option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.lr-approved-option-grid button,
.lr-approved-option-list button,
.lr-approved-people-list button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: #1b2020;
  font-weight: 800;
}
.lr-approved-option-list { display: grid; gap: 7px; }
.lr-approved-people-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.lr-approved-people-list li { min-height: 44px; display: flex; align-items: center; gap: 9px; color: #e9ecea; font-size: 14px; }
.lr-approved-people-list li > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-approved-people-list li > button { min-width: 72px; padding: 0 12px; }

.lr-approved-confirm-backdrop { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); }
.lr-approved-confirm { width: min(420px, 100%); padding: 20px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; color: #fff; background: #111414; box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72); }
.lr-approved-confirm h2 { margin: 0; font-size: 21px; }
.lr-approved-confirm p { margin: 10px 0 18px; color: #b7c0bb; font-size: 14px; line-height: 1.5; }
.lr-approved-confirm > div:last-child { display: flex; justify-content: flex-end; gap: 8px; }
.lr-approved-confirm button { min-width: 92px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px; color: #07110b; background: #f5f8f4; font-weight: 800; }
.lr-approved-confirm button.is-secondary { color: #fff; background: #1b2020; }
.lr-approved-confirm button.is-danger { color: #fff; border-color: #c93a4b; background: #a72536; }

@media (max-width: 1024px) {
  .lr-approved-middle { grid-template-columns: minmax(0, 1fr) 280px; }
  .lr-approved-chat { width: 280px; }
  .lr-approved-utility { padding-inline: 9px; }
}

@media (min-width: 761px) {
  .lr-approved-stage { min-height: 0; }
}

@media (max-width: 760px) {
  .liveroom.lr-approved { overflow-y: auto; }
  .lr-approved-shell { height: auto; min-height: 100%; overflow: visible; padding: 8px; }
  .lr-approved-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; }
  .lr-approved-iconbtn { grid-column: 1; grid-row: 1; }
  .lr-approved-header__spacer { grid-column: 2; grid-row: 1; }
  .lr-approved-leave { grid-column: 3; grid-row: 1; }
  .lr-approved-heading { width: 100%; grid-column: 1 / -1; grid-row: 2; }
  .lr-approved-heading h1 { max-width: 100%; font-size: 20px; white-space: normal; }
  .lr-approved-leave { flex: 0 0 auto; padding-inline: 10px; }
  .lr-approved-leave span { display: inline; }
  .lr-approved-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .lr-approved-media-controls { order: 1; }
  .lr-approved-utilities { width: 100%; order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 0; gap: 6px; }
  .lr-approved-utility { width: 100%; min-width: 0; padding-inline: 8px; overflow: hidden; }
  .lr-approved-utility small { overflow: hidden; text-overflow: ellipsis; }
  .lr-approved-utility strong { display: block; }
  .lr-approved-middle { display: contents; }
  .lr-approved-stage-column { width: 100%; min-height: min(68vh, 620px); order: 10; }
  .lr-approved-stage { min-height: min(68vh, 620px); }
  .lr-approved-grid { min-height: 0; }
  .lr-approved-grid--1 { grid-template-columns: minmax(180px, min(100%, 390px)); }
  .lr-approved-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr-approved-grid--5,
  .lr-approved-grid--6,
  .lr-approved-grid--7,
  .lr-approved-grid--8,
  .lr-approved-grid--9,
  .lr-approved-grid--10 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .lr-approved-chat { width: 100%; min-height: 360px; max-height: 52vh; order: 12; }
  .lr-approved-viewers { order: 11; }
  .lr-approved-viewer > span:last-child { display: inline; }
  .lr-approved-stage-prompt { align-items: flex-start; flex-direction: column; }
  .lr-approved-stage-prompt > div { width: 100%; }
  .lr-approved-stage-prompt button { flex: 1; }
}

@media (max-width: 390px) {
  .lr-approved-shell { width: 100%; }
  .lr-approved-header { gap: 8px; padding-inline: 9px; }
  .lr-approved-heading h1 { max-width: 100%; }
  .lr-approved-heading > div > span:last-child { display: none; }
  .lr-approved-utility { padding-inline: 8px; }
  .lr-approved-utility .ic { display: none; }
  .lr-approved-utility small { font-size: 11px; }
  .lr-approved-stage { padding: 7px; }
  .lr-approved-stage-column,
  .lr-approved-stage { min-height: min(64vh, 560px); }
  .lr-approved-popover { max-width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .lr-approved *,
  .lr-approved *::before,
  .lr-approved *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
