/* Identity's internal account nav only. Never styles the public top navbar. */
.tm-identity-local-nav-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.tm-identity-local-nav-title { min-width:0; }
.tm-identity-local-nav-title h4 { margin:0 !important; padding:8px 0 !important; font-size:1.05rem; }
.tm-identity-local-links { justify-content:flex-start; gap:6px; }
.tm-identity-local-links .nav-link { border-radius:12px; display:inline-flex; align-items:center; gap:4px; }
.tm-identity-managed-badge {
    display:inline-flex; align-items:center; gap:9px; padding:7px 14px 7px 8px;
    border-radius:999px; color:white; font-size:.84rem; font-weight:500;
    background:linear-gradient(110deg,#2563eb,#7c3aed,#db2777,#0891b2,#2563eb);
    background-size:300% 300%; animation:tm-identity-gradient 9s ease-in-out infinite;
    box-shadow:0 5px 18px rgba(80,80,180,.2);
}
.tm-identity-managed-badge img { width:30px; height:30px; border-radius:50%; object-fit:contain; background:#fff; padding:2px; }
.tm-identity-managed-badge strong { font-weight:800; }
@keyframes tm-identity-gradient { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@media(max-width:767.98px) {
    .tm-identity-local-nav-head { align-items:flex-start; flex-direction:column; }
    .tm-identity-local-links { flex-direction:row !important; flex-wrap:wrap; }
    .tm-identity-local-links .nav-link { font-size:.87rem; padding:8px 10px; }
}
@media(prefers-reduced-motion:reduce) { .tm-identity-managed-badge { animation:none; } }
