/* Sign-in, credits and buying: the header corner and two dialogs. */
.account { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; }
.account .credits { border: 0; cursor: pointer; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; }
.account .credits:hover { background: #ebebe9; }
button.credits { background: var(--soft); }
button.small { padding: 6px 14px; font-size: 14px; }
button.link { background: none; color: var(--muted); padding: 4px 2px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.acct-who { color: var(--muted); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-face { width: 26px; height: 26px; border-radius: 50%; }

.acct-dialog { border: 0; border-radius: 14px; padding: 22px 24px 18px; width: min(400px, 94vw); color: var(--ink); }
.acct-dialog.wide { width: min(560px, 94vw); }
.acct-dialog::backdrop { background: rgba(10, 10, 10, .5); }
.acct-dialog h2 { margin: 0 32px 10px 0; }
.acct-dialog h3 { margin: 20px 0 6px; }
.acct-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.acct-muted { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.acct-why { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); color: var(--ink); font-weight: 600; font-size: 14px; }
.acct-google { min-height: 44px; display: flex; justify-content: center; margin: 6px 0 12px; }
.acct-google:empty { display: none; }
#signin-dev { width: 100%; }

.acct-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.acct-pack { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 14px 16px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.acct-pack:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.acct-pack strong { font-size: 17px; }
.acct-pack span { font-size: 15px; }
.acct-pack small { color: var(--muted); font-weight: 400; }
.acct-pack.busy { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }

.acct-costs { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-costs td { padding: 6px 0; border-top: 1px solid var(--line); }
.acct-costs td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 12px; }

.acct-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; box-shadow: 0 8px 30px rgba(20, 22, 35, .25); z-index: 10; }

@media (max-width: 560px) {
  .acct-who { display: none; }
}
