:root {
  color: #172033;
  background: #f5f7fb;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

body.is-widget-route #bz-widget-root {
  display: none !important;
  pointer-events: none !important;
}

body.is-widget-route {
  min-height: 100dvh;
  background: transparent;
}

body.is-logo-review-route {
  background: #0a0a0b;
}

body.is-logo-review-route #bz-widget-root {
  display: none !important;
  pointer-events: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.product-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 251, 0.98)),
    #f5f7fb;
}

.product-shell.meeting-shell {
  grid-template-columns: minmax(0, 1fr);
  background: #0b1020;
}

.logo-review-page {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 0;
  color: #ededed;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.78), rgba(10, 10, 11, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 76px),
    #0a0a0b;
}

.logo-review-nav,
.logo-review-hero,
.logo-review-product-preview,
.logo-review-comparison {
  width: 100%;
}

.logo-review-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #888;
  font-size: 0.88rem;
  font-weight: 800;
}

.logo-review-nav .brand-return-action {
  min-height: 42px;
  padding: 0 12px;
  border-color: rgba(15, 23, 42, 0.13);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(26, 26, 30, 0.82);
  color: #ededed;
}

.logo-review-parent-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ededed;
  font-size: 1rem;
  font-weight: 850;
}

.logo-review-parent-lockup span span {
  color: #3b82f6;
}

.logo-review-parent-star {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.logo-review-hero {
  min-height: 520px;
  padding: 58px 0 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(470px, 0.92fr);
  gap: 44px;
  align-items: center;
}

.logo-review-kicker {
  margin: 0 0 18px;
  color: #10b981;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.logo-review-hero h1 {
  max-width: 500px;
  margin: 0;
  color: #ededed;
  font-size: clamp(2.5rem, 4.2vw, 3.85rem);
  line-height: 0.96;
}

.logo-review-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #b8bec8;
  font-size: 1.06rem;
  line-height: 1.75;
}

.logo-review-proof-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-review-proof-strip span {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(26, 26, 30, 0.72);
  color: #d5d9df;
  font-size: 0.78rem;
  font-weight: 800;
}

.logo-review-logo-board {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(26, 26, 30, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.logo-review-logo-stage {
  min-height: 410px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 28px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(10, 10, 11, 0.98)),
    #111827;
}

.logo-review-subbrand-logo {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.logo-review-meet-mark,
.logo-review-app-icon {
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  background: #0a0a0b;
}

.logo-review-meet-mark {
  width: 98px;
  height: 98px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.16), transparent 68%),
    #0a0a0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo-review-mark-star {
  width: 66px;
  height: 66px;
}

.logo-review-wordmark {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.logo-review-wordmark strong {
  color: #fff;
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  font-weight: 850;
  line-height: 0.82;
}

.logo-review-wordmark span {
  color: #9ca3af;
  font-size: 0.96rem;
  font-weight: 800;
}

.logo-review-wordmark span b {
  color: #3b82f6;
}

.logo-review-application-row {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
}

.logo-review-app-icon {
  width: 98px;
  height: 98px;
  border-radius: 18px;
}

.logo-review-header-preview {
  min-width: 0;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.logo-review-mini-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 850;
}

.logo-review-mini-star {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.logo-review-status {
  padding: 8px 10px;
  border: 1px solid rgba(16, 185, 129, 0.30);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.10);
  color: #b7f7d7;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo-review-product-preview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 16px;
}

.logo-review-meeting-grid {
  min-height: 236px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.logo-review-tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent),
    #141821;
}

.logo-review-tile::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 54px;
  height: 8px;
  border-radius: 99px;
  background: rgba(237, 237, 237, 0.82);
}

.logo-review-tile::after {
  content: "";
  position: absolute;
  inset: auto 14px 32px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.logo-review-agent-panel {
  min-height: 236px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(59, 130, 246, 0.08);
}

.logo-review-agent-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.logo-review-agent-star {
  width: 24px;
  height: 24px;
}

.logo-review-agent-line {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.logo-review-agent-line.is-blue {
  width: 84%;
  background: rgba(59, 130, 246, 0.82);
}

.logo-review-agent-line.is-green {
  width: 62%;
  background: rgba(16, 185, 129, 0.82);
}

.logo-review-comparison {
  padding: 42px 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.logo-review-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  background: rgba(26, 26, 30, 0.72);
}

.logo-review-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.15;
}

.logo-review-card p {
  margin: 0;
  color: #b8bec8;
  line-height: 1.55;
}

.logo-review-tag {
  width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.09);
  color: #9cc0ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-review-footer-note {
  margin: 24px 0 0;
  color: #8f98a6;
  font-size: 0.9rem;
  line-height: 1.6;
}

