/* Google sign-in (account-sign-in.js): one line in Settings and in the resident panel, and the
   question asked before a device takes up its account's progress. */
.account-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; font-size: 13.5px; }
.account-line[hidden], .account-line [hidden] { display: none; }
.account-line svg { flex: none; width: 16px; height: 16px; }
.account-signin { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; }
.account-signin:hover { border-color: var(--faint); }
.account-state { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.account-signout { flex: none; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.account-signout:hover { color: var(--ink); border-color: var(--faint); }
.resident-panel .account-line { flex: none; padding: 10px 16px 12px; border-top: 1px solid var(--hud-line); }
#settingsPanel .account-line { min-width: 232px; }

/* Where the resident toast sits (resident-ui.css); sign-in news comes on a page load, when there is none. */
.account-news.hud { position: fixed; z-index: 32; left: 50%; bottom: calc(var(--bottom-hud, 0px) + 2 * var(--gap) + 48px); margin: 0; max-width: min(520px, calc(100vw - 2 * var(--gap))); padding: 9px 18px; border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 22%, var(--panel)); font-size: 14px; font-weight: 600; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
.account-news.hud.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (max-width: 720px) { .account-news.hud { bottom: auto; top: calc(var(--bar, 50px) + var(--gap) + 92px); } }
@media (prefers-reduced-motion: reduce) { .account-news.hud { transition-duration: 0s; transition-delay: 0s; } }
body.pip .account-news, body.record .account-news { display: none !important; }

.account-dim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); }
.account-ask { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 2 * var(--gap))); padding: 22px 20px 18px; text-align: center; }
.account-dim[hidden], .account-ask[hidden] { display: none; }
.account-ask h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.account-ask p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
.account-ask .btn { justify-content: center; min-height: 44px; font-size: 14px; white-space: normal; }
.account-ask small { color: var(--hud-muted, var(--muted)); font-size: 12.5px; }
body.pip .account-ask, body.record .account-ask, body.pip .account-dim, body.record .account-dim { display: none !important; }
