/* Your account (js/account.js): the welcome / sign-in screens, saved logins, and the account row
   in Settings. Light and dark follow app.css's tokens; clear of the notch and home bar. */

#account.acct-host {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg, #fff); color: var(--fg, #121214); -webkit-overflow-scrolling: touch;
}
.acct {
  max-width: 440px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-right, 0px) + 22px) calc(env(safe-area-inset-bottom, 0px) + 26px) calc(env(safe-area-inset-left, 0px) + 22px);
  animation: acct-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes acct-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acct { animation: none; } }
.acct h1 { margin: 6px 0 8px; font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.acct h1:focus { outline: none; }
.acct-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 4vh 0 4px; }
.acct-logo { width: 76px; height: 76px; border-radius: 24px; background: var(--accent, #ffcf24); color: #121214; display: grid; place-items: center; margin-bottom: 14px; }
.acct-logo svg { width: 40px; height: 40px; }
.acct[data-screen="welcome"] .acct-lede { text-align: center; }
.acct-lede { margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: var(--muted, #6e6e76); }
.acct-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted, #6e6e76); text-align: center; }
.acct-label { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #6e6e76); margin: 0 0 8px; }
.acct-ways { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; }
.acct-ways .btn + .btn { margin-top: 0; }
.acct .btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 16px; }
.acct .btn svg { width: 20px; height: 20px; flex: none; }
.acct-apple, .acct-apple-2 { background: #000 !important; color: #fff !important; }
@media (prefers-color-scheme: dark) { .acct-apple, .acct-apple-2 { background: #fff !important; color: #000 !important; } }
.acct-google { background: var(--bg, #fff) !important; color: var(--fg, #121214) !important; box-shadow: inset 0 0 0 1.5px var(--line, #dcdce2); }
.acct .btn.secondary { margin-top: 8px; }
.acct-ways .btn.secondary { margin-top: 0; }
.acct-link, .acct-back {
  border: 0; background: none; color: var(--fg, #121214); font: inherit; font-weight: 700; font-size: 15.5px;
  min-height: 44px; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.acct-link { align-self: center; margin-top: 6px; }
.acct-back { align-self: flex-start; text-decoration: none; color: var(--muted, #6e6e76); margin: -10px 0 4px -4px; }
.acct-field input { width: 100%; }
.field .acct-at { display: flex; margin: 0; font-size: inherit; color: inherit; align-items: center; gap: 2px; border-radius: 14px; background: var(--chip, #f2f2f5); padding-left: 14px; }
.acct-at b { color: var(--muted, #6e6e76); font-size: 17px; }
.acct-at input { background: transparent !important; border: 0; padding-left: 4px; }
.field .acct-pw { position: relative; display: block; margin: 0; font-size: inherit; color: inherit; }
.acct-pw input { padding-right: 52px; }
.acct-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted, #6e6e76); display: grid; place-items: center; cursor: pointer; }
.acct-eye svg { width: 22px; height: 22px; }
.acct-eye[aria-pressed="true"] { color: var(--fg, #121214); }
.acct-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted, #6e6e76); min-height: 1.2em; }
.acct-note.good { color: var(--ok, #1fbf6a); font-weight: 700; }
.acct-note.bad { color: var(--heart-text, #c8102e); font-weight: 700; }
.acct-error { margin: 4px 0 10px; min-height: 1.3em; font-size: 14.5px; font-weight: 700; color: var(--heart-text, #c8102e); }
.acct-error:empty { margin: 0; min-height: 0; }
.acct-photo > span:last-child { font-size: 15px; }
.acct-photo { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; cursor: pointer; font-weight: 700; color: var(--muted, #6e6e76); }
.acct-pic { display: block; }
.acct-avatar {
  display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; font-weight: 800; color: #121214;
  background: var(--chip, #f2f2f5); line-height: 1;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-code {
  margin: 4px 0 14px; padding: 18px 14px; border-radius: 16px; background: var(--chip, #f2f2f5); text-align: center;
  font: 800 19px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; word-break: break-all; user-select: all;
}
.acct-row { display: flex; gap: 8px; }
.acct-row .btn { margin-top: 0 !important; }
.acct-check { margin: 16px 0 12px; }
.acct-in-sheet { padding: 0; min-height: 0; }

/* saved logins */
.acct-saved { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.acct-tile { display: flex; align-items: center; gap: 4px; border-radius: 18px; background: var(--chip, #f2f2f5); padding-right: 6px; margin-bottom: 8px; }
.acct-saved .acct-tile { margin-bottom: 0; }
.acct-tile.on { box-shadow: inset 0 0 0 2px var(--fg, #121214); }
.acct-tile-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 18px; min-height: 64px;
}
.acct-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acct-tile-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-tile-text small { font-size: 13.5px; color: var(--muted, #6e6e76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-tile-tag { font-size: 12px; font-weight: 700; color: var(--muted, #6e6e76); }
.acct-tile-remove { border: 0; background: none; color: var(--muted, #6e6e76); font: inherit; font-size: 13.5px; font-weight: 700; min-height: 44px; padding: 0 10px; cursor: pointer; }

/* Settings: the row at the top, and the account sheet */
.acct-me { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 6px; border-radius: 20px; background: var(--chip, #f2f2f5); }
.acct-me-main { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 6px; cursor: pointer; }
.acct-chev { font-size: 26px; color: var(--muted, #6e6e76); }
.acct-me-actions { display: flex; gap: 8px; padding: 0 6px 6px; }
.acct-me-actions .tab { flex: 1; }
.acct-item-v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ask-card { padding: 14px; border-radius: 16px; background: var(--chip, #f2f2f5); margin: 0 0 12px; }
.ask-card p { margin: 0 0 10px; line-height: 1.45; }
.ask-actions { display: flex; gap: 8px; }
.ask-actions .btn { margin-top: 0 !important; }

/* the camera's avatar button with a profile photo */
#profileBtn.has-photo { padding: 0; overflow: hidden; }
#profileBtn.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
