.impersonation-control {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 5px 4px 7px;
  border: 1px solid #9ed5b1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1fbf5, #e4f6eb);
  box-shadow: 0 6px 18px rgba(22, 132, 67, .1);
}
.impersonation-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #199a50;
  color: #fff;
}
.impersonation-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.impersonation-copy { display: grid; min-width: 92px; line-height: 1.15; }
.impersonation-copy small { color: #168443; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.impersonation-copy b { overflow: hidden; margin-top: 3px; color: #263c54; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.impersonation-control form { display: flex; }
.impersonation-return {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #199a50;
  border-radius: 8px;
  background: #199a50;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.impersonation-return svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.impersonation-return:hover { background: #138743; box-shadow: 0 5px 13px rgba(19, 135, 67, .2); transform: translateY(-1px); }
.impersonation-return:focus-visible { outline: 3px solid rgba(25, 154, 80, .22); outline-offset: 2px; }
.account-menu .profile-locked { color: #617188; }
.account-menu .profile-locked small { width: auto; margin-left: auto; color: #8b98a9; font-size: 9px; font-weight: 750; }
.account-menu .profile-locked:hover { background: #f3f6f4; color: #3f536c; }
@media (max-width: 1250px) {
  .impersonation-active { align-items: stretch; flex-direction: column; gap: 12px; }
  .impersonation-active .top-actions { width: 100%; }
  .impersonation-control { margin-right: auto; }
}
@media (max-width: 760px) {
  .impersonation-control { display: grid; grid-template-columns: 32px 1fr; width: 100%; padding: 8px; }
  .impersonation-control form { grid-column: 1 / -1; }
  .impersonation-return { justify-content: center; width: 100%; min-height: 43px; }
}
