/* Actions have their own row, independent of portrait and ranking. */
.profile-card > * { min-width:0; }
.profile-card > .profile-actions {
    display:flex; flex-wrap:wrap; gap:.65rem; width:100%; box-sizing:border-box;
    grid-column:1 / -1; padding:.9rem 0 0; margin:0; align-items:center;
}
.profile-actions .profile-action {
    flex:0 1 auto; min-height:44px; max-width:100%; box-sizing:border-box;
    display:inline-flex; justify-content:center; align-items:center;
    white-space:normal; overflow-wrap:break-word; text-align:center;
    padding:.65rem 1rem; line-height:1.4;
}
.profile-identity { min-width:0; overflow-wrap:anywhere; }
.profile-name-row { flex-wrap:wrap; }
.profile-ranking { width:100%; box-sizing:border-box; }
.profile-ranking .ranking-card { min-width:0; }
[data-layout="editorial"] .profile-card,
[data-layout="portfolio"] .profile-card,
[data-layout="catalog"] .profile-card {
    display:grid; grid-template-columns:minmax(120px,22%) minmax(0,1fr);
    align-items:start; column-gap:1.5rem; row-gap:1rem;
}
[data-layout="editorial"] .profile-top-row,
[data-layout="portfolio"] .profile-top-row,
[data-layout="catalog"] .profile-top-row { width:100%; min-width:0; flex-wrap:wrap; gap:1rem; }
[data-layout="catalog"] .profile-ranking { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
[data-layout="spotlight"] .profile-card > .profile-actions { justify-content:center; }
@media(max-width:767px) {
    [data-layout] .profile-card { display:block; }
    [data-layout] .profile-top-row { flex-wrap:wrap; gap:1rem; }
    [data-layout] .profile-identity { padding-top:1rem; }
    [data-layout] .profile-card > .profile-actions { padding-top:1rem; }
    .profile-actions .profile-action { flex:1 1 160px; }
    .profile-ranking { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
}
