/* Adapted from the supplied RCS demo handset stylesheet. */
.phone-stage {
  --handset-width: 274px;
}

#hero-phone {
  display: grid;
  justify-items: center;
  width: 100%;
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone {
  --screen: #fff;
  --tint: #edf1f7;
  --card-bg: #edf1f7;
  --phone-ink: #202124;
  --phone-muted: #454a50;
  position: relative;
  display: grid;
  grid-template: minmax(0,1fr)/minmax(0,1fr);
  container-type: inline-size;
  width: min(100%, var(--handset-width, 316px));
  aspect-ratio: 390/856;
  padding: 5px;
  border: 1px solid #32383c;
  border-radius: 15.7% / 7.2%;
  background: linear-gradient(142deg,#555d60,#171b1d 14%,#16191c 84%,#40484d);
  box-shadow: 0 0 0 1px #141817,0 2px 1px #0e110f,0 10px 15px #192a1d29,0 26px 44px #182b2240;
  color: var(--phone-ink);
  font-family: Roboto,Arial,sans-serif;
  text-align: left;
  letter-spacing: normal;
  min-width: 0;
  margin: 0;
  transform: none;
  animation: none;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone::before,
:is(.gallery-page, .phone-stage, .format-stage) .phone::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #25292b;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone::before {
  top: 20%;
  height: 10%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone::after {
  top: 32%;
  height: 5%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone {
  --tint: #fff;
  --card-bg: #e8e8ed;
  --phone-ink: #1d1d1f;
  --phone-muted: #4d4d54;
  border-color: #707579;
  background: linear-gradient(142deg,#acb0b0,#27292a 15%,#1c1d1e 85%,#9da1a0);
  font-family: -apple-system,BlinkMacSystemFont,system-ui,sans-serif;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone::before {
  left: -3px;
  right: auto;
  top: 20%;
  height: 10%;
  border-radius: 2px 0 0 2px;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone::after {
  top: 24%;
  height: 8%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-screen {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 14.3% / 6.5%;
  background: var(--screen);
  color: inherit;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto auto;
  background: linear-gradient(var(--tint) 0 46%,var(--screen) 46%);
  font-size: clamp(11px,4.12cqi,14px);
  line-height: 1.4;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .ui-icon {
  width: 5.8cqi;
  height: 5.8cqi;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-status {
  position: relative;
  height: 12.5cqi;
  padding: 0 8cqi;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 4cqi;
  color: #101214;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .front-camera {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 5.9cqi;
  height: 5.9cqi;
  border-radius: 50%;
  background: #08090a;
  box-shadow: inset 0 0 0 1px #111318;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .front-camera {
  width: 24cqi;
  height: 6.7cqi;
  border-radius: 999px;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .status-icons {
  display: flex;
  align-items: center;
  gap: 1.25cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .status-icons svg {
  display: block;
  fill: currentColor;
  width: 4.3cqi;
  height: 3.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .status-icons .status-battery {
  width: 6.1cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.8cqi;
  min-height: 14.7cqi;
  padding: 0 3.9cqi 2.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-back,
:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-more {
  display: grid;
  place-items: center;
  flex: none;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-back .ui-icon,
:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-more .ui-icon {
  width: 6cqi;
  height: 6cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-more {
  margin-left: auto;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .identity {
  display: flex;
  align-items: center;
  gap: 3cqi;
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .brand-avatar {
  display: block;
  width: 9cqi;
  height: 9cqi;
  flex: none;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .identity-text {
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .identity-text strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3cqi;
  font-weight: 500;
  font-size: 4.8cqi;
  line-height: 1.3;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .identity-text small {
  display: block;
  color: var(--phone-muted);
  font-size: 3.85cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .business-name {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqi;
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .business-name > span {
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .business-verification {
  display: block;
  flex: none;
  width: 4.6cqi;
  height: 4.6cqi;
  object-fit: contain;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .business-verification {
  width: 3.9cqi;
  height: 3.9cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-head {
  justify-content: center;
  padding: 2.2cqi 11cqi 5cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .identity,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .identity {
  flex-direction: column;
  gap: 2.9cqi;
  text-align: center;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .brand-avatar,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .brand-avatar {
  width: 16.7cqi;
  height: 16.7cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .identity-text strong {
  font-size: 5.25cqi;
  margin-bottom: 1.9cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .phone-back,
:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .phone-more,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-back {
  position: absolute;
  top: 2.5cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .phone-back,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-back {
  left: 4.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-head-intro .phone-more {
  right: 4.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-head {
  padding: 1.9cqi 12cqi 2.2cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .identity {
  gap: 1cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-back {
  width: 10.5cqi;
  height: 10.5cqi;
  border-radius: 50%;
  background: #f7f7f9;
  box-shadow: 0 2px 9px #30323c12;
  color: #323238;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-back .ui-icon {
  transform: rotate(180deg);
  width: 6cqi;
  height: 6cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .identity-text strong {
  gap: .3cqi;
  padding: .9cqi 2cqi;
  border-radius: 999px;
  background: #f3f3f5;
  font-size: 4.35cqi;
  font-weight: 670;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .identity-text strong .ui-icon {
  width: 3.8cqi;
  height: 3.8cqi;
  color: #73737b;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .thread {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--screen);
  border-radius: 7cqi 7cqi 0 0;
  padding: 4.5cqi 2.1cqi 2.8cqi;
  min-width: 0;
  overflow-x: hidden;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .thread {
  border-radius: 0;
  padding: 1.3cqi 4cqi 2.8cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .thread-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.4cqi;
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .phone-date {
  text-align: center;
  font-size: 3.3cqi;
  color: #54585f;
  line-height: 1.45;
  margin-bottom: 2.7cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .phone-date span {
  display: block;
  color: #64646c;
  font-size: 3cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .bubble {
  position: relative;
  max-width: 87%;
  border-radius: 5.6cqi;
  padding: 2.4cqi 3.5cqi;
  line-height: 1.4;
  font-size: inherit;
  overflow-wrap: anywhere;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .outgoing {
  align-self: flex-end;
  background: #2356bf;
  color: white;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .incoming {
  background: var(--tint);
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .bubble-receipt {
  display: inline-grid;
  place-items: center;
  margin-left: 1.35cqi;
  width: 4.55cqi;
  height: 4.55cqi;
  border-radius: 50%;
  background: white;
  color: #2356bf;
  vertical-align: middle;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .bubble-receipt .ui-icon {
  width: 3.35cqi;
  height: 3.35cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .bubble {
  border-radius: 5.2cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .outgoing {
  background: #218743;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .incoming,
:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .bubble-selected {
  background: var(--card-bg);
  color: var(--phone-ink);
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .bubble-selected small {
  display: block;
  color: #60616a;
  font-size: 3.4cqi;
  margin-top: .55cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .bubble::after {
  content: "";
  position: absolute;
  bottom: -.45cqi;
  width: 3.5cqi;
  height: 3.8cqi;
  background: inherit;
  z-index: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .outgoing::after {
  right: .3cqi;
  border-radius: 0 0 0 95%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .incoming::after {
  left: .3cqi;
  border-radius: 0 0 95% 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .message-block {
  width: 100%;
  min-width: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .message-card {
  overflow: hidden;
  background: var(--card-bg);
  border-radius: 5.3cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .message-block {
  width: 76%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .message-card {
  border-radius: 4.6cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .media {
  display: block;
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  object-position: 50% 47%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .media {
  aspect-ratio: 3/2;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

@media (max-width: 520px) {
  .phone-stage .phone { max-width: 255px; }
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-copy {
  padding: 3.65cqi 3.65cqi 3.1cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-copy strong {
  display: block;
  font-weight: 650;
  line-height: 1.25;
  font-size: 4.45cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-copy p {
  margin: 1.2cqi 0 0;
  line-height: 1.43;
  color: var(--phone-muted);
  overflow-wrap: anywhere;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-copy {
  padding: 3cqi 3.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-copy p {
  font-size: 3.72cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-actions {
  display: grid;
  gap: 1px;
  margin: 0 3.65cqi 3.65cqi;
  border-radius: 4.5cqi;
  overflow: hidden;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-actions>* {
  display: flex;
  align-items: center;
  gap: 2.75cqi;
  width: 100%;
  min-height: 13.8cqi;
  padding: 2.55cqi 3.5cqi;
  border: 0;
  background: white;
  text-align: left;
  font-size: 4.1cqi;
  line-height: 1.3;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-actions button:hover,
:is(.gallery-page, .phone-stage, .format-stage) .phone .chips button:hover {
  background: #f5f7fa;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone button:focus-visible,
:is(.gallery-page, .phone-stage, .format-stage) .phone summary:focus-visible,
:is(.gallery-page, .phone-stage, .format-stage) .phone [tabindex]:focus-visible {
  outline: 2px solid #205ac3;
  outline-offset: -2px;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .action-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 8cqi;
  height: 8cqi;
  border-radius: 50%;
  background: var(--tint);
  color: #485057;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .action-icon .ui-icon {
  width: 4.6cqi;
  height: 4.6cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-actions {
  margin: 1.15cqi 0 0;
  gap: 0;
  border-radius: 4.6cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-actions>* {
  min-height: 10.6cqi;
  color: #075eb1;
  background: var(--card-bg);
  font-size: 3.85cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-actions>*+* {
  border-top: 1px solid #d5d5dc;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .card-actions button:hover {
  background: #d9d9e1;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .action-icon {
  width: 6.8cqi;
  height: 6.8cqi;
  background: #d7d7dd;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .actions-note {
  margin: 1.6cqi 0 0;
  color: #5c5c65;
  font-size: 2.95cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .reply-options {
  width: 76%;
  margin-top: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .reply-options+.actions-note {
  margin-top: 0;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .native-options {
  margin: 0 2.85cqi 3cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .native-options summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2cqi;
  list-style: none;
  cursor: pointer;
  min-height: 9.8cqi;
  padding: 1.3cqi 2.6cqi;
  border-radius: 7cqi;
  background: #d9d9de;
  font-size: 3.8cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .native-options summary::-webkit-details-marker {
  display: none;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .native-options summary .ui-icon {
  width: 4cqi;
  height: 4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .native-options[open] summary .icon-down {
  transform: rotate(180deg);
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .native-options .card-actions {
  background: #fff;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .native-options .card-actions>* {
  background: #efeff2;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .native-options .card-actions button:hover {
  background: #dedee4;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .chips {
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.45cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .chips button {
  border: 1px solid #b6bcc4;
  border-radius: 999px;
  min-height: 9.7cqi;
  padding: 1.5cqi 2.7cqi;
  color: var(--phone-ink);
  background: white;
  font-size: 3.85cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .carousel-strip {
  width: calc(100% + 4.2cqi);
  display: flex;
  gap: 2cqi;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -2.1cqi;
  padding-inline: 2.1cqi;
  scroll-padding-inline: 2.1cqi;
  scroll-snap-type: x mandatory;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .carousel-strip .message-block {
  flex: 0 0 74%;
  scroll-snap-align: start;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .card-stack {
  width: 100%;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls {
  width: 76%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1cqi;
  color: #53535e;
  font-size: 3.45cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls div {
  display: flex;
  gap: 1.1cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls button {
  display: grid;
  place-items: center;
  width: 8cqi;
  height: 8cqi;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f4;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls button:disabled {
  opacity: .4;
  cursor: default;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls .ui-icon {
  width: 4.15cqi;
  height: 4.15cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-controls button:first-child .ui-icon {
  transform: rotate(180deg);
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-front {
  position: relative;
  isolation: isolate;
  touch-action: pan-y;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-front::before,
:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-front::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 7%;
  top: 6%;
  width: 71%;
  height: 69%;
  border-radius: 4.3cqi;
  transform: rotate(5deg);
  background: #cdd8d4;
  box-shadow: 0 1px 5px #1c222529;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .stack-front::after {
  z-index: -2;
  left: 11%;
  transform: rotate(9deg);
  background: #e1e6eb;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .composer {
  display: flex;
  align-items: center;
  gap: 2cqi;
  padding: 0 2.1cqi;
  background: var(--screen);
  color: #3c434a;
  border-radius: 0;
  font-size: inherit;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-field {
  flex: 1;
  min-width: 0;
  height: 12.7cqi;
  display: flex;
  align-items: center;
  gap: 3cqi;
  padding: 0 3cqi;
  border-radius: 999px;
  background: var(--tint);
  font-size: 4.1cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-field span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-field .ui-icon {
  width: 5.4cqi;
  height: 5.4cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-voice,
:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-plus {
  display: grid;
  place-items: center;
  width: 12.7cqi;
  height: 12.7cqi;
  border-radius: 50%;
  flex: none;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .compose-voice {
  background: #c9ebd2;
  color: #214d34;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .composer {
  padding-inline: 4cqi;
  gap: 2.9cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .compose-plus {
  width: 10.5cqi;
  height: 10.5cqi;
  background: #f5f5f7;
  color: #393a42;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .compose-field {
  height: 10.5cqi;
  border: 1px solid #dedee3;
  background: #fafafc;
  color: #585962;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone.iphone .compose-field .ui-icon {
  width: 4.8cqi;
  height: 4.8cqi;
  color: #666670;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .homebar {
  width: 27%;
  height: 1cqi;
  border-radius: 999px;
  background: #0b0c0c;
  margin: 3cqi auto 2.2cqi;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .brand-avatar {
  border-radius: 26%;
  object-fit: cover;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .identity-text strong {
  overflow-wrap: anywhere;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .composer .compose-field > span {
  font-size: inherit;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .media:has(.rcs-photo-crop) {
  position: relative;
  overflow: hidden;
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .media .rcs-photo-crop {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
}

:is(.gallery-page, .phone-stage, .format-stage) .phone .jacket-crop {
  display: block;
  height: 100%;
  background: #e8e4dc url("/assets/juniper-fall.jpg?v=3981db53d626") no-repeat;
  background-size: 200% auto;
}

.phone .jacket-sage { background-position: left 37%; }
.phone .jacket-sand { background-position: right 37%; }

.phone .thread-photo {
  width: 89%;
  overflow: hidden;
  border-radius: 5.3cqi;
}

.phone .thread-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.phone .thread-video, .phone .thread-audio {
  width: 89%;
  border-radius: 5cqi;
  overflow: hidden;
  background: var(--card-bg);
}

.phone .thread-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}

.phone .thread-audio { padding: 3cqi; }
.phone .thread-audio audio {
  display: block;
  width: 100%;
  height: 40px;
  margin-block: 1.4cqi 0;
}
.phone .thread-audio details { color: var(--phone-muted); }
.phone .thread-audio summary { cursor: pointer; }
.phone .thread-audio p { margin: 1.5cqi 0 0; }

:is(.gallery-page, .phone-stage, .format-stage) .phone .chips button {
  display: inline-flex;
  align-items: center;
  gap: 1.6cqi;
  min-height: 32px;
  max-width: 100%;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.phone .chips .action-icon {
  display: contents;
}

.phone .chips .action-icon .ui-icon {
  flex: none;
  color: #315989;
}

.phone .flow-replies {
  width: 76%;
}

.phone .card-heading {
  display: flex;
  align-items: center;
  gap: 2.6cqi;
}

.phone .card-heading > div { min-width: 0; }

.phone .card-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 10cqi;
  aspect-ratio: 1;
  border-radius: 3cqi;
  background: #dae5ef;
  color: #244d76;
}

.phone .card-symbol .ui-icon {
  width: 5cqi;
  height: 5cqi;
}

.phone .card-details {
  display: grid;
  gap: 1.75cqi;
  margin: 3.1cqi 0 0;
  padding-block-start: 2.1cqi;
  border-top: 1px solid #46506129;
  font-size: .93em;
  line-height: 1.32;
}

.phone .card-details > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.25cqi;
  overflow-wrap: anywhere;
}

.phone .card-details dt { color: var(--phone-muted); }
.phone .card-details dd { margin: 0; font-weight: 620; }

.phone .preview-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e9ece4;
}

.phone .flow-destination {
  width: 100%;
  border: 1px solid #cfd9d4;
  border-radius: 4.8cqi;
  overflow: hidden;
  background: #fcfdfa;
  box-shadow: 0 2px 6px #243d2c12;
}

.phone .destination-top {
  display: flex;
  align-items: center;
  gap: 1.8cqi;
  padding: 2.8cqi 3.7cqi;
  background: #e8efe8;
  color: #284234;
  line-height: 1.17;
}

.phone .destination-top .ui-icon {
  flex: none;
  width: 4.7cqi;
  height: 4.7cqi;
}

.phone .destination-top > span {
  margin-inline-start: auto;
  border: 1px solid #436c5640;
  border-radius: 999px;
  padding: .55cqi 1.7cqi;
  font-size: .81em;
}

.phone .destination-body { padding: 3.5cqi; }
.phone .destination-body > strong { display: block; font-size: 1.12em; line-height: 1.26; }
.phone .destination-body > p {
  margin: 1.65cqi 0 0;
  color: var(--phone-muted);
}
.phone .destination-action { margin-block-start: 3.5cqi; }
.phone .destination-action button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 3cqi;
  padding: 2cqi;
  background: #214f3d;
  color: #fff;
  font-weight: 620;
  cursor: pointer;
}
.phone .destination-action button:hover { background: #30674f; }

:is(.phone-stage, .format-stage) .phone button.demo-tap {
  position: relative;
  background: #e3ecff;
  color: #173c76;
  box-shadow: inset 0 0 0 1px #2f5baa;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.phone-stage, .format-stage) .phone button.demo-tap::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 7%;
    width: 15px;
    aspect-ratio: 1;
    border: 1px solid #315eb0;
    border-radius: 50%;
    pointer-events: none;
    animation: phone-demo-tap .52s ease-out both;
  }
}

@keyframes phone-demo-tap {
  from { transform: translateY(-50%) scale(.45); opacity: 1; }
  to { transform: translateY(-50%) scale(1.45); opacity: 0; }
}
