/* 各页右上角的账号入口（account-entry.js）：和所在顶栏的链接同一个样子，登录后多一个小圆头像 */
.acc-entry {display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 11px;border-radius:999px;color:var(--muted);font-size:14px;font-weight:500;letter-spacing:.02em;text-decoration:none;white-space:nowrap;transition:color 180ms ease,background-color 180ms ease;}
.acc-entry:hover {color:var(--accent);}
.acc-entry:focus-visible {outline:3px solid var(--accent);outline-offset:2px;}
.acc-entry .acc-t {display:inline-block;white-space:nowrap;max-width:11em;overflow:hidden;text-overflow:ellipsis;}
.acc-entry .acc-t b {font-weight:600;color:var(--text);}
.acc-entry .acc-av {display:grid;place-items:center;width:22px;height:22px;margin-left:-5px;border-radius:50%;background:var(--accent);color:var(--surface,#fff);font-size:11.5px;font-style:normal;font-weight:600;line-height:1;}
.acc-entry.on {color:var(--text);}
/* 聊天页、足迹页、竞赛页的顶栏：入口靠右，挨着“返回主页” */
.top-row .acc-entry,.fp-top .acc-entry,body > header.top .acc-entry {margin-left:auto;}
.top-row {gap:6px;}
.fp-top .acc-entry,body > header.top .acc-entry {height:auto;padding:0;color:inherit;opacity:.78;}
.fp-top .acc-entry:hover,body > header.top .acc-entry:hover {opacity:1;}
.h-top.on-photo:not(.scrolled) .acc-entry {color:#fff;}
@media (max-width:420px) {
  .acc-entry {padding:0 8px;font-size:13px;}
  /* 手机上登录后只留“你好，名字”，头像圆点省掉；名字太长就截断 */
  .acc-entry .acc-av {display:none;}
  .acc-entry .acc-t {max-width:10em;}
}
.acc-entry .acc-sl {margin:0 3px;font-style:normal;opacity:.5;}
/* 顶栏空间紧（比如动态页左栏）：各项都不折行，入口收窄一点 */
html body .h-top nav > :is(a,button),html body .h-top > .brand {flex:none;white-space:nowrap;}
html body .h-top nav > .acc-entry {padding:0 9px;}
/* 手机上顶栏链接多（动态页、简历页）：左上角“个人动态”只留图标（仍然是回主页的链接），给“注册 / 登录”腾位置 */
@media (max-width:480px) {
  html body .h-top:has(nav > a:nth-of-type(4)) > .brand {gap:0;font-size:0;letter-spacing:0;}
  html body .h-top:has(nav > a:nth-of-type(4)) nav > a {padding:0 7px;font-size:13.5px;}
  html body .h-top nav > .acc-entry {padding:0 7px;}
  html body .h-top:has(nav > a:nth-of-type(4)) .acc-entry .acc-t {max-width:5.8em;font-size:13.5px;}
}
.h-top.on-photo:not(.scrolled) .acc-entry .acc-t b {color:inherit;}

/* 悬浮的玻璃小球（account-entry.js 的 mountHomeBall）：贴在左边中间，点一下回主页 */
.home-ball {position:fixed;left:max(12px,env(safe-area-inset-left));top:58%;z-index:56;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;color:var(--accent);
  background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.75),rgba(255,255,255,.18) 42%,rgba(255,255,255,.06) 70%),color-mix(in srgb,var(--surface) 38%,transparent);
  -webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.85),inset 0 -2px 6px rgba(24,54,82,.12),0 0 0 1px color-mix(in srgb,var(--accent) 16%,transparent),0 10px 26px -10px rgba(24,54,82,.45);
  transition:scale 560ms var(--g-spring,cubic-bezier(.2,.8,.2,1)),box-shadow 260ms ease;animation:hb-in 700ms cubic-bezier(.2,.8,.2,1) 400ms both;-webkit-tap-highlight-color:transparent;}
.home-ball svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.home-ball:hover {scale:1.08;}
.home-ball:active {scale:.9;}
.home-ball:focus-visible {outline:3px solid var(--accent);outline-offset:3px;}
@keyframes hb-in {from {opacity:0;scale:.6;}}
:root[data-theme="dark"] .home-ball {background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.28),rgba(255,255,255,.06) 45%,transparent 72%),color-mix(in srgb,var(--surface) 55%,transparent);box-shadow:inset 0 1px 1px rgba(255,255,255,.3),0 0 0 1px rgba(255,255,255,.08),0 10px 26px -10px rgba(0,0,0,.7);}
@media (prefers-color-scheme:dark) {:root:not([data-theme="light"]) .home-ball {background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.28),rgba(255,255,255,.06) 45%,transparent 72%),color-mix(in srgb,var(--surface) 55%,transparent);box-shadow:inset 0 1px 1px rgba(255,255,255,.3),0 0 0 1px rgba(255,255,255,.08),0 10px 26px -10px rgba(0,0,0,.7);}}
@media (max-width:680px) {.home-ball {width:42px;height:42px;left:max(8px,env(safe-area-inset-left));}}
@media (prefers-reduced-motion:reduce) {.home-ball {animation:none;transition:none;}}
@media print {.home-ball {display:none;}}
.home-ball {translate:0 -50%;touch-action:none;cursor:pointer;}
.home-ball.drag {scale:1.12;cursor:grabbing;transition:scale 90ms linear;}
/* 后台：电脑上放在顶栏左边的空白里，不挡侧栏 */
@media (min-width:900px) {body:has(.a-side) .home-ball {top:24px !important;left:244px;width:38px;height:38px;}}
/* 删掉的说明小字：留空的位置不占地方 */
.d-sub:empty,[data-head-sub]:empty,[data-inbox-sub]:empty {display:none;}
