:root {
  color-scheme: light dark;
  --bg: #10111f;
  --surface: #fff;
  --surface-2: #f6f7ff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --blue: #2f6cff;
  --blue-hover: #1d4ed8;
  --purple: #8f5cff;
  --cyan: #18d4ff;
  --lux: linear-gradient(135deg, #8f5cff, #2f6cff 54%, #18d4ff);
  --green: #188038;
  --red: #d93025;
  --dark-control: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 14% 8%, rgba(143, 92, 255, 0.16), transparent 32%),
    radial-gradient(circle at 90% 14%, rgba(24, 212, 255, 0.14), transparent 30%), var(--surface);
  color: var(--ink);
  font-family: "Google Sans", Arial, sans-serif;
}

body.meeting-open {
  height: 100dvh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  background: #fff;
  color: #202124;
}

.meet-home {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
}

.home-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #f1f3f4;
}

.menu-button,
.home-top-actions button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: #3c4043;
}

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3c4043;
}

.home-sidebar {
  padding-top: 16px;
  border-right: 1px solid #f1f3f4;
}

.home-sidebar button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 20px);
  min-height: 56px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #3c4043;
  padding: 0 24px;
  font-weight: 500;
  text-align: left;
}

.home-sidebar button.active {
  background: #e8f0fe;
  color: #1967d2;
}

.home-main {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 10px 24px 48px;
  overflow: auto;
  text-align: center;
}

.home-main h1 {
  max-width: 680px;
  margin: 0;
  padding-top: 6px;
  color: #202124;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.home-main > p {
  max-width: 580px;
  margin: 14px 0 32px;
  color: #5f6368;
  font-size: 1.25rem;
  line-height: 1.35;
}

.home-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-new {
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  background: #1a73e8;
}

.home-code {
  display: grid;
  grid-template-columns: auto minmax(180px, 260px);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid #5f6368;
  border-radius: 12px;
  padding: 0 14px;
  color: #3c4043;
}

.home-code input {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.home-join {
  min-height: 44px;
  border-radius: 999px;
  background: transparent;
  color: #1a73e8;
  padding: 0 18px;
  font-weight: 600;
}

.home-rule {
  width: min(590px, 100%);
  height: 1px;
  margin: 34px 0 40px;
  background: #dadce0;
}

.home-illustration {
  position: relative;
  width: min(330px, 72vw);
  aspect-ratio: 1;
  margin-bottom: 18px;
}

.illustration-circle {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f0fe;
}

.mini-call {
  position: absolute;
  border: 2px solid #5f6368;
  background: #fff;
}

.mini-a {
  top: 34px;
  left: 110px;
  width: 88px;
  height: 74px;
  border-radius: 16px 16px 0 16px;
}

.mini-b {
  top: 94px;
  left: 198px;
  width: 82px;
  height: 82px;
  border-radius: 0 16px 16px 0;
  background: #ffe7a8;
}

.mini-c {
  top: 110px;
  left: 116px;
  width: 82px;
  height: 82px;
  border-radius: 0 0 0 16px;
  background: #d7f5df;
}

.mini-person {
  position: absolute;
  right: 54px;
  bottom: 38px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #f8c9cf;
}

.home-main h2 {
  margin: 0;
  color: #3c4043;
  font-size: 1.55rem;
  font-weight: 400;
}

.home-subcopy {
  max-width: 430px !important;
  margin-top: 10px !important;
  font-size: 0.95rem !important;
}

.brandbar,
.landing-nav,
.landing-actions,
.hero-actions,
.hero-kicker,
.brand,
.security-badge,
.join-actions,
.preview-controls,
.topbar,
.top-actions,
.icon-text,
.panel-tabs,
.person,
.tile-meta,
.status-row,
.control-bar,
.pending-user,
.pending-actions,
.waiting-card {
  display: flex;
  align-items: center;
}

.landing-nav {
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
}

.landing-actions {
  gap: 10px;
}

.nav-link {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.66);
  color: #26318f;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  gap: 54px;
  align-items: center;
  width: min(1180px, 100%);
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: 46px 0 28px;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  color: #111533;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #4d557c;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-kicker {
  width: fit-content;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #3440a0;
  box-shadow: 0 12px 38px rgba(47, 108, 255, 0.12);
  font-weight: 500;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-primary,
.hero-secondary {
  min-height: 52px;
  padding: 0 22px;
}

.hero-product {
  perspective: 1200px;
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(16, 17, 31, 0.92);
  box-shadow: 0 34px 90px rgba(47, 31, 107, 0.28);
  transform: rotateY(-7deg) rotateX(4deg);
}

.mock-top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-top span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #8f5cff;
}

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

