.profile-v3{min-height:100vh}
.profile-home-shell{grid-template-columns:var(--rail) minmax(0,744px) var(--right);justify-content:center}
.profile-shell{min-width:0;padding:10px 0 100px}
.profile-hero{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 0 20px;border-bottom:1px solid var(--border)}
.profile-avatar{width:72px;height:72px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,var(--accent-hover),var(--accent));color:var(--accent-ink);font-size:30px;font-weight:850;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}.profile-avatar.avatar-variant-official img{width:80%;height:80%;object-fit:contain}.profile-avatar>span{font-size:30px;font-weight:850}
.profile-avatar:is(.avatar-variant-classic){background:var(--surface-2);border:1px solid var(--border);box-shadow:none}
.profile-avatar.avatar-variant-aura{border-radius:50%;border:1px solid color-mix(in srgb,var(--accent) 55%,var(--border));background:radial-gradient(circle,color-mix(in srgb,var(--accent) 24%,var(--surface-2)),var(--surface) 70%);box-shadow:inset 0 0 24px color-mix(in srgb,var(--accent) 18%,transparent)}
.profile-avatar.avatar-variant-constellation{border:1px solid color-mix(in srgb,var(--accent-blue) 60%,var(--border));background:radial-gradient(circle at 22% 24%,#F2F0EB 0 1px,transparent 2px),radial-gradient(circle at 76% 30%,#B9C8D3 0 1px,transparent 2px),radial-gradient(circle at 68% 78%,#F2F0EB 0 1px,transparent 2px),linear-gradient(145deg,#17212C,#0B1016);box-shadow:none}
.profile-avatar.avatar-variant-neon{border:1px solid color-mix(in srgb,var(--accent-blue) 70%,var(--accent));background:linear-gradient(145deg,color-mix(in srgb,var(--accent-blue) 22%,#071018),color-mix(in srgb,var(--accent) 18%,#090b12));box-shadow:inset 0 0 22px color-mix(in srgb,var(--accent-blue) 24%,transparent),0 0 18px color-mix(in srgb,var(--accent) 14%,transparent)}
.profile-avatar.avatar-variant-neon img{filter:saturate(1.2) contrast(1.08) drop-shadow(0 0 6px color-mix(in srgb,var(--accent-blue) 58%,transparent))}
.profile-avatar.avatar-variant-eclipse{border-radius:50%;border:1px solid color-mix(in srgb,var(--accent) 46%,var(--border));background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--surface) 82%,#050608) 0 42%,transparent 43%),conic-gradient(from 210deg,color-mix(in srgb,var(--accent) 58%,#0b0d12),color-mix(in srgb,var(--accent-blue) 44%,#090b10),color-mix(in srgb,var(--accent) 58%,#0b0d12));box-shadow:inset 0 0 0 5px color-mix(in srgb,var(--surface) 72%,transparent)}
.profile-avatar.avatar-variant-eclipse img{width:68%;height:68%;filter:brightness(.92) saturate(.9)}
.profile-identity{min-width:0}
.profile-handle{display:block;color:var(--muted);font-size:13px;font-weight:700}
.profile-identity h1{margin:3px 0 7px;font-size:32px;line-height:1.08;letter-spacing:-.8px}
.profile-bio{max-width:620px;margin:0;color:var(--text-secondary,var(--muted));white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.profile-follow form{margin:0}
.profile-actions .primary,.profile-actions .account-button{min-height:40px}
.profile-overflow{position:relative}
.profile-overflow summary{list-style:none;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--muted);cursor:pointer}
.profile-overflow summary::-webkit-details-marker{display:none}
.profile-overflow summary:hover{background:var(--surface-2);color:var(--text)}
.profile-overflow summary svg{width:19px;height:19px;fill:currentColor}
.profile-overflow-menu{position:absolute;right:0;top:47px;z-index:20;width:190px;padding:7px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);box-shadow:var(--shadow-pop,0 18px 44px rgba(0,0,0,.34))}
.profile-overflow-menu form,.profile-overflow-menu button{width:100%;margin:0}
.profile-overflow-menu .danger-button,.profile-overflow-menu .account-button{justify-content:flex-start;min-height:40px}

.profile-stats-v3{display:flex;align-items:stretch;gap:1px;margin:0 0 24px;border-bottom:1px solid var(--border)}
.profile-stat{min-width:0;display:flex;align-items:center;gap:9px;padding:15px 18px;color:var(--text)}
.profile-stat+.profile-stat{border-left:1px solid var(--border)}
.profile-stat>span{display:flex;flex-direction:column}
.profile-stat strong{font-size:17px;line-height:1.15;letter-spacing:-.25px}
.profile-stat small{margin-top:2px;color:var(--muted);font-size:11px}
.profile-muxi-mark{width:22px;height:22px;flex:0 0 22px;color:var(--text-soft)}
.profile-muxi-mark svg{width:22px;height:22px}
a.profile-stat:hover{background:var(--surface)}

.profile-activity{min-width:0}
.profile-tabs{position:sticky;top:var(--shell-header-height);z-index:6;display:flex;gap:2px;padding:6px 0;margin:0 0 18px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(14px)}
.profile-tabs button{min-height:42px;padding:9px 14px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.profile-tabs button:hover{background:var(--surface);color:var(--text)}
.profile-tabs button[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}
.profile-tabs-ready .profile-panel-view:not(.is-active){display:none}
.profile-panel-view{min-width:0;animation:profile-panel-in .16s ease}
@keyframes profile-panel-in{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}
.profile-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:2px 2px 12px}
.profile-section-head h2{margin:0;font-size:20px;letter-spacing:-.35px}
.profile-section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}
.profile-count{min-width:32px;height:28px;display:grid;place-items:center;padding:0 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:11px;font-weight:800}
.profile-content-list{display:grid;border-top:1px solid var(--border)}
.profile-content-card{display:grid;gap:6px;padding:17px 4px;border-bottom:1px solid var(--border);transition:background .15s ease,padding .15s ease}
.profile-content-card:hover{padding-left:10px;padding-right:10px;background:var(--surface)}
.profile-content-card>strong{font-size:16px;line-height:1.35}
.profile-content-meta{color:var(--accent-2);font-size:11px;font-weight:750}
.profile-content-card small{color:var(--muted);font-size:11px}
.profile-reply-card blockquote{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0;color:var(--text);font-size:14px;line-height:1.58}
.profile-empty{margin:0;padding:34px 16px;border:1px dashed var(--border);border-radius:14px;color:var(--muted);text-align:center}

.profile-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-community-grid>a{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}
.profile-community-grid>a:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:var(--surface-2)}
.profile-community-grid>a>span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.profile-community-grid strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.profile-community-grid small{color:var(--muted);font-size:11px}
.profile-community-grid b{color:var(--muted);font-size:18px}
.profile-muxi-note{display:flex;gap:13px;align-items:flex-start;margin-top:14px;padding:16px;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));border-radius:14px;background:color-mix(in srgb,var(--surface) 94%,var(--accent) 6%)}
.profile-muxi-note>.muxi-creature{flex:none;width:56px;height:56px;object-fit:contain}
.profile-muxi-note>div{min-width:0}
.profile-muxi-note strong{font-size:13px}
.profile-muxi-note p{margin:3px 0 5px;color:var(--muted);font-size:11px;line-height:1.45}
.profile-muxi-note a{color:var(--accent-2);font-size:11px;font-weight:750}

