/* ── Auth screens ── */

.auth-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--body-bg);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Outfit', sans-serif;
  pointer-events: none;
  visibility: hidden;
}
.auth-screen.active {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}

/* When logged in, never show auth layers (fixes login strip beside app on return) */
html.app-logged-in .auth-screen {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  /* overflow:hidden clips reCAPTCHA iframes and causes auth/captcha-check-failed on prod */
  overflow: visible;
  box-shadow: 0 8px 40px var(--shadow-tint);
  position: relative;
}

/* Hero top */
.auth-hero {
  background: var(--pn);
  padding: 32px 28px 24px;
  text-align: center;
}
.auth-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
}
.auth-logo .brand-logo { width: 100%; height: 100%; display: block; border-radius: 12px; object-fit: fill; }
.auth-app-name { color: white; font-size: 22px; font-weight: 700; }
.auth-tagline  { color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 4px; }

/* Body */
.auth-body { padding: 28px; }
.auth-title { font-size: 17px; font-weight: 700; color: var(--pn); margin-bottom: 4px; }
.auth-sub   { font-size: 12px; color: #546E7A; margin-bottom: 18px; line-height: 1.55; }

.auth-methods {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 14px;
}
.firebase-recaptcha-slot {
  display: none;
  margin: 12px 0 4px;
  text-align: center;
}
.firebase-recaptcha-slot.visible {
  display: block;
}
.firebase-recaptcha-hint {
  font-size: 11px;
  color: #607D8B;
  margin: 0 0 8px;
  line-height: 1.45;
}
#firebase-recaptcha-container {
  min-height: 78px;
  display: flex;
  justify-content: center;
}
html.app-logged-in .firebase-recaptcha-slot,
html.app-logged-in #firebase-recaptcha-container {
  display: none !important;
}
html.auth-phone-primary .firebase-recaptcha-slot.visible {
  display: block;
}
html.auth-phone-primary .auth-methods,
html.auth-phone-primary #email-login-row,
html.auth-phone-primary #auth-method-email,
html.auth-phone-primary .auth-method-or {
  display: none !important;
}
.auth-method {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #CFD8DC;
  border-radius: var(--prs);
  background: #fff;
  color: #607D8B;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-method-or {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  align-self: center;
}
.auth-method-or-line {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(176, 190, 197, 0) 0%, #B0BEC5 45%, #B0BEC5 55%, rgba(176, 190, 197, 0) 100%);
}
.auth-method-or-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78909C;
  background: linear-gradient(180deg, #fff 0%, #F7F9FB 100%);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #E0E7EE;
  box-shadow: 0 1px 4px rgba(30, 58, 138, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  line-height: 1;
}
.auth-method.on {
  border-color: var(--pg);
  background: var(--pgl);
  color: var(--pgd);
}
.auth-row-inactive {
  display: none;
}
.auth-verify-banner {
  margin: -6px 0 14px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid #DCE9FF;
  background: linear-gradient(135deg, #F4FAFF 0%, #EDF6FF 100%);
}
.auth-verify-banner.email {
  border-color: #D7E7FF;
  background: linear-gradient(135deg, #F6F9FF 0%, #EEF3FF 100%);
}
.auth-verify-banner.sms {
  border-color: #CCE6FF;
  background: linear-gradient(135deg, #F4FBFF 0%, #EAF6FF 100%);
}
.auth-uat-banner .auth-verify-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.auth-uat-banner code {
  font-size: 11px;
  background: rgba(13, 71, 161, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}
.auth-verify-label {
  font-size: 11px;
  font-weight: 700;
  color: #0D47A1;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 1px;
}
.auth-verify-text {
  font-size: 12px;
  color: #325D86;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Phone input row */
.phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.country-select {
  width: 90px;
  padding: 11px 8px;
  border: 1.5px solid #CFD8DC;
  border-radius: var(--prs);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: var(--ps);
  outline: none;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
}
.country-select:focus { border-color: var(--pg); }
.auth-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid #CFD8DC;
  border-radius: var(--prs);
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  color: var(--ps);
  outline: none;
}
.auth-input:focus { border-color: var(--pg); }
.auth-input.auth-focus-guide {
  border-color: var(--pg);
  animation: authInputFocusPulse 0.85s ease-in-out 3;
  caret-color: var(--pgd);
}
@keyframes authInputFocusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.22); }
}
.auth-input.code-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.32em;
  font-variant-numeric: tabular-nums;
  color: var(--pn);
  padding: 14px 12px;
}
.auth-input.code-input::placeholder {
  color: #B0BEC5;
  font-weight: 400;
  opacity: 1;
  letter-spacing: 0.28em;
}
.auth-input.code-input:placeholder-shown {
  font-weight: 400;
  color: #B0BEC5;
}
.auth-code-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #90A4AE;
  text-align: center;
}
@media (max-width: 480px) {
  .auth-input.code-input {
    font-size: clamp(20px, 5.5vw, 26px);
    letter-spacing: 0.24em;
    padding: 12px 10px;
  }
}
@media (max-width: 360px) {
  .auth-input.code-input {
    letter-spacing: 0.18em;
    padding: 12px 8px;
  }
}
.auth-input.err { border-color: #E53935; }

/* Stay logged in */
.stay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}
.stay-check {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 2px solid #CFD8DC;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  background: white;
}
.stay-check.on { background: var(--pg); border-color: var(--pg); }
.stay-check.on::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; }
.stay-label { font-size: 13px; color: var(--ps); }
.stay-label span { color: #90A4AE; font-size: 11px; display: block; margin-top: 1px; }

/* Primary auth button */
.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--pg);
  color: white;
  border: none;
  border-radius: var(--prs);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover { background: var(--pgd); }
