/* SWORD profile menu visual polish — M3.5.0A1 */
.profile-menu-item{
  min-height:44px;
  height:44px;
  gap:11px;
  padding:0 12px 0 10px;
  transition:background-color .15s ease,color .15s ease;
}
.profile-menu-icon{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #d8e6f1;
  border-radius:9px;
  background:#f3f8fc;
  color:#216fae;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.profile-menu-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-menu-item:hover .profile-menu-icon,
.profile-menu-item:focus-visible .profile-menu-icon{
  background:#e8f4fd;
  border-color:#b9d9ef;
  color:#0f6fb8;
  transform:translateY(-1px);
}
.profile-menu-item.is-current{
  background:#f2f8fd;
  color:#145f96;
  font-weight:750;
}
.profile-menu-item.is-current .profile-menu-icon{
  background:#e2f1fc;
  border-color:#add3ec;
  color:#0e6dad;
}
.profile-menu-logout .profile-menu-icon{
  background:#fff6f6;
  border-color:#f1d7d7;
  color:#b54b4b;
}
.profile-menu-logout:hover .profile-menu-icon{
  background:#fff0f0;
  border-color:#ebc5c5;
  color:#a83939;
}
@media(max-width:700px){
  .profile-menu-item{min-height:46px;height:46px}
  .profile-menu-icon{width:31px;height:31px;flex-basis:31px}
}

/* M3.5.0A2 — keep the account menu above every portal/tool surface. */
.profile-wrap{
  position:absolute;
  z-index:5000 !important;
}
.profile-menu{
  z-index:5001 !important;
}
.t9-page-shell .t9-portal-hero{
  position:relative;
  z-index:1000;
  overflow:visible;
}
.t9-page-shell .t9-main,
.t9-page-shell .t9-footer{
  z-index:10;
}

/* M3.5.0B8 — profile dropdown must stay above dashboard tables. */
.hero{
  position:relative;
  z-index:6000 !important;
  overflow:visible !important;
}
.profile-wrap{z-index:6100 !important}
.profile-menu{z-index:6101 !important}
