/* =============================================================================
   17-auth-flow-setup.css — v804
   ─────────────────────────────────────────────────────────────────────────────
   Shelfd auth + onboarding flow.
   Sign In / Reset / Create Account / Setup full-page panels.
   Slide up from bottom, charcoal black surfaces, soft lavender accents,
   Söhne font. Mobile/PWA-first, ProMotion/120Hz friendly: transform + opacity
   only during motion, no layout animation.
   ========================================================================= */

/* ─────── Landing-page auth row (between Creator Shelf and Google) ─────── */
.shelfd-landing-auth-row {
  width: min(360px, 92vw);
  margin: 4px auto 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.shelfd-landing-auth-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,181,253,0.22);
  border-radius: 999px;
  color: #f0eafc;
  font-family: 'Sohne', 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}
.shelfd-landing-auth-btn:hover {
  background: rgba(167,139,250,0.10);
  border-color: rgba(196,181,253,0.42);
  color: #ffffff;
}
.shelfd-landing-auth-btn:active { transform: scale(0.985); }
.shelfd-landing-auth-signin {
  background: linear-gradient(135deg, rgba(139,92,246,0.20), rgba(124,58,237,0.10));
}

.shelfd-landing-auth-divider {
  width: 10px;
  min-height: 42px;
  align-self: stretch;
  justify-self: center;
  position: relative;
  pointer-events: none;
}

.shelfd-landing-soft-divider,
.shelfd-landing-section-divider {
  width: min(360px, 92vw);
  height: 12px;
  margin: 8px auto 10px;
  position: relative;
  background: transparent;
  border-radius: 999px;
  pointer-events: none;
}

.shelfd-landing-section-divider {
  margin: 10px auto 12px;
}

.shelfd-landing-auth-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(208,196,255,0.46) 18%, rgba(208,196,255,0.62) 50%, rgba(208,196,255,0.46) 82%, rgba(255,255,255,0));
  box-shadow: 0 0 0 1px rgba(208,196,255,0.06), 0 0 10px rgba(139,92,246,0.12);
  border-radius: 999px;
}

.shelfd-landing-soft-divider::before,
.shelfd-landing-section-divider::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(208,196,255,0.40) 14%, rgba(208,196,255,0.52) 50%, rgba(208,196,255,0.40) 86%, rgba(255,255,255,0));
  box-shadow: 0 0 0 1px rgba(208,196,255,0.04), 0 0 14px rgba(139,92,246,0.08);
  border-radius: 999px;
}

.shelfd-landing-guest-btn {
  width: min(360px, 92vw);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.14);
  color: rgba(240,234,252,0.86);
  font-weight: 500;
}

.shelfd-guest-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.shelfd-guest-auth-modal[hidden] {
  display: none !important;
}

