@font-face {
  font-family: Archivo;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.stage-story {
  --layout-paper: #eef0f4;
  --layout-ink: #181a24;
  --layout-copy: #434b60;
  --layout-muted: #515a70;
  --layout-rule: #c9ceda;
  --layout-surface: #fcfdff;
  --layout-accent: #465d87;
  --layout-display: Archivo, "PingFang SC", system-ui, sans-serif;
  --stage-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --stage-mist: #e8ecf3;
  --stage-silver: #cbd6e9;
  --stage-light-reflection: #defbffc9;
  --stage-light-core: #ddfbfae0;
  --stage-light-arc: #cfd9fabb;
  --stage-light-edge: #cbcdf5b8;
  --stage-bezel: #dce0ea;
  --stage-bezel-light: #f9fbff;
  --stage-shadow: 0 8px 24px #202e4b1c;
  --stage-panel-radius: clamp(19px, 2vw, 30px);
  --stage-bezel-width: clamp(4px, .65vw, 10px);
  --stage-gutter: max(clamp(16px, 4.5vw, 80px), (100% - 1280px) / 2);
  --stage-width: calc(100% - 2 * var(--stage-gutter));
  --stage-ink: var(--layout-ink);
  --stage-muted: var(--layout-copy);
  --stage-line: var(--layout-rule);
  --stage-surface: var(--layout-surface);
  --stage-accent: var(--layout-accent);
}

html[data-layout-theme="dark"] body.stage-story {
  --layout-paper: #191d28;
  --layout-ink: #f0f3fa;
  --layout-copy: #c0c8da;
  --layout-muted: #b2bcd0;
  --layout-rule: #475166;
  --layout-surface: #242b3b;
  --layout-accent: #bfd5ff;
  --stage-mist: #1e2534;
  --stage-light-reflection: #8ac9ed50;
  --stage-light-core: #689cb46a;
  --stage-light-arc: #637bbc79;
  --stage-light-edge: #625ba56f;
  --stage-bezel: #353e51;
  --stage-bezel-light: #515d74;
  --stage-shadow: 0 8px 24px #0c101a59;
}

.stage-media-viewport {
  container-type: size;
  --stage-single-width: min(100cqw, calc(100cqh * 16 / 9));
}

.stage-story .story-main { padding: 0; }
.stage-story .story-main:focus-visible { outline: 2px solid var(--stage-accent); outline-offset: -2px; }
html:not(.folder-preview):has(> .stage-story) {
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
}
.stage-story .story-main > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.stage-skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: var(--stage-gutter);
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--stage-silver);
  color: #181b25;
}
.stage-skip-link:focus { transform: none; }

.stage-hero {
  background:
    radial-gradient(ellipse min(24vw, 365px) clamp(38px, 7svh, 62px) at 50% 0%, var(--stage-light-reflection), transparent),
    var(--layout-paper);
}
.stage-hero:focus { outline: none; }
.stage-hero,
.stage-chapter { position: relative; isolation: isolate; }
.stage-hero__light {
  position: absolute;
  z-index: -2;
  top: 14%;
  left: 50%;
  width: min(88%, 1280px);
  height: 56%;
  transform: translateX(-50%);
  filter: blur(clamp(20px, 2.55vw, 42px));
  pointer-events: none;
}
.stage-hero__light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 31% 49% at 50% 46%, var(--stage-light-core), transparent),
    radial-gradient(ellipse 31% 44% at 14% 86%, var(--stage-light-edge), transparent),
    radial-gradient(ellipse 31% 44% at 86% 86%, var(--stage-light-edge), transparent),
    radial-gradient(ellipse 49% 51% at 50% 43%, var(--stage-light-arc) 24%, transparent 100%);
  clip-path: polygon(
    50% 2%, 61% 6%, 73% 16%, 83% 30%, 91% 47%, 97% 66%, 100% 88%,
    95% 96%, 84% 88%, 72% 72%, 62% 66%, 50% 65%, 38% 66%, 28% 72%,
    16% 88%, 5% 96%, 0% 88%, 3% 66%, 9% 47%, 17% 30%, 27% 16%, 39% 6%
  );
}
.stage-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: var(--stage-width);
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: clamp(48px, 8vh, 94px);
  box-sizing: border-box;
}
.stage-hero__copy {
  width: min(900px, 100%);
  text-align: center;
}
.stage-hero h1 {
  margin: 0;
  color: var(--stage-ink);
  font: 580 clamp(104px, 12vw, 176px)/.93 var(--layout-display);
  letter-spacing: -.069em;
}
.stage-story .stage-hero .story-hero__lead {
  max-width: none;
  margin: clamp(20px, 3vw, 36px) 0 0;
  color: var(--stage-ink);
  font: 510 clamp(32px, 3.65vw, 54px)/1.09 var(--layout-display);
  letter-spacing: -.035em;
  text-wrap: balance;
  animation: none;
}
html[lang="zh-CN"] .stage-hero .story-hero__lead {
  font-family: var(--layout-body);
  font-size: clamp(24px, 3.06vw, 46px);
  line-height: 1.24;
  letter-spacing: -.025em;
}
.stage-story .story-main .stage-hero .story-hero__intro {
  max-width: 56ch;
  margin: 18px auto 0;
  color: var(--layout-copy);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.66;
  text-align: center;
  text-wrap: balance;
}

