.profile-view{
  display:grid;
  gap:14px;
}
.profile-hero,
.profile-balance-strip,
.profile-panel{
  border:1px solid var(--m1-translucent-border);
  border-radius:18px;
  background:var(--m1-translucent-surface);
  box-shadow:var(--m1-translucent-shadow);
  backdrop-filter:blur(var(--m1-translucent-blur));
}
.profile-hero{
  min-height:132px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  overflow:hidden;
  position:relative;
}
.profile-hero:before{
  content:"";
  position:absolute;
  inset:-42% -18% auto auto;
  width:360px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle,color-mix(in srgb,var(--blue) 24%,transparent),transparent 66%);
  pointer-events:none;
}
.profile-hero-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:14px;
  position:relative;
}
.profile-avatar{
  flex:0 0 74px;
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--blue) 28%,var(--line));
  border-radius:22px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--blue) 30%,var(--panel2)),var(--panel));
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 24%,transparent);
}
.profile-avatar span{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:color-mix(in srgb,var(--panel) 68%,transparent);
  color:var(--text);
  font-size:25px;
  font-weight:800;
  letter-spacing:-.05em;
}
.profile-user{
  min-width:0;
}
.profile-user p,
.profile-panel header span{
  margin:0 0 6px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.profile-user h1{
  margin:0;
  font-size:34px;
  line-height:.98;
  letter-spacing:-.06em;
}
.profile-user span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-hero-actions{
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
}
.profile-soft-btn{
  min-height:34px;
  padding:0 13px;
  border-radius:10px;
  background:color-mix(in srgb,var(--panel2) 74%,transparent);
  color:var(--text);
  font-size:13px;
  font-weight:600;
}
.profile-soft-btn--blue{
  background:#6f91b3;
  border-color:#6f91b3;
  color:#fff;
}
.profile-balance-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  padding:6px;
}
.profile-balance-strip div{
  min-width:0;
  padding:11px 12px;
  border-radius:12px;
  background:color-mix(in srgb,var(--panel) 46%,transparent);
}
.profile-balance-strip span,
.profile-stat-grid span,
.profile-account-meta span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.profile-balance-strip b{
  display:block;
  margin-top:5px;
  font-size:18px;
  line-height:1;
  letter-spacing:-.035em;
}
.profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(296px,.85fr);
  gap:14px;
  align-items:start;
}
.profile-panel{
  display:grid;
  gap:13px;
  padding:15px;
}
.profile-panel--wide{
  grid-row:span 2;
}
.profile-panel header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.profile-panel h2{
  margin:0;
  font-size:17px;
  line-height:1.1;
  letter-spacing:-.035em;
}
.profile-panel .ghost{
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--blue);
  font-size:13px;
  font-weight:600;
}
.profile-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.profile-stat-grid div,
.profile-account-meta div{
  min-width:0;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  border-radius:13px;
  background:color-mix(in srgb,var(--panel2) 56%,transparent);
}
.profile-stat-grid b{
  display:block;
  margin-top:8px;
  font-size:24px;
  line-height:1;
  letter-spacing:-.055em;
}
.profile-stat-grid em{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}
.profile-user-switch{
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.profile-user-switch select{
  width:100%;
  min-height:38px;
  border:1px solid var(--line);
  border-radius:11px;
  background-color:color-mix(in srgb,var(--panel2) 72%,transparent);
  color:var(--text);
  padding:0 10px;
  font:inherit;
}
.profile-account-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.profile-account-meta b{
  display:block;
  margin-top:6px;
  font-size:14px;
}
.profile-actions{
  display:grid;
  gap:8px;
}
.profile-actions button{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:13px;
  background:color-mix(in srgb,var(--panel2) 56%,transparent);
  text-align:left;
}
.profile-actions span{
  font-size:14px;
  font-weight:650;
}
.profile-actions em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  white-space:nowrap;
}
.profile-list,
.profile-activity{
  display:grid;
  gap:0;
}
.profile-item-row{
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding:9px 0;
  border:0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);
  border-radius:0;
  background:transparent;
  text-align:left;
}
.profile-item-row:last-child,
.profile-activity-row:last-child{
  border-bottom:0;
}
.profile-mini{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
  background:linear-gradient(180deg,var(--item-bg-top),var(--item-bg-bottom));
}
.profile-mini:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:4px;
  background:var(--rarity);
}
.profile-mini img{
  max-width:40px;
  max-height:40px;
  object-fit:contain;
}
.profile-mini b{
  color:var(--muted);
  font-size:16px;
}
.profile-item-row span,
.profile-activity-row span{
  min-width:0;
}
.profile-item-row b,
.profile-item-row em,
.profile-activity-row b,
.profile-activity-row em{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.profile-item-row b,
.profile-activity-row b{
  font-size:14px;
  font-weight:600;
}
.profile-item-row em,
.profile-activity-row em{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}
.profile-item-row strong,
.profile-activity-row strong{
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
}
.profile-activity-row{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);
}
.profile-empty{
  padding:20px;
  color:var(--muted);
  text-align:center;
  border:1px dashed var(--line);
  border-radius:13px;
}
@media(max-width:980px){
  .profile-grid{
    grid-template-columns:1fr;
  }
  .profile-panel--wide{
    grid-row:auto;
  }
}
@media(max-width:760px){
  .profile-view{
    gap:12px;
  }
  .profile-hero{
    align-items:flex-start;
    padding:14px;
    border-radius:16px;
  }
  .profile-hero-main{
    gap:11px;
  }
  .profile-avatar{
    flex-basis:56px;
    width:56px;
    height:56px;
    border-radius:17px;
  }
  .profile-avatar span{
    width:36px;
    height:36px;
    border-radius:12px;
    font-size:20px;
  }
  .profile-user h1{
    font-size:25px;
  }
  .profile-hero-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .profile-soft-btn{
    min-height:30px;
    padding:0 10px;
    font-size:12px;
  }
  .profile-balance-strip{
    grid-template-columns:1fr 1fr;
  }
  .profile-balance-strip div{
    padding:10px;
  }
  .profile-balance-strip b{
    font-size:16px;
  }
  .profile-stat-grid{
    grid-template-columns:1fr 1fr;
  }
  .profile-panel{
    padding:13px;
    border-radius:16px;
  }
}
@media(max-width:520px){
  .profile-hero{
    display:grid;
    gap:12px;
  }
  .profile-hero-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .profile-account-meta{
    grid-template-columns:1fr;
  }
  .profile-actions button{
    display:grid;
    gap:4px;
  }
  .profile-actions em{
    white-space:normal;
  }
  .profile-item-row{
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:9px;
  }
  .profile-mini{
    width:42px;
    height:42px;
  }
  .profile-item-row strong,
  .profile-activity-row strong{
    font-size:13px;
  }
}
