/* 共享账号组件独立定义尺寸和布局，避免宿主页面的button/span通用规则污染。 */
.account-identity {
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0}
.account-portrait {
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eef3f0;
  color:#7a958b;
  font-size:14px}
.account-portrait img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%}
.account-copy {
  min-width:0;
  display:grid;
  gap:4px}
.account-copy strong {
  margin:0;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
  overflow-wrap:anywhere}
.account-copy small {
  font-size:12px;
  color:#71817c;
  line-height:1.5;
  display:block}
.account-actions {
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  flex-shrink:0}
.account-home,.account-details {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  min-width:32px;
  min-height:32px;
  margin:0;
  flex:0 0 auto;
  vertical-align:middle;
  border:1px solid #dce6e1;
  border-radius:6px;
  background:white;
  color:#326557;
  text-decoration:none;
  font-size:17px;
  cursor:pointer}
.account-home:hover,.account-details:hover {
  background:#edf5f0}
.account-details:focus-visible,.account-home:focus-visible {
  outline:2px solid #377d66;
  outline-offset:2px}
.account-popover {
  position:fixed;
  z-index:1000;
  width:264px;
  padding:12px;
  background:white;
  border:1px solid #dae4df;
  border-radius:8px;
  box-shadow:0 8px 28px #122b241c;
  font-size:12px;
  color:#52685f;
  overflow-wrap:anywhere}
.account-popover p {
  margin:8px 0 0}
.account-dialog {
  border:1px solid #dae4df;
  border-radius:10px;
  padding:20px;
  max-width:calc(100vw - 32px);
  color:#253d34}
.account-dialog::backdrop {
  background:#122b2433}
.account-dialog .account-popover {
  position:static;
  box-shadow:none;
  border:0;
  padding:0;
  max-width:100%}
.account-close {
  margin-top:20px;
  padding:8px 16px;
  border:1px solid #dce6e1;
  background:white;
  border-radius:6px;
  cursor:pointer}


#sideStatus .account-identity {
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:8px;
  align-items:center}
#sideStatus .account-portrait {
  display:grid}
#sideStatus .account-actions {
  display:flex;
  grid-column:2;
  margin-left:0}
#sideStatus .account-copy {
  max-width:none}
.account-copy small {
  overflow-wrap:anywhere}
.account-intro {
  flex-wrap:wrap}
.account-tile .account-identity {
  width:100%}


.account-home,.account-details {
  padding:0;
  line-height:1}
.account-identity svg {
  display:block;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round}
.account-portrait svg {
  width:22px;
  height:22px}


@media(max-width:800px)  {

 .account-home,.account-details  {
   width:44px;
   height:44px;
   min-width:44px;
   min-height:44px;
   }

 .account-actions  {
   flex-wrap:wrap;
   }

 .account-dialog  {
   max-height:calc(100dvh - 32px);
   overflow:auto;
   }

}

/* 窄屏侧栏的账号与退出按钮共用宿主网格，避免整块卡片的几何中心错位。 */
@media (max-width:720px) {
  #sideStatus .account-identity { display: contents; }
}