.stage-chapter { background-color: var(--layout-paper); }
.stage-chapter__inner {
  display: grid;
  align-items: center;
  align-content: center;
  gap: clamp(18px, 2.2vw, 36px);
  width: var(--stage-width);
  min-width: 0;
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: clamp(84px, 10svh, 110px);
}
.stage-chapter__inner--split {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  column-gap: clamp(24px, 4.8vw, 70px);
}
.stage-chapter__inner--reverse { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.stage-chapter__inner--reverse .stage-chapter-copy { grid-column: 2; grid-row: 1; }
.stage-chapter__inner--reverse .stage-demo-frame { grid-column: 1; grid-row: 1; }
.stage-chapter__inner--showcase {
  justify-items: center;
  gap: clamp(24px, 4svh, 36px);
  text-align: center;
}
.stage-chapter__inner--showcase .stage-chapter-copy { max-width: 880px; }
.stage-chapter__inner--showcase .stage-demo-frame {
  width: min(100%, 810px, max(360px, (100dvh - 290px) * 1.52));
}
.stage-chapter__inner--wide {
  --stage-wide-gap: clamp(32px, 5vw, 64px);
  align-items: start;
  gap: var(--stage-wide-gap);
}
.stage-chapter__inner--wide .stage-chapter-copy {
  justify-self: center;
  max-width: 780px;
  text-align: center;
}
.stage-demo-frame {
  display: grid;
  align-content: center;
  min-width: 0;
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  padding: clamp(10px, 1.42vw, 21px);
  background: var(--stage-bezel);
  box-shadow: inset 0 1px 0 var(--stage-bezel-light), var(--stage-shadow);
}
.stage-chapter__inner--split .stage-chapter-copy {
  min-width: 0;
  padding-inline-start: clamp(6px, 1.8vw, 26px);
}
.stage-chapter-copy h2 {
  margin: 0;
  color: var(--stage-ink);
  font: 520 clamp(33px, 3.8vw, 56px)/1.07 var(--layout-display);
  letter-spacing: -.034em;
  white-space: pre-line;
  text-wrap: balance;
}
html[lang="zh-CN"] .stage-chapter-copy h2 {
  font-family: var(--layout-body);
  font-size: clamp(27px, 2.75vw, 43px);
  line-height: 1.26;
  letter-spacing: -.03em;
}
html[lang="zh-CN"] #review-prompt {
  font-size: clamp(28px, 3.1vw, 47px);
}
.stage-story .story-main .stage-chapter-copy > .story-description:not(.story-hero__intro) {
  max-width: 62ch;
  margin: 18px 0 0;
  text-align: start;
}
.stage-story .story-main .stage-chapter__inner--wide .stage-chapter-copy > .story-description {
  margin-inline: auto;
  text-align: center;
}
.stage-demo-frame .stage-focus-demo { width: 100%; }
.stage-chapter .stage-focus-demo {
  border-radius: clamp(9px, 1.3vw, 16px);
  box-shadow:
    0 0 0 var(--stage-bezel-width) var(--stage-surface),
    0 0 0 calc(var(--stage-bezel-width) + 1px) var(--stage-line);
}
.stage-chapter .stage-sync { width: 100%; }

@keyframes stage-hero-enter {
  from { opacity: 0; transform: translateY(16px); }
}
@media (prefers-reduced-motion: no-preference) {
  .stage-hero__copy { animation: stage-hero-enter .54s ease-out both; }
}
@media (max-width: 820px) {
  .stage-chapter__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-hero__inner { max-width: 650px; }
  .stage-chapter__inner--reverse .stage-chapter-copy,
  .stage-chapter__inner--reverse .stage-demo-frame {
    grid-column: 1;
    grid-row: auto;
  }
  .stage-chapter__inner--split { max-width: 720px; }
  .stage-chapter__inner--split .stage-chapter-copy { padding-inline: 6px; }
  .stage-hero h1 { font-size: clamp(90px, 18vw, 142px); }
}
@media (max-width: 580px) {
  .stage-hero {
    background:
      radial-gradient(ellipse 44vw 52px at 50% 0%, var(--stage-light-reflection), transparent),
      var(--layout-paper);
  }
  .stage-hero__light { top: 22%; width: 100%; height: 46%; }
  .stage-hero__inner { padding-block: 76px; }
  .stage-chapter__inner { padding-block: 82px 48px; }
}

