/* 全站唯一身份条样式（门户与子应用共用同一份；配色为深色底浅字，浅色/深色背景上都可读） */
.identity-wrap { position: fixed; top: 12px; right: 16px; z-index: 40; }
.identity-bar {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  color: #e6edf7; background: rgba(15,23,42,.78);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px);
}
.identity-bar[hidden] { display: none; }
.identity-bar[data-state="tester"] { border-color: rgba(16,185,129,.6); background: rgba(6,78,59,.82); }
.identity-bar[data-state="fail_open"] { border-color: rgba(251,191,36,.6); background: rgba(120,53,15,.82); }
.identity-bar a.identity-action { color: #bfdbfe; text-decoration: underline; cursor: pointer; }
.identity-bar a.identity-action:hover { color: #fff; }
@media (max-width: 560px) {
  .identity-wrap { top: 8px; right: 10px; }
  .identity-bar { font-size: 11px; }
}
/* 子应用顶栏内嵌用法：不是 fixed，跟随顶栏排布；
   配套浅色变体——白底顶栏上不再用深色药丸（2026-09-16 用户反馈"这个框很突兀"） */
.identity-bar.inline {
  position: static; color: #334155; background: #f1f5f9;
  border: 1px solid var(--border, #e2e5ea);
}
.identity-bar.inline a.identity-action { color: #2563eb; }
.identity-bar.inline a.identity-action:hover { color: #1d4ed8; }
.identity-bar.inline[data-state="tester"] { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.identity-bar.inline[data-state="fail_open"] { background: #fffbeb; border-color: #fde68a; color: #92400e; }
