/* Verified-owner choices wrap instead of relying on a clipped native menu. */
body.aya-auth-document fieldset.recovery-accounts { border:0; padding:0; margin:0 0 20px; min-inline-size:0; }
body.aya-auth-document .recovery-accounts legend { font-weight:650; margin-bottom:10px; }
body.aya-auth-document .recovery-accounts label.recovery-account { display:flex; align-items:flex-start; gap:12px; padding:13px; margin:0 0 9px; border:1px solid rgba(80,128,255,.3); border-radius:14px; color:inherit; background:rgba(80,128,255,.055); cursor:pointer; text-transform:none; letter-spacing:normal; }
body.aya-auth-document .recovery-accounts label.recovery-account input { appearance:auto; flex:0 0 20px; width:20px; height:20px; min-height:20px; margin:2px 0 0; padding:0; accent-color:#0967ff; }
body.aya-auth-document .recovery-account > span { min-width:0; }
body.aya-auth-document .recovery-username { display:block; margin-top:4px; overflow-wrap:anywhere; word-break:break-word; white-space:normal; font-size:.93rem; }
body.aya-auth-document .recovery-account:focus-within { outline:2px solid #0967ff; outline-offset:2px; }
body.aya-auth-document .recovery-account:has(input:checked) { border-color:#0967ff; background:rgba(80,128,255,.12); }

/* AyaSend account access — quiet confidence, with the familiar blue and gold. */
.field select {
  width: 100%; padding: 14px; min-height: 50px; border-radius: 12px;
  color: var(--access-ink); background: var(--access-field);
  border: 1px solid var(--access-field-border); font: inherit;
}
.field select:focus-visible { outline: 3px solid #5080ff; outline-offset: 2px; }
.dark .field select { color-scheme: dark; }
:root:not(.dark) {
  --access-bg: #f2f5fb;
  --access-card: rgba(255, 255, 255, .96);
  --access-card-border: #d8e1ef;
  --access-ink: #18345d;
  --access-copy: #445570;
  --access-muted: #586b87;
  --access-field: #fbfcff;
  --access-field-border: #aebbd0;
  --access-line: #e4eaf3;
  --access-wash: #edf3ff;
  --access-shadow: 0 24px 64px rgba(31, 54, 91, .11), 0 2px 8px rgba(31, 54, 91, .04);
  --access-gold: #8a6400;
}
:root.dark {
  --access-bg: #0c1428;
  --access-card: rgba(20, 31, 56, .97);
  --access-card-border: #344867;
  --access-ink: #f5f7fc;
  --access-copy: #d1dced;
  --access-muted: #b0bfd5;
  --access-field: #101c35;
  --access-field-border: #7184a2;
  --access-line: #344562;
  --access-wash: #1b2c4a;
  --access-shadow: 0 24px 64px rgba(0, 0, 0, .32), 0 2px 8px rgba(0, 0, 0, .14);
  --access-gold: #f1ce72;
}
html {
  background: var(--access-bg);
  color-scheme: light;
}
html.dark { color-scheme: dark; }
body.aya-auth-document {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  color: var(--access-ink);
  font-family: "DM Sans", "Avenir Next", sans-serif;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(80, 128, 255, .10), transparent 43%),
    radial-gradient(ellipse at 100% 94%, rgba(226, 187, 91, .08), transparent 34%),
    var(--access-bg);
  -webkit-text-size-adjust: 100%;
}
html.dark body.aya-auth-document {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(80, 128, 255, .14), transparent 43%),
    radial-gradient(ellipse at 100% 94%, rgba(226, 187, 91, .07), transparent 34%),
    var(--access-bg);
}
body.aya-auth-document .bg-pattern,
body.aya-auth-document .orb { display: none; }
body.aya-auth-document .wrapper {
  width: min(100%, 480px);
  margin: auto;
  animation: access-arrive .36s ease-out both;
}
body.aya-auth-document .logo-link { margin: 0 auto 6px; gap: 8px; }
body.aya-auth-document .logo-img { width: 36px; height: 36px; }
body.aya-auth-document .logo-text {
  color: var(--access-ink) !important;
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.045em;
}
body.aya-auth-document .logo-text span { color: var(--access-gold) !important; }
body.aya-auth-document .brand-tagline {
  margin: 0 0 4px;
  color: var(--access-copy) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
body.aya-auth-document .brand-services {
  margin: 0 auto 18px;
  color: var(--access-muted) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: none;
}
body.aya-auth-document .card {
  padding: clamp(25px, 5vw, 34px);
  border: 1px solid var(--access-card-border) !important;
  border-radius: 22px;
  background: var(--access-card) !important;
  box-shadow: var(--access-shadow);
  color: var(--access-ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.aya-auth-document .card-title {
  margin: 0 0 8px;
  color: var(--access-ink) !important;
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: clamp(22px, 5vw, 25px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.2;
}
body.aya-auth-document .card-sub {
  margin: 0 0 24px;
  color: var(--access-copy) !important;
  font-size: 15px;
  line-height: 1.55;
}
body.aya-auth-document :is(.field label, .checkbox-label-text, .pw-hint, .step,
  .footer-link, .back-link, .footer-links a, .trust-line, .divider) {
  color: var(--access-copy) !important;
}
body.aya-auth-document .field { margin-bottom: 17px; }
body.aya-auth-document .field label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .005em;
}
body.aya-auth-document .field input:not([type="checkbox"]):not([type="radio"]),
body.aya-auth-document .field select,
body.aya-auth-document .picker-search-wrap input,
body.aya-auth-document .field-wrap input,
body.aya-auth-document input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
  min-height: 50px;
  padding-top: 12px;
  padding-bottom: 12px;
  border: 1px solid var(--access-field-border) !important;
  border-radius: 11px;
  background-color: var(--access-field) !important;
  color: var(--access-ink) !important;
  -webkit-text-fill-color: var(--access-ink) !important;
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 16px !important;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
body.aya-auth-document .field input::placeholder,
body.aya-auth-document .picker-search-wrap input::placeholder {
  color: var(--access-muted) !important;
  -webkit-text-fill-color: var(--access-muted) !important;
  opacity: 1;
}
body.aya-auth-document :is(.field input, .field select, .picker-search-wrap input):focus,
body.aya-auth-document :is(.field input, .field select, .picker-search-wrap input):focus-visible {
  border-color: #2864ce !important;
  outline: 3px solid rgba(40, 100, 206, .2) !important;
  outline-offset: 1px;
  box-shadow: none !important;
}
html.dark body.aya-auth-document :is(.field input, .field select, .picker-search-wrap input):focus {
  border-color: #9bbaff !important;
  outline-color: rgba(155, 186, 255, .25) !important;
}
body.aya-auth-document .field input:-webkit-autofill,
body.aya-auth-document .field input:-webkit-autofill:hover,
body.aya-auth-document .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px var(--access-field) inset !important;
  -webkit-text-fill-color: var(--access-ink) !important;
  caret-color: #2864ce !important;
}
body.aya-auth-document .field-wrap input { padding-right: 48px; }
body.aya-auth-document .field-icon { color: var(--access-muted) !important; }
body.aya-auth-document .pw-toggle {
  right: 8px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--access-muted) !important;
}
body.aya-auth-document .pw-toggle:hover { background: var(--access-wash); }
body.aya-auth-document :is(.forgot-link, .footer-link a, .back-link, .footer-links a,
  .checkbox-wrap label a) {
  color: #245fbd !important;
  font-weight: 650;
  text-underline-offset: 3px;
}
html.dark body.aya-auth-document :is(.forgot-link, .footer-link a, .back-link, .footer-links a,
  .checkbox-wrap label a) { color: #a9c5ff !important; }
body.aya-auth-document .btn-primary,
body.aya-auth-document .btn-resend,
body.aya-auth-document a[style*="linear-gradient"] {
  min-height: 52px;
  border: 0 !important;
  border-radius: 11px;
  background: linear-gradient(115deg, #2864ce, #1d4fae) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(31, 79, 161, .18);
  font-family: "DM Sans", "Avenir Next", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
body.aya-auth-document :is(.btn-primary, .btn-resend, a[style*="linear-gradient"]):hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(31, 79, 161, .24);
}
body.aya-auth-document .btn-primary:disabled,
body.aya-auth-document .btn-resend:disabled { opacity: .72; cursor: wait; }
body.aya-auth-document .loading-spin {
  border-color: rgba(255,255,255,.42);
  border-top-color: #fff;
}
body.aya-auth-document .success-box,
body.aya-auth-document .error-box {
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.5;
}
body.aya-auth-document .success-box {
  border: 1px solid #a8d6c4;
  background: #eaf6f0;
  color: #155f46 !important;
}
html.dark body.aya-auth-document .success-box {
  border-color: #326b59;
  background: #17372f;
  color: #9ce0c1 !important;
}
body.aya-auth-document .error-box {
  border: 1px solid #e6b9c1;
  background: #fff1f2;
  color: #8a2034 !important;
}
html.dark body.aya-auth-document .error-box {
  border-color: #784250;
  background: #351b2a;
  color: #ffb2bd !important;
}
body.aya-auth-document .login-information {
  border: 1px solid var(--access-line);
  border-radius: 11px;
  background: var(--access-wash);
  color: var(--access-copy);
}
body.aya-auth-document .steps { background: var(--access-wash); }
body.aya-auth-document .step-num { background: rgba(40,100,206,.12); }
html.dark body.aya-auth-document .step-num { background: rgba(155,186,255,.16); }
body.aya-auth-document .icon-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--access-line);
  border-radius: 14px;
  background: var(--access-wash);
}
body.aya-auth-document .icon-wrap svg { stroke: #2864ce; }
html.dark body.aya-auth-document .icon-wrap svg { stroke: #a9c5ff; }
body.aya-auth-document .pw-strength {
  height: 5px;
  margin-top: 9px;
  background: var(--access-line);
}
body.aya-auth-document .pw-strength-bar { border-radius: 5px; }
body.aya-auth-document .pw-hint { margin-top: 6px; font-size: 12px; line-height: 1.45; }
body.aya-auth-document .pw-requirements {
  position: relative;
  margin: 5px 0 0;
  padding-left: 18px;
  color: var(--access-muted);
  font-size: 12px;
  line-height: 1.45;
}
body.aya-auth-document .pw-requirements::before {
  position: absolute;
  left: 1px;
  content: "•";
  color: var(--access-muted);
}
body.aya-auth-document .pw-requirements.is-met { color: #176647; }
body.aya-auth-document .pw-requirements.is-met::before { content: "✓"; color: #176647; }
html.dark body.aya-auth-document .pw-requirements.is-met,
html.dark body.aya-auth-document .pw-requirements.is-met::before { color: #83e0b6; }
body.aya-auth-document .field-error {
  margin-top: 6px;
  color: #a51d35 !important;
  font-size: 12px;
}
html.dark body.aya-auth-document .field-error { color: #ff9eae !important; }
body.aya-auth-document .card :is(a, button, input, select):focus-visible {
  outline-color: #2864ce;
}
body.aya-auth-document .checkbox-wrap { width: 100%; align-items: flex-start; }
body.aya-auth-document .trust-line { line-height: 1.5; }
body.aya-auth-document .footer-link { line-height: 1.6; }
body.aya-auth-document .email-display { overflow-wrap: anywhere; }
body.aya-auth-document .website-language-controls { margin: 8px 0 14px; gap: 6px; }
body.aya-auth-document .website-language-controls .control-btn {
  min-width: 44px;
  min-height: 40px;
  border-radius: 7px;
  color: var(--access-muted) !important;
}
body.aya-auth-document .website-language-controls [aria-pressed="true"] {
  border-color: #2864ce;
  color: #245fbd !important;
}
html.dark body.aya-auth-document .website-language-controls [aria-pressed="true"] {
  color: #a9c5ff !important;
}
body.aya-auth-document .country-picker-trigger {
  min-height: 50px;
  border-color: var(--access-field-border) !important;
  border-radius: 11px;
  background: var(--access-field) !important;
  color: var(--access-ink) !important;
}
body.aya-auth-document .phone-country-select {
  min-height: 50px;
  border-radius: 11px;
  color: var(--access-ink) !important;
}
body.aya-auth-document .picker-sheet {
  border-radius: 18px;
  box-shadow: var(--access-shadow);
}
body.aya-auth-document .loading-spin { flex: 0 0 auto; }
body.aya-auth-document [data-auth-status] { display: none; }
body.aya-auth-document [data-auth-status].is-visible { display: block; }
body.aya-auth-document [hidden] { display: none !important; }
body.aya-auth-document .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes access-arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  body.aya-auth-document { padding-left: 14px; padding-right: 14px; }
  body.aya-auth-document .card { border-radius: 18px; }
  body.aya-auth-document .row-2 { grid-template-columns: 1fr; }
  body.aya-auth-document .registration-country-row { grid-template-columns: 1fr; }
  body.aya-auth-document .trust-line { align-items: flex-start; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.aya-auth-document *, body.aya-auth-document *::before, body.aya-auth-document *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
