:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b15;
  --surface: #0d1a2b;
  --surface-2: #13243a;
  --surface-3: #1a304c;
  --text: #f2f7ff;
  --muted: #91a7c4;
  --faint: #607894;
  --border: rgba(160, 195, 235, 0.14);
  --border-strong: rgba(160, 205, 245, 0.28);
  --accent: #4dd8ff;
  --accent-2: #7c8cff;
  --accent-soft: rgba(77, 216, 255, 0.13);
  --success: #3ddc97;
  --danger: #ff7285;
  --danger-soft: rgba(255, 114, 133, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --glow: 0 0 0 1px rgba(77, 216, 255, 0.24), 0 18px 50px rgba(20, 140, 190, 0.16);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #edf5fb;
  --bg-deep: #dfeaf4;
  --surface: #ffffff;
  --surface-2: #f4f9fd;
  --surface-3: #e4eef8;
  --text: #102338;
  --muted: #5a718b;
  --faint: #8296aa;
  --border: rgba(26, 63, 99, 0.12);
  --border-strong: rgba(26, 63, 99, 0.24);
  --accent: #007ea8;
  --accent-2: #5069e8;
  --accent-soft: rgba(0, 126, 168, 0.09);
  --success: #078b5c;
  --danger: #cf3151;
  --danger-soft: rgba(207, 49, 81, 0.08);
  --shadow: 0 24px 80px rgba(26, 66, 100, 0.16);
  --glow: 0 0 0 1px rgba(0, 126, 168, 0.16), 0 18px 50px rgba(0, 80, 120, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1050px 680px at 8% -10%, rgba(77, 216, 255, 0.16), transparent 64%),
    radial-gradient(880px 650px at 98% 6%, rgba(124, 140, 255, 0.18), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.in-room {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#siteHeader {
  position: relative;
  z-index: 20;
  width: min(1240px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.in-room #siteHeader {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand > span:nth-child(2) > span {
  color: var(--accent);
}

.brand .v2 {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(77, 216, 255, 0.22);
}

.brand-mark::before {
  content: "";
  width: 16px;
  height: 13px;
  border: 2px solid #05101d;
  border-radius: 5px;
  opacity: 0.86;
}

.brand-mark span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 0;
  border-left: 7px solid #05101d;
  transform: rotate(-8deg);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.ghost:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.icon-only {
  width: 40px;
  padding: 0;
}

.theme-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 48%, var(--surface-3) 50%);
  border: 1px solid var(--border-strong);
}

main {
  position: relative;
  z-index: 1;
}

.view {
  width: 100%;
}

#landingView {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: 58px;
  align-items: center;
  min-height: min(660px, calc(100vh - 170px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow b {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.live-dot,
.ping {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--success);
  border-radius: 50%;
  animation: pulse 2.3s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  75%, 100% { transform: scale(1.65); opacity: 0; }
}

.hero-copy h1 {
  max-width: 700px;
  margin: 20px 0 18px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 780;
}

.hero-copy h1 span {
  display: block;
  padding-bottom: 4px;
  background: linear-gradient(100deg, var(--accent) 4%, #a5b1ff 56%, #ffd1f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 610px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.entry-form {
  max-width: 620px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 93%, transparent), color-mix(in srgb, var(--surface-2) 94%, transparent));
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.field input,
.field select,
.join-inline input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.join-inline input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.field input::placeholder,
.join-inline input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

.entry-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101d;
  box-shadow: 0 12px 28px rgba(77, 216, 255, 0.18);
}

[data-theme="light"] .btn.primary {
  color: #ffffff;
}

.btn.secondary {
  border-color: var(--border);
  background: var(--surface-2);
}

.btn.secondary:hover,
.btn.subtle:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn.danger {
  border-color: color-mix(in srgb, var(--danger) 34%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.btn.danger.subtle {
  border-color: transparent;
  background: transparent;
}

.or {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.join-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.join-inline input {
  min-height: 45px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 730;
}

.form-error {
  margin: 11px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.form-error.inline {
  margin-top: 7px;
}

.resume-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chips span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-width: 0;
  perspective: 1200px;
}

.mock-window {
  position: relative;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: linear-gradient(155deg, var(--surface-2), var(--bg-deep));
  box-shadow: var(--shadow), 0 0 90px rgba(77, 216, 255, 0.1);
  transform: rotateY(-4deg) rotateX(2deg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-2deg) rotateX(1deg) translateY(-8px); }
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 12px;
}

.mock-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-top span:first-child {
  background: var(--danger);
}

.mock-top span:nth-child(2) {
  background: #f2ba52;
}

.mock-top span:nth-child(3) {
  background: var(--success);
}

.mock-top b {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 360px;
}

.mock-tile {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 20%, rgba(77, 216, 255, 0.2), transparent 45%),
    linear-gradient(150deg, #1b3a55, #0b1828);
}

[data-theme="light"] .mock-tile {
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 126, 168, 0.16), transparent 45%),
    linear-gradient(150deg, #ddecfa, #b9d2e7);
}

.mock-main {
  grid-row: span 2;
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(145deg, #2b587b, #142c45);
  color: #eaf8ff;
  font-size: 30px;
  font-weight: 720;
}

.mock-avatar.alt {
  background: linear-gradient(145deg, #634e8a, #2b2449);
}

.mock-avatar.third {
  background: linear-gradient(145deg, #2f7161, #183c36);
}

.mock-name {
  position: absolute;
  left: 10px;
  bottom: 9px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(3, 10, 20, 0.58);
  color: #f6fbff;
  font-size: 10px;
  font-weight: 640;
}

.mock-mic {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

.mock-add {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  color: var(--muted);
}

.mock-add span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.mock-add b {
  font-size: 10px;
  font-weight: 650;
}

.mock-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.mock-bar i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-3);
}

.mock-bar i.end {
  width: 42px;
  background: var(--danger-soft);
}

.hero-note {
  position: absolute;
  right: 18px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
}

.hero-note .icon {
  color: var(--accent);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 70px;
}

.feature-band article {
  padding: 24px;
  border-top: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--border) 0, transparent 1px);
}

.feature-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.feature-band h2 {
  margin: 9px 0 7px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.feature-band p,
.use-cases p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.use-cases {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  margin-top: 54px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.use-cases h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.use-cases ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-cases li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.use-cases li .icon {
  color: var(--success);
}

.centered-view {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.waiting-card {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--surface), var(--bg-deep));
  box-shadow: var(--shadow);
  text-align: center;
}

.waiting-pulse {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  animation: breathe 2.4s ease-in-out infinite;
}

.waiting-pulse .icon {
  width: 28px;
  height: 28px;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 216, 255, 0); }
  50% { box-shadow: 0 0 0 12px rgba(77, 216, 255, 0.04); }
}

.waiting-card h1 {
  margin: 12px 0 8px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.waiting-card p {
  margin: 0 auto 24px;
  max-width: 380px;
  color: var(--muted);
}

.waiting-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.room-view {
  height: var(--app-height, 100vh);
  min-height: 0;
  padding-top: env(safe-area-inset-top);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(77, 216, 255, 0.09), transparent 60%),
    var(--bg-deep);
}

.room-top {
  position: relative;
  z-index: 8;
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.room-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.room-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 720;
}

.room-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.room-code .icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.room-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.name-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 190px;
  min-height: 20px;
  margin-top: 2px;
  padding: 1px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.name-edit-btn:hover,
.name-edit-btn:focus-visible {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.name-edit-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-edit-btn .icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.12);
}

.connection-status.offline .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 114, 133, 0.12);
}

