/* Transparent padded artwork uses contain, never a sprite viewport or cover crop. */
html.nexo-identity .badge.nexo-art-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:2px!important;gap:6px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;vertical-align:middle}
html.nexo-identity .nexo-badge-art{display:inline-block!important;position:relative!important;flex:none!important;width:20px!important;height:20px!important;overflow:visible!important;vertical-align:middle;isolation:isolate}
html.nexo-identity .nexo-badge-art>img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;transform:none!important;filter:none!important;box-shadow:none!important}
html.nexo-identity .nexo-badge-art .nexo-vip-word{position:absolute!important;left:0!important;right:0!important;top:49%!important;text-align:center!important;font:900 5px/1 Georgia,serif!important;letter-spacing:-.3px!important;color:#ffdf65!important;text-shadow:0 1px 1px #000!important;pointer-events:none!important}
html.nexo-identity .compact .nexo-badge-art{width:16px!important;height:16px!important}
html.nexo-identity .compact .nexo-vip-word{font-size:4px!important}
html.nexo-identity .nexo-art-labelled .nexo-badge-label{font:650 12px/1.4 system-ui!important;white-space:normal!important;color:var(--text,#edf3fc)!important}
html.nexo-identity #badge-catalog{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px!important;align-items:stretch!important;padding:12px 4px!important;overflow:visible!important}
html.nexo-identity #badge-catalog .nexo-art-badge{flex-direction:column!important;min-height:100px!important;width:100%!important;box-sizing:border-box!important;padding:8px!important;gap:6px!important;border:1px solid #355169!important;background:#12283c!important}
html.nexo-identity #badge-catalog .nexo-badge-art{width:64px!important;height:64px!important}
html.nexo-identity #badge-catalog .nexo-vip-word{font-size:15px!important}
html.nexo-identity #profile-dialog.profile-organized .badges{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:3px!important;overflow:visible!important;height:auto!important;max-height:none!important;padding:6px 0!important}
html.nexo-identity #profile-dialog.profile-organized .badge.nexo-art-badge{width:26px!important;height:28px!important;min-width:26px!important;min-height:28px!important;padding:3px!important}
html.nexo-identity .badge.nexo-art-badge:focus-visible{outline:2px solid #9ad5ff!important;outline-offset:3px!important}

@media(pointer:coarse){html.nexo-identity #profile-dialog.profile-organized .badge.nexo-art-badge{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}}
/* Keep desktop artwork and spacing compact; phones retain comfortable tap areas. */
html.nexo-ux.nexo-identity #profile-dialog.profile-organized .badge.nexo-art-badge{width:26px!important;height:28px!important;min-width:26px!important;min-height:28px!important;padding:3px!important}
html.nexo-ux.nexo-identity #profile-dialog.profile-organized #card-badges{gap:3px!important}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){html.nexo-ux.nexo-identity #profile-dialog.profile-organized .badge.nexo-art-badge{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}}

/* Keep detailed artwork readable inside a centered group of touch targets. */
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized #card-badges{width:fit-content!important;max-width:100%!important;margin:8px auto!important;justify-content:center!important;gap:4px!important;box-sizing:border-box!important}
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized #card-badges .nexo-badge-art{width:32px!important;height:32px!important}
 html.nexo-ux.nexo-identity #profile-dialog.profile-organized #card-badges .nexo-vip-word{font-size:8px!important}
}
