.hk-identity-chip{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
  max-width:420px;
  padding:8px 10px;
  border:1px solid rgba(102,255,102,.22);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(0,229,255,.11),rgba(102,255,102,.08));
  box-shadow:0 0 38px rgba(0,229,255,.08);
  backdrop-filter:blur(18px);
}
.identity-avatar,
.identity-orb{
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--hk-cyan),var(--hk-lime));
  color:#031017;
  font-weight:950;
  box-shadow:0 0 28px rgba(102,255,102,.28);
}
.identity-info{
  min-width:0;
  display:grid;
  line-height:1.05;
}
.identity-info span{
  color:var(--hk-muted);
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.identity-info strong{
  color:white;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.identity-info small{
  color:var(--hk-lime);
  font-size:.72rem;
}
.identity-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
}
.identity-actions a{
  color:var(--hk-muted);
  border:1px solid var(--hk-line);
  border-radius:999px;
  padding:8px 10px;
  font-size:.82rem;
  background:rgba(0,0,0,.20);
}
.identity-actions a:hover{
  color:white;
  border-color:rgba(102,255,102,.42);
}
.identity-actions a.primary{
  color:#031017;
  background:linear-gradient(135deg,var(--hk-cyan),var(--hk-lime));
  border:0;
  font-weight:800;
}
.hk-identity-floating{
  position:fixed;
  top:14px;
  right:16px;
  z-index:65;
}
.topbar .hk-identity-chip{
  justify-self:end;
}
@media(max-width:980px){
  .topbar{
    grid-template-columns:1fr auto!important;
    height:auto!important;
    min-height:var(--hk-top);
  }
  .topbar .search,
  .topbar .system-time,
  .topbar .creator-top-link{
    display:none;
  }
  .topbar .hk-identity-chip{
    min-width:0;
    max-width:260px;
  }
  .topbar .identity-info small{
    display:none;
  }
  .identity-actions a:not(.primary){
    display:none;
  }
}
@media(max-width:620px){
  .hk-identity-floating{
    left:12px;
    right:12px;
    top:10px;
  }
  .hk-identity-floating .hk-identity-chip{
    width:100%;
    max-width:none;
  }
  .identity-info strong{
    max-width:130px;
  }
  .identity-actions a{
    padding:7px 9px;
  }
}

.hk-identity-floating{
  display:flex;
  align-items:center;
  gap:10px;
}
.hk-identity-floating .hk-notification-bell{
  flex:0 0 auto;
}


.topbar-user-zone{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.topbar-user-zone .hk-notification-bell{
  flex:0 0 auto;
}
.topbar-user-zone .hk-identity-chip{
  justify-self:auto;
}
@media(max-width:980px){
  .topbar-user-zone{
    grid-column:2;
  }
  .topbar-user-zone .hk-identity-chip{
    min-width:auto;
    max-width:260px;
  }
}
@media(max-width:620px){
  .topbar-user-zone{
    gap:8px;
  }
  .topbar-user-zone .identity-info,
  .topbar-user-zone .identity-actions{
    display:none;
  }
  .topbar-user-zone .hk-identity-chip{
    padding:6px;
    border-radius:18px;
  }
}


/* v7.1.2 header recovery safety */
.topbar.hk-header-recovered{
  grid-template-columns:none!important;
}
.topbar.hk-header-recovered .topbar-user-zone{
  grid-column:auto!important;
}
.topbar.hk-header-recovered .hk-identity-chip{
  justify-self:auto!important;
}