.connection-status.reconnecting .status-dot {
  background: #f2ba52;
  box-shadow: 0 0 0 3px rgba(242, 186, 82, 0.12);
  animation: blink 1.1s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.room-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.room-top-actions .btn {
  min-height: 38px;
  padding: 7px 11px;
}

.room-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  position: relative;
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.video-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  align-content: center;
}

.video-grid[data-count="1"] {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.video-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid[data-count="3"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid[data-count="3"] .tile:first-child {
  grid-row: span 2;
}

.video-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid[data-count="5"],
.video-grid[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 30%, rgba(77, 216, 255, 0.11), transparent 48%),
    linear-gradient(150deg, #102337, #081320);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .tile {
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 126, 168, 0.1), transparent 48%),
    linear-gradient(150deg, #dcecf9, #c4d9ea);
}

.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  opacity: 1;
  transition: opacity 180ms ease;
}

.tile.screen {
  background: #040b15;
}

.tile.screen video {
  object-fit: contain;
}

.tile.mirror video {
  transform: scaleX(-1);
}

.tile.cam-off video {
  opacity: 0;
}

.tile-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 216, 255, 0.18), transparent 45%),
    linear-gradient(150deg, #15304a, #0b1727);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-theme="light"] .tile-avatar {
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 126, 168, 0.16), transparent 45%),
    linear-gradient(150deg, #e2effa, #bfd5e8);
}

