/* Account (js/account.js): Sign in, or their circle, at the top right of the home page's bar; the
   circle opens their card, a violet panel sliding in from the right (as the Index does from the
   left), in the profile card's colors. */
.acct { position: relative; margin-left: auto; flex: none; }
.acct-signin { font-weight: 700; }
.acct-signin-ico { display: none; }
/* Orbit's crowded top row on phones: just the 👤 (the bars elsewhere have room for "Sign in") */
@media (max-width: 700px) {
  .orbit-acct .acct-signin { width: 36px; padding: 0; justify-content: center; }
  .orbit-acct .acct-signin-ico { display: inline; }
  .orbit-acct .acct-signin-label { display: none; }
}

/* "Sign in": accounts are coming (a small bubble under the button, springy as the site's others) */
.acct-soon { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: min(300px, calc(100vw - 32px)); box-sizing: border-box; display: grid; gap: 8px;
  padding: 16px; border-radius: 20px; background: #fff; color: var(--navy, #1e1a67); text-align: left; box-shadow: 0 18px 44px rgba(30, 26, 103, .22);
  transform-origin: calc(100% - 30px) -10px; animation: acct-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.acct-soon[hidden] { display: none; }
.acct-soon b { font-size: 16px; }
.acct-soon p { margin: 0; font-size: 14px; line-height: 1.45; color: #4b4870; }
.acct-soon small { color: #8b88ad; font-size: 12px; }
.acct-demo { padding: 10px 12px; border: 0; border-radius: 14px; background: #21167c; color: #fff; font: 700 13px/1.2 var(--font-read); text-align: left; cursor: pointer; }
.acct-demo:hover { background: #3424b8; }
@keyframes acct-pop { from { opacity: 0; transform: scale(.6); } }

/* their circle */
.acct-me { display: grid; place-items: center; width: var(--nav-h); height: var(--nav-h); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.acct-av { display: inline-grid; place-items: center; flex: none; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(45deg, #c8a8ff, #a98bff 50%, #f0b4f1); color: #1e1a67; font: 800 13px/1 var(--font-read); letter-spacing: .02em; }
/* (a profile photo in place of the initials: js/account.js avatar) */
.acct-av.has-photo, .mk-av.has-photo { overflow: hidden; background: #e8e2ff; }
.acct-av.has-photo > img, .mk-av.has-photo > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acct-me .acct-av { box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(30, 26, 103, .25); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s; }
.acct-me:hover .acct-av, .acct-me[aria-expanded="true"] .acct-av { transform: scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #a98bff, 0 6px 18px rgba(30, 26, 103, .3); }
.acct-me:focus-visible { outline: 3px solid #0022ff; outline-offset: 3px; }

/* their card */
.acct-scrim { position: fixed; inset: 0; z-index: 1600; background: rgba(24, 18, 80, .28); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body.acct-open .acct-scrim { opacity: 1; pointer-events: auto; }
.acct-panel { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 1700; width: min(360px, calc(100vw - 56px));   /* (a strip of the page shows, to tap closed) */ box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 16px; padding: 20px 18px 16px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 70% at 100% 0%, #8d5be0, #4b33c9 45%, #21167c); box-shadow: -10px 0 40px rgba(24, 18, 80, .35);
  transform: translateX(calc(100% + 40px)); visibility: hidden; transition: transform .45s cubic-bezier(.34, 1.25, .64, 1), visibility 0s .45s; }
body.acct-open .acct-panel { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.34, 1.25, .64, 1), visibility 0s; }
.acct-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.acct-av.is-lg { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.acct-who { display: grid; gap: 2px; min-width: 0; }
.acct-who b { font-size: 19px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 13px; opacity: .75; }
.acct-who em { justify-self: start; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 11px; font-weight: 700; }
.acct-x { --glyph: 12px; align-self: start; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.acct-x:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.acct-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acct-counts a { display: grid; justify-items: center; padding: 8px 4px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .78); font-size: 12px; text-decoration: none; transition: background .2s; }
.acct-counts a:hover { background: rgba(255, 255, 255, .22); }
.acct-counts b { font-size: 18px; color: #fff; line-height: 1.15; }
.acct-menu { display: grid; gap: 4px; }
.acct-menu > a, .acct-menu > span, .acct-menu > button { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 16px; color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.acct-menu > button { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.acct-menu > a:hover, .acct-menu > a:focus-visible, .acct-menu > button:hover, .acct-menu > button:focus-visible { background: rgba(255, 255, 255, .14); outline: none; transform: translateX(-2px); }
.acct-menu i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-style: normal; font-size: 17px; }
.acct-menu b { display: block; font-size: 15px; }
.acct-menu small { display: block; color: rgba(255, 255, 255, .68); font-size: 12px; }
.acct-menu .is-soon { opacity: .6; }
.acct-menu .is-soon em { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-style: normal; font-size: 11px; font-weight: 800; }
.acct-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.acct-settings, .acct-out { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 16px; font: 700 14px/1.1 var(--font-read); text-decoration: none; cursor: pointer; }
.acct-settings { flex: 1; background: #fff; color: #21167c; }
.acct-settings:hover { background: #f0ecff; }
.acct-out { background: rgba(255, 255, 255, .14); color: #fff; }
.acct-out:hover { background: rgba(255, 255, 255, .24); }
.acct-menu[hidden], .acct-favs[hidden] { display: none; }
.acct-n:empty { display: none; }
.acct-n { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #21167c; font-style: normal; font-size: 12px; font-weight: 800; text-align: center; }

/* Favorites, inside the card: people, then bills; each a link with its ★ to take it off */
.acct-favs { display: grid; gap: 6px; animation: acct-in .35s cubic-bezier(.34, 1.4, .64, 1) both; }
.acct-menu:not([hidden]) { animation: acct-in-back .35s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes acct-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes acct-in-back { from { opacity: 0; transform: translateX(-30px); } }
.acct-favs-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.acct-back { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 700 16px/1 var(--font-read); cursor: pointer; }
.acct-back:hover { background: rgba(255, 255, 255, .28); }
.acct-favs-body { display: grid; gap: 6px; }
.acct-sub { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.acct-sub span { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); letter-spacing: 0; }
.acct-fav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 16px; background: rgba(255, 255, 255, .1); transition: opacity .2s, transform .2s; }
.acct-fav.is-going { opacity: 0; transform: translateX(16px); }
.acct-fav > a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; color: #fff; text-decoration: none; }
.acct-fav > a:hover b { text-decoration: underline; }
.acct-fav b { display: block; font-size: 14px; }
.acct-fav small { display: block; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-fav em { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 11px; font-weight: 700; }
.acct-face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px #fff; }
.acct-face.is-d { box-shadow: 0 0 0 3px #1f4fff; } .acct-face.is-r { box-shadow: 0 0 0 3px #ff1f1f; }
.acct-face.is-bill, .acct-face.is-none { display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .16); box-shadow: none; font-size: 17px; }
.acct-star { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #ffd36b; font-size: 19px; cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.acct-star:hover { background: rgba(255, 255, 255, .14); transform: scale(1.15); }
.acct-empty { margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.4; }
.acct-more { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.acct-more:hover { background: rgba(255, 255, 255, .24); }

/* the other pages' bar: the circle and Sign in sized to its buttons; what was at the bar's right end
   (Measures | Bills, Contact, the team's Sign out) sits just left of them */
.person-bar > :is(.ballot-switch, .contact-slot:not([hidden]), .admin-signout:not([hidden])) ~ .acct { margin-left: 0; }
/* (the home page: its page buttons sit right beside Sign in / the circle) */
.land-links ~ .acct { margin-left: 0; }
/* small phones, the fullest bars (a person's page, a position's: Fact check, Contact, Previously): Fact
   check down to its ✓, Previously to its count, Sign in to its 👤, so the row still fits */
@media (max-width: 480px) {
  .person-bar:has(.fc-toggle) .fc-toggle { width: var(--nav-h); padding: 0; justify-content: center; }
  .person-bar:has(.fc-toggle) .fc-toggle-short, .person-bar:has(.fc-toggle) .prev-short { display: none; }
  .person-bar:has(.fc-toggle) .acct-signin { width: var(--nav-h); padding: 0; justify-content: center; }
  .person-bar:has(.fc-toggle) .acct-signin-ico { display: inline; }
  .person-bar:has(.fc-toggle) .acct-signin-label { display: none; }
}
/* Orbit: a spot of its own, top right; Reset and Swap (and on phones Filter and the search) make room */
.orbit-acct { position: fixed; top: var(--nav-gap); right: 14px; z-index: 1001; display: flex; }
.orbit-acct .acct { margin: 0; }

.person-bar .acct-me { width: var(--nav-h); height: var(--nav-h); }

@media (prefers-reduced-motion: reduce) { .acct-panel, body.acct-open .acct-panel { transition: none; } .acct-soon { animation: none; } }

/* ---------- the sign-in dialog (js/account.js; from mock-signin): Google or an email code, then a name ---------- */
.si-scrim { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(20, 14, 70, .45); backdrop-filter: blur(3px); }
.si { position: relative; box-sizing: border-box; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 26px 24px; border-radius: 28px;
  background: #fff; color: #150e5e; box-shadow: 0 30px 80px rgba(20, 14, 70, .35); animation: si-in .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes si-in { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.si-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1eefe; color: #21167c; font-size: 20px; cursor: pointer; }
.si-step[hidden] { display: none; }
.si-logo { display: block; height: 44px; margin: 0 auto 6px; }
.si h2 { margin: 6px 0 6px; font-size: 22px; text-align: center; }
.si-sub { margin: 0 0 18px; color: #5d5a7d; font-size: 14px; line-height: 1.45; text-align: center; }
.si-big { font-size: 40px; text-align: center; }
.si-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #dad6f5;
  color: #1f1f1f; font: 700 15px var(--font-read); text-decoration: none; }
.si-google:hover { box-shadow: inset 0 0 0 2px #a98bff; }
.si-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #8b88ad; font-size: 13px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: #e6e3fb; }
.si-form { display: grid; gap: 12px; }
.si-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.si-field input { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: #f1eefe; color: #150e5e; font: 500 16px var(--font-read); }
.si-field input:focus { outline: 3px solid #a98bff; background: #fff; }
.si-field small { font-weight: 500; color: #6b6890; }
.si-field small.is-ok { color: #0a7d4f; font-weight: 700; } .si-field small.is-bad { color: #b3261e; font-weight: 700; }
.si-code { letter-spacing: .4em; font-size: 22px !important; text-align: center; font-weight: 800 !important; }
.si-at { display: flex; align-items: center; border-radius: 14px; background: #f1eefe; }
.si-at > span { padding-left: 14px; color: #6b6890; font-weight: 700; }
.si-at input { padding-left: 4px; background: transparent; }
.si-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #3d3a6b; }
.si-check[hidden] { display: none; }
.si-check input { margin: 1px 0 0; flex: none; }   /* (the site's switch: css/theme.css) */
.si-check a { color: #4232d4; }
.si-go { padding: 13px; border: 0; border-radius: 14px; background: #21167c; color: #fff; font: 800 15px var(--font-read); cursor: pointer; }
.si-go:hover { background: #3424b8; } .si-go:disabled { opacity: .6; cursor: default; }
.si-note { margin: 14px 0 0; color: #6b6890; font-size: 12.5px; line-height: 1.5; text-align: center; }
.si-link { padding: 0; border: 0; background: none; color: #4232d4; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.si-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #fde8ec; color: #9b1c3a; font-size: 13.5px; font-weight: 600; }
.si-error[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .si { animation: none; } }

.si-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: #5d5890; }   /* the join form's note on recommendations */
