.guest-frame {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.guest-frame > span,
.guest-frame .dynamic-thumb img {
  max-width: 100%;
}

@media (max-width: 1100px) and (min-width: 851px) {
  .guest-frame-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  [data-screen="frame"] {
    align-content: start;
    gap: 22px;
    width: 100%;
    padding: 30px clamp(14px, 4vw, 24px) max(38px, env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  [data-screen="frame"] .section-heading {
    width: 100%;
    padding-inline: 4px;
  }

  [data-screen="frame"] h2 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11vw, 4rem);
    overflow-wrap: anywhere;
  }

  [data-screen="frame"] .section-heading > p:last-child {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
  }

  .guest-frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 2px;
  }

  .guest-frame {
    min-height: 0;
    padding: 12px 8px;
    border-radius: 15px;
  }

  .guest-frame.master-sheet > span {
    width: min(100%, 170px);
  }

  .guest-frame strong,
  .guest-frame small {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .frame-sync-actions,
  [data-action="frame-continue"] {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 420px) {
  [data-screen="frame"] {
    gap: 18px;
    padding-inline: 12px;
  }

  [data-screen="frame"] h2 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    margin-bottom: 14px;
  }

  .guest-frame-grid {
    gap: 8px;
  }

  .guest-frame {
    padding: 9px 5px;
    border-radius: 13px;
  }

  .guest-frame > span {
    width: 72px;
    padding: 7px;
  }

  .guest-frame.master-sheet > span {
    width: min(100%, 132px);
  }

  .guest-frame strong {
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.25;
  }

  .guest-frame small {
    margin-top: 3px;
    font-size: .7rem;
    line-height: 1.35;
  }

  .frame-sync-actions .secondary {
    min-width: 0;
    width: 100%;
  }
}
