/* Phones in the browser: cards keep a 12px gutter from the screen edges, as in the iPhone app, instead of running
   into the edges. Loaded last so it settles the older full-width phone rules (index.html, popup-system.css). */
@media (max-width: 600px) {
  /* Home picture card, and the same picture card on Vibe and Live. */
  html:root body.is-logged-in .home-view .world-map,
  html:root body.is-logged-in :is(.vibe-view, .live-view) .friends-map {
    width: auto !important;
    margin-inline: 12px !important;
    border-radius: 24px !important;
  }
  /* Sign-up consent: a floating card, not a sheet stuck to the sides and bottom. */
  html:root:root body:is(.is-logged-in,:not(.is-logged-in)) .account-consent-sheet {
    width: calc(100% - 24px) !important;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 28px !important;
    max-height: min(86dvh, 760px) !important;
  }
}
/* The Home person card once moved (web/home-card-drag.js): above the Family/Friends switch, so it never hides under it. */
.world-map [data-home-family-card].is-placed { z-index: 9 !important; }
.world-map [data-home-family-card].is-dragging { cursor: grabbing; transition: none !important; box-shadow: 0 18px 44px rgba(17, 24, 64, .28) !important; }