.shelfd-guest-auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shelfd-guest-auth-card {
  appearance: none;
  -webkit-appearance: none;
  width: min(320px, 82vw);
  border: 1px solid rgba(196,181,253,0.22);
  border-radius: 18px;
  background: #0b0b0d;
  color: #ffffff;
  padding: 22px 20px 20px;
  font-family: 'Sohne', 'DM Sans', system-ui, -apple-system, sans-serif;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  transform: scale(0.96) translateY(6px);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

.shelfd-guest-auth-modal.is-open .shelfd-guest-auth-card {
  transform: none;
}

.shelfd-guest-auth-card span {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.shelfd-guest-auth-card small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: rgba(232,227,243,0.68);
}

body.guest-browsing-mode .edit-profile-btn,
body.guest-browsing-mode .mobile-edit-profile-btn,
body.guest-browsing-mode .logout-btn,
body.guest-browsing-mode .header-dm-btn,
body.guest-browsing-mode #header-dm-btn,
body.guest-browsing-mode #mylist-header-cog,
body.guest-browsing-mode .feed-composer-card,
body.guest-browsing-mode #ftab-requests,
body.guest-browsing-mode #ftab-add-friend,
body.guest-browsing-mode .user-avatar {
  display: none !important;
}

/* ─────── v835: PWA-safe inline sign-in form on the landing page ───────
   Rendered directly in the document flow. NO fixed-position parent, NO
   transform, NO overlay, NO slide-up panel. The iOS PWA keyboard bug
   affecting the slide-up .shelfd-auth-page panels cannot apply here
   because there's nothing for iOS WebKit's compositor to mis-promote. */
.shelfd-landing-inline-signin {
  width: min(360px, 92vw);
  margin: 4px auto 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,181,253,0.22);
  border-radius: 18px;
  font-family: 'Sohne', 'DM Sans', sans-serif;
}
.shelfd-landing-inline-signin[hidden] { display: none !important; }
.shelfd-landing-inline-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(196,181,253,0.78);
  letter-spacing: 0.3px;
  margin-bottom: -4px;
}
.shelfd-landing-inline-input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,181,253,0.16);
  border-radius: 12px;
  padding: 13px 14px;
  color: #ffffff;
  font-family: inherit;
  /* 16px minimum — anything smaller triggers iOS focus auto-zoom which
     can fight `user-scalable=no` and break keyboard appearance. */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
  -webkit-touch-callout: default;
  transition: border-color 160ms ease, background 160ms ease;
}
.shelfd-landing-inline-input::placeholder { color: rgba(232,227,243,0.32); }
.shelfd-landing-inline-input:focus {
  background: rgba(255,255,255,0.09);
  border-color: rgba(196,181,253,0.42);
}
.shelfd-landing-inline-error {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.22);
  color: #fecaca;
}
.shelfd-landing-inline-error[hidden] { display: none !important; }
.shelfd-landing-inline-submit {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139,92,246,0.25);
  margin-top: 4px;
}
.shelfd-landing-inline-submit:active { transform: scale(0.985); }
.shelfd-landing-inline-submit:disabled { opacity: 0.55; cursor: progress; }
.shelfd-landing-inline-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 0 0;
  color: rgba(196,181,253,0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
}
.shelfd-landing-inline-link:active { color: #ffffff; }

.login-cta-buttons {
  width: min(360px, 92vw);
  margin: 0 auto 2px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.gis-signin-target {
  width: 100%;
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: none;
  transform: none !important;
}

.gis-signin-target:empty {
  min-height: 0;
  margin: 0 auto;
}

.login-screen .google-btn.gis-legacy-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(196,181,253,0.22) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #f0eafc !important;
  box-shadow: none !important;
  font-family: 'Sohne', 'DM Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.login-screen .google-btn.gis-legacy-btn:hover {
  background: rgba(167,139,250,0.10) !important;
  border-color: rgba(196,181,253,0.42) !important;
  color: #ffffff !important;
}

.login-screen .google-btn.gis-legacy-btn img {
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* ─────── Full-page panel base (matches Search page slide-up) ─────── */
.shelfd-auth-page {
  position: fixed;
  inset: 0;
  z-index: 5050;
  background: #181c20;
  color: #ffffff;
  font-family: 'Sohne', 'DM Sans', system-ui, -apple-system, sans-serif;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* v833: removed `-webkit-overflow-scrolling: touch`. The legacy iOS
     momentum-scroll context it creates has been linked to suppressed
     soft-keyboard behavior for descendant inputs in installed PWA
     standalone mode. Modern iOS scrolls smoothly without it. */
  padding: max(env(safe-area-inset-top, 0px), 0px) 0 max(env(safe-area-inset-bottom, 24px), 24px);
}
.shelfd-auth-page.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  /* Drop GPU layer once at rest — keeps iOS PWA scroll smooth */
  will-change: auto;
}

.shelfd-auth-shell {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* ─────── Top bar with back button ─────── */
.shelfd-auth-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 6px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #181c20 0%, rgba(24,28,32,0.92) 88%, rgba(24,28,32,0) 100%);
  z-index: 5;
}
.shelfd-auth-back {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.shelfd-auth-back:hover { background: rgba(255,255,255,0.09); }
.shelfd-auth-back:active { transform: scale(0.92); }
.shelfd-auth-back svg { width: 18px; height: 18px; }

.shelfd-auth-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.shelfd-auth-topbar-spacer { width: 38px; height: 38px; flex-shrink: 0; }

/* ─────── Form layout ─────── */
.shelfd-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 24px;
}
.shelfd-auth-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(232,227,243,0.72);
}

