#game-market-people-mail-recipients-view {
  width: 100%;
  max-width: 46rem;
  height: min(45.8rem, var(--app-sheet-height));

  @media (width >= 680px) and (height >= 620px) {
    &:not([hidden]) { border-radius: var(--sheet-border-radius); --viewkit-sheet-offset-y: var(--viewkit-sheet-centered-offset-y); }
  }

  > main {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
  }

  form.game-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.6rem;
    gap: 0.8rem;
    margin: 0;

    button {
      width: 100%;
      height: 3.6rem;
      padding: 0;

      &:disabled { background: var(--toolbar-background-color); }
    }
    button:not(:disabled) { color: var(--color-blue); }
  }

  .recipient-list {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ruled-list {
    --ruled-row-height: 4.4rem;
    min-height: 100%;
    list-style: none;

    &::after {
      --rule-start: calc(var(--ruled-row-height) - 1px);
      background: repeating-linear-gradient(
        transparent 0 var(--rule-start),
        var(--toolbar-border-color) var(--rule-start) var(--ruled-row-height)
      );
    }
  }

  li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: var(--ruled-row-height);
    padding-inline: 1.2rem 0.8rem;
    font-size: 1.4rem;

    border-bottom: 1px solid var(--toolbar-border-color);

    button {
      width: 3.2rem;
      height: 3.2rem;
      padding: 0;
      flex-shrink: 0;
      background: transparent;
      color: var(--color-blue);
    }

    button[data-recipient-action="remove"] { color: var(--color-red); }

    @media (hover: hover) and (pointer: fine) {
      &:not(:hover) button[data-recipient-action="remove"]:not(:focus-visible) {
        opacity: 0;
        pointer-events: none;
      }
    }
  }

  .recipient-identity {
    display: grid;
    min-width: 0;

    > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    small { color: var(--color-gray); font-size: 1.2rem; }
  }
}