.widget-shell {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(76, 111, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #0c1324 0%, #11192b 100%);
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.widget-header {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 12, 24, 0.82);
  backdrop-filter: blur(14px);
}

.widget-header p,
.widget-header h1 {
  margin: 0;
}

.widget-header p {
  color: #8fa7cf;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.widget-header h1 {
  font-size: 0.98rem;
  line-height: 1.2;
}

.widget-header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.widget-open-link,
.widget-room-toolbar button,
.widget-entry .primary-action {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.widget-open-link {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #eef4ff;
  font-size: 0.8rem;
  font-weight: 800;
}

.widget-entry {
  min-height: 0;
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.widget-entry h2,
.widget-entry p {
  margin: 0;
}

.widget-entry p {
  max-width: 280px;
  color: #aab9d2;
}

.widget-entry input {
  width: min(100%, 320px);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.widget-entry .primary-action {
  padding: 0 16px;
  background: #5d7cff;
  color: #fff;
  font-weight: 850;
}

.widget-room {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.widget-room-toolbar {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.widget-room-toolbar button {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #eef4ff;
  font-weight: 800;
}

.widget-room-toolbar .secondary-action {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #eef4ff;
  font-size: 0.8rem;
}

.widget-room .custom-chat.is-prominent {
  min-height: 0;
  height: 100%;
  padding: 0 12px 12px;
  background: transparent;
  border: 0;
}

.widget-room .custom-chat.is-prominent .chat-messages {
  min-height: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.widget-room .custom-chat.is-prominent .chat-compose {
  background: rgba(6, 10, 20, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.widget-room .custom-chat.is-prominent .chat-compose input {
  min-width: 0;
  padding: 0 12px;
  font-size: 0.9rem;
}

.widget-room .custom-chat.is-prominent .chat-icon-button,
.widget-room .custom-chat.is-prominent .chat-send-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.widget-video-room {
  position: absolute;
  inset: auto 12px 78px auto;
  z-index: 20;
}

.widget-video-bubble {
  width: min(42vw, 220px);
  min-width: 168px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: #050914;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.widget-video-actions {
  position: absolute;
  z-index: 2;
  inset: 8px 8px auto 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.widget-video-actions button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.widget-video-tile {
  width: 100%;
  height: 100%;
}

.widget-video-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: #aab9d2;
}

.meeting-shell .side-rail {
  display: none;
}

.side-rail {
  min-height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #10192d;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #172033;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.language-selector-button {
  width: 42px;
  height: 38px;
  border: 1px solid rgba(16, 25, 45, 0.14);
  border-radius: 8px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #172033;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.language-selector-button:hover {
  background: #f8fbff;
}

.language-selector-button:focus-visible,
.language-selector-menu button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.32);
  outline-offset: 2px;
}

.language-selector-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(16, 25, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  color: #172033;
}

.language-selector-menu button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.language-selector-menu button:hover,
.language-selector-menu button.is-selected {
  background: #edf5ff;
}

.side-rail .language-selector {
  align-self: flex-start;
}

.side-rail .language-selector-menu {
  right: auto;
  left: 0;
}

.side-rail .language-selector-button,
.meeting-header .language-selector-button,
.widget-header .language-selector-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.side-rail .language-selector-button:hover,
.meeting-header .language-selector-button:hover,
.widget-header .language-selector-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.meeting-header .language-selector-button,
.widget-header .language-selector-button {
  backdrop-filter: blur(12px);
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-nav button,
.identity-box,
.team-list button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.rail-nav button {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.rail-nav button.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
}

.identity-box {
  margin-top: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.identity-box p,
.identity-box small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.identity-box strong {
  display: block;
  font-size: 0.92rem;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #2f75ff;
  font-weight: 800;
}

.icon-button {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

.workspace {
  min-width: 0;
  padding: 30px clamp(20px, 4vw, 54px);
  display: grid;
  gap: 22px;
  align-content: start;
}

.topbar,
.section-head,
.meeting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar h1,
.meeting-header h1 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  color: #10192d;
}

.topbar p,
.section-head p,
.preview-panel p,
.meeting-header p {
  margin-bottom: 0;
  color: #687489;
  line-height: 1.5;
}

.google-box {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.topbar-actions,
.lobby-topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-actions {
  flex-wrap: wrap;
}

.topbar-brand-copy {
  min-width: 0;
  max-width: min(100%, 620px);
  flex: 1 1 420px;
  display: grid;
  gap: 10px;
}

.topbar-logo {
  width: min(560px, 100%);
  height: auto;
  aspect-ratio: 1760 / 576;
  display: block;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand-return-action img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
  object-fit: cover;
}

.header-identity-slot {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-identity-slot:empty {
  display: none;
}

.header-profile {
  min-width: 0;
  max-width: 260px;
  min-height: 42px;
  padding: 6px 12px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  box-shadow: 0 10px 28px rgba(30, 47, 82, 0.1);
}

.header-profile img,
.header-profile span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
}

.header-profile img {
  object-fit: cover;
}

.header-profile span {
  display: inline-grid;
  place-items: center;
  background: #2f75ff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.header-profile strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.google-box small,
.google-disabled,
.login-required {
  color: #647086;
  font-size: 0.82rem;
}

.command-band,
.marketing-stats,
.meeting-preview,
.teams-section,
.lobby-card,
.host-panel {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 47, 82, 0.08);
}

.command-band {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.command-copy {
  display: flex;
  gap: 14px;
}

.command-copy svg {
  color: #1d5fd1;
  flex: none;
}

.command-copy h2,
.preview-panel h2,
.teams-section h2,
.lobby-form h2,
.host-panel h2 {
  margin-bottom: 8px;
  color: #14213b;
}

.command-copy p {
  margin-bottom: 0;
  color: #687489;
  line-height: 1.55;
}

.command-form,
.team-builder {
  display: flex;
  gap: 10px;
}

.meeting-command-band {
  align-items: start;
}

.meeting-creation-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.meeting-mode-switch {
  min-width: 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f4f7fb;
}

.meeting-mode-switch button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #57657a;
  font-weight: 850;
}

.meeting-mode-switch button.is-active {
  background: #fff;
  color: #17468d;
  box-shadow: 0 8px 20px rgba(30, 47, 82, 0.1);
}

.scheduled-form-grid {
  display: grid;
  gap: 10px;
}

.scheduled-form-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #39475d;
  font-size: 0.82rem;
  font-weight: 850;
}

.scheduled-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #f8fbff;
}

.scheduled-result-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.scheduled-result-head svg,
.scheduled-link-card svg {
  color: #129762;
  flex: none;
}

.scheduled-result-head strong,
.scheduled-link-card strong {
  color: #14213b;
}

.scheduled-result-head p,
.scheduled-link-card p {
  margin: 3px 0 0;
  color: #687489;
  line-height: 1.45;
}

.scheduled-link-grid {
  display: grid;
  gap: 10px;
}

.scheduled-link-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(20, 33, 59, 0.08);
  border-radius: 8px;
  background: #fff;
}

.scheduled-link-card > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduled-link-card code {
  display: block;
  padding: 8px;
  border-radius: 6px;
  background: #eef4fb;
  color: #17468d;
  font-size: 0.76rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.scheduled-link-card .secondary-action {
  width: 100%;
}

.scheduled-invite-list {
  margin-top: 0;
}

.scheduled-entry {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #0b1020;
}

.scheduled-entry-card {
  width: min(100%, 430px);
  padding: 28px;
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.scheduled-entry-card svg {
  color: #1d5fd1;
}

.scheduled-entry-card h1 {
  margin: 0;
  color: #14213b;
  font-size: 1.45rem;
}

.scheduled-entry-card p {
  margin: 0;
  color: #687489;
  line-height: 1.5;
}

.marketing-stats {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(29, 95, 209, 0.08), rgba(18, 151, 98, 0.08)),
    #fff;
}

.stats-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.stats-copy span {
  color: #17468d;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-copy p {
  margin: 0;
  color: #687489;
  line-height: 1.55;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(20, 33, 59, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.stat-card svg {
  color: #1d5fd1;
}

.stat-card strong {
  color: #14213b;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
}

.stat-card small {
  color: #647086;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cfdaea;
  border-radius: 8px;
  padding: 0 12px;
  color: #14213b;
  background: #fff;
  outline: none;
}

textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2f75ff;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.16);
}

.primary-action,
.secondary-action,
.team-builder button,
.room-list article button,
.leave-button,
.host-panel button {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-action {
  background: #1d5fd1;
  color: #fff;
}

.secondary-action,
.team-builder button,
.room-list article button,
.host-panel button {
  background: #edf3ff;
  color: #17468d;
}

.leave-button {
  background: #f04055;
  color: #fff;
}

.meeting-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1px;
  overflow: hidden;
}

.video-grid-preview {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #10192d;
}

.video-tile {
  min-height: 170px;
  border-radius: 8px;
  padding: 14px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 117, 255, 0.38), transparent 36%),
    #18243e;
  color: #fff;
}

.video-tile span {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #2f75ff;
  font-size: 1.4rem;
  font-weight: 800;
}

.video-tile small,
.video-tile strong {
  position: absolute;
  left: 14px;
  bottom: 12px;
}

.video-tile strong {
  left: auto;
  right: 12px;
  color: #b9d1ff;
}

.preview-panel {
  padding: 24px;
}

.preview-panel ul {
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: #3c4658;
}

.preview-panel li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.preview-panel svg {
  color: #1d5fd1;
}

.teams-section {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.team-builder {
  max-width: 620px;
}

.team-builder.compact {
  max-width: none;
}

.team-board {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.team-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.team-list button {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f3f6fb;
  color: #243147;
}

.team-list button.selected {
  background: #1d5fd1;
  color: #fff;
}

.room-list {
  display: grid;
  gap: 10px;
}

.team-danger-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid #ffd3d3;
  border-radius: 8px;
  background: #fff7f7;
}

.team-danger-card strong {
  color: #8d1e1e;
}

.team-danger-card p {
  margin: 4px 0 0;
  color: #6f2a2a;
}

.danger-button {
  justify-self: start;
  background: #b42318;
  color: #fff;
}

.danger-button:hover {
  background: #8f1d14;
}

.team-members-card,
.team-room-options {
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  background: #f8fafc;
}

.team-members-card p,
.team-room-options p {
  margin: 4px 0 0;
  color: #687489;
  line-height: 1.4;
}

.team-members-card textarea,
.team-room-options input[type='datetime-local'] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: #172033;
  background: #fff;
}

.team-members-card button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #1d5fd1;
  color: #fff;
}

.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1b448c;
  font-size: 0.84rem;
  font-weight: 700;
}

.team-member-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-members-card .team-member-remove {
  min-height: 32px;
  padding: 4px 8px;
  gap: 4px;
  background: transparent;
  color: #b42318;
  font-size: 0.8rem;
}

.team-member-remove:hover:not(:disabled) {
  background: #fee4e2;
}

.team-member-remove:focus-visible {
  outline: 2px solid #1d5fd1;
  outline-offset: 2px;
}

.team-empty-note,
.team-invite-status {
  margin: 0;
  color: #687489;
  font-size: 0.9rem;
}

.team-empty-panel {
  min-height: 180px;
  padding: 24px;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px dashed #cbd7e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #687489;
  text-align: center;
}

.team-empty-panel p {
  max-width: 360px;
  margin: 0;
}

.agenda-section {
  align-content: start;
}

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

.agenda-panel,
.booking-slots-panel,
.booking-form-panel,
.booking-unavailable-panel,
.booking-confirmed-panel {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
  background: #fff;
}

.agenda-wide-panel {
  grid-column: 1 / -1;
}

.agenda-panel-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agenda-panel-head h2,
.agenda-panel-head h3,
.booking-form-panel h2,
.booking-unavailable-panel h2,
.booking-confirmed-panel h2 {
  margin-bottom: 4px;
  color: #14213b;
}

.agenda-panel-head p,
.booking-unavailable-panel p,
.booking-confirmed-panel p {
  margin: 0;
  color: #687489;
  line-height: 1.45;
}

.switch-row {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243147;
  font-weight: 800;
}

.switch-row input,
.calendar-check-list input {
  width: 18px;
  min-height: 18px;
}

.agenda-link-box {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.agenda-link-box code {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f7fc;
  color: #2b364b;
  overflow-wrap: anywhere;
}

.agenda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agenda-form-grid label,
.calendar-target-field,
.timezone-field,
.booking-form-panel label {
  display: grid;
  gap: 6px;
  color: #243147;
  font-size: 0.9rem;
  font-weight: 800;
}

.calendar-check-list {
  display: grid;
  gap: 8px;
}

.calendar-check-list label {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #e2e8f3;
  border-radius: 8px;
  background: #f8fafc;
}

.calendar-check-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #243147;
  font-weight: 800;
}

.calendar-check-list small {
  color: #1f7a52;
  font-size: 0.75rem;
  font-weight: 900;
}

.agenda-rows {
  display: grid;
  gap: 8px;
}

.agenda-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.6fr) minmax(110px, 0.6fr) 40px;
  gap: 8px;
  align-items: center;
}

.agenda-row.exception-row {
  grid-template-columns: minmax(120px, 0.6fr) minmax(190px, 1fr) minmax(190px, 1fr) 40px;
}

.icon-button.light {
  background: #eef3fb;
  color: #17468d;
}

.panel-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bfe5d0;
  border-radius: 8px;
  background: #f0fbf5;
  color: #196540;
  font-weight: 800;
}

.public-booking-page {
  min-height: 100vh;
  color: #172033;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(238, 243, 250, 0.98)),
    #eef3fa;
}

.public-booking-page .topbar h1 {
  color: #10192d;
}

.public-booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.booking-slots-panel {
  align-content: start;
}

.timezone-field {
  width: min(240px, 38vw);
}

.booking-slot-groups {
  max-height: min(65vh, 760px);
  padding-right: 4px;
  display: grid;
  gap: 14px;
  overflow: auto;
}

.booking-slot-group h3 {
  margin-bottom: 8px;
  color: #31405a;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.booking-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.booking-slot-list button {
  min-height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #17468d;
  font-weight: 900;
}

.booking-slot-list button.is-selected {
  border-color: #1d5fd1;
  background: #1d5fd1;
  color: #fff;
}

.booking-form-panel {
  position: sticky;
  top: 20px;
  align-content: start;
}

.booking-unavailable-panel,
.booking-confirmed-panel {
  max-width: 720px;
  justify-items: start;
}

.team-room-options label {
  display: grid;
  gap: 6px;
  color: #243147;
  font-size: 0.9rem;
  font-weight: 700;
}

.team-room-options label:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-list article {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e0e6f0;
  border-radius: 8px;
}

.room-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.room-list article .danger-button {
  background: #b42318;
  color: #fff;
}

.room-list article .danger-button:hover {
  background: #8f1d14;
}

.room-list h3 {
  margin-bottom: 4px;
}

.room-list > div > h3 {
  margin: 14px 0 10px;
  color: #14213b;
  font-size: 1rem;
}

.room-list p {
  margin-bottom: 0;
  color: #687489;
}

.error-banner {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ffc2cb;
  background: #fff1f3;
  color: #a1182b;
}

.lobby {
  height: 100dvh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.lobby .topbar h1 {
  color: #0f172a;
}

.lobby .topbar p {
  color: #64748b;
}

.lobby-body {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lobby-body > .error-banner {
  width: min(100%, 1680px);
  flex: none;
}

.lobby-card {
  width: 100%;
  max-width: 1680px;
  min-height: 0;
  height: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 31vw, 460px);
  overflow: hidden;
}

.camera-check {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(24px, 3vw, 48px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 117, 255, 0.24), transparent 34%),
    #10192d;
  color: #fff;
}

.camera-check p {
  max-width: 320px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.76);
}

.lobby-device-setup {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.lobby-media-status {
  margin: 0;
  color: #42506a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.lobby-media-status[role='alert'] {
  color: #9f1239;
}

.lobby-mic-meter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.lobby-mic-meter-label {
  color: #172033;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lobby-mic-meter-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.lobby-mic-meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #2f75ff, #22c55e);
  transition: transform 80ms linear;
}

.lobby-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10192d;
}

.lobby-preview-video.is-mirrored {
  transform: scaleX(-1);
}

.lobby-media-toggles {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.lobby-media-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.lobby-media-toggle.is-off {
  background: #9f1239;
  color: #fff;
}

.lobby-media-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lobby-media-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.55);
}

