@layer components {
  .visitor-backdrop {
    background: #f8f4f0;
  }

  .visitor-backdrop-canvas {
    position: absolute;
    inset: 0;
  }

  .visitor-backdrop .visitor-backdrop-attribution {
    inset-block-end: .35rem;
  }

  /* On phones the dialog fills the screen, so only the map shows behind it. */
  .visitor-sample-rail {
    display: none;
  }

  @media (min-width: 48rem) {
    .visitor-sample-rail {
      display: block;
    }
  }

  /* The native apps' landing preview has no header and no sample list: both
     apps list the sample neighbors natively, so the map fills the page. The
     document never scrolls, and nothing in it is meant to be selected or
     copied. */
  .landing-preview-surface {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }

  .landing-preview {
    grid-template-rows: minmax(0, 1fr);
  }

  @media (min-width: 48rem) {
    .landing-preview .neighborhood-layout.is-without-rail {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "workspace";
    }
  }

  /* The apps' lowered sheet covers the bottom of the page, so on phones the
     credit sits at the top. */
  @media (width < 48rem) {
    .landing-preview .visitor-backdrop-attribution {
      inset-block: calc(.35rem + env(safe-area-inset-top)) auto;
    }
  }

  /* A sample neighbor's locked form: the member Edit Neighbor dialog with
     readable, visibly locked fields and no editing controls. */
  .landing-preview-sample :is(input, button):disabled {
    opacity: 1;
    cursor: default;
  }

  .landing-preview-sample input[type="text"]:disabled {
    border-color: var(--color-line);
    background: var(--color-cream);
    color: var(--color-navy);
    -webkit-text-fill-color: var(--color-navy);
  }

  .landing-preview-sample .neighborhood-quick-name-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-preview-sample-message {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .75rem .85rem;
    border-radius: .68rem;
    background: var(--color-orange-soft);
    color: var(--color-navy);
    font-size: .86rem;
    font-weight: 720;
    line-height: 1.4;
  }

  .landing-preview-sample-message .nabry-icon {
    flex: 0 0 auto;
    inline-size: 1.05rem;
    block-size: 1.05rem;
    color: var(--color-orange-dark);
    stroke-width: 2;
  }
}
