.meo-demo {
  width: 100%;
}

.meo-demo-heading {
  margin: 0 0 8px;
}

.meo-demo-intro {
  margin: 0 0 12px;
  color: var(--home-muted);
  font-size: var(--type-body);
  line-height: 1.5;
}

.meo-demo-chips {
  display: flex;
  gap: 8px;
  margin: 0 -2px 12px;
  padding: 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.meo-demo-chips::-webkit-scrollbar {
  display: none;
}

.meo-demo-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: var(--home-white);
  color: var(--home-ink);
  cursor: pointer;
  font-size: var(--type-ui);
  font-weight: 700;
  line-height: 1.2;
  scroll-snap-align: start;
}

.meo-demo-chip:hover,
.meo-demo-chip[aria-selected="true"] {
  border-color: var(--home-language-toggle-hover-edge);
  background: var(--home-feature-lilac-fill);
  color: var(--home-brand);
}

.meo-demo-stage {
  position: relative;
  height: 580px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 23px;
  background: var(--home-film-phone);
  box-shadow: 0 24px 70px var(--home-video-stage-shadow);
}

.meo-demo-screen {
  touch-action: pan-y;
}

.meo-demo-screen,
.meo-scene,
.meo-scene-photo,
.meo-scene-photo img {
  position: absolute;
  inset: 0;
}

.meo-scene-photo {
  bottom: auto;
  height: 54%;
}

.meo-scene-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--meo-focus, 68% 30%);
}

.meo-scene-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--home-film-phone) 100%);
  content: "";
}

.meo-scene-trade,
.meo-scene-outro {
  position: absolute;
  z-index: 2;
  margin: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--home-white) 92%, transparent);
  color: var(--home-deep);
  font-size: var(--type-ui);
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 6px 18px var(--home-video-stage-shadow);
}

.meo-scene-trade {
  top: 12px;
  left: 12px;
  padding: 6px 12px;
}

.meo-scene-outro {
  top: 48px;
  right: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 14px;
  text-align: center;
}

.meo-scene-panels {
  position: absolute;
  z-index: 2;
  top: 31%;
  right: 10px;
  bottom: 66px;
  left: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.meo-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 34px var(--home-video-stage-shadow);
}

.meo-chat {
  background: var(--home-white);
  color: var(--home-ink);
}

.meo-call {
  background: var(--home-film-card-fill);
  color: var(--home-white);
}

.meo-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 8px 7px;
  border-bottom: 1px solid var(--home-line);
}

.meo-call .meo-panel-head {
  border-bottom-color: color-mix(in srgb, var(--home-white) 14%, transparent);
}

.meo-avatar {
  display: grid;
  flex: 0 0 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--home-white);
  font-size: 12px;
  font-weight: 800;
}

.meo-avatar-chat {
  background: var(--home-film-bubble-meo-fill);
}

.meo-avatar-call {
  background: var(--home-film-phone-avatar-fill);
}

.meo-panel-who {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.meo-panel-who strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meo-panel-who small {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.25;
}

.meo-call .meo-panel-who small {
  color: var(--home-film-card-label-quiet-text);
}

.meo-chat.is-typing .meo-panel-who small {
  color: var(--home-film-bubble-meo-fill);
  font-weight: 700;
}

.meo-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.meo-head-mark {
  flex: 0 0 auto;
  color: var(--home-film-bubble-meo-fill);
}

.meo-brand {
  display: block;
  width: 18px;
  height: 18px;
}

.meo-brand svg {
  display: block;
  width: 100%;
  height: 100%;
}

.meo-call .meo-head-mark {
  color: var(--success-rule);
}

.meo-end-mark,
.meo-call[data-call-state="ended"] .meo-ring-mark {
  display: none;
}

.meo-call[data-call-state="ended"] .meo-end-mark {
  display: block;
  color: var(--alarm);
}

.meo-call-ringing {
  position: relative;
  display: none;
  flex: 1;
  place-items: center;
}

.meo-call[data-call-state="ringing"] .meo-call-ringing {
  display: grid;
}

.meo-call-pulse,
.meo-call-big {
  grid-area: 1 / 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.meo-call-pulse {
  background: var(--home-film-phone-avatar-fill);
}

.meo-call-big {
  display: grid;
  place-items: center;
  background: var(--home-film-phone-avatar-fill);
  color: var(--home-white);
  font-size: 26px;
  font-weight: 800;
}

.meo-thread-window {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, var(--home-film-phone) 18px);
}

.meo-thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  will-change: transform;
}

