.ghr-auth-widget {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  font-family: inherit;
}

.ghr-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line, #dfe3d8);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive-dark, #4d5b3a);
  cursor: pointer;
  box-shadow: var(--shadow, 0 4px 14px rgba(120, 140, 100, 0.10));
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.ghr-auth-btn:hover {
  transform: translateY(-1px);
  border-color: var(--olive-soft, #c7d0bb);
  box-shadow: var(--shadow-hover, 0 14px 32px rgba(120, 140, 100, 0.20));
}

.ghr-auth-btn .g-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghr-auth-btn.logged {
  padding: 4px 14px 4px 4px;
}

.ghr-auth-btn img.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--olive-soft, #c7d0bb);
  object-fit: cover;
}

.ghr-auth-btn .avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--olive-soft, #c7d0bb);
  background: var(--olive-bg, #edf1e6);
  color: var(--olive-dark, #4d5b3a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.ghr-auth-btn .name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghr-auth-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 220px;
  background: var(--card, #fdfdfb);
  border: 1px solid var(--line, #dfe3d8);
  border-radius: 12px;
  box-shadow: var(--shadow-hover, 0 14px 32px rgba(120, 140, 100, 0.20));
  padding: 8px;
  display: none;
  animation: ghr-fade-down 0.18s ease;
}

.ghr-auth-menu.open {
  display: block;
}

@keyframes ghr-fade-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ghr-auth-menu-user {
  padding: 10px 12px 12px;
  border-bottom: 1px dashed var(--line, #dfe3d8);
  margin-bottom: 6px;
}

.ghr-auth-menu-user .n {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #2a2e28);
  margin-bottom: 2px;
}

.ghr-auth-menu-user .e {
  font-size: 11.5px;
  color: var(--muted, #6b7368);
  word-break: break-all;
}

.ghr-auth-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink, #2a2e28);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}

.ghr-auth-menu-item:hover {
  background: var(--olive-bg, #edf1e6);
  color: var(--olive-dark, #4d5b3a);
}

.ghr-auth-menu-item-link {
  text-decoration: none;
}

.ghr-auth-menu-item[hidden],
.ghr-auth-menu-item-link[hidden] {
  display: none;
}

.ghr-auth-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card, #fdfdfb);
  border: 1px solid var(--danger, #b8452e);
  color: var(--danger, #b8452e);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  box-shadow: var(--shadow-hover, 0 14px 32px rgba(120, 140, 100, 0.20));
  z-index: 300;
  max-width: 320px;
  line-height: 1.55;
}
