/* Profile-only workspace; the chat, market and money controllers are unchanged. */
@media(min-width:761px){
 .workspace[data-view=profile] .layout{grid-template-columns:82px minmax(0,1fr)}
 .workspace[data-view=profile] .sidebar,.workspace[data-view=profile] .rightbar{display:none}
}
.profile-page{padding:30px clamp(20px,4vw,64px) 40px;scrollbar-gutter:stable;overscroll-behavior:contain}
.profile-container{max-width:1080px;margin:0 auto;color:var(--ink)}
.profile-page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.profile-page-heading .eyebrow{font-size:10px;letter-spacing:3px}
.profile-page-heading h2{font-size:30px;letter-spacing:4px;margin-top:5px;line-height:1.5}
.profile-heading-note{font:12px/1.8 var(--serif);color:var(--muted);letter-spacing:1px;padding-bottom:4px}
.profile-identity{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:linear-gradient(100deg,var(--surface) 25%,var(--wash)),var(--scene) center 40%/cover}
.profile-identity-main{display:flex;gap:22px;align-items:center;padding:28px 30px}
.profile-identity .avatar.large{width:82px;height:82px;border-radius:20px;flex:0 0 82px}
.profile-identity-copy{min-width:0;flex:1}
.profile-overline{display:block;color:var(--gold);font-size:10px;letter-spacing:2px;margin-bottom:4px}
.profile-identity-copy h3{font-size:26px;line-height:1.4;overflow-wrap:anywhere;letter-spacing:1px}
.profile-account{font-size:11px;margin-top:5px;overflow-wrap:anywhere}
.profile-identity-tags{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;color:var(--ink);font-size:11px}
.profile-identity-tags>span+span{border-left:1px solid var(--line);padding-left:16px}
.profile-identity-actions{display:grid;gap:8px;flex-shrink:0}
.profile-identity-actions button{min-height:42px;font-size:12px;padding:9px 18px}
.profile-identity-actions .profile-secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}
.profile-identity-foot{display:flex;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;padding:10px 30px;border-top:1px solid var(--line);background:var(--surface);font-size:10px;color:var(--muted)}
.profile-identity-foot>span:first-child{color:var(--gold)}
.profile-character-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 26px}
.profile-entry{display:flex;gap:14px;align-items:center;text-align:left;padding:19px 22px;min-width:0;min-height:92px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.profile-entry-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.profile-entry-icon .game-icon{width:30px;height:30px;flex-basis:30px}
.profile-entry-copy{min-width:0;flex:1}
.profile-entry-copy strong{display:block;font:18px/1.6 var(--serif);letter-spacing:1px}
.profile-entry-copy small{display:block;font-size:11px;color:var(--muted);margin-top:3px;line-height:1.7}
.profile-arrow{font:25px/1 var(--sans);color:var(--gold);flex-shrink:0}
.profile-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.profile-settings-stack{display:grid;gap:18px;min-width:0}
.profile-card{border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--surface);min-width:0}
.profile-card-heading{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.profile-section-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;font:15px var(--serif);color:var(--gold)}
.profile-card-heading h3{font-size:18px;letter-spacing:2px;line-height:1.6}
.profile-card-heading p{font-size:11px;margin-top:3px}
.profile-avatar-status{font-size:11px;line-height:1.9;padding-bottom:14px;border-bottom:1px solid var(--line)}
.profile-page .theme-grid{gap:12px;margin-top:16px}
.profile-page .theme-choice{padding:6px;border-radius:10px;min-height:124px}
.profile-page .theme-preview{height:76px}
.profile-page .theme-choice strong{font-size:14px;letter-spacing:1px;margin-top:7px}
.profile-page .theme-choice small{font-size:10px;line-height:1.7}
.profile-footnote{font-size:10px;line-height:1.9;margin-top:16px}
.profile-page .notification-settings{padding:0;margin:0;background:none;border:0;border-radius:0}
.profile-page .contact-option{padding:0 0 14px;margin:0;min-height:52px;color:var(--ink);gap:12px}
.profile-page .contact-option small{font-size:10px;line-height:1.8}
.profile-page .contact-option input{cursor:pointer;width:22px;height:22px;flex:0 0 22px}
.profile-notification-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:4px 0}
.profile-page .btn-link{min-height:40px;padding:8px 0;font-size:11px}
.profile-disclosure{font-size:11px;color:var(--muted)}
.profile-disclosure summary{cursor:pointer;min-height:40px;padding:10px 0;line-height:1.8}
.profile-disclosure p{font-size:11px;line-height:1.9;margin:4px 0 10px}
.profile-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;border:0;border-top:1px solid var(--line);border-radius:0;text-align:left;min-height:48px;padding:11px 0;font-size:12px}
.profile-page .profile-setting-row.danger{color:var(--danger)}
.profile-page .profile-setting-row.danger .profile-arrow{color:var(--danger)}
.profile-page .cache-controls{padding:0;margin:0;border:0;border-top:1px solid var(--line)}
.profile-page .cache-controls summary{font-size:12px;color:var(--ink);min-height:48px;padding:13px 0}
.profile-community-note{border-top:1px solid var(--line);margin-top:24px;color:var(--muted);font-size:10px}
.profile-community-note summary{min-height:44px;padding:13px 0;cursor:pointer}
.profile-community-note p{max-width:780px;font-size:11px;line-height:1.9;margin-bottom:10px}
.profile-page :is(button,a,summary):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.wallet-page-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.wallet-page-actions .recharge-wallet-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;margin:0;padding:10px 16px;font-size:13px;line-height:1.6;border-color:var(--line);background:var(--surface);color:var(--ink);border-radius:9px}
.wallet-page-actions .recharge-wallet-link:hover{border-color:var(--gold);background:var(--panel)}
.wallet-page-actions .game-icon{width:22px;height:22px;flex-basis:22px}
.tether-icon{display:block;width:22px;height:22px;flex:0 0 22px;object-fit:contain}
@media(max-width:900px) and (min-width:761px){.profile-heading-note{display:none}.profile-page{padding:26px}.profile-identity-main{padding:24px}.profile-card{padding:18px}.profile-entry{padding:18px 16px}.profile-entry-copy small{font-size:10px}}
@media(max-width:760px){
 .workspace .scroll-panel.profile-page{padding:20px 16px calc(24px + env(safe-area-inset-bottom))}
 .profile-page-heading{margin-bottom:16px}.profile-page-heading h2{font-size:26px;letter-spacing:3px}.profile-heading-note{display:none}
 .profile-identity{border-radius:13px}.profile-identity-main{padding:20px 18px;gap:16px;flex-wrap:wrap}
 .profile-identity .avatar.large{width:64px;height:64px;flex-basis:64px;border-radius:16px}
 .profile-identity-copy{flex:1;min-width:140px}.profile-identity-copy h3{font-size:22px}.profile-overline{font-size:9px}
 .profile-identity-tags{gap:5px 10px;font-size:10px}.profile-identity-tags>span+span{padding-left:10px}
 .profile-identity-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
 .profile-identity-actions button{min-height:44px}.profile-identity-foot{padding:11px 18px;font-size:10px;gap:5px}
 .profile-character-tools{gap:10px;margin:12px 0 20px}
 .profile-entry{position:relative;display:block;padding:15px 13px;min-height:138px;border-radius:11px}
 .profile-entry-icon{width:34px;height:34px;margin-bottom:8px}.profile-entry-icon .game-icon{width:26px;height:26px}
 .profile-entry-copy strong{font-size:16px;letter-spacing:1px}.profile-entry-copy small{font-size:10px;line-height:1.8}
 .profile-entry>.profile-arrow{position:absolute;top:22px;right:14px;font-size:22px}
 .profile-settings-grid{grid-template-columns:minmax(0,1fr);gap:16px}.profile-settings-stack{gap:16px}
 .profile-card{padding:18px;border-radius:12px}.profile-card-heading{margin-bottom:16px}.profile-card-heading h3{font-size:17px}
 .profile-page .theme-preview{height:70px}.profile-page .theme-grid{gap:10px}.profile-page .theme-choice strong{font-size:14px}
 .profile-page .contact-option{min-height:60px}.profile-page .btn-link{min-height:44px}
 .profile-community-note{margin-top:20px}.wallet-page-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .wallet-page-actions .recharge-wallet-link{padding:10px 8px;gap:6px;font-size:12px}
}
@media(max-width:360px){.workspace .scroll-panel.profile-page{padding-left:12px;padding-right:12px}.profile-identity-main{padding:16px 14px;gap:12px}.profile-card{padding:16px}.profile-entry{padding:14px 11px}.wallet-page-actions .recharge-wallet-link{padding:10px 5px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-page *{transition:none;animation:none}}
