/* XD layout: profile pages. Shared by every app; colors only through var(--theme-*, <current default>) so apps without the theme keys keep their look. */
/* V3 profile (v3/profile.html), XD profile_activity_tab: 950px column, 176px avatar, stats row, two streak boxes, action rows,
   badge tiles, feed cards. Surfaces: --theme-tinted-more-card (rows, streak boxes), --theme-more-card (cards). */
.xp{max-width:950px;margin:0 auto;padding:32px 16px 48px;color:var(--theme-text,inherit)}
.xp h1,.xp h2{color:var(--theme-text,inherit);margin:0}
.xp-header{display:flex;gap:40px;align-items:flex-start}
.xp-avatar{width:176px;height:176px;border-radius:50%;object-fit:cover;flex:none;background:var(--theme-tinted-more-card,#eee)}
.xp-identity{flex:1;min-width:0;display:flex;flex-direction:column;gap:20px}
.xp-name-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.xp-name-row h1{font-size:30px;font-weight:700;line-height:1.2}
.xp-handle{font-size:22px;margin:2px 0 0;color:var(--theme-text,inherit)}
.xp-links{display:flex;gap:14px;align-items:center;flex:none}
.xp-links a{font-size:13px;font-weight:600;text-decoration:none}
.xp-edit{color:var(--theme-primary-button,#3EB2FF)}
.xp-link{color:var(--theme-secondary-text,inherit)}
.xp-counts{display:flex;gap:8px;justify-content:flex-start;flex-wrap:wrap}
.xp-count{display:flex;flex-direction:column;align-items:center;min-width:96px;padding:4px 8px;color:var(--theme-text,inherit)!important;text-decoration:none}
.xp-count strong{font-size:26px;font-weight:600;line-height:1.2}
.xp-count span{font-size:16px}
.xp-streaks{display:flex;gap:22px;flex-wrap:wrap}
.xp-streak{display:flex;flex-direction:column;align-items:center;justify-content:center;width:228px;max-width:100%;height:64px;border-radius:10px;background:var(--theme-tinted-more-card,#f1f1f4)}
.xp-streak strong{font-size:18px;font-weight:600;line-height:1.2}
.xp-streak span{font-size:13px}
.xp-about{margin:24px 0 0;font-size:17px;color:var(--theme-secondary-text,inherit)}
.xp-section{margin-top:36px}
.xp-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.xp-head h2,.xp-head h1{font-size:30px;font-weight:700}
.xp-see-all{font-size:14px;color:var(--theme-text,inherit)!important;text-decoration:none;white-space:nowrap}
.xp-actions{display:flex;flex-direction:column;gap:8px}
.xp-action{display:flex;align-items:center;gap:20px;min-height:64px;padding:0 24px;border-radius:4px;background:var(--theme-tinted-more-card,#f1f1f4)}
.xp-action-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;color:var(--theme-tinted-banner,currentColor)}
.xp-action-icon img{width:28px;height:28px;object-fit:contain}
.xp-action-title{flex:1;font-size:21px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xp-action-count{font-size:21px;font-weight:700}
.xp-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,186px));gap:32px}
.xp-badge{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.xp-badge-art{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden}
.xp-badge-art img{width:100%;height:100%;object-fit:contain}
.xp-badge strong{font-size:13px;font-weight:600}
.xp-badge small{font-size:12px;color:var(--theme-secondary-text,inherit)}
.xp-feed{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important;gap:24px}
.xp-empty{margin:4px 0;color:var(--theme-secondary-text,inherit)}
@media (max-width:767px){
  .xp{padding-top:20px}
  .xp-header{flex-direction:column;align-items:center;gap:16px;text-align:center}
  .xp-avatar{width:120px;height:120px}
  .xp-name-row{flex-direction:column;align-items:center}
  .xp-counts{justify-content:space-around}
  .xp-count{min-width:0;flex:1}
  .xp-count strong{font-size:22px}.xp-count span{font-size:13px}
  .xp-streaks{justify-content:center;gap:12px}.xp-streak{width:calc(50% - 6px)}
  .xp-head h2,.xp-head h1{font-size:22px}
  .xp-action{padding:0 14px;gap:12px}.xp-action-title,.xp-action-count{font-size:16px}
  .xp-badges{grid-template-columns:repeat(3,1fr);gap:12px}
}
.xp-badges .xp-empty,.xp-feed .xp-empty{grid-column:1/-1}
.xp-edit,.xp-links .xp-edit{color:var(--theme-primary-button,#3EB2FF)!important}