.shelfd-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shelfd-auth-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(196,181,253,0.78);
  letter-spacing: 0.3px;
}
.shelfd-auth-field input[type="text"],
.shelfd-auth-field input[type="email"],
.shelfd-auth-field input[type="password"] {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,181,253,0.16);
  border-radius: 12px;
  padding: 13px 14px;
  color: #ffffff;
  font-family: inherit;
  /* v833: bumped from 15px → 16px. Inputs below 16px trigger iOS Safari's
     focus auto-zoom; combined with the page's `user-scalable=no` viewport,
     iOS occasionally aborts the zoom AND the keyboard at the same time.
     16px is the documented minimum that skips auto-zoom entirely. */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 200ms ease;
  /* v833 iOS PWA keyboard hardening: explicitly allow text selection and
     default touch-action so no ancestor rule can suppress the keyboard. */
  -webkit-user-select: text;
  user-select: text;
  touch-action: auto;
  -webkit-touch-callout: default;
}
.shelfd-auth-field input::placeholder { color: rgba(232,227,243,0.32); }
.shelfd-auth-field input:focus {
  background: rgba(255,255,255,0.09);
  border-color: rgba(196,181,253,0.42);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.16);
}
.shelfd-auth-field input:-webkit-autofill,
.shelfd-auth-field input:autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #1e2228 inset !important;
  caret-color: #ffffff;
}

.shelfd-auth-hint {
  font-size: 12px;
  font-weight: 500;
  color: rgba(196,181,253,0.55);
  letter-spacing: 0.2px;
}
.shelfd-auth-hint[data-kind="error"] { color: #fecaca; }
.shelfd-auth-hint[data-kind="ok"] { color: #99f6e4; }

/* ─────── Password eye toggle ─────── */
.shelfd-auth-password-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.shelfd-auth-password-wrap input { padding-right: 50px; }
.shelfd-auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: rgba(196,181,253,0.78);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background 140ms ease;
}
.shelfd-auth-eye:hover { color: #ffffff; background: rgba(255,255,255,0.06); }
.shelfd-auth-eye svg { width: 18px; height: 18px; display: block; }

/* ─────── Banners ─────── */
.shelfd-auth-error,
.shelfd-auth-message {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 10px;
}
.shelfd-auth-error {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.22);
  color: #fecaca;
}
.shelfd-auth-message {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.20);
  color: #a5f3fc;
}
.shelfd-auth-error[hidden],
.shelfd-auth-message[hidden] { display: none !important; }

/* ─────── Primary submit + plain link ─────── */
.shelfd-auth-submit {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 24px rgba(139,92,246,0.25);
  margin-top: 4px;
}
.shelfd-auth-submit:hover { box-shadow: 0 12px 32px rgba(139,92,246,0.35); }
.shelfd-auth-submit:active { transform: scale(0.985); }
.shelfd-auth-submit:disabled { opacity: 0.55; cursor: progress; }

