/* 顶栏收拾（B · 10-26，Edmond：视频教程 / 复制链接留在栏上，人员管理 / 系统设置放头像下面、鼠标移上去出下拉）。
   栏上：视频教程 · 反馈（图标）· 复制链接 · 通知 · 今天要我做的 · 头像；头像下拉：以谁的身份看、人员管理、系统设置、两个状态灯。
   只用 tokens.css 的语义变量。shared/topbar-tidy.js 负责搬。 */
.topbar-right { gap: 8px; }
.tb-acct { position: relative; display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.tb-acct-caret { width: 18px; height: 34px; border: 0; background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; padding: 0; }
.tb-acct-caret:hover { color: var(--ink); }
.tb-acct-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 250px; padding: 6px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-3); grid-template-columns: 1fr; gap: 2px; }
.tb-acct-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* 鼠标从头像挪到菜单的那条缝不算离开 */
.tb-acct:hover .tb-acct-menu, .tb-acct:focus-within .tb-acct-menu, .tb-acct.open .tb-acct-menu { display: grid; }
.tb-acct-menu > * { width: auto; margin: 0; justify-content: flex-start; }
.tb-acct-menu .va-pick { display: grid; gap: 4px; padding: 4px 10px 8px; }
.tb-acct-menu .va-pick > span { font-size: 11px; color: var(--text-muted); }
.tb-acct-menu .va-pick select { width: 100%; max-width: none; }
.tb-acct-menu .nav.topbar-entry { display: flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius-sm); padding: 8px 10px; background: transparent;
  color: var(--text-primary); font-size: 13px; cursor: pointer; text-align: left; }
.tb-acct-menu .nav.topbar-entry:hover { background: var(--surface-hover); }
.tb-acct-menu .nav.topbar-entry.active { background: var(--accent-soft-bg); color: var(--accent-soft-fg); }
.app-shell[data-rail] .tb-acct-menu .nav b, .tb-acct-menu .nav.topbar-entry b { display: inline; color: inherit; font-size: 13px; font-weight: 500; }
.tb-acct-menu .api-state { padding: 6px 10px; }
.tb-acct .tb-acct-menu .api-state:not(.send-mode) { font-size: 12px; gap: 7px; cursor: default; }
.tb-acct-menu .send-mode { justify-content: flex-start; }
.tb-acct-menu .tb-menu-sep { border-top: 1px solid var(--line); margin: 4px 0; }
/* 栏上留着的：反馈只露图标（有新结果的小红点照旧） */
.topbar-right > .pf-btn b { display: none; }
.topbar-right > .pf-btn { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 999px; }
/* 顶栏一行：左块（返回 + 页名 + 说明 + 标签）不折行、标签多了在条里横滑；搜索框最窄 160；1500 以下「返回」后面的上一页名收进悬停说明 */
.topbar { flex-wrap: nowrap; gap: 12px; }
.topbar > div:first-child { flex-wrap: nowrap; }
.topbar .page-tabs { flex: 0 1 auto; }
.topbar .gs { flex: 1 1 200px; min-width: 160px; }
@media (max-width: 1500px) { .nav-back .nav-back-to { display: none; } }
@media (max-width: 1100px) { .topbar { flex-wrap: wrap; } }
@media (max-width: 1536px) { .topbar .gs { min-width: 120px; } }   /* 小笔记本：搜索框再让 40px 给页头标签 */
/* 小笔记本（≤1536）：视频教程 / 复制链接只露图标（位置不变，名字在悬停说明里），把位置让给页头标签 */
@media (max-width: 1536px) {
  .topbar-right > .tv-btn b, .topbar-right > .share-link-btn b { display: none; }
  .topbar-right > .tv-btn, .topbar-right > .share-link-btn { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 999px; }
}