.lobby-form {
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 2.3vw, 34px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.lobby-form-content {
  min-width: 0;
  min-height: 0;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.lobby-form-content > h2 {
  margin-bottom: 2px;
}

.guest-name-field {
  display: grid;
  gap: 8px;
  color: #42506a;
  font-size: 0.88rem;
  font-weight: 800;
}

.guest-name-field input {
  font-size: 1rem;
  font-weight: 700;
}

.lobby-enter-action {
  width: 100%;
  min-height: 48px;
  flex: none;
}

.lobby-share-desktop {
  min-width: 0;
}

.lobby-share-mobile {
  display: none;
}

@media (min-width: 761px) and (max-height: 700px) {
  .lobby {
    padding-block: 16px;
    gap: 12px;
  }

  .lobby .topbar h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
  }

  .lobby .topbar p {
    font-size: 0.9rem;
  }

  .lobby-card {
    max-height: 100%;
  }

  .camera-check {
    padding: 20px;
  }

  .lobby-form {
    padding: 18px 22px;
    gap: 10px;
  }

  .lobby-form-content {
    padding-right: 3px;
  }

  .lobby-share-desktop .share-card {
    padding: 10px;
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: stretch;
    gap: 8px;
  }

  .lobby-share-desktop .share-card-head {
    grid-column: 1 / -1;
  }

  .lobby-share-desktop .share-card svg:not(.lucide) {
    width: 72px;
    height: 72px;
    grid-row: 2 / 4;
  }

  .lobby-enter-action {
    min-height: 44px;
  }
}

.share-card {
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  justify-items: center;
  gap: 10px;
  background: #f8fbff;
}

.share-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17468d;
}

.share-card svg:not(.lucide) {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  background: #fff;
}

.share-card code {
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: #334056;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.share-card .secondary-action {
  width: 100%;
}

.share-card.compact {
  padding: 12px;
}

.share-card.compact svg:not(.lucide) {
  width: 112px;
  height: 112px;
}

.meeting-stage {
  min-width: 0;
  height: 100vh;
  padding: 18px 22px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.18), transparent 30%),
    #0b1020;
}

.meeting-header {
  grid-column: 1;
  color: white;
  min-height: 48px;
  align-items: center;
}

.meeting-header h1 {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.meeting-header p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.meeting-title-panel {
  min-width: 0;
}

.meeting-title-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  pointer-events: auto;
}

.meeting-title-summary h1,
.meeting-title-summary p {
  min-width: 0;
}

.meeting-title-summary h1 {
  margin-bottom: 0;
}

.meeting-title-summary p {
  grid-column: 1 / -1;
}

.meeting-title-icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.meeting-title-icon-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.meeting-title-editor {
  width: min(100%, 460px);
  min-width: min(100%, 280px);
  display: grid;
  gap: 6px;
  pointer-events: auto;
}

.meeting-title-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meeting-title-edit-row input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #10192d;
  font-weight: 800;
}

.meeting-title-error {
  color: #fecaca !important;
}

.meeting-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.livekit-shell {
  min-height: 0;
  height: calc(100vh - 112px);
  grid-column: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #050914;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.meeting-livekit-layout {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #050914;
  color: #e5edf8;
}

.meeting-video-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(5, 9, 20, 0.98)),
    #050914;
}

.meeting-audio-recovery {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-align: center;
  pointer-events: auto;
}

.meeting-livekit-layout .meeting-audio-recovery button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.meeting-audio-recovery button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.meeting-audio-recovery p {
  margin: 8px 0 0;
}

.meeting-video-grid {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 18px 18px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: minmax(220px, 1fr);
  gap: 12px;
}

.mobile-immersive-stage {
  display: none;
}

.meeting-stage-tile-button,
.meeting-livekit-layout button.meeting-stage-tile-button {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #0f172a;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.meeting-stage-tile-button:hover,
.meeting-stage-tile-button:focus-within,
.meeting-livekit-layout button.meeting-stage-tile-button:hover,
.meeting-stage-tile-button:focus-visible,
.meeting-livekit-layout button.meeting-stage-tile-button:focus-visible {
  border-color: rgba(96, 165, 250, 0.82);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22), 0 18px 45px rgba(0, 0, 0, 0.28);
  outline: none;
}

.meeting-stage-tile-button.is-selected,
.meeting-livekit-layout button.meeting-stage-tile-button.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 18px 45px rgba(0, 0, 0, 0.3);
}

.meeting-stage-participant-tile,
.meeting-stage-tile-button .lk-participant-tile {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
}

.meeting-stage-tile-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.meeting-stage-tile-button .lk-participant-placeholder {
  gap: 0.5rem;
}

.meeting-camera-off-icon {
  display: inline-flex;
  color: #fca5a5;
}

.meeting-stage-tile-button .lk-participant-placeholder .meeting-camera-off-icon svg {
  width: 18px;
  height: 18px;
  padding: 0;
}

.meeting-microphone-status {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.meeting-participants-panel .meeting-microphone-status {
  margin-inline: 0.4rem;
}

.meeting-microphone-status.is-muted {
  color: #b91c1c;
}

.meeting-stage-tile-button > .meeting-microphone-status {
  position: absolute;
  inset-inline-end: 0.4rem;
  bottom: 0.4rem;
  z-index: 3;
  padding: 0.25rem;
  border-radius: 0.4rem;
  background: #0f172a;
  color: #fca5a5;
  pointer-events: none;
}

.meeting-stage-tile-button:has(> .meeting-microphone-status) > .lk-participant-metadata {
  inset-inline-end: 2.4rem;
  overflow-wrap: anywhere;
}

.meeting-livekit-layout .meeting-stage-spotlight-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: inherit;
}

.meeting-livekit-layout .screen-popout-button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  cursor: pointer;
}

.meeting-livekit-layout .screen-popout-button:hover { background: #25344e; }
.meeting-livekit-layout .screen-popout-button:focus-visible,
.meeting-livekit-layout .meeting-stage-spotlight-button:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: -3px;
}

.screen-popout-notice {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid #fbbf2470;
  border-radius: 12px;
  background: #252017;
  color: #fef3c7;
  font-size: 14px;
}

.screen-popout-notice button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.meeting-stage-tile-button.is-metadata-on-interaction .lk-participant-metadata,
.meeting-stage-tile-button.is-metadata-on-interaction .meeting-stage-tile-chip {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  pointer-events: none;
}

.meeting-stage-tile-button.is-metadata-on-interaction:focus-within .lk-participant-metadata,
.meeting-stage-tile-button.is-metadata-on-interaction:focus-within .meeting-stage-tile-chip,
.meeting-stage-tile-button.is-metadata-on-interaction:hover .lk-participant-metadata,
.meeting-stage-tile-button.is-metadata-on-interaction:focus-visible .lk-participant-metadata,
.meeting-stage-tile-button.is-metadata-on-interaction:active .lk-participant-metadata,
.meeting-stage-tile-button.is-metadata-on-interaction:hover .meeting-stage-tile-chip,
.meeting-stage-tile-button.is-metadata-on-interaction:focus-visible .meeting-stage-tile-chip,
.meeting-stage-tile-button.is-metadata-on-interaction:active .meeting-stage-tile-chip {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-stage {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
  padding: 12px;
  background: #050914;
  pointer-events: auto;
}

.fullscreen-stage-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

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

.fullscreen-stage-tile,
.local-camera-preview-tile {
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.fullscreen-stage-tile {
  min-height: 0;
  height: 100%;
  cursor: zoom-out;
}

.fullscreen-stage-empty {
  min-height: 280px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  color: #cbd5e1;
  text-align: center;
  padding: 18px;
}

.meeting-chat-focus {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 18px;
  display: grid;
  --chat-preview-dock-width: 330px;
  grid-template-columns: minmax(0, 1fr) 18px minmax(240px, var(--chat-preview-dock-width));
  gap: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(21, 94, 239, 0.16), transparent 34%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 42%, #e8eef8 100%);
  color: #172033;
}

.meeting-chat-focus.is-preview-left {
  grid-template-columns: minmax(240px, var(--chat-preview-dock-width)) 18px minmax(0, 1fr);
}

.meeting-chat-focus.is-preview-left .chat-focus-main {
  order: 3;
}

.meeting-chat-focus.is-preview-left .chat-video-preview {
  order: 1;
}

.meeting-chat-focus.is-preview-right .chat-focus-main {
  order: 1;
}

.meeting-chat-focus.is-preview-right .chat-video-preview {
  order: 3;
}

.chat-preview-dock-resizer {
  position: relative;
  z-index: 3;
  order: 2;
  width: 18px;
  min-width: 18px;
  align-self: stretch;
  display: grid;
  place-items: center;
  cursor: col-resize;
  touch-action: none;
  outline: none;
}

.chat-preview-dock-resizer span {
  width: 3px;
  height: min(92px, 28%);
  border-radius: 999px;
  background: rgba(72, 105, 154, 0.28);
  box-shadow: 0 0 0 0 rgba(21, 94, 239, 0);
  transition:
    width 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.chat-preview-dock-resizer:hover span,
.chat-preview-dock-resizer:focus-visible span,
.chat-preview-dock-resizer:active span {
  width: 5px;
  background: #155eef;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.14);
}

.chat-preview-dock-resizer:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(21, 94, 239, 0.72);
  outline-offset: -4px;
}

.meeting-chat-focus.is-video-floating {
  grid-template-columns: minmax(0, 1fr);
}

.chat-focus-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 245, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.16);
}

.chat-focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-focus-header p {
  margin: 0 0 3px;
  color: #60708a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-focus-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.chat-focus-video-button,
.chat-video-preview button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #fff;
  color: #17468d;
  font-weight: 900;
}

.chat-focus-video-button:hover,
.chat-video-preview button:hover {
  background: #e8f0ff;
}

.chat-video-preview {
  min-width: 0;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.94);
  color: #f8fafc;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.3);
}

