.leyra-profile-header { overflow: hidden; }
.leyra-profile-banner { position: relative; height: clamp(110px,22vw,235px); background: var(--raised); }
.leyra-profile-banner .user-cover-art { z-index: auto; }
.leyra-profile-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem; }
.leyra-profile-identity .user-profile-avatar { width: clamp(62px,10vw,96px); }
.leyra-profile-identity .user-identity { min-width: 0; overflow-wrap: anywhere; }
.leyra-profile-identity h1 { font-size: clamp(1.65rem,5vw,2.7rem); text-shadow: none; }
.leyra-profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.leyra-profile-badges .user-role { margin: 0; }
.leyra-profile-verified { color: var(--accent); }
.leyra-profile-identity .leyra-member-since { color: var(--muted); font-size: .88rem; }
.leyra-profile-header > .user-bio, .leyra-profile-header > #user-share-status:not(:empty) { padding: 0 1rem .7rem; }
.leyra-profile-header > #user-share-status:empty { display: none; }
.user-build-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; }
.user-build-grid > li { min-width: 0; }
.user-build-entry-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .45rem; }
.user-build-entry-heading h3 { font-size: .95rem; overflow-wrap: anywhere; }
.user-build-entry .build-card-frame { width: 100%; }
.user-featured-team ul { list-style: none; padding: 0; margin: .55rem 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem; max-width: 440px; }
.user-featured-team li a { display: grid; justify-items: center; gap: .3rem; padding: .3rem; text-align: center; overflow-wrap: anywhere; font-size: .8rem; }
.team-portrait { width: min(100%,52px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--raised); }
.profile-settings-sections { display: grid; gap: .75rem; }
.profile-showcase-settings > * + * { margin-top: .55rem; }
.profile-showcase-settings select { max-width: 100%; min-width: 0; min-height: 44px; padding: .4rem; border-radius: 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.profile-edit-order { margin: .6rem 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.profile-edit-order:empty { display: none; }
.profile-edit-order li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .35rem .5rem; background: var(--raised); border-radius: 6px; }
.artifact-analysis { margin-block: .75rem; }
.artifact-analysis > summary { cursor: pointer; font-weight: 650; }
.artifact-analysis [data-analysis-content]:not(:empty) { margin-top: .65rem; }
.artifact-analysis-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.artifact-analysis-heading small { display: block; color: var(--muted); }
.artifact-analysis-hint { margin-block: .6rem; padding: .45rem .6rem; border-inline-start: 2px solid var(--accent); background: var(--raised); }
.artifact-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: .5rem; }
.artifact-analysis-grid article { min-width: 0; border-top: 1px solid var(--line); padding: .4rem 0; }
.artifact-analysis-grid h3 { font-size: .97rem; }
.artifact-analysis-grid h3 small { color: var(--accent); }
.artifact-analysis-grid dl > div { display: flex; justify-content: space-between; gap: .35rem; font-size: .83rem; }
.artifact-analysis-grid dt { color: var(--muted); overflow-wrap: anywhere; }
.artifact-analysis-grid dd { white-space: nowrap; }
@media (max-width: 560px) {
  .leyra-profile-identity > .actions { width: 100%; }
  .user-featured-team li a { padding-inline: 0; }
}
.leyra-genshin-accounts { grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); max-width: 760px; }
.leyra-genshin-accounts .user-account-card { gap: .75rem; min-height: 96px; padding: .65rem .75rem; border: 1px solid var(--line); }
.leyra-genshin-accounts .user-account-card:hover { border-color: var(--accent); }
.leyra-genshin-accounts .user-account-namecard { opacity: .25; object-position: center right; }
.leyra-genshin-accounts .avatar { width: 44px; height: 44px; flex: 0 0 44px; }
.leyra-genshin-details { min-width: 0; }
.leyra-genshin-name { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; overflow-wrap: anywhere; }
.leyra-genshin-name span { padding: .05rem .35rem; border: 1px solid var(--line); border-radius: 4px; background: var(--raised); color: var(--accent); font-size: .73rem; }
.leyra-genshin-meta { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin: .25rem 0 0; font-size: .83rem; }
.leyra-genshin-meta dt { color: var(--muted); font-size: .7rem; }
.leyra-genshin-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