.tile.cam-off .tile-avatar {
  opacity: 1;
  transform: scale(1);
}

.tile-avatar span {
  display: grid;
  place-items: center;
  width: clamp(52px, 9vw, 96px);
  height: clamp(52px, 9vw, 96px);
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: linear-gradient(145deg, #2a5375, #132a40);
  color: #f5fbff;
  font-size: clamp(20px, 3.3vw, 36px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

[data-theme="light"] .tile-avatar span {
  border-color: rgba(20, 60, 95, 0.12);
  background: linear-gradient(145deg, #c7def0, #9fc2dd);
  color: #16334d;
}

.tile-top {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(4, 12, 23, 0.63);
  color: #e7f4ff;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tile-badge.host {
  border-color: rgba(77, 216, 255, 0.35);
  color: var(--accent);
}

.tile-badge.hand {
  border-color: rgba(242, 186, 82, 0.4);
  color: #f2ba52;
}

.tile-badge.screen {
  border-color: rgba(61, 220, 151, 0.4);
  color: var(--success);
}

.tile-signal {
  width: 8px;
  height: 8px;
  margin: 4px;
  border-radius: 50%;
  background: #f2ba52;
  box-shadow: 0 0 0 3px rgba(242, 186, 82, 0.13);
}

.tile.connected .tile-signal {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.13);
}

.tile-name {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #f5fbff;
  font-size: 11px;
  font-weight: 680;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.tile-name span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tile-name small {
  color: rgba(235, 247, 255, 0.7);
  font-size: 9px;
  font-weight: 550;
}

.tile-flags {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.tile-flag {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: rgba(4, 12, 23, 0.66);
  color: #e7f4ff;
}

.tile-flag .icon {
  width: 12px;
  height: 12px;
}

.tile-flag.off {
  color: var(--danger);
}

.tile-flag.hand {
  color: #f2ba52;
}

.tile-flag.screen {
  color: var(--success);
}

.tile.self {
  border-color: rgba(77, 216, 255, 0.3);
}

.tile.flash {
  animation: tileFlash 1.2s ease;
}

@keyframes tileFlash {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }
  30% { box-shadow: 0 0 0 3px var(--accent), 0 0 30px rgba(77, 216, 255, 0.3); }
}

.reaction-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

.float-reaction {
  position: absolute;
  right: 8%;
  bottom: 70px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
  box-shadow: var(--shadow);
  animation: floatUp 3.2s ease-out forwards;
}

.float-reaction .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

@keyframes floatUp {
  0% { transform: translateY(16px) scale(0.9); opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-170px) scale(1.02); opacity: 0; }
}

.request-bar {
  position: absolute;
  z-index: 7;
  top: 24px;
  left: 24px;
  width: min(360px, calc(100% - 48px));
  max-height: 45%;
  display: flex;
  flex-direction: column;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.request-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
}

.request-heading b {
  color: var(--text);
  font-size: 12px;
}

.request-heading span:last-child {
  margin-left: auto;
}

.request-list {
  display: grid;
  gap: 7px;
  overflow: auto;
}

.request-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.request-item .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.request-item strong {
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.request-item .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}

.stage-notice {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 5;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.sidebar {
  flex: 0 0 356px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(18px);
}

.sidebar-tabs {
  flex: 0 0 52px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 7px 8px 0;
  border-bottom: 1px solid var(--border);
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.tab .icon {
  width: 16px;
  height: 16px;
}

.tab.active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.tab .count,
.tab .unread {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
}

.tab .unread {
  background: var(--danger);
  color: #fff;
}

.close-panel {
  display: none;
  margin-left: auto;
}

.panel {
  flex: 1 1 auto;
  min-height: 0;
}

.chat-panel {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 13px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.chat-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.message {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.message-meta time {
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
}

.message.self .message-meta {
  color: var(--accent);
}

.message-bubble {
  max-width: 94%;
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.self .message-bubble {
  justify-self: end;
  border-color: rgba(77, 216, 255, 0.2);
  border-radius: 12px 4px 12px 12px;
  background: var(--accent-soft);
}

.message-notice {
  margin: 9px 0;
  padding: 7px 9px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

.chat-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.chat-form textarea {
  min-height: 40px;
  max-height: 120px;
  padding: 10px 12px;
  resize: none;
  border-radius: 10px;
  font-size: 13px;
}

.chat-form .btn {
  width: 40px;
  min-height: 40px;
  align-self: end;
  border-radius: 10px;
}

.people-panel {
  overflow-y: auto;
  padding: 12px;
}

.participant-list {
  display: grid;
  gap: 6px;
}

.participant {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.participant:hover {
  border-color: var(--border);
  background: var(--surface-2);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.participant-main {
  min-width: 0;
}

.participant-name {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.participant-name .host-badge {
  padding: 1px 4px;
  border: 1px solid rgba(77, 216, 255, 0.3);
  border-radius: 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.participant-sub {
  display: flex;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
}

.participant-flags {
  display: flex;
  align-items: center;
  gap: 3px;
}

.flag {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
}

.flag .icon {
  width: 13px;
  height: 13px;
}

.flag.on {
  color: var(--text);
}

.flag.off {
  color: var(--danger);
}

.flag.hand {
  color: #f2ba52;
}

button.flag {
  cursor: pointer;
}

button.flag:hover {
  border-color: var(--border);
  background: var(--surface-3);
}

.host-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.host-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  font-size: 11px;
}

.host-panel-head .host-badge {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.switch-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.switch-row .icon {
  width: 15px;
  height: 15px;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row > i {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 19px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 160ms ease, border-color 160ms ease;
}

.switch-row > i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.switch-row input:checked + i {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.switch-row input:checked + i::after {
  transform: translateX(15px);
  background: var(--accent);
}

.switch-row.compact {
  min-height: 38px;
  color: var(--text);
}

.host-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.host-actions .btn {
  min-height: 36px;
  padding: 7px 8px;
  font-size: 10px;
}

.room-controls {
  flex: 0 0 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.control-group.end {
  justify-content: flex-end;
}

.control {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 62px;
  min-height: 54px;
  padding: 6px 8px 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 140ms ease;
}

.control:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.control .icon {
  width: 20px;
  height: 20px;
}

.control.active {
  border-color: rgba(77, 216, 255, 0.26);
  background: var(--accent-soft);
  color: var(--accent);
}

.control.off {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.control.raised {
  border-color: rgba(242, 186, 82, 0.34);
  background: rgba(242, 186, 82, 0.09);
  color: #f2ba52;
}

.control.leave {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.reaction-wrap {
  position: relative;
}

.reaction-menu {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 12;
  width: 172px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.reaction-menu button {
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 640;
  cursor: pointer;
}

.reaction-menu button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.mobile-only {
  display: none;
}

.toasts {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 92px;
  display: grid;
  gap: 7px;
  width: min(350px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 580;
  animation: toastIn 220ms ease both;
  backdrop-filter: blur(16px);
}

.toast.error {
  border-color: color-mix(in srgb, var(--danger) 42%, transparent);
  color: var(--danger);
}

.toast.success {
  border-color: color-mix(in srgb, var(--success) 42%, transparent);
}

.toast.leaving {
  animation: toastOut 220ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

.dialog {
  width: min(480px, calc(100% - 30px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(2, 7, 14, 0.68);
  backdrop-filter: blur(7px);
}

.dialog-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 42px);
}

.dialog-card.small {
  padding-bottom: 2px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
}

.dialog-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.dialog-body {
  display: grid;
  gap: 13px;
  padding: 4px 20px 18px;
  overflow-y: auto;
}

.dialog-text {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 13px 20px 18px;
  border-top: 1px solid var(--border);
}

.dialog .field {
  text-transform: none;
  letter-spacing: normal;
  font-size: 12px;
}

.dialog .field select {
  min-height: 43px;
}

body.embed #siteHeader,
body.embed .hero-visual,
body.embed .feature-band,
body.embed .use-cases,
body.embed .chips,
body.embed .lead {
  display: none;
}

body.embed #landingView {
  padding: 18px;
}

body.embed .landing-hero {
  display: block;
  min-height: 0;
}

body.embed .hero-copy h1 {
  margin-top: 10px;
  font-size: clamp(30px, 7vw, 46px);
}

body.embed .entry-form {
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
    gap: 34px;
  }

  .mock-grid {
    height: 310px;
  }

  .sidebar {
    flex-basis: 330px;
  }

  .control {
    min-width: 55px;
  }
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .feature-band {
    margin-top: 50px;
  }

  .use-cases {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: absolute;
    z-index: 15;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 94vw);
    transform: translateX(103%);
    transition: transform 220ms ease;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .close-panel {
    display: inline-flex;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .video-grid[data-count="5"],
  .video-grid[data-count="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-only {
    display: inline-flex;
  }
}

@media (max-width: 700px) {
  #siteHeader {
    width: calc(100% - 26px);
    height: 66px;
  }

  .header-actions .ghost:not(#btnInstall):not(#btnTheme) {
    display: none;
  }

  #landingView {
    width: calc(100% - 26px);
    padding-top: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .lead {
    font-size: 16px;
  }

  .entry-form {
    padding: 13px;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }

  .or {
    display: none;
  }

  .join-inline {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feature-band {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-band article {
    padding: 18px 0;
  }

  .use-cases {
    padding: 22px;
  }

  .mock-grid {
    height: 270px;
  }

  .hero-note {
    right: 8px;
    bottom: -18px;
    font-size: 10px;
  }

  .room-top {
    flex-basis: 58px;
    padding: 0 9px;
  }

  .room-identity .brand-mark {
    display: none;
  }

  .room-top-actions .btn span {
    display: none;
  }

  .room-top-actions .btn {
    width: 38px;
    padding: 0;
  }

  .room-top-actions .btn.danger {
    display: none;
  }

  .name-edit-btn {
    max-width: 105px;
  }

  .stage {
    padding: 8px;
  }

  .video-grid {
    gap: 7px;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
  }

  .video-grid[data-count="2"],
  .video-grid[data-count="3"],
  .video-grid[data-count="4"],
  .video-grid[data-count="5"],
  .video-grid[data-count="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid[data-count="3"] .tile:first-child {
    grid-row: auto;
  }

  .video-grid[data-count="1"] {
    grid-template-columns: 1fr;
  }

  .tile {
    border-radius: 12px;
  }

  .tile video {
    object-fit: contain;
  }

  .tile-name {
    left: 7px;
    right: 7px;
    bottom: 7px;
    font-size: 10px;
  }

  .tile-top {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .tile-badge {
    padding: 2px 4px;
    font-size: 8px;
  }

  .room-controls {
    flex-basis: 70px;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    gap: 4px;
    overflow: hidden;
  }

  .control-group {
    flex: 1 1 0;
    gap: 3px;
    min-width: 0;
  }

  .control-group.end {
    flex: 0 0 87px;
    min-width: 87px;
  }

  .control {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 5px 2px;
    border-radius: 10px;
  }

  .reaction-wrap {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
  }

  .reaction-wrap .control {
    width: 100%;
  }

  .control-group.end .control {
    flex: 0 0 42px;
  }

  .control span {
    display: none;
  }

  .control .icon {
    width: 21px;
    height: 21px;
  }

  .control-group.end .control:not(.leave):not(#btnChatMobile) {
    display: none;
  }

  .request-bar {
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: 42%;
  }

  .toasts {
    right: 10px;
    bottom: 82px;
    width: calc(100% - 20px);
  }

  .waiting-card {
    padding: 30px 20px;
  }

  .waiting-card h1 {
    font-size: 29px;
  }
}

@media (max-width: 420px) {
  .hero-visual {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    padding-bottom: 30px;
  }

  .video-grid[data-count="2"],
  .video-grid[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .host-actions {
    grid-template-columns: 1fr;
  }
}

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