/* 2:1 会员卡最终排布：未登录与已登录共用同一套三行骨架。 */
.member-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  align-items:stretch!important;
  gap:0!important;
  border-color:rgba(255,255,255,.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(9,15,39,.14)!important;
}

.member-panel::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(118deg,rgba(255,255,255,.09),rgba(255,255,255,0) 31%),radial-gradient(circle at 86% 12%,rgba(255,255,255,.08),rgba(255,255,255,0) 34%);
  pointer-events:none;
}

.member-panel .member-panel-head{
  grid-row:1!important;
  margin:0!important;
}

.member-panel #memberLoggedOut,
.member-panel.is-member-bound #memberLoggedIn:not([hidden]){
  position:static!important;
  grid-row:2!important;
  align-self:start!important;
  width:min(100%,320px)!important;
  margin:7px 0 0!important;
  padding:0!important;
  transform:none!important;
}

.member-panel #memberLoggedOut{
  display:flex!important;
  flex-direction:column!important;
}

.member-panel.is-member-bound #memberLoggedIn:not([hidden]){
  display:block!important;
}

.member-panel #memberLoggedOut[hidden],
.member-panel #memberLoggedIn[hidden]{
  display:none!important;
}

.member-panel #memberLoggedOut label,
.member-panel .member-identity-label{
  margin:0!important;
}

.member-panel #memberLoggedOut input,
.member-panel #memberIdentity{
  margin-top:3px!important;
}

.member-panel #clearLocalDevice{
  position:static!important;
  grid-row:3!important;
  justify-self:start!important;
  align-self:end!important;
  margin:0!important;
}

.member-panel #loginMember,
.member-panel #logoutMember{
  position:absolute!important;
  right:20px!important;
  bottom:14px!important;
  width:72px!important;
  min-width:72px!important;
  height:30px!important;
  min-height:30px!important;
  padding:5px 13px!important;
  margin:0!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:18px!important;
  box-shadow:none!important;
}

.member-panel #memberLoggedOut #loginMember,
.member-panel.is-member-bound #memberLoggedIn:not([hidden]) #logoutMember{
  right:20px!important;
  bottom:14px!important;
  width:72px!important;
  min-width:72px!important;
  height:30px!important;
  min-height:30px!important;
  padding:5px 13px!important;
  margin:0!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:18px!important;
}

.member-panel .member-card-orbit{
  position:absolute!important;
  z-index:0!important;
  display:block!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:50%!important;
  background:transparent!important;
  pointer-events:none!important;
}

.member-panel .member-card-orbit::after{
  content:"";
  position:absolute;
  inset:14px;
  border-top:1px solid rgba(255,255,255,.17);
  border-left:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  transform:rotate(-16deg);
}

.member-panel .orbit-one{
  top:-112px!important;
  right:-70px!important;
  width:196px!important;
  height:196px!important;
  background:radial-gradient(circle at 34% 68%,rgba(255,255,255,.13),rgba(255,255,255,.035) 68%,rgba(255,255,255,.02) 100%)!important;
  box-shadow:inset 0 0 26px rgba(255,255,255,.035)!important;
}

.member-panel .orbit-two{
  right:30px!important;
  bottom:-78px!important;
  width:128px!important;
  height:128px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(18,24,55,.105))!important;
  box-shadow:inset 0 0 22px rgba(255,255,255,.025)!important;
}

.member-panel .orbit-two::after{
  inset:11px;
  border-top-color:rgba(255,255,255,.13);
  border-left-color:rgba(18,24,55,.10);
  transform:rotate(24deg);
}

@media(max-width:720px){
  .member-panel #memberLoggedOut,
  .member-panel.is-member-bound #memberLoggedIn:not([hidden]){
    width:100%!important;
    margin-top:6px!important;
  }

  .member-panel #loginMember,
  .member-panel #logoutMember{
    right:16px!important;
    bottom:12px!important;
    width:66px!important;
    min-width:66px!important;
    height:27px!important;
    min-height:27px!important;
    padding:4px 11px!important;
    font-size:11px!important;
    line-height:17px!important;
  }

  .member-panel #memberLoggedOut #loginMember,
  .member-panel.is-member-bound #memberLoggedIn:not([hidden]) #logoutMember{
    right:16px!important;
    bottom:12px!important;
    width:66px!important;
    min-width:66px!important;
    height:27px!important;
    min-height:27px!important;
    padding:4px 11px!important;
    font-size:11px!important;
    line-height:17px!important;
  }
}

@media(max-width:340px){
  .member-panel .member-panel-head{
    grid-template-columns:44px minmax(0,1fr)!important;
    min-height:42px!important;
  }

  .member-panel .member-diamond-badge,
  .member-panel .member-diamond-badge svg{
    width:42px!important;
    height:42px!important;
  }

  .member-panel .member-card-unbound-tags{
    gap:10px!important;
    font-size:15px!important;
    line-height:18px!important;
  }

  .member-panel #memberLoggedOut input,
  .member-panel #memberIdentity{
    height:30px!important;
    min-height:30px!important;
    padding:5px 8px!important;
  }

  .member-panel #memberLoggedOut,
  .member-panel.is-member-bound #memberLoggedIn:not([hidden]){
    margin-top:0!important;
  }

  .member-panel #loginMember,
  .member-panel #logoutMember{
    right:13px!important;
    bottom:9px!important;
  }

  .member-panel #memberLoggedOut #loginMember,
  .member-panel.is-member-bound #memberLoggedIn:not([hidden]) #logoutMember{
    right:13px!important;
    bottom:9px!important;
    width:60px!important;
    min-width:60px!important;
    height:24px!important;
    min-height:24px!important;
    padding:3px 9px!important;
    font-size:10px!important;
    line-height:16px!important;
  }
}
