/*
 * Virii8 Workspace Shell identity indicator.
 * Shows Guest / Signed in / Admin state independently of the native WordPress admin bar.
 */
.v8e-identity-pill {
  --v8e-id-accent: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: min(240px, 34vw);
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15, 23, 42, .62);
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  font: 800 11px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  opacity: .94;
  transition: transform .14s ease, opacity .14s ease, border-color .14s ease, background .14s ease;
}
.v8e-identity-pill:hover,
.v8e-identity-pill.v8e-open {
  opacity: 1;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--v8e-id-accent), white 18%);
  background: rgba(15, 23, 42, .78);
}
.v8e-identity-pill .v8e-identity-dot { color: var(--v8e-id-accent); filter: drop-shadow(0 0 6px var(--v8e-id-accent)); }
.v8e-identity-pill .v8e-identity-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v8e-identity-pill.v8e-identity-admin { --v8e-id-accent: #fbbf24; color: #fff7ed; }
.v8e-identity-pill.v8e-identity-signed { --v8e-id-accent: #22c55e; }
.v8e-identity-pill.v8e-identity-guest { --v8e-id-accent: #94a3b8; color: rgba(226,232,240,.9); }
.v8e-identity-pill.v8e-identity-hidden { display: none !important; }
.v8-platform-win .v8-sys-tray .v8e-identity-pill,
.v8-platform-android .v8-sys-tray .v8e-identity-pill { height: 28px; max-width: 210px; }
.v8-platform-mac .v8-menubar-right .v8e-identity-pill { height: 22px; max-width: 220px; }
.v8-mobile-topbar .v8e-identity-pill { height: 24px; padding: 0 8px; max-width: 118px; }
.v8-mobile-topbar .v8e-identity-name { display: none; }
.v8e-identity-menu {
  position: fixed;
  z-index: 999999;
  display: none;
  width: min(300px, calc(100vw - 24px));
  max-height: min(420px, calc(100dvh - 24px));
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  color: #e5e7eb;
  background: rgba(5, 10, 18, .965);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.58);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.v8e-identity-menu.v8e-open { display: block; animation: v8-fade-in .14s ease forwards; }
.v8-os-environment:fullscreen .v8e-identity-menu,
.v8-os-environment:-webkit-full-screen .v8e-identity-menu,
.v8-os-environment.v8-pseudo-fullscreen .v8e-identity-menu {
  z-index: 2147483647;
}
.v8e-identity-menu-head { display:flex; align-items:center; gap:10px; padding:8px; border-bottom:1px solid rgba(255,255,255,.08); }
.v8e-identity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background: rgba(56,189,248,.16);
  border:1px solid rgba(56,189,248,.25);
  overflow:hidden;
  font-size: 18px;
}
.v8e-identity-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.v8e-identity-menu-name { font-weight:900; color:#fff; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.v8e-identity-menu-sub { margin-top:3px; color:#94a3b8; font-size:.78rem; line-height:1.2; }
.v8e-identity-menu-badges { display:flex; flex-wrap:wrap; gap:6px; padding:9px 8px 2px; }
.v8e-identity-badge { border-radius:999px; padding:4px 8px; font-size:.72rem; font-weight:800; color:#dbeafe; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); }
.v8e-identity-badge-admin { color:#fef3c7; background:rgba(251,191,36,.12); border-color:rgba(251,191,36,.35); }
.v8e-identity-badge-signed { color:#bbf7d0; background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.28); }
.v8e-identity-badge-guest { color:#e2e8f0; background:rgba(148,163,184,.12); border-color:rgba(148,163,184,.25); }
.v8e-identity-actions { display:grid; gap:7px; padding:8px; }
.v8e-identity-action {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 9px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.055);
  color:#e5e7eb;
  text-decoration:none;
  font-size:.82rem;
  font-weight:750;
  cursor:pointer;
}
.v8e-identity-action:hover { color:#fff; background:rgba(56,189,248,.18); border-color:rgba(56,189,248,.32); }
.v8e-identity-action-danger:hover { background:rgba(239,68,68,.16); border-color:rgba(248,113,113,.32); }
@media (max-width: 760px) {
  .v8e-identity-pill { max-width: 132px; }
  .v8e-identity-pill .v8e-identity-label-prefix { display:none; }
  .v8e-identity-menu { width: min(292px, calc(100vw - 18px)); }
}
