#page-dialog:has(#layer > .verify-otp) { padding: 0; border: 0; background: #111129; }
#page-dialog #layer > .verify-otp.page {
  box-sizing: border-box;
  position: relative;
  width: min(100%, 480px);
  min-width: 0;
  margin-inline: auto;
  padding: calc(76px + env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  color: #fff;
}
.verify-otp > .close-layer { display: none; }
.verify-otp .otp-back { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 20px; }
.verify-otp .otp-back, .verify-otp .otp-support {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 700; color: #d7d4e6;
}
.verify-otp .otp-back::before { content: '‹'; margin-right: 8px; font-size: 24px; }
.verify-otp h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; }
.verify-otp .otp-subtitle { margin: 0; color: #bab7cd; line-height: 1.5; }
.otp-subtitle strong { color: white; overflow-wrap: anywhere; }
.verify-otp .model-form { margin-top: 40px; }
.verify-otp .field { display: block; }
.verify-otp .field > span:first-child:not(.otp-slots) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
}
.otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; }
.verify-otp .otp-slots input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: text;
}
.otp-slot {
  display: grid; place-items: center; height: 60px;
  border: 1px solid #ffffff18; border-radius: 16px; background: #242340;
  font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.otp-slots:focus-within [data-cursor] {
  border-color: #7a45fd; box-shadow: inset 0 0 0 1px #7a45fd, 0 0 16px #7a45fd8c;
}
.otp-slots:focus-within [data-cursor]:empty::after { content: ''; width: 2px; height: 24px; border-radius: 1px; background: #7a45fd; }
.otp-slots:has([aria-invalid=true]) .otp-slot {
  border-color: #ff5257; box-shadow: inset 0 0 0 1px #ff5257, 0 0 16px #ff52578c;
}
.verify-otp .otp-feedback { min-height: 20px; margin: 14px 0 0; color: #ff999c; text-align: center; font-size: 14px; }
.verify-otp .actions { justify-content: center; }
.verify-otp[data-channel=phone] .actions .button:not(.secondary) { display: none; }
.verify-otp .actions .secondary { background: transparent; border: 0; color: #c4c0d2; }
.verify-otp .otp-note { margin: 16px 0 4px; text-align: center; color: #ada9c5; font-size: 13px; }
.verify-otp .otp-support { display: flex; justify-content: center; }