.stage-story [hidden] { display: none !important; }
.stage-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#stage-capabilities .stage-chapter__inner { gap: clamp(24px, 3vw, 42px); }
#stage-platforms .stage-chapter__inner { gap: clamp(18px, 2.5vw, 28px); }
#stage-platforms .stage-chapter-copy { max-width: 1100px; }
.stage-platforms {
  --stage-platform-aspect: 174 / 119;
  justify-self: center;
  width: min(100%, 1100px, max(730px, (100svh - 385px) * 2.1));
}
.stage-platform-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px;
  border: 1px solid var(--stage-line);
  border-radius: 14px;
  background: var(--stage-mist);
}
.stage-platform-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 clamp(8px, 1.5vw, 20px);
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--stage-muted);
  font: 600 clamp(12px, 1.3vw, 15px)/1.2 var(--layout-body);
  white-space: nowrap;
  cursor: pointer;
}
.stage-platform-tabs img {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
@media (max-width: 470px) {
  .stage-platform-tabs { gap: 2px; padding: 3px; }
  .stage-platform-tabs button {
    gap: 4px;
    padding-inline: 5px;
    font-size: clamp(10px, 3.05vw, 12px);
  }
  .stage-platform-tabs img { width: 15px; height: 15px; }
}
.stage-platform-tabs button:hover,
.stage-platform-tabs button[aria-selected="true"] {
  background: var(--stage-surface);
  color: var(--stage-ink);
}
.stage-platform-tabs button[aria-selected="true"] { border-color: var(--stage-line); }
.stage-platform-tabs button:focus-visible { outline: 2px solid var(--stage-accent); }
.stage-platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.2vw, 48px);
  margin-block-start: clamp(16px, 2vw, 26px);
}
.stage-platform-limitations {
  color: var(--stage-muted);
  font: 400 clamp(14px, 1.25vw, 16px)/1.65 var(--layout-body);
}
.stage-platform-limitations h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--stage-ink);
  font: 650 clamp(17px, 1.55vw, 22px)/1.25 var(--layout-body);
}
.stage-platform-limitations h3::before {
  flex: none;
  width: 12px;
  height: 12px;
  color: #dc474e;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  rotate: 45deg;
  content: "";
}
.stage-platform-limitations ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 1.25em;
}
.stage-platform-limitations li::marker { color: var(--stage-accent); }
@media (max-width: 700px) {
  .stage-platforms { width: min(100%, 580px); }
  .stage-platform-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.stage-platform-capture {
  display: grid;
  place-items: center;
  aspect-ratio: var(--stage-platform-aspect);
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  background: var(--stage-mist);
}
.stage-platform-capture--recording {
  background: #000;
}
.stage-platform-capture :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.stage-sync-views.stage-decision-comparison { align-items: stretch; }

.stage-decision-side {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  background: var(--stage-surface);
}

.stage-decision-side--limits { --stage-decision-mark: #a53140; }
.stage-decision-side--advantages { --stage-decision-mark: #1a704e; }
html[data-layout-theme="dark"] .stage-decision-side--limits { --stage-decision-mark: #ffadb8; }
html[data-layout-theme="dark"] .stage-decision-side--advantages { --stage-decision-mark: #9cdbb6; }

.stage-decision-side h3 {
  margin: 0;
  color: var(--stage-ink);
  font: 650 clamp(20px, 2vw, 26px)/1.25 var(--layout-body);
}

.stage-decision-side ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--stage-line);
  list-style: none;
  color: var(--stage-muted);
  font: 400 clamp(15px, 1.3vw, 17px)/1.6 var(--layout-body);
}

.stage-decision-side li {
  display: grid;
  grid-template-columns: 1.1em minmax(0, 1fr);
  gap: .5em;
}

.stage-decision-mark {
  color: var(--stage-decision-mark);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 680px) {
  .stage-sync-views.stage-decision-comparison { grid-template-columns: minmax(0, 1fr); }
}
.stage-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: start;
}
.stage-scenarios {
  min-width: 0;
}
#stage-usage {
  background-image: radial-gradient(ellipse at 50% 29%, color-mix(in srgb, var(--stage-accent) 9%, transparent), transparent 68%);
}
#stage-usage .stage-chapter__inner { gap: clamp(16px, 3vw, 32px); }
.stage-usage-report {
  --stage-usage-max: 25;
  --stage-usage-meeting: #63799d;
  --stage-usage-webinar: #247362;
  width: min(100%, 900px);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(18px, 4vw, 46px);
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  background: var(--stage-surface);
  box-shadow: var(--stage-shadow);
}
html[data-layout-theme="dark"] .stage-usage-report {
  --stage-usage-meeting: #93acd0;
  --stage-usage-webinar: #79c8b1;
}
.stage-usage-chart {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-usage-row { --stage-usage-fill: var(--stage-usage-meeting); }
.stage-usage-row--webinar { --stage-usage-fill: var(--stage-usage-webinar); }
.stage-usage-row__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--stage-ink);
  font-size: clamp(15px, 1.8vw, 21px);
  font-weight: 650;
}
.stage-usage-rate {
  color: var(--stage-usage-fill);
  font: 680 clamp(26px, 4.2vw, 54px)/1 var(--layout-display);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stage-usage-bar {
  height: clamp(13px, 1.7vw, 22px);
  border-radius: 4px;
  overflow: hidden;
  background: repeating-linear-gradient(to right, var(--stage-line) 0 1px, transparent 1px 20%), var(--stage-mist);
}
.stage-usage-bar::before {
  display: block;
  width: calc(100% * var(--stage-usage-rate) / var(--stage-usage-max));
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--stage-usage-fill);
  content: "";
}
.stage-usage-axis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 0;
  margin-top: 7px;
  color: var(--stage-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.stage-usage-axis span { justify-self: start; translate: -50% 0; }
.stage-usage-axis span:first-child { translate: none; }
.stage-usage-axis span:last-child { translate: -100% 0; }
.stage-usage-counts {
  width: 100%;
  margin-top: clamp(16px, 2.6vw, 30px);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.stage-usage-counts :is(th, td) {
  padding: 9px 0;
  border-bottom: 1px solid var(--stage-line);
  text-align: end;
}
.stage-usage-counts thead th {
  color: var(--stage-muted);
  font-size: 13px;
  font-weight: 650;
}
.stage-usage-counts tbody th {
  padding-inline-end: 8px;
  color: var(--stage-muted);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 500;
  text-align: start;
}
.stage-usage-counts tbody td {
  width: 25%;
  color: var(--stage-ink);
  font-size: clamp(15px, 1.9vw, 24px);
  font-weight: 650;
  white-space: nowrap;
}
.stage-usage-counts tbody tr:last-child > * { padding-bottom: 0; border-bottom: 0; }
.stage-scenarios > .stage-platform-tabs {
  margin-block-start: clamp(18px, 2.5vw, 28px);
}
.stage-scenario-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stage-wide-gap);
}
.stage-scenario-panel .story-description { white-space: pre-line; }
.stage-scenario-view { margin: 0; }
.stage-scenario-view .stage-sync-person {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.stage-scenario-view .stage-sync-person-label { white-space: normal; }
@media (max-width: 620px) {
  .stage-scenario-view .stage-sync-person {
    display: flex;
    justify-content: center;
  }
  .stage-scenario-view .stage-sync-avatar { flex: none; }
}
.stage-scenario-window {
  overflow: hidden;
  container-type: inline-size;
}
.stage-scenario-screen {
  position: absolute;
  inset: 8.5% 4.08% 16.7%;
  background: linear-gradient(#191919, #111);
}
.stage-scenario-filmstrip {
  display: flex;
  justify-content: center;
  gap: 2px;
  height: 14.9%;
}
.stage-scenario-filmstrip img {
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  object-fit: cover;
}
.stage-scenario-filmstrip--classroom { gap: clamp(1px, .4cqw, 3px); }
.stage-classroom-portrait {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: var(--portrait-bg, #e8ded3);
}
.stage-classroom-portrait img {
  /* Match head size across the individual portraits and crops from the group photo. */
  position: absolute;
  inset: var(--portrait-top) auto auto var(--portrait-left);
  width: var(--portrait-width);
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
}
.stage-scenario-stage {
  position: absolute;
  inset: 15.55% 0 0;
  display: grid;
  align-items: center;
}
.stage-scenario-stage--syncing { outline: 1px solid var(--stage-sync-accent); }
[data-all-hands-stage][data-drafting] { outline-color: #757575; }
.stage-all-hands-update { background: #fff; color: #141414; }
.stage-all-hands-update[data-pressed] { background: #b6eaff; }
.stage-scenario-stage--full { inset-block-start: 0; }
.stage-scenario-stage .stage-sync-banner {
  font-size: clamp(6px, 2cqw, 10px);
}
.stage-scenario-media {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}
.stage-scenario-media.stage-all-hands-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stage-all-hands-media:has(> [data-all-hands-slide]:not([hidden])) {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.stage-all-hands-media:not(:has(> img:not([hidden]) ~ img:not([hidden]))) {
  width: var(--stage-single-width);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}
.stage-all-hands-drop-target {
  position: absolute;
  inset: 50% 0 auto auto;
  width: calc((100% - 3px) / 2);
  aspect-ratio: 16 / 9;
  translate: 0 -50%;
  pointer-events: none;
}
.stage-scenario-media--single {
  width: var(--stage-single-width);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}
.stage-scenario-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
}
.stage-scenario-media > .stage-scenario-teacher { object-position: center top; }
.stage-scenario-lesson {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4.5%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #e9f1f4;
  color: #153343;
  font: 650 clamp(8px, 2.45cqw, 14px)/1.2 var(--layout-body);
}
.stage-scenario-triangle {
  width: 27%;
  aspect-ratio: 1.6;
  background: #72c4c6;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.stage-feature-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  padding: clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  background: var(--stage-surface);
}
.stage-feature-card h3 {
  margin: 0;
  color: var(--stage-ink);
  font: 650 clamp(17px, 1.6vw, 21px)/1.3 var(--layout-body);
}
.stage-feature-card p {
  margin: 0 0 6px;
  color: var(--layout-copy);
  font: 400 15px/1.6 var(--layout-body);
}
.stage-feature-card [data-copy="stageFeatureArrangeBody"] { white-space: pre-line; }
.stage-feature-window {
  --feature-side: 4%;
  --feature-stage-gap: 4px;
  --feature-gap: 5px;
  --feature-strip-gap: 4px;
  --feature-strip-tile: calc((100% - 5 * var(--feature-strip-gap)) / 6);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: var(--feature-stage-gap);
  padding-block-start: 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #141820;
}
.stage-feature-window--arrange { --feature-side: 4px; }
.stage-feature-window img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}
.stage-feature-window .stage-feature-content {
  background: #dcf5fa;
  object-fit: contain;
}
.stage-feature-filmstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: var(--feature-side);
  gap: var(--feature-strip-gap);
}
.stage-feature-filmstrip img,
.stage-feature-split img,
.stage-feature-brand-videos img {
  min-width: 0;
  height: auto;
  aspect-ratio: 16 / 9;
}
.stage-feature-filmstrip img {
  flex: none;
  width: var(--feature-strip-tile);
}
.stage-feature-filmstrip .stage-feature-filmstrip-source {
  width: 0;
  margin-inline-end: calc(-1 * var(--feature-strip-gap));
  opacity: 0;
}
.stage-feature-stage {
  position: relative;
  margin-inline: var(--feature-side);
  border-radius: 6px;
}
.stage-feature-arrangement {
  --feature-drop-width: calc(100% - var(--feature-gap));
  --feature-content-width: calc(.7 * var(--feature-drop-width));
  --feature-video-width: calc(.3 * var(--feature-drop-width));
  margin-block-end: 4px;
}
.stage-feature-drop-target {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: transparent;
}
.stage-feature-window .stage-feature-arranged-content,
.stage-feature-fly {
  position: absolute;
  height: auto;
  aspect-ratio: 16 / 9;
}
.stage-feature-window .stage-feature-arranged-content {
  top: 50%;
  left: 0;
  width: var(--feature-content-width);
  translate: 0 -50%;
}
.stage-feature-fly {
  z-index: 1;
  bottom: 50%;
  left: calc(var(--feature-content-width) + var(--feature-gap));
  width: var(--feature-video-width);
  translate: 0 50%;
}
.stage-feature-fly::after,
.stage-feature-divider::after {
  position: absolute;
  z-index: 2;
  opacity: 0;
}
.stage-feature-fly::after {
  right: -5px;
  bottom: -5px;
  width: 23px;
  height: 23px;
  background: url("assets/video-layout/stage-grab-cursor.svg") center / contain no-repeat;
  content: "";
}
.stage-feature-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) var(--feature-gap) minmax(0, 3fr);
  align-items: center;
}
.stage-feature-divider {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 3px;
  height: 22%;
  border-radius: 99px;
  background: var(--stage-line);
}
.stage-feature-divider::after {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 23px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #29364b;
  color: #fff;
  font: 700 15px/1 system-ui, sans-serif;
  translate: -50% -50%;
  content: "↔";
}
.stage-feature-brand-surface {
  margin-inline: 0;
  display: grid;
  place-items: center;
}
.stage-feature-brand-videos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: calc(100% - 8px);
}
.stage-feature-brand-theme {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
.stage-feature-brand-theme--miro {
  --theme-logo-ink: #232129;
  background: linear-gradient(145deg, #fffaf0, #fff0c9);
}
.stage-feature-brand-theme--miro::before,
.stage-feature-brand-theme--miro::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}
.stage-feature-brand-theme--miro::before {
  background: #ffdd33;
  clip-path: polygon(0 76%, 19% 63%, 36% 83%, 42% 75%, 61% 100%, 0 100%);
}
.stage-feature-brand-theme--miro::after {
  background: #e3ee99;
  clip-path: polygon(75% 100%, 100% 65%, 100% 100%);
}
.stage-feature-brand-theme--dropbox {
  --theme-delay: 1.4s;
  --theme-logo-ink: #1e1919;
  background:
    linear-gradient(90deg, #0061fe 72%, #283750 72%) bottom / 100% 34% no-repeat,
    linear-gradient(#b4c8e1, #b4c8e1) top left / 36% 22% no-repeat,
    #f7f5f2;
}
.stage-feature-brand-theme--figma {
  --theme-delay: 2.8s;
  --theme-logo-height: 10px;
  background:
    radial-gradient(ellipse at 0 100%, #0c7859, transparent 65%),
    radial-gradient(ellipse at 100% 0, #7850bc, transparent 64%),
    #211d32;
  opacity: 1;
}
.stage-feature-brand-logo {
  position: absolute;
  inset: 8px 8px auto auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-logo-ink, #fff);
  font: 650 10px/1 var(--layout-body);
  letter-spacing: .03em;
}
.stage-feature-brand-logo img {
  width: auto;
  height: var(--theme-logo-height, 16px);
  border-radius: 0;
  object-fit: contain;
}
@media (700px < width <= 820px) {
  :is(.stage-feature-brand-theme--miro, .stage-feature-brand-theme--dropbox) { --theme-logo-height: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-stage-feature-playing] .stage-feature-filmstrip-source {
    animation: stage-feature-remove-source 2.6s ease-in-out both;
  }
  [data-stage-feature-playing] .stage-feature-drop-target {
    animation: stage-feature-highlight-drop 2.6s ease both;
  }
  [data-stage-feature-playing] .stage-feature-arranged-content {
    animation: stage-feature-make-room 2.6s ease-in-out both;
  }
  [data-stage-feature-playing] .stage-feature-fly {
    animation: stage-feature-drag 2.6s ease-in-out both;
  }
  [data-stage-feature-playing] .stage-feature-fly::after {
    animation: stage-feature-drag-cursor 2.6s ease both;
  }
  [data-stage-feature-playing] .stage-feature-split { animation: stage-feature-resize 3.5s ease-in-out both; }
  [data-stage-feature-playing] .stage-feature-divider::after { animation: stage-feature-grab 3.5s ease both; }
  [data-stage-feature-playing] .stage-feature-brand-theme--miro { opacity: 1; }
  [data-stage-feature-playing] .stage-feature-brand-theme + .stage-feature-brand-theme {
    animation: stage-feature-theme-in 1.6s ease var(--theme-delay) both;
  }
}

@keyframes stage-feature-drag {
  0%, 22% {
    bottom: calc(100% + var(--feature-stage-gap));
    left: calc(4 * (var(--feature-strip-tile) + var(--feature-strip-gap)));
    width: var(--feature-strip-tile);
    translate: 0 0;
  }
  0%, 21.99% { opacity: 0; }
  22%, 100% { opacity: 1; }
  68% {
    bottom: 50%;
    left: calc(var(--feature-content-width) + var(--feature-gap) + (var(--feature-video-width) - var(--feature-strip-tile)) / 2);
    width: var(--feature-strip-tile);
    translate: 0 50%;
  }
  88%, 100% {
    bottom: 50%;
    left: calc(var(--feature-content-width) + var(--feature-gap));
    width: var(--feature-video-width);
    translate: 0 50%;
  }
}
@keyframes stage-feature-remove-source {
  0%, 22% { width: var(--feature-strip-tile); margin-inline-end: 0; }
  0%, 21.99% { opacity: 1; }
  22%, 100% { opacity: 0; }
  48%, 100% { width: 0; margin-inline-end: calc(-1 * var(--feature-strip-gap)); }
}
@keyframes stage-feature-make-room {
  0%, 68% { left: 50%; width: var(--stage-single-width); translate: -50% -50%; }
  88%, 100% { left: 0; width: var(--feature-content-width); translate: 0 -50%; }
}
@keyframes stage-feature-highlight-drop {
  0%, 22%, 75%, 100% { border-color: transparent; background-color: transparent; }
  36%, 68% { border-color: #8290a6; background-color: #424b57; }
}
@keyframes stage-feature-drag-cursor {
  0%, 68%, 100% { opacity: 0; }
  22%, 67% { opacity: 1; }
}
@keyframes stage-feature-grab {
  0%, 100% { opacity: 0; }
  15%, 83% { opacity: 1; }
}
@keyframes stage-feature-resize {
  0%, 14%, 89%, 100% { grid-template-columns: minmax(0, 7fr) var(--feature-gap) minmax(0, 3fr); }
  43%, 57% { grid-template-columns: minmax(0, 4fr) var(--feature-gap) minmax(0, 6fr); }
}
@keyframes stage-feature-theme-in {
  from { opacity: 0; }
  16%, to { opacity: 1; }
}

.stage-story .stage-sync { box-sizing: border-box; text-align: start; }

.stage-focus-demo {
  width: min(820px, 100%);
  min-width: 0;
}
.stage-stack-view {
  --filmstrip-gap: clamp(1px, .26vw, 3px);
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(9px, 1.3vw, 16px);
  background: #121212;
}
.stage-stack-view__capture {
  display: block;
  width: 100%;
  height: auto;
}
.stage-attendee-pin-demo {
  /* The Pin button in Figma node 75:3807 is centered at (216, 95) in the 1378 × 818 capture. */
  --pin-source-x: 15.67%;
  --pin-source-y: 11.61%;
  --pin-lens-x: 10.3%;
  --pin-lens-y: 25.79%;
  --pin-lens-size: clamp(36px, 11cqw, 76px);
  --pin-callout-ink: #b6eaff;
  container-type: inline-size;
}
.stage-attendee-pin-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--pin-callout-ink);
  stroke-width: 1;
  pointer-events: none;
}
.stage-attendee-pin-marker {
  position: absolute;
  top: var(--pin-source-y);
  left: var(--pin-source-x);
  width: clamp(9px, 2.7cqw, 18px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid var(--pin-callout-ink);
  border-radius: 50%;
  pointer-events: none;
}
.stage-attendee-pin-lens {
  position: absolute;
  top: var(--pin-lens-y);
  left: var(--pin-lens-x);
  width: var(--pin-lens-size);
  aspect-ratio: 1;
  translate: -50% -50%;
  overflow: hidden;
  border: 1px solid var(--pin-callout-ink);
  border-radius: 50%;
  background: #181818;
  box-shadow: 0 3px 12px #0008;
  pointer-events: none;
}
.stage-attendee-pin-lens img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 330cqw;
  max-width: none;
  height: auto;
  translate: calc(-1 * var(--pin-source-x)) calc(-1 * var(--pin-source-y));
}
.stage-attendee-pin-label {
  position: absolute;
  top: var(--pin-lens-y);
  left: calc(var(--pin-lens-x) + var(--pin-lens-size) / 2 + 5px);
  translate: 0 -50%;
  padding: 3px 6px;
  border: 1px solid #b6eaff66;
  border-radius: 4px;
  background: #161c20;
  color: var(--pin-callout-ink);
  font: 600 clamp(9px, 1vw, 11px)/1.2 var(--layout-body);
  white-space: nowrap;
  pointer-events: none;
}
.stage-area-highlight {
  --stage-area-accent: 134 208 247;
  position: absolute;
  /* Follow the Stage bounds within the exported meeting frame. */
  inset: 20.29% 4.14% 16.87%;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--stage-area-accent) / 72%);
  border-radius: clamp(3px, .5vw, 6px);
  background: rgb(var(--stage-area-accent) / 5%);
  color: #e2f4ff;
  font: 600 clamp(14px, 1.85vw, 22px)/1.15 var(--layout-body);
  pointer-events: none;
}
.stage-stack-view__filmstrip {
  position: absolute;
  inset: 8.35% 13.7% auto;
  height: 11.85%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--filmstrip-gap);
  background: #181818;
}
.stage-stack-view__filmstrip > :is(img, .stage-filmstrip-target) {
  display: block;
  width: calc((100% - 5 * var(--filmstrip-gap)) / 6);
  height: auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(2px, .45vw, 4px);
}
[data-filmstrip-focus] {
  isolation: isolate;
}
.stage-filmstrip-target {
  position: relative;
  z-index: 1;
}
.stage-filmstrip-target > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
}
.stage-filmstrip-target::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px #a4ddff, 0 0 0 100vmax rgb(0 0 0 / 74%);
  pointer-events: none;
}
.stage-filmstrip-target__arrow {
  --stage-arrow-angle: -140deg;
  position: absolute;
  top: calc(100% + clamp(4px, .65vw, 9px));
  left: calc(100% + clamp(5px, .8vw, 11px));
  width: clamp(18px, 3.1vw, 38px);
  height: 2px;
  border-radius: 2px;
  transform: translateX(-100%) rotate(var(--stage-arrow-angle));
  transform-origin: right center;
  color: #fff;
  background: currentColor;
  filter: drop-shadow(0 1px 2px #0e1723);
  pointer-events: none;
}
.stage-filmstrip-target__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(7px, 1vw, 10px);
  aspect-ratio: 1;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .stage-filmstrip-target::before { transition: opacity .4s ease; }
  .stage-filmstrip-target__arrow {
    transition: opacity .2s ease .3s, translate .5s cubic-bezier(.2, .7, .3, 1) .3s;
  }
  [data-filmstrip-intro] .stage-filmstrip-target::before,
  [data-filmstrip-intro] .stage-filmstrip-target__arrow {
    opacity: 0;
    transition: none;
  }
  [data-filmstrip-intro] .stage-filmstrip-target__arrow {
    translate: clamp(8px, 3vw, 30px) clamp(7px, 2.5vw, 25px);
  }
  [data-filmstrip-pointing] .stage-filmstrip-target__arrow {
    animation: stage-filmstrip-point .9s ease-in-out .82s;
  }
}
@keyframes stage-filmstrip-point {
  0%, 50%, 100% { transform: translateX(-100%) rotate(var(--stage-arrow-angle)); }
  24%, 74% { transform: translateX(-100%) rotate(var(--stage-arrow-angle)) translateX(clamp(4px, .75vw, 9px)); }
}
/* Match the large video bounds within the Stack capture. */
.stage-stack-view__main {
  position: absolute;
  inset: 20.65% 17.15% 17.15%;
  overflow: hidden;
  border-radius: clamp(2px, .52vw, 5px);
}
.stage-stack-view__main :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-stack-view__main--single {
  inset-inline: 4.1%;
  display: grid;
  place-items: center;
  background: #191919;
}
.stage-stack-view__main--single > :is(img, video) {
  width: var(--stage-single-width);
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
}
[data-reaction-view] {
  background: linear-gradient(#181818 20.65%, #101010 82.85%);
}
[data-reaction-view] > .stage-stack-view__capture {
  /* Remove the baked-in video so the meeting window shows behind the live tiles. */
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    17% 20.65%, 83% 20.65%, 83% 82.85%, 17% 82.85%, 17% 20.65%, 0 0
  );
}
.stage-reaction-layout {
  inset-inline: 4.1%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--filmstrip-gap);
}
[data-reaction-dragging] .stage-reaction-layout {
  outline: 1px solid #93a8c1;
  outline-offset: -1px;
  background-color: #424b57;
}
[data-reaction-dragging] [data-reaction-focus] {
  opacity: .4;
}
.stage-reaction-tile {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
}
.stage-reaction-presenter {
  position: absolute;
  top: 50%;
  left: 0;
  width: calc((100% - var(--filmstrip-gap)) / 2);
  translate: 0 -50%;
}
[data-reaction-single] .stage-reaction-presenter {
  left: 50%;
  width: var(--stage-single-width);
  translate: -50% -50%;
}
.stage-reaction-drop-target { grid-column: 2; }
.stage-reaction-drag-preview {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: clamp(2px, .52vw, 5px);
  box-shadow: 0 8px 20px #0007;
  pointer-events: none;
}
.stage-reaction-drag-preview > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.stage-reaction-drag-cursor {
  position: absolute;
  z-index: 2;
  left: 70%;
  top: 50%;
  width: clamp(14px, 2vw, 20px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .stage-reaction-layout { transition: background-color .16s ease; }
  [data-reaction-view] [data-reaction-focus] {
    transition: opacity .18s ease;
  }
}
.stage-focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: clamp(5px, 1.1vw, 14px);
  border-radius: clamp(9px, 1.3vw, 16px);
  background: #12161d;
}
.stage-focus-tile {
  --speaker-radius: clamp(4px, .65vw, 8px);
  --speaker-halo-outset: clamp(2px, .3vw, 4px);
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--speaker-radius);
  background: #222a35;
}
.stage-focus-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
}
.stage-focus-tile::before,
.stage-focus-tile::after {
  position: absolute;
  z-index: 1;
  background: linear-gradient(to top right, #3492eb, #25c8d5 51%, #68debd);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  content: "";
}
.stage-focus-tile::before {
  inset: calc(-1 * var(--speaker-halo-outset));
  padding: var(--speaker-halo-outset);
  border-radius: calc(var(--speaker-radius) + var(--speaker-halo-outset));
}
.stage-focus-tile::after {
  inset: 0;
  padding: clamp(1px, .22vw, 2px);
  border-radius: inherit;
}
.stage-focus-tile[data-speaking] { z-index: 2; }
.stage-focus-tile[data-speaking]::before { opacity: .4; }
.stage-focus-tile[data-speaking]::after { opacity: 1; }
.stage-focus-label {
  --speaker-mic-size: clamp(9px, 1.65vw, 16px);
  position: absolute;
  z-index: 2;
  inset-inline-start: 4px;
  inset-block-end: 4px;
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, .35vw, 4px);
  box-sizing: border-box;
  max-inline-size: calc(100% - 8px);
  padding: 3px 4px;
  border-radius: 4px;
  background: rgb(0 0 0 / 70%);
  color: rgb(255 255 255 / 95%);
  font: 600 clamp(8px, 1.25vw, 12px)/1.5 "Segoe UI", system-ui, sans-serif;
  pointer-events: none;
}
.stage-focus-label::before {
  flex: 0 0 var(--speaker-mic-size);
  block-size: var(--speaker-mic-size);
  background: url("assets/video-layout/stage-speakers/microphone-on.svg") center / contain no-repeat;
  content: "";
}
.stage-focus-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .stage-focus-tile[data-speaking]::before { transition: opacity .22s ease; }
}

