/* Phase 1.7 part D: accounts. Own file (like chips.css). Same language as Home: pure black, hairline #2a2a2e, radius 28,
   thin numerals, the pink -> mint gradient as the one accent, 44px+ tap targets. */

/* ---- sign-in sheet and the buttons shared with the Account screen */
.auth-btns { display: grid; gap: 10px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.auth-btn .ico { width: 24px; height: 24px; }
.auth-btn.soon { opacity: 0.6; }
.auth-btn em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.auth-btn.soon span { color: var(--muted); }
.auth-form { gap: 14px; }
.auth-err { color: var(--danger); font-size: 14px; line-height: 1.35; }
button.link { background: none; border: 0; padding: 0 8px; font: inherit; font-size: 15px; color: var(--accent); min-height: 44px; }
button.link.center, a.link.center { display: block; margin: 0 auto; text-align: center; }
a.link { color: var(--accent); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 3px; }
.fine a { color: var(--accent); text-underline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.big.ghost { border: 1px solid var(--line); }

/* ---- the guest banner on Home */
.save-banner {
  display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 4px; min-height: 60px; margin-bottom: -6px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding-left: 6px;
}
.save-banner .sb-main {
  display: grid; gap: 1px; text-align: left; min-height: 56px; padding: 6px 14px; border: 0; background: transparent; border-radius: 22px; min-width: 0;
}
.save-banner b { font-size: 16px; font-weight: 600; background: linear-gradient(90deg, var(--pink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.save-banner small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-banner .icon-btn.small { margin-right: 0; width: 44px; height: 44px; }
.save-banner .sb-main:active { background: var(--surface2); }

/* ---- Profile: the Account row */
.acct-row { display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 16px; text-align: left; font: inherit; }
.acct-row:active { background: var(--surface2); }
.acct-row .ri { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.acct-row .rt { display: grid; gap: 1px; min-width: 0; }
.acct-row b { font-size: 17px; font-weight: 500; }
.acct-row small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-row .chev { color: var(--muted); display: grid; place-items: center; font-style: normal; }
.acct-row .chev .ico { width: 20px; height: 20px; }

/* ---- Account screen */
.screen.account { gap: 18px; }
.acct { display: flex; flex-direction: column; gap: 18px; }
.acct-card { display: grid; grid-template-columns: 52px 1fr; gap: 6px 14px; align-items: center; padding: 16px; }
.acct-who { display: grid; gap: 1px; min-width: 0; }
.acct-who b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.acct-who small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-since { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.acct-since small { font-size: 13px; color: var(--muted); }
.acct-since b { font-size: 15px; font-weight: 500; }
.nudge {
  display: grid; gap: 4px; padding: 16px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid transparent; background-image: linear-gradient(var(--surface), var(--surface)), linear-gradient(135deg, var(--pink), var(--accent)); background-origin: border-box; background-clip: padding-box, border-box;
}
.nudge b { font-size: 16px; font-weight: 600; }
.nudge span { font-size: 14px; color: var(--muted); }
.nudge .btn { justify-self: start; margin-top: 8px; }
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.rows .row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; min-height: 66px; padding: 8px 14px; }
.rows .row + .row { border-top: 1px solid var(--line); }
.rows .row:not(:has(.ri)) { grid-template-columns: 1fr; }
.rows .ri { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); }
.rows .ri .ico { width: 20px; height: 20px; }
.rows .rt { display: grid; gap: 1px; min-width: 0; }
.rows .rt b { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .rt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .row-btns { display: flex; gap: 6px; }
.rows .btn.small { min-height: 44px; }
.here { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: #0c0d10; background: linear-gradient(135deg, var(--pink), var(--accent)); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.acct .sec-head { margin-bottom: -8px; }
@media (max-width: 380px) {
  .rows .row { grid-template-columns: 36px 1fr auto; gap: 10px; padding: 8px 10px; }
  .rows .ri { width: 36px; height: 36px; }
  .rows .row-btns { flex-direction: column; gap: 4px; }
}

/* Account screen: where passkeys / password live now */
.acct-note { display: grid; gap: 4px; padding: 16px; }
.acct-note b { font-size: 16px; font-weight: 600; }
.acct-note span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.auth-err.center { text-align: center; }
