/* Local profile redesign. Scoped to the profile so other pages retain their layout. */
.content-wrap:has(.profile-card){grid-template-columns:minmax(0,1fr);max-width:1120px}
.content-wrap:has(.profile-card)>.right-rail{display:none}
.profile-card{background:var(--surface);color:var(--ink);border:1px solid var(--border);padding:24px 28px;gap:20px}
.profile-card .avatar.large{width:60px;height:60px;font-size:34px;border-radius:18px}
.profile-card h1{font-size:26px}
.profile-card .profile-head p{opacity:1;color:var(--muted);margin-top:6px}
.profile-edit{color:var(--accent);border-color:var(--border);min-height:44px;font-size:13px}
.profile-rank{display:none}
.profile-card .profile-stats{border-top:1px solid var(--border);padding-top:18px;gap:20px}
.profile-card .profile-stats strong{font-size:24px;color:var(--ink)}
.profile-card .profile-stats span{color:var(--muted);opacity:1}
.profile-guest{margin:12px 0 24px;padding:12px 16px;background:var(--soft);border-radius:10px;font-size:13px;line-height:1.6}
.profile-tabs{gap:20px;margin:24px 0;overflow:auto}
.profile-tabs button{padding:0 4px;white-space:nowrap;font-weight:600}
.profile-tabs button.active{color:var(--accent);border-bottom-width:3px}
.profile-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:4px}
.profile-next{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 32px;border-radius:18px;background:var(--accent);color:var(--on-accent);margin-bottom:20px}
.profile-next .tiny-label{color:inherit;opacity:.75;font-size:11px;letter-spacing:.12em}
.profile-next h2{font-size:27px;line-height:1.25;margin:10px 0}
.profile-next p{font-size:14px;line-height:1.7;max-width:490px;opacity:.85}
.profile-next .button{margin-top:22px;background:var(--surface);color:var(--accent);border:1px solid transparent;min-height:46px}
.profile-next-note{flex:none;min-width:130px;padding-left:24px;border-left:1px solid currentColor}
.profile-next-note>span{font-size:52px;line-height:1;font-weight:600;opacity:.65}
.profile-next-note p{font-size:12px;white-space:pre-line;margin:12px 0 0}
.profile-path .pet-card{padding:18px 24px;margin-bottom:20px}
.profile-path .pet-art{width:84px;min-width:84px}
.profile-path .pet-touch{width:80px;height:80px}
.profile-path .pet-phrase{font-size:13px;line-height:1.6}
.profile-path .settings-panel,.profile-achievements .settings-panel{padding:24px;border-radius:16px}
.profile-path .badge-grid .badge{padding:20px 16px;text-align:left;background:var(--bg);opacity:1;filter:none;border:1px solid var(--border)}
.profile-path .badge-grid .badge>span{width:38px;height:38px;margin:0 0 12px}
.profile-path .badge-grid .badge>span svg{width:20px;height:20px}
.profile-path .badge-grid .badge strong{font-size:14px}
.profile-path .badge-grid .badge p{font-size:13px;line-height:1.6;min-height:0}
.profile-path .badge-grid .badge small{display:none}
.profile-all-achievements{margin-top:-4px;margin-bottom:28px;min-height:44px}
.profile-settings{max-width:850px}
.profile-settings .settings-panel{padding:26px;border-radius:16px;margin-bottom:16px}
.profile-settings .setting{min-height:76px}
.profile-settings .setting p{line-height:1.6}
.profile-settings .switch{flex-shrink:0}
.profile-reset .data-danger{border-top:0;padding-top:10px;margin-top:8px}
.profile-reset{border-style:dashed}
.profile-reset .danger-button{min-height:44px}
@media(max-width:760px){
 .profile-card{padding:20px}.profile-head{flex-wrap:wrap;gap:12px}
 .profile-card h1{font-size:22px}.profile-head>div{flex-basis:calc(100% - 80px)}
 .profile-edit{width:auto;font-size:12px;padding:9px 12px;margin-left:72px}
 .profile-card .profile-stats{gap:12px}.profile-card .profile-stats strong{font-size:23px}
 .profile-card .profile-stats span{font-size:11px;line-height:1.5}
 .profile-tabs{gap:18px}.profile-tabs button{font-size:13px}
 .profile-next{padding:24px;gap:16px}.profile-next h2{font-size:24px}.profile-next-note{display:none}
 .profile-next .button{width:100%}.profile-path .badge-grid{grid-template-columns:1fr}
 .profile-path .badge-grid .badge{display:grid;grid-template-columns:40px 1fr;column-gap:12px;padding:16px}
 .profile-path .badge-grid .badge>span{grid-row:1/3;margin:0}.profile-path .badge-grid .badge p{margin:4px 0 0}
 .profile-path .pet-card{padding:18px;gap:14px}.profile-settings .settings-panel{padding:20px}
 .profile-settings .data-actions{flex-wrap:wrap}.profile-settings .data-actions>.button{flex:1 1 180px}
}
.profile-tabs{overflow-x:auto;overflow-y:hidden}.profile-tabs button{margin-bottom:0}