.stage-sync {
  --stage-sync-accent: #c74f0e;
  width: min(920px, 100%);
  margin-inline: auto;
}
.stage-sync-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(10px, 2vw, 22px); }
.stage-sync-view {
  min-width: 0;
  display: grid;
  gap: clamp(8px, 1.2vw, 12px);
}
.stage-sync-frame {
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--stage-line);
  border-radius: var(--stage-panel-radius);
  background: var(--stage-surface);
  box-shadow: inset 0 0 0 var(--stage-bezel-width) var(--stage-bezel), var(--stage-shadow);
}
.stage-sync-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  column-gap: 10px;
}
.stage-sync-avatar {
  grid-column: 2;
  position: relative;
  width: clamp(46px, 4.4vw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.stage-sync-avatar--host {
  --portrait-width: 445%;
  --portrait-center: -52% -28%;
}
.stage-sync-avatar--attendee {
  --portrait-width: 290%;
  --portrait-center: -45.5% -35.5%;
}
.stage-sync-avatar--all-hands {
  --portrait-width: 285%;
  --portrait-center: -50% -40%;
}
.stage-sync-avatar--teacher {
  --portrait-width: 280%;
  --portrait-center: -49% -22.5%;
}
.stage-sync-avatar--student {
  --portrait-width: 225%;
  --portrait-center: -48% -32.5%;
}
.stage-sync-avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--portrait-width);
  max-width: none;
  height: auto;
  translate: var(--portrait-center);
}
.stage-sync-person-label {
  color: var(--stage-ink);
  font: 400 15px/1.3 var(--layout-body);
  white-space: nowrap;
}
.stage-sync-person-label span {
  color: var(--stage-muted);
  font-size: 13px;
}
.stage-sync-capture {
  position: relative;
  aspect-ratio: 1378 / 818;
}
#stage-sync-attendee-capture { overflow: clip; }
.stage-sync-capture > img,
.stage-sync-attendee-result > img {
  display: block;
  width: 100%;
  height: auto;
}
.stage-sync-mode {
  display: flex;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--stage-line);
  border-radius: 12px;
  background: var(--stage-mist);
}
.stage-sync-mode:disabled { visibility: hidden; }
.stage-sync-mode label { display: flex; }
.stage-sync-mode label > span {
  display: grid;
  min-height: 44px;
  place-content: center;
  padding-inline: clamp(7px, 1.2vw, 14px);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--stage-muted);
  font: 600 13px/1.3 var(--layout-body);
  text-align: center;
  cursor: pointer;
}
.stage-sync-mode label:hover > span,
.stage-sync-mode input:checked + span {
  background: var(--stage-surface);
  color: var(--stage-ink);
}
.stage-sync-mode input:checked + span { border-color: var(--stage-line); }
.stage-sync-mode input:focus-visible + span { outline: 2px solid var(--stage-accent); }
.stage-sync-attendee-result {
  --attendee-area-top: 8.25%;
  --attendee-area-bottom: 16.7%;
  --attendee-videos-top: 29.9%;
  --attendee-videos-bottom: 26.5%;
  position: relative;
}
.stage-sync-attendee-result::before,
.stage-sync-attendee-result::after {
  position: absolute;
  pointer-events: none;
  content: "";
}
/* Paint the meeting background behind the original Stage. In locked mode it also covers the filmstrip. */
.stage-sync-attendee-result::before {
  inset: var(--attendee-area-top) 4% var(--attendee-videos-bottom);
  background: linear-gradient(#181818 23%, #171717 33%, #111);
  clip-path: inset(33% 0 0);
}
/* Lift the same pixels out of the capture so both videos keep their crop, size and spacing. */
.stage-sync-attendee-result::after {
  inset: 0;
  background: url("assets/video-layout/stage-sync/b-after.webp") center / 100% 100%;
  clip-path: inset(var(--attendee-videos-top) 4% var(--attendee-videos-bottom));
}
[data-sync-locked] .stage-sync-attendee-result::before { clip-path: inset(0); }
[data-sync-locked] .stage-sync-attendee-result::after {
  translate: 0 calc((var(--attendee-area-top) - var(--attendee-area-bottom) - var(--attendee-videos-top) + var(--attendee-videos-bottom)) / 2);
}
@media (prefers-reduced-motion: no-preference) {
  .stage-sync-attendee-result::before { transition: clip-path .22s ease; }
  .stage-sync-attendee-result::after { transition: translate .22s ease; }
}
.stage-sync-notification {
  position: absolute;
  z-index: 2;
  inset: 8% 5% auto auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 400px;
  max-width: 86%;
  padding: 12px 12px 16px 16px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%), 0 4px 8px #00000029, 0 0 1px #00000029;
  font: 400 16px/24px "Segoe UI", Arial, sans-serif;
  zoom: .75;
}
.stage-sync-notification__body {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding-top: 4px;
}
.stage-sync-notification__body p { margin: 0; }
.stage-sync-notification__icon { flex: none; padding: 4px; }
.stage-sync-notification img { display: block; }
.stage-sync-notification__close {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.stage-sync-notification__close::after { position: absolute; inset: -6px; content: ""; }
.stage-sync-notification__close:focus-visible { outline: 2px solid #64b4fa; outline-offset: 2px; }
.stage-sync-content {
  position: absolute;
  inset: 20.15% 4.1% 16.7%;
  background: linear-gradient(180deg, #181818, #111);
}
.stage-sync-content > img {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: block;
  width: 49.2%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(3px, .5vw, 6px);
  transform-origin: top left;
}
.stage-sync-content [data-sync-active-speaker] { left: .45%; }
.stage-sync-content:not([data-has-guest]) [data-sync-active-speaker] {
  left: 50%;
  width: var(--stage-single-width);
  translate: -50% -50%;
}
.stage-sync-content [data-sync-host-video] { left: 50.35%; z-index: 1; }
[data-sync-phase="speaker"] [data-sync-active-speaker] { outline: 1px solid #55c1da; }
@media (prefers-reduced-motion: no-preference) {
  [data-sync-phase="placing"] [data-sync-active-speaker] {
    transition-property: left, width, translate;
    transition-duration: .35s;
    transition-timing-function: cubic-bezier(.25,.65,.25,1);
  }
  [data-attendee-after]:not([hidden]) {
    animation: stage-sync-receive .26s ease-out both;
  }
  @keyframes stage-sync-receive {
    from { opacity: .65; }
  }
}
.stage-sync-host-filmstrip {
  position: absolute;
  inset: 8.7% 4.1% auto;
  height: 11.15%;
  display: flex;
  justify-content: center;
  gap: .45%;
  background: #191919;
}
.stage-sync-host-filmstrip img {
  display: block;
  width: auto;
  height: 100%;
}
.stage-sync-host-filmstrip [data-sync-source] {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(2px, .4vw, 5px);
}
[data-sync-host-stage][data-syncing] {
  outline: 1px solid var(--stage-sync-accent);
}
.stage-sync-banner {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 3px;
  color: #fff;
  font: 600 clamp(6px, 3.1cqw, 10px)/1.2 "Segoe UI", var(--layout-body);
  white-space: nowrap;
}
.stage-sync-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 3px solid transparent;
  border-image: url("assets/video-layout/stage-sync/sync-banner.svg") 6 fill;
  content: "";
}
.stage-sync-grip {
  flex: none;
  width: auto;
  height: 1.15em;
}
.stage-sync-stop {
  padding: 1px 5px;
  border: 1px solid #ffffff4d;
  border-radius: 99px;
}

.stage-edit-filmstrip { box-shadow: 0 -1px #191919; }
.stage-edit-filmstrip > img {
  flex: none;
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(2px, .4vw, 5px);
  object-fit: cover;
}
.stage-edit-area {
  position: absolute;
  inset: 20.15% 4.1% 16.7%;
  outline: 1px solid var(--stage-sync-accent);
}
.stage-edit-area[data-stage-editing] { outline-color: #757575; }
.stage-edit-area--attendee { outline: none; }
.stage-edit-layout {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: .4%;
  padding-inline: .35%;
  background: linear-gradient(#181818, #111);
}
.stage-edit-videos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1px, .25vw, 4px);
}
.stage-edit-videos > img { grid-column: span 2; }
.stage-edit-videos:has(> img:last-child[hidden]) > img:nth-child(3) { grid-column: 2 / span 2; }
.stage-edit-layout img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(2px, .45vw, 6px);
  object-fit: cover;
}
.stage-edit-flying-video {
  position: absolute;
  z-index: 3;
  max-width: none;
  aspect-ratio: 16 / 9;
  border-radius: clamp(2px, .45vw, 6px);
  object-fit: cover;
  transform-origin: top left;
  pointer-events: none;
}
.stage-edit-banner--draft::before {
  border: 0;
  border-radius: 0 0 5px 5px;
  background: #606060;
}
.stage-edit-action {
  padding: 2px 5px;
  border: 1px solid #ffffff59;
  border-radius: 99px;
  background: transparent;
  color: #fff;
  font: inherit;
  pointer-events: none;
}
.stage-edit-banner [data-stage-edit-update] { background: #fff; color: #141414; }
.stage-edit-banner [data-stage-edit-update][data-pressed] { background: #b6eaff; }
.stage-edit-pointer {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: clamp(13px, 1.5vw, 20px);
  aspect-ratio: 3 / 4;
  filter: drop-shadow(0 1px 2px #0009);
  transform-origin: top left;
  pointer-events: none;
}
.stage-edit-pointer::before,
.stage-edit-pointer::after {
  position: absolute;
  inset: 0;
  background: #161616;
  clip-path: polygon(0 0, 100% 61%, 56% 66%, 77% 92%, 58% 100%, 39% 73%, 16% 95%);
  content: "";
}
.stage-edit-pointer::after {
  inset: 2px;
  background: #fff;
}
.stage-edit-pointer[data-pressed]::before,
.stage-edit-pointer[data-pressed]::after {
  scale: .82;
  transform-origin: top left;
}

@media (max-width: 900px) {
  .stage-sync-banner {
    top: -2px;
    padding-block: 1px;
  }
  .stage-sync-stop { padding-block: 0; }
}
@media (520px < width <= 620px) {
  .stage-sync-banner {
    gap: 3px;
    padding-inline: 2px;
  }
  .stage-sync-stop { padding-inline: 4px; }
}
@media (max-width: 700px) {
  .stage-feature-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .stage-sync-views { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