.mock-top span:nth-child(3) {
  background: #18d4ff;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.mock-tile,
.mock-board {
  min-height: 150px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(143, 92, 255, 0.28), rgba(47, 108, 255, 0.16));
}

.mock-tile {
  position: relative;
  display: grid;
  place-items: center;
}

.mock-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 999px;
  background: var(--lux);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}

.speaking-card {
  box-shadow: 0 0 0 3px rgba(24, 212, 255, 0.38), 0 0 34px rgba(24, 212, 255, 0.24);
}

.mock-bars {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-bars i {
  display: block;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: #7df3ff;
  animation: soundBar 700ms ease-in-out infinite;
}

.mock-bars i:nth-child(2) {
  animation-delay: 120ms;
}

.mock-bars i:nth-child(3) {
  animation-delay: 240ms;
}

.screen-card .material-symbols-rounded {
  color: #dfe6ff;
  font-size: 58px;
}

.mock-board {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 26px;
  background: #fff;
}

.mock-board span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8f5cff, #2f6cff, transparent);
}

.mock-board span:nth-child(2) {
  width: 72%;
}

.mock-board span:nth-child(3) {
  width: 46%;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-band article {
  border: 1px solid rgba(47, 108, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(47, 108, 255, 0.08);
}

.feature-band .material-symbols-rounded {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--lux);
  color: #fff;
  margin-bottom: 12px;
}

.feature-band strong {
  display: block;
  color: #1d2140;
  margin-bottom: 5px;
}

.feature-band p {
  margin: 0;
  color: #5b638b;
  line-height: 1.45;
}

.prejoin {
  min-height: 100vh;
  padding: 24px;
}

.brandbar {
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 12px;
  color: #262a45;
  font-size: 1.35rem;
}

.security-badge {
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(47, 108, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: #3440a0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(47, 108, 255, 0.08);
  font-size: 0.9rem;
}

.prejoin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(300px, 430px);
  gap: 72px;
  align-items: center;
  width: min(1160px, 100%);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
}

.camera-card {
  display: grid;
  gap: 16px;
}

.preview-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #10111f;
  box-shadow: 0 22px 70px rgba(47, 31, 107, 0.24), 0 2px 8px rgba(47, 108, 255, 0.12);
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10111f;
}

.preview-fallback,
.avatar {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 28%, #2b315f, #10111f);
  color: #fff;
}

.preview-fallback {
  position: absolute;
  inset: 0;
}

.preview-fallback .material-symbols-rounded {
  font-size: 68px;
}

.preview-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  gap: 14px;
  transform: translateX(-50%);
}

.round-btn,
.control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--dark-control);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.round-btn.off,
.control.off {
  background: var(--red);
}

.round-btn:hover,
.control:hover,
.icon-text:hover,
.secondary:hover,
.panel-tabs button:hover,
.chat-form button:hover {
  transform: translateY(-1px);
}

.round-btn:active,
.control:active,
.primary:active,
.secondary:active,
.icon-text:active {
  transform: scale(0.94);
}

.round-btn:not(.off):hover,
.control:not(.off):hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 5px rgba(143, 92, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.26);
}

.device-status {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.join-panel h1 {
  margin: 0 0 12px;
  color: #1d2140;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0;
}

.join-copy {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.join-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.join-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.primary,
.secondary,
.icon-text,
.panel-tabs button,
.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 500;
}

.primary {
  background: var(--lux);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 108, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(47, 108, 255, 0.34);
}

.secondary,
.icon-text,
.panel-tabs button,
.chat-form button {
  background: transparent;
  color: var(--blue);
}

.secondary {
  border: 1px solid rgba(47, 108, 255, 0.22);
  color: #3045d6;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.waiting-card {
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: rgba(246, 247, 255, 0.92);
}

.install-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 999px;
  padding: 0 16px;
  background: #eef2ff;
  color: #3045d6;
  font-weight: 500;
}

