/* Separate from UM's hidden global profile navigation; viewing mode only. */
body .um:is(.um-viewing,.um-editing) .ptum-profile-tabs { display:grid; grid-template-columns:repeat(var(--ptum-profile-tab-columns,3),minmax(0,1fr)); gap:6px; padding:5px; margin:0 0 24px; background:#0b1b30; border:1px solid #385675; border-radius:12px; clear:both; }
body .um .ptum-profile-tab { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; min-height:46px; padding:10px 8px; border:1px solid transparent; border-radius:8px; background:transparent; color:#bacbe2; font-family:inherit; font-size:14px; font-weight:600; line-height:1.4; cursor:pointer; }
body .um .ptum-profile-tab[aria-selected="true"] { background:#19465b; color:#a5f3fc; border-color:#397a8a; }
body .um .ptum-profile-tab:hover { color:#f0f6ff; }
body .um .ptum-profile-tab i { flex-shrink:0; }
body .um .ptum-profile-panel { min-width:0; clear:both; }
body .um .ptum-profile-panel > .um-field { float:none; width:100%; box-sizing:border-box; }
body .um .ptum-profile-panel[hidden], body .um .ptum-profile-sectioned [hidden] { display:none !important; }
body .um .ptum-profile-panel::after { content:''; display:table; clear:both; }
body .um .ptum-profile-section-empty { padding:20px 0; margin:0; color:#bacbe2; }
body .um :is(.ptum-profile-tab,.ptum-profile-panel):focus-visible { outline:2px solid #67e8f9; outline-offset:3px; }
@media(max-width:480px) {
 body .um:is(.um-viewing,.um-editing) .ptum-profile-tabs { gap:3px; padding:4px; margin-bottom:20px; }
 body .um .ptum-profile-tab { flex-direction:column; justify-content:center; gap:4px; padding:9px 3px; font-size:12px; }
 body .um .ptum-profile-tab i { font-size:13px; }
}
@media print {
 body .um .ptum-profile-tabs { display:none !important; }
 body .um .ptum-profile-sectioned .ptum-profile-panel[hidden] { display:block !important; }
}
@media(max-width:800px) {
 body .um:is(.um-viewing,.um-editing) .ptum-profile-tabs.ptum-profile-tabs-certifications { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Keep the existing member Message action aligned with the visible name. */
body .um.um-viewing .ptum-profile-name-row { display:flex; align-items:center; gap:12px; text-align:left; }
body .um.um-viewing .ptum-profile-name-row .ptum-profile-full-name { flex:0 1 auto; min-width:0; }
body .um.um-viewing .ptum-profile-name-row .ptum-connect { flex:0 0 auto; margin:0; }
body .um.um-viewing .ptum-profile-name-row .ptum-connect-button { white-space:nowrap; box-sizing:border-box; }
body .um.um-viewing .um-header:has(.um-profile-edit) .ptum-profile-name-row { padding-right:44px; box-sizing:border-box; }
