.auth-help {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-help-menu {
  width: 232px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: #191919;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
}

.auth-help-menu[hidden] { display: none; }

.auth-help-menu a {
  display: block;
  padding: 12px 13px;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.auth-help-menu a:hover,
.auth-help-menu a:focus-visible {
  background: rgba(255, 255, 255, .1);
  outline: none;
}

.auth-help-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 4px 15px 4px 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: #191919;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
  color: #fff;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.auth-help-trigger:hover,
.auth-help-trigger[aria-expanded="true"] {
  border-color: #f28b31;
}

.auth-help-trigger:focus-visible {
  outline: 2px solid #f28b31;
  outline-offset: 3px;
}

.auth-help-avatar {
  display: block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  flex: 0 0 50px;
  border-radius: 50%;
  background: #e5e0d8;
}

.auth-help-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  body[data-auth-mode] { padding-bottom: 160px; }
  .auth-help {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .auth-help-trigger { min-height: 54px; padding-right: 13px; }
  .auth-help-avatar { width: 44px; height: 44px; flex-basis: 44px; }
}