.install-button:not(.hidden) {
  display: inline-flex;
}

.primary.loading .material-symbols-rounded {
  animation: spin 900ms linear infinite;
}

.waiting-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.meeting {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(circle at 10% 0%, rgba(143, 92, 255, 0.3), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(24, 212, 255, 0.2), transparent 30%), var(--bg);
  color: #fff;
  overflow: hidden;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  background: rgba(16, 17, 31, 0.92);
  backdrop-filter: blur(18px);
}

.room-heading {
  display: grid;
  gap: 2px;
}

.room-heading strong {
  font-size: 1rem;
  font-weight: 500;
}

.room-heading span {
  color: #bdc1c6;
  font-size: 0.82rem;
}

.top-actions {
  gap: 8px;
}

.icon-text {
  color: #e8eaed;
}

.stage-layout {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 0 16px 12px;
}

.share-card {
  position: fixed;
  left: 24px;
  bottom: 104px;
  z-index: 35;
  width: min(360px, calc(100vw - 32px));
  border-radius: 8px;
  background: #fff;
  color: #202124;
  padding: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.share-card strong {
  display: block;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.share-card p,
.share-security {
  color: #5f6368;
  line-height: 1.45;
}

.share-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #3c4043;
  background: transparent;
}

.share-copy-main {
  margin-bottom: 10px;
}

.share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #3c4043;
  padding: 0 10px;
  text-align: left;
}

.share-link-box span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-security {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  font-size: 0.84rem;
}

.share-security .material-symbols-rounded {
  color: var(--blue);
}

.reaction-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.telegram-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 12, 24, 0.58);
  backdrop-filter: blur(10px);
}

.telegram-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  border-radius: 18px;
  background: #fff;
  color: #202124;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.telegram-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  background: var(--lux);
  color: #fff;
}

.telegram-card strong {
  font-size: 1.35rem;
}

.telegram-card p {
  margin: 0;
  color: #5f6368;
  line-height: 1.5;
}

.telegram-card label {
  color: #3c4043;
}

.telegram-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 12px;
  background: #f6f7ff;
  color: #3c4043;
}

.telegram-status.calling {
  background: #e8f0fe;
  color: #1967d2;
}

.telegram-status.calling .material-symbols-rounded {
  animation: spin 900ms linear infinite;
}

.telegram-status.ok {
  background: #e6f4ea;
  color: #188038;
}

.telegram-status.error {
  background: #fce8e6;
  color: #d93025;
}

.reaction-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  animation: reactionFloat 1700ms ease-out forwards;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.presentation-stage {
  display: grid;
  min-height: 0;
  align-content: center;
}

.meeting.presenting-layout .stage-layout {
  grid-template-columns: minmax(0, 1fr) 210px 360px;
}

.meeting.presenting-layout .presentation-stage {
  grid-column: 1;
}

.meeting.presenting-layout .video-grid {
  grid-column: 2;
  grid-template-columns: 1fr;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.meeting.presenting-layout .side-panel {
  grid-column: 3;
}

.meeting.presenting-layout .video-grid .video-tile {
  min-height: 118px;
  aspect-ratio: 16 / 10;
}

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

.video-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #191b31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.presentation-stage .screen-tile {
  min-height: min(68vh, 680px);
  aspect-ratio: 16 / 9;
  border-color: rgba(24, 212, 255, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 17, 31, 0.68);
  backdrop-filter: blur(10px);
}

.video-tile.speaking {
  border-color: rgba(24, 212, 255, 0.86);
  box-shadow: 0 0 0 calc(3px + (var(--voice, 0) * 5px)) rgba(47, 108, 255, 0.2),
    0 0 34px rgba(24, 212, 255, 0.26);
}

