/* 按用户提供的现网截图还原通栏；当前身份、组织及事件仍由原页面维护。 */
.g3-static-page .topbar-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  padding: 0 12px 0 17px;
  gap: 0;
  flex-wrap: nowrap;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  box-shadow: none;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.g3-static-page .topbar-reference .topbar-left { display: flex; position: static; flex: 0 0 auto; align-items: center; min-width: 0; height: 63px; gap: 0; flex-wrap: nowrap; }
.g3-static-page .topbar-reference .topbar-brand { display: flex; align-items: center; flex: 0 0 auto; height: 63px; gap: 0; flex-wrap: nowrap; }
.g3-static-page .topbar-reference .topbar-logo-image { display: block; flex: 0 0 auto; width: 423px; height: 58px; object-fit: contain; transform: translateY(-.5px); }
.g3-static-page .topbar-reference .topbar-brand-console { display: flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 22px; color: #445a67; }
.g3-static-page .topbar-reference svg { display: block; flex-shrink: 0; }
.g3-static-page .topbar-reference .topbar-brand-console svg { width: 22px; height: 22px; }

/* 1920px 参考图：导航整体中心位于 x=1009，应用项为 106×50px。 */
.g3-static-page .topbar-reference .topbar-nav { position: absolute; top: 7px; left: calc(50% + 49px); display: flex; align-items: center; align-self: auto; flex-shrink: 0; height: 50px; padding: 0; margin: 0; gap: 8px; transform: translateX(-50%); }
.g3-static-page .topbar-reference .topbar-nav-item { display: inline-flex; align-items: center; flex-shrink: 0; height: 50px; min-height: 50px; padding: 0 8px; margin: 0; gap: 12px; color: #445a67; background: transparent; border: 0; border-radius: 0; font-size: 14px; font-weight: 400; line-height: 22px; white-space: nowrap; text-decoration: none; }
.g3-static-page .topbar-reference .topbar-nav-home { justify-content: flex-start; width: 90px; }
.g3-static-page .topbar-reference .topbar-nav-app { justify-content: flex-start; width: 106px; padding: 0 4px; gap: 12px; }
.g3-static-page .topbar-reference .topbar-nav-item.active { color: #0096ff; background: #f0f8fd; }
.g3-static-page .topbar-reference .topbar-nav-item:hover { color: #008ee0; background: #f0f8fd; }
.g3-static-page .topbar-reference .topbar-nav-home svg { width: 22px; height: 22px; }
.g3-static-page .topbar-reference .topbar-nav-app svg { width: 22px; height: 22px; }
.g3-static-page .topbar-reference .topbar-app-entry { position: relative; flex: 0 0 106px; height: 50px; }
.g3-static-page .topbar-reference .topbar-legacy-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 120; min-width: 160px; padding: 4px 0; border: 1px solid #e9eff4; border-radius: 3px; background: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / 12%); }
.g3-static-page .topbar-reference .topbar-app-entry:hover .topbar-legacy-menu,
.g3-static-page .topbar-reference .topbar-app-entry:focus-within .topbar-legacy-menu { display: flex; flex-direction: column; }
.g3-static-page .topbar-reference .topbar-legacy-menu .topbar-nav-item { justify-content: flex-start; width: 100%; height: 36px; min-height: 36px; padding: 6px 12px; font-size: 14px; }

/* 组织、四个工具图标、单行用户信息。 */
.g3-static-page .topbar-reference .topbar-user { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; width: auto; height: 63px; margin: 0; gap: 12px; }
.g3-static-page .topbar-reference .topbar-company { display: flex; align-items: center; flex: 0 0 164px; width: 164px; max-width: 164px; min-width: 0; height: 32px; padding: 0; gap: 6px; color: #0096ff; background: transparent; border: 0; border-radius: 0; font-size: 12px; line-height: 20px; }
.g3-static-page .topbar-reference .topbar-company-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g3-static-page .topbar-reference .topbar-company svg { flex: 0 0 16px; width: 16px; height: 16px; }
.g3-static-page .topbar-reference .topbar-icons { display: flex; align-items: center; flex: 0 0 auto; height: 32px; gap: 14px; color: #445a67; }
.g3-static-page .topbar-reference .topbar-tool { display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 16px; width: 16px; height: 24px; color: #445a67; }
.g3-static-page .topbar-reference .topbar-tool svg { width: 16px; height: 16px; }
.g3-static-page .topbar-reference .topbar-tool-help svg { width: 18px; height: 18px; }
.g3-static-page .topbar-reference .topbar-tool-sound svg { width: 18px; height: 18px; }
.g3-static-page .topbar-reference .topbar-message-badge { position: absolute; top: -5px; right: -15px; display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; color: #fff; background: #ff4d4f; border-radius: 8px; font-family: Arial, sans-serif; font-size: 11px; font-weight: 400; line-height: 14px; }
.g3-static-page .topbar-reference :is(.topbar-user-switch-wrap, .topbar-avatar-group) { display: flex; align-items: center; flex: 0 0 auto; height: 63px; min-width: 0; margin: 0 0 0 8px; padding: 0; gap: 10px; background: transparent; border: 0; border-radius: 0; }
.g3-static-page .topbar-reference .topbar-user-switch-wrap:hover { background: transparent; border-color: transparent; }
/* 原角色回显写入内联底色，通栏统一使用截图中的头像蓝色。 */
.g3-static-page .topbar-reference .topbar-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: #fff; background: #008ee0 !important; border-radius: 50%; font-size: 16px; font-weight: 400; line-height: 30px; }
.g3-static-page .topbar-reference .topbar-user-info-col { display: flex; flex-direction: row; align-items: center; min-width: 0; }
.g3-static-page .topbar-reference .topbar-display-name { color: #212529; font-size: 12px; font-weight: 400; line-height: 22px; white-space: nowrap; }
.g3-static-page .topbar-reference :is(.user-role-badge, #global-user-org, .topbar-secondary-detail) { display: none; }
/* 旧处理器按 320px 计算 left，实际主题面板更宽，改由样式贴齐用户区域。 */
.g3-static-page #role-switch-dropdown { left: auto !important; right: 12px; }
.g3-static-page .role-switch-dropdown-menu { position: fixed; z-index: 1060; max-height: calc(100dvh - 80px); }
.g3-page-credit .role-switch-dropdown { position: fixed; top: 70px; max-height: calc(100dvh - 80px); overflow-y: auto; }

/* 窄屏保留全部入口，按行换排；桌面尺寸沿用参考图。 */
@media (min-width: 1001px) and (max-width: 1150px) {
  .g3-static-page .topbar-reference .topbar-logo-image { width: 360px; height: auto; }
  .g3-static-page .topbar-reference .topbar-nav { left: calc(50% + 17px); }
  .g3-static-page .topbar-reference .topbar-company { flex-basis: 140px; width: 140px; max-width: 140px; }
}
@media (max-width: 1000px) {
  .g3-static-page .topbar-reference { flex: 0 0 auto; height: auto; min-height: 64px; padding: 0 16px; flex-wrap: wrap; }
  .g3-static-page .topbar-reference .topbar-left { justify-content: space-between; width: 100%; height: 64px; }
  .g3-static-page .topbar-reference .topbar-nav { position: static; height: 50px; transform: none; }
  .g3-static-page .topbar-reference .topbar-user { justify-content: flex-end; width: 100%; height: 48px; }
  .g3-static-page .topbar-reference :is(.topbar-user-switch-wrap, .topbar-avatar-group) { height: 48px; }
  .g3-static-page #role-switch-dropdown { right: 16px; }
  .g3-static-page .role-switch-dropdown-menu { max-height: calc(100dvh - 190px); }
  .g3-page-credit .role-switch-dropdown { top: 119px; max-height: calc(100dvh - 135px); }
}
@media (max-width: 760px) {
  .g3-static-page .topbar-reference .topbar-left { height: auto; min-height: 64px; flex-wrap: wrap; gap: 0 12px; }
  .g3-static-page .topbar-reference .topbar-logo-image { width: min(423px, calc(100vw - 76px)); height: auto; }
  .g3-static-page .topbar-reference .topbar-nav { margin-left: auto; }
}
@media (max-width: 520px) {
  .g3-static-page .topbar-reference .topbar-user { gap: 10px; }
  .g3-static-page .topbar-reference .topbar-company { flex: 1; width: auto; max-width: none; }
  .g3-static-page .topbar-reference .topbar-icons { gap: 10px; }
  .g3-static-page .topbar-reference :is(.topbar-user-switch-wrap, .topbar-avatar-group) { margin-left: 4px; }
}
@media (max-width: 694px) {
  .g3-page-credit .role-switch-dropdown { top: 168px; max-height: calc(100dvh - 184px); }
}