.auth-btn:disabled { background: #B0BEC5; cursor: not-allowed; }

/* Recovery prompt — single contact on login */
.auth-recovery-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 16px 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.auth-recovery-overlay.open {
  opacity: 1;
  visibility: visible;
}
.auth-recovery-overlay[hidden] { display: none; }
.auth-recovery-overlay.open[hidden] { display: flex; }

.auth-recovery-sheet {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #fff 0%, #F8FBFF 100%);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(12px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-recovery-overlay.open .auth-recovery-sheet {
  transform: translateY(0);
}
.auth-recovery-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pgl) 0%, #E3F2FD 100%);
  border: 1px solid #BBDEFB;
  color: var(--pgd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.auth-recovery-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--pn);
  line-height: 1.25;
}
.auth-recovery-lead {
  margin: 0 0 14px;
  font-size: 13px;
  color: #546E7A;
  line-height: 1.5;
}
.auth-recovery-benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-recovery-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #455A64;
  line-height: 1.45;
}
.auth-recovery-benefits li i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 15px;
  color: var(--pg);
}
.auth-recovery-primary { margin-bottom: 10px; }
.auth-recovery-skip {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--prs);
  background: transparent;
  color: #78909C;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.auth-recovery-skip:hover {
  color: var(--pgd);
  background: rgba(33, 150, 243, 0.06);
}

.auth-card.auth-show-both-contacts .phone-row.auth-row-inactive,
.auth-card.auth-show-both-contacts #email-login-row.auth-row-inactive {
  display: flex;
}