.avatar {
  position: absolute;
  inset: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.voice-ring {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  border: 2px solid rgba(24, 212, 255, 0.82);
}

.video-tile.speaking .voice-ring {
  animation: voicePulse 1100ms ease-out infinite;
  opacity: 1;
}

.tile-meta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sound-meter {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(16, 17, 31, 0.66);
  opacity: 0;
  transition: opacity 160ms ease;
}

.sound-meter span {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: #7df3ff;
}

.video-tile.speaking .sound-meter {
  opacity: 1;
}

.video-tile.speaking .sound-meter span:nth-child(1) {
  animation: soundBar 620ms ease-in-out infinite;
}

.video-tile.speaking .sound-meter span:nth-child(2) {
  animation: soundBar 620ms ease-in-out 120ms infinite;
}

.video-tile.speaking .sound-meter span:nth-child(3) {
  animation: soundBar 620ms ease-in-out 240ms infinite;
}

.status-row {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(32, 33, 36, 0.72);
  color: #fff;
  font-size: 0.74rem;
  text-shadow: none;
}

.icon-pill {
  width: 24px;
  justify-content: center;
  padding: 0;
}

.icon-pill .material-symbols-rounded {
  font-size: 16px;
}

.side-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.mobile-only {
  display: none;
}

.panel-tabs {
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-tabs button {
  flex: 1;
  color: var(--muted);
}

.panel-tabs button.active {
  background: linear-gradient(135deg, rgba(143, 92, 255, 0.15), rgba(47, 108, 255, 0.13));
  color: #3045d6;
}

.people-list,
.pending-list,
.chat-panel {
  min-height: 0;
  overflow: auto;
}

.people-list,
.pending-list {
  padding: 10px;
}

.pending-list {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.pending-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #f3f5ff;
  padding: 10px;
}

.pending-user > div:first-child {
  min-width: 0;
}

.pending-user span,
.message p {
  color: var(--muted);
}

.pending-actions {
  gap: 8px;
  display: flex;
  flex-shrink: 0;
}

.pending-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.82rem;
}

.pending-actions .material-symbols-rounded {
  font-size: 18px;
}

.pending-actions .admit {
  background: #e6f4ea;
  color: var(--green);
}

.pending-actions .deny {
  background: #fce8e6;
  color: var(--red);
}

.person {
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid #f1f3f4;
}

.person-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.person .pill {
  background: #f1f3f4;
  color: var(--muted);
}

.chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.board-panel,
.notes-panel {
  min-height: 0;
  overflow: hidden;
}

.board-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 10px;
  gap: 10px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 28px;
  height: 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--swatch);
}

.swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--blue);
}

.board-clear {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  margin-left: auto;
  color: var(--red);
  background: #fce8e6;
}

#boardCanvas {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 1px solid #e6e8f4;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
}

.notes-panel {
  padding: 10px;
}

#notesInput {
  width: 100%;
  height: 100%;
  min-height: 430px;
  resize: none;
  border: 1px solid #e6e8f4;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
  outline: 0;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.message {
  border-radius: 8px;
  background: #f8fafd;
  padding: 10px;
}

.message strong {
  display: block;
  margin-bottom: 5px;
}

.message p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.chat-form button {
  width: 44px;
  padding: 0;
}

.control-bar {
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 18px 16px;
  background: rgba(16, 17, 31, 0.94);
  backdrop-filter: blur(18px);
  flex-wrap: nowrap;
  overflow: visible;
}

.reaction-wrap {
  position: relative;
}

.reaction-menu {
  position: fixed;
  left: 50%;
  bottom: 86px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.reaction-menu button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #f6f7ff;
  font-size: 1.3rem;
}

.board-presentation {
  background: #fff;
}

.board-presentation canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  touch-action: none;
}

.control.active {
  background: var(--lux);
}

.control.leave {
  width: 64px;
  background: var(--red);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 20;
  max-width: min(430px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 4px;
  background: #1d2140;
  color: #fff;
  padding: 13px 18px;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

@keyframes voicePulse {
  0% {
    transform: scale(0.985);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.035);
    opacity: 0;
  }
}

@keyframes soundBar {
  0%,
  100% {
    height: 7px;
  }
  50% {
    height: 17px;
  }
}

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

@keyframes reactionFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.75);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120px) scale(1.25);
  }
}