.chat-video-preview.is-desktop-floating {
  position: fixed;
  z-index: 34;
  min-width: 240px;
  min-height: 200px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  grid-template-rows: auto minmax(54px, 1fr) auto;
  padding: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.chat-video-preview.is-desktop-floating:active {
  cursor: grabbing;
}

.chat-video-preview.is-docked-left,
.chat-video-preview.is-docked-right {
  max-height: 100%;
  overflow-y: auto;
}

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

.chat-video-preview-head span {
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-preview-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-preview-dock-button,
.chat-video-preview .chat-preview-dock-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
}

.chat-video-preview-tile {
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0f172a;
}

@media (min-width: 981px) {
  .meeting-side-panel.is-transcript-open .transcript-panel-body {
    grid-template-areas:
      "status controls"
      "content content";
    grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .chat-video-preview-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .chat-video-preview.is-screen-share .chat-video-preview-tile video {
    object-fit: contain;
  }
}

.chat-video-preview.is-desktop-floating .chat-video-preview-tile {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.chat-video-preview.is-desktop-floating .chat-preview-strip {
  min-height: 0;
  max-height: 72px;
  padding: 6px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 80px;
  overflow-x: auto;
  overflow-y: hidden;
}

.chat-video-preview.is-desktop-floating .chat-preview-selector-tile,
.meeting-livekit-layout .chat-video-preview.is-desktop-floating button.chat-preview-selector-tile {
  min-height: 52px;
  height: 52px;
}

.chat-preview-floating-resizer {
  position: absolute;
  z-index: 8;
  display: block;
  touch-action: none;
  outline: none;
}

.chat-preview-floating-resizer::after {
  content: '';
  position: absolute;
  opacity: 0;
  border-color: rgba(96, 165, 250, 0.94);
  transition: opacity 130ms ease;
  pointer-events: none;
}

.chat-video-preview.is-desktop-floating:hover .chat-preview-floating-resizer::after,
.chat-video-preview.is-desktop-floating:focus-within .chat-preview-floating-resizer::after,
.chat-preview-floating-resizer:focus-visible::after,
.chat-preview-floating-resizer:hover::after,
.chat-preview-floating-resizer:active::after {
  opacity: 1;
}

.chat-preview-floating-resizer:focus-visible::after {
  filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.95));
}

.chat-preview-floating-resizer.is-n,
.chat-preview-floating-resizer.is-s {
  left: 18px;
  right: 18px;
  height: 12px;
  cursor: ns-resize;
}

.chat-preview-floating-resizer.is-n {
  top: -5px;
}

.chat-preview-floating-resizer.is-s {
  bottom: -5px;
}

.chat-preview-floating-resizer.is-n::after,
.chat-preview-floating-resizer.is-s::after {
  left: 18%;
  right: 18%;
  height: 2px;
  border-top: 2px solid;
}

.chat-preview-floating-resizer.is-n::after {
  top: 5px;
}

.chat-preview-floating-resizer.is-s::after {
  bottom: 5px;
}

.chat-preview-floating-resizer.is-e,
.chat-preview-floating-resizer.is-w {
  top: 18px;
  bottom: 18px;
  width: 12px;
  cursor: ew-resize;
}

.chat-preview-floating-resizer.is-e {
  right: -5px;
}

.chat-preview-floating-resizer.is-w {
  left: -5px;
}

.chat-preview-floating-resizer.is-e::after,
.chat-preview-floating-resizer.is-w::after {
  top: 18%;
  bottom: 18%;
  width: 2px;
  border-left: 2px solid;
}

.chat-preview-floating-resizer.is-e::after {
  right: 5px;
}

.chat-preview-floating-resizer.is-w::after {
  left: 5px;
}

.chat-preview-floating-resizer.is-ne,
.chat-preview-floating-resizer.is-se,
.chat-preview-floating-resizer.is-sw,
.chat-preview-floating-resizer.is-nw {
  width: 22px;
  height: 22px;
}

.chat-preview-floating-resizer.is-ne,
.chat-preview-floating-resizer.is-sw {
  cursor: nesw-resize;
}

.chat-preview-floating-resizer.is-nw,
.chat-preview-floating-resizer.is-se {
  cursor: nwse-resize;
}

.chat-preview-floating-resizer.is-ne,
.chat-preview-floating-resizer.is-nw {
  top: -7px;
}

.chat-preview-floating-resizer.is-se,
.chat-preview-floating-resizer.is-sw {
  bottom: -7px;
}

.chat-preview-floating-resizer.is-ne,
.chat-preview-floating-resizer.is-se {
  right: -7px;
}

.chat-preview-floating-resizer.is-nw,
.chat-preview-floating-resizer.is-sw {
  left: -7px;
}

.chat-preview-floating-resizer.is-ne::after,
.chat-preview-floating-resizer.is-se::after,
.chat-preview-floating-resizer.is-sw::after,
.chat-preview-floating-resizer.is-nw::after {
  inset: 5px;
  border-style: solid;
  border-width: 0;
}

.chat-preview-floating-resizer.is-ne::after {
  border-top-width: 2px;
  border-right-width: 2px;
}

.chat-preview-floating-resizer.is-se::after {
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.chat-preview-floating-resizer.is-sw::after {
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.chat-preview-floating-resizer.is-nw::after {
  border-top-width: 2px;
  border-left-width: 2px;
}

.chat-video-preview-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  color: #cbd5e1;
  text-align: center;
}

.chat-preview-strip {
  min-width: 0;
  max-height: 164px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.chat-preview-selector-tile,
.meeting-livekit-layout button.chat-preview-selector-tile {
  min-height: 68px;
  height: 68px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none;
}

.chat-preview-selector-tile .lk-participant-metadata,
.chat-preview-selector-tile .meeting-stage-tile-chip {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  pointer-events: none;
}

.chat-preview-selector-tile:hover .lk-participant-metadata,
.chat-preview-selector-tile:focus-visible .lk-participant-metadata,
.chat-preview-selector-tile:active .lk-participant-metadata,
.chat-preview-selector-tile:hover .meeting-stage-tile-chip,
.chat-preview-selector-tile:focus-visible .meeting-stage-tile-chip,
.chat-preview-selector-tile:active .meeting-stage-tile-chip {
  opacity: 1;
  transform: translateY(0);
}

.chat-preview-selector-tile .meeting-stage-tile-chip {
  left: 6px;
  top: 6px;
  padding: 3px 6px;
  font-size: 0.62rem;
}

.local-camera-preview {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  width: min(28vw, 220px);
  min-width: 128px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.local-camera-preview .local-camera-preview-tile {
  aspect-ratio: 16 / 10;
}

.local-camera-preview span {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  pointer-events: none;
}

.local-camera-preview:hover span,
.local-camera-preview:focus-within span,
.local-camera-preview:active span {
  opacity: 1;
  transform: translateY(0);
}

.stage-thumbnail-strip {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 14;
  width: min(720px, calc(100% - 36px));
  max-height: 118px;
  padding: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 9, 20, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.stage-thumbnail-tile,
.meeting-livekit-layout button.stage-thumbnail-tile {
  flex: 0 0 132px;
  width: 132px;
  height: 86px;
  border-radius: 10px;
  cursor: pointer;
}

.stage-thumbnail-tile .meeting-stage-tile-chip {
  left: 6px;
  top: 6px;
  padding: 3px 6px;
  font-size: 0.64rem;
}

.meeting-call-controls {
  position: relative;
  z-index: 40;
  max-width: 100%;
  min-height: 76px;
  padding: 12px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 12px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(5, 9, 20, 0.68), rgba(5, 9, 20, 0.96)),
    #050914;
  scrollbar-width: thin;
}

.chat-message-toast,
.meeting-livekit-layout button.chat-message-toast,
.transcription-notice-toast {
  position: absolute;
  right: 24px;
  bottom: 104px;
  z-index: 62;
  width: min(360px, calc(100% - 48px));
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.82)),
    #0f172a;
  color: #f8fafc;
  text-align: left;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

.chat-message-toast:hover,
.meeting-livekit-layout button.chat-message-toast:hover,
.chat-message-toast:focus-visible,
.meeting-livekit-layout button.chat-message-toast:focus-visible,
.transcription-notice-toast:hover,
.transcription-notice-toast:focus-visible {
  border-color: rgba(147, 197, 253, 0.72);
  transform: translateY(-1px);
}

.chat-message-toast > svg,
.transcription-notice-toast > svg {
  width: 18px;
  height: 18px;
  color: #bfdbfe;
}

.chat-message-toast span,
.transcription-notice-toast span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chat-message-toast strong,
.chat-message-toast small,
.transcription-notice-toast strong,
.transcription-notice-toast small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-toast strong,
.transcription-notice-toast strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.chat-message-toast small,
.transcription-notice-toast small {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.76rem;
  line-height: 1.2;
}

.transcript-caption-overlay {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 46;
  width: min(760px, calc(100% - 48px));
  padding: 12px 16px;
  display: grid;
  gap: 4px;
  pointer-events: none;
  border: 1px solid rgba(191, 219, 254, 0.26);
  border-radius: 12px;
  background: rgba(5, 9, 20, 0.78);
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 18px 70px rgba(2, 6, 23, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.transcript-caption-speaker {
  min-width: 0;
  overflow: hidden;
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.transcript-caption-text,
.transcript-caption-translation {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.transcript-caption-text {
  -webkit-line-clamp: 2;
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 900;
}

.transcript-caption-translation {
  -webkit-line-clamp: 2;
  color: #bfdbfe;
  font-size: 0.98rem;
  font-weight: 800;
}

.transcript-caption-overlay.is-error .transcript-caption-translation {
  color: #fecaca;
}

.meeting-control-button,
.meeting-livekit-layout button.meeting-control-button {
  position: relative;
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(30, 41, 59, 0.92);
  color: #f8fafc;
  font-weight: 800;
  opacity: 1;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.meeting-control-button svg,
.meeting-livekit-layout button.meeting-control-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.chat-video-toggle-icon {
  position: relative;
  width: 24px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

.meeting-control-button .chat-video-toggle-icon svg,
.meeting-livekit-layout button.meeting-control-button .chat-video-toggle-icon svg {
  display: block;
}

.meeting-control-button .chat-video-toggle-icon svg:first-child,
.meeting-livekit-layout button.meeting-control-button .chat-video-toggle-icon svg:first-child {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.meeting-control-button .chat-video-toggle-icon svg:last-child,
.meeting-livekit-layout button.meeting-control-button .chat-video-toggle-icon svg:last-child {
  position: absolute;
  right: -2px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  padding: 2px;
  border-radius: 999px;
  background: #0f172a;
  color: #dbeafe;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.meeting-control-button span,
.meeting-livekit-layout button.meeting-control-button span {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  display: block;
  max-width: 88px;
  transform: translateX(-50%);
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.meeting-control-button:hover,
.meeting-livekit-layout button.meeting-control-button:hover {
  background: rgba(51, 65, 85, 0.98);
  transform: translateY(-1px);
}

.meeting-control-button:hover span,
.meeting-control-button:focus-visible span,
.meeting-livekit-layout button.meeting-control-button:hover span,
.meeting-livekit-layout button.meeting-control-button:focus-visible span {
  opacity: 1;
}

.meeting-control-button.is-active,
.meeting-livekit-layout button.meeting-control-button.is-active {
  background: #155eef;
  color: #fff;
}

.meeting-control-button.is-panel-action,
.meeting-livekit-layout button.meeting-control-button.is-panel-action {
  background: rgba(15, 23, 42, 0.78);
}

.meeting-control-button.is-panel-action.is-active,
.meeting-livekit-layout button.meeting-control-button.is-panel-action.is-active {
  background: #e8f0ff;
  color: #174ea6;
}

.control-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #050914;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
}

.meeting-livekit-layout.is-fullscreen {
  width: 100%;
  height: 100%;
  background: #050914;
}

.meeting-livekit-layout.is-fullscreen .meeting-video-panel {
  height: 100%;
}

.meeting-control-danger,
.meeting-livekit-layout button.meeting-control-danger {
  background: #e11d48;
  color: #fff;
}

.mobile-meeting-tabs {
  display: none;
}

.meeting-side-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 94px;
  z-index: 18;
  width: min(360px, calc(100% - 36px));
  min-width: 0;
  min-height: 0;
  display: none;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  color: #172033;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.36);
}

.meeting-side-panel.is-transcript-open {
  width: min(760px, calc(100% - 36px));
}

.meeting-side-panel.is-desktop-open {
  display: grid;
}

.participants-panel,
.chat-panel,
.share-panel,
.effects-panel,
.devices-panel,
.host-tools-panel,
.transcript-panel {
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.devices-panel {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.transcript-panel {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}

.meeting-side-panel .participants-panel,
.meeting-side-panel .chat-panel,
.meeting-side-panel .share-panel,
.meeting-side-panel .effects-panel,
.meeting-side-panel .devices-panel,
.meeting-side-panel .host-tools-panel,
.meeting-side-panel .transcript-panel {
  display: none;
}

.meeting-side-panel.is-participants-open .participants-panel,
.meeting-side-panel.is-chat-open .chat-panel,
.meeting-side-panel.is-share-open .share-panel,
.meeting-side-panel.is-effects-open .effects-panel,
.meeting-side-panel.is-devices-open .devices-panel,
.meeting-side-panel.is-host-open .host-tools-panel,
.meeting-side-panel.is-transcript-open .transcript-panel {
  display: grid;
}

.meeting-control-mobile-only,
.meeting-livekit-layout button.meeting-control-mobile-only {
  display: none;
}

.meeting-control-desktop-only,
.meeting-livekit-layout button.meeting-control-desktop-only {
  display: inline-flex;
}

.device-settings-panel {
  max-height: 100%;
  min-height: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.device-settings-panel p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.device-select-row {
  display: grid;
  gap: 6px;
}

.device-select-row span {
  color: #172033;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.device-select-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.device-select-row select:disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.device-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-state-row span {
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
}

.device-state-row span.is-on {
  border-color: rgba(34, 197, 94, 0.3);
  background: #ecfdf3;
  color: #15803d;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-row h2 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
}

.panel-title-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 800;
}

.panel-close-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #fff;
  color: #172033;
}

.panel-close-button:hover {
  background: #eef4ff;
}

.participants-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.participants-list li {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.participant-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participants-panel small {
  color: #60708a;
  font-size: 0.76rem;
}

.participant-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
}

.participants-list-shell {
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.meeting-name-editor {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
}

.meeting-name-editor label {
  font-size: 0.82rem;
  font-weight: 600;
}

.meeting-name-editor input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #bac9df;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 16px;
}

.meeting-name-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meeting-name-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dce6f5;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-size: 0.8rem;
}

.meeting-name-actions button[type="submit"] {
  background: #245cdb;
  border-color: #245cdb;
  color: #fff;
}

.meeting-name-editor :is(input, button):focus-visible {
  outline: 2px solid #245cdb;
  outline-offset: 2px;
}

.meeting-name-editor :disabled { opacity: 0.6; cursor: default; }
.meeting-name-editor p { margin: 0; color: #60708a; font-size: 0.76rem; line-height: 1.5; }
.meeting-name-editor .meeting-name-error { color: #b42318; }

.admission-wait-card,
.admission-requests-card {
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
}

.admission-wait-card {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admission-wait-card p {
  margin: 0;
  color: #51627a;
  line-height: 1.45;
}

.admission-requests-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admission-requests-head strong {
  flex: 1;
}

.admission-requests-head span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #17468d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.admission-request-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.admission-request-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.admission-request-list li > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.admission-popup {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 90;
  width: min(520px, calc(100% - 32px));
  padding: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(14, 22, 37, 0.92);
  color: #fff;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.38);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.admission-popup.is-status {
  width: auto;
  min-width: 220px;
  justify-content: center;
  grid-template-columns: 1fr;
  text-align: center;
  font-weight: 700;
}

.admission-popup-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
}

.admission-popup-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admission-popup-copy strong,
.admission-popup-copy p {
  margin: 0;
}

.admission-popup-copy p {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admission-popup-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admission-popup-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.admission-popup-actions .danger-mini {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.transcription-prompt .admission-popup-copy p {
  white-space: normal;
}

.participant-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.participant-actions button,
.chat-icon-button,
.chat-send-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #17468d;
}

.participant-actions button:hover,
.chat-icon-button:hover,
.chat-send-button:hover {
  background: #e8f0ff;
}

.participant-actions .danger-mini {
  color: #b4233b;
}

.invite-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #17468d;
}

.invite-card-collapsible {
  padding: 0;
  overflow: hidden;
}

.invite-card-collapsible summary {
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.invite-card-collapsible summary::-webkit-details-marker {
  display: none;
}

.invite-card-collapsible summary::after {
  content: '+';
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f0ff;
  color: #174ea6;
  font-weight: 900;
}

.invite-card-collapsible[open] summary::after {
  content: '-';
}

.invite-card-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.invite-card p {
  margin: 0;
  color: #60708a;
  line-height: 1.45;
}

.invite-card label {
  display: grid;
  gap: 5px;
  color: #43526a;
  font-size: 0.78rem;
  font-weight: 800;
}

.invite-card textarea,
.invite-card input {
  font-size: 0.88rem;
}

.invite-submit {
  width: 100%;
}

.invite-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.invite-list li {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: #f6f9ff;
}

.invite-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172033;
  font-size: 0.82rem;
}

.invite-status {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #174ea6;
  font-size: 0.72rem;
}

.invite-status.is-sent {
  background: #dcfce7;
  color: #166534;
}

.invite-status.is-failed {
  background: #ffe4e6;
  color: #b4233b;
}

.chat-panel {
  overflow: hidden;
}

.custom-chat {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto auto auto;
  gap: 10px;
}

.custom-chat.is-prominent {
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 12px;
}

.chat-messages {
  min-height: 0;
  padding: 10px;
  display: grid;
  align-content: end;
  gap: 9px;
  overflow: auto;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
}

.custom-chat.is-prominent .chat-messages {
  padding: 18px;
  gap: 12px;
  border-color: #d8e5fb;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.98)),
    #fff;
}

.empty-chat,
.panel-status {
  margin: 0;
  color: #60708a;
  font-size: 0.84rem;
  line-height: 1.35;
}

.empty-chat {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.empty-chat svg {
  color: #155eef;
}

.empty-chat p {
  margin: 0;
  color: #172033;
  font-weight: 900;
}

.empty-chat span {
  max-width: 260px;
  color: #60708a;
  font-size: 0.82rem;
}

.panel-status.is-danger {
  color: #b4233b;
}

.transcript-panel-body {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  gap: 8px;
}

.transcript-settings {
  flex: 0 0 auto;
  min-width: 0;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
}

.transcript-settings-toggle {
  min-height: 36px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.transcript-settings-toggle::-webkit-details-marker { display: none; }
.chat-focus-main .transcript-settings-toggle .transcript-status-row { flex-wrap: nowrap; }
.transcript-settings-toggle .transcript-status-row > span:last-child { min-width: 0; }
.transcript-settings-chevron { flex: 0 0 auto; color: #60708a; }
.transcript-settings[open] .transcript-settings-chevron { transform: rotate(180deg); }
.transcript-settings-toggle:hover { background: #edf3fc; }
.transcript-settings-toggle:focus-visible,
.transcript-export-toggle:focus-visible { outline: 2px solid #155eef; outline-offset: -2px; border-radius: 8px; }

.transcript-settings-body {
  max-height: min(240px, 32dvh);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  border-top: 1px solid #dce6f5;
}

.transcript-settings-body .transcript-action-row { flex-wrap: wrap; justify-content: flex-start; }
.transcript-settings-body .transcript-icon-toggles { margin-left: 0; }
.transcript-alerts { flex: 0 0 auto; max-height: 20dvh; overflow: auto; }

/* One conversation surface keeps the composer and disclosure reachable even
   when the viewport is short or the software keyboard reduces its height. */
.chat-focus-main .transcript-panel-body {
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
}

.chat-focus-main .transcript-status-block,
.chat-focus-main .transcript-control-block {
  flex: 0 0 auto;
}

.chat-focus-main .transcript-content-panel {
  flex: 1 0 240px;
  min-height: 240px;
}

.chat-focus-main .transcript-segments-shell {
  min-height: 120px;
}

.chat-focus-main .transcript-status-row,
.chat-focus-main .transcript-action-row,
.transcript-segments article header {
  flex-wrap: wrap;
}

.transcript-segments article {
  min-width: 0;
  max-width: 100%;
}

.transcript-segments article header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcript-segments article header time {
  white-space: nowrap;
  font-size: 0.72rem;
}

.conversation-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
}

.custom-chat.is-composer {
  flex: 0 0 auto;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-chat.is-composer .chat-compose input {
  min-width: 0;
  font-size: 16px;
}

.transcript-segments .chat-audio-attachment audio {
  min-width: 0;
}

.transcript-status-block {
  grid-area: status;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.transcript-control-block {
  grid-area: controls;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.transcript-status-row,
.transcript-action-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transcript-status-row {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Base rule also carries the .is-idle tone (grey); only .is-live and .is-error override it. */
.transcript-live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
}

.transcript-live-dot.is-live {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.transcript-live-dot.is-error {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.transcript-hint {
  margin: 0;
  color: #60708a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.transcript-icon-legend {
  font-size: 0.74rem;
}

.transcript-action-row {
  justify-content: space-between;
}

.transcript-action-row > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transcript-languages {
  margin-left: auto;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.transcript-icon-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transcript-icon-toggle,
.transcript-translation-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
}

.meeting-livekit-layout button.transcript-icon-toggle,
.meeting-livekit-layout button.transcript-translation-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.transcript-icon-toggle[aria-pressed="true"] {
  border-color: #155eef;
  background: #155eef;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.45);
}

.transcript-translation-toggle[aria-checked="true"] {
  border-color: #155eef;
  background: #155eef;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.45);
}

.transcript-icon-toggle:disabled,
.meeting-livekit-layout button.transcript-icon-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.transcript-translation-toggle:focus-visible {
  outline: 2px solid rgba(21, 94, 239, 0.24);
  outline-offset: 2px;
}

.transcript-toggle,
.meeting-livekit-layout button.transcript-toggle {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfd7ff;
  border-radius: 8px;
  background: #155eef;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.transcript-toggle.is-running,
.meeting-livekit-layout button.transcript-toggle.is-running {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.transcript-toggle:disabled,
.meeting-livekit-layout button.transcript-toggle:disabled {
  cursor: not-allowed;
  border-color: #dbe3ef;
  background: #e2e8f0;
  color: #64748b;
}

.transcript-content-panel {
  grid-area: content;
  min-height: 0;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transcript-email-instructions {
  margin: 0;
  color: #60708a;
  font-size: 0.84rem;
  line-height: 1.4;
}

.transcript-export-drawer .panel-status:empty {
  padding: 0;
  border: 0;
}

.transcript-email-form {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.transcript-email-form > label {
  min-width: 0;
  flex: 1 1 220px;
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.transcript-email-form > label input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.transcript-email-form > label input:focus {
  outline: 2px solid rgba(21, 94, 239, 0.22);
  outline-offset: 2px;
  border-color: #155eef;
}

.transcript-email-submit,
.meeting-livekit-layout button.transcript-email-submit,
.transcript-download-button,
.meeting-livekit-layout button.transcript-download-button {
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.transcript-email-submit,
.meeting-livekit-layout button.transcript-email-submit {
  flex: 1 1 150px;
}

.transcript-segments-shell {
  position: relative;
  min-height: 0;
  flex: 1 1 180px;
  display: flex;
}

.transcript-segments {
  min-height: 0;
  flex: 1 1 auto;
  padding: 10px;
  display: grid;
  align-content: safe end;
  gap: 9px;
  overflow: auto;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
}

.transcript-jump-to-live {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  border: 1px solid #155eef;
  border-radius: 999px;
  background: #155eef;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(21, 94, 239, 0.32);
}

.meeting-livekit-layout button.transcript-jump-to-live {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: #155eef;
  color: #fff;
}

.empty-transcript {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.empty-transcript svg {
  color: #155eef;
}

.empty-transcript p {
  margin: 0;
  color: #172033;
  font-weight: 900;
}

.empty-transcript span {
  max-width: 260px;
  color: #60708a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.transcript-segment {
  padding: 9px 10px;
  border: 1px solid #e5edf8;
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
}

.transcript-segment.is-interim {
  border-style: dashed;
  color: #475569;
}

.transcript-segment header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.72rem;
}

.transcript-segment header strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-segment header small {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e0ecff;
  color: #174ea6;
  font-weight: 900;
}

.transcript-segment p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.38;
}

.transcript-translation {
  margin: 8px 0 0;
  padding: 8px 0 0 10px;
  border-left: 3px solid #155eef;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.4;
}

.transcript-translation.is-error {
  border-left-color: #be123c;
  color: #be123c;
}

.transcript-export-drawer {
  flex: 0 0 auto;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
}

.transcript-export-toggle {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #172033;
  font-size: 0.82rem;
  font-weight: 900;
  list-style: none;
}

.transcript-export-toggle::-webkit-details-marker {
  display: none;
}

.transcript-export-toggle::before {
  content: '▸';
  color: #64748b;
}

.transcript-export-drawer[open] .transcript-export-toggle::before {
  content: '▾';
}

.transcript-export-drawer-body {
  max-height: min(320px, 46dvh);
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.transcript-summary-panel {
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transcript-summary-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.transcript-summary-actions > span {
  min-width: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}

.transcript-summary-button,
.meeting-livekit-layout button.transcript-summary-button {
  flex: 1 1 160px;
  justify-content: center;
}

.transcript-summary-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #172033;
  font-size: 0.9rem;
  line-height: 1.48;
}

.chat-message {
  max-width: 92%;
  padding: 9px 10px;
  border-radius: 10px;
  background: #eef4ff;
  color: #172033;
}

.custom-chat.is-prominent .chat-message {
  max-width: min(72%, 720px);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chat-message.is-local {
  justify-self: end;
  background: #155eef;
  color: #fff;
}

.custom-chat.is-prominent .chat-message.is-local {
  border-radius: 16px 16px 4px 16px;
}

.chat-message header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.75rem;
  opacity: 0.82;
}

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

.custom-chat.is-prominent .chat-message p {
  font-size: 0.98rem;
  line-height: 1.45;
}

.chat-image-attachment,
.chat-file-attachment,
.chat-media-attachment,
.chat-audio-attachment,
.chat-pdf-attachment {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.chat-image-attachment {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-image-attachment img,
.attachment-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
}

.attachment-preview-image {
  grid-column: 1 / -1;
  max-height: 160px;
}

.chat-media-attachment video {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  background: #0f172a;
}

.chat-audio-attachment audio {
  width: 100%;
  min-width: 220px;
}

.chat-pdf-attachment object {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.chat-media-attachment a,
.chat-audio-attachment a,
.chat-pdf-attachment a {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.82rem;
}

.chat-file-attachment {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.attachment-preview {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f8fbff;
}

.attachment-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview button {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #e8f0ff;
  color: #17468d;
}

.typing-indicator {
  min-height: 20px;
  margin: -2px 4px 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.custom-chat.is-prominent .typing-indicator {
  margin: 0 8px;
  color: #3d5b86;
  font-size: 0.86rem;
}

.chat-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.custom-chat.is-prominent .chat-compose {
  gap: 10px;
  padding: 10px;
  border: 1px solid #dce6f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.chat-compose input {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dce6f5;
  border-radius: 24px;
  background: #f4f7fb;
  color: #172033;
  font: inherit;
}

.custom-chat.is-prominent .chat-compose input {
  min-height: 44px;
  border-radius: 999px;
  border-color: transparent;
  background: #f4f7fb;
}

.chat-compose .chat-icon-button,
.chat-compose .chat-send-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-color: transparent;
  border-radius: 999px;
}

.chat-compose .chat-send-button,
.custom-chat.is-prominent .chat-send-button {
  background: #155eef;
  color: #fff;
}

.chat-compose button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-compose button:focus-visible,
.chat-compose input:focus-visible {
  outline: 2px solid #155eef;
  outline-offset: 2px;
}

.chat-attachment-control {
  position: relative;
  flex: 0 0 44px;
}

.chat-attachment-options {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10;
  display: grid;
  width: max-content;
  max-width: 240px;
  padding: 4px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #0f172a26;
}

.chat-attachment-options button,
.meeting-livekit-layout .chat-attachment-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  text-align: left;
  font: inherit;
}

.chat-attachment-options button:hover { background: #f4f7fb; }

.chat-compose .chat-voice-button.is-recording {
  background: #dc2626;
  color: #fff;
}

.chat-voice-spinner { animation: chat-voice-spin 1s linear infinite; }
@keyframes chat-voice-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .chat-voice-spinner { animation: none; }
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.effects-options {
  display: grid;
  gap: 9px;
}

.effects-options button,
.effect-upload {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 800;
}

.effects-options button.active,
.effect-upload.active {
  border-color: #7db2ff;
  background: #e8f0ff;
  color: #174ea6;
}

.effect-upload input {
  display: none;
}

.share-title-row {
  margin-bottom: 2px;
}

.host-tools-panel p {
  margin: 0;
  color: #687489;
  line-height: 1.45;
}

.host-tools-panel button {
  min-height: 46px;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 8px;
}

.meeting-alert {
  grid-column: 1 / -1;
  border: 1px solid rgba(247, 177, 92, 0.38);
  border-radius: 8px;
  background: rgba(247, 177, 92, 0.12);
  color: #ffdfb3;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.host-panel {
  padding: 18px;
  align-self: stretch;
  display: grid;
  gap: 10px;
  align-content: start;
}

.host-panel p {
  color: #687489;
  line-height: 1.45;
}

@media (max-width: 980px) {
  html.is-mobile-meeting-active,
  html.is-mobile-meeting-active body {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.is-mobile-meeting-active body {
    position: fixed;
    inset: 0;
    min-width: 0;
  }

  html.is-mobile-meeting-active .product-shell.meeting-shell {
    height: 100%;
    min-height: 0;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-shell.meeting-shell {
    min-height: 100dvh;
    display: block;
    background: #0c1222;
    overflow: hidden;
  }

  .side-rail {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .meeting-shell .side-rail {
    display: none;
  }

  .rail-nav,
  .identity-box {
    display: none;
  }

  .command-band,
  .marketing-stats,
  .meeting-preview,
  .lobby-card,
  .team-board,
  .meeting-stage {
    grid-template-columns: 1fr;
  }

  .meeting-stage {
    position: fixed;
    top: var(--meeting-viewport-top, 0px);
    left: var(--meeting-viewport-left, 0px);
    width: var(--meeting-viewport-width, 100%);
    height: var(--meeting-viewport-height, 100dvh);
    --meeting-visible-width: var(--meeting-viewport-width, 100vw);
    --meeting-visible-height: var(--meeting-viewport-height, 100dvh);
    min-height: 0;
    display: block;
    padding: 0;
    gap: 0;
    overflow: hidden;
    background: #050914;
  }

  .meeting-stage .meeting-header {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    z-index: 62;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
  }

  .meeting-stage .meeting-header > div:first-child {
    max-width: min(72vw, 310px);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(5, 9, 20, 0.58);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
  }

  .meeting-stage .meeting-header h1 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .meeting-stage .meeting-header p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
  }

  .meeting-stage .meeting-alert {
    position: absolute;
    top: calc(max(10px, env(safe-area-inset-top)) + 68px);
    left: 10px;
    right: 10px;
    z-index: 65;
    margin: 0;
  }

  .admission-popup {
    top: max(12px, env(safe-area-inset-top));
    width: min(360px, calc(100% - 20px));
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  .admission-popup-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .admission-popup-actions button {
    flex: 1;
  }

  .meeting-livekit-layout {
    position: relative;
    height: 100%;
    display: block;
    overflow: hidden;
  }

  .livekit-shell {
    min-height: 0;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .meeting-video-panel {
    position: relative;
    height: 100%;
    display: block;
    overflow: hidden;
  }

  .meeting-video-panel.is-chat-focus {
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  .meeting-chat-focus {
    position: relative;
    min-height: 0;
    height: 100%;
    padding: 8px;
    display: block;
    overflow: hidden;
    background: #eef4ff;
  }

  .chat-focus-main {
    height: 100%;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }

  .chat-focus-header {
    align-items: flex-start;
  }

  .chat-focus-header h2 {
    font-size: 1.12rem;
  }

  .chat-focus-header p {
    font-size: 0.68rem;
  }

  .chat-focus-video-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .chat-video-preview {
    position: absolute;
    right: 18px;
    top: calc(max(10px, env(safe-area-inset-top)) + 52px);
    z-index: 25;
    width: 132px;
    height: 92px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border-radius: 16px;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }

  .chat-preview-dock-resizer,
  .chat-preview-floating-resizer {
    display: none;
  }

  .chat-video-preview:active {
    cursor: grabbing;
  }

  .chat-video-preview-tile {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
  }

  .chat-video-preview.is-mobile-floating .lk-participant-metadata,
  .chat-video-preview.is-mobile-floating .meeting-stage-tile-chip {
    display: none;
  }

  .chat-video-preview.is-mobile-floating video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .chat-video-preview-empty {
    min-height: 100%;
    font-size: 0.72rem;
  }

  .chat-preview-strip {
    max-height: 92px;
    padding: 5px;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 5px;
    border-radius: 10px;
  }

  .chat-preview-selector-tile,
  .meeting-livekit-layout button.chat-preview-selector-tile {
    min-height: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .chat-preview-selector-tile .meeting-stage-tile-chip {
    left: 4px;
    top: 4px;
    padding: 2px 5px;
    font-size: 0.56rem;
  }

  .custom-chat.is-prominent .chat-messages {
    padding: 10px;
    border-radius: 12px;
  }

  .custom-chat.is-prominent .chat-message {
    max-width: 86%;
    padding: 10px 11px;
  }

  .custom-chat.is-prominent .chat-message p {
    font-size: 0.9rem;
  }

  .custom-chat.is-prominent .chat-compose {
    padding: 7px;
    gap: 7px;
    border-radius: 14px;
  }

  .custom-chat.is-prominent .chat-compose input {
    min-height: 44px;
  }

  .custom-chat.is-prominent .chat-icon-button,
  .custom-chat.is-prominent .chat-send-button {
    width: 44px;
    height: 44px;
  }

  .meeting-video-grid {
    padding: 6px;
  }

  .mobile-immersive-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    background: #050914;
  }

  .mobile-immersive-main {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #050914;
  }

  .mobile-immersive-main-tile,
  .meeting-livekit-layout button.mobile-immersive-main-tile {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #050914;
    box-shadow: none;
  }

  .mobile-immersive-main-tile .lk-participant-tile,
  .mobile-immersive-main-tile .meeting-stage-participant-tile {
    border-radius: 0;
  }

  .mobile-immersive-main-tile video {
    width: 100%;
    height: 100%;
    background: #050914;
  }

  .mobile-immersive-main-tile.is-fit-cover video {
    object-fit: cover;
  }

  .mobile-immersive-main-tile.is-fit-contain video {
    object-fit: contain;
  }

  .mobile-immersive-main-tile .meeting-stage-tile-chip {
    left: 12px;
    top: calc(max(10px, env(safe-area-inset-top)) + 58px);
    background: rgba(5, 9, 20, 0.58);
    backdrop-filter: blur(14px);
  }

  .mobile-immersive-thumbnails {
    position: absolute;
    top: calc(max(10px, env(safe-area-inset-top)) + 104px);
    right: 10px;
    z-index: 38;
    max-height: min(38dvh, 310px);
    width: 96px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(5, 9, 20, 0.48);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
  }

  .mobile-immersive-thumbnail-tile,
  .meeting-livekit-layout button.mobile-immersive-thumbnail-tile {
    flex: 0 0 64px;
    width: 82px;
    height: 64px;
    border-radius: 12px;
    box-shadow: none;
  }

  .mobile-immersive-thumbnail-tile .meeting-stage-tile-chip {
    left: 5px;
    top: 5px;
    padding: 2px 5px;
    font-size: 0.55rem;
  }

  .meeting-video-grid .lk-grid-layout {
    gap: 6px;
  }

  .meeting-video-grid .lk-participant-tile {
    min-height: 48dvh;
  }

  .meeting-call-controls {
    position: absolute;
    left: calc(var(--meeting-visible-left, 0px) + (var(--meeting-visible-width, 100vw) + max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right))) / 2);
    right: auto;
    bottom: calc(var(--meeting-visible-bottom, 0px) + max(10px, env(safe-area-inset-bottom)));
    transform: translateX(-50%);
    z-index: 58;
    width: max-content;
    max-width: calc(var(--meeting-visible-width, 100vw) - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
    min-height: 0;
    padding: 8px clamp(4px, (var(--meeting-visible-width, 100vw) - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)) - 236px) / 2, 8px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2px, (var(--meeting-visible-width, 100vw) - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)) - 228px) / 4, 6px);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(5, 9, 20, 0.62);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .transcript-caption-overlay {
    left: 12px;
    right: calc(var(--meeting-secondary-width, 56px) + max(10px, env(safe-area-inset-right)) + 10px);
    bottom: calc(var(--meeting-visible-bottom, 0px) + max(92px, env(safe-area-inset-bottom) + 92px));
    width: auto;
    padding: 10px 12px;
    border-radius: 10px;
    transform: none;
  }

  .transcript-caption-text {
    font-size: 1rem;
  }

  .transcript-caption-translation {
    font-size: 0.9rem;
  }

  .chat-message-toast,
  .meeting-livekit-layout button.chat-message-toast,
  .transcription-notice-toast {
    left: 12px;
    right: calc(var(--meeting-secondary-width, 56px) + max(10px, env(safe-area-inset-right)) + 10px);
    bottom: calc(var(--meeting-visible-bottom, 0px) + max(88px, env(safe-area-inset-bottom) + 88px));
    width: auto;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .meeting-livekit-layout.is-mobile-chrome-hidden .chat-message-toast,
  .meeting-livekit-layout.is-mobile-chrome-hidden button.chat-message-toast,
  .meeting-livekit-layout.is-mobile-chrome-hidden .transcription-notice-toast {
    bottom: max(18px, env(safe-area-inset-bottom) + 18px);
  }

  .meeting-livekit-layout.is-mobile-panel-open .chat-message-toast,
  .meeting-livekit-layout.is-mobile-panel-open button.chat-message-toast,
  .meeting-livekit-layout.is-mobile-panel-open .transcription-notice-toast {
    display: none;
  }

  .meeting-livekit-layout.is-mobile-chrome-hidden .meeting-call-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 18px);
  }

  .meeting-livekit-layout.is-mobile-panel-open .meeting-call-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 18px);
  }

  .meeting-call-controls .meeting-control-button.is-panel-action,
  .meeting-livekit-layout .meeting-call-controls button.meeting-control-button.is-panel-action {
    display: none;
  }

  .meeting-control-mobile-only,
  .meeting-livekit-layout button.meeting-control-mobile-only {
    display: inline-flex;
  }

  .meeting-control-desktop-only,
  .meeting-livekit-layout button.meeting-control-desktop-only {
    display: none;
  }

  .meeting-livekit-layout.is-fullscreen .meeting-call-controls {
    display: flex;
  }

  .meeting-control-button,
  .meeting-livekit-layout button.meeting-control-button {
    min-width: 0;
    min-height: 42px;
    width: 42px;
    flex: 0 0 42px;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0.72rem;
  }

  .meeting-control-button svg,
  .meeting-livekit-layout button.meeting-control-button svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .meeting-control-button span,
  .meeting-livekit-layout button.meeting-control-button span {
    display: none;
  }

  .fullscreen-stage {
    padding: 6px;
  }

  .fullscreen-stage-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fullscreen-stage-grid:not(.single) {
    grid-auto-rows: minmax(160px, 1fr);
  }

  .local-camera-preview {
    right: 10px;
    bottom: 10px;
    width: min(38vw, 148px);
    min-width: 108px;
    padding: 5px;
  }

  .local-camera-preview span {
    font-size: 0.68rem;
  }

  .mobile-meeting-tabs {
    position: absolute;
    left: auto;
    right: calc(var(--meeting-visible-right, 0px) + max(10px, env(safe-area-inset-right)));
    bottom: calc(var(--meeting-visible-bottom, 0px) + max(10px, env(safe-area-inset-bottom)) + 68px);
    z-index: 64;
    padding: 6px;
    /* 42px targets + 6px gaps; reserve the header and the 60px lower bar.
       At least two rows keep seven actions within four columns on short screens.
       Auto-filled rows wrap down each column in the same order as keyboard focus. */
    width: max-content;
    height: clamp(104px, calc(var(--meeting-visible-height, 100dvh) - max(10px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom)) - 136px), 344px);
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(auto-fit, 42px);
    grid-auto-columns: 42px;
    align-content: end;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(5, 9, 20, 0.42);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .meeting-livekit-layout.is-mobile-chrome-hidden .mobile-meeting-tabs {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
  }

  .meeting-livekit-layout.is-mobile-panel-open .mobile-meeting-tabs {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
  }

  .meeting-livekit-layout.is-mobile-chrome-hidden .mobile-immersive-thumbnails {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
  }

  .meeting-livekit-layout.is-mobile-panel-open .mobile-immersive-thumbnails {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(14px);
  }

  .mobile-immersive-thumbnails {
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .mobile-meeting-tabs > button {
    min-width: 0;
    width: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.82);
    color: #dbeafe;
    font-size: 0;
    font-weight: 800;
  }

  .mobile-meeting-tabs > button > svg {
    width: 17px;
    height: 17px;
  }

  .mobile-meeting-tabs > button.is-active {
    border-color: #7db2ff;
    background: #155eef;
    color: #fff;
  }

  .meeting-side-panel {
    position: absolute;
    top: auto;
    left: 8px;
    right: 8px;
    --meeting-panel-bottom: calc(max(10px, env(safe-area-inset-bottom)) + 70px);
    --meeting-panel-available: max(0px, calc(var(--meeting-visible-height) - var(--meeting-panel-bottom) - 8px));
    bottom: var(--meeting-panel-bottom);
    z-index: 57;
    max-height: min(calc(var(--meeting-visible-height) * 0.62), 520px, var(--meeting-panel-available));
    padding: 12px;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 22px 80px rgba(2, 6, 23, 0.38);
  }

  .meeting-side-panel.is-transcript-open {
    width: auto;
    max-height: min(calc(var(--meeting-visible-height) * 0.72), 560px, var(--meeting-panel-available));
  }

  .meeting-side-panel.is-transcript-open .transcript-panel-body {
    grid-template-areas:
      "status"
      "controls"
      "content";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .meeting-side-panel.is-share-open {
    top: auto;
    left: 10px;
    right: 10px;
    --meeting-panel-bottom: max(12px, env(safe-area-inset-bottom));
    height: auto;
    max-height: min(calc(var(--meeting-visible-height) * 0.68), 560px, var(--meeting-panel-available));
    padding: 0;
    overflow-y: auto;
    align-content: start;
    border-color: rgba(191, 219, 254, 0.42);
    border-radius: 26px 26px 18px 18px;
    background: rgba(8, 13, 25, 0.92);
    color: #eaf2ff;
    box-shadow: 0 -24px 84px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(22px);
  }

  .meeting-side-panel.is-share-open::before {
    content: '';
    width: 44px;
    height: 4px;
    margin: 10px auto 0;
    display: block;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.36);
  }

  .meeting-side-panel.is-desktop-open {
    display: none;
  }

  .meeting-side-panel.is-participants-open,
  .meeting-side-panel.is-chat-open,
  .meeting-side-panel.is-share-open,
  .meeting-side-panel.is-effects-open,
  .meeting-side-panel.is-transcript-open {
    display: grid;
  }

  .meeting-side-panel.is-participants-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .meeting-side-panel.is-chat-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .meeting-side-panel.is-transcript-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .meeting-side-panel.is-share-open {
    grid-template-rows: auto;
  }

  .meeting-side-panel.is-effects-open {
    grid-template-rows: auto;
  }

  .meeting-side-panel .participants-panel,
  .meeting-side-panel .chat-panel,
  .meeting-side-panel .share-panel,
  .meeting-side-panel .effects-panel,
  .meeting-side-panel .transcript-panel {
    display: none;
  }

  .meeting-side-panel.is-participants-open .participants-panel,
  .meeting-side-panel.is-chat-open .chat-panel,
  .meeting-side-panel.is-share-open .share-panel,
  .meeting-side-panel.is-effects-open .effects-panel,
  .meeting-side-panel.is-transcript-open .transcript-panel {
    display: grid;
  }

  .participants-panel,
  .transcript-panel {
    overflow: auto;
  }

  .transcript-email-form {
    align-items: stretch;
  }

  .chat-panel {
    min-height: 320px;
  }

  .chat-panel .lk-chat {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    min-height: 300px;
  }

  .share-panel .share-card {
    max-width: 100%;
  }

  .share-panel .share-card code {
    font-size: 0.72rem;
  }

  .meeting-side-panel.is-share-open .share-panel {
    gap: 10px;
    padding: 8px 12px 14px;
  }

  .meeting-side-panel.is-share-open .share-title-row {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -12px;
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, rgba(8, 13, 25, 0.98), rgba(8, 13, 25, 0.84));
    color: #f8fbff;
    backdrop-filter: blur(18px);
  }

  .meeting-side-panel.is-share-open .share-title-row h2 {
    font-size: 1rem;
  }

  .meeting-side-panel.is-share-open .panel-close-button {
    background: rgba(255, 255, 255, 0.1);
    color: #dbeafe;
  }

  .meeting-side-panel.is-share-open .share-card.compact {
    padding: 14px;
    gap: 10px;
    border-color: rgba(125, 178, 255, 0.24);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.86);
    color: #eaf2ff;
  }

  .meeting-side-panel.is-share-open .share-card-head {
    justify-content: center;
    color: #bfdbfe;
  }

  .meeting-side-panel.is-share-open .share-card.compact svg:not(.lucide) {
    width: min(42vw, 168px);
    height: min(42vw, 168px);
    padding: 8px;
    border-radius: 18px;
    background: #fff;
  }

  .meeting-side-panel.is-share-open .share-card code {
    width: 100%;
    max-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.48);
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .meeting-side-panel.is-share-open .share-card .secondary-action {
    min-height: 46px;
    border-radius: 16px;
    background: #dbeafe;
    color: #174ea6;
    font-weight: 900;
  }

  .meeting-side-panel.is-share-open .invite-card {
    border-color: rgba(125, 178, 255, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    color: #eaf2ff;
  }

  .meeting-side-panel.is-share-open .invite-card-head {
    color: #bfdbfe;
  }

  .meeting-side-panel.is-share-open .invite-card p,
  .meeting-side-panel.is-share-open .invite-card label {
    color: #cbd5e1;
  }

  .effects-panel {
    align-content: start;
  }

  .host-panel {
    display: none;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 20px;
  }

  .topbar,
  .section-head,
  .meeting-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .meeting-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .meeting-shell .meeting-actions {
    display: none;
  }

  .meeting-stage {
    padding: 0;
  }

  .meeting-header h1 {
    font-size: 1rem;
  }

  .meeting-header p {
    font-size: 0.78rem;
  }

  .meeting-actions .secondary-action,
  .meeting-actions .leave-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .meeting-video-grid .lk-participant-tile {
    min-height: 58dvh;
  }

  .command-form,
  .team-builder {
    flex-direction: column;
  }

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

  .stat-card {
    min-height: 104px;
  }

  .video-grid-preview {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .logo-review-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .logo-review-hero h1 {
    font-size: 3.4rem;
  }

  .logo-review-product-preview,
  .logo-review-comparison {
    grid-template-columns: 1fr;
  }

  .logo-review-card {
    min-height: 0;
  }

  .lobby-card {
    grid-template-columns: minmax(0, 1fr) clamp(360px, 40vw, 420px);
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .logo-review-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .logo-review-hero h1 {
    font-size: 3.8rem;
  }

  .logo-review-product-preview,
  .logo-review-comparison {
    grid-template-columns: 1fr;
  }

  .logo-review-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .logo-review-page {
    width: min(100% - 22px, 1180px);
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .logo-review-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-review-hero {
    min-height: 0;
    padding: 38px 0 28px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .logo-review-hero h1 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .logo-review-logo-board {
    padding: 14px;
  }

  .logo-review-logo-stage {
    padding: 22px;
  }

  .logo-review-subbrand-logo,
  .logo-review-application-row,
  .logo-review-product-preview,
  .logo-review-comparison {
    grid-template-columns: 1fr;
  }

  .logo-review-meet-mark {
    width: 72px;
    height: 72px;
  }

  .logo-review-mark-star {
    width: 52px;
    height: 52px;
  }

  .logo-review-wordmark strong {
    font-size: 3.6rem;
  }

  .logo-review-header-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .lobby {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: max(14px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    align-content: start;
    overflow: hidden;
  }

  .lobby .topbar {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  .lobby-topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .topbar > .header-identity-slot {
    width: 100%;
    justify-content: flex-end;
  }

  .lobby-topbar-actions .google-box {
    min-width: 0;
    justify-items: end;
  }

  .lobby-topbar-actions .header-identity-slot {
    max-width: calc(100% - 52px);
  }

  .lobby-topbar-actions > .secondary-action:only-child {
    margin-left: auto;
  }

  .lobby-topbar-actions .header-profile {
    max-width: min(220px, calc(100vw - 86px));
  }

  .lobby .topbar > div:first-child {
    min-width: 0;
  }

  .lobby .topbar h1 {
    margin-bottom: 5px;
    font-size: clamp(1.5rem, 7.2vw, 2.1rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .lobby .topbar p {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .lobby .topbar .secondary-action {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .lobby .topbar .secondary-action svg {
    width: 18px;
    height: 18px;
  }

  .lobby-body {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    gap: 10px;
  }

  .lobby-body > .error-banner {
    width: 100%;
  }

  .lobby-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(180px, 32dvh, 280px) minmax(0, 1fr);
    overflow: hidden;
  }

  .camera-check {
    min-height: 0;
    height: clamp(180px, 32dvh, 280px);
    padding: 18px;
  }

  .camera-check svg {
    width: 38px;
    height: 38px;
  }

  .camera-check p {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .lobby-form {
    min-height: 0;
    padding: 18px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    overflow: hidden;
  }

  .lobby-form-content {
    padding-right: 0;
    overflow-y: auto;
    scrollbar-gutter: auto;
  }

  .lobby-form-content > * {
    flex-shrink: 0;
  }

  .lobby-share-desktop {
    display: none;
  }

  .lobby-share-mobile {
    display: block;
    overflow: hidden;
    border: 1px solid #dbe5f4;
    border-radius: 10px;
    background: #f8fbff;
  }

  .lobby-share-mobile summary {
    padding: 12px 14px;
    color: #17468d;
    cursor: pointer;
    font-weight: 850;
  }

  .lobby-share-mobile[open] summary {
    border-bottom: 1px solid #dbe5f4;
  }

  .lobby-share-mobile .share-card {
    margin: 12px;
    border: 0;
    box-shadow: none;
  }

  .lobby-enter-action {
    box-shadow: 0 12px 28px rgba(29, 95, 209, 0.28);
  }
}

/* Keep the conversation mounted so drafts and stream ownership survive focus changes. */
.meeting-conversation-mount {
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.meeting-conversation-mount[hidden] { display: none; }

@media (max-width: 980px) {
  .meeting-livekit-layout.is-focus-chat .meeting-conversation-mount {
    height: calc(100% - max(132px, env(safe-area-inset-bottom) + 132px));
  }

  .chat-focus-main .transcript-export-drawer-body {
    max-height: none;
    overflow: visible;
  }

  .chat-focus-main .transcript-languages {
    white-space: normal;
  }

  .chat-focus-header > div {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .meeting-stage:has(.is-focus-chat) .meeting-header {
    display: none;
  }

  .meeting-livekit-layout.is-focus-chat .meeting-chat-focus {
    overflow: visible;
  }

  .meeting-livekit-layout.is-focus-chat .chat-video-preview {
    width: 90px;
    height: 48px;
  }
}

.transcription-confirmation {
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--border-color, #343b4d);
  border-radius: 16px;
  color: var(--text-primary, #f3f5f9);
  background: var(--bg-panel, #171c28);
  box-shadow: 0 24px 80px #0008;
}
.transcription-confirmation::backdrop { background: #050917b3; }
.transcription-confirmation h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.transcription-confirmation p { line-height: 1.5; }
.transcription-confirmation-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.transcription-confirmation-actions button { padding: .7rem 1rem; border-radius: 8px; min-height: 44px; }
.transcription-confirmation button:focus-visible { outline: 2px solid #89b4ff; outline-offset: 3px; }
.transcript-sync-status { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #ffffff1a; font-size: .8rem; }
.transcript-sync-status p { margin: .4rem 0; }
.transcript-sync-status small { display: block; line-height: 1.5; opacity: .8; }
.transcription-confirmation .transcript-hint { color: #b8c4d7; }

.screen-snapshot-status {
  padding: 0.35rem 1rem;
  color: var(--text-muted, #aeb9ca);
  font-size: 0.75rem;
}

/* Keep transcript moderation reachable on touch screens as well as keyboards. */
.transcript-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  min-height: 32px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}
.transcript-delete-button:hover:not(:disabled) {
  color: #b91c1c;
  background: rgba(244, 63, 94, 0.12);
}
.transcript-delete-button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
.transcript-delete-button:disabled { opacity: 0.45; cursor: wait; }
.transcript-deletion-status { margin: 8px 0; }
