/* ===========================================================
   Google sign-in floating overlay (One Tap style)
   =========================================================== */

.dg-auth-overlay {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 250;
  width: min(380px, calc(100vw - 32px));
  animation: dg-auth-in 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dg-auth-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dg-auth-popup {
  background: #202124;
  color: #e8eaed;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 16px 18px 14px;
  position: relative;
}

.dg-auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #9aa0a6;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}
.dg-auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dg-auth-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #e8eaed;
}

.dg-auth-google-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dg-auth-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dg-auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dg-auth-account-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.dg-auth-account-text span {
  display: block;
  font-size: 12px;
  color: #9aa0a6;
}

.dg-auth-continue {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.dg-auth-continue:hover { background: #1765cc; }

.dg-auth-legal {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #9aa0a6;
}

.dg-auth-signed-in {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #202124;
  color: #e8eaed;
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  max-width: min(320px, calc(100vw - 32px));
  animation: dg-auth-in 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dg-auth-signed-in .email {
  font-size: 12px;
  color: #e8eaed;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.dg-auth-signed-in .dg-sign-out-link {
  font-size: 12px;
  font-weight: 600;
  color: #8ab4f8;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.dg-auth-signed-in .dg-sign-out-link:hover {
  background: rgba(138, 180, 248, 0.12);
}

@media (max-width: 720px) {
  .dg-auth-overlay,
  .dg-auth-signed-in {
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
