/* "Welcome back" (welcome-back.js): a centered card on a tablet or computer, a sheet from the bottom on a phone. */
.wb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.wb__scrim { position: absolute; inset: 0; background: rgba(31, 26, 22, .32); opacity: 0; transition: opacity .25s ease; }
.wb__card {
  position: relative; width: 520px; max-width: 100%; max-height: calc(100vh - 48px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; padding: 28px 30px 24px; border-radius: 24px;
  background: var(--sand-50); box-shadow: 0 30px 70px -24px rgba(31, 26, 22, .55);
  opacity: 0; translate: 0 14px; transition: opacity .3s cubic-bezier(.2, .7, .3, 1), translate .35s cubic-bezier(.2, .7, .3, 1);
}
.wb.is-on .wb__scrim { opacity: 1; }
.wb.is-on .wb__card { opacity: 1; translate: 0 0; }
.wb__grab { display: none; }
.wb__eyebrow { margin: 0; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rust-600); }
.wb__title { margin: 0; font: 400 48px/.92 var(--display); text-transform: uppercase; text-wrap: balance; color: var(--ink-900); }
.wb__body { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-600); }
.wb__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wb__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sand-100); }
.wb__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rust-600); color: var(--sand-50); font: 400 15px/1 var(--display); }
.wb__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--ink-600); }
.wb__text strong { font-size: 15px; color: var(--ink-900); }
.wb__acts { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 6px; }
.wb__go { min-height: 46px; padding: 0 24px; }
.wb__note { margin: 0; font-size: 13px; color: var(--ink-500); text-align: right; }

/* Phone: a sheet over the bottom of the screen. */
.wb.is-phone { place-items: end stretch; padding: 0; }
.wb.is-phone .wb__card { width: auto; max-height: 88vh; border-radius: 28px 28px 0 0; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); translate: 0 40px; }
.wb.is-phone.is-on .wb__card { translate: 0 0; }
.wb.is-phone .wb__grab { display: block; width: 44px; height: 5px; margin: 0 auto 6px; border-radius: 999px; background: var(--sand-500); }
.wb.is-phone .wb__title { font-size: 40px; }
.wb.is-phone .wb__acts { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
.wb.is-phone .wb__go { min-height: 52px; }
.wb.is-phone .wb__later { min-height: 44px; }
.wb.is-phone .wb__note { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .wb__card, .wb__scrim { transition: none; }
}
