.auth-otp {
  position: relative;
  display: block;
  width: min(100%, 292px);
  height: 52px;
  margin: 0 auto;
}
.auth-otp-cells { display: none; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 100%; pointer-events: none; }
.auth-otp.is-enhanced .auth-otp-cells { display: grid; }
.auth-otp-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid #d6d9de;
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #1d1d1f);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.auth-otp-cell.is-active { border-color: var(--accent, #007aff); box-shadow: 0 0 0 3px rgba(8,124,255,.14); }
.auth-otp-cell.is-active:empty::after { content: ''; width: 2px; height: 24px; border-radius: 2px; background: var(--accent, #007aff); }
.auth-otp .auth-otp-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #d6d9de;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink, #1d1d1f);
  caret-color: var(--accent, #007aff);
  opacity: 1;
  font: inherit;
  font-size: 20px;
  text-align: center;
  letter-spacing: .25em;
  cursor: text;
  appearance: none;
}
.auth-otp.is-enhanced .auth-otp-input { border: 0; border-radius: 0; background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent; }
.auth-otp:not(.is-enhanced) .auth-otp-input:focus { outline: 3px solid rgba(8,124,255,.14); }
.auth-otp-input[aria-invalid="true"] + .auth-otp-cells .auth-otp-cell { border-color: #ff3b30; }
@media (max-width: 520px) {
  .auth-otp { width: min(100%, 264px); height: 48px; }
  .auth-otp-cells { gap: 6px; }
}