/* Resend row */
.resend-row {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #90A4AE;
}
.resend-link {
  color: var(--pg);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.resend-link.disabled { color: #B0BEC5; pointer-events: none; }

/* Phone display */
.phone-display {
  background: #F7F9F7;
  border-radius: var(--prs);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pn);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.change-link {
  font-size: 11px;
  color: var(--pg);
  font-weight: 600;
  cursor: pointer;
}

/* Code dots indicator */
.code-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ECEFF1;
  transition: background 0.15s;
}
.code-dot.filled { background: var(--pg); }

/* ── Onboarding ── */
.ob-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-tint);
  max-height: 92vh;
  overflow-y: auto;
}
.ob-hero {
  background: var(--pn);
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ob-hero-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pg);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.ob-hero-title { color: white; font-size: 16px; font-weight: 600; }
.ob-hero-sub   { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 2px; }
.ob-progress {
  height: 3px;
  background: rgba(255,255,255,0.15);
}
.ob-progress-fill {
  height: 3px;
  background: var(--py);
  transition: width 0.3s ease;
}
.ob-body { padding: 24px 28px; }
.ob-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #90A4AE;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.ob-field { margin-bottom: 14px; }
.ob-req {
  color: #E53935;
  font-weight: 700;
}
.ob-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ps);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 5px;
}
.ob-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #CFD8DC;
  border-radius: var(--prs);
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: var(--ps);
  outline: none;
}
.ob-input::placeholder {
  color: #B0BEC5;
  opacity: 1;
  font-weight: 400;
}
.ob-input:focus { border-color: var(--pg); }
.ob-handle-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ob-handle-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #546E7A;
  background: #ECEFF1;
  border: 1px solid var(--pb);
  border-right: none;
  border-radius: 8px 0 0 8px;
}
.ob-handle-input {
  border-radius: 0 8px 8px 0 !important;
  flex: 1;
  min-width: 0;
}
.coach-edit-handle-row .ob-handle-prefix {
  border-radius: 6px 0 0 6px;
  font-size: 13px;
}
.coach-edit-handle-row .ob-handle-input {
  border-radius: 0 6px 6px 0 !important;
}
#ob-handle-status.ok,
#coach-edit-handle-status.ok { color: #2E7D32; font-weight: 600; }
#ob-handle-status.err,
#coach-edit-handle-status.err { color: #C62828; font-weight: 600; }

.ob-note {
  font-size: 10px;
  color: #90A4AE;
  margin-top: 4px;
  line-height: 1.4;
}
.ob-divider { height: 0.5px; background: var(--pb); margin: 18px 0; }

