/* Account controls shared by the sign-in page, the live feed, and the app. */

.header-end { display: flex; align-items: center; gap: 4px; min-width: 0; }

.account-signin {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text, #f4efe4); font: 700 15px/1 var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-decoration: none; white-space: nowrap;
}
.account-signin:hover { background: var(--surface-2, #152433); color: var(--text, #f4efe4); }

.account-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-strong, #345069); background: var(--surface, #0f1b26); color: var(--text, #f4efe4);
}
.account-button[aria-expanded="true"] { border-color: var(--accent, #f2a900); color: var(--accent, #f2a900); }

.account-signin--floating,
.account-slot--floating {
  position: fixed; z-index: 10000;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
}
.account-slot--floating { background: transparent; }

.account-menu {
  position: fixed; z-index: 10001; min-width: 220px; padding: 6px;
  border-radius: 12px; border: 1px solid #345069; background: #0f1b26;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.account-menu a,
.account-menu button {
  display: flex; width: 100%; min-height: 44px; align-items: center;
  padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: #f4efe4; font: 600 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left; text-decoration: none; cursor: pointer;
}
.account-menu a:hover,
.account-menu button:hover { background: #152433; color: #f4efe4; }

.account-signin[hidden],
.account-slot[hidden],
.account-menu[hidden],
.night-map[hidden],
.night-scrim[hidden] { display: none !important; }

.signin-actions { display: flex; flex-direction: column; gap: 12px; }
.provider-apple,
.provider-google,
.provider-email,
.provider-skip {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 8px;
  font: 700 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none; cursor: pointer;
}
.provider-apple { border: 0; background: #f5f5f7; color: #111; }
.provider-apple:hover { background: #fff; color: #111; }
.provider-google { border: 1px solid #344656; background: #131e29; color: #e9eef2; }
.provider-google:hover { background: #1a2836; color: #e9eef2; }
.provider-email { border: 1px solid #f2a900; background: transparent; color: #f2a900; }
.provider-email:hover { background: rgba(242, 169, 0, 0.12); color: #ffbe24; }
.provider-skip { border: 1px solid #344656; background: transparent; color: #e9eef2; }
.provider-skip:hover { background: #152433; color: #f4efe4; }
.provider-text {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; color: #8fd9ff; font-weight: 700; text-decoration: none;
}
.provider-text:hover { color: #c5ecff; text-decoration: underline; }
.google-mark {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: #1a73e8; font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.signin-line, .signin-note { color: #bcc9da; font-size: 15px; line-height: 1.45; text-align: center; }
.signin-note { font-size: 14px; }

.account-ask {
  width: min(420px, calc(100% - 32px)); margin: auto; padding: 24px 20px 20px;
  border: 1px solid #344656; border-radius: 18px; background: #0d151d; color: #e9eef2;
}
.account-ask::backdrop { background: rgba(6, 11, 17, 0.72); }
.account-ask h2 {
  margin: 0 0 18px; text-align: center; font-size: 22px; line-height: 1.25; font-weight: 800;
  text-wrap: balance;
}
.account-ask button:disabled,
.signin-actions button:disabled { opacity: 0.55; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .account-ask, .account-ask::backdrop { transition: none; }
}
