@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --surface: #0f0f10;
  --surface-2: #181819;
  --surface-3: #232325;
  --text: #f5f5f1;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --red: #e50914;
  --red-hi: #ff1f2b;
  --red-deep: #8b0a12;
  --red-glow: #e5091473;
  --ok: #46d369;
  --warn: #f5b40a;
  --bad: #ff4d57;
  --line: #ffffff17;
  --line-2: #ffffff29;
  --shadow: 0 24px 60px #0009;
  --r: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px / 1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3 {
  margin: 0;
}

h2 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

a {
  color: inherit;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.error {
  color: var(--bad);
  margin: 8px 0 0;
  font-size: 14px;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline-offset: 2px;
  outline: 2px solid #fff;
}

.backdrop {
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 115%, #e5091447, transparent 70%), radial-gradient(60% 40% at 50% -10%, #ffffff0d, transparent 70%), var(--bg);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.backdrop:after {
  content: "";
  background: radial-gradient(120% 90%, #0000 55%, #000000bf);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.wordmark {
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
  user-select: none;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.wordmark.small {
  letter-spacing: .05em;
  margin: 0 6px 0 2px;
  font-size: 20px;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  background: #141415f5;
}

.ic {
  width: 20px;
  height: 20px;
  display: block;
}

.btn, .icon-btn, .play-btn, .send {
  cursor: pointer;
  transition: transform .2s var(--ease), background .18s, box-shadow .18s, opacity .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.btn {
  color: #fff;
  background: #6d6d6e66;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
}

.btn:hover {
  background: #6d6d6e99;
}

.btn:active, .icon-btn:active, .play-btn:active, .send:active {
  transform: scale(.95);
}

.btn.primary {
  background: var(--red);
}

.btn.primary:hover {
  background: var(--red-hi);
  box-shadow: 0 8px 28px var(--red-glow);
}

.btn.big {
  width: 100%;
  padding: 14px 22px;
  font-size: 17px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  color: var(--text);
  background: none;
  border-radius: 50%;
  flex: none;
}

.icon-btn:hover {
  background: #ffffff1a;
}

.icon-btn.on {
  color: var(--ok);
}

.icon-btn.off {
  color: var(--bad);
}

.icon-btn.active {
  background: #ffffff24;
}

.icon-btn[disabled] {
  opacity: .35;
  pointer-events: none;
}

input:not([type]), input[type="text"], select {
  background: #161617e6;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  outline: none;
  width: 100%;
  padding: 12px 14px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

input:not([type])::placeholder {
  color: #8c8c8c;
}

input:not([type]):focus, select:focus {
  background: #1e1e1ff2;
  border-color: #fff;
}

select {
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px), calc(100% - 13px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 34px;
}

select option {
  background: #1b1b1c;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.home {
  min-height: 100vh;
  flex-direction: column;
  min-height: 100dvh;
  padding: 26px clamp(16px, 5vw, 64px) 40px;
  display: flex;
}

.home-top {
  animation: fade .8s var(--ease) both;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.home-apps {
  background: #ffffff14;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
}

.home-apps:hover {
  background: #ffffff29;
}

.in-app .home-apps, .tv .home-apps {
  display: none;
}

.home {
  position: relative;
  overflow-x: clip;
}

.home-top {
  z-index: 3;
  position: relative;
}

.hero {
  text-align: center;
  flex-direction: column;
  flex: 1;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(10px, 3vh, 40px) 0 300px;
  display: flex;
  position: relative;
}

.hero-scene {
  z-index: 1;
  pointer-events: none;
  width: 100vw;
  position: absolute;
  top: -96px;
  bottom: 0;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(#000 94%, #0000);
  mask-image: linear-gradient(#000 94%, #0000);
}

.hero-copy {
  z-index: 2;
  width: 100%;
  animation: rise .9s var(--ease) both;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  display: flex;
  position: relative;
}

.hall {
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  position: absolute;
  top: -96px;
  bottom: 0;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
}

.sconce {
  background: linear-gradient(#ffe3b0, #d08433);
  border-radius: 3px 3px 12px 12px;
  width: 24px;
  height: 12px;
  position: absolute;
  box-shadow: 0 0 12px 3px #ffaa504d;
}

.sconce:before {
  content: "";
  background: radial-gradient(50% 100% at 50% 100%, #ffa85a1a, #0000 72%);
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.sconce:after {
  content: "";
  background: radial-gradient(50% 100% at 50% 0, #ffa85a0d, #0000 72%);
  width: 110px;
  height: 120px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.sconce.l1 {
  top: 210px;
  left: 3vw;
}

.sconce.r1 {
  top: 210px;
  right: 3vw;
}

.tv .hall, .casting .hall, .tv .cine-frame:before, .casting .cine-frame:before {
  display: none;
}

.casting .cine-frame {
  width: 100%;
  margin-top: 0;
}

@media (max-width: 640px) {
  .cine-frame:before {
    top: -14%;
    bottom: -10%;
    left: -4%;
    right: -4%;
  }

  .sconce {
    display: none;
  }
}

.cine-frame {
  width: min(1060px, 100%);
  margin-top: 22px;
  position: relative;
}

.cine-frame .cine-screen {
  width: 100%;
}

.cine-frame:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  filter: blur(64px);
  will-change: transform;
  background: radial-gradient(22% 52% at 9% 40%, #e50914d9, #0000 70%), radial-gradient(22% 52% at 91% 60%, #ff80309e, #0000 70%), radial-gradient(42% 26% at 60% 12%, #ffb26066, #0000 70%), radial-gradient(42% 24% at 36% 90%, #be101c80, #0000 70%);
  animation: 22s ease-in-out infinite alternate film-drift, 26s step-end infinite glow-scenes;
  position: absolute;
  top: -12%;
  bottom: -16%;
  left: -9%;
  right: -9%;
}

@keyframes glow-scenes {
  0% {
    filter: blur(64px) hue-rotate() brightness();
  }

  22% {
    filter: blur(64px) hue-rotate(8deg) brightness(1.1);
  }

  41% {
    filter: blur(64px) hue-rotate(-12deg) brightness(.85);
  }

  58% {
    filter: blur(64px) hue-rotate(4deg) saturate(.55) brightness(.7);
  }

  77% {
    filter: blur(64px) hue-rotate(6deg) brightness(1.05);
  }
}

.cine-screen {
  color: #fff;
  background: #0b0a0c;
  border-radius: 26px;
  width: min(1060px, 100%);
  padding: clamp(32px, 4.5vw, 64px) clamp(22px, 5vw, 84px) clamp(28px, 3.9vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff14, 0 30px 90px -30px #000000e6;
}

.cine-screen:before {
  content: "";
  pointer-events: none;
  opacity: .85;
  filter: blur(26px);
  background: radial-gradient(34% 42% at 22% 34%, #e5091499, #0000 70%), radial-gradient(30% 40% at 80% 64%, #ff70285c, #0000 70%), radial-gradient(38% 46% at 62% 18%, #ffb26038, #0000 70%), radial-gradient(30% 38% at 36% 86%, #be101c52, #0000 70%);
  animation: 22s ease-in-out infinite alternate film-drift, 26s step-end infinite film-scenes;
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -25%;
  right: -25%;
}

@keyframes film-scenes {
  0% {
    filter: blur(26px) hue-rotate() brightness();
  }

  22% {
    filter: blur(26px) hue-rotate(8deg) brightness(1.1);
  }

  41% {
    filter: blur(26px) hue-rotate(-12deg) brightness(.85);
  }

  58% {
    filter: blur(26px) hue-rotate(4deg) saturate(.55) brightness(.7);
  }

  77% {
    filter: blur(26px) hue-rotate(6deg) brightness(1.05);
  }
}

.cine-screen:after {
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(62% 56% at 50% 52%, #0606089e, #06060840 70%, #0000), radial-gradient(130% 130%, #0000 58%, #0000008c), radial-gradient(46% 36% at 50% 108%, #ffecdc1f, #0000 70%);
  animation: 7s step-end infinite cine-flicker;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

@keyframes film-drift {
  0% {
    transform: translate(-6%, -4%)rotate(0)scale(1);
  }

  50% {
    transform: translate(5%, 3%)rotate(8deg)scale(1.08);
  }

  100% {
    transform: translate(-2%, 6%)rotate(-6deg)scale(1.02);
  }
}

@keyframes cine-flicker {
  0%, 100% {
    opacity: 1;
  }

  31% {
    opacity: .86;
  }

  32% {
    opacity: 1;
  }

  67% {
    opacity: .92;
  }

  68% {
    opacity: 1;
  }
}

.cine-screen > * {
  z-index: 1;
  position: relative;
}

.cine-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a9a4a0;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  display: block;
}

.cine-eyebrow[hidden], .cine-eyebrow i {
  display: none;
}

@keyframes rec {
  50% {
    opacity: .35;
  }
}

.hero-title {
  font-family: var(--font);
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 30px #00000080;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
}

.hero-title em {
  color: var(--red);
  font-style: normal;
}

.lead {
  color: #d6d1cd;
  text-wrap: pretty;
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.5;
}

.home-card {
  text-align: left;
  backdrop-filter: blur(18px);
  background: #100f11b8;
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  padding: 12px;
  display: grid;
  box-shadow: 0 24px 70px #0009, inset 0 1px #ffffff0d;
}

.field {
  gap: 6px;
  display: grid;
}

.field > span {
  color: var(--muted);
  font-size: 13px;
}

.cine-screen .home-card {
  max-width: 620px;
  box-shadow: none;
  backdrop-filter: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 40px auto 0;
  padding: 0;
}

.home-card input:not([type]) {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  height: 56px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
}

.home-card input:not([type])::placeholder {
  color: #8f8a86;
  font-weight: 400;
}

.home-card input:not([type]):focus {
  background: #ffffff17;
  border-color: #ffffff80;
  box-shadow: 0 0 0 3px #ffffff14;
}

.cine-screen .name-field input:not([type]), .cine-screen .code-form {
  background: #08080a99;
  border-color: #ffffff2e;
}

.cine-screen .name-field input:not([type]):focus, .cine-screen .code-form:focus-within {
  background: #08080abd;
  border-color: #ffffff80;
}

.name-field {
  flex: 260px;
  min-width: 0;
  display: block;
  position: relative;
}

.name-field > span:first-child {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.name-av {
  color: #fff;
  pointer-events: none;
  background: #ffffff14;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  font-size: 14px;
  font-weight: 700;
  transition: background .25s;
  display: grid;
  position: absolute;
  top: 50%;
  left: 10px;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.name-av .ic {
  color: #8f8a86;
  width: 18px;
  height: 18px;
}

.name-av.filled {
  box-shadow: 0 4px 14px #0006;
}

.cine-screen .name-av.filled {
  box-shadow: inset 0 0 0 1px #ffffff2e;
  background: #ffffff24 !important;
}

.name-field input:not([type]) {
  padding-left: 58px;
}

.home-actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.home-card .btn.big {
  letter-spacing: -.01em;
  white-space: nowrap;
  border-radius: 14px;
  flex: none;
  gap: 9px;
  width: auto;
  height: 56px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  transition: background .18s, color .18s;
}

.home-card .btn.big .ic {
  width: 20px;
  height: 20px;
}

.home-card .btn.big.primary {
  background: var(--red);
  box-shadow: 0 6px 16px #00000073;
}

.home-card .btn.big.primary:hover {
  background: var(--red-hi);
}

.home-card .btn.big:not(.primary) {
  background: #ffffff14;
}

.home-card .btn.big:not(.primary):hover {
  background: #ffffff24;
}

.cine-screen .home-card:not(.invited) #btn-create .ic {
  display: none;
}

.cine-screen .home-card:not(.invited) #btn-create:after {
  content: "";
  background: currentColor;
  flex: none;
  width: 18px;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 641px) {
  .cine-screen .home-card:not(.invited) .home-actions {
    background: #08080a99;
    border: 1px solid #ffffff2e;
    border-radius: 14px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 5px 5px 5px 0;
    transition: border-color .18s, background .18s, box-shadow .18s;
  }

  .cine-screen .home-card:not(.invited) .home-actions:focus-within {
    background: #08080abd;
    border-color: #ffffff80;
    box-shadow: 0 0 0 3px #ffffff14;
  }

  .cine-screen .home-card:not(.invited) .home-actions.invalid {
    border-color: #ff4d57;
    box-shadow: 0 0 0 3px #ff4d5729;
  }

  .cine-screen .home-card:not(.invited) .home-actions .name-field input:not([type]), .cine-screen .home-card:not(.invited) .home-actions .name-field input:not([type]):focus {
    height: 44px;
    box-shadow: none;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .cine-screen .home-card:not(.invited) .home-actions .btn.big {
    height: 44px;
    box-shadow: none;
    border-radius: 10px;
    padding: 0 16px;
  }
}

.code-row {
  justify-items: center;
  gap: 12px;
  display: grid;
}

.code-toggle {
  font: 500 14px / 1.3 var(--font);
  color: #a9a4a0;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: underline;
}

.code-toggle:hover {
  color: #fff;
}

.home-card.code-open .code-toggle, .home-card:not(.code-open) .code-form {
  display: none;
}

.code-form {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 5px 5px 5px 0;
  transition: border-color .18s, background .18s, box-shadow .18s;
  display: flex;
}

.code-form:focus-within {
  background: #ffffff17;
  border-color: #ffffff80;
  box-shadow: 0 0 0 3px #ffffff14;
}

.home-card .code-form input:not([type]) {
  background: none;
  border: 0;
  border-radius: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px 0 16px;
}

.home-card .code-form input:not([type]):focus {
  box-shadow: none;
  background: none;
}

.home-card .code-form .btn {
  letter-spacing: -.01em;
  color: #d6d1cd;
  background: #ffffff1a;
  border-radius: 9px;
  flex: none;
  gap: 6px;
  height: 44px;
  padding: 0 12px 0 16px;
  font-size: 16px;
  font-weight: 600;
  transition: background .18s, color .18s;
}

.home-card .code-form .btn .ic {
  width: 18px;
  height: 18px;
}

.home-card .code-form .btn:hover {
  color: #fff;
  background: #ffffff29;
}

.code-form.has-text .btn, .code-form.has-text .btn:hover {
  background: var(--red);
  color: #fff;
}

.code-form.busy .btn {
  opacity: .7;
  pointer-events: none;
}

.home-card.has-code #btn-create, .home-card.has-code #btn-create:hover {
  box-shadow: none;
  color: #d6d1cd;
  background: #ffffff14;
}

.home-card .error {
  font: 500 14px / 1.4 var(--font);
  color: #ff4d57;
  text-align: left;
  margin: -4px 0 0;
  padding-left: 16px;
}

.home-actions > .error {
  flex: 0 0 100%;
}

.code-row > .error {
  justify-self: stretch;
}

.error-act {
  font: inherit;
  color: #fff;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.name-field.invalid input:not([type]), .code-form.invalid {
  border-color: #ff4d57;
  box-shadow: 0 0 0 3px #ff4d5729;
}

.home-card.has-error .home-note, .home-card.invited .code-row {
  display: none;
}

.home-card.invited #btn-join-invite {
  flex: 1;
}

.home-card .invite {
  border-radius: 14px;
}

.cine-screen .invite {
  color: #d6d1cd;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  padding: 12px 16px;
  font-size: 16px;
}

.cine-screen .invite .ic {
  color: #a9a4a0;
  width: 18px;
  height: 18px;
}

.cine-screen .invite b {
  color: #fff;
}

.cine-screen .home-card.invited .home-actions {
  flex-flow: column;
}

.cine-screen .home-card.invited .name-field {
  flex: none;
}

.cine-screen .home-card.invited #btn-join-invite {
  flex: none;
  width: 100%;
}

.cine-screen .home-card.invited #btn-create {
  height: auto;
  box-shadow: none;
  color: #a9a4a0;
  text-underline-offset: 3px;
  background: none;
  flex: none;
  align-self: center;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

.cine-screen .home-card.invited #btn-create:hover {
  color: #fff;
  background: none;
}

.cine-screen .home-card.invited #btn-create .ic {
  display: none;
}

.home-note {
  text-align: center;
  color: #a9a4a0;
  text-wrap: balance;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.home-card.invited .home-note, .casting .home-note, .tv .home-note {
  display: none;
}

.casting .home-card .code-form, .tv .code-form {
  display: flex;
}

.casting .code-toggle {
  display: none;
}

.home-lists {
  z-index: 2;
  gap: 36px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  position: relative;
}

.hero-copy .home-lists {
  text-align: left;
  gap: 0;
  max-width: 1060px;
  margin-top: 6px;
}

.hero-copy .recent {
  gap: 12px;
  animation: none;
}

.hero-copy .recent h2 {
  font-family: var(--font);
  letter-spacing: -.01em;
  color: #d9d6d3;
  padding-left: 2px;
  font-size: 17px;
  font-weight: 700;
}

.hero-copy .recent ul.tiles {
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  grid-template-columns: none;
  grid-auto-columns: minmax(190px, 232px);
  grid-auto-flow: column;
  gap: 14px;
  max-width: 100%;
  padding: 6px 2px 10px;
  overflow: auto hidden;
}

.hero-copy .recent ul.tiles::-webkit-scrollbar {
  display: none;
}

.hero-copy .recent ul.tiles > li {
  scroll-snap-align: start;
}

.hero-copy .tile-title {
  font-size: 14.5px;
}

.side-rooms .hero {
  width: 100%;
  max-width: none;
}

.side-rooms .hero-copy {
  grid-template: "left screen right"
  / minmax(330px, 1fr) minmax(0, 1000px) minmax(330px, 1fr);
  align-items: start;
  gap: 22px clamp(20px, 2.4vw, 44px);
  width: min(1820px, 100%);
  margin: 0 auto;
  display: grid;
}

.side-rooms .cine-frame {
  grid-area: screen;
  justify-self: center;
  width: 100%;
}

.side-rooms .hero-copy .home-lists {
  display: contents;
}

.side-rooms #recent {
  grid-area: left;
}

.side-rooms #recent-libs, .side-rooms #lib-promo {
  grid-area: right;
  margin-top: 0;
}

.side-rooms .hero-copy .recent {
  text-align: left;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  height: 0;
  min-height: 100%;
  display: flex;
}

.side-rooms #recent {
  justify-self: end;
}

.side-rooms #recent-libs, .side-rooms #lib-promo {
  justify-self: start;
}

.side-rooms .hero-copy .recent h2 {
  margin: 2px 0;
}

.side-rooms .hero-copy .recent ul {
  scrollbar-width: none;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  grid-auto-flow: row;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 2px;
  display: grid;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(#000 88%, #0000);
  mask-image: linear-gradient(#000 88%, #0000);
}

.side-rooms .hero-copy .recent ul::-webkit-scrollbar {
  display: none;
}

.has-rooms.side-rooms .hero-title {
  font-size: max(30px, min(3vw, 6.6vh, 56px));
}

.side-rooms .cine-screen {
  padding-left: clamp(20px, 2.6vw, 56px);
  padding-right: clamp(20px, 2.6vw, 56px);
}

.recent li.editing .r-name {
  min-width: 0;
}

.promo-card {
  color: var(--text);
  transition: border-color .2s, transform .25s var(--ease);
  background: radial-gradient(110% 100% at 0 0, #e5091438, #0000 60%), #141416b8;
  border: 1px dashed #ffffff29;
  border-radius: 16px;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
  display: grid;
}

.promo-card:hover {
  border-color: #ffffff59;
  transform: translateY(-2px);
}

.promo-icon {
  background: linear-gradient(150deg, #e50914, #5a0006);
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.promo-card b {
  font-size: 15.5px;
}

.promo-card span:not(.promo-icon) {
  color: #a9a9ae;
  font-size: 13.5px;
  line-height: 1.45;
}

.promo-card em {
  color: #fff;
  font-size: 13.5px;
  font-style: normal;
  font-weight: 600;
}

.has-rooms .cine-screen {
  padding-top: clamp(26px, 3.4vw, 48px);
  padding-bottom: clamp(24px, 3vw, 44px);
}

.has-rooms .cine-eyebrow {
  margin-bottom: 12px;
}

.has-rooms .hero-title {
  font-size: clamp(34px, 4vw, 56px);
}

.has-rooms .cine-screen .home-card {
  margin-top: 28px;
}

.has-rooms .lead {
  margin-top: 12px;
}

.has-rooms .hero-copy {
  gap: 20px;
}

@media (min-width: 641px) and (max-height: 820px) {
  .hero {
    padding-top: 8px;
  }

  .cine-screen, .has-rooms .cine-screen {
    padding: 24px clamp(22px, 4vw, 64px) 26px;
  }

  .cine-eyebrow {
    margin-bottom: 10px;
  }

  .hero-title, .has-rooms .hero-title {
    font-size: clamp(30px, 6.4vh, 56px);
  }

  .cine-screen .home-card, .has-rooms .cine-screen .home-card {
    margin-top: 24px;
  }

  .lead {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero-copy, .has-rooms .hero-copy {
    gap: 16px;
  }
}

.home-more {
  z-index: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  width: 100%;
  max-width: 1240px;
  margin: 56px auto 0;
  display: grid;
  position: relative;
}

.sources {
  color: #a3a3a8;
  border-block-start: 1px solid #ffffff12;
  border-block-end: 1px solid #ffffff12;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin: 0;
  padding: 18px 12px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
}

.sources b {
  text-align: center;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #77777c;
  flex: 0 0 100%;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
}

.sources span {
  white-space: nowrap;
}

.sources span + span:before {
  content: "·";
  color: #55555a;
  margin: 0 12px;
}

.steps3 {
  counter-reset: step;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.steps3 li {
  counter-increment: step;
  background: #0e0e10;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 2px 14px;
  padding: 18px 20px;
  display: grid;
}

.steps3 li:before {
  content: counter(step);
  color: #fff;
  background: #ffffff14;
  border-radius: 50%;
  grid-row: 1 / 3;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 800;
  display: grid;
}

.steps3 b {
  letter-spacing: -.01em;
  font-size: 16.5px;
  font-weight: 700;
}

.steps3 span {
  color: #a3a3a8;
  font-size: 14.5px;
  line-height: 1.45;
}

.bento {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.b-card {
  background: linear-gradient(#121214, #0b0b0c);
  border: 1px solid #ffffff12;
  border-radius: 16px;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.b-link {
  color: #e9e6e3;
  border-bottom: 1px solid #ffffff40;
  align-self: flex-start;
  margin-top: 6px;
  padding-bottom: 1px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.b-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.b-card h3 {
  font-family: var(--font);
  letter-spacing: -.02em;
  margin: auto 0 0;
  font-size: 21px;
  font-weight: 700;
}

.b-card p {
  color: #a3a3a8;
  max-width: 440px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.b-art {
  flex: none;
  height: 132px;
  margin-bottom: 10px;
  position: relative;
}

.b-sync {
  grid-column: span 4;
}

.b-voice, .b-lib, .b-tv, .b-crowd {
  grid-column: span 2;
}

.b-sync .b-art {
  align-content: center;
  gap: 14px;
  padding: 6px 4px;
  display: grid;
}

.sync-row {
  align-items: center;
  gap: 14px;
  display: flex;
}

.sync-row b {
  color: #fff;
  background: var(--c);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  display: grid;
}

.sync-row span {
  background: #ffffff1a;
  border-radius: 3px;
  flex: 1;
  height: 6px;
  position: relative;
  overflow: hidden;
}

.sync-row span i {
  background: linear-gradient(90deg, #8b0a12, var(--red));
  width: 62%;
  animation: sync-fill 7s var(--ease) infinite;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
}

.sync-head {
  width: 2px;
  animation: sync-head 7s var(--ease) infinite;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: calc(62% + 13.28px);
  box-shadow: 0 0 12px #ffffffb3;
}

@keyframes sync-fill {
  0% {
    width: 18%;
  }

  45%, 55% {
    width: 62%;
  }

  100% {
    width: 18%;
  }
}

@keyframes sync-head {
  0% {
    left: calc(18% + 37.92px);
  }

  45%, 55% {
    left: calc(62% + 13.28px);
  }

  100% {
    left: calc(18% + 37.92px);
  }
}

.b-voice .b-art {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  display: flex;
}

.bubble {
  border-radius: 16px;
  max-width: 78%;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.3;
}

.bubble.l {
  background: #232326;
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.bubble.r {
  background: var(--red-deep);
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}

.float {
  opacity: 0;
  font-size: 24px;
  animation: 4.2s ease-out infinite float-up;
  position: absolute;
  bottom: 0;
}

.float.f1 {
  left: 16%;
}

.float.f2 {
  animation-delay: 1.4s;
  left: 46%;
}

.float.f3 {
  animation-delay: 2.8s;
  left: 74%;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(10px)scale(.8);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px)scale(1.15);
  }
}

.b-lib .b-art {
  place-items: center;
  display: grid;
}

.poster {
  width: 74px;
  height: 108px;
  transition: transform .5s var(--ease);
  border-radius: 10px;
  position: absolute;
  box-shadow: 0 14px 30px #0009, inset 0 0 0 1px #ffffff1a;
}

.poster.p1 {
  background: linear-gradient(160deg, #3e63dd, #11183a);
  transform: translateX(-62px)rotate(-10deg);
}

.poster.p2 {
  z-index: 1;
  background: linear-gradient(160deg, #e5484d, #3b0a0d);
  transform: translateY(-6px);
}

.poster.p3 {
  background: linear-gradient(160deg, #f5a524, #3a2306);
  transform: translateX(62px)rotate(10deg);
}

.b-lib:hover .p1 {
  transform: translateX(-78px)rotate(-14deg);
}

.b-lib:hover .p3 {
  transform: translateX(78px)rotate(14deg);
}

.b-tv .b-art {
  place-items: center;
  display: grid;
}

.tv-shape {
  background: linear-gradient(160deg, #2a0a0d, #0b0b0c);
  border: 3px solid #3a3a3e;
  border-radius: 10px;
  width: 150px;
  height: 88px;
  position: relative;
  box-shadow: 0 0 40px #e509142e;
}

.tv-shape i {
  background: radial-gradient(80% 80% at 50% 40%, #ff5a5a80, #0000 70%);
  border-radius: 4px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.tv-shape:after {
  content: "";
  background: #3a3a3e;
  border-radius: 2px;
  width: 46px;
  height: 4px;
  margin-left: -23px;
  position: absolute;
  bottom: -14px;
  left: 50%;
}

.phone-shape {
  background: #111;
  border: 3px solid #4a4a50;
  border-radius: 9px;
  width: 38px;
  height: 70px;
  position: absolute;
  top: calc(50% - 6px);
  left: calc(50% + 50px);
  box-shadow: 0 10px 24px #000000b3;
}

.phone-shape i {
  background: var(--red);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 0 12px #e50914b3;
}

.b-crowd .b-art {
  place-items: center;
  display: grid;
}

.crowd {
  display: flex;
}

.crowd b {
  color: #fff;
  background: var(--c, #3a3a3c);
  border-radius: 50%;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 17px;
  display: grid;
  box-shadow: 0 0 0 3px #0e0e10;
}

.crowd b + b {
  margin-left: -12px;
}

.crowd b.more {
  color: #ddd;
  font-size: 14px;
}

.home-foot {
  color: #77777c;
  border-top: 1px solid #ffffff12;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 26px 0 6px;
  font-size: 14px;
  display: flex;
}

.home-foot a {
  color: #c9c9cc;
  text-decoration: none;
}

.home-foot .foot-links {
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
  display: flex;
}

.home-foot a:hover {
  color: #fff;
}

.home:after {
  content: "";
  z-index: 4;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.home[hidden]:after, .tv .home:after, .tv .home-more, .casting .home-more {
  display: none;
}

.casting .cine-screen {
  all: unset;
  display: block;
}

.casting .cine-screen:before, .casting .cine-screen:after, .casting .cine-eyebrow {
  display: none;
}

.casting .hero-title, .casting .hero-title em {
  color: var(--text);
  text-shadow: none;
}

.casting .lead {
  color: #c9c9cc;
  margin: 10px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .cine-screen:before, .cine-screen:after, .cine-frame:before, .sources-track, .sync-row span i, .sync-head, .float, .cine-eyebrow i {
    animation: none !important;
  }

  .float {
    opacity: 1;
  }
}

.invite {
  border-left: 3px solid var(--red);
  background: #e5091424;
  border-radius: 6px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.invite .ic {
  color: var(--red);
}

.recent {
  width: 100%;
  max-width: 1240px;
  animation: pop-in .6s var(--ease) both .2s;
  gap: 12px;
  margin: 0 auto;
  display: grid;
}

.recent h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-size: 20px;
}

.recent ul {
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  grid-auto-columns: minmax(270px, 310px);
  grid-auto-flow: column;
  gap: 10px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  display: grid;
  overflow-x: auto;
}

.recent li {
  scroll-snap-align: start;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .25s var(--ease), background .18s, border-color .18s, box-shadow .25s;
  align-items: center;
  gap: 12px;
  padding: 12px 6px 12px 12px;
  display: flex;
}

.recent li:hover {
  background: var(--surface-3);
  border-color: var(--line-2);
  z-index: 1;
  transform: scale(1.04);
  box-shadow: 0 14px 34px #0009;
}

.recent .r-name {
  flex: 1;
  min-width: 0;
}

.recent .r-name b {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.recent .r-name small {
  color: var(--faint);
}

.recent .icon-btn {
  width: 32px;
  height: 32px;
  color: var(--muted);
}

.recent .star.on {
  color: var(--warn);
}

.recent .star.on .ic path {
  fill: currentColor;
}

.room-avatar {
  color: #fff;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  font-weight: 800;
  display: grid;
}

.room {
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 18px;
  height: 100dvh;
  padding: 0 18px 18px;
  display: grid;
  overflow: hidden;
}

.topbar {
  min-width: 0;
  animation: fade .5s var(--ease) both;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  display: flex;
}

.room-title {
  flex: 0 340px;
  align-items: center;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.room-name {
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  background: none !important;
  border-color: #0000 !important;
  padding: 6px 8px !important;
}

.room-name:hover {
  background: #ffffff0f !important;
}

.room-name:focus {
  border-color: var(--line-2) !important;
}

.star.on {
  color: var(--warn);
}

.star.on .ic path {
  fill: currentColor;
}

.star.burst {
  animation: burst .5s var(--spring);
}

@keyframes burst {
  50% {
    transform: scale(1.35)rotate(12deg);
  }
}

.pill {
  color: var(--muted);
  white-space: nowrap;
  background: #ffffff12;
  border-radius: 99px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  display: inline-flex;
}

.pill:before {
  content: "";
  background: var(--faint);
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.pill.ok {
  color: var(--ok);
}

.pill.ok:before {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.pill.bad {
  color: var(--bad);
}

.pill.bad:before {
  background: var(--bad);
  animation: 1s infinite blink;
}

@keyframes blink {
  50% {
    opacity: .3;
  }
}

.top-actions {
  align-items: center;
  gap: 4px;
  margin-left: auto;
  display: flex;
}

.top-actions .btn {
  padding: 8px 14px;
}

.stage {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.screen {
  min-height: 0;
  animation: fade .6s var(--ease) both;
  flex-direction: column;
  flex: 1;
  gap: 0;
  display: flex;
}

.video-wrap {
  border-radius: var(--r) var(--r) 0 0;
  background: #000;
  flex: 1;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.player, .player > * {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.player video {
  object-fit: contain;
  background: #000;
}

.empty-state {
  text-align: center;
  background: radial-gradient(60% 60% at 50% 100%, #e5091438, #0000 70%), #050505;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.empty-state h2 {
  font-family: var(--font-display);
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.empty-state p {
  max-width: 440px;
  margin: 0 0 8px;
}

.empty-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  display: flex;
}

.video-wrap.loading:after {
  content: "";
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  pointer-events: none;
  z-index: 4;
  background-repeat: no-repeat;
  background-size: 40% 100%;
  height: 3px;
  animation: 1.1s ease-in-out infinite loading;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

@keyframes loading {
  from {
    background-position: -40% 0;
  }

  to {
    background-position: 140% 0;
  }
}

.banner {
  z-index: 6;
  pointer-events: none;
  animation: pop-in .3s var(--ease);
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 6px;
  max-width: calc(100% - 28px);
  padding: 8px 16px;
  font-size: 13px;
  position: absolute;
  top: 16px;
  left: 50%;
  overflow: hidden;
  transform: translateX(-50%);
}

.tap {
  z-index: 7;
  cursor: pointer;
  color: #fff;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tap.small {
  padding: 10px 14px;
  font-size: 13px;
  top: auto;
  bottom: 16px;
  left: auto;
  right: 16px;
  transform: none;
}

.reactions-layer {
  pointer-events: none;
  z-index: 5;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.fly {
  animation: fly 3s var(--ease) forwards;
  will-change: transform, opacity;
  justify-items: center;
  gap: 2px;
  display: grid;
  position: absolute;
  bottom: 6%;
}

.fly .e {
  filter: drop-shadow(0 6px 14px #0009);
  font-size: 46px;
  animation: .9s ease-in-out infinite alternate wobble;
}

.fly .who {
  white-space: nowrap;
  background: #0009;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

@keyframes fly {
  0% {
    opacity: 0;
    transform: translateY(30px)scale(.4);
  }

  12% {
    opacity: 1;
    transform: translateY(-10px)scale(1.15);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-62vh)scale(.9);
  }
}

@keyframes wobble {
  from {
    transform: rotate(-10deg);
  }

  to {
    transform: rotate(10deg);
  }
}

.toasts {
  z-index: 6;
  pointer-events: none;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: min(380px, 70%);
  display: flex;
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.toast {
  border-left: 3px solid var(--red);
  animation: toast-in .35s var(--ease) both;
  background: #0a0a0ad1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
}

.toast b {
  color: #ff8a92;
  margin-right: 6px;
}

.toast.out {
  animation: toast-out .3s var(--ease) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.dock {
  border-radius: 0 0 var(--r) var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  z-index: 8;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  border-top: 0;
  padding: 4px 14px 10px;
  position: relative;
}

.timeline {
  cursor: pointer;
  touch-action: none;
  outline: none;
  align-items: center;
  height: 24px;
  display: flex;
  position: relative;
}

.tl-track {
  width: 100%;
  height: 4px;
  transition: height .15s var(--ease);
  background: #ffffff38;
  position: relative;
}

.timeline:hover .tl-track, .timeline.drag .tl-track {
  height: 7px;
}

.tl-buf {
  background: #ffffff59;
  width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
}

.tl-played {
  background: var(--red);
  width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
}

.tl-knob {
  background: var(--red);
  width: 16px;
  height: 16px;
  transition: transform .2s var(--spring);
  border-radius: 50%;
  margin: -8px 0 0 -8px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: scale(0);
  box-shadow: 0 0 0 3px #e5091440;
}

.timeline:hover .tl-knob, .timeline.drag .tl-knob {
  transform: scale(1);
}

.timeline:focus-visible .tl-knob {
  transform: scale(1);
}

.tl-tip {
  opacity: 0;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  background: #000000d9;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity .15s;
  position: absolute;
  bottom: 26px;
  transform: translateX(-50%);
}

.timeline:hover .tl-tip, .timeline.drag .tl-tip {
  opacity: 1;
}

.timeline.disabled {
  pointer-events: none;
  opacity: .4;
}

.dock-row {
  align-items: center;
  gap: 10px;
  display: flex;
}

.dock-left, .dock-right {
  align-items: center;
  gap: 2px;
  display: flex;
}

.dock-right {
  margin-left: auto;
}

.play-btn {
  color: #000;
  background: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin: 0 4px;
}

.play-btn .ic {
  width: 22px;
  height: 22px;
}

.play-btn:hover {
  background: #e6e6e6;
  transform: scale(1.07);
}

.swap .ic {
  animation: swap .3s var(--spring);
}

@keyframes swap {
  from {
    opacity: 0;
    transform: scale(.4);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: 6px;
  font-size: 13px;
}

.time #t-cur {
  color: var(--text);
  font-weight: 700;
}

.dock-react {
  gap: 0;
  margin: 0 auto;
  display: flex;
}

.dock-react button {
  cursor: pointer;
  width: 38px;
  height: 38px;
  transition: transform .2s var(--spring), background .18s;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 21px;
}

.dock-react button:hover {
  transform: translateY(-3px)scale(1.22);
}

.dock-react button:active {
  transform: scale(.85);
}

.vol {
  align-items: center;
  display: flex;
}

.vol input {
  opacity: 0;
  width: 0;
  transition: width .25s var(--ease), opacity .2s;
  accent-color: var(--red);
}

.vol:hover input, .vol:focus-within input {
  opacity: 1;
  width: 90px;
  margin-right: 6px;
}

.pop {
  width: 310px;
  animation: pop-in .2s var(--ease);
  gap: 10px;
  max-height: 70vh;
  padding: 14px;
  display: grid;
  position: absolute;
  bottom: calc(100% + 10px);
  right: 12px;
  overflow: auto;
}

.pop label {
  color: var(--muted);
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: grid;
}

.pop select {
  padding: 8px 30px 8px 10px;
  font-size: 13px;
}

.under {
  flex: none;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 0 4px;
  display: flex;
}

.status-line {
  color: var(--faint);
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
}

.screen.fs {
  z-index: 50;
  background: #000;
  gap: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  animation: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
}

.screen.fs .video-wrap {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.screen.fs .dock {
  background: linear-gradient(to top, #000000e6, #0000008c 55%, #0000);
  border: 0;
  border-radius: 0;
  width: auto;
  padding: 60px max(24px, 4vw) 22px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.screen.fs .toasts {
  bottom: 150px;
}

.screen.fs.idle .dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.screen.fs.idle {
  cursor: none;
}

.screen.fill .player video {
  object-fit: cover;
}

.screen.fill .player iframe {
  transform: scale(var(--fill-scale, 1));
}

.player iframe {
  transition: transform .35s var(--ease);
}

.side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 0;
  animation: fade .6s var(--ease) both .1s;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  display: flex;
  overflow: hidden;
}

.people-box {
  gap: 10px;
  display: grid;
}

.members {
  scrollbar-width: thin;
  gap: 4px;
  max-height: min(46vh, 420px);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow-y: auto;
}

.members li {
  border-radius: 6px;
  align-items: center;
  gap: 12px;
  padding: 8px;
  transition: background .18s;
  display: flex;
}

.members li:hover {
  background: #ffffff0d;
}

.avatar {
  color: #fff;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 800;
  display: grid;
  position: relative;
}

.avatar:after {
  content: "";
  border: 2px solid var(--ok);
  opacity: 0;
  transition: opacity .2s, transform .3s var(--spring);
  border-radius: 9px;
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  transform: scale(.85);
}

.speaking .avatar:after {
  opacity: 1;
  animation: 1.2s ease-in-out infinite ring;
  transform: scale(1);
}

@keyframes ring {
  50% {
    box-shadow: 0 0 0 4px #46d36933;
  }
}

.m-info {
  flex: 1;
  min-width: 0;
  display: grid;
}

.m-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  overflow: hidden;
}

.m-sub {
  color: var(--faint);
  font-size: 12px;
}

.m-sub.p2p {
  color: var(--ok);
}

.m-sub.relay {
  color: var(--warn);
}

.m-sub.fail {
  color: var(--bad);
}

.m-dev {
  opacity: .8;
  font-size: 14px;
}

.count {
  background: var(--red);
  color: #fff;
  vertical-align: 1px;
  border-radius: 4px;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
}

.count:empty {
  display: none;
}

.m-badges {
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0 2px;
  display: flex;
}

.m-badge {
  color: #cfcfcf;
  white-space: nowrap;
  background: #ffffff17;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.m-badge.host {
  background: var(--red);
  color: #fff;
}

.m-badge.wait {
  color: var(--warn);
  background: #f5b40a29;
  animation: 1.4s ease-in-out infinite pulse;
}

.m-badge.ok {
  color: var(--ok);
  background: #46d36924;
}

.m-mute {
  opacity: 0;
  width: 32px;
  height: 32px;
  transition: opacity .2s;
}

.members li:hover .m-mute, .m-mute.on {
  opacity: 1;
}

.m-mute:focus-visible {
  opacity: 1;
}

.m-mute.on {
  color: var(--bad);
}

@media (hover: none) {
  .m-mute {
    opacity: .7;
  }
}

.chat {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-height: 0;
  display: flex;
}

.chat-log {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  margin: 0;
  padding: 0 2px;
  list-style: none;
  display: flex;
  overflow: auto;
}

.chat-log li {
  animation: pop-in .25s var(--ease) both;
}

.msg {
  align-items: flex-end;
  gap: 8px;
  max-width: 92%;
  display: flex;
}

.msg .avatar {
  border-radius: 5px;
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.bubble {
  background: var(--surface-3);
  word-break: break-word;
  border-radius: 12px 12px 12px 3px;
  padding: 8px 12px;
}

.bubble b {
  color: #ff8a92;
  margin-bottom: 1px;
  font-size: 12px;
  display: block;
}

.msg.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.msg.mine .bubble {
  background: var(--red-deep);
  border-radius: 12px 12px 3px;
}

.msg.mine .bubble b {
  display: none;
}

.sys {
  color: var(--faint);
  text-align: center;
  align-self: center;
  padding: 2px 10px;
  font-size: 12px;
}

.react-line {
  color: var(--muted);
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  font-size: 13px;
  display: flex;
}

.react-line .avatar {
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.react-line.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.react-line .em {
  letter-spacing: 2px;
  font-size: 20px;
}

.react-line .em span {
  animation: pop-emoji .45s var(--spring);
  display: inline-block;
}

@keyframes pop-emoji {
  from {
    transform: scale(.2);
  }
}

.composer {
  gap: 8px;
  display: flex;
}

.composer input {
  border-radius: 6px;
}

.send {
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  flex: none;
  width: 46px;
  height: 44px;
}

.send:hover {
  background: var(--red-hi);
}

dialog.sheet {
  color: var(--text);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: #141415;
  width: min(620px, 100vw - 32px);
  max-height: min(80vh, 720px);
  padding: 20px;
}

dialog.sheet.narrow {
  width: min(430px, 100vw - 32px);
}

dialog.mic-dlg[open] {
  text-align: center;
  border-radius: 20px;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 22px;
}

.mic-dlg-icon {
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff3b45, #a1060f);
  border-radius: 50%;
  place-items: center;
  width: 64px;
  height: 64px;
  display: grid;
  box-shadow: 0 10px 30px #e5091466;
}

.mic-dlg-icon .ic {
  width: 28px;
  height: 28px;
}

.mic-dlg h2 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--text);
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.mic-dlg p {
  max-width: 340px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.mic-dlg-actions {
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  display: grid;
}

.mic-dlg-actions .btn.big {
  border-radius: 12px;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.mic-remember {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

dialog.sheet[open] {
  animation: dlg .3s var(--ease);
  flex-direction: column;
  gap: 14px;
  display: flex;
}

dialog::backdrop {
  background: #000000b8;
  animation: .25s fade;
}

@keyframes dlg {
  from {
    opacity: 0;
    transform: translateY(14px)scale(.98);
  }
}

.sheet-head {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.sheet-head h2 {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.sheet-actions {
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.tabs {
  gap: 18px;
  display: flex;
}

.tabs button {
  cursor: pointer;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-weight: 700;
  transition: color .18s, border-color .18s;
  display: inline-flex;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--red);
}

.tab-pane {
  min-height: 0;
  animation: pop-in .2s var(--ease);
  gap: 12px;
  display: grid;
}

.link-form {
  gap: 8px;
  display: flex;
}

.link-form .btn {
  white-space: nowrap;
}

.detect {
  align-items: center;
  gap: 8px;
  min-height: 22px;
  font-size: 13px;
  display: flex;
}

.detect.ok {
  color: var(--ok);
}

.detect.bad {
  color: var(--bad);
}

.lib-list {
  scrollbar-width: thin;
  gap: 6px;
  max-height: 46vh;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: auto;
}

.lib-list li {
  background: var(--surface-2);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .2s var(--ease);
  border-left: 3px solid #0000;
  border-radius: 6px;
  padding: 11px 14px;
}

.lib-list li:hover {
  background: var(--surface-3);
  border-left-color: var(--red);
}

.lib-list li.current {
  border-left-color: var(--ok);
}

.lib-list li.busy {
  opacity: .6;
  pointer-events: none;
}

.lib-list li.note {
  cursor: default;
  color: var(--muted);
  border-left-color: #0000;
}

.lib-list li.note:has(.lib-actions) {
  gap: 8px;
  padding: 16px;
  display: grid;
}

.lib-list li.note b {
  color: var(--text);
}

.lib-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.lib-actions .btn {
  text-decoration: none;
}

.lib-list .n {
  word-break: break-word;
  font-weight: 700;
  display: block;
}

.lib-list .m {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

.lib-list code {
  background: #ffffff14;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
}

.qr {
  border-radius: var(--r);
  color: #333;
  background: #fff;
  place-items: center;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  padding: 10px;
  font-size: 13px;
  display: grid;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.pair-link {
  color: var(--faint);
  word-break: break-all;
  font-size: 11px;
  display: block;
}

.switch {
  cursor: pointer;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  display: flex;
}

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

.switch span {
  background: #4d4d4d;
  border-radius: 99px;
  flex: none;
  width: 44px;
  height: 26px;
  transition: background .2s;
  position: relative;
}

.switch span:after {
  content: "";
  width: 20px;
  height: 20px;
  transition: transform .25s var(--spring);
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.switch input:checked + span {
  background: var(--red);
}

.switch input:checked + span:after {
  transform: translateX(18px);
}

.keys {
  color: var(--muted);
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
  display: grid;
}

kbd {
  border: 1px solid var(--line);
  min-width: 22px;
  color: var(--text);
  text-align: center;
  background: #ffffff1a;
  border-radius: 4px;
  margin-right: 4px;
  padding: 1px 6px;
  font: 12px ui-monospace, Menlo, monospace;
  display: inline-block;
}

h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.debug summary {
  cursor: pointer;
  color: var(--faint);
  font-size: 13px;
}

.debug pre {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 11px;
}

.events {
  color: var(--faint);
  max-height: 160px;
  padding-left: 18px;
  font: 11px / 1.3 ui-monospace, Menlo, monospace;
  overflow: auto;
}

.tap, .banner, .pop {
  border: 1px solid var(--line-2);
  background: #0c0c0ceb;
}

.dl-box {
  border-top: 1px solid var(--line);
  gap: 8px;
  padding-top: 10px;
  display: grid;
}

.dl-head {
  color: var(--text);
  grid-template-columns: 1fr 96px auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.dl-head select {
  padding: 7px 26px 7px 10px;
  font-size: 13px;
}

.small-btn {
  padding: 7px 12px;
  font-size: 13px;
}

.dl-bar {
  background: #ffffff26;
  height: 4px;
  overflow: hidden;
}

.dl-bar i {
  background: var(--red);
  width: 0;
  height: 100%;
  transition: width .6s var(--ease);
  display: block;
}

.dl-box.done .dl-bar i {
  background: var(--ok);
}

.dl-line {
  color: var(--muted);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.dl-line span {
  flex: 1;
}

.link-btn {
  color: #ff6b73;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.dl-note {
  margin: 0;
  font-size: 12px;
}

.latency {
  border-top: 1px solid var(--line);
  gap: 6px;
  padding: 10px 0 2px;
  display: grid;
}

.lat-head {
  justify-content: space-between;
  font-size: 14px;
  display: flex;
}

.latency input {
  accent-color: var(--red);
  width: 100%;
}

.latency p {
  margin: 0;
}

@keyframes pulse {
  50% {
    opacity: .55;
  }
}

.route-box {
  border-radius: var(--r);
  background: var(--surface-2);
  gap: 10px;
  margin: 6px 0 4px;
  padding: 14px;
  display: grid;
}

.route-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.route-row > span {
  align-items: center;
  gap: 8px;
  font-weight: 700;
  display: inline-flex;
}

.route-row .ic {
  opacity: .8;
  width: 18px;
  height: 18px;
}

.seg {
  background: #0006;
  border-radius: 6px;
  padding: 3px;
  display: inline-flex;
}

.seg button {
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, color .18s;
}

.seg button.active {
  background: var(--red);
  color: #fff;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b-sync {
    grid-column: span 2;
  }

  .b-voice, .b-lib, .b-tv, .b-crowd {
    grid-column: span 1;
  }

  .room {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: 100vh;
    padding: 0 10px 10px;
    overflow: visible;
  }

  .stage {
    overflow: visible;
  }

  .screen {
    flex: none;
  }

  .video-wrap {
    aspect-ratio: 16 / 9;
    flex: none;
    min-height: 0;
  }

  .side {
    min-height: 420px;
  }

  .top-actions .lbl {
    display: none;
  }

  .top-actions .btn {
    padding: 10px;
  }

  .status-line {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .home {
    padding: 18px 16px 28px;
  }

  .wordmark {
    font-size: 28px;
  }

  .wordmark.small, .topbar .pill {
    display: none;
  }

  .dock {
    padding: 2px 6px 6px;
  }

  .dock-row {
    flex-wrap: wrap;
    gap: 4px;
  }

  .dock-react {
    order: 3;
    justify-content: space-between;
    width: 100%;
    margin: 2px 0 0;
  }

  .vol {
    display: none;
  }

  .time {
    font-size: 12px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .play-btn {
    width: 42px;
    height: 42px;
  }

  .cine-screen {
    border-radius: 20px;
  }

  .hero-title, .has-rooms .hero-title {
    letter-spacing: -.025em;
    font-size: clamp(25px, 8vw, 32px);
    line-height: 1.08;
  }

  .cine-screen, .has-rooms .cine-screen {
    padding: 32px 18px 28px;
  }

  .cine-eyebrow, .has-rooms .cine-eyebrow {
    margin-bottom: 12px;
  }

  .lead, .has-rooms .lead {
    margin-top: 14px;
    font-size: 16px;
  }

  .cine-screen .home-card, .has-rooms .cine-screen .home-card {
    margin-top: 28px;
  }

  .home-card {
    border-radius: 20px;
    padding: 10px;
  }

  .home-actions .btn.big {
    flex: 100%;
  }

  .code-form {
    flex-basis: 100%;
  }

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

  .b-card {
    min-height: 240px;
    grid-column: auto !important;
  }

  .home-foot .foot-links {
    flex-basis: 100%;
    gap: 0 22px;
    margin-left: 0;
  }

  .home-foot .foot-links a {
    padding: 10px 0;
  }

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

  .sources {
    gap: 6px 16px;
    font-size: 14.5px;
  }

  .sources span + span:before {
    content: none;
  }

  .link-form {
    flex-direction: column;
  }

  .pop {
    width: calc(100vw - 40px);
    right: 0;
  }

  .video-wrap:has( > .empty-state:not([hidden])) {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .video-wrap:has( > .empty-state:not([hidden])) .empty-state {
    padding: 22px 16px;
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .empty-state h2 {
    font-size: 23px;
  }

  .empty-state p {
    font-size: 14px;
  }

  .side {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

.tv body {
  font-size: 18px;
}

.tv .icon-btn {
  width: 52px;
  height: 52px;
}

.tv .play-btn {
  width: 60px;
  height: 60px;
}

.tv :focus {
  outline: none;
}

.tv .btn:focus, .tv .icon-btn:focus, .tv .play-btn:focus, .tv .send:focus, .tv input:focus, .tv select:focus, .tv .recent li:focus, .tv .lib-list li:focus, .tv .dock-react button:focus, .tv .timeline:focus {
  outline-offset: 3px;
  outline: 3px solid #fff;
  box-shadow: 0 0 0 7px #e509148c;
}

.tv :focus-visible {
  outline-offset: 3px;
  outline: 3px solid #fff;
  box-shadow: 0 0 0 7px #e509148c;
}

.tv .recent li:focus, .tv .btn:focus {
  transform: scale(1.05);
}

.tv .room {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.tv-only, .tv-top[hidden] {
  display: none;
}

.tv .tv-only {
  display: inline;
}

.tv .room .topbar, .tv .room .side, .tv #sync-status, .tv .dock-react, .tv #react-pop, .tv #btn-mic, .tv .dock .vol, .tv #btn-source, .tv #btn-fs, .tv #btn-fill, .tv #row-quality, .tv #row-dl, .tv .empty-state [data-open] {
  display: none !important;
}

.tv .tv-top {
  z-index: 3;
  background: linear-gradient(#000000d9, #00000073 60%, #0000);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px max(36px, 4vw) 80px;
  transition: opacity .3s, transform .3s;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.screen.fs.idle .tv-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}

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

.tv-room b {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 42vw;
  font-size: 26px;
  font-weight: 800;
  overflow: hidden;
}

.tv-people {
  gap: 10px;
  display: flex;
}

.tv-people .avatar {
  width: 42px;
  height: 42px;
  font-size: 19px;
}

.tv-people .avatar.speaking:after {
  opacity: 1;
  animation: 1.2s ease-in-out infinite ring;
  transform: scale(1);
}

.tv-phone, .tv-exit {
  background: #ffffff1a;
  padding: 10px 18px;
  font-size: 17px;
}

.tv-exit {
  flex: none;
}

.tv-phone.paired {
  color: var(--muted);
  background: none;
}

.tv .screen.fs .dock {
  padding: 90px max(36px, 4vw) 36px;
}

.tv .dock .time {
  margin-left: 14px;
  font-size: 22px;
}

.tv .dock .lib-btn, .tv #btn-media {
  gap: 8px;
  width: auto;
  height: 52px;
  padding: 10px 18px;
  font-size: 17px;
}

.tv #btn-media {
  background: #ffffff1a;
  border-radius: 6px;
  align-items: center;
  display: inline-flex;
}

.tv #btn-media .lbl {
  margin-left: 8px;
}

.tv .screen.fs .toasts {
  max-width: 46vw;
  bottom: 190px;
}

.tv .toast {
  padding: 12px 18px;
  font-size: 22px;
}

.tv .screen.fs .next-ep {
  bottom: 190px;
}

.tv .under {
  z-index: 60;
  max-width: 80vw;
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
}

.tv .under .error {
  background: #0a0a0ae6;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 20px;
}

.tv .screen.fs .toasts {
  transition: bottom .3s;
}

.tv .screen.fs.idle .toasts {
  bottom: 40px;
}

.tv-q {
  letter-spacing: .02em;
  background: #ffffff1f;
  border-radius: 4px;
  margin-left: 12px;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 800;
}

.tv .tv-q {
  font-size: 18px;
}

.tv #pair-copy, .tv .pair-link {
  display: none;
}

.tv #pair-dialog {
  width: min(820px, 90vw);
}

.tv #pair-dialog[open] {
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 28px;
  display: grid;
}

.tv #pair-dialog .sheet-head {
  grid-column: 1 / -1;
}

.tv #pair-dialog p {
  color: #ddd;
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.tv #pair-dialog .qr {
  box-sizing: border-box;
  grid-area: 2 / 2;
  width: 300px;
  height: 300px;
  padding: 14px;
  overflow: hidden;
}

.tv #pair-dialog .qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

dialog.tv-leave {
  color: #fff;
  background: linear-gradient(90deg, #000000eb 0%, #000000bf 55%, #0000008c 100%);
  border: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

dialog.tv-leave[open] {
  align-items: center;
  animation: .2s fade;
  display: grid;
}

dialog.tv-leave::backdrop {
  -webkit-backdrop-filter: blur(10px);
  background: none;
}

.tv-leave-box {
  width: min(560px, 80vw);
  animation: dlg .3s var(--ease);
  margin-left: 9vw;
}

.tv-leave h2 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  text-transform: none;
  color: #fff;
  margin: 0 0 12px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
}

.tv-leave p {
  color: #ffffff9e;
  margin: 0 0 36px;
  font-size: 21px;
}

.tv-leave-actions {
  gap: 12px;
  display: grid;
}

.tv-choice {
  text-align: left;
  height: 64px;
  font: 600 22px / 1 var(--font, inherit);
  color: #ffffffd1;
  cursor: pointer;
  background: #ffffff1a;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  transition: background .15s, color .15s, transform .15s;
}

.tv-choice:hover {
  background: #ffffff2e;
}

.tv .tv-choice:focus {
  box-shadow: none;
  color: #000;
  background: #fff;
  outline: none;
  transform: scale(1.03);
}

.tv .tv-choice:focus-visible {
  box-shadow: none;
  color: #000;
  background: #fff;
  outline: none;
  transform: scale(1.03);
}

.tv-choice:focus-visible {
  box-shadow: none;
  color: #000;
  background: #fff;
  outline: none;
  transform: scale(1.03);
}

.tv .recent ul {
  grid-auto-columns: minmax(340px, 380px);
}

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

.lib-auth {
  gap: 12px;
  display: grid;
}

.lib-auth input[type="password"] {
  width: 100%;
  color: inherit;
  font: inherit;
  background: #161617e6;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  outline: none;
  padding: 12px 14px;
}

.lib-auth input[type="password"]:focus {
  border-color: #fff;
}

.lib-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: 56vh;
}

.lib-grid li {
  border-bottom: 3px solid #0000;
  border-left: 0;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  display: grid;
}

.lib-grid li:hover {
  border-bottom-color: var(--red);
  transform: translateY(-2px);
}

.lib-grid li.current {
  border-bottom-color: var(--ok);
}

.m-badge.lib {
  color: #000;
  background: #fff;
}

.lib-btn {
  margin-right: 4px;
  padding: 7px 12px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .lib-btn .lbl {
    display: none;
  }

  .lib-btn {
    padding: 8px;
  }
}

dialog.sheet.lib-sheet {
  background: #0b0b0c;
  width: min(1240px, 100vw - 32px);
  height: min(88vh, 900px);
  max-height: none;
  padding: 0;
  overflow: hidden;
}

dialog.sheet.lib-sheet[open] {
  gap: 0;
}

.lib-head {
  gap: 12px;
  padding: 16px 20px 10px;
}

.lib-head h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 22px;
  overflow: hidden;
}

.lib-search {
  max-width: 300px;
  padding: 9px 12px !important;
}

.lib-sheet .lib-auth, .lib-sheet > #lib-status {
  margin: 0;
  padding: 0 20px;
}

.lib-sheet > #lib-status:empty {
  display: none;
}

.lib-browse {
  scrollbar-width: thin;
  flex: 1;
  min-height: 0;
  padding: 6px 0 28px;
  overflow-y: auto;
}

.lib-row {
  margin: 10px 0 18px;
}

.lib-row h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 20px 8px;
  font-size: 19px;
  font-weight: 800;
}

.lib-strip {
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  grid-auto-columns: 250px;
  grid-auto-flow: column;
  gap: 10px;
  padding: 6px 20px 12px;
  display: grid;
  overflow-x: auto;
}

.lib-grid2 {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px 10px;
  padding: 6px 20px 12px;
  display: grid;
}

.lib-card {
  scroll-snap-align: start;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  gap: 6px;
  padding: 0;
  display: grid;
}

.lib-thumb {
  aspect-ratio: 16 / 9;
  transition: transform .25s var(--ease), box-shadow .25s;
  background: linear-gradient(135deg, #2a0a0d, #111);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.lib-thumb img {
  object-fit: cover;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity .4s;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-thumb img.ok {
  opacity: 1;
}

.lib-thumb .ph {
  font-family: var(--font-display);
  color: #ffffff2e;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-thumb .bar {
  background: #ffffff40;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-thumb .bar i {
  background: var(--red);
  height: 100%;
  display: block;
}

.lib-thumb .tag {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  position: absolute;
  top: 8px;
  left: 8px;
}

.lib-thumb .done {
  width: 22px;
  height: 22px;
  color: var(--ok);
  background: #000000b3;
  border-radius: 50%;
  place-items: center;
  font-size: 13px;
  display: grid;
  position: absolute;
  top: 8px;
  right: 8px;
}

.lib-card:hover .lib-thumb {
  z-index: 1;
  transform: scale(1.05);
  box-shadow: 0 14px 34px #000000b3;
}

.lib-card:focus-visible .lib-thumb {
  z-index: 1;
  transform: scale(1.05);
  box-shadow: 0 14px 34px #000000b3;
}

.lib-card b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.lib-card small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: -4px;
  font-size: 12px;
  overflow: hidden;
}

.lib-card.current b:before {
  content: "▶ ";
  color: var(--red);
}

.lib-show-hero {
  background: #111;
  border-radius: 10px;
  align-items: flex-end;
  min-height: 220px;
  margin: 0 20px 14px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.lib-show-hero .hero-bg {
  aspect-ratio: auto;
  background: #111;
  border-radius: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-show-hero .hero-bg img.ok {
  opacity: .55;
}

.lib-show-hero .hero-bg .ph {
  display: none;
}

.lib-show-hero:after {
  content: "";
  background: linear-gradient(to top, #0b0b0c 5%, #0b0b0c66 60%, #0000), linear-gradient(to right, #0b0b0ccc, #0000 70%);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-show-info {
  z-index: 1;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  display: grid;
  position: relative;
}

.lib-show-info h3 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
}

.lib-show-info p {
  color: #d2d2d2;
  margin: 0;
}

.lib-seasons {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 10px;
  display: flex;
}

.lib-seasons button {
  font: inherit;
  cursor: pointer;
  color: var(--text);
  background: #6d6d6e59;
  border: 0;
  border-radius: 4px;
  padding: 7px 14px;
  font-weight: 700;
}

.lib-seasons button.on {
  color: #000;
  background: #fff;
}

.lib-eps {
  gap: 4px;
  padding: 0 20px;
  display: grid;
}

.lib-ep {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 8px;
  grid-template-columns: 34px 200px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  display: grid;
}

.lib-ep:hover {
  background: #1a1a1b;
}

.lib-ep:focus-visible {
  background: #1a1a1b;
}

.lib-ep .num {
  color: var(--muted);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.lib-ep .lib-thumb {
  width: 200px;
}

.lib-ep b {
  font-size: 15px;
  display: block;
}

.lib-ep small {
  color: var(--muted);
}

.lib-ep.current {
  background: #e509141f;
}

.lib-choice {
  z-index: 5;
  background: #000000b8;
  place-items: center;
  animation: .2s fade;
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lib-choice-box {
  border: 1px solid var(--line-2);
  text-align: center;
  background: #141415;
  border-radius: 12px;
  gap: 10px;
  width: min(380px, 100% - 40px);
  padding: 22px;
  display: grid;
}

.lib-choice-box b {
  margin-bottom: 4px;
  font-size: 17px;
}

.next-ep {
  z-index: 7;
  color: #000;
  font: inherit;
  cursor: pointer;
  animation: pop-in .3s var(--ease);
  background: #fff;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-weight: 800;
  display: inline-flex;
  position: absolute;
  bottom: 18px;
  right: 18px;
  box-shadow: 0 10px 30px #0009;
}

.next-ep:hover {
  background: #e6e6e6;
}

.next-ep .ic {
  width: 18px;
  height: 18px;
}

.screen.fs .next-ep {
  bottom: 150px;
  right: max(24px, 4vw);
}

@media (max-width: 640px) {
  dialog.sheet.lib-sheet {
    border-radius: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    margin: 0;
  }

  .lib-strip {
    grid-auto-columns: 200px;
  }

  .lib-ep {
    grid-template-columns: 120px 1fr;
  }

  .lib-ep .num {
    display: none;
  }

  .lib-ep .lib-thumb {
    width: 120px;
  }

  .lib-search {
    max-width: 150px;
  }
}

.tv-pair {
  border-left: 3px solid var(--red);
  background: #e509141a;
  border-radius: 8px;
  gap: 6px;
  padding: 16px;
  display: grid;
}

.tv-pair span {
  color: #d2d2d2;
  font-size: 15px;
}

.tv-pair code {
  letter-spacing: .18em;
  color: #fff;
  font: 900 44px / 1.1 ui-monospace, Menlo, Consolas, monospace;
}

#lib-tv-code {
  text-align: center;
  letter-spacing: .2em;
  text-transform: uppercase;
  font: 800 26px ui-monospace, Menlo, Consolas, monospace;
}

.tv .lib-card:focus {
  outline: none;
}

.tv .lib-card:focus .lib-thumb {
  z-index: 1;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px #fff, 0 16px 40px #000c;
}

.tv .lib-ep:focus, .tv .lib-seasons button:focus {
  outline-offset: 2px;
  outline: 3px solid #fff;
}

.tv .lib-strip {
  grid-auto-columns: 300px;
}

.tv-pair {
  order: -1;
}

.leave-btn {
  color: #ff6b73;
  font: inherit;
  cursor: pointer;
  background: #e509141f;
  border: 1px solid #e5091466;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  font-size: 14px;
  font-weight: 700;
  transition: background .18s, border-color .18s, color .18s;
  display: inline-flex;
}

.leave-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.leave-btn .ic {
  width: 18px;
  height: 18px;
}

.lib-box {
  background: linear-gradient(135deg, #e5091429, #e509140a);
  border: 1px solid #e5091447;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.lib-box-icon {
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.lib-box-icon .ic {
  width: 20px;
  height: 20px;
}

.lib-box-info {
  flex: 1;
  min-width: 0;
  display: grid;
}

.lib-box-info b {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.lib-box-info small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.lib-box-info small.warn {
  color: var(--warn);
}

.dock-react {
  align-items: center;
}

.react-quick {
  display: flex;
}

.react-more {
  border: 1px solid var(--line-2);
  width: 34px;
  height: 34px;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, transform .2s var(--spring);
  background: none;
  border-radius: 50%;
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
}

.react-more:hover {
  color: #fff;
  background: #ffffff1a;
  transform: rotate(90deg);
}

.react-pop {
  width: min(360px, 100vw - 32px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.react-tabs {
  gap: 16px;
}

.react-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  display: grid;
}

.react-grid button {
  cursor: pointer;
  height: 42px;
  transition: transform .15s var(--spring), background .15s;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 24px;
}

.react-grid button:hover {
  background: #ffffff14;
  transform: scale(1.18);
}

.gif-pane {
  gap: 10px;
  display: grid;
}

.gif-form {
  gap: 8px;
  display: flex;
}

.gif-form input {
  font-size: 13px;
  padding: 9px 12px !important;
}

.gif-recent {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  display: grid;
}

.gif-thumb {
  cursor: pointer;
  aspect-ratio: 1;
  background: #000;
  border: 0;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
}

.gif-thumb img, .gif-thumb video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.gif-bubble {
  padding: 6px;
}

.gif-bubble img, .gif-bubble video {
  border-radius: 8px;
  max-width: 220px;
  max-height: 180px;
  margin-top: 2px;
  display: block;
}

.fly-gif .g {
  border-radius: 10px;
  width: clamp(120px, 18vw, 220px);
  height: auto;
  box-shadow: 0 12px 30px #0009;
}

@media (max-width: 1250px) {
  .react-quick button:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 1060px) {
  .react-quick button:nth-child(n+3) {
    display: none;
  }
}

@media (max-width: 860px) and (min-width: 641px) {
  .react-quick {
    display: none;
  }
}

@media (max-width: 640px) {
  .react-quick {
    display: flex;
  }

  .react-quick button:nth-child(n+5) {
    display: none;
  }

  .react-pop {
    left: 0;
    transform: none;
  }
}

.pop {
  border: 1px solid var(--line-2);
  background: #141415 !important;
}

.gate-row {
  margin-top: 4px;
}

.gate-note {
  margin: -4px 0 4px;
}

.chat-log:empty:before {
  content: "Пока тихо. Напишите друзьям, отправьте реакцию или GIF — всё появится здесь.";
  color: var(--muted);
  text-align: center;
  opacity: .8;
  margin: auto 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  display: block;
}

.companion #btn-fs, .companion #btn-fill, .companion #btn-media, .companion #btn-phone, .companion .tv-q {
  display: none !important;
}

.remote-card {
  text-align: center;
  background: radial-gradient(circle at 50% 120%, #e5091459, #0000 70%), #0b0b0b;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.remote-card > span {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.remote-card b {
  max-width: 90%;
  font-size: 20px;
}

.remote-card small {
  color: var(--muted);
  font-size: 14px;
}

.remote-card .btn {
  margin-top: 8px;
}

.tv-flex, .tv-home {
  display: none;
}

.tv .tv-flex {
  align-items: center;
  gap: 12px;
  display: flex;
}

.tv .home {
  height: 100vh;
  padding: 30px 56px 24px;
  overflow: hidden;
}

.tv .home .hero {
  display: none;
}

.tv .tv-home {
  min-height: 0;
  animation: fade .5s var(--ease) both;
  flex: 1;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px;
  padding-top: 22px;
  display: grid;
}

.tv-home-main {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.tv-home-title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
}

.tv-home-sub {
  color: #fff9;
  max-width: 440px;
  margin: 10px 0 0;
  font-size: 18px;
}

.tv .tv-home-main .invite {
  margin-top: 22px;
}

.tv-home-actions {
  gap: 10px;
  margin-top: 22px;
  display: grid;
}

.tv .tv-home-actions .btn {
  color: #ffffffd9;
  background: #ffffff1a;
  border: 0;
  border-radius: 8px;
  justify-content: flex-start;
  gap: 14px;
  height: 58px;
  padding: 0 24px;
  font-size: 21px;
  font-weight: 650;
  transition: background .15s, color .15s, transform .15s;
}

.tv .tv-home-actions .btn.primary {
  background: var(--red);
  color: #fff;
}

.tv .tv-home-actions .btn:focus {
  color: #000;
  box-shadow: none;
  background: #fff;
  outline: none;
  transform: scale(1.03);
}

.tv .tv-home-main .error {
  margin-top: 14px;
  font-size: 18px;
}

.tv .tv-home .tv-pair {
  background: #ffffff0f;
  border-left: 0;
  border-radius: 8px;
  order: 0;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 16px;
  margin-top: 18px;
  padding: 12px 18px;
}

.tv .tv-home .tv-pair b {
  font-size: 16px;
}

.tv .tv-home .tv-pair span {
  color: #ffffff8c;
  grid-column: 1;
  font-size: 14px;
}

.tv .tv-home .tv-pair code {
  color: #fff;
  letter-spacing: .12em;
  grid-area: 1 / 2 / 3;
  font-size: 28px;
}

.tv-home-side {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.tv .tv-home-side {
  scrollbar-width: none;
  margin: -4px -10px 0 -4px;
  padding: 4px 10px 24px 4px;
  scroll-padding: 12px 0 48px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), #0000);
  mask-image: linear-gradient(#000 calc(100% - 36px), #0000);
}

.tv .tv-home-side .recent {
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin: 0 0 22px;
  animation: none;
  display: flex;
}

.tv .tv-home-side .recent h2 {
  color: #ffffffb3;
  font-size: 22px;
  font-weight: 700;
}

.tv .tv-home-side .recent ul {
  scroll-snap-type: none;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto;
  grid-auto-flow: row;
  gap: 10px;
  padding: 0;
  overflow: visible;
}

.tv .tv-home-side .recent li {
  transform-origin: 0;
  background: #ffffff0f;
  border: 0;
  border-radius: 8px;
  gap: 16px;
  padding: 14px 18px;
}

.tv .tv-home-side .recent li b {
  font-size: 20px;
}

.tv .tv-home-side .recent li small {
  color: #ffffff80;
  font-size: 15px;
}

.tv .tv-home-side .recent li:focus {
  color: #000;
  box-shadow: none;
  background: #fff;
  outline: none;
  transform: scale(1.02);
}

.tv .tv-home-side .recent li:focus small {
  color: #0009;
}

.tv .recent .icon-btn {
  display: none;
}

.tv-chip {
  color: #ffffffd9;
  cursor: pointer;
  background: #ffffff1a;
  border: 0;
  border-radius: 23px;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
}

.tv-chip .ic, .tv-chip [data-icon] {
  width: 18px;
  height: 18px;
}

.tv .tv-chip:focus {
  color: #000;
  box-shadow: none;
  background: #fff;
  outline: none;
}

.tv-field {
  margin-bottom: 22px;
}

.tv-field input {
  color: #fff;
  background: #ffffff1a;
  border: 2px solid #0000;
  border-radius: 8px;
  width: 100%;
  height: 64px;
  padding: 0 20px;
  font-size: 24px;
}

.tv .tv-field input:focus {
  box-shadow: none;
  border-color: #fff;
  outline: none;
}

.tv-field .code-form {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
}

.tv-field .code-form button {
  display: none;
}

.tv-err {
  color: #ff6b6b !important;
  margin: -8px 0 18px !important;
  font-size: 18px !important;
}

.to-tv {
  background: #ffffff0d;
  border-radius: 8px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.to-tv b {
  font-size: 15px;
}

.tv-qr {
  background: #fff;
  border-radius: 6px;
  width: 132px;
  height: 132px;
  padding: 6px;
}

.tv-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tv .tv-home .tv-pair.with-qr {
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}

.tv .tv-home .tv-pair.with-qr .tv-qr {
  grid-area: 1 / 1 / 4;
}

.tv .tv-home .tv-pair.with-qr b, .tv .tv-home .tv-pair.with-qr span, .tv .tv-home .tv-pair.with-qr code {
  grid-area: auto / 2;
}

.tv .tv-home .tv-pair.with-qr code {
  font-size: 26px;
}

.casting .hero {
  text-align: left;
  align-items: stretch;
  max-width: 560px;
  min-height: 0;
  padding: 8px 0 24px;
}

.casting .hero-copy {
  align-items: stretch;
}

.casting .hero-scene, .casting .hero-feats {
  display: none;
}

.casting .hero-title {
  font-size: clamp(30px, 7vw, 44px);
}

.casting .hero-copy .recent {
  margin: 0;
  animation: none;
}

.casting .hero-copy .recent ul {
  grid-auto-columns: auto;
  grid-auto-flow: row;
  padding: 0;
  overflow: visible;
}

.casting .hero-copy .recent li:hover {
  transform: none;
}

.tv .tv-home-side > .tv-pair {
  row-gap: 8px;
  margin-top: 40px;
  padding: 26px;
}

.tv .tv-home-side > .tv-pair .tv-qr {
  width: 190px;
  height: 190px;
}

.tv .tv-home-side > .tv-pair b {
  font-size: 24px;
}

.tv .tv-home-side > .tv-pair span {
  font-size: 17px;
}

.recent-libs + .recent {
  margin-top: 18px;
}

.lib-tile {
  color: #fff;
  background: linear-gradient(150deg, #e50914, #5a0006);
}

.lib-tile .ic {
  width: 22px;
  height: 22px;
}

.room-stack {
  flex: none;
  align-items: center;
  min-width: 42px;
  display: flex;
}

.room-stack .stack-av {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 2px var(--surface-2);
  border-radius: 50%;
  font-size: 13px;
}

.room-stack .stack-av + .stack-av {
  margin-left: -9px;
}

.room-stack .stack-av.more {
  color: #ddd;
  background: #3a3a3c;
  font-size: 11px;
}

.recent .r-name small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.tv .room-stack {
  min-width: 52px;
}

.tv .room-stack .stack-av {
  width: 36px;
  height: 36px;
  font-size: 16px;
  box-shadow: 0 0 0 2px #1d1d1f;
}

.tv .room-stack .stack-av.more {
  font-size: 13px;
}

.tv .tv-home-side .recent li:focus .stack-av {
  box-shadow: 0 0 0 2px #fff;
}

.tv .recent .room-avatar {
  width: 48px;
  height: 48px;
}

.casting .hero-copy .recent ul {
  grid-template-columns: minmax(0, 1fr);
}

.recent ul {
  scroll-snap-type: none;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  grid-auto-columns: auto;
  grid-auto-flow: row;
  overflow: visible;
}

@media (hover: hover) {
  .recent li .icon-btn {
    opacity: 0;
    transition: opacity .15s;
  }

  .recent li:hover .icon-btn, .recent li .star.on {
    opacity: 1;
  }

  .recent li .icon-btn:focus-visible {
    opacity: 1;
  }
}

.room-tile {
  color: #ffffffb3;
  background: #2a2a2c;
}

.room-tile .ic {
  width: 22px;
  height: 22px;
}

.remote-acts {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.remote-acts .btn {
  padding: 10px 16px;
}

.recent li {
  min-width: 0;
}

.recent h2 {
  letter-spacing: -.01em;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.recent ul.tiles {
  grid-template-columns: repeat(auto-fill, minmax(min(214px, 100%), 1fr));
  gap: 22px 16px;
  padding: 2px 0 6px;
}

.recent li.tile {
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 16px;
  outline: none;
  padding: 0;
  display: block;
}

.recent li.tile:hover {
  box-shadow: none;
  background: none;
  transform: none;
}

.tile-cover {
  --h: 0;
  aspect-ratio: 16 / 10;
  background: radial-gradient(120% 95% at 12% 0%, hsl(var(--h) 80% 52% / .85), transparent 58%), radial-gradient(90% 110% at 100% 100%, hsl(calc(var(--h)  + 50) 75% 38% / .9), transparent 62%), linear-gradient(160deg, hsl(var(--h) 30% 16%), #0e0e10);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border-radius: 16px;
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff14, 0 10px 30px #00000059;
}

.tile-cover:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(#ffffff1a, #0000 38%, #00000059);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.tile-cover.lib {
  background: radial-gradient(110% 100% at 10% 0, #ff3b45, #0000 60%), radial-gradient(90% 100% at 100% 100%, #5a0006, #0000 65%), linear-gradient(160deg, #a10812, #2a0003);
}

.recent li.tile:hover .tile-cover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px #fff3, 0 22px 44px #0009;
}

.recent li.tile:focus-visible .tile-cover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px #fff3, 0 22px 44px #0009;
}

.recent li.tile:focus-visible .tile-cover {
  box-shadow: 0 0 0 3px #fff, 0 22px 44px #0009;
}

.tile-emblem {
  color: #fff;
  backdrop-filter: blur(6px);
  background: #00000047;
  border: 1px solid #ffffff2e;
  border-radius: 50%;
  place-items: center;
  width: 56px;
  height: 56px;
  display: grid;
}

.tile-emblem .ic {
  width: 26px;
  height: 26px;
}

.tile-badge {
  letter-spacing: .02em;
  background: #00000059;
  border: 1px solid #fff3;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  position: absolute;
  top: 10px;
  left: 10px;
}

.tile-people {
  z-index: 1;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.tile-people .stack-av {
  width: 38px;
  height: 38px;
  font-size: 15px;
  box-shadow: 0 0 0 2px #0000008c;
}

.tile-people .stack-av + .stack-av {
  margin-left: -10px;
}

.tile-more {
  color: #d6d6d8;
  opacity: 0;
  background: none;
  border-radius: 8px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  transition: opacity .18s, background .18s;
  display: grid;
  position: absolute;
  top: 50%;
  right: 6px;
}

.tile-more .ic {
  width: 18px;
  height: 18px;
}

.recent li:hover .tile-more, .recent li:focus-within .tile-more, .recent li.acts-open .tile-more {
  opacity: 1;
}

.tile-more:hover, .acts-open .tile-more {
  color: #fff;
  background: #ffffff1f;
}

.tile-more:focus-visible {
  opacity: 1;
  outline-offset: 1px;
  outline: 2px solid #fff;
}

@media (hover: none) {
  .tile-more {
    opacity: .6;
  }

  .tile-more:before {
    content: "";
    position: absolute;
    top: -7px;
    bottom: -7px;
    left: -7px;
    right: -7px;
  }
}

.tile-menu {
  z-index: 60;
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  min-width: 210px;
  animation: pop-in .16s var(--ease);
  background: #161618f5;
  border-radius: 12px;
  gap: 2px;
  padding: 6px;
  display: grid;
  position: fixed;
  box-shadow: 0 18px 50px #000000a6;
}

.tile-mi {
  width: 100%;
  height: 38px;
  color: var(--text);
  text-align: left;
  background: none;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.tile-mi .ic {
  color: #b5b5b8;
  flex: none;
  width: 18px;
  height: 18px;
}

.tile-mi:hover {
  background: #ffffff1a;
  outline: none;
}

.tile-mi:focus-visible {
  background: #ffffff1a;
  outline: none;
}

.tile-mi.on .ic {
  color: var(--warn);
}

.tile-mi.on .ic path {
  fill: currentColor;
}

.tile-mi.danger, .tile-mi.danger .ic {
  color: #ff6b73;
}

.tile-mi.danger:hover {
  background: #ff4d5724;
}

.tile-pin {
  z-index: 1;
  width: 26px;
  height: 26px;
  color: var(--warn);
  background: #0006;
  border-radius: 50%;
  place-items: center;
  transition: opacity .2s;
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
}

.tile-pin .ic {
  width: 14px;
  height: 14px;
}

.tile-pin .ic path {
  fill: currentColor;
}

.recent li.tile:hover .tile-pin, .recent li.tile:focus-within .tile-pin {
  opacity: 0;
}

@media (hover: none) {
  .tile-pin {
    display: none;
  }
}

.tile-body {
  gap: 3px;
  min-width: 0;
  padding: 10px 2px 0;
  display: grid;
}

.tile-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 650;
  overflow: hidden;
}

.tile-sub {
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  overflow: hidden;
}

input.tile-rename:not([type]) {
  border-color: #ffffff80;
  border-radius: 6px;
  height: 28px;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 650;
}

@media (max-width: 640px) {
  .recent ul.tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .tile-people .stack-av {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .tile-emblem {
    width: 46px;
    height: 46px;
  }
}

.tv .screen.fs, .tv .screen.fs .video-wrap {
  width: calc(100vw / var(--z, 1));
  height: calc(100vh / var(--z, 1));
}

.tv .home {
  height: calc(100vh / var(--z, 1));
}

dialog.tv-leave {
  width: calc(100vw / var(--z, 1));
  height: calc(100vh / var(--z, 1));
}

.tv .screen.fs .toasts {
  max-width: calc(46vw / var(--z, 1));
}

.tv-room b {
  max-width: calc(42vw / var(--z, 1));
}

.tv dialog.sheet {
  max-height: calc(80vh / var(--z, 1));
}

.tv dialog.sheet.lib-sheet {
  width: min(1240px, calc(100vw / var(--z, 1)  - 32px));
  height: min(900px, calc(88vh / var(--z, 1)));
  max-height: none;
}

.no-flex-gap .btn > [data-icon], .no-flex-gap .tv-chip > [data-icon], .no-flex-gap .icon-btn + .lbl, .no-flex-gap .lib-btn > [data-icon] {
  margin-right: 10px;
}

.no-flex-gap .tv-flex > * + *, .no-flex-gap .dock-left > * + *, .no-flex-gap .dock-right > * + *, .no-flex-gap .tv-people > * + * {
  margin-left: 10px;
}

.no-flex-gap .tv-room > * + * {
  margin-left: 20px;
}

.no-flex-gap .tv-top > * + * {
  margin-left: 24px;
}

.no-flex-gap .recent > * + *, .no-flex-gap .tv-home-side .recent ul > * + * {
  margin-top: 10px;
}

.no-flex-gap .recent li > * + * {
  margin-left: 14px;
}

.no-flex-gap .tv-leave-actions > * + * {
  margin-top: 12px;
}

.no-flex-gap .remote-acts > * + *, .no-flex-gap .sheet-actions > * + * {
  margin-left: 8px;
}

.booting body > * {
  visibility: hidden;
}

.booting body:after {
  content: "ВМЕСТЕ";
  font: 900 56px / 1 var(--font-display);
  letter-spacing: .08em;
  color: var(--red);
  text-shadow: 0 0 40px #e5091473;
  background: #000;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

:root:not(.tv) .room {
  --room-r: 20px;
}

:root:not(.tv) .topbar {
  gap: 12px;
  padding: 12px 0 14px;
}

:root:not(.tv) .top-actions .leave-btn {
  border-radius: 999px;
  height: 40px;
  margin-left: 4px;
  padding: 0 16px 0 12px;
}

:root:not(.tv) .top-actions .leave-btn .lbl {
  display: inline;
}

@media (max-width: 640px) {
  :root:not(.tv) .top-actions .leave-btn {
    margin-left: 0;
    padding: 0 12px 0 10px;
    font-size: 13.5px;
  }

  :root:not(.tv) .top-actions .phone-btn, :root:not(.tv) .topbar #btn-star {
    display: none;
  }
}

:root:not(.tv) .topbar .wordmark.small {
  margin: 0 6px 0 2px;
  font-size: 18px;
}

.room-cover {
  --h: 0;
  color: #fff;
  background: radial-gradient(120% 95% at 12% 0%, hsl(var(--h) 80% 52% / .9), transparent 58%), radial-gradient(90% 110% at 100% 100%, hsl(calc(var(--h)  + 50) 75% 38% / .9), transparent 62%), linear-gradient(160deg, hsl(var(--h) 30% 16%), #0e0e10);
  border-radius: 12px;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}

.room-cover.lib {
  background: linear-gradient(150deg, #e50914, #5a0006);
}

.room-cover .ic {
  opacity: .92;
  width: 20px;
  height: 20px;
}

.tv .room-cover {
  display: none;
}

:root:not(.tv) .room-title {
  flex: 0 520px;
  gap: 10px;
}

.room-title-text {
  flex: 1;
  min-width: 0;
  display: grid;
}

.room-title-row {
  align-items: center;
  min-width: 0;
  display: flex;
}

:root:not(.tv) .room-name {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  border-radius: 8px;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  padding: 2px 6px !important;
}

:root:not(.tv) .room-title .star {
  width: 30px;
  height: 30px;
}

:root:not(.tv) .room-title .star .ic {
  width: 17px;
  height: 17px;
}

.room-sub {
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 6px;
  font-size: 12px;
  line-height: 16px;
  display: flex;
}

.room-sub .pill {
  background: none;
  flex: none;
  padding: 0;
  font-size: 12px;
}

.room-sub .status-line {
  color: var(--faint);
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden;
}

.room-sub .status-line:not(:empty):before {
  content: "·";
  margin-right: 8px;
}

:root:not(.tv) .top-actions {
  gap: 8px;
}

:root:not(.tv) .top-actions .btn.primary {
  background: linear-gradient(#ff2a35, #d50a14);
  border-radius: 999px;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  box-shadow: 0 8px 24px #e509144d, inset 0 1px #ffffff38;
}

:root:not(.tv) .top-actions .btn.primary:hover {
  background: linear-gradient(#ff4049, #e50914);
}

:root:not(.tv) .top-actions .icon-btn {
  background: #ffffff0f;
  border: 1px solid #ffffff14;
}

:root:not(.tv) .top-actions .icon-btn:hover {
  background: #ffffff1f;
}

:root:not(.tv) .screen {
  position: relative;
}

.ambient {
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  filter: blur(48px) saturate(1.6);
  width: 100%;
  height: 100%;
  transition: opacity 1.4s var(--ease);
  border-radius: var(--room-r, 20px);
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1.04);
}

.ambient.on {
  opacity: .6;
}

:root:not(.tv) .screen.amb:not(.fs) .video-wrap {
  background: #0000008c;
}

:root:not(.tv) .screen.amb:not(.fs) .player video {
  background: none;
}

.tv .ambient {
  display: none;
}

:root:not(.tv) .video-wrap {
  z-index: 1;
  border-radius: var(--room-r);
  box-shadow: 0 30px 80px #0000008c, 0 0 0 1px #ffffff0f;
}

:root:not(.tv) .screen.fs .video-wrap {
  box-shadow: none;
  border-radius: 0;
}

:root:not(.tv) .dock .icon-btn {
  color: #fff;
}

:root:not(.tv) .dock .icon-btn:hover {
  background: #ffffff24;
}

:root:not(.tv) .dock .icon-btn.off {
  color: #ff6b73;
}

:root:not(.tv) .play-btn {
  width: 48px;
  height: 48px;
  box-shadow: 0 6px 22px #00000073;
}

:root:not(.tv) .tl-track, :root:not(.tv) .tl-buf, :root:not(.tv) .tl-played {
  border-radius: 999px;
}

:root:not(.tv) .tl-knob {
  background: #fff;
  box-shadow: 0 0 0 4px #e5091447, 0 2px 8px #00000080;
}

:root:not(.tv) .dock-react {
  backdrop-filter: blur(10px);
  background: #ffffff14;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  padding: 0 4px;
}

:root:not(.tv) .dock-react button {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

:root:not(.tv) .dock .lib-btn {
  background: #ffffff1f;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  height: 36px;
}

:root:not(.tv) .dock .lib-btn:hover {
  background: #fff3;
}

:root:not(.tv) .pop {
  border-radius: 18px;
}

@media (min-width: 961px) and (hover: hover) {
  :root:not(.tv):not(.companion) .screen:not(.fs) .dock {
    z-index: 8;
    border-radius: 0 0 var(--room-r) var(--room-r);
    background: linear-gradient(to top, #000000e0, #00000080 55%, #0000);
    border: 0;
    padding: 64px 18px 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  :root:not(.tv):not(.companion) .screen.idle:not(.fs) .dock {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }

  :root:not(.tv):not(.companion) .screen.idle:not(.fs) {
    cursor: none;
  }

  :root:not(.tv):not(.companion) .screen:not(.fs) .toasts {
    transition: bottom .3s var(--ease);
    bottom: 128px;
  }

  :root:not(.tv):not(.companion) .screen.idle:not(.fs) .toasts {
    bottom: 18px;
  }

  :root:not(.tv):not(.companion) .screen:not(.fs) .tap.small, :root:not(.tv):not(.companion) .screen:not(.fs) .next-ep {
    bottom: 128px;
  }

  :root:not(.tv):not(.companion) .screen:not(.fs) .empty-state {
    padding-bottom: 110px;
  }
}

:root:not(.tv) .side {
  border-radius: var(--room-r);
  backdrop-filter: blur(16px);
  background: #101012cc;
  border: 1px solid #ffffff14;
  gap: 12px;
  padding: 12px;
}

:root:not(.tv) .people-box {
  flex-direction: column;
  flex: 0 auto;
  gap: 6px;
  min-height: 0;
  max-height: min(46%, 400px);
  display: flex;
}

.people-head {
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  display: flex;
}

.people-toggle {
  cursor: pointer;
  height: 36px;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 650;
  transition: background .18s;
  display: inline-flex;
}

.people-toggle:hover {
  background: #ffffff12;
}

.people-toggle .ic {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}

.people-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.people-label.talk {
  color: var(--ok);
}

.people-label.talk:before {
  content: "";
  background: var(--ok);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  animation: 1.2s ease-in-out infinite rec;
  display: inline-block;
  box-shadow: 0 0 0 3px #46d36933;
}

.people-toggle .count {
  background: #ffffff1f;
  border-radius: 999px;
  margin-left: 0;
}

.people-chev .ic {
  transition: transform .25s var(--ease);
  margin-left: -2px;
}

.people-open .people-chev .ic {
  transform: rotate(180deg);
}

.people-strip {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  padding: 4px 4px 4px 8px;
  display: flex;
  overflow: hidden;
}

.people-open .people-strip {
  display: none;
}

.strip-av {
  cursor: pointer;
  width: 34px;
  height: 34px;
  transition: transform .2s var(--spring);
  background: none;
  border: 0;
  border-radius: 50%;
  flex: none;
  padding: 0;
  position: relative;
}

.strip-av + .strip-av {
  margin-left: -7px;
}

.strip-av:hover {
  z-index: 1;
  outline: none;
  transform: translateY(-2px);
}

.strip-av:focus-visible {
  z-index: 1;
  outline: none;
  transform: translateY(-2px);
}

.strip-av .avatar {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 2px;
  font-size: 13px;
  box-shadow: 0 0 0 2px #121214;
}

.strip-av .avatar:after {
  border-radius: 50%;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
}

.strip-av.speaking {
  z-index: 1;
}

.strip-av.speaking .avatar:after {
  opacity: 1;
  animation: 1.2s ease-in-out infinite ring;
  transform: scale(1);
}

.strip-av.muted .avatar {
  opacity: .45;
}

.strip-av.more {
  color: #ddd;
  place-items: center;
  width: 34px;
  font-size: 11.5px;
  font-weight: 800;
  display: grid;
}

.strip-av.more:before {
  content: "";
  z-index: -1;
  background: #2c2c30;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  right: 2px;
  box-shadow: 0 0 0 2px #121214;
}

:root:not(.tv) .members {
  flex: 0 auto;
  align-content: start;
  gap: 2px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

:root:not(.tv) .side:not(.people-open) .members {
  display: none;
}

:root:not(.tv) .side .chat {
  border-top: 1px solid var(--line);
  flex: 1 1 0;
  min-height: 150px;
  padding-top: 10px;
}

:root:not(.tv) .members li {
  border-radius: 14px;
  padding: 8px 10px;
}

:root:not(.tv) .members .avatar, :root:not(.tv) .msg .avatar, :root:not(.tv) .react-line .avatar, :root:not(.tv) .members .avatar:after {
  border-radius: 50%;
}

:root:not(.tv) .lib-box {
  border-radius: 14px;
}

:root:not(.tv) .chat-log {
  gap: 6px;
  padding: 4px 2px;
}

:root:not(.tv) .bubble {
  background: #232327;
  border-radius: 18px 18px 18px 6px;
  padding: 9px 14px;
  line-height: 1.4;
}

:root:not(.tv) .bubble b {
  color: #ff9aa1;
  margin-bottom: 2px;
  font-weight: 700;
}

:root:not(.tv) .msg.mine .bubble {
  background: linear-gradient(160deg, #e50914, #a1060f);
  border-radius: 18px 18px 6px;
}

:root:not(.tv) .sys {
  background: #ffffff0a;
  border-radius: 999px;
  padding: 4px 12px;
}

:root:not(.tv) .composer {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  transition: border-color .18s;
}

:root:not(.tv) .composer:focus-within {
  border-color: #ffffff4d;
}

:root:not(.tv) .composer input {
  background: none;
  border: 0;
  border-radius: 0;
  height: 40px;
  padding: 0 6px;
}

:root:not(.tv) .composer input:focus {
  box-shadow: none;
  background: none;
}

.composer-react {
  cursor: pointer;
  width: 40px;
  height: 40px;
  transition: background .18s, transform .2s var(--spring);
  background: none;
  border: 0;
  border-radius: 50%;
  flex: none;
  font-size: 20px;
  line-height: 1;
}

.composer-react:hover {
  background: #ffffff1a;
  transform: scale(1.08);
}

.tv .composer-react {
  display: none;
}

:root:not(.tv) .send {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

@media (max-width: 960px) {
  :root:not(.tv):not(.companion) .room {
    height: 100vh;
    flex-direction: column;
    gap: 0;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
  }

  :root:not(.tv):not(.companion) .topbar {
    flex: none;
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }

  :root:not(.tv):not(.companion) .top-people {
    display: none;
  }

  :root:not(.tv):not(.companion) .top-actions .btn.primary {
    justify-content: center;
    width: 40px;
    padding: 0;
  }

  :root:not(.tv):not(.companion) .top-actions .btn.primary .lbl {
    display: none;
  }

  :root:not(.tv):not(.companion) .room-cover {
    border-radius: 10px;
    width: 34px;
    height: 34px;
  }

  :root:not(.tv):not(.companion) .room-sub .status-line:before {
    content: none;
  }

  :root:not(.tv):not(.companion) .topbar .room-sub .pill {
    gap: 0;
    font-size: 0;
    display: inline-flex;
  }

  :root:not(.tv):not(.companion) .stage {
    flex: none;
    gap: 0;
    overflow: visible;
  }

  :root:not(.tv):not(.companion) .screen {
    flex: none;
  }

  :root:not(.tv):not(.companion) .ambient {
    display: none;
  }

  :root:not(.tv):not(.companion) .video-wrap {
    aspect-ratio: 16 / 9;
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
    flex: none;
  }

  :root:not(.tv):not(.companion) .screen:not(.fs) .dock {
    background: #0c0c0d;
    border: 0;
    border-radius: 0;
    padding: 2px 10px 6px;
  }

  :root:not(.tv):not(.companion) .under:has(.error[hidden]) {
    display: none;
  }

  :root:not(.tv):not(.companion) .side {
    min-height: 0;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    flex: 1;
    margin: 8px 8px 0;
  }
}

:root:not(.tv) .empty-actions .btn {
  border-radius: 999px;
  padding: 11px 20px;
}

.recent ul.tickets {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  gap: 12px;
  padding: 4px 2px 8px;
  display: grid;
  overflow: visible;
}

.recent li.ticket {
  --h: 0;
  min-height: 70px;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  filter: drop-shadow(0 10px 18px #00000080);
  transition: transform .3s var(--ease), filter .3s;
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 0;
  padding: 0;
  display: grid;
  position: relative;
}

.recent li.ticket:hover {
  box-shadow: none;
  filter: drop-shadow(0 16px 26px #0009);
  background: none;
  transform: translateY(-2px);
}

.recent li.ticket:focus-visible {
  box-shadow: none;
  filter: drop-shadow(0 16px 26px #0009);
  background: none;
  transform: translateY(-2px);
}

.recent li.ticket:focus-visible .ticket-main {
  box-shadow: inset 0 0 0 2px #fff;
}

.ticket-main {
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--h) 45% 40% / .2), transparent 60%), linear-gradient(150deg, #201b1e, #141114);
  border-radius: 12px 0 0 12px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 12px 12px 18px;
  display: flex;
  position: relative;
  -webkit-mask: radial-gradient(9px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(9px at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

.ticket-main:before {
  content: "";
  background: hsl(var(--h) 42% 56%);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.ticket.lib .ticket-main:before {
  background: #c9a55a;
}

.ticket-stub {
  color: var(--red);
  background: linear-gradient(150deg, #1c181b, #141114);
  border-left: 1.5px dashed #ffffff29;
  border-radius: 0 12px 12px 0;
  place-content: center;
  justify-items: center;
  gap: 4px;
  transition: background .18s, color .18s;
  display: grid;
  position: relative;
  -webkit-mask: radial-gradient(9px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(9px at 0 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(9px at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}

.ticket-stub span {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.ticket-stub .ic {
  width: 20px;
  height: 20px;
}

.ticket.lib .ticket-stub {
  color: #d6d1cc;
}

.recent li.ticket:hover .ticket-stub {
  background: var(--red);
  color: #fff;
  border-left-color: #0000;
}

.recent li.ticket:focus-visible .ticket-stub {
  background: var(--red);
  color: #fff;
  border-left-color: #0000;
}

.recent li.ticket.lib:hover .ticket-stub {
  color: #111;
  background: #f4f4f2;
}

.recent li.ticket.lib:focus-visible .ticket-stub {
  color: #111;
  background: #f4f4f2;
}

.ticket-av.room-stack .stack-av {
  width: 30px;
  height: 30px;
  font-size: 13px;
  box-shadow: 0 0 0 2px #1b1619;
}

.ticket-av.room-stack .stack-av + .stack-av {
  margin-left: -9px;
}

.ticket-av.room-avatar {
  border-radius: 10px;
  width: 38px;
  height: 38px;
}

.ticket-av.room-tile {
  background: hsl(var(--h) 25% 22%);
}

.ticket-av.lib-tile {
  color: #c9a55a;
  background: #2a2521;
}

.ticket-text {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.ticket-kind {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warn);
  font-size: 10.5px;
  font-weight: 800;
}

.ticket-kind:empty {
  display: none;
}

.ticket.pinned .ticket-kind {
  color: var(--warn);
}

.ticket-text .tile-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
}

.ticket-sub {
  color: #8f8f93;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.ticket .ticket-text {
  padding-right: 26px;
}

.recent li.ticket.acts-open {
  filter: drop-shadow(0 16px 26px #0009);
  transform: translateY(-2px);
}

.home:not(.side-rooms):not(.mid-rooms) .hero-copy .recent ul.tickets {
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  grid-template-columns: none;
  grid-auto-columns: minmax(290px, 330px);
  grid-auto-flow: column;
  padding: 8px 4px 14px;
  overflow: auto hidden;
}

.home:not(.side-rooms):not(.mid-rooms) .hero-copy .recent ul.tickets::-webkit-scrollbar {
  display: none;
}

.home:not(.side-rooms):not(.mid-rooms) .hero-copy .recent ul.tickets > li {
  scroll-snap-align: start;
}

.home:not(.side-rooms):not(.mid-rooms) .hero-copy .recent ul.tickets.stack {
  scroll-snap-type: none;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto;
  grid-auto-flow: row;
  gap: 10px;
  padding: 4px 2px 6px;
  overflow: visible;
}

.tickets.stack.collapsed > li:nth-child(n+4) {
  display: none;
}

.recent-more {
  color: #d9d6d3;
  height: 44px;
  font: 600 14.5px var(--font);
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  align-self: center;
  margin: 2px auto 0;
  padding: 0 18px;
  display: block;
}

.recent-more[hidden] {
  display: none;
}

.side-rooms .hero-copy .recent ul.tickets {
  padding: 6px 4px 10px;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .cine-eyebrow {
    letter-spacing: .06em;
    font-size: 11px;
  }
}

.mid-rooms .hero-copy .home-lists {
  grid-template-columns: minmax(0, 1fr) var(--row-w, 560px) minmax(0, 1fr);
  pointer-events: none;
  align-items: start;
  column-gap: 40px;
  width: calc(100vw - 2 * clamp(16px, 4vw, 56px));
  max-width: none;
  margin: 0;
  display: grid;
  position: absolute;
  top: calc(100% + 30px);
  left: 50%;
  transform: translateX(-50%);
}

.mid-rooms .hero-copy .home-lists > * {
  pointer-events: auto;
  width: 100%;
  max-width: 360px;
}

.mid-rooms #recent {
  grid-area: 1 / 1;
  justify-self: end;
}

.mid-rooms #recent-libs, .mid-rooms #lib-promo {
  grid-area: 1 / 3;
  justify-self: start;
  margin-top: 0;
}

.mid-rooms .hero-copy .recent {
  gap: 8px;
}

.mid-rooms .hero-copy .recent ul.tickets {
  max-height: calc(var(--row-h, 180px)  + 30px);
  scrollbar-width: none;
  padding: 6px 4px 10px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(#000 88%, #0000);
  mask-image: linear-gradient(#000 88%, #0000);
}

.mid-rooms .hero-copy .recent ul.tickets::-webkit-scrollbar {
  display: none;
}

:root:not(.tv) .empty-state {
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
}

.empty-inner {
  text-align: left;
  width: min(560px, 100%);
  animation: rise .5s var(--ease) both;
  gap: 14px;
  display: grid;
}

.empty-inner h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.empty-inner > p {
  margin: -6px 0 2px;
  font-size: 14px;
}

.pick-grid {
  justify-content: stretch;
  gap: 8px;
  display: grid;
}

.pick {
  text-align: left;
  width: 100%;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: background .18s, border-color .18s, transform .2s var(--ease);
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  grid-template-rows: auto auto;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 1px 14px;
  padding: 11px 14px;
  display: grid;
  border-radius: 16px !important;
}

.pick:hover {
  background: #ffffff17;
  border-color: #fff3;
  transform: translateY(-1px);
}

.pick.primary {
  background: linear-gradient(135deg, #e5091442, #e5091412);
  border-color: #e5091473;
}

.pick.primary:hover {
  background: linear-gradient(135deg, #e5091457, #e509141a);
  border-color: #ff4650d9;
}

.pick-ic {
  color: #fff;
  background: #ffffff14;
  border-radius: 12px;
  grid-row: 1 / 3;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}

.pick.primary .pick-ic {
  background: var(--red);
  box-shadow: 0 8px 22px #e5091459;
}

.pick-ic .ic {
  width: 22px;
  height: 22px;
}

.pick b {
  font-size: 15px;
  font-weight: 700;
}

.pick small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.phone-card {
  background: #ffffff09;
  border: 1px dashed #ffffff2e;
  border-radius: 18px;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 12px;
  display: grid;
}

.phone-qr {
  background: #fff;
  border-radius: 12px;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 6px;
  display: grid;
}

.phone-qr:empty {
  background: #ffffff0f;
}

.phone-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-text {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.phone-text b {
  font-size: 14.5px;
}

.phone-text span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.phone-text .link-btn {
  justify-self: start;
  margin-top: 2px;
}

.phone-card.paired {
  background: #46d36912;
  border-style: solid;
  border-color: #46d36966;
  grid-template-columns: 1fr;
}

.phone-card.paired .phone-qr {
  display: none;
}

.phone-card.paired b {
  color: var(--ok);
}

.companion .phone-card, .tv .phone-card {
  display: none;
}

@media (min-width: 961px) and (hover: hover) {
  :root:not(.tv):not(.companion) .screen:not(.fs) .empty-state {
    padding-bottom: 92px;
  }
}

@media (max-height: 700px) and (min-width: 961px) {
  .empty-inner {
    gap: 10px;
  }

  .empty-inner > p {
    display: none;
  }

  .pick {
    padding: 9px 12px;
  }

  .phone-card {
    grid-template-columns: 88px 1fr;
    padding: 10px;
  }

  .phone-qr {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 640px) {
  :root:not(.tv) .empty-state {
    padding: 18px 14px 22px;
  }

  .empty-inner h2 {
    font-size: 24px;
  }

  .phone-card {
    display: none;
  }
}

:root:not(.tv) .dock.no-video .timeline, :root:not(.tv) .dock.no-video .dock-left, :root:not(.tv) .dock.no-video #btn-media, :root:not(.tv) .dock.no-video #btn-fill, :root:not(.tv) .dock.no-video #btn-fs, :root:not(.tv) .dock.no-video #btn-source, :root:not(.tv) .dock.no-video #btn-library, :root:not(.tv) .dock.no-video .vol {
  display: none !important;
}

:root:not(.tv) .dock.no-video .dock-row {
  justify-content: center;
  gap: 12px;
}

:root:not(.tv) .dock.no-video .dock-react, :root:not(.tv) .dock.no-video .dock-right {
  margin: 0;
}

:root:not(.tv) .dock.no-video #btn-mic {
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  gap: 8px;
  width: auto;
  height: 38px;
  padding: 0 14px 0 10px;
}

:root:not(.tv) .dock.no-video #btn-mic:after {
  content: "Микрофон";
  font-size: 13px;
  font-weight: 700;
}

:root:not(.tv) .dock.no-video #btn-mic.off:after {
  content: "Микрофон выключен";
}

:root:not(.tv) .dock.no-video #btn-mic.on:after {
  content: "Микрофон включён";
}

@media (min-width: 961px) and (hover: hover) {
  :root:not(.tv):not(.companion) .screen:not(.fs) .dock.no-video {
    background: linear-gradient(to top, #000000b3, #0000);
    padding-top: 36px;
  }
}

:root:not(.tv) .top-actions .btn.ghost {
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 10px;
  font-size: 14px;
}

:root:not(.tv) .top-actions .btn.ghost:hover {
  background: #ffffff1f;
}

:root:not(.tv) .top-actions .btn.ghost .ic {
  width: 18px;
  height: 18px;
}

:root:not(.tv) .top-actions .phone-btn.paired {
  color: var(--ok);
  background: #46d36914;
  border-color: #46d36966;
}

@media (max-width: 960px) {
  :root:not(.tv):not(.companion) .top-actions .btn.ghost {
    justify-content: center;
    width: 40px;
    padding: 0;
  }
}

:root:not(.tv) .members li.person {
  border-radius: 14px;
  padding: 0;
  transition: background .18s;
  display: block;
}

:root:not(.tv) .members li.person.open {
  background: #ffffff0b;
}

.m-head {
  cursor: pointer;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 10px;
  display: flex;
}

:root:not(.tv) .members li.person:not(.open) .m-head:hover {
  background: #ffffff0d;
}

:root:not(.tv) .person .avatar {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
}

.m-name {
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 650;
  display: flex;
}

.m-name b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  overflow: hidden;
}

.m-you {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  background: #ffffff0f;
  border-radius: 4px;
  flex: none;
  padding: 2px 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.m-role {
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  display: inline-grid;
}

.m-role .ic {
  width: 15px;
  height: 15px;
}

.m-role.owner {
  color: #ffd166;
}

.m-role.mod {
  color: #9db4ff;
}

.m-prem {
  color: #ffd166;
  flex: none;
  font-size: 12px;
}

.m-sub {
  color: var(--faint);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.3;
  display: flex;
}

.m-chip {
  color: #d6d6d6;
  background: #ffffff14;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.m-chip.host {
  background: var(--red);
  color: #fff;
}

.m-chip.wait {
  color: var(--warn);
  background: #f5b40a29;
  animation: 1.4s ease-in-out infinite pulse;
}

.m-chip.ok {
  color: var(--ok);
  background: #46d36924;
}

.m-sub.talk .m-line {
  color: var(--ok);
  font-weight: 600;
}

.m-sub.p2p .m-line {
  color: #7fb48c;
}

.m-sub.relay .m-line {
  color: var(--warn);
}

.m-sub.fail .m-line, .m-sub.muted-you .m-line {
  color: var(--bad);
}

.m-devs {
  color: var(--faint);
  flex: none;
  align-items: center;
  gap: 3px;
  display: flex;
}

.m-dev {
  border-radius: 6px;
  place-items: center;
  width: 22px;
  height: 22px;
  display: inline-grid;
}

.m-dev .ic {
  width: 16px;
  height: 16px;
}

.m-dev.phone {
  color: var(--ok);
  background: #46d3691f;
}

.m-quick {
  opacity: 0;
  flex: none;
  width: 32px;
  height: 32px;
  transition: opacity .18s;
}

.m-head:hover .m-quick, .m-quick.on, .person.open .m-quick {
  opacity: 1;
}

.m-quick:focus-visible {
  opacity: 1;
}

.m-quick.on {
  color: var(--bad);
}

.m-quick.phone-hint {
  opacity: 1;
  color: var(--text);
  background: #ffffff14;
}

.m-quick.phone-hint:hover {
  color: var(--ok);
}

.m-chev {
  width: 18px;
  color: var(--faint);
  opacity: .55;
  transition: transform .25s var(--ease);
  flex: none;
}

.m-chev .ic {
  width: 16px;
  height: 16px;
}

.person.open .m-chev {
  opacity: .9;
  transform: rotate(90deg);
}

@media (hover: none) {
  .m-quick {
    opacity: .8;
  }
}

.m-card {
  animation: pop-in .2s var(--ease);
  gap: 10px;
  padding: 2px 12px 14px 58px;
  display: grid;
}

.m-who {
  color: var(--muted);
  gap: 1px;
  font-size: 12px;
  display: grid;
}

.m-who-dev {
  color: var(--faint);
}

.m-row {
  justify-items: start;
  gap: 6px;
  display: grid;
}

.m-note {
  color: var(--muted);
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  display: inline-flex;
}

.m-note.ok {
  color: var(--ok);
}

.m-note .ic {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.m-phone-btn {
  gap: 8px;
}

.m-phone-btn .ic {
  width: 16px;
  height: 16px;
}

.m-vol-title {
  color: var(--muted);
  margin-bottom: -4px;
  font-size: 12px;
}

.m-vol {
  align-items: center;
  gap: 10px;
  display: flex;
}

.m-vol-ic {
  width: 22px;
  color: var(--muted);
  place-items: center;
  display: inline-grid;
}

.m-vol-ic .ic {
  width: 18px;
  height: 18px;
}

.m-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--red) var(--p, 50%), #ffffff2e var(--p, 50%));
  border-radius: 99px;
  outline: none;
  flex: 1;
  height: 4px;
  margin: 0;
}

.m-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 4px #0009;
}

.m-vol input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.m-vol b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  color: var(--text);
  font-size: 12px;
}

.m-acts {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.m-acts .btn.small-btn, .m-card .btn.small-btn {
  border-radius: 999px;
  gap: 6px;
  padding: 7px 11px;
}

.m-acts .ic, .m-card .btn .ic {
  width: 15px;
  height: 15px;
}

.btn.danger:hover {
  background: #e5091459;
}

.btn.on {
  background: #e5091447;
}

.btn[disabled] {
  opacity: .55;
  cursor: default;
}

@media (min-width: 961px) and (hover: hover) {
  :root:not(.tv):not(.companion) .screen:not(.fs):has(.dock.no-video) .toasts {
    bottom: 78px;
  }
}

@media (max-width: 960px) {
  :root:not(.tv):not(.companion) .video-wrap:has( > .empty-state:not([hidden])) {
    aspect-ratio: auto;
    min-height: 0;
  }

  :root:not(.tv):not(.companion) .video-wrap:has( > .empty-state:not([hidden])) .empty-state {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }

  :root:not(.tv):not(.companion) .video-wrap:has( > .empty-state:not([hidden])) .toasts {
    z-index: 20;
    max-width: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

.companion .room {
  height: 100vh;
  flex-direction: column;
  gap: 0;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.companion .topbar {
  flex: none;
  gap: 8px;
  padding: 8px 10px 8px 8px;
}

.companion .topbar .wordmark, .companion .top-people {
  display: none;
}

.companion .room-title {
  flex: 1;
}

.companion .top-actions .btn.primary {
  justify-content: center;
  width: 40px;
  padding: 0;
}

.companion .top-actions .btn.primary .lbl {
  display: none;
}

.companion .room-cover {
  border-radius: 10px;
  width: 34px;
  height: 34px;
}

.companion .room-sub .status-line:before {
  content: none;
}

.companion .topbar .room-sub .pill {
  gap: 0;
  font-size: 0;
  display: inline-flex;
}

.companion .stage {
  flex: none;
  gap: 0;
  overflow: visible;
}

.companion .screen {
  flex: none;
}

.companion .ambient {
  display: none;
}

.companion .video-wrap {
  aspect-ratio: auto;
  min-height: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
  flex: none;
}

.companion .remote-card {
  text-align: left;
  background: none;
  grid-template-columns: 46px 1fr;
  place-items: center start;
  gap: 2px 12px;
  padding: 14px 14px 6px;
  display: grid;
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
}

.companion .remote-card > span {
  color: #ff6b73;
  background: linear-gradient(145deg, #e5091459, #e509141f);
  border-radius: 14px;
  grid-row: 1 / 3;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}

.companion .remote-card > span .ic {
  width: 22px;
  height: 22px;
}

.companion .remote-card b {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: none;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.companion .remote-card small {
  font-size: 12.5px;
}

.companion .remote-acts {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 10px;
}

.companion .remote-card > a.btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.companion .screen:not(.fs) .dock {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 4px 14px 6px;
}

.companion .dock-row {
  flex-wrap: wrap;
  gap: 8px 4px;
}

.companion .dock-left {
  flex: 1;
  justify-content: center;
  gap: 10px;
}

.companion .play-btn {
  width: 60px;
  height: 60px;
  margin: 0 6px;
}

.companion .play-btn .ic {
  width: 26px;
  height: 26px;
}

.companion .dock-left .icon-btn {
  width: 46px;
  height: 46px;
}

.companion .dock-left .icon-btn .ic {
  width: 24px;
  height: 24px;
}

.companion .time {
  text-align: center;
  order: 1;
  width: 100%;
  margin: -4px 0 2px;
}

.companion .dock-right {
  order: 2;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  display: grid;
}

.companion .dock-right #btn-mic {
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  gap: 8px;
  width: auto;
  height: 42px;
  padding: 0 16px 0 12px;
}

.companion .dock-right #btn-mic:after {
  content: "Микрофон";
  font-size: 13px;
  font-weight: 700;
}

.companion .dock-right #btn-mic.off:after {
  content: "Микрофон выкл";
}

.companion .dock-right #btn-mic.on:after {
  content: "Микрофон вкл";
}

.companion .dock-right #btn-mic.on {
  color: var(--ok);
  background: #46d3691a;
  border-color: #46d36959;
}

.companion .vol {
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 6px 0 2px;
  display: flex;
}

.companion .vol input {
  -webkit-appearance: none;
  appearance: none;
  background: #fff3;
  border-radius: 99px;
  height: 4px;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0 6px 0 0 !important;
}

.companion .vol input::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  box-shadow: 0 1px 4px #0009;
}

.companion .vol #btn-vol {
  width: 36px;
  height: 36px;
}

.companion .dock-right .lib-btn {
  display: none;
}

.companion .dock-react {
  order: 3;
  justify-content: space-between;
  width: 100%;
  margin: 2px 0 0;
}

.companion .dock-react .react-quick {
  display: flex;
}

.companion .dock-react .react-quick button {
  width: 42px;
  height: 42px;
  font-size: 22px;
  display: inline-block;
}

.companion .under:has(.error[hidden]) {
  display: none;
}

.companion .side {
  min-height: 0;
  padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  flex: 1;
  margin: 6px 8px 0;
}

.companion .empty-state [data-open="files"] {
  display: none;
}

.companion .video-wrap:has( > .empty-state:not([hidden])) .empty-state {
  padding: 16px 14px 10px;
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
}

.companion .empty-inner h2 {
  font-size: 22px;
}

.companion .empty-inner > p {
  font-size: 13px;
}

.room-title-text {
  flex: 1;
  min-width: 0;
}

.room-name {
  width: 100%;
  min-width: 0;
}

.companion .player, .companion .player > .remote-card {
  width: 100%;
  height: auto;
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
}

.dock .lib-btn .lbl {
  white-space: nowrap;
}

.m-head:focus-visible {
  outline-offset: -2px;
  outline: 2px solid #fff;
}

.tv .empty-inner {
  text-align: center;
  justify-items: center;
}

.tv .pick-grid {
  justify-items: center;
}

.invite-dlg p {
  margin: 0;
}

.invite-link {
  align-items: center;
  gap: 8px;
  display: flex;
}

.invite-link code {
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #ffffff0f;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  font-size: 13px;
  overflow: hidden;
}

.invite-link .btn {
  white-space: nowrap;
  gap: 6px;
}

.invite-split {
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  display: flex;
}

.qr.small {
  border-radius: 10px;
  flex: none;
  width: 120px;
  height: 120px;
  margin: 0;
  padding: 6px;
}

.invite-split-text {
  gap: 4px;
  display: grid;
}

.invite-friends {
  border-top: 1px solid var(--line);
  gap: 8px;
  padding-top: 8px;
  display: grid;
}

.invite-friends h3 {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 13px;
}

.invite-friends p[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .invite-link {
    flex-direction: column;
    align-items: stretch;
  }

  .invite-split {
    flex-direction: row;
  }
}

:root:not(.tv) .empty-state {
  background: radial-gradient(60% 45% at 50% 100%, #e5091424, #0000 70%), #070708;
}

:root:not(.tv) .empty-inner {
  text-align: center;
  justify-items: center;
  gap: 14px;
  width: min(700px, 100%);
}

:root:not(.tv) .empty-inner > h2, :root:not(.tv) .empty-inner > p, .tv .stage-people, .tv .stage-invite, .tv .stage-label, .tv .stage-mic-err {
  display: none;
}

.stage-people {
  --av: 96px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  width: 100%;
  display: flex;
}

.stage-people[data-size="m"] {
  --av: 72px;
  gap: 10px 12px;
}

.stage-people[data-size="s"] {
  --av: 56px;
  gap: 8px;
}

.stage-tile {
  width: calc(var(--av)  + 44px);
  color: #fff;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 16px;
  align-content: start;
  justify-items: center;
  padding: 10px 6px 8px;
  transition: background .18s;
  display: grid;
  position: relative;
}

.stage-tile:hover {
  background: #ffffff0f;
  outline: none;
}

.stage-tile:focus-visible {
  background: #ffffff0f;
  outline: none;
}

.stage-tile .avatar {
  width: var(--av);
  height: var(--av);
  font-size: calc(var(--av) * .38);
  border-radius: 50%;
  margin-bottom: 10px;
  font-weight: 600;
}

.stage-tile .avatar:after {
  border-width: 3px;
  border-radius: 50%;
  top: -6px;
  bottom: -6px;
  left: -6px;
  right: -6px;
}

.stage-tile.speaking .avatar:after {
  animation: none;
}

.stage-tile.muted .avatar {
  opacity: .45;
}

.stage-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
}

.stage-sub {
  color: #8f8a86;
  min-height: 16px;
  font-size: 12px;
  line-height: 1.3;
}

.stage-tile.speaking .stage-sub {
  color: var(--ok);
}

.stage-tile.bad .stage-sub {
  color: #ff4d57;
}

.stage-mic {
  z-index: 1;
  left: calc(50% + var(--av) * .2);
  top: calc(10px + var(--av) * .7);
  color: #ff4d57;
  background: #1d1d20;
  border-radius: 50%;
  place-items: center;
  width: 26px;
  height: 26px;
  display: none;
  position: absolute;
  box-shadow: 0 0 0 3px #0a0a0b;
}

.stage-tile.mic-off .stage-mic {
  display: grid;
}

.stage-mic .ic {
  width: 14px;
  height: 14px;
}

.stage-people[data-size="s"] .stage-mic {
  width: 22px;
  height: 22px;
}

.stage-people[data-size="s"] .stage-mic .ic {
  width: 12px;
  height: 12px;
}

.stage-plus .avatar {
  color: #a9a4a0;
  border: 1.5px dashed #ffffff47;
  background: none !important;
}

.stage-plus .avatar .ic {
  width: calc(var(--av) * .3);
  height: calc(var(--av) * .3);
}

.stage-plus .stage-name {
  color: #a9a4a0;
  font-weight: 500;
}

.stage-plus:hover .avatar {
  color: #fff;
  border-color: #fff9;
}

.stage-invite {
  justify-items: center;
  gap: 4px;
  margin-top: 2px;
  display: grid;
}

.stage-invite[hidden], .stage-mic-err[hidden] {
  display: none;
}

.stage-invite b {
  font-size: 16px;
  font-weight: 600;
}

.stage-invite span {
  color: #a9a4a0;
  font-size: 14px;
}

.stage-invite .btn {
  height: 44px;
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
  background: var(--red);
  box-shadow: none;
  color: #fff;
  border-radius: 12px;
  gap: 8px;
  margin-top: 10px;
  padding: 0 18px 0 14px;
}

.stage-invite .btn:hover {
  background: var(--red-hi);
}

.stage-invite .btn .ic {
  width: 18px;
  height: 18px;
}

.stage-mic-err {
  color: #ffb3b8;
  text-align: left;
  background: #ff4d571a;
  border: 1px solid #ff4d574d;
  border-radius: 12px;
  max-width: 460px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.stage-label {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f8a86;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

:root:not(.tv) .empty-inner .pick-grid {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  display: flex;
}

:root:not(.tv) .empty-inner .pick {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 44px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  transform: none;
}

:root:not(.tv) .empty-inner .pick[hidden] {
  display: none;
}

:root:not(.tv) .empty-inner .pick:hover {
  background: #ffffff1a;
  border-color: #ffffff38;
}

:root:not(.tv) .empty-inner .pick-ic {
  width: 20px;
  height: 20px;
  box-shadow: none;
  color: #d6d1cd;
  background: none;
  border-radius: 0;
}

:root:not(.tv) .empty-inner .pick-ic .ic {
  width: 18px;
  height: 18px;
}

:root:not(.tv) .empty-inner .pick b {
  letter-spacing: -.01em;
  font-size: 14px;
  font-weight: 600;
}

:root:not(.tv) .empty-inner .pick small {
  display: none;
}

:root:not(.tv):not(.companion) .phone-card {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
}

:root:not(.tv):not(.companion) .phone-card .phone-qr, :root:not(.tv):not(.companion) .phone-card .phone-text > span, :root:not(.tv):not(.companion) .phone-card .phone-text > b {
  display: none;
}

:root:not(.tv):not(.companion) .phone-card.paired .phone-text > b {
  color: var(--ok);
  font-size: 13px;
  font-weight: 500;
  display: block;
}

:root:not(.tv):not(.companion) .phone-card .link-btn {
  font: 500 13px / 1.3 var(--font);
  color: #a9a4a0;
  text-underline-offset: 3px;
  text-decoration: underline;
}

:root:not(.tv):not(.companion) .phone-card .link-btn:hover {
  color: #fff;
}

.m-sub.mic-off .m-line {
  color: #8f8a86;
}

@media (max-width: 640px) {
  .stage-people, .stage-people[data-size="m"] {
    --av: 56px;
    gap: 6px 4px;
  }

  .stage-tile {
    width: calc(var(--av)  + 40px);
    padding: 8px 4px 6px;
  }

  .stage-mic {
    width: 22px;
    height: 22px;
  }

  .stage-mic .ic {
    width: 12px;
    height: 12px;
  }

  :root:not(.tv):not(.companion) .phone-card {
    display: none;
  }

  :root:not(.tv) .empty-inner {
    gap: 10px;
  }
}

:root:not(.tv):not(.companion) .room, :root:not(.tv):not(.companion) dialog.sheet, :root:not(.tv):not(.companion) .mic-dlg {
  --muted: #a9a4a0;
  --faint: #8f8a86;
  --bad: #ff4d57;
}

:root:not(.tv):not(.companion) .room-name {
  font-family: var(--font);
  letter-spacing: -.01em;
  color: #fff;
  field-sizing: content;
  width: auto;
  min-width: 8ch;
  max-width: 100%;
  font-size: 16px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .room-title .star {
  width: 32px;
  height: 32px;
  margin-left: 2px;
}

:root:not(.tv):not(.companion) .room-sub .pill.ok {
  color: #a9a4a0;
}

:root:not(.tv):not(.companion) .room-sub .pill.ok:before {
  box-shadow: none;
}

:root:not(.tv):not(.companion) .room-sub .status-line {
  color: #8f8a86;
}

:root:not(.tv):not(.companion) .top-actions .btn.primary, :root:not(.tv):not(.companion) .top-actions .btn.ghost, :root:not(.tv):not(.companion) .top-actions .leave-btn {
  height: 40px;
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
  border-radius: 12px;
  gap: 8px;
  padding: 0 16px 0 12px;
}

:root:not(.tv):not(.companion) .top-actions .btn.primary {
  background: var(--red);
  box-shadow: none;
}

:root:not(.tv):not(.companion) .top-actions .btn.primary:hover {
  background: var(--red-hi);
}

:root:not(.tv):not(.companion) .top-actions .btn.ghost {
  color: #d6d1cd;
}

:root:not(.tv):not(.companion) .top-actions .icon-btn {
  border-radius: 12px;
}

:root:not(.tv):not(.companion) .top-actions .leave-btn {
  color: #d6d1cd;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  margin-left: 0;
}

:root:not(.tv):not(.companion) .top-actions .leave-btn:hover {
  color: #ff4d57;
  background: #ff4d5724;
  border-color: #ff4d5766;
}

:root:not(.tv):not(.companion) .people-toggle {
  font-size: 14px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .people-toggle .count {
  color: #d6d1cd;
  background: #ffffff1a;
  font-size: 12px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .people-label.talk:before {
  box-shadow: none;
  animation: none;
}

:root:not(.tv):not(.companion) .m-name, :root:not(.tv):not(.companion) .m-name b {
  font-size: 14px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .m-you {
  letter-spacing: 0;
  text-transform: none;
  color: #8f8a86;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}

:root:not(.tv):not(.companion) .m-sub, :root:not(.tv):not(.companion) .m-sub.p2p .m-line, :root:not(.tv):not(.companion) .m-sub.relay .m-line, :root:not(.tv):not(.companion) .m-sub.muted-you .m-line, :root:not(.tv):not(.companion) .m-devs {
  color: #8f8a86;
}

:root:not(.tv):not(.companion) .m-chev {
  color: #a9a4a0;
  opacity: 1;
}

:root:not(.tv):not(.companion) .speaking .avatar:after {
  animation: none;
}

:root:not(.tv):not(.companion) .chat-log {
  gap: 4px;
}

:root:not(.tv):not(.companion) .bubble {
  background: #1f1f23;
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.45;
}

:root:not(.tv):not(.companion) .bubble b {
  color: #a9a4a0;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .msg.mine .bubble {
  background: #34343a;
  border-radius: 14px 14px 4px;
}

:root:not(.tv):not(.companion) .msg .avatar {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .sys {
  color: #8f8a86;
  background: none;
  padding: 6px 0;
  font-size: 12px;
}

:root:not(.tv):not(.companion) .composer {
  border-radius: 14px;
  padding: 4px;
}

:root:not(.tv):not(.companion) .composer input {
  font-size: 14px;
}

:root:not(.tv):not(.companion) .composer input::placeholder {
  color: #8f8a86;
}

:root:not(.tv):not(.companion) .send {
  color: #8f8a86;
  background: #ffffff14;
  border-radius: 10px;
  transition: background .18s, color .18s;
}

:root:not(.tv):not(.companion) .composer:has(input:not(:placeholder-shown)) .send {
  color: #000;
  background: #fff;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic.off {
  color: #d6d1cd;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic.off .ic {
  color: #ff4d57;
}

:root:not(.tv):not(.companion) .dock .lib-btn {
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
  border-radius: 12px;
}

:root:not(.tv):not(.companion) .tl-knob {
  box-shadow: 0 2px 8px #00000080;
}

:root:not(.tv):not(.companion) .dock-react button:hover {
  transform: scale(1.12);
}

:root:not(.tv):not(.companion) .react-more:hover {
  transform: none;
}

:root:not(.tv):not(.companion) .time {
  font-size: 13px;
  font-weight: 500;
}

:root:not(.tv):not(.companion) .time #t-cur {
  font-weight: 600;
}

:root:not(.tv):not(.companion) .screen.amb:not(.fs) .video-wrap {
  background: #000;
}

:root:not(.tv):not(.companion) .ambient.on {
  opacity: .4;
}

:root:not(.tv):not(.companion) .toast {
  color: #d6d1cd;
  background: #101012eb;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}

:root:not(.tv):not(.companion) .toast b {
  color: #fff;
  font-weight: 600;
}

:root:not(.tv):not(.companion) .sheet-head h2, :root:not(.tv):not(.companion) .mic-dlg h2 {
  font: 800 18px / 1.2 var(--font);
  letter-spacing: -.02em;
}

:root:not(.tv):not(.companion) dialog.sheet {
  background: #141416;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
}

:root:not(.tv):not(.companion) dialog.sheet .btn {
  min-height: 44px;
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
  border-radius: 12px;
}

:root:not(.tv):not(.companion) dialog.sheet .btn:not(.primary) {
  background: #ffffff1a;
}

:root:not(.tv):not(.companion) dialog.sheet .btn.primary {
  background: var(--red);
  box-shadow: none;
}

:root:not(.tv):not(.companion) dialog.sheet input:not([type]), :root:not(.tv):not(.companion) dialog.sheet input[type="password"], :root:not(.tv):not(.companion) dialog.sheet input[type="email"] {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  min-height: 44px;
  font-size: 16px;
}

:root:not(.tv):not(.companion) dialog.sheet input:focus {
  border-color: #ffffff80;
  box-shadow: 0 0 0 3px #ffffff14;
}

:root:not(.tv):not(.companion) dialog.sheet h3 {
  font: 500 12px / 1.3 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a9a4a0;
}

:root:not(.tv):not(.companion) dialog.sheet .switch span {
  background: #ffffff29;
}

:root:not(.tv):not(.companion) dialog.sheet .switch input:checked + span {
  background: #fff;
}

:root:not(.tv):not(.companion) dialog.sheet .switch input:checked + span:after {
  background: #000;
}

:root:not(.tv):not(.companion) dialog.sheet .seg {
  background: #ffffff0f;
  border-radius: 10px;
}

:root:not(.tv):not(.companion) dialog.sheet .seg button {
  border-radius: 8px;
  font-weight: 500;
}

:root:not(.tv):not(.companion) dialog.sheet .seg button.active {
  color: #fff;
  background: #ffffff29;
}

:root:not(.tv):not(.companion) dialog.sheet .to-tv, :root:not(.tv):not(.companion) dialog.sheet .route-box {
  background: #ffffff0a;
  border-radius: 14px;
}

:root:not(.tv):not(.companion) dialog.sheet .invite-link code {
  border-radius: 12px;
}

@media (max-width: 640px) {
  :root:not(.tv):not(.companion) .top-actions .leave-btn {
    padding: 0 12px;
  }

  :root:not(.tv):not(.companion) .top-actions .leave-btn .ic {
    display: none;
  }

  :root:not(.tv):not(.companion) .top-actions .btn.primary {
    border-radius: 50%;
    width: 40px;
    padding: 0;
  }

  :root:not(.tv):not(.companion) .react-quick button:nth-child(-n+4) {
    display: inline-block;
  }

  :root:not(.tv):not(.companion) .composer input, :root:not(.tv):not(.companion) dialog.sheet input {
    font-size: 16px;
  }
}

#btn-deaf {
  position: relative;
}

#btn-deaf.off {
  color: #ff4d57;
}

#btn-deaf.off:after {
  content: "";
  background: currentColor;
  border-radius: 2px;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 22%;
  right: 22%;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px #121214;
}

.tv #btn-deaf, .companion #btn-deaf {
  display: none;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-deaf {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.dev-row {
  gap: 12px;
}

.dev-row > span {
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.dev-row select {
  color: #fff;
  min-width: 0;
  max-width: 240px;
  height: 40px;
  font: 500 14px var(--font);
  text-overflow: ellipsis;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  flex: 1;
  padding: 0 10px;
}

.dev-row[hidden] {
  display: none;
}

.bubble a {
  color: #fff;
  text-underline-offset: 2px;
  word-break: break-all;
  text-decoration: underline;
}

.unload-btn {
  font: 500 14px / 1.3 var(--font);
  color: #a9a4a0;
  text-underline-offset: 3px;
  margin-top: 14px;
  text-decoration: underline;
  display: block;
}

.unload-btn[hidden] {
  display: none;
}

.unload-btn:hover {
  color: #fff;
}

.wake-layer {
  z-index: 2;
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.screen.idle .wake-layer {
  cursor: none;
  display: block;
}

.tv .wake-layer, .companion .wake-layer {
  display: none !important;
}

.side-btn {
  position: relative;
}

#side-unread {
  background: var(--red);
  color: #fff;
  min-width: 16px;
  height: 16px;
  font: 600 10px / 16px var(--font);
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
  position: absolute;
  top: 1px;
  right: 0;
}

#side-unread[hidden], .room:not(.watching) #btn-side, .tv #btn-side, .companion #btn-side {
  display: none;
}

@media (max-width: 960px) {
  #btn-side {
    display: none;
  }
}

@media (min-width: 961px) {
  :root:not(.tv):not(.companion) .room.watching.side-hidden {
    grid-template-columns: minmax(0, 1fr);
  }

  :root:not(.tv):not(.companion) .room.watching.side-hidden .side {
    display: none;
  }

  :root:not(.tv):not(.companion) .room.watching.side-hidden #btn-side {
    color: #a9a4a0;
  }
}

:root:not(.tv):not(.companion) .banner.below {
  top: 76px;
}

@media (max-width: 640px) {
  :root:not(.tv):not(.companion) .banner.below {
    top: 56px;
  }
}

.unload-ask {
  font: 400 14px / 1.35 var(--font);
  color: #d6d1cd;
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
}

.unload-ask[hidden] {
  display: none;
}

.unload-ask span {
  flex: 220px;
}

.unload-ask .link-btn {
  color: #a9a4a0;
  font: 500 14px / 1.3 var(--font);
}

.unload-ask .link-btn:hover {
  color: #fff;
}

.stage-mic .ic + .ic {
  display: none;
}

.stage-tile.deaf .stage-mic {
  display: grid;
}

.stage-tile.deaf .stage-mic .ic {
  display: none;
}

.stage-tile.deaf .stage-mic .ic + .ic {
  display: block;
}

.stage-tile.deaf .stage-sub, .m-sub.deaf .m-line {
  color: #ff4d57;
}

.stage-tile.deaf .avatar {
  opacity: .6;
}

.snd-more {
  display: none;
}

:root:not(.tv):not(.companion) .snd-more {
  color: #a9a4a0;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 18px;
  height: 40px;
  margin-left: -6px;
  padding: 0;
  transition: color .15s, background .15s;
  display: inline-grid;
}

:root:not(.tv):not(.companion) .snd-more .ic {
  stroke-width: 2.6px;
  width: 12px;
  height: 12px;
  transition: transform .2s;
  transform: rotate(180deg);
}

:root:not(.tv):not(.companion) .snd-more:hover, :root:not(.tv):not(.companion) .snd-more.active {
  color: #fff;
  background: #ffffff14;
}

:root:not(.tv):not(.companion) .snd-more.active .ic {
  transform: none;
}

:root:not(.tv):not(.companion) .snd-more:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #fff;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic {
  border-right: 0;
  border-radius: 999px 0 0 999px;
  padding-right: 10px;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-deaf {
  border-right: 0;
  border-radius: 999px 0 0 999px;
  width: 44px;
  height: 38px;
  margin-left: 8px;
}

:root:not(.tv):not(.companion) .dock.no-video .snd-more {
  background: #ffffff14;
  border: 1px solid #ffffff1a;
  border-left-color: #ffffff24;
  border-radius: 0 999px 999px 0;
  width: 30px;
  height: 38px;
  margin-left: 0;
  padding-right: 3px;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-out-more {
  background: #ffffff0f;
}

:root:not(.tv):not(.companion) .dock.no-video .snd-more:hover, :root:not(.tv):not(.companion) .dock.no-video .snd-more.active {
  background: #ffffff29;
}

.snd-pop {
  width: min(324px, 100vw - 16px);
  font-family: var(--font);
  border-radius: 16px;
  gap: 12px;
  padding: 16px;
}

.snd-title {
  font: 600 14px / 1.3 var(--font);
  color: #fff;
}

.snd-select {
  color: #fff;
  width: 100%;
  min-width: 0;
  height: 40px;
  font: 500 14px var(--font);
  text-overflow: ellipsis;
  background-color: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  padding: 0 30px 0 12px;
}

.snd-select[hidden], .snd-hint[hidden] {
  display: none;
}

.snd-hint {
  font: 400 13px / 1.4 var(--font);
  color: #a9a4a0;
  margin: 0;
}

.snd-row {
  font: 500 14px / 1.3 var(--font);
  color: #d6d1cd;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.snd-pop .seg {
  background: #ffffff0f;
  border-radius: 10px;
}

.snd-pop .seg button {
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 500;
}

.snd-pop .seg button.active {
  color: #fff;
  background: #ffffff29;
}

.snd-vol {
  gap: 6px;
  display: grid;
}

.snd-vol .lat-head {
  font: 500 14px / 1.3 var(--font);
  color: #d6d1cd;
}

.snd-vol .lat-head b {
  color: #a9a4a0;
  font-weight: 500;
}

.snd-vol input {
  accent-color: #fff;
  width: 100%;
}

.snd-pop .out-test, .set-row .out-test {
  height: 36px;
  font: 500 14px var(--font);
  border-radius: 10px;
  justify-content: center;
  gap: 8px;
}

.snd-pop .out-test .ic, .set-row .out-test .ic {
  width: 16px;
  height: 16px;
}

.snd-all {
  font: 500 13px / 1.3 var(--font);
  color: #a9a4a0;
  text-underline-offset: 3px;
  justify-self: start;
  text-decoration: underline;
}

.snd-all:hover {
  color: #fff;
}

.mic-check {
  flex: 1;
  gap: 6px;
  min-width: 0;
  display: grid;
}

.meter {
  background: #ffffff1a;
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.meter i {
  background: #46d369;
  border-radius: 3px;
  width: 0;
  height: 100%;
  transition: width .1s linear;
  display: block;
}

.mic-check.idle .meter i {
  width: 0 !important;
}

.mic-check-line {
  font: 400 12px / 1.3 var(--font);
  color: #8f8a86;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.mic-check-on {
  font: 500 12px / 1.3 var(--font);
  color: #fff;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.mic-check-on[hidden], .snd-pop .mic-dev-hint:not([hidden]) {
  display: none;
}

dialog.set-dlg[open] {
  gap: 0;
  height: min(660px, 100vh - 48px);
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.set-dlg .sheet-head {
  padding: 20px 20px 0;
}

.set-tabs {
  border-bottom: 1px solid #ffffff14;
  gap: 20px;
  margin: 10px 20px 0;
}

.set-tabs button {
  font: 500 14px / 1.3 var(--font);
  margin-bottom: -1px;
  padding: 10px 0;
}

:root:not(.tv):not(.companion) .set-tabs button.active {
  border-bottom-color: #fff;
}

.set-pane {
  flex-direction: column;
  flex: 1;
  gap: 22px;
  min-height: 0;
  padding: 18px 20px 22px;
  display: flex;
  overflow-y: auto;
}

.set-pane[hidden] {
  display: none;
}

.set-group {
  gap: 14px;
  display: grid;
}

.set-group > h3 {
  margin: 0;
}

.set-group + .set-group, .set-pane > .set-more {
  border-top: 1px solid #ffffff14;
  padding-top: 20px;
}

.set-row {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  display: flex;
}

.set-row[hidden] {
  display: none;
}

.set-row > span {
  font: 500 14px / 1.3 var(--font);
  color: #d6d1cd;
  flex: none;
}

.set-row .snd-select {
  flex: 1;
  width: auto;
  max-width: 250px;
}

.set-row .mic-check {
  max-width: 250px;
}

.set-row .out-test {
  padding: 0 14px;
}

.set-dlg .gate-row, .set-dlg .gate-note {
  margin: 0;
}

.set-dlg .gate-note {
  margin-top: -6px;
}

.set-dlg .set-slider {
  border-top: 0;
  padding: 0;
}

.set-dlg .set-slider input {
  accent-color: #fff;
}

.set-dlg .lat-head {
  font: 500 14px / 1.3 var(--font);
  color: #d6d1cd;
}

.set-dlg .lat-head b {
  color: #a9a4a0;
  font-weight: 500;
}

.set-dlg .switch {
  font: 400 14px / 1.35 var(--font);
  color: #d6d1cd;
}

.set-dlg .route-box {
  padding: 20px 0 0;
  background: none !important;
  border-radius: 0 !important;
}

.set-dlg .route-row > span {
  font: 500 14px / 1.3 var(--font);
  color: #d6d1cd;
}

.set-more > summary {
  cursor: pointer;
  font: 500 14px / 1.3 var(--font);
  color: #a9a4a0;
  align-items: center;
  gap: 8px;
  list-style: none;
  display: flex;
}

.set-more > summary::-webkit-details-marker {
  display: none;
}

.set-more > summary:before {
  content: "";
  border-bottom: 2px solid;
  border-right: 2px solid;
  width: 7px;
  height: 7px;
  transition: transform .2s;
  transform: rotate(-45deg);
}

.set-more[open] > summary:before {
  transform: rotate(45deg);
}

.set-more > summary:hover {
  color: #fff;
}

.set-more > .set-group {
  margin-top: 16px;
}

.set-pane .to-tv, .set-pane .acct-room {
  margin: 0;
}

.set-pane .keys {
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

@media (hover: none) and (pointer: coarse) {
  .set-tabs [data-set="keys"] {
    display: none;
  }
}

@media (max-width: 640px) {
  dialog.set-dlg[open] {
    height: min(680px, 100vh - 24px);
  }

  .set-row {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .set-row .snd-select, .set-row .mic-check {
    flex: 100%;
    max-width: none;
  }

  .snd-pop {
    width: auto;
    left: 8px !important;
    right: 8px !important;
  }

  .snd-select, .set-dlg input, .set-dlg select {
    font-size: 16px;
  }
}

:root:not(.tv):not(.companion) .dock #btn-source {
  border-right: 0;
  border-radius: 12px 0 0 12px;
  margin-right: 0;
}

:root:not(.tv):not(.companion) .dock .close-video {
  color: #d6d1cd;
  border-left-color: #ffffff2e;
  border-radius: 0 12px 12px 0;
  justify-content: center;
  width: 34px;
  margin-right: 4px;
  padding: 0;
}

:root:not(.tv):not(.companion) .dock .close-video .ic {
  width: 16px;
  height: 16px;
}

:root:not(.tv):not(.companion) .dock .close-video:hover, :root:not(.tv):not(.companion) .dock .close-video.active {
  color: #fff;
  background: #fff3;
}

.tv .close-video, .dock.no-video .close-video {
  display: none !important;
}

.unload-acts {
  align-items: center;
  gap: 14px;
  display: flex;
}

.unload-acts .link-btn {
  font: 500 14px / 1.3 var(--font);
  color: #a9a4a0;
}

.unload-acts .link-btn:hover {
  color: #fff;
}

.face-av {
  overflow: visible;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.face-av .face {
  border-radius: inherit;
  fill: currentColor;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.face-av .face .s {
  fill: var(--asoft, #8a7f74);
}

.face-av .face .c {
  fill: var(--abg, #1a1512);
  opacity: 1;
}

.face-av .face .l {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7px;
  stroke-linecap: round;
}

.stack-av.more {
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

:root:not(.tv) .avatar.face-av, :root:not(.tv) .avatar.face-av:after {
  border-radius: 50%;
}

.cover-av {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.cover-av .poster {
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.cover-av .poster .a {
  fill: currentColor;
}

.cover-av .poster .b {
  fill: currentColor;
  opacity: .3;
}

.cover-av .poster .l {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6px;
  stroke-linecap: round;
  opacity: .55;
}

.room-cover.cover-av, .ticket-av.room-tile.cover-av {
  border-radius: 30%;
}

.m-voice {
  flex: none;
  display: inline-flex;
  position: relative;
}

.m-voice-pop {
  z-index: 3;
  background: #232326;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  height: 36px;
  margin-right: -2px;
  padding: 0 12px 0 14px;
  display: none;
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px #00000080;
}

.m-voice-pop input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(90deg, #fff var(--p, 50%), #fff3 var(--p, 50%));
  border-radius: 99px;
  outline: none;
  width: 120px;
  height: 4px;
  margin: 0;
}

.m-voice-pop input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 1px 4px #0009;
}

.m-voice-pop input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

.m-voice-pop b {
  text-align: right;
  min-width: 38px;
  font: 500 12px / 1 var(--font);
  font-variant-numeric: tabular-nums;
  color: #d6d1cd;
}

@media (hover: hover) {
  .m-voice:hover .m-voice-pop, .m-voice:focus-within .m-voice-pop {
    display: inline-flex;
  }

  .m-voice:hover .m-quick, .m-voice:focus-within .m-quick {
    opacity: 1;
  }

  .m-touch {
    display: none !important;
  }
}

.tv .m-voice-pop {
  display: none !important;
}

.leave-dock, :root:not(.tv):not(.companion) .top-actions .leave-btn {
  display: none;
}

:root:not(.tv):not(.companion) .leave-dock {
  color: #ff6b73;
  width: 40px;
  height: 40px;
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 12px;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 0;
  display: inline-flex;
}

:root:not(.tv):not(.companion) .leave-dock .ic {
  width: 20px;
  height: 20px;
}

:root:not(.tv):not(.companion) .leave-dock .lbl {
  display: none;
}

:root:not(.tv):not(.companion) .leave-dock:hover {
  color: #ff4d57;
  background: #ff4d5729;
}

:root:not(.tv):not(.companion) .leave-dock:focus-visible {
  outline-offset: 1px;
  outline: 2px solid #fff;
}

:root:not(.tv):not(.companion) .dock.no-video .leave-dock {
  background: #ffffff0f;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  width: auto;
  height: 40px;
  margin-left: 10px;
  padding: 0 16px 0 12px;
}

:root:not(.tv):not(.companion) .dock.no-video .leave-dock .lbl {
  display: inline;
}

:root:not(.tv):not(.companion) .dock.no-video .leave-dock:hover {
  background: #ff4d5724;
  border-color: #ff4d5766;
}

@media (min-width: 641px) and (max-width: 1439px) {
  :root:not(.tv):not(.companion) .dock:not(.no-video) #btn-source .lbl {
    display: none;
  }

  :root:not(.tv):not(.companion) .dock:not(.no-video) #btn-source {
    padding: 0 10px;
  }

  :root:not(.tv):not(.companion) .dock:not(.no-video) .react-quick button:nth-child(n+5) {
    display: none;
  }
}

@media (min-width: 961px) and (max-width: 1279px) {
  :root:not(.tv):not(.companion) .room:not(.side-hidden) .dock:not(.no-video) .dock-react {
    display: none;
  }
}

@media (min-width: 961px) and (max-width: 1099px) {
  :root:not(.tv):not(.companion) .room:not(.side-hidden) .dock:not(.no-video) .snd-more {
    display: none;
  }
}

:root:not(.tv):not(.companion) .stage-invite .btn {
  height: 40px;
  padding: 0 16px 0 12px;
}

:root:not(.tv):not(.companion) .empty-inner .pick {
  height: 40px;
}

:root:not(.tv):not(.companion) .dock-react {
  border-radius: 12px;
}

:root:not(.tv):not(.companion) .dock.no-video .dock-react {
  min-height: 40px;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic {
  background: #ffffff0f;
  border-color: #ffffff14;
  border-radius: 12px 0 0 12px;
  height: 40px;
  padding: 0 12px;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic:after {
  font: 600 14px / 1 var(--font);
  letter-spacing: -.01em;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-deaf {
  border-color: #ffffff14;
  border-radius: 12px 0 0 12px;
  width: 44px;
  height: 40px;
}

:root:not(.tv):not(.companion) .dock.no-video .snd-more {
  background: #ffffff0f;
  border-color: #ffffff14 #ffffff14 #ffffff14 #ffffff24;
  border-radius: 0 12px 12px 0;
  height: 40px;
}

:root:not(.tv):not(.companion) .room.inviting:not(.watching) .top-actions .btn.primary {
  color: #fff;
  background: #ffffff0f;
  border: 1px solid #ffffff14;
}

:root:not(.tv):not(.companion) .room.inviting:not(.watching) .top-actions .btn.primary:hover {
  background: #ffffff1f;
}

@media (max-width: 640px) {
  :root:not(.tv):not(.companion) .dock.no-video .dock-right {
    justify-content: center;
  }

  :root:not(.tv):not(.companion) .dock.no-video .leave-dock {
    width: 40px;
    margin-left: 6px;
    padding: 0;
  }

  :root:not(.tv):not(.companion) .dock.no-video .leave-dock .lbl {
    display: none;
  }

  :root:not(.tv):not(.companion) .dock.no-video #btn-deaf {
    margin-left: 6px;
  }

  :root:not(.tv):not(.companion) .dock.no-video .snd-more {
    width: 28px;
  }

  :root:not(.tv):not(.companion) .dock.no-video #btn-mic {
    padding: 0 10px;
  }
}

@media (max-width: 359px) {
  :root:not(.tv):not(.companion) .dock.no-video #btn-mic.off:after {
    content: "Выключен";
  }

  :root:not(.tv):not(.companion) .dock.no-video #btn-mic.on:after {
    content: "Включён";
  }
}

:root:not(.tv):not(.companion) .screen:not(.fs) .dock-react {
  display: none;
}

:root:not(.tv):not(.companion) .room.watching.side-hidden .screen:not(.fs) .dock-react {
  display: flex;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic:after, :root:not(.tv):not(.companion) .dock.no-video #btn-mic.on:after, :root:not(.tv):not(.companion) .dock.no-video #btn-mic.off:after {
  content: none;
}

:root:not(.tv):not(.companion) .dock.no-video #btn-mic {
  justify-content: center;
  width: 44px;
  padding: 0;
}