@media(max-width:880px){
  .profile-home-shell{display:block;max-width:820px;padding-inline:16px}
}
@media(max-width:680px){
  .profile-home-shell{padding:0 14px calc(92px + env(safe-area-inset-bottom))}
  .profile-shell{padding:0}
  .profile-hero{grid-template-columns:58px minmax(0,1fr);gap:13px;padding:18px 0 15px}
  .profile-avatar{width:54px;height:54px;border-radius:14px;font-size:23px}
  .profile-identity h1{font-size:24px}
  .profile-handle{font-size:12px}
  .profile-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin-top:7px;font-size:13px;line-height:1.48}
  .profile-actions{grid-column:1/-1;justify-content:stretch}
  .profile-actions>.profile-edit,.profile-follow,.profile-follow form,.profile-follow button{flex:1;width:100%}
  .profile-actions>.account-button,.profile-follow button{justify-content:center;min-height:44px}
  .profile-overflow summary{width:44px;height:44px}
  .profile-overflow-menu{right:0;top:50px}
  .profile-stats-v3{margin-bottom:12px}
  .profile-stat{flex:1;justify-content:center;padding:13px 8px;text-align:center}
  .profile-stat:first-child{justify-content:flex-start;text-align:left}
  .profile-stat strong{font-size:16px}
  .profile-stat small{font-size:11px}
  .profile-tabs{top:var(--shell-header-height);margin:0 -14px 14px;padding:6px 14px;overflow-x:auto;scrollbar-width:none}
  .profile-tabs::-webkit-scrollbar{display:none}
  .profile-tabs button{flex:1;min-width:max-content;min-height:44px;font-size:13px}
  .profile-section-head{align-items:flex-start}
  .profile-section-head p{font-size:11px}
  .profile-content-card{padding:15px 2px}
  .profile-content-card:hover{padding-left:2px;padding-right:2px}
  .profile-community-grid{grid-template-columns:1fr}
}

@media(max-width:480px){
  .profile-v3 .profile-actions:has(.profile-edit){display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
  .profile-v3 .profile-actions:has(.profile-edit)>.account-button{width:100%;min-height:44px;justify-content:center;text-align:center}
}
