/* The sign-in dialog (public/account.js) and the account line in the alerts
   panel. Colours come from the page's own variables, so dark mode follows. */
.account-dialog {
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}
.account-dialog::backdrop { background: rgba(10, 20, 14, .45); }
.account-dialog h2 { margin: 0 2rem .45rem 0; font: 600 1.35rem/1.2 var(--font-display, Georgia, serif); }
.account-dialog p { margin: 0 0 .8rem; }
.account-lead { color: var(--muted); }
.account-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 2.2rem; height: 2.2rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.account-close:hover, .account-close:focus-visible { background: var(--bg); color: var(--text); }
.account-form { display: grid; gap: .45rem; margin-bottom: .6rem; }
.account-form label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.account-form input {
  width: 100%; box-sizing: border-box; padding: .7rem .8rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.account-send, .account-google {
  width: 100%; padding: .75rem 1rem; border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.account-send { border: 0; background: var(--green); color: #fff; }
.account-send:disabled { opacity: .6; cursor: progress; }
.account-google { border: 1px solid var(--border); background: var(--card); color: var(--text); }
.account-or { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .7rem; color: var(--muted); font-size: .85rem; }
.account-or::before, .account-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.account-status { min-height: 1.2em; font-size: .9rem; color: var(--muted); }
.account-status.error { color: var(--red); }
.account-sent-title { font-weight: 700; font-size: 1.05rem; }
.account-link { padding: 0; border: 0; background: none; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; }
.account-fine { margin: .4rem 0 0 !important; font-size: .78rem; color: var(--muted); }
.account-fine a { color: inherit; }

/* "Signed in as … · Sign out" above the watches and alerts. */
.account-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .9rem; }
.account-row .account-email { font-weight: 700; overflow-wrap: anywhere; }
