/* Profile-only presentation. Existing account and progression APIs remain authoritative. */
.profile-studio{--text2:#a4acbd;--text3:#8791a5;--r:20px;--rsm:12px}
.profile-studio .wrap{max-width:1280px;padding:32px 32px 56px}
.profile-studio .fu{opacity:1;transform:none;animation:none}
.profile-studio .profile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
.profile-eyebrow{font:500 9px/1.5 var(--m);letter-spacing:.17em;color:var(--text3)}
.profile-page-heading h1{font-size:23px;font-weight:650;letter-spacing:-.04em;margin:6px 0 0;line-height:1.3}
.profile-page-heading::after{display:none}
.profile-tabs{scroll-margin-top:82px}
#achievementGrid,#prestigePathGrid{scroll-margin-top:146px}
.private-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text2);white-space:nowrap}
.private-label svg{color:var(--accent-h)}
.profile-masthead{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);border:1px solid var(--border2);border-radius:24px;overflow:hidden;background:radial-gradient(ellipse at 100% 0,rgba(47,123,255,.13),transparent 65%),var(--panel)}
.profile-masthead .identity-card{position:static;border:0;border-right:1px solid var(--border);border-radius:0;background:none}
.profile-masthead .identity-body{padding:28px 32px;margin:0}
.identity-intro{display:flex;align-items:center;gap:19px;min-width:0}
.identity-title{min-width:0}
.profile-studio .avatar{width:76px;height:76px;flex-shrink:0;border-radius:23px;margin:0;border:1px solid rgba(255,255,255,.16);font-size:27px;box-shadow:inset 0 1px 1px rgba(255,255,255,.12)}
.profile-studio .identity-name{font-size:clamp(24px,3vw,33px);line-height:1.15;letter-spacing:-.055em;font-weight:750;margin:7px 0;overflow-wrap:anywhere}
.profile-studio .profile-handle{font-size:11px;color:var(--text2)}
.profile-studio .profile-rank-line{margin-top:20px;gap:8px}
.profile-studio .rank-pill,.profile-studio .member-mode{padding:5px 10px;font-size:9px}
.profile-studio .identity-email{margin-top:12px;font:400 11px/1.6 var(--f);color:var(--text3);overflow-wrap:anywhere;word-break:normal}
.identity-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;border-top:1px solid var(--border);margin-top:20px;padding-top:18px}
.profile-studio .identity-stat{justify-content:flex-start;flex-wrap:wrap;column-gap:8px;row-gap:5px;padding:0}
.profile-studio .identity-stat-label{font-size:10px;flex-basis:100%;color:var(--text3)}
.profile-studio .identity-stat-val{font:500 11px/1.5 var(--f);text-align:left;color:var(--text)}
.identity-facts .status-pill{font-size:8px;padding:2px 6px}.identity-facts .pbadge{font-size:9px;padding:3px 7px}
.identity-actions{display:flex;gap:9px;margin-top:24px;flex-wrap:wrap}
.identity-details{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}
.identity-details summary{font-size:11px;min-height:32px;line-height:2.8;color:var(--text2);cursor:pointer}
.identity-details .identity-facts{border:0;margin-top:8px;padding-top:0;padding-bottom:8px}
.identity-details+.identity-actions{margin-top:12px}
.profile-studio .btn{min-height:42px;font-size:12px;padding:10px 15px;border-radius:9px}
.identity-actions .btn-primary{box-shadow:0 4px 16px rgba(47,123,255,.17)}
.profile-masthead .progress-card{border:0;border-radius:0;background:none;display:flex;align-items:center}
.profile-masthead .progress-card::after{display:none}
.profile-masthead .progress-card .card-body{width:100%;padding:28px 30px}
.profile-masthead .progress-layout{grid-template-columns:112px minmax(0,1fr);gap:20px 18px}
.profile-masthead .prestige-emblem.current{width:112px;height:112px;border-radius:18px}
.profile-masthead .progress-emblem-label{font-size:8px;color:var(--text2)}
.profile-masthead .rank-name{font-size:29px;font-weight:750;line-height:1.15;letter-spacing:-.055em}
.profile-masthead .rank-kicker{font-size:9px;margin-bottom:8px;letter-spacing:.17em}
.profile-masthead .rank-level{font:400 10px/1.6 var(--m);margin-top:7px;color:var(--text2)}
.profile-masthead .xp-row{display:flex;align-items:start;flex-direction:column;gap:4px;margin-top:15px;font-size:9px;line-height:1.6}
.profile-masthead .xp-row strong{font-size:10px}
.profile-masthead .xp-track{height:6px;background:var(--panel3)}
.profile-masthead .xp-fill{background:linear-gradient(90deg,#327eff,#8db8ff);box-shadow:none}
.profile-masthead .progress-note{font-size:10px;line-height:1.6;color:var(--text3);margin-top:10px}
.profile-masthead .progress-stats{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--border);padding-top:18px}
.profile-masthead .progress-stat{background:none;border:0;border-radius:0;padding:0 12px;border-right:1px solid var(--border)}
.profile-masthead .progress-stat:first-child{padding-left:0}.profile-masthead .progress-stat:last-child{border-right:0;padding-right:0}
.profile-masthead .progress-stat .n{font-size:18px;font-weight:500;line-height:1.4}
.profile-masthead .progress-stat .l{font-size:7px;letter-spacing:.07em;color:var(--text3);margin-top:6px}
.profile-studio #profAvatar.legend-avatar{border-color:#e4bc68;box-shadow:0 0 0 4px rgba(228,188,104,.12),0 0 25px rgba(228,188,104,.12)}
.profile-tabs{display:flex;gap:26px;margin:24px 0;border-bottom:1px solid var(--border2);min-width:0;position:sticky;top:68px;z-index:100;background:var(--bg)}
.prestige-explainer{margin-top:10px;font-size:10px;color:var(--text2)}
.prestige-explainer summary{cursor:pointer;min-height:28px;line-height:2.4}
.prestige-explainer[open] summary{color:var(--accent-h)}
.profile-tabs a{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;padding:15px 3px 17px;min-height:48px;color:var(--text2);font-size:12px;font-weight:650;text-decoration:none;border-radius:4px;white-space:nowrap}
.profile-tabs a:hover{color:var(--text)}
.profile-tabs a[aria-selected="true"]{color:var(--text)}
.profile-tabs a[aria-selected="true"]::after{content:'';position:absolute;height:2px;bottom:-1px;left:0;right:0;background:var(--accent-h);border-radius:2px}
.tab-count{font:500 9px var(--m);color:var(--text2);background:var(--panel3);padding:3px 6px;border-radius:5px}
.profile-section{display:grid;gap:22px;min-width:0;scroll-margin-top:146px}
.profile-studio [hidden]{display:none!important}
.profile-studio .card{border-color:var(--border);box-shadow:none}
.profile-studio .card-h{padding:22px 24px;border-bottom:0;align-items:start}
.profile-studio .card-h+.card-body{padding-top:0}
.profile-studio .card-body{padding:24px}
.profile-studio .card-t{font-size:16px;font-weight:650;letter-spacing:-.025em;line-height:1.45}
.profile-studio .card-t .ic{width:24px;height:24px;font-size:13px;background:none;border:0}
.profile-studio .card-sub{font-size:11px;line-height:1.65;color:var(--text3);margin-top:6px}
.profile-studio .field-edit{min-height:34px;float:none;margin:0;padding:7px 11px;font-size:11px;background:var(--panel2);border-color:var(--border2);color:var(--text2)}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;min-width:0;align-items:stretch}
.profile-studio .showcase-grid{grid-template-columns:minmax(0,1fr);gap:20px}
.profile-studio .showcase-headline{font-size:23px;letter-spacing:-.035em;line-height:1.35;overflow-wrap:anywhere}
.profile-studio .showcase-bio{font-size:12px;line-height:1.85;overflow-wrap:anywhere}
.profile-studio .showcase-empty{font-style:normal;font-weight:400;color:var(--text2)}
.profile-studio .showcase-meta{display:flex;flex-direction:row;flex-wrap:wrap;gap:12px 20px;border-top:1px solid var(--border);padding-top:18px}
.profile-studio .showcase-meta-row{display:flex;align-items:start;flex-direction:column;gap:5px;min-width:0;padding:0;background:none;border:0;border-radius:0;font-size:10px}
.profile-studio .showcase-meta-row span:last-child{font-family:var(--f);text-align:left;overflow-wrap:anywhere}
.profile-studio .interest-tag{font-size:10px;padding:4px 9px}
.profile-studio .profile-privacy-note{font-size:10px;line-height:1.7;margin-top:20px;background:none;border:0;border-top:1px solid var(--border);padding:16px 0 0;border-radius:0}
.profile-studio .legend-reward{grid-template-columns:1fr;grid-template-rows:180px auto;align-items:start;border-color:rgba(230,190,101,.22);background:radial-gradient(ellipse at 50% 0,rgba(48,100,164,.15),transparent 65%),#0c1019}
.profile-studio .legend-reward-art{padding:0;align-self:stretch;overflow:hidden}
.profile-studio .legend-reward-art img{width:180px;max-width:100%;margin:0;opacity:1}
.profile-studio .legend-seal{left:24px;bottom:5px;width:28px;height:28px;font-size:11px}
.profile-studio .legend-reward-copy{padding:10px 24px 24px}
.profile-studio .legend-reward h2{font-size:27px;line-height:1.12;margin:10px 0}
.profile-studio .legend-reward h2 br{display:contents}
.profile-studio .legend-reward h2 br::after{content:' '}
.profile-studio .legend-reward h2 .legend-diamond{font-size:16px;margin-left:8px}
.profile-studio .legend-reward-copy>p{font-size:11px;margin-bottom:13px}
.profile-studio .legend-reward-copy>p br{display:none}
.profile-studio .legend-reward-status{padding:6px 9px;font-size:9px}
.profile-studio .legend-reward-progress{font-size:10px;margin-top:9px}
.profile-studio .legend-reward-link{margin-top:10px;min-height:32px;line-height:2.5;font-size:11px}
.profile-studio .legend-reward-caption{margin-top:2px;font-size:9px}
.profile-studio .legend-reward.unavailable{display:grid;place-items:center;min-height:240px;grid-template-rows:auto;padding:24px}
.profile-next-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.profile-next-item{min-width:0;padding:18px;border:1px solid var(--border2);border-radius:12px;background:var(--panel2)}
.profile-next-item header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:10px}
.profile-next-item h3{font-size:12px;font-weight:650;color:var(--text)}
.profile-next-item p{font-size:11px;line-height:1.7;color:var(--text2);overflow-wrap:anywhere}
.profile-next-points{font:500 10px var(--m);white-space:nowrap;color:var(--accent-h)}
.profile-text-link{display:inline-flex;align-items:center;gap:9px;font-size:11px;min-height:32px;color:var(--accent-h);text-decoration:none}
.profile-text-link:hover{text-decoration:underline}
.profile-state-note{color:var(--text2);font-size:12px;line-height:1.7}
.profile-studio .collectible-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.profile-studio .collectible{padding:22px;border-radius:16px}
.profile-studio .collectible-art{width:100px;height:100px;margin:24px auto}
.profile-studio .collectible h3{font-size:16px;font-weight:650}
.profile-studio .collectible>p{font-size:12px;min-height:58px}
.profile-studio .collectible-details summary{font-size:11px;min-height:36px;line-height:2.8}
.profile-studio .collection-filters button{min-height:40px}
.profile-studio .collection-summary{padding:6px 10px;border-radius:8px;background:var(--panel2);border:1px solid var(--border2)}
.profile-studio .prestige-path-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.profile-studio .prestige-tier{padding:24px 16px 16px;grid-template-columns:80px minmax(0,1fr);gap:14px}
.profile-studio .prestige-tier-state{font-size:8px;background:var(--panel3);color:var(--text2)}
.profile-studio .prestige-tier-name{font-size:15px;font-weight:650}
.profile-studio .prestige-tier-desc{font-size:11px;line-height:1.6;color:var(--text2)}
.profile-studio .prestige-tier-xp{font-size:10px;margin-top:8px;color:var(--text2)}
.profile-studio .prestige-tier.locked{opacity:1;filter:none}
.profile-studio .prestige-tier.locked .prestige-emblem{filter:saturate(.3);opacity:.6}
.profile-studio .prestige-path-note{font-size:11px;line-height:1.7;color:var(--text2)}
.profile-studio .prestige-path-note strong{color:var(--text2)}
.profile-studio .achievement-grid{gap:12px}
.profile-studio .achievement{padding:17px;gap:14px;align-items:start}
.profile-studio .achievement.locked{opacity:1;filter:none}
.profile-studio .achievement-title{font-size:13px;font-weight:650}
.profile-studio .achievement-desc{font-size:11px;line-height:1.65;color:var(--text2);margin-top:5px}
.section-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin:6px 0}
.section-heading h2{font-size:25px;letter-spacing:-.04em;line-height:1.3;font-weight:650;margin-top:8px}
.section-heading>p{font-size:12px;color:var(--text2);max-width:280px}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.profile-studio .field-item{border:0;border-bottom:1px solid var(--border);background:none;border-radius:0;padding:12px 0}
.profile-studio .fields-grid{gap:8px 22px}
.profile-studio .field-label{font-size:9px;color:var(--text3)}
.profile-studio .field-val{font-size:13px;overflow-wrap:anywhere;word-break:normal}
.profile-studio .bill-cell{background:var(--panel2);border-color:var(--border);padding:14px}
.profile-studio .lic-meta{overflow-wrap:anywhere}
.profile-session{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.profile-session strong{font-size:12px;font-weight:650}.profile-session p{font-size:11px;color:var(--text3);margin-top:4px}
.profile-studio .disclaimer{background:none;padding:20px 0;border:0;border-top:1px solid var(--border);border-radius:0;margin-top:28px}
.profile-studio .disclaimer p{font-size:10px;line-height:1.8}
.profile-studio .modal-box{border-radius:20px;box-shadow:0 32px 90px rgba(0,0,0,.35)}
.profile-studio .modal-box.wide{max-width:760px}
.profile-studio .modal-head{padding:22px 24px}.profile-studio .modal-body{padding:24px}.profile-studio .modal-foot{padding:18px 24px}
.profile-studio .modal-title{font-size:18px;letter-spacing:-.03em;font-weight:650}
.profile-studio .modal-close{width:36px;height:36px;font-size:16px}
.profile-studio .modal-input{min-height:44px;border-radius:9px}
.profile-studio .interest-choice input:focus-visible+span{outline:2px solid var(--accent-h);outline-offset:3px}
.profile-studio .interest-choice span{min-height:36px;padding:8px 11px}
.profile-studio :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--accent-h);outline-offset:4px}
html[data-kazpa-theme="light"] .profile-studio{--text2:#4b5b70;--text3:#586a80}
html[data-kazpa-theme="light"] .profile-masthead{background:radial-gradient(ellipse at 100% 0,rgba(47,123,255,.09),transparent 65%),var(--panel)}
html[data-kazpa-theme="light"] .profile-studio .prestige-tier.current .prestige-tier-state{color:#85570b}
@media(min-width:1000px){.account-grid>.card:last-child{grid-column:2;grid-row:2}}
@media(min-width:1100px){.identity-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:1000px){
  .profile-studio .wrap{padding:26px 24px 50px}
  .profile-masthead .identity-body{padding:25px}.profile-masthead .progress-card .card-body{padding:25px}
  .profile-masthead .progress-layout{grid-template-columns:90px minmax(0,1fr);gap:18px 10px}
  .profile-masthead .prestige-emblem.current{width:90px;height:90px}
  .profile-masthead .progress-stat{padding:0 8px}.profile-masthead .progress-stat .n{font-size:15px}
  .profile-studio .prestige-path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-studio .collectible-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .profile-masthead{grid-template-columns:1fr;border-radius:20px}
  .profile-masthead .identity-card{border-right:0;border-bottom:1px solid var(--border)}
  .profile-masthead .identity-body{padding:24px}
  .identity-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .profile-masthead .progress-layout{grid-template-columns:100px minmax(0,1fr);gap:18px}
  .profile-masthead .prestige-emblem.current{width:100px;height:100px}
  .profile-masthead .rank-name,.profile-masthead .rank-kicker,.profile-masthead .rank-level{text-align:left}
  .profile-masthead .xp-row{flex-direction:row;flex-wrap:wrap;justify-content:space-between}
  .profile-masthead .progress-note{grid-column:1/-1}
  .overview-grid,.account-grid{grid-template-columns:1fr}
  .profile-studio .legend-reward{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);grid-template-rows:auto;align-items:center}
  .profile-studio .legend-reward-art{align-self:center;overflow:visible}.profile-studio .legend-reward-art img{width:240px;margin:0}
  .profile-studio .legend-reward-copy{padding:24px 20px 24px 0}
  .profile-next-grid{grid-template-columns:1fr}
  .section-heading{align-items:start;flex-direction:column;gap:10px}
  .section-heading>p{max-width:none}
}
@media(max-width:480px){
  .profile-studio .wrap{padding:22px 16px 40px;overflow-x:visible}
  .profile-studio .profile-page-heading{margin-bottom:20px;align-items:start;gap:10px;flex-direction:column}
  .profile-page-heading h1{font-size:21px}.private-label{font-size:10px}
  .profile-masthead .identity-body{padding:23px 20px}
  .profile-studio .identity-name{font-size:28px}.profile-studio .avatar{width:64px;height:64px;border-radius:20px;font-size:23px}
  .identity-intro{gap:15px}.identity-facts{grid-template-columns:1fr 1fr;gap:12px 20px}
  .identity-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.identity-actions .btn{font-size:11px;padding:10px 11px}
  .profile-masthead .progress-card .card-body{padding:22px 20px}
  .profile-masthead .progress-layout{grid-template-columns:75px minmax(0,1fr);gap:18px 13px}
  .profile-masthead .prestige-emblem.current{width:75px;height:75px;border-radius:14px}
  .profile-masthead .progress-emblem-label{font-size:7px}.profile-masthead .rank-name{font-size:25px}
  .profile-masthead .rank-level{font-size:9px}.profile-masthead .rank-kicker{font-size:8px}
  .profile-masthead .xp-row{flex-direction:column;gap:3px;margin-top:12px;font-size:8px}
  .profile-masthead .progress-note{font-size:9px;line-height:1.6}
  .profile-masthead .progress-stat .n{font-size:14px}.profile-masthead .progress-stat .l{font-size:6.5px;letter-spacing:0}
  .profile-tabs{justify-content:space-between;gap:2px;margin:16px 0 20px}
  .profile-tabs a{font-size:11px;gap:4px;padding:14px 2px}.tab-count{font-size:8px;padding:2px 4px}
  .profile-studio .card-h{padding:20px}.profile-studio .card-body{padding:20px}
  .profile-studio .card-t{font-size:15px}.profile-studio .card-h+.card-body{padding-top:0}
  .profile-studio .showcase-headline{font-size:22px}
  .profile-studio .legend-reward{grid-template-columns:minmax(0,.65fr) minmax(0,1fr)}
  .profile-studio .legend-reward h2{font-size:23px}.profile-studio .legend-reward-copy{padding:22px 18px 22px 0}
  .profile-studio .legend-reward-art img{width:175px;max-width:130%;margin-left:0}
  .profile-studio .legend-reward .collectible-rarity{font-size:7px;letter-spacing:.1em}
  .profile-studio .legend-reward-status{font-size:8px}.profile-studio .legend-reward-copy>p{font-size:10px}
  .profile-studio .legend-reward-progress{font-size:9px}.profile-studio .legend-seal{left:16px;bottom:0}
  .profile-studio .collectible-grid,.profile-studio .prestige-path-grid,.profile-studio .achievement-grid{grid-template-columns:1fr}
  .profile-studio .collectible{padding:20px}.profile-studio .collectible-art{margin:18px auto;width:88px;height:88px}
  .profile-studio .collectible>p{min-height:0}.profile-studio .collectible-details summary{font-size:12px}
  .profile-studio .collection-filters button{padding:7px 12px}
  .profile-studio .prestige-tier{grid-template-columns:80px minmax(0,1fr)}
  .profile-studio .achievement{padding:14px;gap:10px;grid-template-columns:32px minmax(0,1fr) auto}
  .profile-studio .achievement-icon{width:32px;height:32px;border-radius:10px}
  .profile-session{padding:20px;align-items:start;flex-direction:column}.profile-session .btn{width:100%}
  .profile-studio .modal-body{padding:20px}.profile-studio .modal-head,.profile-studio .modal-foot{padding:18px 20px}
}
@media(prefers-reduced-motion:reduce){.profile-studio,.profile-studio *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
