.phone-preview {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 24px 25px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffffa6;
  border-radius: 27px;
  color: #21231f;
  background: #f7f5ef;
  box-shadow: 0 24px 90px #16181755;
  scrollbar-width: thin;
}
.phone-preview::backdrop {
  background: #20221f8f;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.phone-preview-heading {
  position: sticky;
  top: 0;
  z-index: 15;
  padding-block: 7px;
  background: #f7f5ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.phone-preview-heading p {
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #696b63;
}
.phone-preview-heading h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.phone-preview-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 70px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #21231f26;
  border-radius: 24px;
  color: #21231f;
  background: transparent;
  font-size: 11px;
}
.phone-preview-close > span:first-child {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.phone-preview-close:hover {
  background: #e1d8f6;
}
.phone-preview-description {
  max-width: 320px;
  margin: 15px 0 18px;
  color: #696b63;
  font-size: 12px;
  line-height: 1.7;
}
.phone-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 22px;
}
.phone-preview-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid #21231f26;
  border-radius: 23px;
  background: transparent;
  color: #585c51;
  font-size: 11px;
}
.phone-preview-tabs button[aria-pressed="true"] {
  background: #21231f;
  color: #fff;
  border-color: #21231f;
}
.phone-preview button:focus-visible,
.phone-preview a:focus-visible {
  outline: 3px solid #3c4be8;
  outline-offset: 4px;
}
.phone-preview-stage {
  display: flex;
  justify-content: center;
  padding-bottom: 3px;
}
.phone-preview-device.sim-host {
  --device-width: 300px;
  width: 300px;
  max-width: none;
  flex: 0 0 300px;
}
.phone-preview-footnote {
  margin: 17px 0 0;
  color: #696b63;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 380px) {
  .phone-preview {
    padding: 20px 12px 17px;
    border-radius: 23px;
  }
  .phone-preview-heading h2 {
    font-size: 29px;
  }
  .phone-preview-close {
    min-width: 65px;
    padding-inline: 8px;
  }
  .phone-preview-description {
    font-size: 11px;
  }
}
@media (max-width: 350px) {
  .phone-preview {
    width: calc(100% - 12px);
    padding-inline: 3px;
  }
  .phone-preview-heading,
  .phone-preview-description,
  .phone-preview-tabs {
    margin-left: 7px;
    margin-right: 7px;
  }
}
