/* The person card (views/person-card.js draws it into #contactCard), in the family design. One frost surface with
   a soft light in its corner, the portrait with a ring, the name and one line, the bio in three lines at most,
   the real counts in one quiet row, and two pills: Follow (the app's own) and View profile. It lands beside the
   name with the family's one curve; nothing turns, nothing bounces. Tokens only. */

#contactCard { position: fixed; z-index: 320; width: 324px; opacity: 0; transform: translateY(8px) scale(.97); transform-origin: top left; pointer-events: none; transition: opacity .2s var(--ease-out), transform .3s var(--ease-out); }
#contactCard.is-above { transform-origin: bottom left; transform: translateY(-8px) scale(.97); }
#contactCard.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
:where(#contactCard) :where(p) { margin: 0; }

.pc { position: relative; overflow: hidden; padding: 18px 18px 16px; border: 1px solid var(--frost-line); border-radius: 22px; background: radial-gradient(260px 180px at 100% 0%, var(--field-b), transparent 72%), var(--color-card); box-shadow: var(--frost-rim), var(--frost-pop); color: var(--color-foreground); }
.pc__top { display: flex; align-items: center; gap: 14px; }
.pc__av { display: block; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--color-card), 0 0 0 4px var(--frost-line); }
#contactCard .pc__img { display: grid; width: 56px; height: 56px; place-items: center; border: 0; border-radius: 50%; object-fit: cover; font-size: 17px; }
#contactCard.show .pc__av { animation: pc-av .4s var(--ease-out) both; }
@keyframes pc-av { from { transform: scale(.88); opacity: .4; } to { transform: none; opacity: 1; } }
.pc__who { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.pc__name { display: flex; min-width: 0; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; }
.pc__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__meta { overflow: hidden; font-size: 13.5px; line-height: 1.35; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.pc__state { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--color-brand-ink); }
.pc__state i { font-size: 13px; color: var(--color-brand); }
.pc__bio { display: -webkit-box; margin-top: 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13.5px; line-height: 1.5; color: var(--oryn-text-2); }
.pc__facts { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-muted-foreground); }
.pc__facts b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-foreground); }
.pc__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-muted-foreground); opacity: .6; }
.pc__acts { display: flex; gap: 8px; margin-top: 14px; }
#contactCard .pc__follow { display: inline-flex; height: 40px; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14px; font-weight: 600; color: var(--oryn-text-2); transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out), color .18s var(--ease-out); }
#contactCard .pc__follow:hover { border-color: var(--oryn-border-hover); background: var(--frost-strong); color: var(--color-foreground); }
#contactCard .pc__follow.is-following { border-color: color-mix(in srgb, var(--color-brand) 55%, transparent); background: var(--brand-soft); color: var(--color-brand-ink); }
#contactCard .pc__follow.is-following:hover { border-color: color-mix(in srgb, var(--color-brand) 55%, transparent); background: var(--brand-soft); color: var(--color-brand-ink); }
#contactCard .pc__follow .fb-ic { font-size: 13px !important; }
#contactCard .pc__view { display: inline-flex; height: 40px; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); transition: background-color .2s var(--ease-out), box-shadow .32s var(--ease-out); }
#contactCard .pc__view:hover { background: var(--color-brand-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
#contactCard .pc__view i { font-size: 14px; }
#contactCard .pc__acts > :only-child { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  #contactCard { transition-duration: 0s; }
  #contactCard.show .pc__av { animation: none; }
}