.shelfd-auth-text-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: rgba(196,181,253,0.85);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shelfd-auth-text-link:hover { color: #ffffff; text-decoration: underline; }

/* ─────── SETUP FLOW ─────── */
.shelfd-setup-shell {
  padding: 28px 22px 24px;
  gap: 22px;
  align-items: stretch;
}
.shelfd-setup-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 8px;
}
.shelfd-setup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  transition: background 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shelfd-setup-page[data-step="1"] .shelfd-setup-dot[data-dot="1"],
.shelfd-setup-page[data-step="2"] .shelfd-setup-dot[data-dot="2"],
.shelfd-setup-page[data-step="3"] .shelfd-setup-dot[data-dot="3"] {
  background: #c4b5fd;
  transform: scale(1.18);
}
.shelfd-setup-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: shelfdSetupStepIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.shelfd-setup-step[hidden] { display: none !important; }
@keyframes shelfdSetupStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.shelfd-setup-title {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 2px;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
}
.shelfd-setup-copy {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: rgba(232,227,243,0.65);
  line-height: 1.55;
}

/* Photo step */
.shelfd-setup-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.shelfd-setup-photo-preview {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(196,181,253,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(196,181,253,0.65);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.shelfd-setup-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.shelfd-setup-photo-preview:hover {
  border-color: rgba(196,181,253,0.55);
  background: rgba(167,139,250,0.08);
}
.shelfd-setup-photo-placeholder { padding: 8px; text-align: center; }
.shelfd-setup-photo-btn {
  appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,181,253,0.22);
  border-radius: 999px;
  padding: 10px 18px;
  color: #f0eafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease, border-color 160ms ease;
}
.shelfd-setup-photo-btn:hover {
  background: rgba(167,139,250,0.12);
  border-color: rgba(196,181,253,0.42);
  color: #ffffff;
}
.shelfd-setup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.shelfd-setup-actions .shelfd-auth-submit { flex: 1; }
.shelfd-setup-skip {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 13px 18px;
  color: rgba(232,227,243,0.78);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.shelfd-setup-skip:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
}

/* Welcome step */
.shelfd-setup-welcome {
  align-items: center;
  text-align: center;
  padding-top: 12px;
}
.shelfd-setup-welcome-pulse {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 14px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shelfd-setup-welcome-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #c4b5fd 40%, #8b5cf6 100%);
  box-shadow: 0 0 30px rgba(167,139,250,0.55);
  animation: shelfdSetupCorePulse 2400ms ease-in-out infinite;
}
.shelfd-setup-welcome-ring,
.shelfd-setup-welcome-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(196,181,253,0.45);
  animation: shelfdSetupRingExpand 2400ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
  opacity: 0;
}
.shelfd-setup-welcome-ring-2 {
  animation-delay: 1200ms;
  border-color: rgba(196,181,253,0.30);
}
@keyframes shelfdSetupCorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes shelfdSetupRingExpand {
  0% { transform: scale(0.6); opacity: 0; }
  20% { opacity: 0.85; }
  100% { transform: scale(1.45); opacity: 0; }
}
.shelfd-setup-welcome-title { font-size: 26px; }
.shelfd-setup-welcome-cta {
  width: 100%;
  max-width: 280px;
  align-self: center;
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .shelfd-auth-page { transition: none; }
  .shelfd-setup-step { animation: none; }
  .shelfd-setup-welcome-core,
  .shelfd-setup-welcome-ring,
  .shelfd-setup-welcome-ring-2 { animation: none; }
}

@media (max-width: 480px) {
  .shelfd-auth-shell { padding: 0 16px; }
  .shelfd-setup-title { font-size: 20px; }
  .shelfd-setup-welcome-title { font-size: 24px; }
}

/* v833: body scroll-lock REMOVED.
   In iOS WKWebView installed PWA standalone mode, setting
   `overflow: hidden` on <body> while a fixed-position panel is on top
   silently suppresses the soft keyboard when an <input> inside the
   panel is tapped. Focus lands on the input but iOS never raises the
   keyboard. The panel itself is `position: fixed; inset: 0;` so the
   landing screen behind it can't scroll-leak anyway — the body lock
   was redundant AND actively harmful. Class name kept so any future
   per-panel rules can still hook off body.shelfd-auth-page-open. */
body.shelfd-auth-page-open { /* no-op intentionally — see comment above */ }