/* Gender pills (onboarding) — segmented chip group */
.ob-gender-pills {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: #ECEFF1;
  border: 1px solid #DFE3E8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ob-gender-pill {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  background: transparent;
  color: #607D8B;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ob-gender-pill i {
  font-size: 15px;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.ob-gender-pill:hover:not(.on) {
  background: rgba(255, 255, 255, 0.72);
  color: #455A64;
}
.ob-gender-pill:focus-visible {
  outline: 2px solid var(--pg);
  outline-offset: 2px;
}
.ob-gender-pill.on {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ob-gender-pill.on#ob-gender-male,
.ob-gender-pill.on#coach-edit-gender-male {
  background: linear-gradient(165deg, #64B5F6 0%, #42A5F5 48%, #1E88E5 100%);
  color: #fff;
}
.ob-gender-pill.on#ob-gender-male i,
.ob-gender-pill.on#coach-edit-gender-male i { color: #E3F2FD; opacity: 1; }
.ob-gender-pill.on#ob-gender-female,
.ob-gender-pill.on#coach-edit-gender-female {
  background: linear-gradient(165deg, #F48FB1 0%, #EC407A 52%, #D81B60 100%);
  color: #fff;
}
.ob-gender-pill.on#ob-gender-female i,
.ob-gender-pill.on#coach-edit-gender-female i { color: #FCE4EC; opacity: 1; }

/* Location picker (onboarding) */
.ob-loc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.ob-loc-row .ob-input {
  flex: 1 1 160px;
  min-width: 0;
}
.ob-loc-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 10px;
}
#ob-location-hint.err { color: #C62828; font-weight: 600; }
.ob-map-wrap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #CFD8DC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.ob-map-embed {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}
.ob-map-link {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #1565C0;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ob-map-link:hover { text-decoration: underline; }

/* Role selector */
.role-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.role-opt {
  border: 2px solid #ECEFF1;
  border-radius: 10px;
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.role-opt:hover { border-color: #B0BEC5; }
.role-opt.sel-player { border-color: var(--pg); background: var(--pgl); }
.role-opt.sel-org    { border-color: var(--py); background: #FFF8E1; }
.role-opt.sel-both   { border-color: var(--pn); background: var(--pnl); }
.role-ic   { font-size: 22px; margin-bottom: 6px; }
.role-name { font-size: 12px; font-weight: 600; color: var(--pn); }
.role-desc { font-size: 10px; color: #90A4AE; margin-top: 2px; line-height: 1.3; }

/* DUPR fields */
.dupr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.dupr-field-wrap { position: relative; }
.dupr-field-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
}
.badge-self     { background: #FFF3E0; color: #E65100; }
.badge-official { background: var(--success-bg); color: var(--success-fg); }
.connect-dupr-btn {
  width: 100%;
  padding: 10px 12px;
  background: #F7F9F7;
  border: 1.5px dashed #B0BEC5;
  border-radius: var(--prs);
  font-size: 12px;
  font-weight: 500;
  color: #607D8B;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.connect-dupr-btn:hover { border-color: var(--pg); color: var(--pgd); background: var(--pgl); }
.connect-dupr-btn.connected { border-style: solid; border-color: var(--pg); background: var(--pgl); color: var(--pgd); }

/* Skip link */
.ob-skip {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #90A4AE;
  cursor: pointer;
}
.ob-skip span { color: var(--pg); font-weight: 600; }

/* Logged-in indicator (top right of app) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  cursor: pointer;
}
.user-chip-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--pg);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white;
}
.user-chip-name { color: white; font-size: 11px; font-weight: 500; }
.user-chip-role { color: rgba(255,255,255,0.5); font-size: 9px; }

/* ── Desktop: larger login, code & onboarding ── */
@media (min-width: 1024px) {
  .auth-screen {
    padding: 36px 28px;
  }

  .auth-card {
    max-width: 560px;
    border-radius: 24px;
    box-shadow: 0 12px 52px var(--shadow-tint);
  }

  .auth-hero {
    padding: 40px 36px 30px;
  }
  .auth-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }
  .auth-logo .brand-logo {
    width: 68px;
    height: 68px;
  }
  .auth-app-name { font-size: 28px; }
  .auth-tagline  { font-size: 14px; margin-top: 6px; }

  .auth-body { padding: 36px 40px 40px; }
  .auth-title { font-size: 22px; margin-bottom: 8px; }
  .auth-sub {
    font-size: 15px;
    margin-bottom: 22px;
    line-height: 1.6;
  }

  .auth-methods { margin-bottom: 18px; }
  .auth-method {
    font-size: 14px;
    padding: 12px 10px;
    gap: 8px;
  }
  .auth-method-or { padding: 0 8px; }
  .auth-method-or-line { height: 18px; }
  .auth-method-or-text {
    font-size: 11px;
    padding: 6px 11px;
  }

  .auth-verify-banner {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .auth-verify-label { font-size: 12px; margin-bottom: 4px; }
  .auth-verify-text { font-size: 15px; }

  .phone-row { gap: 10px; margin-bottom: 18px; }
  .country-select {
    width: 108px;
    padding: 14px 10px;
    font-size: 15px;
  }
  .auth-input {
    padding: 14px 16px;
    font-size: 17px;
  }
  .auth-input.code-input {
    font-size: 34px;
    letter-spacing: 0.4em;
    padding: 18px 16px;
  }

  .stay-row { gap: 12px; margin-bottom: 24px; }
  .stay-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .stay-check.on::after { font-size: 14px; }
  .stay-label { font-size: 15px; }
  .stay-label span { font-size: 13px; margin-top: 3px; }

  .auth-btn {
    padding: 16px;
    font-size: 17px;
    gap: 10px;
  }
  .auth-btn .ti { font-size: 18px !important; }
  #code-destination-icon { font-size: 18px !important; }
  .dev-skip-auth { font-size: 13px !important; }

  .resend-row { margin-top: 20px; font-size: 14px; }
  .phone-display {
    padding: 14px 18px;
    font-size: 16px;
    margin-bottom: 24px;
  }
  .change-link { font-size: 13px; }

  .code-dots { gap: 10px; margin-bottom: 24px; }
  .code-dot { width: 14px; height: 14px; }

  .ob-card {
    max-width: 640px;
    border-radius: 24px;
    box-shadow: 0 12px 52px var(--shadow-tint);
  }
  .ob-hero {
    padding: 28px 36px 22px;
    gap: 16px;
  }
  .ob-hero-av {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .ob-hero-title { font-size: 20px; }
  .ob-hero-sub { font-size: 13px; margin-top: 4px; }
  .ob-progress,
  .ob-progress-fill { height: 4px; }
  .ob-body { padding: 32px 40px 40px; }
  .ob-section-title {
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 0.7px;
  }
  .ob-field { margin-bottom: 18px; }
  .ob-label {
    font-size: 13px;
    margin-bottom: 7px;
    letter-spacing: 0.45px;
  }
  .ob-input {
    padding: 13px 15px;
    font-size: 16px;
  }
  .ob-handle-prefix {
    padding: 0 12px;
    font-size: 16px;
  }
  .ob-note {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.45;
  }
  .ob-divider { margin: 22px 0; }

  .role-grid { gap: 10px; margin-bottom: 18px; }
  .role-opt { padding: 18px 10px; border-radius: 12px; }
  .role-ic { font-size: 28px; margin-bottom: 8px; }
  .role-name { font-size: 14px; }
  .role-desc { font-size: 12px; margin-top: 4px; line-height: 1.35; }

  .dupr-fields { gap: 12px; margin-bottom: 8px; }
  .dupr-field-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 7px;
  }
  .connect-dupr-btn {
    padding: 13px 14px;
    font-size: 14px;
    gap: 8px;
  }
  .ob-skip { margin-top: 16px; font-size: 14px; }

  #ob-handle-status.ok,
  #ob-handle-status.err,
  #coach-edit-handle-status.ok,
  #coach-edit-handle-status.err { font-size: 13px; }

  .auth-recovery-sheet { padding: 28px 28px 22px; border-radius: 22px; }
  .auth-recovery-icon { width: 56px; height: 56px; font-size: 28px; margin-bottom: 16px; }
  .auth-recovery-title { font-size: 22px; }
  .auth-recovery-lead { font-size: 15px; margin-bottom: 16px; }
  .auth-recovery-benefits { gap: 12px; margin-bottom: 22px; }
  .auth-recovery-benefits li { font-size: 14px; }
  .auth-recovery-benefits li i { font-size: 17px; }
  .auth-recovery-skip { font-size: 14px; padding: 12px; }
}

/* ── Auth toast (login + onboarding) ── */
.auth-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--pn);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  box-shadow:
    0 16px 48px rgba(15, 30, 74, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 10px)) scale(0.97);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}
.auth-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.auth-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 16px;
  color: var(--py);
}
.auth-toast-text {
  flex: 1;
  min-width: 0;
}
.auth-toast--error .auth-toast-icon {
  background: rgba(255, 183, 77, 0.22);
  color: #FFE082;
}
.auth-toast--error {
  background: linear-gradient(145deg, #3d1f28 0%, var(--pn) 100%);
  box-shadow:
    0 16px 48px rgba(61, 31, 40, 0.32),
    0 4px 12px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .auth-toast {
    transition: opacity 0.15s ease, visibility 0.15s;
    transform: translate(-50%, -50%);
  }
  .auth-toast.show { transform: translate(-50%, -50%); }
}

@media (min-width: 1280px) {
  .auth-screen { padding: 44px 36px; }
  .auth-card { max-width: 580px; }
  .ob-card { max-width: 680px; }

  .auth-body { padding: 40px 44px 44px; }
  .auth-title { font-size: 24px; }
  .auth-sub { font-size: 16px; }
  .auth-input { font-size: 18px; }
  .auth-btn { font-size: 18px; padding: 17px; }
  .ob-body { padding: 36px 44px 44px; }
  .ob-input { font-size: 17px; }
}