.meo-bubble,
.meo-caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.32;
  opacity: 0;
}

.meo-bubble {
  max-width: 92%;
  padding: 6px 8px;
  border-radius: 12px;
}

.meo-bubble-c {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--home-feature-cream-fill);
  color: var(--home-ink);
}

.meo-bubble-m {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--home-film-bubble-meo-fill);
  color: var(--home-white);
}

.meo-caption {
  display: grid;
  gap: 1px;
  color: var(--home-film-card-label-quiet-text);
}

.meo-caption b {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.meo-caption-m {
  color: var(--home-white);
}

.meo-caption-m b {
  color: var(--home-film-card-label-text);
}

.meo-booked {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--success-rule);
  border-radius: 10px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  line-height: 1.25;
  opacity: 0;
}

.meo-booked .meo-icon {
  flex: 0 0 auto;
}

.meo-booked-text {
  display: grid;
}

.meo-wave {
  display: flex;
  height: 22px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0 0;
}

.meo-wave-bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--home-film-card-label-quiet-text);
  transform: scaleY(.12);
}

.meo-call[data-speaking="m"] .meo-wave-bar {
  background: var(--home-film-card-label-text);
}

.meo-call-actions {
  display: none;
  justify-content: space-around;
  padding: 8px 0 12px;
}

.meo-call[data-call-state="ringing"] .meo-call-actions {
  display: flex;
}

.meo-call[data-call-state="ringing"] .meo-wave,
.meo-call[data-call-state="ringing"] .meo-thread-window {
  display: none;
}

.meo-call-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--home-white);
}

.meo-call-decline {
  background: var(--alarm);
}

.meo-call-answer {
  background: var(--success);
}

.meo-call-decline .meo-icon,
.meo-call-answer .meo-icon {
  width: 18px;
  height: 18px;
}

.meo-avatar-meo {
  overflow: hidden;
  background: var(--home-white);
  box-shadow: 0 0 0 1px var(--home-line);
}

.meo-avatar-meo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meo-divider {
  align-self: center;
  margin: 2px 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lit);
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
}

.meo-learned {
  border-radius: 4px;
  background: transparent;
  color: inherit;
  transition: background-color .4s ease, box-shadow .4s ease;
}

.meo-learned.is-lit {
  background: color-mix(in srgb, var(--home-white) 26%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--home-white) 26%, transparent);
}

.meo-lock {
  position: relative;
  background: linear-gradient(170deg, var(--home-film-phone-head-fill), var(--home-film-phone-screen-fill));
  color: var(--home-white);
}

.meo-lock-face {
  padding: 10px 10px 6px;
  text-align: center;
}

.meo-lock-time {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
}

.meo-lock-date {
  margin: 6px 0 0;
  color: var(--home-film-card-label-quiet-text);
  font-size: 11px;
}

.meo-lock-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
}

.meo-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--home-white) 14%, transparent);
  font-size: 11px;
  line-height: 1.3;
  opacity: 0;
}

.meo-note .meo-avatar {
  flex-basis: 22px;
  height: 22px;
}

.meo-note-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.meo-note .meo-avatar {
  display: none;
}

.meo-approve-card .meo-badge {
  display: none;
}

.meo-note-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.meo-note-head small {
  color: var(--home-film-card-label-quiet-text);
}

.meo-owner {
  background: var(--home-white);
  color: var(--home-ink);
}

.meo-owned {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--home-feature-cream-fill);
  font-size: 12px;
  line-height: 1.32;
  opacity: 0;
}

.meo-owned b {
  color: var(--home-muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.meo-owned-m {
  background: var(--home-feature-lilac-fill);
}

.meo-owned-m b {
  color: var(--home-brand);
}

.meo-approve-body {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 8px;
}

.meo-approve-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  opacity: 0;
}

.meo-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--home-feature-cream-fill);
  color: var(--warn);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.meo-owner.is-sent .meo-badge {
  background: var(--success-bg);
  color: var(--success);
}

.meo-approve-title {
  font-size: 12px;
  line-height: 1.3;
}

.meo-approve-draft {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.meo-approve-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.meo-approve-edit,
.meo-approve-send {
  position: relative;
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.meo-approve-edit {
  border: 1px solid var(--home-line);
  color: var(--home-ink);
}

.meo-approve-send {
  background: var(--home-film-bubble-meo-fill);
  color: var(--home-white);
}

.meo-owner.is-sent .meo-approve-buttons {
  opacity: .4;
}

.meo-tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--home-white);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.meo-teach-field {
  min-height: 52px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--home-language-toggle-hover-edge);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.32;
}