@media (max-width: 920px) {
  .hero,
  .prejoin-layout,
  .stage-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 26px;
    min-height: auto;
    text-align: center;
  }

  .hero-kicker,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .mock-window {
    transform: none;
  }

  .feature-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .prejoin-layout {
    gap: 32px;
    padding-top: 36px;
  }

  .side-panel {
    max-height: 360px;
  }

  .meeting.presenting-layout .stage-layout {
    grid-template-columns: 1fr;
  }

  .meeting.presenting-layout .presentation-stage,
  .meeting.presenting-layout .video-grid,
  .meeting.presenting-layout .side-panel {
    grid-column: auto;
  }

  .meeting.presenting-layout .video-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .meeting.presenting-layout .video-grid .video-tile {
    min-width: 180px;
  }

  .mobile-only {
    display: grid;
  }
}

@media (max-width: 640px) {
  .landing {
    padding: 0;
  }

  .meet-home {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .home-top {
    min-height: 58px;
    padding: 0 12px;
  }

  .home-top-actions span,
  .home-top-actions button:not(:last-child) {
    display: none;
  }

  .home-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #f1f3f4;
    padding: 8px;
  }

  .home-sidebar button {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 16px;
  }

  .home-main {
    padding: 26px 16px 36px;
  }

  .home-main h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .home-main > p {
    font-size: 1rem;
  }

  .home-controls,
  .home-new,
  .home-code,
  .home-join {
    width: 100%;
  }

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

  .landing-nav,
  .prejoin {
    padding: 16px;
  }

  .landing-nav,
  .brandbar,
  .topbar,
  .join-actions {
    flex-wrap: wrap;
  }

  .landing-actions {
    width: 100%;
  }

  .landing-actions button {
    flex: 1;
  }

  .brand {
    font-size: 1.08rem;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .hero-actions button {
    width: 100%;
  }

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

  .mock-grid {
    grid-template-columns: 1fr;
  }

  .mock-board {
    grid-column: auto;
  }

  .security-badge,
  .join-actions button {
    width: 100%;
  }

  .prejoin-layout {
    min-height: auto;
    gap: 24px;
    padding-top: 24px;
  }

  .join-panel {
    text-align: center;
  }

  .join-form {
    text-align: left;
  }

  .video-grid {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .stage-layout {
    overflow: auto;
    padding: 0 10px calc(78px + env(safe-area-inset-bottom));
  }

  .meeting {
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .topbar {
    min-height: 56px;
    padding: 8px 12px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .icon-text {
    min-height: 36px;
    padding: 0 12px;
  }

  .video-tile {
    min-height: 188px;
  }

  .presentation-stage .screen-tile {
    min-height: 230px;
  }

  .side-panel {
    max-height: 300px;
  }

  .panel-tabs {
    overflow-x: auto;
    align-items: stretch;
  }

  .panel-tabs button {
    min-width: 96px;
  }

  #boardCanvas,
  #notesInput {
    min-height: 250px;
  }

  .control-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    justify-content: flex-start;
    gap: 8px;
    min-height: 68px;
    overflow-x: auto;
    overflow-y: visible;
    padding-right: 12px;
    padding-left: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    scrollbar-width: none;
  }

  .control-bar::-webkit-scrollbar {
    display: none;
  }

  .control {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
  }

  .reaction-menu {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .mobile-only {
    display: grid;
  }

  .share-card {
    left: 12px;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    padding: 18px;
  }

  .pending-user {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pending-actions {
    justify-content: flex-end;
  }

  .install-button:not(.hidden) {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 25;
    box-shadow: 0 14px 34px rgba(47, 108, 255, 0.22);
  }
}

@media (min-width: 761px) {
  .install-button:not(.hidden) {
    display: none;
  }
}

@media (max-width: 420px) {
  .prejoin {
    padding: 12px;
  }

  .preview-controls {
    bottom: 14px;
  }

  .round-btn,
  .control {
    width: 44px;
    height: 44px;
  }

  .control.leave {
    width: 58px;
  }
}

@media (hover: none) {
  .round-btn:hover,
  .control:hover,
  .icon-text:hover,
  .secondary:hover,
  .panel-tabs button:hover,
  .chat-form button:hover {
    transform: none;
  }
}