.meo-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--home-brand);
  vertical-align: text-bottom;
}

.meo-saved {
  margin: 0;
}

.meo-today-rows,
.meo-list-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.meo-today-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-radius: 10px;
  background: var(--home-feature-cream-fill);
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
}

.meo-today-row strong {
  color: var(--home-brand);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.meo-today-row.is-clear {
  background: var(--success-bg);
}

.meo-today-row.is-clear strong {
  color: var(--success);
}

.meo-list {
  background: var(--home-film-card-fill);
  color: var(--home-white);
}

.meo-list .meo-panel-who small {
  color: var(--home-film-card-label-quiet-text);
}

.meo-list .meo-panel-head {
  border-bottom-color: color-mix(in srgb, var(--home-white) 14%, transparent);
}

.meo-list-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--home-film-card-label-text);
}

.meo-list-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--home-white) 10%, transparent);
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
}

.meo-list-row b {
  min-width: 36px;
  color: var(--home-film-card-label-text);
  font-variant-numeric: tabular-nums;
}

.meo-list-detail {
  display: grid;
  min-width: 0;
}

.meo-list-detail small {
  color: var(--home-film-card-label-quiet-text);
}

.meo-demo-controls {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 430px;
  margin-inline: auto;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--home-video-controls-edge);
  border-radius: 999px;
  background: var(--home-video-controls-fill);
  box-shadow: 0 7px 20px var(--home-video-controls-shadow);
  backdrop-filter: blur(8px);
}

.meo-demo-controls .demo-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--home-video-toggle-edge);
  border-radius: 50%;
  background: var(--home-video-toggle-fill);
  color: var(--home-white);
  cursor: pointer;
}

.meo-demo-controls .demo-toggle:hover,
.meo-demo-controls .demo-toggle:focus-visible {
  background: var(--home-video-toggle-hover-fill);
}

.meo-demo-controls .demo-toggle:focus-visible {
  outline: 3px solid var(--home-white);
  outline-offset: 4px;
}

.meo-demo-controls .demo-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.meo-demo-controls .demo-toggle.is-playing .demo-play-icon {
  width: 11px;
  height: 14px;
  margin-left: 0;
  border: 0;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.meo-demo-controls .demo-seek {
  flex: 1;
  min-width: 80px;
  height: 4px;
  accent-color: var(--home-video-seek-accent);
  cursor: pointer;
  font-size: 16px;
}

.meo-demo-controls .demo-time {
  min-width: 8.5ch;
  color: var(--home-white);
  font-size: var(--type-ui);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (min-width: 900px) {
  .meo-note .meo-avatar {
    display: grid;
  }

  .meo-approve-card .meo-badge {
    display: inline;
  }

  .meo-lock-face {
    padding: 16px 10px 8px;
  }

  .meo-lock-time {
    font-size: 34px;
  }

  .meo-demo-chips {
    flex-wrap: wrap;
    overflow: visible;
  }

  .meo-demo-stage {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .meo-scene-photo {
    bottom: 0;
    height: auto;
  }

  .meo-scene-photo img {
    object-position: center;
  }

  .meo-scene-photo::after {
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--home-film-phone) 40%, transparent) 0%,
      transparent 55%
    );
  }

  .meo-scene-outro {
    top: 16px;
    right: 18px;
    left: auto;
    max-width: 380px;
  }

  .meo-scene-trade {
    top: 16px;
    left: 18px;
  }

  .meo-scene-panels {
    top: 64px;
    right: auto;
    bottom: 78px;
    left: 18px;
    width: min(56%, 620px);
    gap: 12px;
  }

  .meo-panel-who strong,
  .meo-bubble,
  .meo-caption,
  .meo-owned,
  .meo-approve-title,
  .meo-teach-field,
  .meo-today-row,
  .meo-list-row {
    font-size: 14px;
  }

  .meo-note,
  .meo-approve-draft {
    font-size: 13px;
  }

  .meo-lock-time {
    font-size: 48px;
  }

  .meo-panel-head {
    padding: 10px 12px 9px;
  }

  .meo-thread {
    gap: 8px;
    padding: 10px 12px;
  }

  .meo-demo-controls {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meo-thread {
    will-change: auto;
  }
}
